@kdcloudjs/kdesign 1.7.23 → 1.7.24
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 +41 -0
- package/dist/kdesign-complete.less +18 -7
- package/dist/kdesign.css +46 -8
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +425 -180
- 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 +36 -19
- package/es/city-picker/city-picker.js +6 -3
- package/es/city-picker/interface.d.ts +1 -0
- package/es/city-picker/style/index.css +2 -0
- package/es/city-picker/style/index.less +1 -0
- package/es/input-number/inputNumber.js +5 -2
- package/es/radio/style/index.css +1 -0
- package/es/radio/style/index.less +1 -0
- package/es/search/search.js +2 -1
- package/es/select/select.js +3 -2
- package/es/select/style/index.css +6 -3
- package/es/select/style/index.less +10 -4
- package/es/select/style/token.less +1 -1
- package/es/style/core/motion/slide.less +5 -2
- package/es/style/index.css +36 -4
- package/es/table/api.js +19 -3
- package/lib/_utils/usePopper.js +36 -19
- package/lib/city-picker/city-picker.js +6 -3
- package/lib/city-picker/interface.d.ts +1 -0
- package/lib/city-picker/style/index.css +2 -0
- package/lib/city-picker/style/index.less +1 -0
- package/lib/input-number/inputNumber.js +5 -2
- package/lib/radio/style/index.css +1 -0
- package/lib/radio/style/index.less +1 -0
- package/lib/search/search.js +2 -1
- package/lib/select/select.js +3 -2
- package/lib/select/style/index.css +6 -3
- package/lib/select/style/index.less +10 -4
- package/lib/select/style/token.less +1 -1
- package/lib/style/core/motion/slide.less +5 -2
- package/lib/style/index.css +36 -4
- package/lib/table/api.js +19 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
## [1.7.23](https://github.com/kdcloudone/kdesign/compare/v1.7.22...v1.7.23) (2023-08-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 国际化token开放 取消checkbox的label的display属性修改 ([a87bdd9](https://github.com/kdcloudone/kdesign/commit/a87bdd91a4e97e5b94c595d3cd87008819315bf3))
|
|
7
|
+
* 国际化token开放 取消checkbox的label的display属性修改 ([7667025](https://github.com/kdcloudone/kdesign/commit/7667025082d03a5f9cda3bd66fe166753b90065c))
|
|
8
|
+
* 国际化token开放 取消checkbox的label的display属性修改 ([9015d5b](https://github.com/kdcloudone/kdesign/commit/9015d5bdf9da8ae668f6f9a17c9410b8963204d1))
|
|
9
|
+
* 国际化token开放 取消checkbox的label的display属性修改 ([bd550f0](https://github.com/kdcloudone/kdesign/commit/bd550f0b7be7f82659bbc3c63dd51f25f6f5d385))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [1.7.22](https://github.com/kdcloudone/kdesign/compare/v1.7.21...v1.7.22) (2023-08-18)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* [base-data] 修复demo中历史记录会重复的问题 fix [#361](https://github.com/kdcloudone/kdesign/issues/361) ([4967bb6](https://github.com/kdcloudone/kdesign/commit/4967bb63bcfe7ee508bc9a9e24f89e19175ad3c9))
|
|
19
|
+
* [checkboxgroup]checbox.Group ConfigProver 配置不生效 [#418](https://github.com/kdcloudone/kdesign/issues/418) ([5134661](https://github.com/kdcloudone/kdesign/commit/51346614a2e4dc183801e39d29b323ec0cb14d45))
|
|
20
|
+
* [cli] 更新单测 ([5241f79](https://github.com/kdcloudone/kdesign/commit/5241f797dc572bb7e4c757973b5e85a96fe04ff9))
|
|
21
|
+
* [cli] 添加页面的title显示 fix [#394](https://github.com/kdcloudone/kdesign/issues/394) ([08557fa](https://github.com/kdcloudone/kdesign/commit/08557fa8b21f658069b1c56909610d651a676a72))
|
|
22
|
+
* [collapse]修复边框问题 fix [#433](https://github.com/kdcloudone/kdesign/issues/433) ([3efbd79](https://github.com/kdcloudone/kdesign/commit/3efbd797205aaed04fab42039e8907eebf7baa54))
|
|
23
|
+
* [dropdown] 子元素为空的时候,报错 [#421](https://github.com/kdcloudone/kdesign/issues/421) ([e2ba6ae](https://github.com/kdcloudone/kdesign/commit/e2ba6ae8617f3f52fcf7ea2ad01ccb82ed1166df))
|
|
24
|
+
* [input-number] 修复文档描述与实际效果不符 fix [#420](https://github.com/kdcloudone/kdesign/issues/420) ([6e5c1be](https://github.com/kdcloudone/kdesign/commit/6e5c1be50201afcbde6dd04973990d3554eee831))
|
|
25
|
+
* [input-number] 修复defaultValue不生效问题 fix [#407](https://github.com/kdcloudone/kdesign/issues/407) ([5827b20](https://github.com/kdcloudone/kdesign/commit/5827b208d4b510abb654a7346a596bf81a9f4a03))
|
|
26
|
+
* [menu]修复二级菜单渲染问题 fix [#344](https://github.com/kdcloudone/kdesign/issues/344) ([bcb12f4](https://github.com/kdcloudone/kdesign/commit/bcb12f4ef377439a8e76f66ad0b5b691db3f1275))
|
|
27
|
+
* [menu]修复defaultOpenKeys问题 fix [#353](https://github.com/kdcloudone/kdesign/issues/353) ([7616f25](https://github.com/kdcloudone/kdesign/commit/7616f25429801e96b7a96cda42f619449002a94a))
|
|
28
|
+
* [modal] 修复button点击不失焦,按enter多次弹出modal问题 fix [#414](https://github.com/kdcloudone/kdesign/issues/414) ([3a053db](https://github.com/kdcloudone/kdesign/commit/3a053db8c657a3811958a5be9d2e07b4ee4e754c))
|
|
29
|
+
* [timeline] 修复设置reverse后的视觉偏差 fix [#409](https://github.com/kdcloudone/kdesign/issues/409) ([a6d64d8](https://github.com/kdcloudone/kdesign/commit/a6d64d8d4ded6b658a5df1c5c29e17117eab08f6))
|
|
30
|
+
* [tooltip]: Tooltip文字提示 没有子元素的时候报错 [#406](https://github.com/kdcloudone/kdesign/issues/406) ([6effeaa](https://github.com/kdcloudone/kdesign/commit/6effeaa8b53cfc92cd989a9bd1a118fd6be7a0f7))
|
|
31
|
+
* [tree] 修复虚拟滚动节点过长无滚动条问题 fix [#530](https://github.com/kdcloudone/kdesign/issues/530) ([080b3b0](https://github.com/kdcloudone/kdesign/commit/080b3b05a3972f48e0e3b6e7962a4768dffea060))
|
|
32
|
+
* [tree] 修复虚拟滚动列表高度未撑满整个树组件 fix [#526](https://github.com/kdcloudone/kdesign/issues/526) ([4ac601a](https://github.com/kdcloudone/kdesign/commit/4ac601a3d04fdc0aeae184619c60f6b86c9229b2))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* [input]新增focus/blur实例方法 fix [#523](https://github.com/kdcloudone/kdesign/issues/523) ([045d829](https://github.com/kdcloudone/kdesign/commit/045d8290afbc49565a1f143d186a1a3641cf3cbd))
|
|
38
|
+
* [select] 新增focus,blur实例方法 fix [#429](https://github.com/kdcloudone/kdesign/issues/429) ([f9436c2](https://github.com/kdcloudone/kdesign/commit/f9436c24f1d0b6bfa00db698554bcba7dcdb55ed))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
1
42
|
## [1.7.21](https://github.com/kdcloudone/kdesign/compare/v1.7.20...v1.7.21) (2023-08-11)
|
|
2
43
|
|
|
3
44
|
|
|
@@ -2687,6 +2687,7 @@
|
|
|
2687
2687
|
padding: 8px 0;
|
|
2688
2688
|
max-height: 320px;
|
|
2689
2689
|
overflow-y: auto;
|
|
2690
|
+
box-sizing: content-box;
|
|
2690
2691
|
|
|
2691
2692
|
// 下拉列表选项
|
|
2692
2693
|
&-item {
|
|
@@ -8565,6 +8566,7 @@ textarea {
|
|
|
8565
8566
|
font-size: @radio-font-size;
|
|
8566
8567
|
max-width: @radio-default-label-max-width;
|
|
8567
8568
|
overflow: hidden;
|
|
8569
|
+
min-height: @radio-circle-size;
|
|
8568
8570
|
|
|
8569
8571
|
&::before {
|
|
8570
8572
|
position: absolute;
|
|
@@ -9789,10 +9791,10 @@ textarea {
|
|
|
9789
9791
|
left: 0;
|
|
9790
9792
|
z-index: @select-z-index;
|
|
9791
9793
|
box-sizing: border-box;
|
|
9792
|
-
padding:
|
|
9794
|
+
padding: @select-dropdown-padding-vertical 0;
|
|
9793
9795
|
margin: 0;
|
|
9794
9796
|
overflow: auto;
|
|
9795
|
-
font-size: @select-list-font-size;
|
|
9797
|
+
font-size: @select-list-font-size;
|
|
9796
9798
|
font-variant: initial;
|
|
9797
9799
|
background-color: @select-dropdown-bg;
|
|
9798
9800
|
border-radius: @select-g-radius-border;
|
|
@@ -9816,6 +9818,12 @@ textarea {
|
|
|
9816
9818
|
}
|
|
9817
9819
|
}
|
|
9818
9820
|
|
|
9821
|
+
&-multiple-dropdown-panel {
|
|
9822
|
+
.@{select-prefix-cls}-dropdown {
|
|
9823
|
+
padding-bottom: 0;
|
|
9824
|
+
}
|
|
9825
|
+
}
|
|
9826
|
+
|
|
9819
9827
|
// 下拉列表选项
|
|
9820
9828
|
&-item {
|
|
9821
9829
|
.item();
|
|
@@ -10061,8 +10069,8 @@ textarea {
|
|
|
10061
10069
|
align-items: center;
|
|
10062
10070
|
width: 100%;
|
|
10063
10071
|
padding: 0 12px;
|
|
10064
|
-
height:
|
|
10065
|
-
line-height:
|
|
10072
|
+
height: 40px;
|
|
10073
|
+
line-height: 40px;
|
|
10066
10074
|
border-top: 1px solid #d9d9d9;
|
|
10067
10075
|
box-sizing: border-box;
|
|
10068
10076
|
|
|
@@ -10171,7 +10179,6 @@ textarea {
|
|
|
10171
10179
|
|
|
10172
10180
|
@select-custom-prefix: ~'--@{kd-prefix}-c-select';
|
|
10173
10181
|
|
|
10174
|
-
|
|
10175
10182
|
// color
|
|
10176
10183
|
@select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
10177
10184
|
@select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', #fff);
|
|
@@ -10214,6 +10221,7 @@ textarea {
|
|
|
10214
10221
|
// spacing
|
|
10215
10222
|
@select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
|
|
10216
10223
|
@select-wrapper-padding: var(~'@{select-custom-prefix}-wrapper-spacing-padding', 1px 28px 1px 0);
|
|
10224
|
+
@select-dropdown-padding-vertical: var(~'@{select-custom-prefix}-dropdown-spacing-padding-vertical', 8px);
|
|
10217
10225
|
|
|
10218
10226
|
// radius
|
|
10219
10227
|
@select-g-radius-border: var(~'@{select-custom-prefix}-radius-border', @radius-border);
|
|
@@ -11524,12 +11532,15 @@ textarea {
|
|
|
11524
11532
|
.slide-motion(topLeft, kdSlideDown, kd-cascader-menus);
|
|
11525
11533
|
.slide-motion(bottomLeft, kdSlideUp, kd-cascader-menus);
|
|
11526
11534
|
|
|
11527
|
-
.slide-motion(topLeft, kdSlideDown, kd-select);
|
|
11528
|
-
.slide-motion(bottomLeft, kdSlideUp, kd-select);
|
|
11535
|
+
.slide-motion(topLeft, kdSlideDown, kd-select-dropdown-panel);
|
|
11536
|
+
.slide-motion(bottomLeft, kdSlideUp, kd-select-dropdown-panel);
|
|
11529
11537
|
|
|
11530
11538
|
.slide-motion(topLeft, kdSlideDown, kd-date-picker-panel);
|
|
11531
11539
|
.slide-motion(bottomLeft, kdSlideUp, kd-date-picker-panel);
|
|
11532
11540
|
|
|
11541
|
+
.slide-motion(topLeft, kdSlideDown, kd-city-picker-dropdown);
|
|
11542
|
+
.slide-motion(bottomLeft, kdSlideUp, kd-city-picker-dropdown);
|
|
11543
|
+
|
|
11533
11544
|
@keyframes kdSlideCenterIn {
|
|
11534
11545
|
0% {
|
|
11535
11546
|
opacity: 0;
|
package/dist/kdesign.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.7.
|
|
3
|
+
* @kdcloudjs/kdesign v1.7.23
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1599
1599
|
animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1600
1600
|
}
|
|
1601
|
-
.kd-select.topLeft-active {
|
|
1601
|
+
.kd-select-dropdown-panel.topLeft-active {
|
|
1602
1602
|
-webkit-animation-name: kdSlideDownIn;
|
|
1603
1603
|
animation-name: kdSlideDownIn;
|
|
1604
1604
|
-webkit-animation-duration: calc(0.3s - 0.1s);
|
|
@@ -1606,7 +1606,7 @@
|
|
|
1606
1606
|
-webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1607
1607
|
animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1608
1608
|
}
|
|
1609
|
-
.kd-select.topLeft.hidden {
|
|
1609
|
+
.kd-select-dropdown-panel.topLeft.hidden {
|
|
1610
1610
|
-webkit-animation-name: kdSlideDownOut;
|
|
1611
1611
|
animation-name: kdSlideDownOut;
|
|
1612
1612
|
-webkit-animation-duration: 0.1s;
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1615
1615
|
animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1616
1616
|
}
|
|
1617
|
-
.kd-select.bottomLeft-active {
|
|
1617
|
+
.kd-select-dropdown-panel.bottomLeft-active {
|
|
1618
1618
|
-webkit-animation-name: kdSlideUpIn;
|
|
1619
1619
|
animation-name: kdSlideUpIn;
|
|
1620
1620
|
-webkit-animation-duration: calc(0.3s - 0.1s);
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
-webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1623
1623
|
animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1624
1624
|
}
|
|
1625
|
-
.kd-select.bottomLeft.hidden {
|
|
1625
|
+
.kd-select-dropdown-panel.bottomLeft.hidden {
|
|
1626
1626
|
-webkit-animation-name: kdSlideUpOut;
|
|
1627
1627
|
animation-name: kdSlideUpOut;
|
|
1628
1628
|
-webkit-animation-duration: 0.1s;
|
|
@@ -1662,6 +1662,38 @@
|
|
|
1662
1662
|
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1663
1663
|
animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1664
1664
|
}
|
|
1665
|
+
.kd-city-picker-dropdown.topLeft-active {
|
|
1666
|
+
-webkit-animation-name: kdSlideDownIn;
|
|
1667
|
+
animation-name: kdSlideDownIn;
|
|
1668
|
+
-webkit-animation-duration: calc(0.3s - 0.1s);
|
|
1669
|
+
animation-duration: calc(0.3s - 0.1s);
|
|
1670
|
+
-webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1671
|
+
animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1672
|
+
}
|
|
1673
|
+
.kd-city-picker-dropdown.topLeft.hidden {
|
|
1674
|
+
-webkit-animation-name: kdSlideDownOut;
|
|
1675
|
+
animation-name: kdSlideDownOut;
|
|
1676
|
+
-webkit-animation-duration: 0.1s;
|
|
1677
|
+
animation-duration: 0.1s;
|
|
1678
|
+
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1679
|
+
animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1680
|
+
}
|
|
1681
|
+
.kd-city-picker-dropdown.bottomLeft-active {
|
|
1682
|
+
-webkit-animation-name: kdSlideUpIn;
|
|
1683
|
+
animation-name: kdSlideUpIn;
|
|
1684
|
+
-webkit-animation-duration: calc(0.3s - 0.1s);
|
|
1685
|
+
animation-duration: calc(0.3s - 0.1s);
|
|
1686
|
+
-webkit-animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1687
|
+
animation-timing-function: cubic-bezier(0, 0.4, 0.4, 1);
|
|
1688
|
+
}
|
|
1689
|
+
.kd-city-picker-dropdown.bottomLeft.hidden {
|
|
1690
|
+
-webkit-animation-name: kdSlideUpOut;
|
|
1691
|
+
animation-name: kdSlideUpOut;
|
|
1692
|
+
-webkit-animation-duration: 0.1s;
|
|
1693
|
+
animation-duration: 0.1s;
|
|
1694
|
+
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1695
|
+
animation-timing-function: cubic-bezier(0.4, 0, 1, 0.6);
|
|
1696
|
+
}
|
|
1665
1697
|
@-webkit-keyframes kdSlideCenterIn {
|
|
1666
1698
|
0% {
|
|
1667
1699
|
opacity: 0;
|
|
@@ -5538,6 +5570,8 @@ template {
|
|
|
5538
5570
|
padding: 8px 0;
|
|
5539
5571
|
max-height: 320px;
|
|
5540
5572
|
overflow-y: auto;
|
|
5573
|
+
-webkit-box-sizing: content-box;
|
|
5574
|
+
box-sizing: content-box;
|
|
5541
5575
|
}
|
|
5542
5576
|
.kd-city-picker-list-item {
|
|
5543
5577
|
position: relative;
|
|
@@ -13487,6 +13521,7 @@ textarea {
|
|
|
13487
13521
|
font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
|
|
13488
13522
|
max-width: var(--kd-c-radio-default-label-max-width);
|
|
13489
13523
|
overflow: hidden;
|
|
13524
|
+
min-height: var(--kd-c-radio-square-sizing-width-height, 14px);
|
|
13490
13525
|
}
|
|
13491
13526
|
.kd-radio::before {
|
|
13492
13527
|
position: absolute;
|
|
@@ -15118,7 +15153,7 @@ textarea {
|
|
|
15118
15153
|
z-index: var(--kd-c-select-z-index, var(--kd-g-z-index-popper, 1050));
|
|
15119
15154
|
-webkit-box-sizing: border-box;
|
|
15120
15155
|
box-sizing: border-box;
|
|
15121
|
-
padding: 8px 0;
|
|
15156
|
+
padding: var(--kd-c-select-dropdown-spacing-padding-vertical, 8px) 0;
|
|
15122
15157
|
margin: 0;
|
|
15123
15158
|
overflow: auto;
|
|
15124
15159
|
font-size: var(--kd-c-select-dropdown-font-size, 12px);
|
|
@@ -15141,6 +15176,9 @@ textarea {
|
|
|
15141
15176
|
.kd-select-dropdown-search-hidden {
|
|
15142
15177
|
display: none;
|
|
15143
15178
|
}
|
|
15179
|
+
.kd-select-multiple-dropdown-panel .kd-select-dropdown {
|
|
15180
|
+
padding-bottom: 0;
|
|
15181
|
+
}
|
|
15144
15182
|
.kd-select-item {
|
|
15145
15183
|
position: relative;
|
|
15146
15184
|
display: block;
|
|
@@ -15407,8 +15445,8 @@ textarea {
|
|
|
15407
15445
|
align-items: center;
|
|
15408
15446
|
width: 100%;
|
|
15409
15447
|
padding: 0 12px;
|
|
15410
|
-
height:
|
|
15411
|
-
line-height:
|
|
15448
|
+
height: 40px;
|
|
15449
|
+
line-height: 40px;
|
|
15412
15450
|
border-top: 1px solid #d9d9d9;
|
|
15413
15451
|
-webkit-box-sizing: border-box;
|
|
15414
15452
|
box-sizing: border-box;
|