@gct-paas/scss 0.1.6-dev.2 → 0.1.6-dev.21
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.
- package/dist/index.esm.min.js +2 -1
- package/es/index.mjs +2 -2
- package/es/utils/index.d.ts +1 -1
- package/es/utils/namespace/namespace.d.ts +8 -0
- package/es/utils/namespace/namespace.mjs +12 -1
- package/package.json +1 -1
- package/style/generic/index.scss +1 -1
- package/style/generic/vant.scss +14 -0
- package/style/theme/dark/dark-theme.scss +1 -1
- package/style/theme/light/light-theme.scss +1 -1
- package/style/generic/ant-design-vue.scss +0 -302
package/dist/index.esm.min.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/*! @gct-paas/scss v0.1.6-dev.21 */
|
|
2
|
+
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}`}};function o(t){return new n(t)}export{n as Namespace,o as useNamespace};
|
package/es/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Namespace } from "./utils/namespace/namespace.mjs";
|
|
2
|
-
export { Namespace };
|
|
1
|
+
import { Namespace, useNamespace } from "./utils/namespace/namespace.mjs";
|
|
2
|
+
export { Namespace, useNamespace };
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Namespace } from './namespace/namespace';
|
|
1
|
+
export { Namespace, useNamespace } from './namespace/namespace';
|
|
@@ -115,3 +115,11 @@ export declare class Namespace {
|
|
|
115
115
|
*/
|
|
116
116
|
cssVarBlockName(name: string): string;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* 获取 bem 操作类
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @param {string} block
|
|
123
|
+
* @return {*} {Namespace}
|
|
124
|
+
*/
|
|
125
|
+
export declare function useNamespace(block: string): 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
|
*
|
|
@@ -167,5 +168,15 @@ var Namespace = class {
|
|
|
167
168
|
return `--${this.namespace}-${this.block}-${name}`;
|
|
168
169
|
}
|
|
169
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* 获取 bem 操作类
|
|
173
|
+
*
|
|
174
|
+
* @export
|
|
175
|
+
* @param {string} block
|
|
176
|
+
* @return {*} {Namespace}
|
|
177
|
+
*/
|
|
178
|
+
function useNamespace(block) {
|
|
179
|
+
return new Namespace(block);
|
|
180
|
+
}
|
|
170
181
|
//#endregion
|
|
171
|
-
export { Namespace };
|
|
182
|
+
export { Namespace, useNamespace };
|
package/package.json
CHANGED
package/style/generic/index.scss
CHANGED
|
@@ -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,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
|
-
}
|