@kdcloudjs/kdesign 1.7.25 → 1.7.27
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 +47 -0
- package/dist/kdesign-complete.less +109 -45
- package/dist/kdesign.css +85 -40
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +266 -106
- 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/anchor/style/index.css +1 -1
- package/es/anchor/style/index.less +1 -1
- package/es/anchor/style/token.less +1 -0
- package/es/cascader/cascader.js +64 -32
- package/es/cascader/style/index.css +42 -26
- package/es/cascader/style/index.less +51 -29
- package/es/cascader/style/token.less +5 -3
- package/es/city-picker/city-picker.js +104 -13
- package/es/city-picker/interface.d.ts +3 -0
- package/es/city-picker/option.js +15 -3
- package/es/city-picker/style/index.css +22 -10
- package/es/city-picker/style/index.less +24 -10
- package/es/collapse/panel.js +31 -18
- package/es/collapse/style/index.css +4 -1
- package/es/collapse/style/index.less +4 -1
- package/es/form/Field.d.ts +1 -0
- package/es/form/Field.js +5 -3
- package/es/form/FieldWrapper.d.ts +1 -0
- package/es/form/FieldWrapper.js +13 -5
- package/es/form/style/index.css +11 -1
- package/es/form/style/index.less +16 -1
- package/es/form/style/token.less +1 -0
- package/es/select/style/index.css +1 -0
- package/es/select/style/index.less +1 -0
- package/es/select/style/token.less +1 -0
- package/es/tabs/style/index.css +3 -0
- package/es/tabs/style/index.less +3 -0
- package/es/tabs/style/token.less +1 -0
- package/es/tag/tag.d.ts +1 -0
- package/es/tree-select/tree-select.js +2 -1
- package/lib/anchor/style/index.css +1 -1
- package/lib/anchor/style/index.less +1 -1
- package/lib/anchor/style/token.less +1 -0
- package/lib/cascader/cascader.js +63 -31
- package/lib/cascader/style/index.css +42 -26
- package/lib/cascader/style/index.less +51 -29
- package/lib/cascader/style/token.less +5 -3
- package/lib/city-picker/city-picker.js +103 -12
- package/lib/city-picker/interface.d.ts +3 -0
- package/lib/city-picker/option.js +15 -3
- package/lib/city-picker/style/index.css +22 -10
- package/lib/city-picker/style/index.less +24 -10
- package/lib/collapse/panel.js +32 -19
- package/lib/collapse/style/index.css +4 -1
- package/lib/collapse/style/index.less +4 -1
- package/lib/form/Field.d.ts +1 -0
- package/lib/form/Field.js +5 -3
- package/lib/form/FieldWrapper.d.ts +1 -0
- package/lib/form/FieldWrapper.js +13 -5
- package/lib/form/style/index.css +11 -1
- package/lib/form/style/index.less +16 -1
- package/lib/form/style/token.less +1 -0
- package/lib/select/style/index.css +1 -0
- package/lib/select/style/index.less +1 -0
- package/lib/select/style/token.less +1 -0
- package/lib/tabs/style/index.css +3 -0
- package/lib/tabs/style/index.less +3 -0
- package/lib/tabs/style/token.less +1 -0
- package/lib/tag/tag.d.ts +1 -0
- package/lib/tree-select/tree-select.js +2 -1
- package/package.json +1 -1
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
@select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
|
|
41
41
|
@select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 30px); // 中号高度lh:22px
|
|
42
42
|
@select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
|
|
43
|
+
@select-item-max-width: var(~'@{select-custom-prefix}-item-sizing-max-width');
|
|
43
44
|
|
|
44
45
|
// spacing
|
|
45
46
|
@select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
|
package/lib/tabs/style/index.css
CHANGED
|
@@ -380,6 +380,9 @@
|
|
|
380
380
|
display: inline-block;
|
|
381
381
|
-webkit-transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
|
|
382
382
|
transition: color var(--kd-c-tabs-motion-duration, var(--kd-g-duration, 0.3s));
|
|
383
|
+
overflow: hidden;
|
|
384
|
+
text-overflow: ellipsis;
|
|
385
|
+
max-width: var(--kd-c-tabs-pane-text-sizing-max-width);
|
|
383
386
|
}
|
|
384
387
|
.kd-tab-pane-text-active,
|
|
385
388
|
.kd-tab-pane-text:hover {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@tab-pane-type-line-height-small: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-small', 32px);
|
|
30
30
|
@tab-pane-type-line-height-middle: var(~'@{tabs-custom-prefix}-pane-type-line-sizing-height-middle', 32px);
|
|
31
31
|
@tab-pane-type-dynamic-height: var(~'@{tabs-custom-prefix}-pane-type-dynamic-sizing-height', 32px);
|
|
32
|
+
@tab-pane-text-max-width: var(~'@{tabs-custom-prefix}-pane-text-sizing-max-width');
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
// spacing
|
package/lib/tag/tag.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface ITagProps {
|
|
|
19
19
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
20
20
|
onClose?: React.MouseEventHandler<HTMLElement>;
|
|
21
21
|
children?: React.ReactNode;
|
|
22
|
+
title?: string;
|
|
22
23
|
}
|
|
23
24
|
declare const Tag: React.ForwardRefExoticComponent<ITagProps & React.RefAttributes<unknown>>;
|
|
24
25
|
export default Tag;
|
|
@@ -456,7 +456,8 @@ var InternalTreeSelect = function InternalTreeSelect(props, ref) {
|
|
|
456
456
|
onClose: function onClose(e) {
|
|
457
457
|
return handleRemove(e, key);
|
|
458
458
|
},
|
|
459
|
-
"data-tag": key
|
|
459
|
+
"data-tag": key,
|
|
460
|
+
title: label
|
|
460
461
|
}, label));
|
|
461
462
|
}), maxTagCount && selectTreeNodes.length > maxTagCount ? maxTagPlaceholder ? handleMaxTagHolder() : /*#__PURE__*/_react.default.createElement("span", {
|
|
462
463
|
className: itemCls
|