@gct-paas/scss 0.1.6-dev.1 → 0.1.6-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e,r,n,s){let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),s&&(o+=`--${s}`),o}var r=class{constructor(e,r){var n,s,o;n=this,o=void 0,(s=function(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}(s="namespace"))in n?Object.defineProperty(n,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[s]=o,this.block=e,this.namespace=r||"gct"}b(t=""){return e(this.namespace,this.block,t,"","")}e(t){return t?e(this.namespace,this.block,"",t,""):""}m(t){return t?e(this.namespace,this.block,"","",t):""}be(t,r){return t&&r?e(this.namespace,this.block,t,r,""):""}em(t,r){return t&&r?e(this.namespace,this.block,"",t,r):""}bm(t,r){return t&&r?e(this.namespace,this.block,t,"",r):""}bem(t,r,n){return t&&r&&n?e(this.namespace,this.block,t,r,n):""}is(t,e){return t&&e?`is-${t}`:""}cssVar(t){const e={};for(const r in t)t[r]&&(e[this.cssVarName(r)]=t[r]);return e}cssVarBlock(t){const e={};for(const r in t)t[r]&&(e[this.cssVarBlockName(r)]=t[r]);return e}cssVarName(t){return`--${this.namespace}-${t}`}cssVarBlockName(t){return`--${this.namespace}-${this.block}-${t}`}};export{r as Namespace};
1
+ function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e,r,n){return(r=function(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function r(t,e,r,n,o){let s=`${t}-${e}`;return r&&(s+=`-${r}`),n&&(s+=`__${n}`),o&&(s+=`--${o}`),s}var n=class{constructor(t,r){e(this,"block",void 0),e(this,"namespace",void 0),this.block=t,this.namespace=r||"gct"}b(t=""){return r(this.namespace,this.block,t,"","")}e(t){return t?r(this.namespace,this.block,"",t,""):""}m(t){return t?r(this.namespace,this.block,"","",t):""}be(t,e){return t&&e?r(this.namespace,this.block,t,e,""):""}em(t,e){return t&&e?r(this.namespace,this.block,"",t,e):""}bm(t,e){return t&&e?r(this.namespace,this.block,t,"",e):""}bem(t,e,n){return t&&e&&n?r(this.namespace,this.block,t,e,n):""}is(t,e){return t&&e?`is-${t}`:""}cssVar(t){const e={};for(const r in t)t[r]&&(e[this.cssVarName(r)]=t[r]);return e}cssVarBlock(t){const e={};for(const r in t)t[r]&&(e[this.cssVarBlockName(r)]=t[r]);return e}cssVarName(t){return`--${this.namespace}-${t}`}cssVarBlockName(t){return`--${this.namespace}-${this.block}-${t}`}};export{n as Namespace};
@@ -28,6 +28,7 @@ function _bem(namespace, block, blockSuffix, element, modifier) {
28
28
  * @class Namespace
29
29
  */
30
30
  var Namespace = class {
31
+ block;
31
32
  /**
32
33
  * 命名空间
33
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/scss",
3
- "version": "0.1.6-dev.1",
3
+ "version": "0.1.6-dev.10",
4
4
  "type": "module",
5
5
  "loader": "dist/index.esm.min.js",
6
6
  "description": "paas 平台样式框架包",
@@ -39,8 +39,7 @@
39
39
  "author": "gct",
40
40
  "dependencies": {
41
41
  "normalize.css": "^8.0.1",
42
- "vue": "^3.5.30",
43
- "vxe-table": "4.6.18"
42
+ "vue": "^3.5.30"
44
43
  },
45
44
  "devDependencies": {
46
45
  "vue": ">=3"
@@ -1,4 +1,3 @@
1
1
  /** 重置标准化样式、框大小定义等,例如 normalize.css、reset.css **/
2
- @forward './ant-design-vue';
3
2
  @forward './reset';
4
- @forward './vxe';
3
+ @forward './vant';
@@ -0,0 +1,14 @@
1
+ :root {
2
+ --van-button-primary-color: var(--van-white);
3
+ --van-button-primary-background: var(--gct-color-primary);
4
+ --van-primary-color: var(--gct-color-primary);
5
+ --van-radio-checked-icon-color: var(--gct-color-primary);
6
+ --van-checkbox-checked-icon-color: var(--gct-color-primary);
7
+ --van-switch-on-background: var(--gct-color-primary);
8
+ }
9
+
10
+ .van-cell {
11
+ --van-cell-background: transparent;
12
+ --van-cell-group-background: transparent;
13
+ --van-cell-horizontal-padding: 0;
14
+ }
@@ -1,6 +1,6 @@
1
1
  @use '../../global.scss' as *;
2
2
 
3
- :root.dark, .dark-theme {
3
+ .dark, .dark-theme {
4
4
  // 主色
5
5
  #{getCssVarName(blue, 1)}: 246, 248, 254;
6
6
  #{getCssVarName(blue, 2)}: 236, 242, 253;
@@ -1,6 +1,6 @@
1
1
  @use '../../global.scss' as *;
2
2
 
3
- :root.light, .light-theme {
3
+ .light, .light-theme {
4
4
  #{getCssVarName(color, white)}: white;
5
5
  #{getCssVarName(color, black)}: black;
6
6
 
@@ -1,302 +0,0 @@
1
- // 用于重置覆盖 ant-design-vue 的样式
2
- :root.light {
3
- --ant-primary-color: var(--gct-color-primary);
4
- --ant-primary-color-hover: var(--gct-color-primary-hover);
5
- --ant-primary-color-active: var(--gct-color-primary-active);
6
- }
7
-
8
-
9
- input:-webkit-autofill {
10
- box-shadow: 0 0 0 1000px white inset !important;
11
- }
12
-
13
- :-webkit-autofill {
14
- transition: background-color 5000s ease-in-out 0s !important;
15
- }
16
-
17
- html {
18
- overflow: hidden;
19
- text-size-adjust: 100%;
20
- }
21
-
22
- html,
23
- body {
24
- width: 100%;
25
- height: 100%;
26
- overflow: visible;
27
- overflow-x: hidden;
28
- overscroll-behavior: none;
29
-
30
- // overflow: hidden;
31
-
32
- &.color-weak {
33
- filter: invert(80%);
34
- }
35
-
36
- &.gray-mode {
37
- filter: grayscale(100%);
38
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
39
- }
40
-
41
- .copy-main {
42
- box-sizing: border-box;
43
- overflow: hidden;
44
- text-overflow: ellipsis;
45
- word-break: break-all; /* 任意字符处都可换行(包括单词中间) */
46
- overflow-wrap: break-word; /* 允许在单词内换行 */
47
- outline: none;
48
- background-color: #fff;
49
-
50
- // display: table;
51
- border: 1px dashed #e8ebf0;
52
-
53
- .copy-rich-text {
54
- box-sizing: border-box;
55
- width: 100%;
56
- height: 100%;
57
- overflow: hidden;
58
- word-break: break-all; /* 任意字符处都可换行(包括单词中间) */
59
- overflow-wrap: break-word; /* 允许在单词内换行 */
60
-
61
- span {
62
- line-height: 1;
63
- }
64
-
65
- p {
66
- margin-bottom: 12px;
67
- font-size: 12px;
68
- }
69
- }
70
- }
71
- }
72
-
73
- #app {
74
- overflow: auto;
75
-
76
- & > *:not(.is-empty-page) {
77
- min-width: 1280px;
78
- }
79
- }
80
-
81
- a:focus,
82
- a:active,
83
- button,
84
- div,
85
- svg,
86
- /* stylelint-disable-next-line no-descending-specificity */
87
- span {
88
- outline: none;
89
- }
90
-
91
- .primary-gct {
92
- color: #{getCssVar(color-primary)} !important;
93
- }
94
-
95
- .warning-gct {
96
- color: #{getCssVar(color-warning)} !important;
97
- }
98
-
99
- .error-gct {
100
- color: #{getCssVar(color-error)} !important;
101
- }
102
-
103
- .success-gct {
104
- color: #{getCssVar(color-success)} !important;
105
- }
106
-
107
- .primary-gct-hover:hover {
108
- color: #{getCssVar(color-primary)} !important;
109
- }
110
-
111
- .warning-gct-hover:hover {
112
- color: #{getCssVar(color-warning)} !important;
113
- }
114
-
115
- .error-gct-hover:hover {
116
- color: #{getCssVar(color-error)} !important;
117
- }
118
-
119
- .success-gct-hover:hover {
120
- color: #{getCssVar(color-success)} !important;
121
- }
122
-
123
- .box-full {
124
- width: 100%;
125
- height: 100%;
126
- }
127
-
128
- .gct-divider__vertical {
129
- display: inline-block;
130
- height: var(--size, 14px);
131
- margin-right: var(--space-r, 12px);
132
- margin-left: var(--space-l, 12px);
133
- border-left: 1px solid var(--color, #eaeaea);
134
- }
135
-
136
- // css描述 覆盖antd样式
137
- // tab组件左上方间距
138
- .ant-tabs.--tl-space {
139
- .ant-tabs-nav {
140
- padding-left: 24px;
141
- }
142
- }
143
-
144
- // //拖拽样式
145
- .drawing-chosen {
146
- background-color: rgb(13 170 156 / 10%) !important;
147
- }
148
-
149
- .simple-upload-model.ant-modal {
150
- .ant-modal-header {
151
- padding-right: 50px;
152
- }
153
- }
154
-
155
- .gct-text-overflow {
156
- overflow: hidden;
157
- text-overflow: ellipsis;
158
- word-break: break-all;
159
- white-space: nowrap;
160
- }
161
-
162
- a[danger] {
163
- color: var(--ant-error-color);
164
- }
165
-
166
- // textarea关闭resize,数字提示位置调整
167
- div.ant-input-textarea.ant-input-textarea-show-count {
168
- position: relative;
169
-
170
- textarea {
171
- resize: none;
172
- }
173
-
174
- &.ant-input-textarea-show-count::after {
175
- position: absolute;
176
- right: 12px;
177
- bottom: 1px;
178
- margin: 0;
179
- }
180
- }
181
-
182
- // 修改组件默认圆角大小
183
- button.ant-btn,
184
- span.ant-input-affix-wrapper,
185
- textarea.ant-input,
186
- div.ant-input-number,
187
- div.ant-select:not(.ant-select-customize-input) .ant-select-selector,
188
- div.ant-picker,
189
- div.ant-input-number-group-addon {
190
- border-radius: 4px;
191
- }
192
-
193
- input.ant-input {
194
- border-radius: 0;
195
- }
196
-
197
- .ant-input-group.ant-input-group-compact > .ant-select:first-child > div.ant-select-selector,
198
- span.ant-input-group.ant-input-group-compact > :first-child,
199
- span.ant-input-group-addon {
200
- border-top-left-radius: 4px;
201
- border-bottom-left-radius: 4px;
202
- }
203
-
204
- span.ant-input-group.ant-input-group-compact > :last-child,
205
- span.ant-input-group-addon:last-child {
206
- border-top-right-radius: 4px;
207
- border-bottom-right-radius: 4px;
208
- }
209
-
210
- .gct-number-input {
211
- &.ant-input-number {
212
- border-right-width: 0;
213
-
214
- &:hover {
215
- border-right-width: 1px;
216
- }
217
- }
218
-
219
- .ant-input-number-group-addon {
220
- font-size: 14px;
221
- background-color: #fff;
222
- }
223
- }
224
-
225
- .gct-edhr-table {
226
- .ant-spin-nested-loading > div > .ant-spin {
227
- max-height: 100%;
228
- }
229
- }
230
-
231
- .gct-edhr-auto-size-table {
232
- position: relative;
233
- height: 100%;
234
- overflow: hidden;
235
-
236
- .ant-spin-nested-loading {
237
- position: absolute;
238
- inset: 0;
239
- height: 100%;
240
- overflow: hidden;
241
-
242
- .ant-spin-container {
243
- display: flex;
244
- flex-direction: column;
245
- justify-content: space-between;
246
- width: 100%;
247
- height: 100%;
248
- overflow: hidden;
249
-
250
- .ant-table {
251
- flex: 1;
252
- overflow: hidden;
253
- }
254
-
255
- .ant-table-container {
256
- display: flex;
257
- flex-direction: column;
258
- height: 100%;
259
- overflow: hidden;
260
-
261
- .ant-table-body {
262
- flex: 1;
263
-
264
- // overflow: auto !important;
265
- }
266
- }
267
- }
268
- }
269
- }
270
-
271
- .gct-edhr-pagination {
272
- .ant-pagination.ant-table-pagination {
273
- margin-bottom: 0;
274
- }
275
- }
276
-
277
- /* stylelint-disable-next-line no-descending-specificity */
278
- .ant-table {
279
- color: #212528;
280
- }
281
-
282
- .gct-border-dashed {
283
- border: 2px dashed #dbdbdb;
284
- }
285
-
286
- // 无界应用内的 vue-devtools 容器隐藏
287
- .wujie-sub-app {
288
- /* stylelint-disable-next-line selector-id-pattern */
289
- #__vue-devtools-container__ {
290
- display: none !important;
291
- }
292
- }
293
-
294
- .ant-radio {
295
- .ant-radio-inner {
296
- border-color: var(--gct-color-border);
297
- }
298
- }
299
-
300
- .is-hidden {
301
- display: none !important;
302
- }
@@ -1,44 +0,0 @@
1
- // $vxe-font-size: 14px;
2
- // $vxe-font-color: #666;
3
- // $vxe-primary-color: #409eff;
4
- // $vxe-table-font-color: $vxe-font-color;
5
- $vxe-table-border-color: #eaedf1;
6
- $vxe-table-header-background-color: #f7f8fa;
7
- $vxe-table-column-padding-default: 11px 0;
8
- $vxe-table-cell-padding-left: 10px;
9
- $vxe-table-cell-padding-right: 10px;
10
- $vxe-font-color: #212528;
11
-
12
- // $vxe-table-border-radius: 4px;
13
- @use 'vxe-table/lib/style.css';
14
-
15
- .vxe-table--render-default.vxe-editable .vxe-body--column {
16
- height: 44px;
17
- }
18
-
19
- .vxe-table--body-wrapper.body--wrapper {
20
- min-height: auto;
21
- }
22
-
23
- .vxe-table--render-default.vxe-editable .vxe-header--column {
24
- height: 44px;
25
- }
26
-
27
- .vxe-header--column .vxe-resizable.is--line::before {
28
- height: 16px;
29
- }
30
-
31
- .vxe-table--render-default .vxe-body--expanded-column {
32
- border-bottom: 0;
33
- }
34
-
35
- .vxe-table {
36
- --vxe-loading-color: var(--ant-primary-color);
37
- --vxe-primary-color: var(--ant-primary-color);
38
- --vxe-table-column-padding-default: 7px 0;
39
- }
40
-
41
- .vxe-table--fixed-right-wrapper .vxe-header--column .vxe-resizable {
42
- right: -6px;
43
- left: auto;
44
- }