@douyinfe/semi-ui 2.57.0 → 2.58.0-beta.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/dist/css/semi.css +21 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +13 -11
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/navigation/Item.js +1 -1
- package/lib/cjs/table/Body/BaseRow.d.ts +0 -2
- package/lib/cjs/table/Body/BaseRow.js +5 -10
- package/lib/cjs/table/ColGroup.d.ts +2 -2
- package/lib/cjs/table/interface.d.ts +17 -16
- package/lib/cjs/tagInput/index.js +8 -3
- package/lib/es/navigation/Item.js +1 -1
- package/lib/es/table/Body/BaseRow.d.ts +0 -2
- package/lib/es/table/Body/BaseRow.js +5 -8
- package/lib/es/table/ColGroup.d.ts +2 -2
- package/lib/es/table/interface.d.ts +17 -16
- package/lib/es/tagInput/index.js +8 -3
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -46909,9 +46909,12 @@ class TagInput extends BaseComponent {
|
|
|
46909
46909
|
className,
|
|
46910
46910
|
disabled,
|
|
46911
46911
|
placeholder,
|
|
46912
|
-
validateStatus
|
|
46912
|
+
validateStatus,
|
|
46913
|
+
prefix,
|
|
46914
|
+
insetLabel,
|
|
46915
|
+
suffix
|
|
46913
46916
|
} = _a,
|
|
46914
|
-
rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus"]);
|
|
46917
|
+
rest = tagInput_rest(_a, ["size", "style", "className", "disabled", "placeholder", "validateStatus", "prefix", "insetLabel", "suffix"]);
|
|
46915
46918
|
const {
|
|
46916
46919
|
focusing,
|
|
46917
46920
|
hovering,
|
|
@@ -46926,7 +46929,9 @@ class TagInput extends BaseComponent {
|
|
|
46926
46929
|
[`${tagInput_prefixCls}-error`]: validateStatus === 'error',
|
|
46927
46930
|
[`${tagInput_prefixCls}-warning`]: validateStatus === 'warning',
|
|
46928
46931
|
[`${tagInput_prefixCls}-small`]: size === 'small',
|
|
46929
|
-
[`${tagInput_prefixCls}-large`]: size === 'large'
|
|
46932
|
+
[`${tagInput_prefixCls}-large`]: size === 'large',
|
|
46933
|
+
[`${tagInput_prefixCls}-with-prefix`]: !!prefix || !!insetLabel,
|
|
46934
|
+
[`${tagInput_prefixCls}-with-suffix`]: !!suffix
|
|
46930
46935
|
});
|
|
46931
46936
|
const inputCls = classnames_default()(`${tagInput_prefixCls}-wrapper-input`, `${tagInput_prefixCls}-wrapper-input-${size}`);
|
|
46932
46937
|
const wrapperCls = classnames_default()(`${tagInput_prefixCls}-wrapper`);
|
|
@@ -66538,7 +66543,7 @@ class Item_NavItem extends BaseComponent {
|
|
|
66538
66543
|
onMouseEnter: onMouseEnter,
|
|
66539
66544
|
onMouseLeave: onMouseLeave,
|
|
66540
66545
|
onKeyPress: this.handleKeyPress
|
|
66541
|
-
}), itemChildren);
|
|
66546
|
+
}, this.getDataAttr(this.props)), itemChildren);
|
|
66542
66547
|
}
|
|
66543
66548
|
// Display Tooltip when disabled and SubNav
|
|
66544
66549
|
if (isCollapsed && !isInSubNav && !isSubNav || isCollapsed && isSubNav && disabled) {
|
|
@@ -81649,9 +81654,6 @@ class TableRow extends BaseComponent {
|
|
|
81649
81654
|
}
|
|
81650
81655
|
constructor(props) {
|
|
81651
81656
|
super(props);
|
|
81652
|
-
this._cacheNode = node => {
|
|
81653
|
-
this.ref.current = node;
|
|
81654
|
-
};
|
|
81655
81657
|
// Pass true to render the tree-shaped expand button
|
|
81656
81658
|
this.renderExpandIcon = record => {
|
|
81657
81659
|
const {
|
|
@@ -81680,7 +81682,6 @@ class TableRow extends BaseComponent {
|
|
|
81680
81682
|
customRowProps.onClick(e);
|
|
81681
81683
|
}
|
|
81682
81684
|
};
|
|
81683
|
-
this.ref = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createRef)();
|
|
81684
81685
|
this.foundation = new TableRowFoundation(this.adapter);
|
|
81685
81686
|
}
|
|
81686
81687
|
componentDidMount() {
|
|
@@ -81821,7 +81822,8 @@ class TableRow extends BaseComponent {
|
|
|
81821
81822
|
expandableRow,
|
|
81822
81823
|
level,
|
|
81823
81824
|
expandedRow,
|
|
81824
|
-
isSection
|
|
81825
|
+
isSection,
|
|
81826
|
+
rowKey
|
|
81825
81827
|
} = this.props;
|
|
81826
81828
|
const BodyRow = components.body.row;
|
|
81827
81829
|
const _a = onRow(record, index) || {},
|
|
@@ -81832,7 +81834,7 @@ class TableRow extends BaseComponent {
|
|
|
81832
81834
|
rowProps = BaseRow_rest(_a, ["className", "style"]);
|
|
81833
81835
|
this.adapter.setCache('customRowProps', Object.assign({}, rowProps));
|
|
81834
81836
|
const baseRowStyle = Object.assign(Object.assign({}, style), customStyle);
|
|
81835
|
-
const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? replaceClassName : classnames_default()(className, `${prefixCls}-row`, {
|
|
81837
|
+
const rowCls = typeof replaceClassName === 'string' && replaceClassName.length ? classnames_default()(replaceClassName, customClassName) : classnames_default()(className, `${prefixCls}-row`, {
|
|
81836
81838
|
[`${prefixCls}-row-selected`]: selected,
|
|
81837
81839
|
[`${prefixCls}-row-expanded`]: expanded,
|
|
81838
81840
|
[`${prefixCls}-row-hovered`]: hovered,
|
|
@@ -81860,7 +81862,7 @@ class TableRow extends BaseComponent {
|
|
|
81860
81862
|
}, ariaProps, rowProps, {
|
|
81861
81863
|
style: baseRowStyle,
|
|
81862
81864
|
className: rowCls,
|
|
81863
|
-
|
|
81865
|
+
"data-row-key": rowKey,
|
|
81864
81866
|
onMouseEnter: this.handleMouseEnter,
|
|
81865
81867
|
onMouseLeave: this.handleMouseLeave,
|
|
81866
81868
|
onClick: this.handleClick
|