@kdcloudjs/kdesign 1.1.1 → 1.2.0
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/CHANGELOG.md +60 -0
- package/dist/kdesign-complete.less +662 -572
- package/dist/kdesign.css +400 -316
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +287 -40
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +4 -5
- package/es/anchor/anchor.js +0 -6
- package/es/anchor/style/index.css +5 -2
- package/es/anchor/style/index.less +6 -2
- package/es/anchor/style/token.less +2 -1
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +2 -2
- package/es/button/group.d.ts +21 -0
- package/es/button/group.js +130 -0
- package/es/button/index.d.ts +5 -1
- package/es/button/index.js +4 -1
- package/es/button/style/index.css +117 -21
- package/es/button/style/index.less +332 -192
- package/es/button/style/token.less +41 -25
- package/es/carousel/carousel.js +4 -0
- package/es/checkbox/checkbox.js +3 -4
- package/es/checkbox/style/index.css +36 -33
- package/es/checkbox/style/index.less +25 -18
- package/es/checkbox/style/token.less +34 -35
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +4 -0
- package/es/date-picker/style/index.css +8 -8
- package/es/date-picker/style/index.less +8 -8
- package/es/date-picker/style/token.less +3 -21
- package/es/empty/defaultEmptyImg.js +5 -3
- package/es/empty/illustrationEmptyImg.js +6 -4
- package/es/icon/interface.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/style/index.css +8 -8
- package/es/image/style/index.less +5 -5
- package/es/image/style/token.less +12 -25
- package/es/input/style/index.css +53 -50
- package/es/input/style/index.less +5 -4
- package/es/input/style/mixin.less +1 -0
- package/es/input/style/token.less +23 -20
- package/es/layout/style/index.css +1 -1
- package/es/layout/style/index.less +1 -1
- package/es/layout/style/token.less +5 -5
- package/es/menu/style/index.css +76 -114
- package/es/menu/style/index.less +66 -140
- package/es/menu/style/mixin.less +10 -1
- package/es/menu/style/token.less +9 -12
- package/es/menu/subMenu.js +2 -1
- package/es/pagination/pagination.js +4 -4
- package/es/pagination/style/index.css +70 -55
- package/es/pagination/style/index.less +61 -43
- package/es/pagination/style/token.less +4 -4
- package/es/radio/radio.js +21 -8
- package/es/rate/style/index.css +9 -9
- package/es/rate/style/token.less +6 -6
- package/es/select/style/index.css +1 -1
- package/es/select/style/token.less +1 -1
- package/es/stepper/style/index.css +1 -1
- package/es/stepper/style/token.less +1 -1
- package/es/style/icon/kdicon.css +225 -0
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/index.css +11 -11
- package/es/switch/style/index.less +2 -2
- package/es/switch/style/token.less +7 -10
- package/lib/_utils/usePopper.js +4 -5
- package/lib/anchor/anchor.js +0 -6
- package/lib/anchor/style/index.css +5 -2
- package/lib/anchor/style/index.less +6 -2
- package/lib/anchor/style/token.less +2 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +2 -2
- package/lib/button/group.d.ts +21 -0
- package/lib/button/group.js +166 -0
- package/lib/button/index.d.ts +5 -1
- package/lib/button/index.js +5 -1
- package/lib/button/style/index.css +117 -21
- package/lib/button/style/index.less +332 -192
- package/lib/button/style/token.less +41 -25
- package/lib/carousel/carousel.js +4 -0
- package/lib/checkbox/checkbox.js +3 -4
- package/lib/checkbox/style/index.css +36 -33
- package/lib/checkbox/style/index.less +25 -18
- package/lib/checkbox/style/token.less +34 -35
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +4 -0
- package/lib/date-picker/style/index.css +8 -8
- package/lib/date-picker/style/index.less +8 -8
- package/lib/date-picker/style/token.less +3 -21
- package/lib/empty/defaultEmptyImg.js +6 -3
- package/lib/empty/illustrationEmptyImg.js +7 -4
- package/lib/icon/interface.js +1 -1
- package/lib/image/preview.js +1 -1
- package/lib/image/style/index.css +8 -8
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/token.less +12 -25
- package/lib/input/style/index.css +53 -50
- package/lib/input/style/index.less +5 -4
- package/lib/input/style/mixin.less +1 -0
- package/lib/input/style/token.less +23 -20
- package/lib/layout/style/index.css +1 -1
- package/lib/layout/style/index.less +1 -1
- package/lib/layout/style/token.less +5 -5
- package/lib/menu/style/index.css +76 -114
- package/lib/menu/style/index.less +66 -140
- package/lib/menu/style/mixin.less +10 -1
- package/lib/menu/style/token.less +9 -12
- package/lib/menu/subMenu.js +2 -1
- package/lib/pagination/pagination.js +4 -3
- package/lib/pagination/style/index.css +70 -55
- package/lib/pagination/style/index.less +61 -43
- package/lib/pagination/style/token.less +4 -4
- package/lib/radio/radio.js +21 -8
- package/lib/rate/style/index.css +9 -9
- package/lib/rate/style/token.less +6 -6
- package/lib/select/style/index.css +1 -1
- package/lib/select/style/token.less +1 -1
- package/lib/stepper/style/index.css +1 -1
- package/lib/stepper/style/token.less +1 -1
- package/lib/style/icon/kdicon.css +225 -0
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/index.css +11 -11
- package/lib/switch/style/index.less +2 -2
- package/lib/switch/style/token.less +7 -10
- package/package.json +1 -1
package/lib/radio/radio.js
CHANGED
|
@@ -110,14 +110,27 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
110
110
|
|
|
111
111
|
var classString = (0, _classnames.default)((_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(radioPrefixCls), true), (0, _defineProperty2.default)(_classNames, "".concat(radioPrefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2.default)(_classNames, "".concat(radioPrefixCls, "-checked"), context ? radioProps.checked : isChecked), _classNames), className); // 单选包裹元素class名称
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
var handleRepeatClick = function handleRepeatClick(e) {
|
|
114
|
+
var element = e.target;
|
|
115
|
+
|
|
116
|
+
if (element.tagName !== 'INPUT') {
|
|
117
|
+
e.stopPropagation();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return (
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
// eslint-disable-next-line
|
|
124
|
+
React.createElement("label", {
|
|
125
|
+
className: classString,
|
|
126
|
+
style: style,
|
|
127
|
+
ref: mergedRef,
|
|
128
|
+
onClick: handleRepeatClick
|
|
129
|
+
}, /*#__PURE__*/React.createElement("input", (0, _extends2.default)({
|
|
130
|
+
type: "radio",
|
|
131
|
+
className: "".concat(radioPrefixCls, "-input")
|
|
132
|
+
}, radioProps)), children !== undefined ? /*#__PURE__*/React.createElement("span", null, children) : null)
|
|
133
|
+
);
|
|
121
134
|
};
|
|
122
135
|
|
|
123
136
|
var Radio = /*#__PURE__*/React.forwardRef(InternalRadio);
|
package/lib/rate/style/index.css
CHANGED
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
justify-content: flex-start;
|
|
122
122
|
}
|
|
123
123
|
.kd-rate-size-large {
|
|
124
|
-
font-size: var(--kd-c-rate-font-size-large,
|
|
124
|
+
font-size: var(--kd-c-rate-font-size-large, 20px);
|
|
125
125
|
}
|
|
126
126
|
.kd-rate-size-middle {
|
|
127
|
-
font-size: var(--kd-c-rate-font-size-middle,
|
|
127
|
+
font-size: var(--kd-c-rate-font-size-middle, 16px);
|
|
128
128
|
}
|
|
129
129
|
.kd-rate-size-small {
|
|
130
|
-
font-size: var(--kd-c-rate-font-size-small,
|
|
130
|
+
font-size: var(--kd-c-rate-font-size-small, 12px);
|
|
131
131
|
}
|
|
132
132
|
.kd-rate-item {
|
|
133
133
|
display: -webkit-inline-box;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
-ms-flex-align: center;
|
|
142
142
|
align-items: center;
|
|
143
143
|
line-height: 100%;
|
|
144
|
-
margin-right: var(--kd-c-rate-spacing-margin-right,
|
|
144
|
+
margin-right: var(--kd-c-rate-spacing-margin-right, 8px);
|
|
145
145
|
}
|
|
146
146
|
.kd-rate-item .kd-rate-icon-view {
|
|
147
147
|
position: relative;
|
|
@@ -171,20 +171,20 @@
|
|
|
171
171
|
left: 0;
|
|
172
172
|
width: 50%;
|
|
173
173
|
overflow: hidden;
|
|
174
|
-
color: var(--kd-c-rate-color-text-not-selected, #
|
|
174
|
+
color: var(--kd-c-rate-color-text-not-selected, #E5E5E5);
|
|
175
175
|
opacity: 1;
|
|
176
176
|
cursor: pointer;
|
|
177
177
|
-webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
178
178
|
transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
179
179
|
}
|
|
180
180
|
.kd-rate-item .kd-rate-icon-first:hover {
|
|
181
|
-
color: var(--kd-c-rate-color-text-selected, #
|
|
181
|
+
color: var(--kd-c-rate-color-text-selected, #FEC104);
|
|
182
182
|
}
|
|
183
183
|
.kd-rate-item .kd-rate-icon-second {
|
|
184
184
|
display: -webkit-inline-box;
|
|
185
185
|
display: -ms-inline-flexbox;
|
|
186
186
|
display: inline-flex;
|
|
187
|
-
color: var(--kd-c-rate-color-text-not-selected, #
|
|
187
|
+
color: var(--kd-c-rate-color-text-not-selected, #E5E5E5);
|
|
188
188
|
opacity: 1;
|
|
189
189
|
cursor: pointer;
|
|
190
190
|
-webkit-transition: color var(--kd-c-rate-motion-duration, var(--kd-g-duration, 0.3s));
|
|
@@ -196,10 +196,10 @@
|
|
|
196
196
|
display: inline-flex;
|
|
197
197
|
}
|
|
198
198
|
.kd-rate-item .kd-rate-icon-second:hover {
|
|
199
|
-
color: var(--kd-c-rate-color-text-selected, #
|
|
199
|
+
color: var(--kd-c-rate-color-text-selected, #FEC104);
|
|
200
200
|
}
|
|
201
201
|
.kd-rate-item .kd-rate-icon-selected {
|
|
202
|
-
color: var(--kd-c-rate-color-text-selected, #
|
|
202
|
+
color: var(--kd-c-rate-color-text-selected, #FEC104);
|
|
203
203
|
opacity: 1;
|
|
204
204
|
}
|
|
205
205
|
.kd-rate-item:last-child {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
@rate-prefix: '--@{kd-prefix}-c-rate';
|
|
4
4
|
|
|
5
5
|
// color
|
|
6
|
-
@rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #
|
|
7
|
-
@rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #
|
|
6
|
+
@rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #FEC104);
|
|
7
|
+
@rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #E5E5E5);
|
|
8
8
|
|
|
9
9
|
// font
|
|
10
|
-
@rate-small-font-size: var(~'@{rate-prefix}-font-size-small',
|
|
11
|
-
@rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle',
|
|
12
|
-
@rate-large-font-size: var(~'@{rate-prefix}-font-size-large',
|
|
10
|
+
@rate-small-font-size: var(~'@{rate-prefix}-font-size-small', 12px);
|
|
11
|
+
@rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', 16px);
|
|
12
|
+
@rate-large-font-size: var(~'@{rate-prefix}-font-size-large', 20px);
|
|
13
13
|
|
|
14
14
|
// motion
|
|
15
15
|
@rate-transition-duration: var(~'@{rate-prefix}-motion-duration', @duration-promptly);
|
|
16
16
|
|
|
17
17
|
// spacing
|
|
18
|
-
@rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right',
|
|
18
|
+
@rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 8px);
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
}
|
|
415
415
|
.kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
|
|
416
416
|
color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-theme, #5582f3));
|
|
417
|
-
background-color: var(--kd-c-select-color-background-selected, #
|
|
417
|
+
background-color: var(--kd-c-select-color-background-selected, var(--kd-g-color-theme-3, #e3eeff));
|
|
418
418
|
}
|
|
419
419
|
.kd-select-item-option-disabled {
|
|
420
420
|
color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
8
8
|
@select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
|
|
9
9
|
@select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
|
|
10
|
-
@select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected',
|
|
10
|
+
@select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
|
|
11
11
|
@select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
|
|
12
12
|
@select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
|
|
13
13
|
@select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
justify-content: center;
|
|
200
200
|
height: 100%;
|
|
201
201
|
border-radius: 0 1px 1px 0;
|
|
202
|
-
background-color: var(--kd-c-stepper-embed-icon-color-background,
|
|
202
|
+
background-color: var(--kd-c-stepper-embed-icon-color-background, transparent);
|
|
203
203
|
overflow: hidden;
|
|
204
204
|
border-left: 1px solid var(--kd-c-stepper-color-border-strong, var(--kd-g-color-border-strong, #d9d9d9));
|
|
205
205
|
border: none;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
|
|
7
7
|
@stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
|
|
8
8
|
@stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
|
|
9
|
-
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background',
|
|
9
|
+
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', transparent);
|
|
10
10
|
|
|
11
11
|
// font
|
|
12
12
|
@stepper-input-font-size: var(~'@{stepper-prefix}-input-font-size', 12px);
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "kdicon";
|
|
3
|
+
src: url("kdicon.woff?t=1649311510226") format("woff");
|
|
4
|
+
}
|
|
5
|
+
.kdicon {
|
|
6
|
+
font-family: 'kdicon' !important;
|
|
7
|
+
font-style:normal;
|
|
8
|
+
-webkit-font-smoothing: antialiased;
|
|
9
|
+
-moz-osx-font-smoothing: grayscale;
|
|
10
|
+
}
|
|
11
|
+
.kdicon-add-child:before { content: "\e6c0"; }
|
|
12
|
+
.kdicon-add-indentation:before { content: "\e6a7"; }
|
|
13
|
+
.kdicon-add-line:before { content: "\e6c5"; }
|
|
14
|
+
.kdicon-add-solid:before { content: "\e643"; }
|
|
15
|
+
.kdicon-add-word:before { content: "\e6ed"; }
|
|
16
|
+
.kdicon-add:before { content: "\e628"; }
|
|
17
|
+
.kdicon-address:before { content: "\e6cc"; }
|
|
18
|
+
.kdicon-align-center:before { content: "\e69a"; }
|
|
19
|
+
.kdicon-align-left:before { content: "\e6af"; }
|
|
20
|
+
.kdicon-align-right:before { content: "\e67a"; }
|
|
21
|
+
.kdicon-all-border:before { content: "\e677"; }
|
|
22
|
+
.kdicon-allowance-workbench:before { content: "\e714"; }
|
|
23
|
+
.kdicon-analysis:before { content: "\e6ce"; }
|
|
24
|
+
.kdicon-arrow-down-solid:before { content: "\e656"; }
|
|
25
|
+
.kdicon-arrow-down:before { content: "\e627"; }
|
|
26
|
+
.kdicon-arrow-left-solid:before { content: "\e657"; }
|
|
27
|
+
.kdicon-arrow-left:before { content: "\e63f"; }
|
|
28
|
+
.kdicon-arrow-right-solid:before { content: "\e655"; }
|
|
29
|
+
.kdicon-arrow-right:before { content: "\e62c"; }
|
|
30
|
+
.kdicon-arrow-up-solid:before { content: "\e654"; }
|
|
31
|
+
.kdicon-arrow-up:before { content: "\e62b"; }
|
|
32
|
+
.kdicon-arrow:before { content: "\e69c"; }
|
|
33
|
+
.kdicon-attachment:before { content: "\e694"; }
|
|
34
|
+
.kdicon-avatar-default:before { content: "\e717"; }
|
|
35
|
+
.kdicon-avatar-head-default:before { content: "\e718"; }
|
|
36
|
+
.kdicon-avatar-solid:before { content: "\e711"; }
|
|
37
|
+
.kdicon-back:before { content: "\e6cd"; }
|
|
38
|
+
.kdicon-bankcard:before { content: "\e705"; }
|
|
39
|
+
.kdicon-bellOutlined:before { content: "\e71a"; }
|
|
40
|
+
.kdicon-bold-solid:before { content: "\e668"; }
|
|
41
|
+
.kdicon-border:before { content: "\e6f9"; }
|
|
42
|
+
.kdicon-bottom-border:before { content: "\e704"; }
|
|
43
|
+
.kdicon-business-type:before { content: "\e716"; }
|
|
44
|
+
.kdicon-cancel:before { content: "\e68f"; }
|
|
45
|
+
.kdicon-cell:before { content: "\e692"; }
|
|
46
|
+
.kdicon-change:before { content: "\e6e2"; }
|
|
47
|
+
.kdicon-chart-display:before { content: "\e710"; }
|
|
48
|
+
.kdicon-chart:before { content: "\e6d0"; }
|
|
49
|
+
.kdicon-classify:before { content: "\e6d4"; }
|
|
50
|
+
.kdicon-close-bold:before { content: "\e647"; }
|
|
51
|
+
.kdicon-close-full-screen:before { content: "\e679"; }
|
|
52
|
+
.kdicon-close-solid:before { content: "\e644"; }
|
|
53
|
+
.kdicon-close:before { content: "\e62f"; }
|
|
54
|
+
.kdicon-cn:before { content: "\e6b5"; }
|
|
55
|
+
.kdicon-code:before { content: "\e6ca"; }
|
|
56
|
+
.kdicon-collect:before { content: "\e6ec"; }
|
|
57
|
+
.kdicon-comment:before { content: "\e6bc"; }
|
|
58
|
+
.kdicon-communication-solid:before { content: "\e65e"; }
|
|
59
|
+
.kdicon-contract:before { content: "\e69f"; }
|
|
60
|
+
.kdicon-cooperation:before { content: "\e6fb"; }
|
|
61
|
+
.kdicon-copy-code:before { content: "\e6e1"; }
|
|
62
|
+
.kdicon-copy:before { content: "\e678"; }
|
|
63
|
+
.kdicon-counterclockwise:before { content: "\e6e5"; }
|
|
64
|
+
.kdicon-customize:before { content: "\e707"; }
|
|
65
|
+
.kdicon-date-selection:before { content: "\e70f"; }
|
|
66
|
+
.kdicon-date:before { content: "\e6eb"; }
|
|
67
|
+
.kdicon-delete-indentation:before { content: "\e697"; }
|
|
68
|
+
.kdicon-delete-line:before { content: "\e68c"; }
|
|
69
|
+
.kdicon-delete-solid:before { content: "\e667"; }
|
|
70
|
+
.kdicon-delete:before { content: "\e6ee"; }
|
|
71
|
+
.kdicon-detail:before { content: "\e6c4"; }
|
|
72
|
+
.kdicon-detect:before { content: "\e68e"; }
|
|
73
|
+
.kdicon-division-solid:before { content: "\e65a"; }
|
|
74
|
+
.kdicon-double-arrow-left:before { content: "\e64a"; }
|
|
75
|
+
.kdicon-double-arrow-right:before { content: "\e649"; }
|
|
76
|
+
.kdicon-download:before { content: "\e70a"; }
|
|
77
|
+
.kdicon-edit-border:before { content: "\e6c8"; }
|
|
78
|
+
.kdicon-edit-view:before { content: "\e6c7"; }
|
|
79
|
+
.kdicon-edit:before { content: "\e6a6"; }
|
|
80
|
+
.kdicon-education:before { content: "\e69d"; }
|
|
81
|
+
.kdicon-eliminate-solid:before { content: "\e659"; }
|
|
82
|
+
.kdicon-en:before { content: "\e6b6"; }
|
|
83
|
+
.kdicon-enlarge:before { content: "\e6d5"; }
|
|
84
|
+
.kdicon-equal:before { content: "\e6a3"; }
|
|
85
|
+
.kdicon-exclamatory:before { content: "\e64e"; }
|
|
86
|
+
.kdicon-expand:before { content: "\e651"; }
|
|
87
|
+
.kdicon-experience:before { content: "\e6ff"; }
|
|
88
|
+
.kdicon-fail:before { content: "\e6a5"; }
|
|
89
|
+
.kdicon-feedback:before { content: "\e6d6"; }
|
|
90
|
+
.kdicon-female:before { content: "\e684"; }
|
|
91
|
+
.kdicon-filter-solid:before { content: "\e66a"; }
|
|
92
|
+
.kdicon-filter-switch:before { content: "\e6b1"; }
|
|
93
|
+
.kdicon-filter:before { content: "\e6a0"; }
|
|
94
|
+
.kdicon-finish:before { content: "\e6dc"; }
|
|
95
|
+
.kdicon-first:before { content: "\e630"; }
|
|
96
|
+
.kdicon-fixed-shrink:before { content: "\e693"; }
|
|
97
|
+
.kdicon-fixed-solid:before { content: "\e65f"; }
|
|
98
|
+
.kdicon-fixed-window:before { content: "\e6d1"; }
|
|
99
|
+
.kdicon-fixed:before { content: "\e6e3"; }
|
|
100
|
+
.kdicon-foldmenu:before { content: "\e70e"; }
|
|
101
|
+
.kdicon-font-background-solid:before { content: "\e673"; }
|
|
102
|
+
.kdicon-font-color-solid:before { content: "\e674"; }
|
|
103
|
+
.kdicon-forbid:before { content: "\e69b"; }
|
|
104
|
+
.kdicon-git:before { content: "\e6c1"; }
|
|
105
|
+
.kdicon-graffiti:before { content: "\e6fe"; }
|
|
106
|
+
.kdicon-greater-equal:before { content: "\e6d7"; }
|
|
107
|
+
.kdicon-have-attachment:before { content: "\e6a8"; }
|
|
108
|
+
.kdicon-hide:before { content: "\e6a9"; }
|
|
109
|
+
.kdicon-hyperlink:before { content: "\e6c9"; }
|
|
110
|
+
.kdicon-image:before { content: "\e687"; }
|
|
111
|
+
.kdicon-import:before { content: "\e6cb"; }
|
|
112
|
+
.kdicon-international:before { content: "\e719"; }
|
|
113
|
+
.kdicon-job-info:before { content: "\e68d"; }
|
|
114
|
+
.kdicon-last:before { content: "\e631"; }
|
|
115
|
+
.kdicon-left-border:before { content: "\e708"; }
|
|
116
|
+
.kdicon-left-extension:before { content: "\e6ae"; }
|
|
117
|
+
.kdicon-left-unfold-solid:before { content: "\e675"; }
|
|
118
|
+
.kdicon-left-unfold:before { content: "\e709"; }
|
|
119
|
+
.kdicon-like:before { content: "\e67f"; }
|
|
120
|
+
.kdicon-list:before { content: "\e6e6"; }
|
|
121
|
+
.kdicon-little-k:before { content: "\e700"; }
|
|
122
|
+
.kdicon-loadding-circle:before { content: "\e645"; }
|
|
123
|
+
.kdicon-loadding:before { content: "\e62d"; }
|
|
124
|
+
.kdicon-location-solid:before { content: "\e640"; }
|
|
125
|
+
.kdicon-location:before { content: "\e695"; }
|
|
126
|
+
.kdicon-lock-solid:before { content: "\e66b"; }
|
|
127
|
+
.kdicon-lock:before { content: "\e68b"; }
|
|
128
|
+
.kdicon-male:before { content: "\e683"; }
|
|
129
|
+
.kdicon-material:before { content: "\e6db"; }
|
|
130
|
+
.kdicon-medical-report:before { content: "\e703"; }
|
|
131
|
+
.kdicon-menu:before { content: "\e6d8"; }
|
|
132
|
+
.kdicon-merge-cell:before { content: "\e6f3"; }
|
|
133
|
+
.kdicon-more-info-solid:before { content: "\e660"; }
|
|
134
|
+
.kdicon-more-info:before { content: "\e6e4"; }
|
|
135
|
+
.kdicon-more-item:before { content: "\e6f4"; }
|
|
136
|
+
.kdicon-more:before { content: "\e6a1"; }
|
|
137
|
+
.kdicon-mosaic-solid:before { content: "\e663"; }
|
|
138
|
+
.kdicon-multiply:before { content: "\e65b"; }
|
|
139
|
+
.kdicon-my-receipt:before { content: "\e715"; }
|
|
140
|
+
.kdicon-no-border:before { content: "\e6f8"; }
|
|
141
|
+
.kdicon-not-equal:before { content: "\e6dd"; }
|
|
142
|
+
.kdicon-notice:before { content: "\e658"; }
|
|
143
|
+
.kdicon-oblique-solid:before { content: "\e66e"; }
|
|
144
|
+
.kdicon-operating-element:before { content: "\e6a4"; }
|
|
145
|
+
.kdicon-order-facet:before { content: "\e713"; }
|
|
146
|
+
.kdicon-order:before { content: "\e6d2"; }
|
|
147
|
+
.kdicon-ordered-list:before { content: "\e6fa"; }
|
|
148
|
+
.kdicon-person-solid:before { content: "\e669"; }
|
|
149
|
+
.kdicon-phone:before { content: "\e6d3"; }
|
|
150
|
+
.kdicon-platform:before { content: "\e6f1"; }
|
|
151
|
+
.kdicon-preview-view:before { content: "\e6ba"; }
|
|
152
|
+
.kdicon-preview:before { content: "\e6ac"; }
|
|
153
|
+
.kdicon-print:before { content: "\e690"; }
|
|
154
|
+
.kdicon-processing-solid:before { content: "\e665"; }
|
|
155
|
+
.kdicon-project:before { content: "\e681"; }
|
|
156
|
+
.kdicon-push-down:before { content: "\e702"; }
|
|
157
|
+
.kdicon-put-bottom:before { content: "\e6b4"; }
|
|
158
|
+
.kdicon-put-off:before { content: "\e685"; }
|
|
159
|
+
.kdicon-put-on:before { content: "\e6bd"; }
|
|
160
|
+
.kdicon-put-top:before { content: "\e6b3"; }
|
|
161
|
+
.kdicon-qrcode:before { content: "\e6df"; }
|
|
162
|
+
.kdicon-qualification-info:before { content: "\e6b2"; }
|
|
163
|
+
.kdicon-quit:before { content: "\e6fc"; }
|
|
164
|
+
.kdicon-quote-solid:before { content: "\e66d"; }
|
|
165
|
+
.kdicon-reduce:before { content: "\e696"; }
|
|
166
|
+
.kdicon-reduction:before { content: "\e6f2"; }
|
|
167
|
+
.kdicon-refresh-solid:before { content: "\e642"; }
|
|
168
|
+
.kdicon-refresh:before { content: "\e629"; }
|
|
169
|
+
.kdicon-report-form:before { content: "\e712"; }
|
|
170
|
+
.kdicon-reset:before { content: "\e6b9"; }
|
|
171
|
+
.kdicon-resign-report:before { content: "\e699"; }
|
|
172
|
+
.kdicon-return:before { content: "\e6e0"; }
|
|
173
|
+
.kdicon-right-bold:before { content: "\e648"; }
|
|
174
|
+
.kdicon-right-border:before { content: "\e67c"; }
|
|
175
|
+
.kdicon-right-extension:before { content: "\e6aa"; }
|
|
176
|
+
.kdicon-right-solid:before { content: "\e641"; }
|
|
177
|
+
.kdicon-right-unfold-solid:before { content: "\e672"; }
|
|
178
|
+
.kdicon-right-unfold:before { content: "\e6ab"; }
|
|
179
|
+
.kdicon-right:before { content: "\e62e"; }
|
|
180
|
+
.kdicon-rough-border:before { content: "\e6de"; }
|
|
181
|
+
.kdicon-save:before { content: "\e6c2"; }
|
|
182
|
+
.kdicon-scanning:before { content: "\e67d"; }
|
|
183
|
+
.kdicon-search-border:before { content: "\e6da"; }
|
|
184
|
+
.kdicon-search:before { content: "\e62a"; }
|
|
185
|
+
.kdicon-setting:before { content: "\e652"; }
|
|
186
|
+
.kdicon-share:before { content: "\e6cf"; }
|
|
187
|
+
.kdicon-shoppingcart:before { content: "\e6bf"; }
|
|
188
|
+
.kdicon-shrink:before { content: "\e6fd"; }
|
|
189
|
+
.kdicon-shutdown:before { content: "\e686"; }
|
|
190
|
+
.kdicon-sigma:before { content: "\e71b"; }
|
|
191
|
+
.kdicon-spin:before { content: "\e6f7"; }
|
|
192
|
+
.kdicon-split:before { content: "\e6c3"; }
|
|
193
|
+
.kdicon-star:before { content: "\e653"; }
|
|
194
|
+
.kdicon-stop:before { content: "\e691"; }
|
|
195
|
+
.kdicon-strike-solid:before { content: "\e664"; }
|
|
196
|
+
.kdicon-sun-solid:before { content: "\e670"; }
|
|
197
|
+
.kdicon-switch-down:before { content: "\e698"; }
|
|
198
|
+
.kdicon-switch-up:before { content: "\e680"; }
|
|
199
|
+
.kdicon-switch:before { content: "\e6e7"; }
|
|
200
|
+
.kdicon-table-setting:before { content: "\e6c6"; }
|
|
201
|
+
.kdicon-task-process:before { content: "\e6ea"; }
|
|
202
|
+
.kdicon-timezone-solid:before { content: "\e662"; }
|
|
203
|
+
.kdicon-tips-solid:before { content: "\e66c"; }
|
|
204
|
+
.kdicon-tips:before { content: "\e650"; }
|
|
205
|
+
.kdicon-title-solid:before { content: "\e65c"; }
|
|
206
|
+
.kdicon-top-border:before { content: "\e6ef"; }
|
|
207
|
+
.kdicon-two-window:before { content: "\e6f6"; }
|
|
208
|
+
.kdicon-underline-solid:before { content: "\e671"; }
|
|
209
|
+
.kdicon-unfold-all:before { content: "\e6ad"; }
|
|
210
|
+
.kdicon-unfold:before { content: "\e6bb"; }
|
|
211
|
+
.kdicon-unfoldmenu:before { content: "\e70d"; }
|
|
212
|
+
.kdicon-unlock-solid:before { content: "\e666"; }
|
|
213
|
+
.kdicon-unlock:before { content: "\e69e"; }
|
|
214
|
+
.kdicon-upload-cloud:before { content: "\e632"; }
|
|
215
|
+
.kdicon-upload:before { content: "\e70b"; }
|
|
216
|
+
.kdicon-user-info:before { content: "\e682"; }
|
|
217
|
+
.kdicon-vertical-center:before { content: "\e6f5"; }
|
|
218
|
+
.kdicon-voice:before { content: "\e6d9"; }
|
|
219
|
+
.kdicon-waiting:before { content: "\e64b"; }
|
|
220
|
+
.kdicon-warning-solid:before { content: "\e64c"; }
|
|
221
|
+
.kdicon-warning:before { content: "\e64d"; }
|
|
222
|
+
.kdicon-workbench:before { content: "\e64f"; }
|
|
223
|
+
.kdicon-wrap:before { content: "\e6b0"; }
|
|
224
|
+
.kdicon-yunzhijia:before { content: "\e706"; }
|
|
225
|
+
.kdicon-zoom:before { content: "\e70c"; }
|
|
Binary file
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
display: inline-block;
|
|
108
108
|
-webkit-box-sizing: border-box;
|
|
109
109
|
box-sizing: border-box;
|
|
110
|
-
background-color: var(--kd-c-switch-color-off, #
|
|
110
|
+
background-color: var(--kd-c-switch-color-off, #B2B2B2);
|
|
111
111
|
cursor: pointer;
|
|
112
112
|
-webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
113
113
|
transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
vertical-align: baseline;
|
|
156
156
|
}
|
|
157
157
|
.kd-switch-disabled {
|
|
158
|
-
background-color: var(--kd-c-switch-color-background-disabled,
|
|
158
|
+
background-color: var(--kd-c-switch-color-off-background-disabled, #D9D9D9);
|
|
159
159
|
cursor: not-allowed;
|
|
160
160
|
}
|
|
161
161
|
.kd-switch-checked {
|
|
162
|
-
background-color: var(--kd-c-switch-color-on, var(--kd-g-color-theme, #5582f3));
|
|
162
|
+
background-color: var(--kd-c-switch-color-on, var(--kd-g-color-theme-6, #5582f3));
|
|
163
163
|
text-align: right;
|
|
164
164
|
}
|
|
165
165
|
.kd-switch-checked::after {
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
color: var(--kd-c-switch-color-loading, var(--kd-g-color-ongoing, #276ff5));
|
|
175
175
|
}
|
|
176
176
|
.kd-switch-checked.kd-switch-disabled {
|
|
177
|
-
|
|
177
|
+
background-color: var(--kd-c-switch-color-on-background-disabled, var(--kd-g-color-theme-4, #b5cfff));
|
|
178
178
|
}
|
|
179
179
|
.kd-switch-checked .kd-switch-inner {
|
|
180
180
|
margin: var(--kd-c-switch-inner-spacing-margin-checked, 0 17px 0 5px);
|
|
@@ -183,19 +183,19 @@
|
|
|
183
183
|
margin: var(--kd-c-switch-inner-spacing-margin-large-checked, 0 21px 0 5px);
|
|
184
184
|
}
|
|
185
185
|
.kd-switch-size-small {
|
|
186
|
-
height: var(--kd-c-switch-small-sizing-height,
|
|
187
|
-
min-width: var(--kd-c-switch-small-sizing-width,
|
|
186
|
+
height: var(--kd-c-switch-small-sizing-height, 16px);
|
|
187
|
+
min-width: var(--kd-c-switch-small-sizing-width, 32px);
|
|
188
188
|
line-height: var(--kd-c-switch-small-line-height, 14px);
|
|
189
189
|
font-size: var(--kd-c-switch-small-font-size, var(--kd-g-font-size-small, 12px));
|
|
190
|
-
border-radius: var(--kd-c-switch-small-radius-border,
|
|
190
|
+
border-radius: var(--kd-c-switch-small-radius-border, 8px);
|
|
191
191
|
}
|
|
192
192
|
.kd-switch-size-small::after {
|
|
193
|
-
width: calc(var(--kd-c-switch-small-sizing-height,
|
|
194
|
-
height: calc(var(--kd-c-switch-small-sizing-height,
|
|
193
|
+
width: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
194
|
+
height: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
195
195
|
}
|
|
196
196
|
.kd-switch-size-small .kd-switch-loading-icon {
|
|
197
|
-
width: calc(var(--kd-c-switch-small-sizing-height,
|
|
198
|
-
height: calc(var(--kd-c-switch-small-sizing-height,
|
|
197
|
+
width: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
198
|
+
height: calc(var(--kd-c-switch-small-sizing-height, 16px) - 2px);
|
|
199
199
|
}
|
|
200
200
|
.kd-switch-size-large {
|
|
201
201
|
height: var(--kd-c-switch-large-sizing-height, 20px);
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&-disabled {
|
|
35
|
-
background-color: @switch-disabled-bg;
|
|
35
|
+
background-color: @switch-off-disabled-bg;
|
|
36
36
|
cursor: not-allowed;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&.@{switch-prefix-cls}-disabled {
|
|
56
|
-
|
|
56
|
+
background-color: @switch-on-disabled-bg;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.@{switch-prefix-cls}-inner {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@switch-prefix: '--@{kd-prefix}-c-switch';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// color
|
|
7
|
-
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme);
|
|
8
|
-
@switch-off-color: var(~'@{switch-prefix}-color-off', #
|
|
9
|
-
@switch-disabled-bg: var(~'@{switch-prefix}-color-background-disabled', @color-
|
|
6
|
+
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme-6);
|
|
7
|
+
@switch-off-color: var(~'@{switch-prefix}-color-off', #B2B2B2);
|
|
8
|
+
@switch-on-disabled-bg: var(~'@{switch-prefix}-color-on-background-disabled', @color-theme-4);
|
|
9
|
+
@switch-off-disabled-bg: var(~'@{switch-prefix}-color-off-background-disabled', #D9D9D9);
|
|
10
10
|
@switch-loading-color: var(~'@{switch-prefix}-color-loading', @color-ongoing);
|
|
11
11
|
@switch-font-color: var(~'@{switch-prefix}-color-font', @color-white);
|
|
12
12
|
|
|
@@ -15,19 +15,16 @@
|
|
|
15
15
|
@switch-large-font-size: var(~'@{switch-prefix}-large-font-size', @font-size-small);
|
|
16
16
|
@switch-inner-small-font-size: var(~'@{switch-prefix}-inner-font-size-small', @font-size-small);
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
// line-height
|
|
20
19
|
@switch-large-line-height: var(~'@{switch-prefix}-large-line-height', 20px);
|
|
21
20
|
@switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 14px);
|
|
22
21
|
|
|
23
|
-
|
|
24
22
|
//radius
|
|
25
|
-
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border',
|
|
26
|
-
|
|
23
|
+
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 8px);
|
|
27
24
|
|
|
28
25
|
// sizing
|
|
29
|
-
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height',
|
|
30
|
-
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width',
|
|
26
|
+
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height', 16px);
|
|
27
|
+
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 32px);
|
|
31
28
|
@switch-large-height: var(~'@{switch-prefix}-large-sizing-height', 20px);
|
|
32
29
|
@switch-large-min-width: var(~'@{switch-prefix}-large-sizing-width', 40px);
|
|
33
30
|
@switch-large-border-radius: var(~'@{switch-prefix}-large-sizing-border-radius', 10px);
|