@kdcloudjs/kdesign 1.5.9 → 1.6.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 +76 -0
- package/dist/kdesign-complete.less +6 -9
- package/dist/kdesign.css +10 -13
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +979 -233
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/KeyCode.d.ts +436 -0
- package/es/_utils/KeyCode.js +623 -0
- package/es/_utils/hooks.d.ts +1 -0
- package/es/_utils/hooks.js +51 -1
- package/es/alert/style/index.css +0 -1
- package/es/alert/style/index.less +0 -1
- package/es/avatar/style/index.css +4 -4
- package/es/avatar/style/mixin.less +1 -1
- package/es/button/style/index.css +3 -0
- package/es/button/style/mixin.less +3 -0
- package/es/config-provider/compDefaultProps.d.ts +1 -0
- package/es/config-provider/compDefaultProps.js +2 -1
- package/es/date-picker/date-picker.js +15 -14
- package/es/date-picker/hooks/use-picker-input.js +44 -38
- package/es/date-picker/range-picker.js +24 -13
- package/es/drawer/drawer.d.ts +1 -0
- package/es/drawer/drawer.js +6 -3
- package/es/input/ClearableLabeledInput.d.ts +1 -1
- package/es/input/ClearableLabeledInput.js +3 -3
- package/es/input/TextArea.d.ts +1 -1
- package/es/input/TextArea.js +2 -2
- package/es/input/input.d.ts +1 -1
- package/es/notification-base/notification.js +4 -4
- package/es/pagination/style/index.css +1 -3
- package/es/pagination/style/index.less +1 -3
- package/es/slider/slider.js +1 -1
- package/es/slider/sliderTooltip.js +4 -3
- package/es/steps/Steps.js +0 -1
- package/es/transfer/style/index.css +0 -3
- package/es/transfer/style/index.less +0 -3
- package/es/tree/style/index.css +1 -1
- package/es/tree/style/token.less +1 -1
- package/lib/_utils/KeyCode.d.ts +436 -0
- package/lib/_utils/KeyCode.js +631 -0
- package/lib/_utils/hooks.d.ts +1 -0
- package/lib/_utils/hooks.js +54 -1
- package/lib/alert/style/index.css +0 -1
- package/lib/alert/style/index.less +0 -1
- package/lib/avatar/style/index.css +4 -4
- package/lib/avatar/style/mixin.less +1 -1
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/mixin.less +3 -0
- package/lib/config-provider/compDefaultProps.d.ts +1 -0
- package/lib/config-provider/compDefaultProps.js +2 -1
- package/lib/date-picker/date-picker.js +15 -15
- package/lib/date-picker/hooks/use-picker-input.js +45 -37
- package/lib/date-picker/range-picker.js +24 -14
- package/lib/drawer/drawer.d.ts +1 -0
- package/lib/drawer/drawer.js +5 -2
- package/lib/input/ClearableLabeledInput.d.ts +1 -1
- package/lib/input/ClearableLabeledInput.js +3 -3
- package/lib/input/TextArea.d.ts +1 -1
- package/lib/input/TextArea.js +2 -2
- package/lib/input/input.d.ts +1 -1
- package/lib/notification-base/notification.js +4 -3
- package/lib/pagination/style/index.css +1 -3
- package/lib/pagination/style/index.less +1 -3
- package/lib/slider/slider.js +1 -1
- package/lib/slider/sliderTooltip.js +4 -3
- package/lib/steps/Steps.js +0 -1
- package/lib/transfer/style/index.css +0 -3
- package/lib/transfer/style/index.less +0 -3
- package/lib/tree/style/index.css +1 -1
- package/lib/tree/style/token.less +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,79 @@
|
|
|
1
|
+
## [1.5.11](https://github.com/kdcloudone/kdesign/compare/v1.5.10...v1.5.11) (2022-08-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [Alert]demo展示样式问题 ([0c69266](https://github.com/kdcloudone/kdesign/commit/0c69266b9b236c8d9ebd65e021d8c1c62ad21e81))
|
|
7
|
+
* [button] 新增按钮超出隐藏并出现省略号 ([b418fb3](https://github.com/kdcloudone/kdesign/commit/b418fb38c67ef68a6e6cdeac0bef397032c966dd))
|
|
8
|
+
* [button] 修复按钮文字换行问题 ([0ebd417](https://github.com/kdcloudone/kdesign/commit/0ebd417b9251b8bfee9c4f8dc2ec529288c89faf))
|
|
9
|
+
* [Cascader]demo点击跳转问题 ([e073102](https://github.com/kdcloudone/kdesign/commit/e07310247f2a31b548ea5c81920f200af7cf68d7))
|
|
10
|
+
* [drawer] 调整demo ([71414fb](https://github.com/kdcloudone/kdesign/commit/71414fb8ce64dd98dc27e6cd6f55416c244bbb7c))
|
|
11
|
+
* [drawer] 修复抽屉显示时使页面抖动问题 ([9c6ce88](https://github.com/kdcloudone/kdesign/commit/9c6ce88de5b6399297ab0320994aa221711aa99b))
|
|
12
|
+
* [message] 修复手动点击关闭,不触发消息提示控件问题 ([672ed89](https://github.com/kdcloudone/kdesign/commit/672ed89fc7c8497136b08f908f2d1af19adbed57))
|
|
13
|
+
* [Pagination]颜色问题 ([de56c91](https://github.com/kdcloudone/kdesign/commit/de56c91f04f699789f408d2de9b1cf699a3b2ca4))
|
|
14
|
+
* [search] 修复demo图片不显示问题 ([e181c58](https://github.com/kdcloudone/kdesign/commit/e181c583d4bf93976f907a7b5bb5f59044df3403))
|
|
15
|
+
* [space] 修复demo显示问题 ([cfe1089](https://github.com/kdcloudone/kdesign/commit/cfe10897f4170a5a657523ab8a7fba949509d45e))
|
|
16
|
+
* [transfer] 修复穿梭框方向键文字换行问题 ([c1618e4](https://github.com/kdcloudone/kdesign/commit/c1618e4e7bc66655e016a67de4a5de674c55d3ad))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [1.5.10](https://github.com/kdcloudone/kdesign/compare/v1.5.9...v1.5.10) (2022-08-22)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* [table] 修复表格虚模式下表格从不可见到可见出现滚动条跳动问题 ([9971ad1](https://github.com/kdcloudone/kdesign/commit/9971ad1ac7f8e97338308fc935c3abf86450a1b1))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [1.5.9](https://github.com/kdcloudone/kdesign/compare/v1.5.8...v1.5.9) (2022-08-18)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* [dropdown]选项传入自定义类名点击事件失效的问题 ([16b1744](https://github.com/kdcloudone/kdesign/commit/16b1744a79eed85476824da74e86d252af487b07))
|
|
35
|
+
* [progress] 修复视觉走查问题点 ([fff4898](https://github.com/kdcloudone/kdesign/commit/fff4898f3255dfba9e0b86da0a098ce1ea263708))
|
|
36
|
+
* [tabs] 修复页签组件视觉走查问题 ([82fffbf](https://github.com/kdcloudone/kdesign/commit/82fffbfbbd703cde69603832309479db0dec3d8c))
|
|
37
|
+
* [token] 修复组件token变量 ([3d00fb4](https://github.com/kdcloudone/kdesign/commit/3d00fb485fc5f87a5a2524b8b53e9ef1004d721f))
|
|
38
|
+
* [tree] 修复树控件视觉走查问题 ([6d4792b](https://github.com/kdcloudone/kdesign/commit/6d4792bc9e5e745b07eba79e7d7b52aae3144135))
|
|
39
|
+
* [tree] 修复异步加载时loading按钮显示不全问题 ([92bc2d7](https://github.com/kdcloudone/kdesign/commit/92bc2d791c81712859b4fd92a62845c1a0ca2e30))
|
|
40
|
+
* [usePopper]修复浮层贴右侧边缘时导致的问题 ([07c72ca](https://github.com/kdcloudone/kdesign/commit/07c72ca86844d6fdc6c27e114997950d30fc33aa))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* [modal] 修复视觉走查问题点 ([3d88d74](https://github.com/kdcloudone/kdesign/commit/3d88d746d73149620ae0d103f84153fa25ea368c))
|
|
46
|
+
* [upload] 修复视觉走查问题点 ([8838d3a](https://github.com/kdcloudone/kdesign/commit/8838d3aa897f6a0a0fb5313a4cbc1391ae8a9cfd))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## [1.5.8](https://github.com/kdcloudone/kdesign/compare/v1.5.7...v1.5.8) (2022-08-12)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Bug Fixes
|
|
54
|
+
|
|
55
|
+
* [usePopper] 修复贴左侧边缘时导致的报错问题 ([ca4686d](https://github.com/kdcloudone/kdesign/commit/ca4686d670b448ba9c22774e016e38d33e6e0bbd))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [1.5.7](https://github.com/kdcloudone/kdesign/compare/v1.5.6...v1.5.7) (2022-08-12)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Reverts
|
|
63
|
+
|
|
64
|
+
* Revert "fix: [Tooltip] 修复当触发元素在右上角,trigger=top时,浮层超出显示边界的问题" ([16dde4e](https://github.com/kdcloudone/kdesign/commit/16dde4e71654bd8a6b4c44d6472ac28aa44ee007))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## [1.5.6](https://github.com/kdcloudone/kdesign/compare/v1.5.5...v1.5.6) (2022-08-11)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* [Tooltip] 修复当触发元素在右上角,trigger=top时,浮层超出显示边界的问题 ([f487389](https://github.com/kdcloudone/kdesign/commit/f487389d95ca759658b5bf7ff988de30aa485f9c))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
1
77
|
## [1.5.5](https://github.com/kdcloudone/kdesign/compare/v1.5.4...v1.5.5) (2022-08-11)
|
|
2
78
|
|
|
3
79
|
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
&-container {
|
|
43
43
|
z-index: @z-index-apex;
|
|
44
44
|
display: none;
|
|
45
|
-
width: 100%;
|
|
46
45
|
padding: @alert-padding-vertical @alert-padding-horizontal;
|
|
47
46
|
align-items: center;
|
|
48
47
|
transition: display 3s;
|
|
@@ -501,7 +500,7 @@
|
|
|
501
500
|
font-size: @font-size;
|
|
502
501
|
|
|
503
502
|
& > .@{icon-prefix-cls} {
|
|
504
|
-
vertical-align:
|
|
503
|
+
vertical-align: top;
|
|
505
504
|
}
|
|
506
505
|
}
|
|
507
506
|
}
|
|
@@ -1281,6 +1280,9 @@
|
|
|
1281
1280
|
text-align: center;
|
|
1282
1281
|
background-color: transparent;
|
|
1283
1282
|
cursor: pointer;
|
|
1283
|
+
white-space: nowrap;
|
|
1284
|
+
overflow: hidden;
|
|
1285
|
+
text-overflow: ellipsis;
|
|
1284
1286
|
&,
|
|
1285
1287
|
&:active,
|
|
1286
1288
|
&:focus {
|
|
@@ -7031,9 +7033,7 @@ textarea {
|
|
|
7031
7033
|
|
|
7032
7034
|
&:hover,
|
|
7033
7035
|
&:active,
|
|
7034
|
-
&.active
|
|
7035
|
-
&:first-child,
|
|
7036
|
-
&:last-child {
|
|
7036
|
+
&.active {
|
|
7037
7037
|
button {
|
|
7038
7038
|
color: @color-theme;
|
|
7039
7039
|
}
|
|
@@ -13515,9 +13515,6 @@ template {
|
|
|
13515
13515
|
& + .@{kd-prefix}-btn {
|
|
13516
13516
|
margin-top: 20px;
|
|
13517
13517
|
}
|
|
13518
|
-
.@{kd-prefix}-btn-iconWrapper-left {
|
|
13519
|
-
float: none;
|
|
13520
|
-
}
|
|
13521
13518
|
}
|
|
13522
13519
|
}
|
|
13523
13520
|
}
|
|
@@ -13775,7 +13772,7 @@ template {
|
|
|
13775
13772
|
@tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
|
|
13776
13773
|
@tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
|
|
13777
13774
|
@tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
|
|
13778
|
-
@tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left',
|
|
13775
|
+
@tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 0px);
|
|
13779
13776
|
|
|
13780
13777
|
// font
|
|
13781
13778
|
@tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);
|
package/dist/kdesign.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.5.
|
|
3
|
+
* @kdcloudjs/kdesign v1.5.11
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -2155,7 +2155,6 @@ template {
|
|
|
2155
2155
|
.kd-alert-container {
|
|
2156
2156
|
z-index: var(--kd-g-z-index-apex, 9999);
|
|
2157
2157
|
display: none;
|
|
2158
|
-
width: 100%;
|
|
2159
2158
|
padding: var(--kd-c-alert-sizing-padding-vertical, 12px) var(--kd-c-alert-sizing-padding-horizontal, 20px);
|
|
2160
2159
|
-webkit-box-align: center;
|
|
2161
2160
|
-ms-flex-align: center;
|
|
@@ -2728,7 +2727,7 @@ template {
|
|
|
2728
2727
|
font-size: var(--kd-c-avatar-font-size-base, 22px);
|
|
2729
2728
|
}
|
|
2730
2729
|
.kd-avatar.kd-avatar-icon > .kdicon {
|
|
2731
|
-
vertical-align:
|
|
2730
|
+
vertical-align: top;
|
|
2732
2731
|
}
|
|
2733
2732
|
.kd-avatar-lg {
|
|
2734
2733
|
width: var(--kd-c-avatar-size-large, 60px);
|
|
@@ -2746,7 +2745,7 @@ template {
|
|
|
2746
2745
|
font-size: var(--kd-c-avatar-font-size-large, 36px);
|
|
2747
2746
|
}
|
|
2748
2747
|
.kd-avatar-lg.kd-avatar-icon > .kdicon {
|
|
2749
|
-
vertical-align:
|
|
2748
|
+
vertical-align: top;
|
|
2750
2749
|
}
|
|
2751
2750
|
.kd-avatar-sm {
|
|
2752
2751
|
width: var(--kd-c-avatar-size-small, 32px);
|
|
@@ -2764,7 +2763,7 @@ template {
|
|
|
2764
2763
|
font-size: var(--kd-c-avatar-font-size-small, 18px);
|
|
2765
2764
|
}
|
|
2766
2765
|
.kd-avatar-sm.kd-avatar-icon > .kdicon {
|
|
2767
|
-
vertical-align:
|
|
2766
|
+
vertical-align: top;
|
|
2768
2767
|
}
|
|
2769
2768
|
.kd-avatar-xs {
|
|
2770
2769
|
width: var(--kd-c-avatar-size-x-small, 24px);
|
|
@@ -2782,7 +2781,7 @@ template {
|
|
|
2782
2781
|
font-size: var(--kd-c-avatar-font-size-x-small, 14px);
|
|
2783
2782
|
}
|
|
2784
2783
|
.kd-avatar-xs.kd-avatar-icon > .kdicon {
|
|
2785
|
-
vertical-align:
|
|
2784
|
+
vertical-align: top;
|
|
2786
2785
|
}
|
|
2787
2786
|
.kd-avatar-square {
|
|
2788
2787
|
border-radius: var(--kd-c-avatar-border-radius, 2px);
|
|
@@ -3446,6 +3445,9 @@ template {
|
|
|
3446
3445
|
text-align: center;
|
|
3447
3446
|
background-color: transparent;
|
|
3448
3447
|
cursor: pointer;
|
|
3448
|
+
white-space: nowrap;
|
|
3449
|
+
overflow: hidden;
|
|
3450
|
+
text-overflow: ellipsis;
|
|
3449
3451
|
-webkit-transition: color 0.3s, background-color 0.3s, border-color 0.3s;
|
|
3450
3452
|
transition: color 0.3s, background-color 0.3s, border-color 0.3s;
|
|
3451
3453
|
}
|
|
@@ -11580,9 +11582,7 @@ textarea {
|
|
|
11580
11582
|
}
|
|
11581
11583
|
.kd-pagination.less .kd-pagination-pages-item:hover button,
|
|
11582
11584
|
.kd-pagination.less .kd-pagination-pages-item:active button,
|
|
11583
|
-
.kd-pagination.less .kd-pagination-pages-item.active button
|
|
11584
|
-
.kd-pagination.less .kd-pagination-pages-item:first-child button,
|
|
11585
|
-
.kd-pagination.less .kd-pagination-pages-item:last-child button {
|
|
11585
|
+
.kd-pagination.less .kd-pagination-pages-item.active button {
|
|
11586
11586
|
color: var(--kd-g-color-theme, #5582f3);
|
|
11587
11587
|
}
|
|
11588
11588
|
.kd-pagination.less .kd-pagination-pages-item:first-child button,
|
|
@@ -18265,9 +18265,6 @@ textarea {
|
|
|
18265
18265
|
.kd-transfer-operation .kd-btn + .kd-btn {
|
|
18266
18266
|
margin-top: 20px;
|
|
18267
18267
|
}
|
|
18268
|
-
.kd-transfer-operation .kd-btn .kd-btn-iconWrapper-left {
|
|
18269
|
-
float: none;
|
|
18270
|
-
}
|
|
18271
18268
|
|
|
18272
18269
|
/* ----------- color ——————---- start */
|
|
18273
18270
|
/* ----------- color ——————---- end */
|
|
@@ -18402,7 +18399,7 @@ textarea {
|
|
|
18402
18399
|
flex-grow: 1;
|
|
18403
18400
|
font-size: var(--kd-c-tree-font-size, var(--kd-g-font-size-small, 12px));
|
|
18404
18401
|
color: var(--kd-c-tree-color-text, var(--kd-g-color-text-primary, #212121));
|
|
18405
|
-
margin-left: var(--kd-c-tree-spacing-margin-left,
|
|
18402
|
+
margin-left: var(--kd-c-tree-spacing-margin-left, 0px);
|
|
18406
18403
|
}
|
|
18407
18404
|
.kd-tree-root {
|
|
18408
18405
|
min-width: 100%;
|