@douyinfe/semi-ui 2.27.0 → 2.27.1-alpha.1
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 +72 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +2055 -1986
- 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/_portal/index.js +2 -2
- package/lib/cjs/_utils/index.js +3 -1
- package/lib/cjs/anchor/index.js +9 -9
- package/lib/cjs/anchor/link.js +8 -8
- package/lib/cjs/autoComplete/index.js +8 -4
- package/lib/cjs/autoComplete/option.js +7 -7
- package/lib/cjs/avatar/avatarGroup.js +7 -7
- package/lib/cjs/avatar/index.js +12 -12
- package/lib/cjs/badge/index.js +8 -8
- package/lib/cjs/banner/index.js +12 -12
- package/lib/cjs/breadcrumb/index.js +12 -12
- package/lib/cjs/breadcrumb/item.js +8 -8
- package/lib/cjs/button/Button.js +9 -9
- package/lib/cjs/button/buttonGroup.js +5 -5
- package/lib/cjs/button/splitButtonGroup.js +1 -1
- package/lib/cjs/calendar/dayCalendar.js +13 -13
- package/lib/cjs/calendar/dayCol.js +17 -17
- package/lib/cjs/calendar/monthCalendar.js +38 -38
- package/lib/cjs/calendar/rangeCalendar.js +27 -27
- package/lib/cjs/calendar/timeCol.js +6 -6
- package/lib/cjs/calendar/weekCalendar.js +27 -27
- package/lib/cjs/card/cardGroup.js +2 -2
- package/lib/cjs/card/index.js +16 -16
- package/lib/cjs/card/meta.js +5 -5
- package/lib/cjs/carousel/CarouselArrow.js +6 -6
- package/lib/cjs/carousel/CarouselIndicator.js +6 -6
- package/lib/cjs/carousel/index.js +12 -12
- package/lib/cjs/cascader/index.js +36 -36
- package/lib/cjs/cascader/item.js +25 -25
- package/lib/cjs/checkbox/checkbox.js +14 -14
- package/lib/cjs/checkbox/checkboxGroup.js +4 -4
- package/lib/cjs/checkbox/checkboxInner.js +6 -6
- package/lib/cjs/collapse/item.js +9 -9
- package/lib/cjs/collapsible/index.js +3 -3
- package/lib/cjs/configProvider/index.js +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.js +16 -16
- package/lib/cjs/datePicker/datePicker.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.js +9 -9
- package/lib/cjs/datePicker/footer.js +1 -1
- package/lib/cjs/datePicker/index.js +1 -1
- package/lib/cjs/datePicker/month.js +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGrid.js +27 -27
- package/lib/cjs/datePicker/navigation.js +1 -1
- package/lib/cjs/datePicker/quickControl.js +14 -14
- package/lib/cjs/datePicker/yearAndMonth.js +4 -4
- package/lib/cjs/descriptions/index.js +3 -3
- package/lib/cjs/descriptions/item.js +5 -5
- package/lib/cjs/divider/index.js +7 -7
- package/lib/cjs/dropdown/dropdownDivider.js +1 -1
- package/lib/cjs/dropdown/dropdownItem.d.ts +4 -0
- package/lib/cjs/dropdown/dropdownItem.js +12 -8
- package/lib/cjs/dropdown/dropdownMenu.js +1 -1
- package/lib/cjs/dropdown/dropdownTitle.js +2 -2
- package/lib/cjs/dropdown/index.js +3 -3
- package/lib/cjs/empty/index.js +7 -7
- package/lib/cjs/form/arrayField.js +1 -1
- package/lib/cjs/form/baseForm.js +2 -2
- package/lib/cjs/form/errorMessage.js +1 -1
- package/lib/cjs/form/group.js +2 -2
- package/lib/cjs/form/hoc/withField.js +67 -47
- package/lib/cjs/form/label.js +9 -9
- package/lib/cjs/form/slot.js +5 -5
- package/lib/cjs/grid/col.js +11 -11
- package/lib/cjs/grid/row.js +4 -4
- package/lib/cjs/highlight/index.js +1 -1
- package/lib/cjs/iconButton/index.js +5 -5
- package/lib/cjs/image/image.js +10 -10
- package/lib/cjs/image/preview.js +3 -3
- package/lib/cjs/image/previewFooter.js +12 -12
- package/lib/cjs/image/previewHeader.js +3 -3
- package/lib/cjs/image/previewImage.js +7 -7
- package/lib/cjs/image/previewInner.js +7 -7
- package/lib/cjs/input/index.js +38 -38
- package/lib/cjs/input/inputGroup.js +7 -7
- package/lib/cjs/input/textarea.js +14 -14
- package/lib/cjs/inputNumber/index.js +11 -11
- package/lib/cjs/layout/Sider.js +3 -3
- package/lib/cjs/layout/index.js +2 -2
- package/lib/cjs/list/index.js +11 -11
- package/lib/cjs/list/item.js +6 -6
- package/lib/cjs/modal/ConfirmModal.js +7 -7
- package/lib/cjs/modal/Modal.js +4 -4
- package/lib/cjs/modal/ModalContent.js +24 -24
- package/lib/cjs/modal/useModal/index.js +1 -1
- package/lib/cjs/navigation/CollapseButton.js +1 -1
- package/lib/cjs/navigation/Footer.js +2 -2
- package/lib/cjs/navigation/Header.js +5 -5
- package/lib/cjs/navigation/Item.d.ts +3 -0
- package/lib/cjs/navigation/Item.js +35 -21
- package/lib/cjs/navigation/SubNav.d.ts +4 -0
- package/lib/cjs/navigation/SubNav.js +58 -34
- package/lib/cjs/navigation/index.js +8 -8
- package/lib/cjs/notification/index.js +3 -3
- package/lib/cjs/notification/notice.js +12 -12
- package/lib/cjs/overflowList/index.js +6 -6
- package/lib/cjs/pagination/index.js +26 -26
- package/lib/cjs/popconfirm/index.js +9 -9
- package/lib/cjs/popover/index.js +2 -2
- package/lib/cjs/progress/index.js +14 -14
- package/lib/cjs/radio/radio.js +22 -22
- package/lib/cjs/radio/radioGroup.js +5 -5
- package/lib/cjs/radio/radioInner.js +7 -7
- package/lib/cjs/rating/index.js +5 -5
- package/lib/cjs/rating/item.js +11 -11
- package/lib/cjs/scrollList/index.js +5 -5
- package/lib/cjs/scrollList/scrollItem.js +13 -13
- package/lib/cjs/select/index.js +57 -57
- package/lib/cjs/select/option.js +7 -7
- package/lib/cjs/sideSheet/SideSheetContent.js +10 -10
- package/lib/cjs/sideSheet/index.js +7 -7
- package/lib/cjs/skeleton/index.js +1 -1
- package/lib/cjs/skeleton/item.js +4 -4
- package/lib/cjs/slider/index.js +28 -28
- package/lib/cjs/space/index.js +12 -12
- package/lib/cjs/spin/icon.js +2 -2
- package/lib/cjs/spin/index.js +6 -6
- package/lib/cjs/steps/basicStep.js +14 -14
- package/lib/cjs/steps/basicSteps.js +6 -6
- package/lib/cjs/steps/fillStep.js +10 -10
- package/lib/cjs/steps/fillSteps.js +4 -4
- package/lib/cjs/steps/navStep.js +5 -5
- package/lib/cjs/steps/navSteps.js +2 -2
- package/lib/cjs/table/Body/BaseRow.js +5 -5
- package/lib/cjs/table/Body/ExpandedRow.js +3 -3
- package/lib/cjs/table/Body/SectionRow.js +1 -1
- package/lib/cjs/table/Body/index.js +8 -8
- package/lib/cjs/table/ColGroup.js +2 -2
- package/lib/cjs/table/ColumnFilter.js +3 -3
- package/lib/cjs/table/ColumnSelection.js +2 -2
- package/lib/cjs/table/ColumnSorter.js +7 -7
- package/lib/cjs/table/CustomExpandIcon.js +2 -2
- package/lib/cjs/table/HeadTable.js +3 -3
- package/lib/cjs/table/Table.js +20 -20
- package/lib/cjs/table/TableCell.js +8 -8
- package/lib/cjs/table/TableHeader.js +1 -1
- package/lib/cjs/table/TableHeaderRow.js +8 -8
- package/lib/cjs/table/TablePagination.js +3 -3
- package/lib/cjs/tabs/TabBar.js +18 -18
- package/lib/cjs/tabs/TabPane.js +3 -3
- package/lib/cjs/tabs/index.js +2 -2
- package/lib/cjs/tag/group.js +5 -5
- package/lib/cjs/tag/index.js +13 -13
- package/lib/cjs/tagInput/index.js +33 -33
- package/lib/cjs/timePicker/Combobox.js +4 -4
- package/lib/cjs/timePicker/TimeInput.js +4 -4
- package/lib/cjs/timePicker/TimePicker.js +8 -8
- package/lib/cjs/timeline/index.js +8 -8
- package/lib/cjs/timeline/item.js +7 -7
- package/lib/cjs/toast/index.js +5 -5
- package/lib/cjs/toast/toast.js +9 -9
- package/lib/cjs/tooltip/index.js +7 -7
- package/lib/cjs/transfer/index.js +31 -31
- package/lib/cjs/tree/autoSizer.js +1 -1
- package/lib/cjs/tree/index.js +6 -6
- package/lib/cjs/tree/nodeList.js +1 -1
- package/lib/cjs/tree/treeNode.js +26 -26
- package/lib/cjs/treeSelect/index.js +41 -41
- package/lib/cjs/typography/base.js +14 -14
- package/lib/cjs/typography/copyable.js +3 -3
- package/lib/cjs/typography/paragraph.js +1 -1
- package/lib/cjs/typography/title.js +1 -1
- package/lib/cjs/typography/util.js +1 -1
- package/lib/cjs/upload/fileCard.js +32 -32
- package/lib/cjs/upload/index.js +37 -37
- package/lib/es/_portal/index.js +2 -2
- package/lib/es/_utils/index.js +3 -1
- package/lib/es/anchor/index.js +9 -9
- package/lib/es/anchor/link.js +8 -8
- package/lib/es/autoComplete/index.js +8 -4
- package/lib/es/autoComplete/option.js +7 -7
- package/lib/es/avatar/avatarGroup.js +7 -7
- package/lib/es/avatar/index.js +12 -12
- package/lib/es/badge/index.js +8 -8
- package/lib/es/banner/index.js +12 -12
- package/lib/es/breadcrumb/index.js +12 -12
- package/lib/es/breadcrumb/item.js +8 -8
- package/lib/es/button/Button.js +9 -9
- package/lib/es/button/buttonGroup.js +5 -5
- package/lib/es/button/splitButtonGroup.js +1 -1
- package/lib/es/calendar/dayCalendar.js +13 -13
- package/lib/es/calendar/dayCol.js +17 -17
- package/lib/es/calendar/monthCalendar.js +38 -38
- package/lib/es/calendar/rangeCalendar.js +27 -27
- package/lib/es/calendar/timeCol.js +6 -6
- package/lib/es/calendar/weekCalendar.js +27 -27
- package/lib/es/card/cardGroup.js +2 -2
- package/lib/es/card/index.js +16 -16
- package/lib/es/card/meta.js +5 -5
- package/lib/es/carousel/CarouselArrow.js +6 -6
- package/lib/es/carousel/CarouselIndicator.js +6 -6
- package/lib/es/carousel/index.js +12 -12
- package/lib/es/cascader/index.js +36 -36
- package/lib/es/cascader/item.js +25 -25
- package/lib/es/checkbox/checkbox.js +14 -14
- package/lib/es/checkbox/checkboxGroup.js +4 -4
- package/lib/es/checkbox/checkboxInner.js +6 -6
- package/lib/es/collapse/item.js +9 -9
- package/lib/es/collapsible/index.js +3 -3
- package/lib/es/configProvider/index.js +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/dateInput.js +16 -16
- package/lib/es/datePicker/datePicker.d.ts +1 -1
- package/lib/es/datePicker/datePicker.js +9 -9
- package/lib/es/datePicker/footer.js +1 -1
- package/lib/es/datePicker/index.js +1 -1
- package/lib/es/datePicker/month.js +2 -2
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/monthsGrid.js +27 -27
- package/lib/es/datePicker/navigation.js +1 -1
- package/lib/es/datePicker/quickControl.js +14 -14
- package/lib/es/datePicker/yearAndMonth.js +4 -4
- package/lib/es/descriptions/index.js +3 -3
- package/lib/es/descriptions/item.js +5 -5
- package/lib/es/divider/index.js +7 -7
- package/lib/es/dropdown/dropdownDivider.js +1 -1
- package/lib/es/dropdown/dropdownItem.d.ts +4 -0
- package/lib/es/dropdown/dropdownItem.js +12 -8
- package/lib/es/dropdown/dropdownMenu.js +1 -1
- package/lib/es/dropdown/dropdownTitle.js +2 -2
- package/lib/es/dropdown/index.js +3 -3
- package/lib/es/empty/index.js +7 -7
- package/lib/es/form/arrayField.js +1 -1
- package/lib/es/form/baseForm.js +2 -2
- package/lib/es/form/errorMessage.js +1 -1
- package/lib/es/form/group.js +2 -2
- package/lib/es/form/hoc/withField.js +67 -47
- package/lib/es/form/label.js +9 -9
- package/lib/es/form/slot.js +5 -5
- package/lib/es/grid/col.js +11 -11
- package/lib/es/grid/row.js +4 -4
- package/lib/es/highlight/index.js +1 -1
- package/lib/es/iconButton/index.js +5 -5
- package/lib/es/image/image.js +10 -10
- package/lib/es/image/preview.js +3 -3
- package/lib/es/image/previewFooter.js +12 -12
- package/lib/es/image/previewHeader.js +3 -3
- package/lib/es/image/previewImage.js +7 -7
- package/lib/es/image/previewInner.js +7 -7
- package/lib/es/input/index.js +38 -38
- package/lib/es/input/inputGroup.js +7 -7
- package/lib/es/input/textarea.js +14 -14
- package/lib/es/inputNumber/index.js +11 -11
- package/lib/es/layout/Sider.js +3 -3
- package/lib/es/layout/index.js +2 -2
- package/lib/es/list/index.js +11 -11
- package/lib/es/list/item.js +6 -6
- package/lib/es/modal/ConfirmModal.js +7 -7
- package/lib/es/modal/Modal.js +4 -4
- package/lib/es/modal/ModalContent.js +24 -24
- package/lib/es/modal/useModal/index.js +1 -1
- package/lib/es/navigation/CollapseButton.js +1 -1
- package/lib/es/navigation/Footer.js +2 -2
- package/lib/es/navigation/Header.js +5 -5
- package/lib/es/navigation/Item.d.ts +3 -0
- package/lib/es/navigation/Item.js +35 -21
- package/lib/es/navigation/SubNav.d.ts +4 -0
- package/lib/es/navigation/SubNav.js +58 -34
- package/lib/es/navigation/index.js +8 -8
- package/lib/es/notification/index.js +3 -3
- package/lib/es/notification/notice.js +12 -12
- package/lib/es/overflowList/index.js +6 -6
- package/lib/es/pagination/index.js +26 -26
- package/lib/es/popconfirm/index.js +9 -9
- package/lib/es/popover/index.js +2 -2
- package/lib/es/progress/index.js +14 -14
- package/lib/es/radio/radio.js +22 -22
- package/lib/es/radio/radioGroup.js +5 -5
- package/lib/es/radio/radioInner.js +7 -7
- package/lib/es/rating/index.js +5 -5
- package/lib/es/rating/item.js +11 -11
- package/lib/es/scrollList/index.js +5 -5
- package/lib/es/scrollList/scrollItem.js +13 -13
- package/lib/es/select/index.js +57 -57
- package/lib/es/select/option.js +7 -7
- package/lib/es/sideSheet/SideSheetContent.js +10 -10
- package/lib/es/sideSheet/index.js +7 -7
- package/lib/es/skeleton/index.js +1 -1
- package/lib/es/skeleton/item.js +4 -4
- package/lib/es/slider/index.js +28 -28
- package/lib/es/space/index.js +12 -12
- package/lib/es/spin/icon.js +2 -2
- package/lib/es/spin/index.js +6 -6
- package/lib/es/steps/basicStep.js +14 -14
- package/lib/es/steps/basicSteps.js +6 -6
- package/lib/es/steps/fillStep.js +10 -10
- package/lib/es/steps/fillSteps.js +4 -4
- package/lib/es/steps/navStep.js +5 -5
- package/lib/es/steps/navSteps.js +2 -2
- package/lib/es/table/Body/BaseRow.js +5 -5
- package/lib/es/table/Body/ExpandedRow.js +3 -3
- package/lib/es/table/Body/SectionRow.js +1 -1
- package/lib/es/table/Body/index.js +8 -8
- package/lib/es/table/ColGroup.js +2 -2
- package/lib/es/table/ColumnFilter.js +3 -3
- package/lib/es/table/ColumnSelection.js +2 -2
- package/lib/es/table/ColumnSorter.js +7 -7
- package/lib/es/table/CustomExpandIcon.js +2 -2
- package/lib/es/table/HeadTable.js +3 -3
- package/lib/es/table/Table.js +20 -20
- package/lib/es/table/TableCell.js +8 -8
- package/lib/es/table/TableHeader.js +1 -1
- package/lib/es/table/TableHeaderRow.js +8 -8
- package/lib/es/table/TablePagination.js +3 -3
- package/lib/es/tabs/TabBar.js +18 -18
- package/lib/es/tabs/TabPane.js +3 -3
- package/lib/es/tabs/index.js +2 -2
- package/lib/es/tag/group.js +5 -5
- package/lib/es/tag/index.js +13 -13
- package/lib/es/tagInput/index.js +33 -33
- package/lib/es/timePicker/Combobox.js +4 -4
- package/lib/es/timePicker/TimeInput.js +4 -4
- package/lib/es/timePicker/TimePicker.js +8 -8
- package/lib/es/timeline/index.js +8 -8
- package/lib/es/timeline/item.js +7 -7
- package/lib/es/toast/index.js +5 -5
- package/lib/es/toast/toast.js +9 -9
- package/lib/es/tooltip/index.js +7 -7
- package/lib/es/transfer/index.js +31 -31
- package/lib/es/tree/autoSizer.js +1 -1
- package/lib/es/tree/index.js +6 -6
- package/lib/es/tree/nodeList.js +1 -1
- package/lib/es/tree/treeNode.js +26 -26
- package/lib/es/treeSelect/index.js +41 -41
- package/lib/es/typography/base.js +14 -14
- package/lib/es/typography/copyable.js +3 -3
- package/lib/es/typography/paragraph.js +1 -1
- package/lib/es/typography/title.js +1 -1
- package/lib/es/typography/util.js +1 -1
- package/lib/es/upload/fileCard.js +32 -32
- package/lib/es/upload/index.js +37 -37
- package/package.json +8 -8
package/lib/es/dropdown/index.js
CHANGED
|
@@ -85,7 +85,7 @@ class Dropdown extends BaseComponent {
|
|
|
85
85
|
className: className,
|
|
86
86
|
style: style
|
|
87
87
|
}, /*#__PURE__*/React.createElement("div", {
|
|
88
|
-
className:
|
|
88
|
+
className: `${prefixCls}-content`,
|
|
89
89
|
"x-semi-prop": "render"
|
|
90
90
|
}, content)));
|
|
91
91
|
}
|
|
@@ -158,7 +158,7 @@ class Dropdown extends BaseComponent {
|
|
|
158
158
|
className: className,
|
|
159
159
|
style: style
|
|
160
160
|
}, /*#__PURE__*/React.createElement("div", {
|
|
161
|
-
className:
|
|
161
|
+
className: `${prefixCls}-content`
|
|
162
162
|
}, render)));
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -212,7 +212,7 @@ class Dropdown extends BaseComponent {
|
|
|
212
212
|
}, attr), /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, {
|
|
213
213
|
//@ts-ignore
|
|
214
214
|
className: classnames(_get(children, 'props.className'), {
|
|
215
|
-
[
|
|
215
|
+
[`${prefixCls}-showing`]: popVisible
|
|
216
216
|
}),
|
|
217
217
|
'aria-haspopup': true,
|
|
218
218
|
'aria-expanded': popVisible,
|
package/lib/es/empty/index.js
CHANGED
|
@@ -75,14 +75,14 @@ export default class Empty extends BaseComponent {
|
|
|
75
75
|
imageNode = /*#__PURE__*/React.createElement("svg", {
|
|
76
76
|
"aria-hidden": "true"
|
|
77
77
|
}, /*#__PURE__*/React.createElement("use", {
|
|
78
|
-
xlinkHref:
|
|
78
|
+
xlinkHref: `#${imgSrc.id}`
|
|
79
79
|
}));
|
|
80
80
|
} else {
|
|
81
81
|
imageNode = imgSrc;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
const wrapperCls = cls(className, prefixCls, {
|
|
85
|
-
[
|
|
85
|
+
[`${prefixCls}-${layout}`]: layout
|
|
86
86
|
});
|
|
87
87
|
const titleProps = imageNode ? {
|
|
88
88
|
heading: 4
|
|
@@ -96,19 +96,19 @@ export default class Empty extends BaseComponent {
|
|
|
96
96
|
className: wrapperCls,
|
|
97
97
|
style: style
|
|
98
98
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className:
|
|
99
|
+
className: `${prefixCls}-image`,
|
|
100
100
|
style: imageStyle,
|
|
101
101
|
"x-semi-prop": "image,darkModeImage"
|
|
102
102
|
}, imageNode), /*#__PURE__*/React.createElement("div", {
|
|
103
|
-
className:
|
|
103
|
+
className: `${prefixCls}-content`
|
|
104
104
|
}, title ? /*#__PURE__*/React.createElement(Typography.Title, Object.assign({}, titleProps, {
|
|
105
|
-
className:
|
|
105
|
+
className: `${prefixCls}-title`,
|
|
106
106
|
"x-semi-prop": "title"
|
|
107
107
|
}), title) : null, description ? /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className:
|
|
108
|
+
className: `${prefixCls}-description`,
|
|
109
109
|
"x-semi-prop": "description"
|
|
110
110
|
}, description) : null, children ? /*#__PURE__*/React.createElement("div", {
|
|
111
|
-
className:
|
|
111
|
+
className: `${prefixCls}-footer`,
|
|
112
112
|
"x-semi-prop": "children"
|
|
113
113
|
}, children) : null));
|
|
114
114
|
}
|
package/lib/es/form/baseForm.js
CHANGED
|
@@ -105,9 +105,9 @@ class Form extends BaseComponent {
|
|
|
105
105
|
const {
|
|
106
106
|
formId
|
|
107
107
|
} = this.state;
|
|
108
|
-
return document.querySelectorAll(
|
|
108
|
+
return document.querySelectorAll(`form[x-form-id="${formId}"] .${cssClasses.PREFIX}-field-error-message`);
|
|
109
109
|
},
|
|
110
|
-
getFieldDOM: field => document.querySelector(
|
|
110
|
+
getFieldDOM: field => document.querySelector(`.${cssClasses.PREFIX}-field[x-field-id="${field}"]`)
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -58,7 +58,7 @@ export default class ErrorMessage extends PureComponent {
|
|
|
58
58
|
error: /*#__PURE__*/React.createElement(IconAlertCircle, null)
|
|
59
59
|
};
|
|
60
60
|
const text = error ? this.generatorText(error) : this.generatorText(helpText);
|
|
61
|
-
const iconCls =
|
|
61
|
+
const iconCls = `${prefix}-field-validate-status-icon`;
|
|
62
62
|
let icon = null;
|
|
63
63
|
|
|
64
64
|
if (isInInputGroup) {
|
package/lib/es/form/group.js
CHANGED
|
@@ -89,13 +89,13 @@ class FormInputGroup extends Component {
|
|
|
89
89
|
return null;
|
|
90
90
|
});
|
|
91
91
|
const groupCls = classNames({
|
|
92
|
-
[
|
|
92
|
+
[`${prefix}-field-group`]: true
|
|
93
93
|
});
|
|
94
94
|
const labelCol = formProps.labelCol;
|
|
95
95
|
const wrapperCol = formProps.wrapperCol;
|
|
96
96
|
const labelAlign = formProps.labelAlign;
|
|
97
97
|
const appendCol = labelCol && wrapperCol;
|
|
98
|
-
const labelColCls = labelCol ?
|
|
98
|
+
const labelColCls = labelCol ? `${prefix}-col-${labelAlign}` : '';
|
|
99
99
|
const labelContent = this.renderLabel(label, formProps);
|
|
100
100
|
const inputGroupContent = /*#__PURE__*/React.createElement(InputGroup, Object.assign({}, rest), inner);
|
|
101
101
|
const groupErrorContent = /*#__PURE__*/React.createElement(GroupError, {
|
|
@@ -108,7 +108,8 @@ function withField(Component, opts) {
|
|
|
108
108
|
const [status, setStatus] = useState(validateStatus); // use props.validateStatus to init
|
|
109
109
|
|
|
110
110
|
const rulesRef = useRef(rules);
|
|
111
|
-
const validateRef = useRef(validate);
|
|
111
|
+
const validateRef = useRef(validate);
|
|
112
|
+
const validatePromise = useRef(null); // notNotify is true means that the onChange of the Form does not need to be triggered
|
|
112
113
|
// notUpdate is true means that this operation does not need to trigger the forceUpdate
|
|
113
114
|
|
|
114
115
|
const updateTouched = (isTouched, callOpts) => {
|
|
@@ -162,16 +163,24 @@ function withField(Component, opts) {
|
|
|
162
163
|
const model = {
|
|
163
164
|
[field]: val
|
|
164
165
|
};
|
|
165
|
-
|
|
166
|
+
const rootPromise = new Promise((resolve, reject) => {
|
|
166
167
|
validator.validate(model, {
|
|
167
168
|
first: stopValidateWithError
|
|
168
169
|
}, // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
169
170
|
(errors, fields) => {}).then(res => {
|
|
170
|
-
|
|
171
|
+
if (validatePromise.current !== rootPromise) {
|
|
172
|
+
return;
|
|
173
|
+
} // validation passed
|
|
174
|
+
|
|
175
|
+
|
|
171
176
|
setStatus('success');
|
|
172
177
|
updateError(undefined, callOpts);
|
|
173
178
|
resolve({});
|
|
174
179
|
}).catch(err => {
|
|
180
|
+
if (validatePromise.current !== rootPromise) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
|
|
175
184
|
let {
|
|
176
185
|
errors,
|
|
177
186
|
fields
|
|
@@ -200,44 +209,55 @@ function withField(Component, opts) {
|
|
|
200
209
|
}
|
|
201
210
|
});
|
|
202
211
|
});
|
|
212
|
+
validatePromise.current = rootPromise;
|
|
213
|
+
return rootPromise;
|
|
203
214
|
}; // execute custom validate function
|
|
204
215
|
|
|
205
216
|
|
|
206
|
-
const _validate = (val, values, callOpts) =>
|
|
207
|
-
|
|
217
|
+
const _validate = (val, values, callOpts) => {
|
|
218
|
+
const rootPromise = new Promise(resolve => {
|
|
219
|
+
let maybePromisedErrors; // let errorThrowSync;
|
|
208
220
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
221
|
+
try {
|
|
222
|
+
maybePromisedErrors = validateRef.current(val, values);
|
|
223
|
+
} catch (err) {
|
|
224
|
+
// error throw by syncValidate
|
|
225
|
+
maybePromisedErrors = err;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (maybePromisedErrors === undefined) {
|
|
229
|
+
resolve({});
|
|
230
|
+
updateError(undefined, callOpts);
|
|
231
|
+
} else if (isPromise(maybePromisedErrors)) {
|
|
232
|
+
maybePromisedErrors.then(result => {
|
|
233
|
+
// If the async validate is outdated (a newer validate occurs), the result should be discarded
|
|
234
|
+
if (validatePromise.current !== rootPromise) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
215
237
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
238
|
+
if (isValid(result)) {
|
|
239
|
+
// validate success,no need to do anything with result
|
|
240
|
+
updateError(undefined, callOpts);
|
|
241
|
+
resolve(null);
|
|
242
|
+
} else {
|
|
243
|
+
// validate failed
|
|
244
|
+
updateError(result, callOpts);
|
|
245
|
+
resolve(result);
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
} else {
|
|
249
|
+
if (isValid(maybePromisedErrors)) {
|
|
223
250
|
updateError(undefined, callOpts);
|
|
224
251
|
resolve(null);
|
|
225
252
|
} else {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
resolve(result);
|
|
253
|
+
updateError(maybePromisedErrors, callOpts);
|
|
254
|
+
resolve(maybePromisedErrors);
|
|
229
255
|
}
|
|
230
|
-
});
|
|
231
|
-
} else {
|
|
232
|
-
if (isValid(maybePromisedErrors)) {
|
|
233
|
-
updateError(undefined, callOpts);
|
|
234
|
-
resolve(null);
|
|
235
|
-
} else {
|
|
236
|
-
updateError(maybePromisedErrors, callOpts);
|
|
237
|
-
resolve(maybePromisedErrors);
|
|
238
256
|
}
|
|
239
|
-
}
|
|
240
|
-
|
|
257
|
+
});
|
|
258
|
+
validatePromise.current = rootPromise;
|
|
259
|
+
return rootPromise;
|
|
260
|
+
};
|
|
241
261
|
|
|
242
262
|
const fieldValidate = (val, callOpts) => {
|
|
243
263
|
let finalVal = val;
|
|
@@ -402,18 +422,18 @@ function withField(Component, opts) {
|
|
|
402
422
|
let mergeExtraPos = extraTextPosition || formProps.extraTextPosition || 'bottom'; // id attribute to improve a11y
|
|
403
423
|
|
|
404
424
|
const a11yId = id ? id : field;
|
|
405
|
-
const labelId =
|
|
406
|
-
const helpTextId =
|
|
407
|
-
const extraTextId =
|
|
408
|
-
const errorMessageId =
|
|
425
|
+
const labelId = `${a11yId}-label`;
|
|
426
|
+
const helpTextId = `${a11yId}-helpText`;
|
|
427
|
+
const extraTextId = `${a11yId}-extraText`;
|
|
428
|
+
const errorMessageId = `${a11yId}-errormessage`;
|
|
409
429
|
|
|
410
430
|
const FieldComponent = () => {
|
|
411
431
|
// prefer to use validateStatus which pass by user throught props
|
|
412
432
|
let blockStatus = validateStatus ? validateStatus : status;
|
|
413
|
-
const extraCls = classNames(
|
|
414
|
-
[
|
|
415
|
-
[
|
|
416
|
-
[
|
|
433
|
+
const extraCls = classNames(`${prefix}-field-extra`, {
|
|
434
|
+
[`${prefix}-field-extra-string`]: typeof extraText === 'string',
|
|
435
|
+
[`${prefix}-field-extra-middle`]: mergeExtraPos === 'middle',
|
|
436
|
+
[`${prefix}-field-extra-bottom`]: mergeExtraPos === 'bottom'
|
|
417
437
|
});
|
|
418
438
|
const extraContent = extraText ? /*#__PURE__*/React.createElement("div", {
|
|
419
439
|
className: extraCls,
|
|
@@ -438,11 +458,11 @@ function withField(Component, opts) {
|
|
|
438
458
|
}
|
|
439
459
|
|
|
440
460
|
if (helpText) {
|
|
441
|
-
newProps['aria-describedby'] = extraText ?
|
|
461
|
+
newProps['aria-describedby'] = extraText ? `${helpTextId} ${extraTextId}` : helpTextId;
|
|
442
462
|
}
|
|
443
463
|
|
|
444
464
|
if (extraText) {
|
|
445
|
-
newProps['aria-describedby'] = helpText ?
|
|
465
|
+
newProps['aria-describedby'] = helpText ? `${helpTextId} ${extraTextId}` : extraTextId;
|
|
446
466
|
}
|
|
447
467
|
|
|
448
468
|
if (status === 'error') {
|
|
@@ -451,12 +471,12 @@ function withField(Component, opts) {
|
|
|
451
471
|
}
|
|
452
472
|
|
|
453
473
|
const fieldCls = classNames({
|
|
454
|
-
[
|
|
455
|
-
[
|
|
474
|
+
[`${prefix}-field`]: true,
|
|
475
|
+
[`${prefix}-field-${name}`]: Boolean(name),
|
|
456
476
|
[fieldClassName]: Boolean(fieldClassName)
|
|
457
477
|
});
|
|
458
478
|
const fieldMaincls = classNames({
|
|
459
|
-
[
|
|
479
|
+
[`${prefix}-field-main`]: true
|
|
460
480
|
});
|
|
461
481
|
|
|
462
482
|
if (mergeLabelPos === 'inset' && !noLabel) {
|
|
@@ -477,8 +497,8 @@ function withField(Component, opts) {
|
|
|
477
497
|
|
|
478
498
|
if (pure) {
|
|
479
499
|
let pureCls = classNames(rest.className, {
|
|
480
|
-
[
|
|
481
|
-
[
|
|
500
|
+
[`${prefix}-field-pure`]: true,
|
|
501
|
+
[`${prefix}-field-${name}`]: Boolean(name),
|
|
482
502
|
[fieldClassName]: Boolean(fieldClassName)
|
|
483
503
|
});
|
|
484
504
|
newProps.className = pureCls;
|
|
@@ -486,7 +506,7 @@ function withField(Component, opts) {
|
|
|
486
506
|
}
|
|
487
507
|
|
|
488
508
|
let withCol = mergeLabelCol && mergeWrapperCol;
|
|
489
|
-
const labelColCls = mergeLabelAlign ?
|
|
509
|
+
const labelColCls = mergeLabelAlign ? `${prefix}-col-${mergeLabelAlign}` : ''; // get label
|
|
490
510
|
|
|
491
511
|
let labelContent = null;
|
|
492
512
|
|
package/lib/es/form/label.js
CHANGED
|
@@ -21,26 +21,26 @@ export default class Label extends PureComponent {
|
|
|
21
21
|
optional
|
|
22
22
|
} = this.props;
|
|
23
23
|
const labelCls = classNames(className, {
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
24
|
+
[`${prefixCls}-field-label`]: true,
|
|
25
|
+
[`${prefixCls}-field-label-left`]: align === 'left',
|
|
26
|
+
[`${prefixCls}-field-label-right`]: align === 'right',
|
|
27
|
+
[`${prefixCls}-field-label-required`]: required,
|
|
28
|
+
[`${prefixCls}-field-label-disabled`]: disabled,
|
|
29
|
+
[`${prefixCls}-field-label-with-extra`]: extra
|
|
30
30
|
});
|
|
31
31
|
const labelStyle = style ? style : {};
|
|
32
32
|
width ? labelStyle.width = width : null;
|
|
33
33
|
const optionalText = /*#__PURE__*/React.createElement(LocaleConsumer, {
|
|
34
34
|
componentName: "Form"
|
|
35
35
|
}, locale => /*#__PURE__*/React.createElement("span", {
|
|
36
|
-
className:
|
|
36
|
+
className: `${prefixCls}-field-label-optional-text`
|
|
37
37
|
}, locale.optional));
|
|
38
38
|
const textContent = /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className:
|
|
39
|
+
className: `${prefixCls}-field-label-text`,
|
|
40
40
|
"x-semi-prop": "label"
|
|
41
41
|
}, typeof text !== 'undefined' ? text : children, optional ? optionalText : null);
|
|
42
42
|
const contentWithExtra = /*#__PURE__*/React.createElement(React.Fragment, null, textContent, /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className:
|
|
43
|
+
className: `${prefixCls}-field-label-extra`
|
|
44
44
|
}, extra));
|
|
45
45
|
return /*#__PURE__*/React.createElement("label", {
|
|
46
46
|
className: labelCls,
|
package/lib/es/form/slot.js
CHANGED
|
@@ -53,11 +53,11 @@ const FormSlot = props => {
|
|
|
53
53
|
|
|
54
54
|
const appendCol = labelCol && wrapperCol;
|
|
55
55
|
const slotCls = classNames({
|
|
56
|
-
[
|
|
57
|
-
[
|
|
56
|
+
[`${prefix}-field`]: true,
|
|
57
|
+
[`${prefix}-slot`]: true
|
|
58
58
|
}, className);
|
|
59
59
|
const labelColCls = classNames({
|
|
60
|
-
[
|
|
60
|
+
[`${prefix}-col-${labelAlign}`]: true
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
switch (true) {
|
|
@@ -118,8 +118,8 @@ const FormSlot = props => {
|
|
|
118
118
|
width: labelWidth
|
|
119
119
|
}, label);
|
|
120
120
|
let mainCls = classNames({
|
|
121
|
-
[
|
|
122
|
-
[
|
|
121
|
+
[`${prefix}-field-main`]: true,
|
|
122
|
+
[`${prefix}-slot-main`]: true
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
switch (true) {
|
package/lib/es/grid/col.js
CHANGED
|
@@ -39,7 +39,7 @@ class Col extends React.Component {
|
|
|
39
39
|
others = __rest(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children"]);
|
|
40
40
|
|
|
41
41
|
let sizeClassObj = {};
|
|
42
|
-
const prefix =
|
|
42
|
+
const prefix = `${prefixCls}-col`;
|
|
43
43
|
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(size => {
|
|
44
44
|
let sizeProps = {};
|
|
45
45
|
|
|
@@ -51,19 +51,19 @@ class Col extends React.Component {
|
|
|
51
51
|
|
|
52
52
|
delete others[size];
|
|
53
53
|
sizeClassObj = Object.assign(Object.assign({}, sizeClassObj), {
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
54
|
+
[`${prefix}-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,
|
|
55
|
+
[`${prefix}-${size}-order-${sizeProps.order}`]: sizeProps.order || sizeProps.order === 0,
|
|
56
|
+
[`${prefix}-${size}-offset-${sizeProps.offset}`]: sizeProps.offset || sizeProps.offset === 0,
|
|
57
|
+
[`${prefix}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0,
|
|
58
|
+
[`${prefix}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
const classes = classnames(prefix, {
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
62
|
+
[`${prefix}-${span}`]: span !== undefined,
|
|
63
|
+
[`${prefix}-order-${order}`]: order,
|
|
64
|
+
[`${prefix}-offset-${offset}`]: offset,
|
|
65
|
+
[`${prefix}-push-${push}`]: push,
|
|
66
|
+
[`${prefix}-pull-${pull}`]: pull
|
|
67
67
|
}, className, sizeClassObj);
|
|
68
68
|
let {
|
|
69
69
|
style
|
package/lib/es/grid/row.js
CHANGED
|
@@ -114,12 +114,12 @@ class Row extends React.Component {
|
|
|
114
114
|
others = __rest(_a, ["prefixCls", "type", "justify", "align", "className", "style", "children"]);
|
|
115
115
|
|
|
116
116
|
const gutters = this.getGutter();
|
|
117
|
-
const prefix =
|
|
117
|
+
const prefix = `${prefixCls}-row`;
|
|
118
118
|
const classes = classnames({
|
|
119
119
|
[prefix]: type !== 'flex',
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
120
|
+
[`${prefix}-${type}`]: type,
|
|
121
|
+
[`${prefix}-${type}-${justify}`]: type && justify,
|
|
122
|
+
[`${prefix}-${type}-${align}`]: type && align
|
|
123
123
|
}, className);
|
|
124
124
|
const rowStyle = Object.assign(Object.assign(Object.assign({}, gutters[0] > 0 ? {
|
|
125
125
|
marginLeft: gutters[0] / -2,
|
|
@@ -65,8 +65,8 @@ class IconButton extends PureComponent {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
const btnTextCls = classNames({
|
|
68
|
-
[
|
|
69
|
-
[
|
|
68
|
+
[`${prefixCls}-content-left`]: iconPosition === 'right',
|
|
69
|
+
[`${prefixCls}-content-right`]: iconPosition === 'left'
|
|
70
70
|
});
|
|
71
71
|
const xSemiProp = this.props['x-semi-children-alias'] || 'children';
|
|
72
72
|
const children = originChildren != null ? /*#__PURE__*/React.createElement("span", {
|
|
@@ -80,9 +80,9 @@ class IconButton extends PureComponent {
|
|
|
80
80
|
finalChildren = /*#__PURE__*/React.createElement(React.Fragment, null, children, IconElem);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
const iconBtnCls = classNames(className,
|
|
84
|
-
[
|
|
85
|
-
[
|
|
83
|
+
const iconBtnCls = classNames(className, `${prefixCls}-with-icon`, {
|
|
84
|
+
[`${prefixCls}-with-icon-only`]: children == null || children === '',
|
|
85
|
+
[`${prefixCls}-loading`]: loading
|
|
86
86
|
});
|
|
87
87
|
return /*#__PURE__*/React.createElement(Button, Object.assign({}, otherProps, {
|
|
88
88
|
className: iconBtnCls,
|
package/lib/es/image/image.js
CHANGED
|
@@ -64,7 +64,7 @@ export default class Image extends BaseComponent {
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
this.renderDefaultError = () => {
|
|
67
|
-
const prefixClsName =
|
|
67
|
+
const prefixClsName = `${prefixCls}-status`;
|
|
68
68
|
return /*#__PURE__*/React.createElement("div", {
|
|
69
69
|
className: prefixClsName
|
|
70
70
|
}, /*#__PURE__*/React.createElement(IconUploadError, {
|
|
@@ -73,7 +73,7 @@ export default class Image extends BaseComponent {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
this.renderLoad = () => {
|
|
76
|
-
const prefixClsName =
|
|
76
|
+
const prefixClsName = `${prefixCls}-status`;
|
|
77
77
|
const {
|
|
78
78
|
placeholder
|
|
79
79
|
} = this.props;
|
|
@@ -86,7 +86,7 @@ export default class Image extends BaseComponent {
|
|
|
86
86
|
const {
|
|
87
87
|
fallback
|
|
88
88
|
} = this.props;
|
|
89
|
-
const prefixClsName =
|
|
89
|
+
const prefixClsName = `${prefixCls}-status`;
|
|
90
90
|
const fallbackNode = typeof fallback === "string" ? /*#__PURE__*/React.createElement("img", {
|
|
91
91
|
style: {
|
|
92
92
|
width: "100%",
|
|
@@ -105,7 +105,7 @@ export default class Image extends BaseComponent {
|
|
|
105
105
|
loadStatus
|
|
106
106
|
} = this.state;
|
|
107
107
|
return /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className:
|
|
108
|
+
className: `${prefixCls}-overlay`
|
|
109
109
|
}, loadStatus === "error" && this.renderError(), loadStatus === "loading" && this.renderLoad());
|
|
110
110
|
};
|
|
111
111
|
|
|
@@ -114,13 +114,13 @@ export default class Image extends BaseComponent {
|
|
|
114
114
|
}, locale => locale[key]);
|
|
115
115
|
|
|
116
116
|
this.renderMask = () => /*#__PURE__*/React.createElement("div", {
|
|
117
|
-
className:
|
|
117
|
+
className: `${prefixCls}-mask`
|
|
118
118
|
}, /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className:
|
|
119
|
+
className: `${prefixCls}-mask-info`
|
|
120
120
|
}, /*#__PURE__*/React.createElement(IconEyeOpened, {
|
|
121
121
|
size: "extra-large"
|
|
122
122
|
}), /*#__PURE__*/React.createElement("span", {
|
|
123
|
-
className:
|
|
123
|
+
className: `${prefixCls}-mask-info-text`
|
|
124
124
|
}, this.getLocalTextByKey("preview"))));
|
|
125
125
|
|
|
126
126
|
this.state = {
|
|
@@ -216,9 +216,9 @@ export default class Image extends BaseComponent {
|
|
|
216
216
|
src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
|
|
217
217
|
"data-src": src,
|
|
218
218
|
alt: alt,
|
|
219
|
-
className: cls(
|
|
220
|
-
[
|
|
221
|
-
[
|
|
219
|
+
className: cls(`${prefixCls}-img`, {
|
|
220
|
+
[`${prefixCls}-img-preview`]: showPreviewCursor,
|
|
221
|
+
[`${prefixCls}-img-error`]: loadStatus === "error"
|
|
222
222
|
}),
|
|
223
223
|
width: width,
|
|
224
224
|
height: height,
|
package/lib/es/image/preview.js
CHANGED
|
@@ -103,7 +103,7 @@ export default class Preview extends BaseComponent {
|
|
|
103
103
|
const {
|
|
104
104
|
lazyLoadMargin
|
|
105
105
|
} = this.props;
|
|
106
|
-
const allElement = document.querySelectorAll(
|
|
106
|
+
const allElement = document.querySelectorAll(`.${prefixCls}-img`); // use IntersectionObserver to lazy load image
|
|
107
107
|
|
|
108
108
|
const observer = new IntersectionObserver(entries => {
|
|
109
109
|
entries.forEach(item => {
|
|
@@ -117,7 +117,7 @@ export default class Preview extends BaseComponent {
|
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
}, {
|
|
120
|
-
root: document.querySelector(
|
|
120
|
+
root: document.querySelector(`#${this.previewGroupId}`),
|
|
121
121
|
rootMargin: lazyLoadMargin
|
|
122
122
|
});
|
|
123
123
|
allElement.forEach(item => observer.observe(item));
|
|
@@ -171,7 +171,7 @@ export default class Preview extends BaseComponent {
|
|
|
171
171
|
}, /*#__PURE__*/React.createElement("div", {
|
|
172
172
|
id: this.previewGroupId,
|
|
173
173
|
style: style,
|
|
174
|
-
className:
|
|
174
|
+
className: `${prefixCls}-preview-group`
|
|
175
175
|
}, newChildren), /*#__PURE__*/React.createElement(PreviewInner, Object.assign({}, restProps, {
|
|
176
176
|
ref: this.previewRef,
|
|
177
177
|
src: finalSrcList,
|