@douyinfe/semi-ui 2.19.0-alpha.2 → 2.19.0-alpha.3
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/checkbox/checkbox.tsx +7 -7
- package/checkbox/checkboxGroup.tsx +2 -11
- package/dist/css/semi.css +16 -10
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +141 -119
- 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/form/baseForm.tsx +0 -1
- package/lib/cjs/checkbox/checkbox.js +8 -2
- package/lib/cjs/checkbox/checkboxGroup.js +8 -31
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/baseForm.js +0 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/popconfirm/index.d.ts +4 -2
- package/lib/cjs/popconfirm/index.js +49 -31
- package/lib/cjs/radio/radioGroup.js +7 -34
- package/lib/cjs/table/ColumnFilter.js +4 -2
- package/lib/cjs/table/ColumnSorter.d.ts +1 -0
- package/lib/cjs/table/ColumnSorter.js +9 -6
- package/lib/cjs/table/Table.js +11 -4
- package/lib/cjs/tabs/TabBar.js +5 -1
- package/lib/cjs/transfer/index.js +7 -2
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/es/checkbox/checkbox.js +8 -2
- package/lib/es/checkbox/checkboxGroup.js +6 -27
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/baseForm.js +0 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/popconfirm/index.d.ts +4 -2
- package/lib/es/popconfirm/index.js +49 -31
- package/lib/es/radio/radioGroup.js +5 -30
- package/lib/es/table/ColumnFilter.js +4 -2
- package/lib/es/table/ColumnSorter.d.ts +1 -0
- package/lib/es/table/ColumnSorter.js +9 -6
- package/lib/es/table/Table.js +10 -4
- package/lib/es/tabs/TabBar.js +5 -1
- package/lib/es/transfer/index.js +7 -2
- package/lib/es/typography/title.d.ts +1 -1
- package/package.json +7 -7
- package/popconfirm/_story/popconfirm.stories.js +37 -1
- package/popconfirm/index.tsx +14 -6
- package/radio/radioGroup.tsx +4 -15
- package/table/ColumnFilter.tsx +2 -1
- package/table/ColumnSorter.tsx +16 -10
- package/table/Table.tsx +7 -4
- package/tabs/TabBar.tsx +7 -1
- package/transfer/index.tsx +7 -2
- package/webpack.config.js +3 -1
package/tabs/TabBar.tsx
CHANGED
|
@@ -147,7 +147,13 @@ class TabBar extends React.Component<TabBarProps, TabBarState> {
|
|
|
147
147
|
|
|
148
148
|
renderCollapse = (items: Array<OverflowItem>, icon: ReactNode, pos: 'start' | 'end'): ReactNode => {
|
|
149
149
|
if (isEmpty(items)) {
|
|
150
|
-
return
|
|
150
|
+
return (
|
|
151
|
+
<Button
|
|
152
|
+
disabled={true}
|
|
153
|
+
icon={icon}
|
|
154
|
+
theme="borderless"
|
|
155
|
+
/>
|
|
156
|
+
);
|
|
151
157
|
}
|
|
152
158
|
const { dropdownClassName, dropdownStyle } = this.props;
|
|
153
159
|
const { rePosKey } = this.state;
|
package/transfer/index.tsx
CHANGED
|
@@ -393,7 +393,9 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
|
|
|
393
393
|
const noMatch = inSearchMode && searchResult.size === 0;
|
|
394
394
|
const emptySearch = emptyContent.search ? emptyContent.search : locale.emptySearch;
|
|
395
395
|
const emptyLeft = emptyContent.left ? emptyContent.left : locale.emptyLeft;
|
|
396
|
-
const
|
|
396
|
+
const emptyDataCom = this.renderEmpty('left', emptyLeft);
|
|
397
|
+
const emptySearchCom = this.renderEmpty('left', emptySearch);
|
|
398
|
+
|
|
397
399
|
const loadingCom = <Spin />;
|
|
398
400
|
|
|
399
401
|
let content: React.ReactNode = null;
|
|
@@ -402,7 +404,10 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
|
|
|
402
404
|
content = loadingCom;
|
|
403
405
|
break;
|
|
404
406
|
case noMatch:
|
|
405
|
-
content =
|
|
407
|
+
content = emptySearchCom;
|
|
408
|
+
break;
|
|
409
|
+
case data.length === 0:
|
|
410
|
+
content = emptyDataCom;
|
|
406
411
|
break;
|
|
407
412
|
case type === strings.TYPE_TREE_TO_LIST:
|
|
408
413
|
content = (
|
package/webpack.config.js
CHANGED
|
@@ -29,7 +29,9 @@ module.exports = function ({ minimize }) {
|
|
|
29
29
|
test: /\.tsx?$/,
|
|
30
30
|
include: [
|
|
31
31
|
path.join(rootPath, 'packages/semi-ui'),
|
|
32
|
-
path.join(rootPath, 'packages/semi-foundation')
|
|
32
|
+
path.join(rootPath, 'packages/semi-foundation'),
|
|
33
|
+
path.join(rootPath, 'packages/semi-animation'),
|
|
34
|
+
path.join(rootPath, 'packages/semi-animation-react')
|
|
33
35
|
],
|
|
34
36
|
use: [
|
|
35
37
|
{
|