@kdcloudjs/kdesign 1.1.0 → 1.1.3
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 +63 -0
- package/dist/kdesign-complete.less +339 -310
- package/dist/kdesign.css +261 -207
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +50 -28
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +3 -3
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +4 -4
- package/es/avatar/style/token.less +13 -8
- package/es/base-data/base-data.js +5 -1
- package/es/base-data/style/index.css +8 -3
- package/es/base-data/style/index.less +8 -3
- package/es/base-data/style/token.less +7 -0
- package/es/button/style/token.less +7 -5
- package/es/card/style/token.less +8 -8
- package/es/carousel/style/index.css +4 -4
- package/es/carousel/style/token.less +10 -9
- 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/city-picker/style/token.less +7 -7
- 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/form/Field.js +4 -2
- package/es/form/style/index.css +1 -2
- package/es/form/style/index.less +1 -2
- package/es/form/style/token.less +7 -12
- package/es/icon/interface.js +1 -1
- package/es/image/style/token.less +0 -13
- 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/menu.js +1 -1
- package/es/menu/style/index.css +37 -31
- package/es/menu/style/index.less +14 -0
- package/es/menu/style/mixin.less +1 -1
- package/es/menu/style/token.less +13 -16
- package/es/message/content.js +7 -3
- package/es/message/style/index.css +30 -13
- package/es/message/style/index.less +22 -9
- package/es/message/style/token.less +29 -5
- 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 +9 -7
- package/es/progress/style/token.less +0 -8
- package/es/radio/radio.js +21 -8
- package/es/radio/style/token.less +0 -16
- package/es/select/style/index.css +2 -2
- package/es/select/style/token.less +2 -2
- package/es/stepper/style/index.css +1 -0
- package/es/stepper/style/index.less +1 -0
- package/es/stepper/style/token.less +8 -10
- package/es/style/icon/kdicon.css +224 -0
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/token.less +0 -6
- package/es/timeline/style/token.less +0 -8
- package/es/tree/style/index.css +6 -3
- package/es/tree/style/index.less +4 -0
- package/es/tree/style/token.less +2 -2
- package/lib/_utils/usePopper.js +4 -4
- package/lib/avatar/style/token.less +13 -8
- package/lib/base-data/base-data.js +5 -1
- package/lib/base-data/style/index.css +8 -3
- package/lib/base-data/style/index.less +8 -3
- package/lib/base-data/style/token.less +7 -0
- package/lib/button/style/token.less +7 -5
- package/lib/card/style/token.less +8 -8
- package/lib/carousel/style/index.css +4 -4
- package/lib/carousel/style/token.less +10 -9
- 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/city-picker/style/token.less +7 -7
- 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/form/Field.js +4 -2
- package/lib/form/style/index.css +1 -2
- package/lib/form/style/index.less +1 -2
- package/lib/form/style/token.less +7 -12
- package/lib/icon/interface.js +1 -1
- package/lib/image/style/token.less +0 -13
- 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/menu.js +1 -1
- package/lib/menu/style/index.css +37 -31
- package/lib/menu/style/index.less +14 -0
- package/lib/menu/style/mixin.less +1 -1
- package/lib/menu/style/token.less +13 -16
- package/lib/message/content.js +7 -3
- package/lib/message/style/index.css +30 -13
- package/lib/message/style/index.less +22 -9
- package/lib/message/style/token.less +29 -5
- 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 +9 -7
- package/lib/progress/style/token.less +0 -8
- package/lib/radio/radio.js +21 -8
- package/lib/radio/style/token.less +0 -16
- package/lib/select/style/index.css +2 -2
- package/lib/select/style/token.less +2 -2
- package/lib/stepper/style/index.css +1 -0
- package/lib/stepper/style/index.less +1 -0
- package/lib/stepper/style/token.less +8 -10
- package/lib/style/icon/kdicon.css +224 -0
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/token.less +0 -6
- package/lib/timeline/style/token.less +0 -8
- package/lib/tree/style/index.css +6 -3
- package/lib/tree/style/index.less +4 -0
- package/lib/tree/style/token.less +2 -2
- package/package.json +1 -1
|
@@ -2,47 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
@checkbox-prefix: '--@{kd-prefix}-c-checkbox';
|
|
4
4
|
|
|
5
|
-
// font-size
|
|
6
|
-
@checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
|
|
7
|
-
@checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 14px); // 勾选输入框勾勾图标大小
|
|
8
|
-
@checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
|
|
9
|
-
|
|
10
5
|
// colors
|
|
11
6
|
@checkbox-color-theme: var(~'@{checkbox-prefix}-color-theme', @color-theme);
|
|
12
|
-
@checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary',
|
|
13
|
-
@checkbox-border-color: var(~'@{checkbox-prefix}-color-border',
|
|
14
|
-
@checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active',
|
|
15
|
-
@checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover',
|
|
16
|
-
@checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color',
|
|
17
|
-
@checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color',
|
|
18
|
-
@checkbox-bg-color: var(~'@{checkbox-prefix}-color-background',
|
|
19
|
-
@checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@checkbox-
|
|
23
|
-
@checkbox-
|
|
24
|
-
|
|
7
|
+
@checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', #212121);
|
|
8
|
+
@checkbox-border-color: var(~'@{checkbox-prefix}-color-border', #d9d9d9);
|
|
9
|
+
@checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
|
|
10
|
+
@checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
|
|
11
|
+
@checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
|
|
12
|
+
@checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
|
|
13
|
+
@checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
|
|
14
|
+
@checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-background-contain-disabled);
|
|
15
|
+
@checkbox-disabled-border-color: var(~'@{checkbox-prefix}-color-border-disabled', @color-border-disabled);
|
|
16
|
+
@checkbox-disabled-text-color: var(~'@{checkbox-prefix}-color-text-disabled', @color-disabled);
|
|
17
|
+
@checkbox-default-disabled-color-bg: var(~'@{checkbox-prefix}-default-color-background-disabled', #e5e5e5);
|
|
18
|
+
@checkbox-default-disabled-color-border: var(~'@{checkbox-prefix}-default-color-background-disabled', #d9d9d9);
|
|
19
|
+
|
|
20
|
+
// font
|
|
21
|
+
@checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
|
|
22
|
+
@checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 勾选输入框勾勾图标大小
|
|
23
|
+
@checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
|
|
25
24
|
|
|
26
|
-
//
|
|
27
|
-
@checkbox-
|
|
25
|
+
// motion
|
|
26
|
+
@checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
@checkbox-default-input-
|
|
28
|
+
// radius
|
|
29
|
+
@checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
|
|
31
30
|
|
|
32
|
-
//
|
|
33
|
-
@checkbox-
|
|
31
|
+
// sizing
|
|
32
|
+
@checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
|
|
33
|
+
@checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 14px); // 勾选输入框高度
|
|
34
|
+
@checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 14px); // 勾选输入框宽度
|
|
35
|
+
@checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
|
|
36
|
+
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
37
|
+
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
38
|
+
@checkbox-default-indeterminate-square: var(~'@{checkbox-prefix}-default-indeterminate-sizing-square', 6px); // 半选框的大小
|
|
34
39
|
|
|
35
|
-
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
36
|
-
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
37
40
|
|
|
38
41
|
// spacing
|
|
39
|
-
@checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right',
|
|
40
|
-
@checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding',
|
|
41
|
-
@checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right',
|
|
42
|
-
@checkbox-square-padding: var(~'@{checkbox-prefix}-square-spacing-padding',
|
|
42
|
+
@checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 12px); // 按钮组的间距
|
|
43
|
+
@checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
|
|
44
|
+
@checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 4px); // 勾选输入框与右侧内容间距
|
|
45
|
+
@checkbox-square-padding-horizontal: var(~'@{checkbox-prefix}-square-spacing-padding-horizontal', 7px); // 边框类型内边距
|
|
46
|
+
@checkbox-square-padding-vertical: var(~'@{checkbox-prefix}-square-spacing-padding-vertical', 12px); // 边框类型内边距
|
|
43
47
|
|
|
44
|
-
// radius
|
|
45
|
-
@checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
|
|
46
|
-
|
|
47
|
-
// motion
|
|
48
|
-
@checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
@city-picker-background-color: var(~'@{city-picker-prefix}-color-background', @color-background-contain);
|
|
11
11
|
@city-picker-background-hover-color: var(~'@{city-picker-prefix}-color-background-hover', @color-hover);
|
|
12
12
|
|
|
13
|
-
// sizing
|
|
14
|
-
@city-picker-panel-sizing-width: var(~'@{city-picker-prefix}-panel-sizing-width', 460px);
|
|
15
|
-
@city-picker-panel-sizing-height: var(~'@{city-picker-prefix}-panel-sizing-height', 373px);
|
|
16
|
-
// spacing
|
|
17
|
-
// motion
|
|
18
13
|
|
|
19
14
|
// font
|
|
20
15
|
@city-picker-panel-font-size: var(~'@{city-picker-prefix}-panel-font-size', 12px);
|
|
21
16
|
|
|
22
17
|
// radius
|
|
23
18
|
@city-picker-panel-radius-border: var(~'@{city-picker-prefix}-panel-radius-border', @radius-border);
|
|
24
|
-
|
|
25
|
-
//
|
|
19
|
+
|
|
20
|
+
// sizing
|
|
21
|
+
@city-picker-panel-sizing-width: var(~'@{city-picker-prefix}-panel-sizing-width', 460px);
|
|
22
|
+
@city-picker-panel-sizing-height: var(~'@{city-picker-prefix}-panel-sizing-height', 373px);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
bottom: -1px;
|
|
264
264
|
height: 2px;
|
|
265
265
|
margin-left: 11px;
|
|
266
|
-
background: #
|
|
266
|
+
background: var(--kd-c-date-picker-bar-color-bg-active, var(--kd-g-color-theme, #5582f3));
|
|
267
267
|
opacity: 0;
|
|
268
268
|
-webkit-transition: all 0.3s ease-out;
|
|
269
269
|
transition: all 0.3s ease-out;
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
background: #f5f5f5;
|
|
376
376
|
}
|
|
377
377
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item:hover:not(.kd-date-picker-year-item-disabled) .kd-date-picker-year-text-selected {
|
|
378
|
-
background: #
|
|
378
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
379
379
|
}
|
|
380
380
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item .kd-date-picker-year-text {
|
|
381
381
|
position: relative;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
background: #f5f5f5;
|
|
421
421
|
}
|
|
422
422
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month-warpper .kd-date-picker-month-item:hover:not(.kd-date-picker-month-item-disabled) .kd-date-picker-month-text-selected {
|
|
423
|
-
background: #
|
|
423
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
424
424
|
}
|
|
425
425
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month-warpper .kd-date-picker-month-item .kd-date-picker-month-text {
|
|
426
426
|
position: relative;
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
background: #f5f5f5;
|
|
471
471
|
}
|
|
472
472
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-warpper .kd-date-picker-quarter-item:hover:not(.kd-date-picker-quarter-item-disabled) .kd-date-picker-quarter-text-selected {
|
|
473
|
-
background: #
|
|
473
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
474
474
|
}
|
|
475
475
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-warpper .kd-date-picker-quarter-item .kd-date-picker-quarter-text {
|
|
476
476
|
position: relative;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
background: #f5f5f5;
|
|
541
541
|
}
|
|
542
542
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-line .kd-date-picker-calendar-item:not(.kd-date-picker-calendar-item-disabled):hover .kd-date-picker-calendar-text-selected {
|
|
543
|
-
background: #
|
|
543
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff)) !important;
|
|
544
544
|
}
|
|
545
545
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-line .kd-date-picker-calendar-item-disabled {
|
|
546
546
|
position: relative;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
590
590
|
}
|
|
591
591
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected:hover .kd-date-picker-calendar-item:not(.kd-date-picker-calendar-item-disabled) .kd-date-picker-calendar-week-text::before {
|
|
592
|
-
background: #
|
|
592
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
593
593
|
}
|
|
594
594
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected .kd-date-picker-calendar-week-text {
|
|
595
595
|
background: transparent !important;
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
height: 24px;
|
|
695
695
|
width: 100%;
|
|
696
696
|
margin: 0 -4px;
|
|
697
|
-
background: #
|
|
697
|
+
background: var(--kd-c-date-picker-range-item-color-bg, var(--kd-g-color-theme-1, #f2f8ff));
|
|
698
698
|
}
|
|
699
699
|
.kd-date-picker-panel .kd-date-picker-header-icon {
|
|
700
700
|
min-width: 1.6em;
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
background: #f5f5f5;
|
|
788
788
|
}
|
|
789
789
|
.kd-date-picker-panel .kd-date-picker-time .kd-date-picker-content .kd-date-picker-time-column .kd-date-picker-time-cell-selected .kd-date-picker-time-cell-inner {
|
|
790
|
-
background: #
|
|
790
|
+
background: var(--kd-c-date-picker-range-item-color-bg, var(--kd-g-color-theme-1, #f2f8ff));
|
|
791
791
|
}
|
|
792
792
|
.kd-date-picker-panel .kd-date-picker-time .kd-date-picker-content .kd-date-picker-time-column .kd-date-picker-time-cell-disabled .kd-date-picker-time-cell-inner {
|
|
793
793
|
color: rgba(0, 0, 0, 0.25);
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
bottom: -1px;
|
|
116
116
|
height: 2px;
|
|
117
117
|
margin-left: 11px;
|
|
118
|
-
background:
|
|
118
|
+
background: @date-bar-color-bg-active;
|
|
119
119
|
opacity: 0;
|
|
120
120
|
transition: all 0.3s ease-out;
|
|
121
121
|
pointer-events: none;
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
&:not(.@{datePicker-prefix-cls}-year-item-disabled) {
|
|
245
245
|
.@{datePicker-prefix-cls}-year-text-selected {
|
|
246
|
-
background:
|
|
246
|
+
background: @date-square-item-color-selected;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
|
|
300
300
|
&:not(.@{datePicker-prefix-cls}-month-item-disabled) {
|
|
301
301
|
.@{datePicker-prefix-cls}-month-text-selected {
|
|
302
|
-
background:
|
|
302
|
+
background: @date-square-item-color-selected;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
|
|
360
360
|
&:not(.@{datePicker-prefix-cls}-quarter-item-disabled) {
|
|
361
361
|
.@{datePicker-prefix-cls}-quarter-text-selected {
|
|
362
|
-
background:
|
|
362
|
+
background: @date-square-item-color-selected;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.@{datePicker-prefix-cls}-calendar-text-selected {
|
|
429
|
-
background:
|
|
429
|
+
background: @date-square-item-color-selected !important;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
&:hover {
|
|
490
490
|
& .@{datePicker-prefix-cls}-calendar-item:not(.@{datePicker-prefix-cls}-calendar-item-disabled) {
|
|
491
491
|
.@{datePicker-prefix-cls}-calendar-week-text::before {
|
|
492
|
-
background:
|
|
492
|
+
background: @date-square-item-color-selected;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
height: 24px;
|
|
606
606
|
width: 100%;
|
|
607
607
|
margin: 0 -4px;
|
|
608
|
-
background:
|
|
608
|
+
background: @date-range-item-color-bg;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
|
|
700
700
|
.@{datePicker-prefix-cls}-time-cell-selected {
|
|
701
701
|
.@{datePicker-prefix-cls}-time-cell-inner {
|
|
702
|
-
background:
|
|
702
|
+
background: @date-range-item-color-bg;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@date-picker-custom-prefix: ~'--@{kd-prefix}-c-date-picker';
|
|
4
4
|
|
|
5
|
-
// shadow
|
|
6
5
|
// color
|
|
7
6
|
@date-color-background-checked: var(~'@{date-picker-custom-prefix}-color-background-checked', @color-theme);
|
|
8
7
|
@date-wrapper-color-background: var(~'@{date-picker-custom-prefix}-wrapper-color-background', @color-background);
|
|
@@ -14,7 +13,6 @@
|
|
|
14
13
|
@date-input-color-background: var(~'@{date-picker-custom-prefix}-input-color-background', @color-white);
|
|
15
14
|
@date-input-color-background-disabled: var(~'@{date-picker-custom-prefix}-input-color-background-disabled', @color-background-contain-disabled);
|
|
16
15
|
@date-input-color-focus: var(~'@{date-picker-custom-prefix}-input-color-focused', @color-text-primary);
|
|
17
|
-
|
|
18
16
|
@date-icon-color: var(~'@{date-picker-custom-prefix}-icon-color', @color-disabled);
|
|
19
17
|
@date-clear-background-color: var(~'@{date-picker-custom-prefix}-clear-color-background', @color-background);
|
|
20
18
|
@date-clear-background-color-hover: var(~'@{date-picker-custom-prefix}-clear-color-background-hover', @color-theme-5);
|
|
@@ -22,8 +20,10 @@
|
|
|
22
20
|
@date-container-color: var(~'@{date-picker-custom-prefix}-container-color', @color-text-primary);
|
|
23
21
|
@date-container-color-border: var(~'@{date-picker-custom-prefix}-container-color-border', @color-border-weak);
|
|
24
22
|
@date-container-color-background: var(~'@{date-picker-custom-prefix}-container-color-background', @color-background-2);
|
|
25
|
-
|
|
26
23
|
@date-footer-color-background: var(~'@{date-picker-custom-prefix}-footer-color-background', @color-background);
|
|
24
|
+
@date-bar-color-bg-active: var(~'@{date-picker-custom-prefix}-bar-color-bg-active', @color-theme);
|
|
25
|
+
@date-square-item-color-selected: var(~'@{date-picker-custom-prefix}-square-item-color-selected', @color-theme-hover);
|
|
26
|
+
@date-range-item-color-bg: var(~'@{date-picker-custom-prefix}-range-item-color-bg', @color-theme-1);
|
|
27
27
|
|
|
28
28
|
// sizing
|
|
29
29
|
@date-width: var(~'@{date-picker-custom-prefix}-sizing-width', 230px);
|
|
@@ -41,8 +41,6 @@
|
|
|
41
41
|
@date-large-padding-horizontal: var(~'@{date-picker-custom-prefix}-large-spacing-padding-horizontal', 9px); // 大号 内间距 横向
|
|
42
42
|
@date-suffix-spacing-margin-left: var(~'@{date-picker-custom-prefix}-suffix-spacing-margin-left', 10px);
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
// motion
|
|
46
44
|
// font
|
|
47
45
|
@date-container-font-size: var(~'@{date-picker-custom-prefix}-container-font-size', @font-size-small);
|
|
48
46
|
@date-panel-font-size: var(~'@{date-picker-custom-prefix}-panel-font-size', @font-size-middle);
|
|
@@ -53,19 +51,3 @@
|
|
|
53
51
|
// radius
|
|
54
52
|
@date-input-border-radius: var(~'@{date-picker-custom-prefix}-input-radius-border', @radius-border);
|
|
55
53
|
@date-panel-border-radius: var(~'@{date-picker-custom-prefix}-panel-radius-border', @radius-border);
|
|
56
|
-
|
|
57
|
-
// line-height
|
|
58
|
-
// z-index
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
package/es/form/Field.js
CHANGED
|
@@ -123,7 +123,9 @@ var Field = function Field(props) {
|
|
|
123
123
|
});
|
|
124
124
|
var mergedRequired = required || !!rulesRequired;
|
|
125
125
|
|
|
126
|
-
if (rules
|
|
126
|
+
if (Array.isArray(rules) && !rules.some(function (rule) {
|
|
127
|
+
return Object.prototype.hasOwnProperty.call(rule, 'required');
|
|
128
|
+
}) && required) {
|
|
127
129
|
rules.push({
|
|
128
130
|
required: true
|
|
129
131
|
});
|
|
@@ -131,7 +133,7 @@ var Field = function Field(props) {
|
|
|
131
133
|
|
|
132
134
|
var mergeRules = rules;
|
|
133
135
|
|
|
134
|
-
if (
|
|
136
|
+
if (mergeRules.length) {
|
|
135
137
|
mergeRules = _mapInstanceProperty(rules).call(rules, function (r) {
|
|
136
138
|
if (typeof r === 'function') {
|
|
137
139
|
return r(fieldContext);
|
package/es/form/style/index.css
CHANGED
|
@@ -174,13 +174,12 @@
|
|
|
174
174
|
}
|
|
175
175
|
.kd-form-field-wrapper-message {
|
|
176
176
|
position: absolute;
|
|
177
|
-
left:
|
|
177
|
+
left: -7px;
|
|
178
178
|
right: 0;
|
|
179
179
|
padding: var(--kd-c-form-field-message-spacing-padding-horizontal, 2px) var(--kd-c-form-field-message-spacing-padding-vertical, 8px);
|
|
180
180
|
font-size: var(--kd-c-form-field-message-font-size, 12px);
|
|
181
181
|
line-height: var(--kd-c-form-field-message-line-height, 18px);
|
|
182
182
|
color: var(--kd-c-form-error-color, var(--kd-g-color-error, #fb2323));
|
|
183
|
-
background-color: var(--kd-c-form-error-color-background, var(--kd-g-color-background-error, #fff2f4));
|
|
184
183
|
word-break: break-word;
|
|
185
184
|
overflow: hidden;
|
|
186
185
|
white-space: nowrap;
|
package/es/form/style/index.less
CHANGED
|
@@ -72,13 +72,12 @@
|
|
|
72
72
|
position: relative;
|
|
73
73
|
&-message {
|
|
74
74
|
position: absolute;
|
|
75
|
-
left:
|
|
75
|
+
left: -7px;
|
|
76
76
|
right: 0;
|
|
77
77
|
padding: @form-field-message-spacing-padding-horizontal @form-field-message-spacing-padding-vertical;
|
|
78
78
|
font-size: @form-field-message-font-size;
|
|
79
79
|
line-height: @form-field-message-line-height;
|
|
80
80
|
color: @form-error-color;
|
|
81
|
-
background-color: @form-error-color-background;
|
|
82
81
|
word-break: break-word;
|
|
83
82
|
overflow: hidden;
|
|
84
83
|
white-space: nowrap;
|
package/es/form/style/token.less
CHANGED
|
@@ -2,26 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
@form-prefix: '--@{kd-prefix}-c-form';
|
|
4
4
|
|
|
5
|
-
// shadow
|
|
6
5
|
// color
|
|
7
6
|
@form-field-color: var(~'@{form-prefix}-field-color', @color-text-secondary);
|
|
8
7
|
@form-error-color: var(~'@{form-prefix}-error-color', @color-error);
|
|
9
|
-
@form-error-color-background: var(~'@{form-prefix}-error-color-background', @color-background-error);
|
|
10
8
|
|
|
11
|
-
// sizing
|
|
12
|
-
// spacing
|
|
13
|
-
@form-field-spacing-margin-right: var(~'@{form-prefix}-field-spacing-margin-right', 30px);
|
|
14
|
-
@form-field-spacing-margin-bottom: var(~'@{form-prefix}-field-spacing-margin-bottom', 22px);
|
|
15
|
-
@form-field-message-spacing-padding-horizontal: var(~'@{form-prefix}-field-message-spacing-padding-horizontal', 2px);
|
|
16
|
-
@form-field-message-spacing-padding-vertical: var(~'@{form-prefix}-field-message-spacing-padding-vertical', 8px);
|
|
17
|
-
|
|
18
|
-
// motion
|
|
19
9
|
// font
|
|
20
10
|
@form-field-label-font-size: var(~'@{form-prefix}-field-label-font-size',12px);
|
|
21
11
|
@form-field-message-font-size: var(~'@{form-prefix}-field-message-font-size', 12px);
|
|
22
12
|
|
|
23
|
-
// radius
|
|
24
13
|
// line-height
|
|
25
14
|
@form-field-label-line-height: var(~'@{form-prefix}-field-label-line-height', 18px);
|
|
26
15
|
@form-field-message-line-height: var(~'@{form-prefix}-field-message-line-height', 18px);
|
|
27
|
-
|
|
16
|
+
|
|
17
|
+
// spacing
|
|
18
|
+
@form-field-spacing-margin-right: var(~'@{form-prefix}-field-spacing-margin-right', 30px);
|
|
19
|
+
@form-field-spacing-margin-bottom: var(~'@{form-prefix}-field-spacing-margin-bottom', 22px);
|
|
20
|
+
@form-field-message-spacing-padding-horizontal: var(~'@{form-prefix}-field-message-spacing-padding-horizontal', 2px);
|
|
21
|
+
@form-field-message-spacing-padding-vertical: var(~'@{form-prefix}-field-message-spacing-padding-vertical', 8px);
|
|
22
|
+
|
package/es/icon/interface.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
2
2
|
import { tuple } from '../_utils/type';
|
|
3
|
-
export var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', '
|
|
3
|
+
export var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'unfoldmenu', 'foldmenu', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', 'reset', 'preview-view', 'unfold', 'comment', 'shoppingcart', 'add-child', 'save', 'detail', 'table-setting', 'edit-view', 'edit-border', 'hyperlink', 'code', 'import', 'address', 'analysis', 'share', 'chart', 'fixed-window', 'order', 'phone', 'classify', 'feedback', 'menu', 'voice', 'search-border', 'material', 'finish', 'more-info', 'fixed', 'change', 'copy-code', 'return', 'qrcode', 'counterclockwise', 'list', 'switch', 'task-process', 'add', 'delete', 'add-word', 'two-window', 'spin', 'ordered-list', 'cooperation', 'quit', 'shrink', 'zoom', 'graffiti', 'experience', 'medical-report', 'bankcard', 'yunzhijia', 'customize', 'refresh', 'search', 'loadding', 'loadding-circle', 'right', 'close', 'upload', 'download', 'upload-cloud', 'waiting', 'warning', 'exclamatory', 'tips', 'setting', 'chart-display', 'date', 'more-item', 'international', 'little-k', 'bellOutlined'];
|
|
4
4
|
export var SolidIcon = ['arrow-up-solid', 'arrow-right-solid', 'arrow-down-solid', 'arrow-left-solid', 'left-unfold-solid', 'right-unfold-solid', 'unlock-solid', 'multiply', 'division-solid', 'title-solid', 'communication-solid', 'fixed-solid', 'more-info-solid', 'timezone-solid', 'mosaic-solid', 'strike-solid', 'lock-solid', 'filter-solid', 'person-solid', 'bold-solid', 'delete-solid', 'processing-solid', 'tips-solid', 'quote-solid', 'oblique-solid', 'sun-solid', 'underline-solid', 'font-background-solid', 'eliminate-solid', 'font-color-solid', 'fx', 'refresh-solid', 'right-solid', 'location-solid', 'add-solid', 'warning-solid', 'close-solid', 'right-bold', 'close-bold', 'workbench', 'star', 'notice'];
|
|
5
5
|
export var IconTypes = tuple.apply(void 0, _concatInstanceProperty(BaseIcon).call(BaseIcon, SolidIcon));
|
|
@@ -2,24 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
@image-prefix: '--@{kd-prefix}-c-image';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
5
|
@image-transition-duration: var(~'@{image-prefix}-transition-duration',@transition-duration);
|
|
12
|
-
|
|
13
6
|
@image-motion-ease-out: var(~'@{image-prefix}-motion-ease-out',@motion-ease-out);
|
|
14
7
|
@image-motion-ease-in: var(~'@{image-prefix}-motion-ease-out',@motion-ease-in);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
8
|
@image-z-index-masker: var(~'@{image-prefix}-z-index-masker',@z-index-masker);
|
|
19
|
-
|
|
20
9
|
@image-border-radius: var(~'@{image-prefix}-radius-border',@radius-border);
|
|
21
|
-
|
|
22
|
-
|
|
23
10
|
@image-action-transition: var(~'@{image-prefix}-action-transition',@duration-quickly);
|
|
24
11
|
|
|
25
12
|
|