@kdcloudjs/kdesign 1.7.22 → 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 +75 -21
- package/dist/kdesign.css +79 -12
- 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/button/style/index.css +3 -0
- package/es/button/style/index.less +3 -3
- package/es/button/style/mixin.less +2 -1
- package/es/button/style/token.less +3 -0
- package/es/checkbox/style/index.css +1 -0
- package/es/checkbox/style/index.less +1 -0
- package/es/checkbox/style/token.less +1 -0
- 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/filter/style/index.css +6 -0
- package/es/filter/style/index.less +7 -0
- package/es/filter/style/token.less +4 -0
- package/es/form/style/index.css +1 -1
- package/es/form/style/index.less +1 -1
- package/es/form/style/token.less +1 -1
- package/es/input-number/inputNumber.js +5 -2
- package/es/menu/style/index.css +2 -1
- package/es/menu/style/mixin.less +2 -1
- package/es/menu/style/token.less +2 -0
- package/es/radio/style/index.css +8 -0
- package/es/radio/style/index.less +6 -1
- package/es/radio/style/token.less +3 -0
- package/es/search/search.js +2 -1
- package/es/search/style/index.css +1 -0
- package/es/search/style/index.less +1 -0
- package/es/search/style/token.less +1 -0
- 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/es/tag/style/index.css +6 -0
- package/es/tag/style/index.less +3 -3
- package/es/tag/style/mixin.less +3 -1
- package/es/tag/style/token.less +2 -0
- package/es/timeline/style/index.css +2 -0
- package/es/timeline/style/index.less +3 -0
- package/es/timeline/style/token.less +2 -0
- package/es/transfer/style/index.css +2 -2
- package/es/transfer/style/index.less +2 -2
- package/es/transfer/style/token.less +1 -0
- package/es/tree/style/index.css +2 -0
- package/es/tree/style/index.less +2 -0
- package/es/tree/style/token.less +2 -0
- package/lib/_utils/usePopper.js +36 -19
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/index.less +3 -3
- package/lib/button/style/mixin.less +2 -1
- package/lib/button/style/token.less +3 -0
- package/lib/checkbox/style/index.css +1 -0
- package/lib/checkbox/style/index.less +1 -0
- package/lib/checkbox/style/token.less +1 -0
- 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/filter/style/index.css +6 -0
- package/lib/filter/style/index.less +7 -0
- package/lib/filter/style/token.less +4 -0
- package/lib/form/style/index.css +1 -1
- package/lib/form/style/index.less +1 -1
- package/lib/form/style/token.less +1 -1
- package/lib/input-number/inputNumber.js +5 -2
- package/lib/menu/style/index.css +2 -1
- package/lib/menu/style/mixin.less +2 -1
- package/lib/menu/style/token.less +2 -0
- package/lib/radio/style/index.css +8 -0
- package/lib/radio/style/index.less +6 -1
- package/lib/radio/style/token.less +3 -0
- package/lib/search/search.js +2 -1
- package/lib/search/style/index.css +1 -0
- package/lib/search/style/index.less +1 -0
- package/lib/search/style/token.less +1 -0
- 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/lib/tag/style/index.css +6 -0
- package/lib/tag/style/index.less +3 -3
- package/lib/tag/style/mixin.less +3 -1
- package/lib/tag/style/token.less +2 -0
- package/lib/timeline/style/index.css +2 -0
- package/lib/timeline/style/index.less +3 -0
- package/lib/timeline/style/token.less +2 -0
- package/lib/transfer/style/index.css +2 -2
- package/lib/transfer/style/index.less +2 -2
- package/lib/transfer/style/token.less +1 -0
- package/lib/tree/style/index.css +2 -0
- package/lib/tree/style/index.less +2 -0
- package/lib/tree/style/token.less +2 -0
- 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
|
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
|
|
1027
1027
|
// 小号尺寸按钮
|
|
1028
1028
|
&-size-small {
|
|
1029
|
-
.btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width);
|
|
1029
|
+
.btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width, @btn-small-max-width);
|
|
1030
1030
|
&.@{btn-prefix-cls}-icon-only {
|
|
1031
1031
|
font-size: @btn-icon-small-font-size;
|
|
1032
1032
|
padding: 0 @btn-icon-padding-horizontal;
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
|
|
1043
1043
|
// 中号尺寸按钮
|
|
1044
1044
|
&-size-middle {
|
|
1045
|
-
.btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width);
|
|
1045
|
+
.btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width, @btn-middle-max-width);
|
|
1046
1046
|
&.@{btn-prefix-cls}-icon-only {
|
|
1047
1047
|
font-size: @btn-icon-middle-font-size;
|
|
1048
1048
|
padding: 0 @btn-icon-padding-horizontal;
|
|
@@ -1058,7 +1058,7 @@
|
|
|
1058
1058
|
|
|
1059
1059
|
// 大号尺寸按钮
|
|
1060
1060
|
&-size-large {
|
|
1061
|
-
.btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width);
|
|
1061
|
+
.btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width, @btn-large-max-width);
|
|
1062
1062
|
&.@{btn-prefix-cls}-icon-only {
|
|
1063
1063
|
font-size: @btn-icon-large-font-size;
|
|
1064
1064
|
padding: 0 @btn-icon-padding-horizontal;
|
|
@@ -1302,12 +1302,13 @@
|
|
|
1302
1302
|
color: @color;
|
|
1303
1303
|
}
|
|
1304
1304
|
// 各个按钮尺寸的样式Mixins
|
|
1305
|
-
.btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
|
|
1305
|
+
.btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width,@max-width) {
|
|
1306
1306
|
height: @height;
|
|
1307
1307
|
min-width: @min-width;
|
|
1308
1308
|
line-height: calc(@height - (@padding-vertical * 2) - (@btn-border-width * 2));
|
|
1309
1309
|
font-size: @font-size;
|
|
1310
1310
|
padding: @padding-vertical @padding-horizontal;
|
|
1311
|
+
max-width: @max-width;
|
|
1311
1312
|
}
|
|
1312
1313
|
// 圆形按钮不同尺寸的样式Mixins
|
|
1313
1314
|
.btn-shape-circle-width(@width) {
|
|
@@ -1405,11 +1406,14 @@
|
|
|
1405
1406
|
@btn-border-width: var(~'@{button-custom-prefix}-sizing-border', 1px);
|
|
1406
1407
|
@btn-small-height: var(~'@{button-custom-prefix}-sizing-height-small', 24px); // 小号 高度
|
|
1407
1408
|
@btn-small-min-width: var(~'@{button-custom-prefix}-sizing-min-width-small', 60px); // 小号 最小宽度
|
|
1409
|
+
@btn-small-max-width: var(~'@{button-custom-prefix}-sizing-max-width-small'); // 小号 最大宽度
|
|
1408
1410
|
@btn-middle-height: var(~'@{button-custom-prefix}-sizing-height-middle', 28px); // 中号 高度 高度配置
|
|
1409
1411
|
@btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
|
|
1412
|
+
@btn-middle-max-width: var(~'@{button-custom-prefix}-sizing-max-width-middle'); // 中号 最大宽度
|
|
1410
1413
|
@btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
|
|
1411
1414
|
@btn-middle-max-width: var(~'@{button-custom-prefix}-sizing-max-width-middle'); // 中号 最大宽度
|
|
1412
1415
|
@btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
|
|
1416
|
+
@btn-large-max-width: var(~'@{button-custom-prefix}-sizing-max-width-large'); // 大号 最大宽度
|
|
1413
1417
|
@btn-group-dropdown-item-height: var(~'@{button-custom-prefix}--group-dropdown-item-height', 30px);
|
|
1414
1418
|
@btn-group-dropdown-min-width: var(~'@{button-custom-prefix}-group-dropdown-min-width', 80px);
|
|
1415
1419
|
|
|
@@ -2211,6 +2215,7 @@
|
|
|
2211
2215
|
overflow: hidden;
|
|
2212
2216
|
white-space: nowrap;
|
|
2213
2217
|
text-overflow: ellipsis;
|
|
2218
|
+
max-width: @checkbox-default-input-label-max-width;
|
|
2214
2219
|
|
|
2215
2220
|
.kd-input-underline {
|
|
2216
2221
|
background-color: transparent;
|
|
@@ -2466,6 +2471,7 @@
|
|
|
2466
2471
|
@checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 14px); // 勾选输入框高度
|
|
2467
2472
|
@checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 14px); // 勾选输入框宽度
|
|
2468
2473
|
@checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
|
|
2474
|
+
@checkbox-default-input-label-max-width: var(~'@{checkbox-prefix}-default-input-label-max-width'); // 勾选输入框便签文本最大宽度,默认为未设置。
|
|
2469
2475
|
@checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
|
|
2470
2476
|
@checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
|
|
2471
2477
|
@checkbox-default-indeterminate-square: var(~'@{checkbox-prefix}-default-indeterminate-sizing-square', 6px); // 半选框的大小
|
|
@@ -2681,6 +2687,7 @@
|
|
|
2681
2687
|
padding: 8px 0;
|
|
2682
2688
|
max-height: 320px;
|
|
2683
2689
|
overflow-y: auto;
|
|
2690
|
+
box-sizing: content-box;
|
|
2684
2691
|
|
|
2685
2692
|
// 下拉列表选项
|
|
2686
2693
|
&-item {
|
|
@@ -4713,6 +4720,7 @@
|
|
|
4713
4720
|
&-item-text {
|
|
4714
4721
|
max-width: 224px;
|
|
4715
4722
|
.ellipsis;
|
|
4723
|
+
display: block;
|
|
4716
4724
|
}
|
|
4717
4725
|
}
|
|
4718
4726
|
|
|
@@ -4807,6 +4815,7 @@
|
|
|
4807
4815
|
padding: 11px 0 10px;
|
|
4808
4816
|
color: @color-text-third;
|
|
4809
4817
|
line-height: 18px;
|
|
4818
|
+
width: @filter-body-condition-label-width;
|
|
4810
4819
|
}
|
|
4811
4820
|
|
|
4812
4821
|
&-options {
|
|
@@ -4831,6 +4840,11 @@
|
|
|
4831
4840
|
border: 1px solid transparent;
|
|
4832
4841
|
cursor: pointer;
|
|
4833
4842
|
white-space: nowrap;
|
|
4843
|
+
max-width: @filter-body-condition-option-max-width;
|
|
4844
|
+
overflow: hidden;
|
|
4845
|
+
display: inline-block;
|
|
4846
|
+
text-overflow: ellipsis;
|
|
4847
|
+
|
|
4834
4848
|
|
|
4835
4849
|
&:not(:last-child) {
|
|
4836
4850
|
margin-right: 24px;
|
|
@@ -4971,6 +4985,10 @@
|
|
|
4971
4985
|
@filter-handle-font-size: var(~'@{filter-custom-prefix}-handle-font-size', @font-size-middle);
|
|
4972
4986
|
@filter-body-tabs-item-font-size: var(~'@{filter-custom-prefix}-body-tabs-item-font-size', @font-size-middle);
|
|
4973
4987
|
|
|
4988
|
+
//sizing
|
|
4989
|
+
@filter-body-condition-label-width: var(~'@{filter-custom-prefix}-body-condition-label-width');
|
|
4990
|
+
@filter-body-condition-option-max-width: var(~'@{filter-custom-prefix}-body-condition-option-max-width');
|
|
4991
|
+
|
|
4974
4992
|
|
|
4975
4993
|
|
|
4976
4994
|
|
|
@@ -5012,7 +5030,7 @@
|
|
|
5012
5030
|
flex-direction: column;
|
|
5013
5031
|
|
|
5014
5032
|
.@{field-label-cls} {
|
|
5015
|
-
margin-bottom:
|
|
5033
|
+
margin-bottom: @form-field-label-spacing-margin-bottom;
|
|
5016
5034
|
}
|
|
5017
5035
|
}
|
|
5018
5036
|
|
|
@@ -5085,7 +5103,7 @@
|
|
|
5085
5103
|
@form-field-spacing-margin-bottom: var(~'@{form-prefix}-field-spacing-margin-bottom', 22px);
|
|
5086
5104
|
@form-field-message-spacing-padding-horizontal: var(~'@{form-prefix}-field-message-spacing-padding-horizontal', 2px);
|
|
5087
5105
|
@form-field-message-spacing-padding-vertical: var(~'@{form-prefix}-field-message-spacing-padding-vertical', 8px);
|
|
5088
|
-
|
|
5106
|
+
@form-field-label-spacing-margin-bottom: var(~'@{form-prefix}-field-label-spacing-margin-bottom', 5px);
|
|
5089
5107
|
|
|
5090
5108
|
|
|
5091
5109
|
|
|
@@ -6791,7 +6809,8 @@ textarea {
|
|
|
6791
6809
|
position: relative;
|
|
6792
6810
|
width: 100%;
|
|
6793
6811
|
height: 100%;
|
|
6794
|
-
min-width:
|
|
6812
|
+
min-width: @menu-min-width;
|
|
6813
|
+
max-width: @menu-max-width;
|
|
6795
6814
|
background-color: @menu-color-background;
|
|
6796
6815
|
color: @menu-sub-color;
|
|
6797
6816
|
}
|
|
@@ -6968,6 +6987,8 @@ textarea {
|
|
|
6968
6987
|
@menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
|
|
6969
6988
|
|
|
6970
6989
|
// sizing
|
|
6990
|
+
@menu-max-width: var(~'@{menu-prefix}-sizing-max-width');
|
|
6991
|
+
@menu-min-width: var(~'@{menu-prefix}-sizing-min-width',138px);
|
|
6971
6992
|
@menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
|
|
6972
6993
|
|
|
6973
6994
|
// z-index
|
|
@@ -8543,6 +8564,9 @@ textarea {
|
|
|
8543
8564
|
vertical-align: middle;
|
|
8544
8565
|
color: @radio-font-color;
|
|
8545
8566
|
font-size: @radio-font-size;
|
|
8567
|
+
max-width: @radio-default-label-max-width;
|
|
8568
|
+
overflow: hidden;
|
|
8569
|
+
min-height: @radio-circle-size;
|
|
8546
8570
|
|
|
8547
8571
|
&::before {
|
|
8548
8572
|
position: absolute;
|
|
@@ -8673,6 +8697,7 @@ textarea {
|
|
|
8673
8697
|
border-radius: @radius-size;
|
|
8674
8698
|
border: @radio-border-width solid @radio-color-border;
|
|
8675
8699
|
transition: all @transition-duration;
|
|
8700
|
+
max-width: @radio-square-label-max-width;
|
|
8676
8701
|
|
|
8677
8702
|
&::after {
|
|
8678
8703
|
position: absolute;
|
|
@@ -8762,7 +8787,7 @@ textarea {
|
|
|
8762
8787
|
// 按钮类型(切换按钮)
|
|
8763
8788
|
.@{radio-button-prefix-cls} {
|
|
8764
8789
|
.reset-component();
|
|
8765
|
-
|
|
8790
|
+
.ellipsis();
|
|
8766
8791
|
// 默认状态
|
|
8767
8792
|
position: relative;
|
|
8768
8793
|
display: inline-block;
|
|
@@ -8780,6 +8805,7 @@ textarea {
|
|
|
8780
8805
|
border: @radio-border-width solid @radio-color-border;
|
|
8781
8806
|
border-left: none;
|
|
8782
8807
|
transition: all @transition-duration;
|
|
8808
|
+
max-width: @radio-button-label-max-width;
|
|
8783
8809
|
|
|
8784
8810
|
&:first-child {
|
|
8785
8811
|
border-radius: @radius-size 0 0 @radius-size;
|
|
@@ -8905,6 +8931,9 @@ textarea {
|
|
|
8905
8931
|
// sizing
|
|
8906
8932
|
@radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',14px);//单选图标大小
|
|
8907
8933
|
@radio-square-height: var(~'@{radio-prefix}-square-sizing-height',32px);//单选框 高度
|
|
8934
|
+
@radio-default-label-max-width: var(~'@{radio-prefix}-default-label-max-width');//单选默认模式 最大宽度
|
|
8935
|
+
@radio-square-label-max-width: var(~'@{radio-prefix}-square-label-max-width');//单选框模式 最大宽度
|
|
8936
|
+
@radio-button-label-max-width: var(~'@{radio-prefix}-button-label-max-width');//单选按 最大宽度
|
|
8908
8937
|
|
|
8909
8938
|
// spacing
|
|
8910
8939
|
@radio-margin-right: var(~'@{radio-prefix}-spacing-margin-right',8px);
|
|
@@ -9155,6 +9184,7 @@ textarea {
|
|
|
9155
9184
|
padding: 0 4px;
|
|
9156
9185
|
align-self: center;
|
|
9157
9186
|
.ellipsis();
|
|
9187
|
+
max-width: @search-tag-max-width;
|
|
9158
9188
|
}
|
|
9159
9189
|
&-del {
|
|
9160
9190
|
height: 14px;
|
|
@@ -9581,6 +9611,7 @@ textarea {
|
|
|
9581
9611
|
@search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
|
|
9582
9612
|
@quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
|
|
9583
9613
|
@search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
|
|
9614
|
+
@search-tag-max-width: var(~'@{search-prefix}-tag-sizing-max-width');
|
|
9584
9615
|
|
|
9585
9616
|
// color
|
|
9586
9617
|
@search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
|
|
@@ -9760,10 +9791,10 @@ textarea {
|
|
|
9760
9791
|
left: 0;
|
|
9761
9792
|
z-index: @select-z-index;
|
|
9762
9793
|
box-sizing: border-box;
|
|
9763
|
-
padding:
|
|
9794
|
+
padding: @select-dropdown-padding-vertical 0;
|
|
9764
9795
|
margin: 0;
|
|
9765
9796
|
overflow: auto;
|
|
9766
|
-
font-size: @select-list-font-size;
|
|
9797
|
+
font-size: @select-list-font-size;
|
|
9767
9798
|
font-variant: initial;
|
|
9768
9799
|
background-color: @select-dropdown-bg;
|
|
9769
9800
|
border-radius: @select-g-radius-border;
|
|
@@ -9787,6 +9818,12 @@ textarea {
|
|
|
9787
9818
|
}
|
|
9788
9819
|
}
|
|
9789
9820
|
|
|
9821
|
+
&-multiple-dropdown-panel {
|
|
9822
|
+
.@{select-prefix-cls}-dropdown {
|
|
9823
|
+
padding-bottom: 0;
|
|
9824
|
+
}
|
|
9825
|
+
}
|
|
9826
|
+
|
|
9790
9827
|
// 下拉列表选项
|
|
9791
9828
|
&-item {
|
|
9792
9829
|
.item();
|
|
@@ -10032,8 +10069,8 @@ textarea {
|
|
|
10032
10069
|
align-items: center;
|
|
10033
10070
|
width: 100%;
|
|
10034
10071
|
padding: 0 12px;
|
|
10035
|
-
height:
|
|
10036
|
-
line-height:
|
|
10072
|
+
height: 40px;
|
|
10073
|
+
line-height: 40px;
|
|
10037
10074
|
border-top: 1px solid #d9d9d9;
|
|
10038
10075
|
box-sizing: border-box;
|
|
10039
10076
|
|
|
@@ -10142,7 +10179,6 @@ textarea {
|
|
|
10142
10179
|
|
|
10143
10180
|
@select-custom-prefix: ~'--@{kd-prefix}-c-select';
|
|
10144
10181
|
|
|
10145
|
-
|
|
10146
10182
|
// color
|
|
10147
10183
|
@select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
10148
10184
|
@select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', #fff);
|
|
@@ -10185,6 +10221,7 @@ textarea {
|
|
|
10185
10221
|
// spacing
|
|
10186
10222
|
@select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
|
|
10187
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);
|
|
10188
10225
|
|
|
10189
10226
|
// radius
|
|
10190
10227
|
@select-g-radius-border: var(~'@{select-custom-prefix}-radius-border', @radius-border);
|
|
@@ -11495,12 +11532,15 @@ textarea {
|
|
|
11495
11532
|
.slide-motion(topLeft, kdSlideDown, kd-cascader-menus);
|
|
11496
11533
|
.slide-motion(bottomLeft, kdSlideUp, kd-cascader-menus);
|
|
11497
11534
|
|
|
11498
|
-
.slide-motion(topLeft, kdSlideDown, kd-select);
|
|
11499
|
-
.slide-motion(bottomLeft, kdSlideUp, kd-select);
|
|
11535
|
+
.slide-motion(topLeft, kdSlideDown, kd-select-dropdown-panel);
|
|
11536
|
+
.slide-motion(bottomLeft, kdSlideUp, kd-select-dropdown-panel);
|
|
11500
11537
|
|
|
11501
11538
|
.slide-motion(topLeft, kdSlideDown, kd-date-picker-panel);
|
|
11502
11539
|
.slide-motion(bottomLeft, kdSlideUp, kd-date-picker-panel);
|
|
11503
11540
|
|
|
11541
|
+
.slide-motion(topLeft, kdSlideDown, kd-city-picker-dropdown);
|
|
11542
|
+
.slide-motion(bottomLeft, kdSlideUp, kd-city-picker-dropdown);
|
|
11543
|
+
|
|
11504
11544
|
@keyframes kdSlideCenterIn {
|
|
11505
11545
|
0% {
|
|
11506
11546
|
opacity: 0;
|
|
@@ -13692,15 +13732,15 @@ template {
|
|
|
13692
13732
|
}
|
|
13693
13733
|
|
|
13694
13734
|
&-size-small {
|
|
13695
|
-
.tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal);
|
|
13735
|
+
.tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal, @tag-max-width, @tag-min-width);
|
|
13696
13736
|
}
|
|
13697
13737
|
|
|
13698
13738
|
&-size-middle {
|
|
13699
|
-
.tag-size(@tag-middle-font-size, @tag-middle-height, @tag-middle-padding-horizontal);
|
|
13739
|
+
.tag-size(@tag-middle-font-size, @tag-middle-height, @tag-middle-padding-horizontal, @tag-max-width, @tag-min-width);
|
|
13700
13740
|
}
|
|
13701
13741
|
|
|
13702
13742
|
&-size-large {
|
|
13703
|
-
.tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal);
|
|
13743
|
+
.tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal, @tag-max-width, @tag-min-width);
|
|
13704
13744
|
}
|
|
13705
13745
|
|
|
13706
13746
|
transition: all @tag-g-motion-duration;
|
|
@@ -13813,7 +13853,7 @@ template {
|
|
|
13813
13853
|
|
|
13814
13854
|
|
|
13815
13855
|
// code component mixin here
|
|
13816
|
-
.tag-size(@size, @height, @padding) {
|
|
13856
|
+
.tag-size(@size, @height, @padding, @max-width, @min-width) {
|
|
13817
13857
|
font-size: @size;
|
|
13818
13858
|
height: @height;
|
|
13819
13859
|
box-sizing: border-box;
|
|
@@ -13822,6 +13862,8 @@ template {
|
|
|
13822
13862
|
vertical-align: middle;
|
|
13823
13863
|
padding: 0 @padding;
|
|
13824
13864
|
border-radius: calc(@height / 2);
|
|
13865
|
+
max-width: @max-width;
|
|
13866
|
+
min-width: @min-width;
|
|
13825
13867
|
}
|
|
13826
13868
|
.tag-status(@color) {
|
|
13827
13869
|
border: 1px solid @color;
|
|
@@ -13880,6 +13922,8 @@ template {
|
|
|
13880
13922
|
@tag-small-height: var(~'@{tag-custom-prefix}-sizing-height-small', 20px);
|
|
13881
13923
|
@tag-middle-height: var(~'@{tag-custom-prefix}-sizing-height-middle', 20px);
|
|
13882
13924
|
@tag-large-height: var(~'@{tag-custom-prefix}-sizing-height-large', 24px);
|
|
13925
|
+
@tag-max-width: var(~'@{tag-custom-prefix}-sizing-max-width');
|
|
13926
|
+
@tag-min-width: var(~'@{tag-custom-prefix}-sizing-min-width');
|
|
13883
13927
|
|
|
13884
13928
|
// spacing
|
|
13885
13929
|
@tag-small-padding-horizontal: var(~'@{tag-custom-prefix}-spacing-padding-horizontal-small', 6px);
|
|
@@ -13901,6 +13945,7 @@ template {
|
|
|
13901
13945
|
overflow: hidden;
|
|
13902
13946
|
list-style: none;
|
|
13903
13947
|
|
|
13948
|
+
|
|
13904
13949
|
.@{timeline-item-prefix-cls} {
|
|
13905
13950
|
.reset-component;
|
|
13906
13951
|
position: relative;
|
|
@@ -13972,6 +14017,8 @@ template {
|
|
|
13972
14017
|
margin: 0 0 0 calc(2 * (@timeline-dot-size - @timeline-width) + @timeline-gap);
|
|
13973
14018
|
word-break: break-word;
|
|
13974
14019
|
color: @timeline-content-color-text;
|
|
14020
|
+
max-width: @timeline-content-max-width;
|
|
14021
|
+
min-width: @timeline-content-min-width;
|
|
13975
14022
|
|
|
13976
14023
|
> * {
|
|
13977
14024
|
margin: 0;
|
|
@@ -14171,6 +14218,8 @@ template {
|
|
|
14171
14218
|
|
|
14172
14219
|
// sizing
|
|
14173
14220
|
@timeline-width: var(~'@{timeline-prefix}-sizing-width',1px);
|
|
14221
|
+
@timeline-content-max-width: var(~'@{timeline-prefix}-content-sizing-max-width');
|
|
14222
|
+
@timeline-content-min-width: var(~'@{timeline-prefix}-content-sizing-min-width');
|
|
14174
14223
|
|
|
14175
14224
|
// spacing
|
|
14176
14225
|
@timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',24px);
|
|
@@ -14260,12 +14309,12 @@ template {
|
|
|
14260
14309
|
&-list {
|
|
14261
14310
|
display: flex;
|
|
14262
14311
|
flex-direction: column;
|
|
14263
|
-
width:
|
|
14312
|
+
width: @transfer-list-width;
|
|
14264
14313
|
min-height: 300px;
|
|
14265
14314
|
border: 1px solid @transfer-border-color;
|
|
14266
14315
|
|
|
14267
14316
|
&-with-pagination {
|
|
14268
|
-
width:
|
|
14317
|
+
width: @transfer-list-width;
|
|
14269
14318
|
height: auto;
|
|
14270
14319
|
}
|
|
14271
14320
|
|
|
@@ -14445,6 +14494,7 @@ template {
|
|
|
14445
14494
|
@transfer-header-height: var(~'@{transfer-custom-prefix}-header-sizing-height', 36px);
|
|
14446
14495
|
@transfer-search-height: var(~'@{transfer-custom-prefix}-search-sizing-height', 32px);
|
|
14447
14496
|
@transfer-pagination-height: var(~'@{transfer-custom-prefix}-pagination-sizing-height', 36px);
|
|
14497
|
+
@transfer-list-width: var(~'@{transfer-custom-prefix}-list-sizing-width', 250px);
|
|
14448
14498
|
|
|
14449
14499
|
// spacing
|
|
14450
14500
|
@transfer-padding-base: var(~'@{transfer-custom-prefix}-spacing-horizontal', 14px);
|
|
@@ -14470,6 +14520,8 @@ template {
|
|
|
14470
14520
|
color: @tree-color-text;
|
|
14471
14521
|
margin-left: @tree-margin-left;
|
|
14472
14522
|
padding: @tree-padding-vertical 0;
|
|
14523
|
+
max-width: @tree-root-max-width;
|
|
14524
|
+
min-width: @tree-root-min-width;
|
|
14473
14525
|
&-root {
|
|
14474
14526
|
min-width: 100%;
|
|
14475
14527
|
flex-shrink: 0;
|
|
@@ -14684,6 +14736,8 @@ template {
|
|
|
14684
14736
|
@tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
|
|
14685
14737
|
@tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
|
|
14686
14738
|
@tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
|
|
14739
|
+
@tree-root-max-width: var(~'@{tree-prefix}-root-sizing-max-width');
|
|
14740
|
+
@tree-root-min-width: var(~'@{tree-prefix}-root-sizing-min-width');
|
|
14687
14741
|
|
|
14688
14742
|
// spacing
|
|
14689
14743
|
@tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 0px);
|