@douyinfe/semi-ui 2.30.0-alpha.0 → 2.30.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 +29 -380
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +2189 -2061
- 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.d.ts +1 -1
- package/lib/cjs/anchor/index.js +9 -9
- package/lib/cjs/anchor/link.js +8 -8
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/cjs/carousel/CarouselIndicator.js +6 -6
- package/lib/cjs/carousel/index.d.ts +2 -2
- package/lib/cjs/carousel/index.js +12 -12
- package/lib/cjs/cascader/index.d.ts +2 -0
- package/lib/cjs/cascader/index.js +44 -36
- package/lib/cjs/cascader/item.js +26 -26
- 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.js +16 -16
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- 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 +2 -2
- package/lib/cjs/datePicker/monthsGrid.js +27 -27
- package/lib/cjs/datePicker/navigation.js +1 -1
- package/lib/cjs/datePicker/quickControl.d.ts +1 -1
- package/lib/cjs/datePicker/quickControl.js +14 -14
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- 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.js +7 -7
- package/lib/cjs/dropdown/dropdownMenu.js +1 -1
- package/lib/cjs/dropdown/dropdownTitle.js +2 -2
- package/lib/cjs/dropdown/index.d.ts +1 -1
- 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.d.ts +4 -4
- package/lib/cjs/form/baseForm.js +2 -2
- package/lib/cjs/form/errorMessage.js +1 -1
- package/lib/cjs/form/field.d.ts +4 -4
- package/lib/cjs/form/group.js +6 -6
- package/lib/cjs/form/hoc/withField.js +16 -16
- 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/locale/source/ar.js +5 -5
- package/lib/cjs/locale/source/de.js +5 -5
- package/lib/cjs/locale/source/en_GB.js +5 -5
- package/lib/cjs/locale/source/en_US.js +4 -4
- package/lib/cjs/locale/source/es.js +5 -5
- package/lib/cjs/locale/source/fr.js +5 -5
- package/lib/cjs/locale/source/id_ID.js +4 -4
- package/lib/cjs/locale/source/it.js +5 -5
- package/lib/cjs/locale/source/ja_JP.js +5 -5
- package/lib/cjs/locale/source/ko_KR.js +4 -4
- package/lib/cjs/locale/source/ms_MY.js +4 -4
- package/lib/cjs/locale/source/nl_NL.d.ts +1 -1
- package/lib/cjs/locale/source/nl_NL.js +6 -6
- package/lib/cjs/locale/source/pl_PL.js +4 -4
- package/lib/cjs/locale/source/pt_BR.js +5 -5
- package/lib/cjs/locale/source/ro.d.ts +13 -0
- package/lib/cjs/locale/source/ro.js +17 -4
- package/lib/cjs/locale/source/ru_RU.js +4 -4
- package/lib/cjs/locale/source/sv_SE.js +4 -4
- package/lib/cjs/locale/source/th_TH.js +5 -5
- package/lib/cjs/locale/source/tr_TR.js +5 -5
- package/lib/cjs/locale/source/vi_VN.js +5 -5
- package/lib/cjs/locale/source/zh_CN.js +4 -4
- package/lib/cjs/locale/source/zh_TW.js +4 -4
- 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/confirm.js +9 -0
- 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.js +16 -16
- package/lib/cjs/navigation/SubNav.js +14 -14
- 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.d.ts +1 -1
- package/lib/cjs/overflowList/index.js +6 -6
- package/lib/cjs/pagination/index.js +24 -24
- package/lib/cjs/popconfirm/index.d.ts +11 -7
- package/lib/cjs/popconfirm/index.js +97 -60
- package/lib/cjs/popover/index.d.ts +8 -2
- package/lib/cjs/popover/index.js +17 -5
- package/lib/cjs/progress/index.js +14 -14
- package/lib/cjs/radio/radio.d.ts +1 -1
- package/lib/cjs/radio/radio.js +22 -22
- package/lib/cjs/radio/radioGroup.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/cjs/select/index.js +61 -61
- 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.d.ts +0 -2
- package/lib/cjs/steps/basicStep.js +15 -20
- package/lib/cjs/steps/basicSteps.js +6 -6
- package/lib/cjs/steps/fillStep.d.ts +0 -1
- package/lib/cjs/steps/fillStep.js +10 -11
- package/lib/cjs/steps/fillSteps.js +5 -4
- package/lib/cjs/steps/index.d.ts +1 -4
- package/lib/cjs/steps/navStep.d.ts +0 -3
- package/lib/cjs/steps/navStep.js +8 -26
- package/lib/cjs/steps/navSteps.js +2 -2
- package/lib/cjs/steps/step.d.ts +1 -5
- package/lib/cjs/steps/step.js +3 -3
- 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.d.ts +2 -2
- 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 +12 -12
- package/lib/cjs/tabs/TabItem.js +7 -7
- 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.d.ts +8 -4
- package/lib/cjs/tooltip/index.js +17 -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.d.ts +2 -1
- package/lib/cjs/treeSelect/index.js +63 -51
- package/lib/cjs/typography/base.js +14 -14
- package/lib/cjs/typography/copyable.js +3 -3
- package/lib/cjs/typography/numeral.d.ts +1 -1
- package/lib/cjs/typography/paragraph.js +1 -1
- package/lib/cjs/typography/title.d.ts +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.d.ts +1 -1
- package/lib/es/anchor/index.js +9 -9
- package/lib/es/anchor/link.js +8 -8
- package/lib/es/autoComplete/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/es/carousel/CarouselIndicator.js +6 -6
- package/lib/es/carousel/index.d.ts +2 -2
- package/lib/es/carousel/index.js +12 -12
- package/lib/es/cascader/index.d.ts +2 -0
- package/lib/es/cascader/index.js +44 -36
- package/lib/es/cascader/item.js +26 -26
- 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.js +16 -16
- package/lib/es/datePicker/datePicker.d.ts +2 -2
- 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 +2 -2
- package/lib/es/datePicker/monthsGrid.js +27 -27
- package/lib/es/datePicker/navigation.js +1 -1
- package/lib/es/datePicker/quickControl.d.ts +1 -1
- package/lib/es/datePicker/quickControl.js +14 -14
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- 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.js +7 -7
- package/lib/es/dropdown/dropdownMenu.js +1 -1
- package/lib/es/dropdown/dropdownTitle.js +2 -2
- package/lib/es/dropdown/index.d.ts +1 -1
- 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.d.ts +4 -4
- package/lib/es/form/baseForm.js +2 -2
- package/lib/es/form/errorMessage.js +1 -1
- package/lib/es/form/field.d.ts +4 -4
- package/lib/es/form/group.js +6 -6
- package/lib/es/form/hoc/withField.js +16 -16
- 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/locale/source/ar.js +5 -5
- package/lib/es/locale/source/de.js +5 -5
- package/lib/es/locale/source/en_GB.js +5 -5
- package/lib/es/locale/source/en_US.js +4 -4
- package/lib/es/locale/source/es.js +5 -5
- package/lib/es/locale/source/fr.js +5 -5
- package/lib/es/locale/source/id_ID.js +4 -4
- package/lib/es/locale/source/it.js +5 -5
- package/lib/es/locale/source/ja_JP.js +5 -5
- package/lib/es/locale/source/ko_KR.js +4 -4
- package/lib/es/locale/source/ms_MY.js +4 -4
- package/lib/es/locale/source/nl_NL.d.ts +1 -1
- package/lib/es/locale/source/nl_NL.js +6 -6
- package/lib/es/locale/source/pl_PL.js +4 -4
- package/lib/es/locale/source/pt_BR.js +5 -5
- package/lib/es/locale/source/ro.d.ts +13 -0
- package/lib/es/locale/source/ro.js +17 -4
- package/lib/es/locale/source/ru_RU.js +4 -4
- package/lib/es/locale/source/sv_SE.js +4 -4
- package/lib/es/locale/source/th_TH.js +5 -5
- package/lib/es/locale/source/tr_TR.js +5 -5
- package/lib/es/locale/source/vi_VN.js +5 -5
- package/lib/es/locale/source/zh_CN.js +4 -4
- package/lib/es/locale/source/zh_TW.js +4 -4
- 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/confirm.js +9 -0
- 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.js +16 -16
- package/lib/es/navigation/SubNav.js +14 -14
- 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.d.ts +1 -1
- package/lib/es/overflowList/index.js +6 -6
- package/lib/es/pagination/index.js +24 -24
- package/lib/es/popconfirm/index.d.ts +11 -7
- package/lib/es/popconfirm/index.js +95 -60
- package/lib/es/popover/index.d.ts +8 -2
- package/lib/es/popover/index.js +17 -5
- package/lib/es/progress/index.js +14 -14
- package/lib/es/radio/radio.d.ts +1 -1
- package/lib/es/radio/radio.js +22 -22
- package/lib/es/radio/radioGroup.d.ts +1 -1
- 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.d.ts +1 -1
- package/lib/es/select/index.js +61 -61
- 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.d.ts +0 -2
- package/lib/es/steps/basicStep.js +15 -20
- package/lib/es/steps/basicSteps.js +6 -6
- package/lib/es/steps/fillStep.d.ts +0 -1
- package/lib/es/steps/fillStep.js +10 -11
- package/lib/es/steps/fillSteps.js +5 -4
- package/lib/es/steps/index.d.ts +1 -4
- package/lib/es/steps/navStep.d.ts +0 -3
- package/lib/es/steps/navStep.js +8 -21
- package/lib/es/steps/navSteps.js +2 -2
- package/lib/es/steps/step.d.ts +1 -5
- package/lib/es/steps/step.js +3 -3
- 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.d.ts +2 -2
- 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 +12 -12
- package/lib/es/tabs/TabItem.js +7 -7
- 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.d.ts +8 -4
- package/lib/es/tooltip/index.js +17 -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.d.ts +2 -1
- package/lib/es/treeSelect/index.js +63 -51
- package/lib/es/typography/base.js +14 -14
- package/lib/es/typography/copyable.js +3 -3
- package/lib/es/typography/numeral.d.ts +1 -1
- package/lib/es/typography/paragraph.js +1 -1
- package/lib/es/typography/title.d.ts +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 +9 -9
|
@@ -110,14 +110,14 @@ class TableExpandedRow extends _react.PureComponent {
|
|
|
110
110
|
render: () => ({
|
|
111
111
|
props,
|
|
112
112
|
children: /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
className: (0, _classnames.default)(
|
|
113
|
+
className: (0, _classnames.default)(`${prefixCls}-expand-inner`),
|
|
114
114
|
style: {
|
|
115
115
|
width: anyColumnFixed ? (0, _utils2.amendTableWidth)(tableWidth) : undefined
|
|
116
116
|
}
|
|
117
117
|
}, children)
|
|
118
118
|
})
|
|
119
119
|
}, column)];
|
|
120
|
-
const rowCls = (0, _classnames.default)(className,
|
|
120
|
+
const rowCls = (0, _classnames.default)(className, `${prefixCls}-row-expand`);
|
|
121
121
|
const baseRowCellWidths = getCellWidths(columns);
|
|
122
122
|
return /*#__PURE__*/_react.default.createElement(_BaseRow.default, {
|
|
123
123
|
style: style,
|
|
@@ -125,7 +125,7 @@ class TableExpandedRow extends _react.PureComponent {
|
|
|
125
125
|
className: rowCls,
|
|
126
126
|
expandedRow: true,
|
|
127
127
|
renderExpandIcon: renderExpandIcon,
|
|
128
|
-
rowKey:
|
|
128
|
+
rowKey: `${record.key}-expanded-row`,
|
|
129
129
|
columns: columns,
|
|
130
130
|
store: store,
|
|
131
131
|
virtualized: virtualized,
|
|
@@ -165,7 +165,7 @@ class SectionRow extends _react.PureComponent {
|
|
|
165
165
|
children
|
|
166
166
|
})
|
|
167
167
|
}, column)];
|
|
168
|
-
const rowCls = (0, _classnames.default)(className,
|
|
168
|
+
const rowCls = (0, _classnames.default)(className, `${prefixCls}-row-section`, {
|
|
169
169
|
on: expanded
|
|
170
170
|
});
|
|
171
171
|
const {
|
|
@@ -114,7 +114,7 @@ class Body extends _baseComponent.default {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
if (realSize < defaultConfig.minHeight) {
|
|
117
|
-
_utils2.logger.warn(
|
|
117
|
+
_utils2.logger.warn(`The computed real \`itemSize\` cannot be less than ${defaultConfig.minHeight}`);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
return realSize;
|
|
@@ -223,7 +223,7 @@ class Body extends _baseComponent.default {
|
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
// eslint-disable-next-line react/no-this-in-sfc,react/destructuring-assignment
|
|
226
|
-
className: (0, _classnames.default)(props.className,
|
|
226
|
+
className: (0, _classnames.default)(props.className, `${_this.props.prefixCls}-tbody`),
|
|
227
227
|
style: Object.assign({}, props.style),
|
|
228
228
|
ref: ref
|
|
229
229
|
}));
|
|
@@ -244,7 +244,7 @@ class Body extends _baseComponent.default {
|
|
|
244
244
|
} = this.props; // eslint-disable-next-line react/no-this-in-sfc
|
|
245
245
|
|
|
246
246
|
const tableWidth = this.getVirtualizedRowWidth();
|
|
247
|
-
const tableCls = (0, _classnames.default)(
|
|
247
|
+
const tableCls = (0, _classnames.default)(`${prefixCls}`, `${prefixCls}-fixed`);
|
|
248
248
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({}, rest, {
|
|
249
249
|
ref: ref,
|
|
250
250
|
onWheel: function () {
|
|
@@ -312,7 +312,7 @@ class Body extends _baseComponent.default {
|
|
|
312
312
|
overflowX: 'auto',
|
|
313
313
|
overflowY: 'auto'
|
|
314
314
|
};
|
|
315
|
-
const wrapCls = (0, _classnames.default)(
|
|
315
|
+
const wrapCls = (0, _classnames.default)(`${prefixCls}-body`);
|
|
316
316
|
return /*#__PURE__*/_react.default.createElement(_reactWindow.VariableSizeList, Object.assign({}, typeof virtualized === 'object' ? virtualized : {}, {
|
|
317
317
|
initialScrollOffset: this.state.cache.virtualizedScrollTop,
|
|
318
318
|
onScroll: this.handleVirtualizedScroll,
|
|
@@ -531,7 +531,7 @@ class Body extends _baseComponent.default {
|
|
|
531
531
|
}); // const tableBody = this.renderBody();
|
|
532
532
|
|
|
533
533
|
|
|
534
|
-
const wrapCls =
|
|
534
|
+
const wrapCls = `${prefixCls}-body`;
|
|
535
535
|
|
|
536
536
|
const baseTable = /*#__PURE__*/_react.default.createElement("div", {
|
|
537
537
|
key: "bodyTable",
|
|
@@ -548,21 +548,21 @@ class Body extends _baseComponent.default {
|
|
|
548
548
|
"aria-colcount": columns && columns.length,
|
|
549
549
|
style: tableStyle,
|
|
550
550
|
className: (0, _classnames.default)(prefixCls, {
|
|
551
|
-
[
|
|
551
|
+
[`${prefixCls}-fixed`]: anyColumnFixed
|
|
552
552
|
})
|
|
553
553
|
}, colgroup, includeHeader && showHeader ? /*#__PURE__*/_react.default.createElement(_TableHeader.default, Object.assign({}, this.props, {
|
|
554
554
|
ref: headerRef,
|
|
555
555
|
components: components,
|
|
556
556
|
columns: columns
|
|
557
557
|
})) : null, /*#__PURE__*/_react.default.createElement(BodyWrapper, {
|
|
558
|
-
className:
|
|
558
|
+
className: `${prefixCls}-tbody`,
|
|
559
559
|
onScroll: onScroll
|
|
560
560
|
}, (0, _isMap2.default)(groups) ? this.renderGroupedRows() : this.renderBodyRows(dataSource))), emptySlot);
|
|
561
561
|
|
|
562
562
|
if (fixed && columns.length) {
|
|
563
563
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
564
564
|
key: "bodyTable",
|
|
565
|
-
className:
|
|
565
|
+
className: `${prefixCls}-body-outer`
|
|
566
566
|
}, baseTable);
|
|
567
567
|
}
|
|
568
568
|
|
|
@@ -43,12 +43,12 @@ class ColGroup extends _react.default.PureComponent {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
return /*#__PURE__*/_react.default.createElement(Col, {
|
|
46
|
-
className: (0, _classnames.default)(
|
|
46
|
+
className: (0, _classnames.default)(`${prefixCls}-col`, column.className),
|
|
47
47
|
key: column.key || column.dataIndex || idx,
|
|
48
48
|
style: colStyle
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
const groupCls = (0, _classnames.default)(
|
|
51
|
+
const groupCls = (0, _classnames.default)(`${prefixCls}-colgroup`, className);
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement(ColGroup, {
|
|
53
53
|
className: groupCls,
|
|
54
54
|
style: style
|
|
@@ -88,7 +88,7 @@ function renderDropdown() {
|
|
|
88
88
|
const {
|
|
89
89
|
value
|
|
90
90
|
} = filter;
|
|
91
|
-
const key =
|
|
91
|
+
const key = `${level}_${index}`;
|
|
92
92
|
const dropdownItem = typeof renderFilterDropdownItem === 'function' ? renderFilterDropdownItem({
|
|
93
93
|
onChange: changeFn,
|
|
94
94
|
filterMultiple,
|
|
@@ -128,7 +128,7 @@ function renderDropdown() {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
return /*#__PURE__*/_react.default.createElement(_dropdown.default, Object.assign({}, dropdownProps, {
|
|
131
|
-
key:
|
|
131
|
+
key: `Dropdown_level_${level}`
|
|
132
132
|
}), nestedElem);
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -144,7 +144,7 @@ function ColumnFilter() {
|
|
|
144
144
|
let {
|
|
145
145
|
filterDropdown = null
|
|
146
146
|
} = props;
|
|
147
|
-
const finalCls = (0, _classnames.default)(
|
|
147
|
+
const finalCls = (0, _classnames.default)(`${prefixCls}-column-filter`, {
|
|
148
148
|
on: Array.isArray(filteredValue) && filteredValue.length
|
|
149
149
|
});
|
|
150
150
|
let iconElem;
|
|
@@ -68,8 +68,8 @@ class TableSelectionCell extends _baseComponent.default {
|
|
|
68
68
|
checkboxProps = Object.assign(Object.assign({}, checkboxProps), getCheckboxProps());
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const wrapCls = (0, _classnames.default)(
|
|
72
|
-
[
|
|
71
|
+
const wrapCls = (0, _classnames.default)(`${prefixCls}-selection-wrap`, {
|
|
72
|
+
[`${prefixCls}-selection-disabled`]: disabled
|
|
73
73
|
}, className);
|
|
74
74
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
75
75
|
className: wrapCls
|
|
@@ -35,10 +35,10 @@ class ColumnSorter extends _react.PureComponent {
|
|
|
35
35
|
title
|
|
36
36
|
} = this.props;
|
|
37
37
|
const iconBtnSize = 'default';
|
|
38
|
-
const upCls = (0, _classnames.default)(
|
|
38
|
+
const upCls = (0, _classnames.default)(`${prefixCls}-column-sorter-up`, {
|
|
39
39
|
on: sortOrder === _constants.strings.SORT_DIRECTIONS[0]
|
|
40
40
|
});
|
|
41
|
-
const downCls = (0, _classnames.default)(
|
|
41
|
+
const downCls = (0, _classnames.default)(`${prefixCls}-column-sorter-down`, {
|
|
42
42
|
on: sortOrder === _constants.strings.SORT_DIRECTIONS[1]
|
|
43
43
|
});
|
|
44
44
|
const ariaProps = {
|
|
@@ -46,25 +46,25 @@ class ColumnSorter extends _react.PureComponent {
|
|
|
46
46
|
* Set 'aria-sort' to aria-columnheader is difficult, so set 'aria-label' about sort info to sorter
|
|
47
47
|
* reference: https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaSort
|
|
48
48
|
*/
|
|
49
|
-
'aria-label':
|
|
49
|
+
'aria-label': `Current sort order is ${sortOrder ? `${sortOrder}ing` : 'none'}`,
|
|
50
50
|
'aria-roledescription': 'Sort data with this column'
|
|
51
51
|
};
|
|
52
52
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
53
53
|
role: 'button'
|
|
54
54
|
}, ariaProps, {
|
|
55
55
|
tabIndex: -1,
|
|
56
|
-
className:
|
|
56
|
+
className: `${prefixCls}-column-sorter-wrapper`,
|
|
57
57
|
onClick: onClick,
|
|
58
58
|
onKeyPress: e => (0, _isEnterPress.default)(e) && onClick(e)
|
|
59
59
|
}), title, /*#__PURE__*/_react.default.createElement("div", {
|
|
60
60
|
style: style,
|
|
61
|
-
className:
|
|
61
|
+
className: `${prefixCls}-column-sorter`
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
63
|
-
className:
|
|
63
|
+
className: `${upCls}`
|
|
64
64
|
}, /*#__PURE__*/_react.default.createElement(_semiIcons.IconCaretup, {
|
|
65
65
|
size: iconBtnSize
|
|
66
66
|
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
67
|
-
className:
|
|
67
|
+
className: `${downCls}`
|
|
68
68
|
}, /*#__PURE__*/_react.default.createElement(_semiIcons.IconCaretdown, {
|
|
69
69
|
size: iconBtnSize
|
|
70
70
|
}))));
|
|
@@ -67,7 +67,7 @@ function CustomExpandIcon(props) {
|
|
|
67
67
|
const originIcon = icon;
|
|
68
68
|
icon = /*#__PURE__*/_react.default.createElement(_cssAnimation.default, {
|
|
69
69
|
animationState: expanded ? "enter" : "leave",
|
|
70
|
-
startClassName:
|
|
70
|
+
startClassName: `${_constants.cssClasses.PREFIX}-expandedIcon-${expanded ? 'show' : "hide"}`
|
|
71
71
|
}, _ref => {
|
|
72
72
|
let {
|
|
73
73
|
animationClassName
|
|
@@ -85,7 +85,7 @@ function CustomExpandIcon(props) {
|
|
|
85
85
|
onClick: handleClick,
|
|
86
86
|
onMouseEnter: onMouseEnter,
|
|
87
87
|
onMouseLeave: onMouseLeave,
|
|
88
|
-
className:
|
|
88
|
+
className: `${prefixCls}-expand-icon`,
|
|
89
89
|
onKeyPress: e => (0, _isEnterPress.default)(e) && handleClick(e)
|
|
90
90
|
}, icon);
|
|
91
91
|
}
|
|
@@ -78,8 +78,8 @@ class HeadTable extends _react.default.PureComponent {
|
|
|
78
78
|
onDidUpdate: onDidUpdate
|
|
79
79
|
}));
|
|
80
80
|
|
|
81
|
-
const headTableCls = (0, _classnames.default)(
|
|
82
|
-
[
|
|
81
|
+
const headTableCls = (0, _classnames.default)(`${prefixCls}-header`, {
|
|
82
|
+
[`${prefixCls}-header-sticky`]: sticky
|
|
83
83
|
});
|
|
84
84
|
const stickyTop = (0, _get2.default)(sticky, 'top', 0);
|
|
85
85
|
|
|
@@ -96,7 +96,7 @@ class HeadTable extends _react.default.PureComponent {
|
|
|
96
96
|
}, /*#__PURE__*/_react.default.createElement(Table, {
|
|
97
97
|
style: tableStyle,
|
|
98
98
|
className: (0, _classnames.default)(prefixCls, {
|
|
99
|
-
[
|
|
99
|
+
[`${prefixCls}-fixed`]: anyColumnFixed
|
|
100
100
|
})
|
|
101
101
|
}, colgroup, tableHeader));
|
|
102
102
|
}
|
package/lib/cjs/table/Table.d.ts
CHANGED
|
@@ -280,7 +280,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
280
280
|
* Combine pagination and table paging processing functions
|
|
281
281
|
*/
|
|
282
282
|
mergePagination: (pagination: TablePaginationProps) => {
|
|
283
|
-
position?: "
|
|
283
|
+
position?: "both" | "top" | "bottom";
|
|
284
284
|
formatPageText?: import("./interface").FormatPageText;
|
|
285
285
|
style?: React.CSSProperties;
|
|
286
286
|
className?: string;
|
|
@@ -300,7 +300,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
300
300
|
showSizeChanger?: boolean;
|
|
301
301
|
showQuickJumper?: boolean;
|
|
302
302
|
popoverZIndex?: number;
|
|
303
|
-
popoverPosition?: "
|
|
303
|
+
popoverPosition?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
|
|
304
304
|
hideOnSinglePage?: boolean;
|
|
305
305
|
hoverShowPageSelect?: boolean;
|
|
306
306
|
};
|
package/lib/cjs/table/Table.js
CHANGED
|
@@ -296,17 +296,17 @@ class Table extends _baseComponent.default {
|
|
|
296
296
|
const {
|
|
297
297
|
prefixCls
|
|
298
298
|
} = this.props;
|
|
299
|
-
const positionAll = [
|
|
299
|
+
const positionAll = [`${prefixCls}-scroll-position-both`, `${prefixCls}-scroll-position-middle`, `${prefixCls}-scroll-position-left`, `${prefixCls}-scroll-position-right`];
|
|
300
300
|
this.scrollPosition = position;
|
|
301
301
|
const tableNode = this.wrapRef.current;
|
|
302
302
|
|
|
303
303
|
if (tableNode && tableNode.nodeType) {
|
|
304
304
|
if (position === 'both') {
|
|
305
|
-
const acceptPosition = [
|
|
305
|
+
const acceptPosition = [`${prefixCls}-scroll-position-left`, `${prefixCls}-scroll-position-right`];
|
|
306
306
|
tableNode.classList.remove(...(0, _difference2.default)(positionAll, acceptPosition));
|
|
307
307
|
tableNode.classList.add(...acceptPosition);
|
|
308
308
|
} else {
|
|
309
|
-
const acceptPosition = [
|
|
309
|
+
const acceptPosition = [`${prefixCls}-scroll-position-${position}`];
|
|
310
310
|
tableNode.classList.remove(...(0, _difference2.default)(positionAll, acceptPosition));
|
|
311
311
|
tableNode.classList.add(...acceptPosition);
|
|
312
312
|
}
|
|
@@ -366,7 +366,7 @@ class Table extends _baseComponent.default {
|
|
|
366
366
|
const hasRowSelected = _this.foundation.hasRowSelected(selectedRowKeys, allRowKeysSet);
|
|
367
367
|
|
|
368
368
|
return /*#__PURE__*/_react.default.createElement(_ColumnSelection.default, {
|
|
369
|
-
"aria-label":
|
|
369
|
+
"aria-label": `${allIsSelected ? 'Deselect' : 'Select'} all rows`,
|
|
370
370
|
disabled: disabled,
|
|
371
371
|
key: columnKey,
|
|
372
372
|
selected: allIsSelected,
|
|
@@ -383,7 +383,7 @@ class Table extends _baseComponent.default {
|
|
|
383
383
|
const checkboxPropsFn = () => typeof getCheckboxProps === 'function' ? getCheckboxProps(record) : {};
|
|
384
384
|
|
|
385
385
|
return /*#__PURE__*/_react.default.createElement(_ColumnSelection.default, {
|
|
386
|
-
"aria-label":
|
|
386
|
+
"aria-label": `${selected ? 'Deselect' : 'Select'} this row`,
|
|
387
387
|
getCheckboxProps: checkboxPropsFn,
|
|
388
388
|
selected: selected,
|
|
389
389
|
onChange: (status, e) => _this.toggleSelectRow(status, key, e)
|
|
@@ -419,7 +419,7 @@ class Table extends _baseComponent.default {
|
|
|
419
419
|
column = Object.assign(Object.assign({}, column), (0, _omit2.default)(rowSelection, needOmitSelectionKey));
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
column.className = (0, _classnames.default)(column.className,
|
|
422
|
+
column.className = (0, _classnames.default)(column.className, `${prefixCls}-column-selection`);
|
|
423
423
|
column.title = _this.renderTitleSelectionCallback;
|
|
424
424
|
column.render = _this.renderRowSelectionCallback;
|
|
425
425
|
}
|
|
@@ -485,7 +485,7 @@ class Table extends _baseComponent.default {
|
|
|
485
485
|
fixed: expandCellFixed,
|
|
486
486
|
key: _constants.strings.DEFAULT_KEY_COLUMN_EXPAND
|
|
487
487
|
};
|
|
488
|
-
column.className = (0, _classnames.default)(column.className,
|
|
488
|
+
column.className = (0, _classnames.default)(column.className, `${prefixCls}-column-expand`);
|
|
489
489
|
column.render = expandIcon !== false ? function () {
|
|
490
490
|
let text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
491
491
|
let record = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -618,7 +618,7 @@ class Table extends _baseComponent.default {
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
return /*#__PURE__*/(0, _react.isValidElement)(title) || typeof title === 'string' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
621
|
-
className:
|
|
621
|
+
className: `${prefixCls}-title`,
|
|
622
622
|
"x-semi-prop": "title"
|
|
623
623
|
}, title) : null;
|
|
624
624
|
};
|
|
@@ -630,7 +630,7 @@ class Table extends _baseComponent.default {
|
|
|
630
630
|
empty,
|
|
631
631
|
dataSource
|
|
632
632
|
} = props;
|
|
633
|
-
const wrapCls =
|
|
633
|
+
const wrapCls = `${prefixCls}-placeholder`;
|
|
634
634
|
|
|
635
635
|
const isEmpty = _this.foundation.isEmpty(dataSource);
|
|
636
636
|
|
|
@@ -644,7 +644,7 @@ class Table extends _baseComponent.default {
|
|
|
644
644
|
}, (locale, localeCode) => /*#__PURE__*/_react.default.createElement("div", {
|
|
645
645
|
className: wrapCls
|
|
646
646
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
647
|
-
className:
|
|
647
|
+
className: `${prefixCls}-empty`,
|
|
648
648
|
"x-semi-prop": "empty"
|
|
649
649
|
}, empty || locale.emptyText)));
|
|
650
650
|
};
|
|
@@ -664,7 +664,7 @@ class Table extends _baseComponent.default {
|
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
return /*#__PURE__*/(0, _react.isValidElement)(footer) || typeof footer === 'string' ? /*#__PURE__*/_react.default.createElement("div", {
|
|
667
|
-
className:
|
|
667
|
+
className: `${prefixCls}-footer`,
|
|
668
668
|
key: "footer",
|
|
669
669
|
"x-semi-prop": "footer"
|
|
670
670
|
}, footer) : null;
|
|
@@ -1473,13 +1473,13 @@ class Table extends _baseComponent.default {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
const wrapCls = (0, _classnames.default)({
|
|
1476
|
-
[
|
|
1477
|
-
[
|
|
1478
|
-
[
|
|
1479
|
-
[
|
|
1480
|
-
[
|
|
1481
|
-
[
|
|
1482
|
-
[
|
|
1476
|
+
[`${prefixCls}-${_constants.strings.SIZE_SMALL}`]: size === _constants.strings.SIZE_SMALL,
|
|
1477
|
+
[`${prefixCls}-${_constants.strings.SIZE_MIDDLE}`]: size === _constants.strings.SIZE_MIDDLE,
|
|
1478
|
+
[`${prefixCls}-virtualized`]: Boolean(virtualized),
|
|
1479
|
+
[`${prefixCls}-bordered`]: bordered,
|
|
1480
|
+
[`${prefixCls}-fixed-header`]: Boolean(y),
|
|
1481
|
+
[`${prefixCls}-scroll-position-left`]: ['both', 'left'].includes(this.position),
|
|
1482
|
+
[`${prefixCls}-scroll-position-right`]: ['both', 'right'].includes(this.position)
|
|
1483
1483
|
}); // pagination
|
|
1484
1484
|
|
|
1485
1485
|
const tablePagination = pagination && propPagination ? this.renderPagination(pagination, propRenderPagination) : null;
|
|
@@ -1500,7 +1500,7 @@ class Table extends _baseComponent.default {
|
|
|
1500
1500
|
});
|
|
1501
1501
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1502
1502
|
ref: this.rootWrapRef,
|
|
1503
|
-
className: (0, _classnames.default)(className,
|
|
1503
|
+
className: (0, _classnames.default)(className, `${prefixCls}-wrapper`),
|
|
1504
1504
|
"data-column-fixed": anyColumnFixed,
|
|
1505
1505
|
style: wrapStyle,
|
|
1506
1506
|
id: id
|
|
@@ -1517,7 +1517,7 @@ class Table extends _baseComponent.default {
|
|
|
1517
1517
|
dataSource: props.dataSource,
|
|
1518
1518
|
prefixCls: props.prefixCls
|
|
1519
1519
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
1520
|
-
className:
|
|
1520
|
+
className: `${prefixCls}-container`
|
|
1521
1521
|
}, this.renderMainTable(Object.assign({}, props))), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
1522
1522
|
key: 'pagination-bottom'
|
|
1523
1523
|
}, ['bottom', 'both'].includes(paginationPosition) ? tablePagination : null)))));
|
|
@@ -215,9 +215,9 @@ class TableCell extends _baseComponent.default {
|
|
|
215
215
|
|
|
216
216
|
const indentText = indent && indentSize ? /*#__PURE__*/_react.default.createElement("span", {
|
|
217
217
|
style: {
|
|
218
|
-
paddingLeft:
|
|
218
|
+
paddingLeft: `${indentSize * indent}px`
|
|
219
219
|
},
|
|
220
|
-
className:
|
|
220
|
+
className: `${prefixCls}-row-indent indent-level-${indent}`
|
|
221
221
|
}) : null; // column.render
|
|
222
222
|
|
|
223
223
|
const realExpandIcon = typeof renderExpandIcon === 'function' ? renderExpandIcon(record) : expandIcon;
|
|
@@ -289,7 +289,7 @@ class TableCell extends _baseComponent.default {
|
|
|
289
289
|
|
|
290
290
|
if (isSection) {
|
|
291
291
|
inner = /*#__PURE__*/_react.default.createElement("div", {
|
|
292
|
-
className: (0, _classnames.default)(
|
|
292
|
+
className: (0, _classnames.default)(`${prefixCls}-section-inner`),
|
|
293
293
|
style: {
|
|
294
294
|
width: anyColumnFixed ? (0, _utils2.amendTableWidth)(tableWidth) : undefined
|
|
295
295
|
}
|
|
@@ -340,11 +340,11 @@ class TableCell extends _baseComponent.default {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
const inner = this.renderInner(text, indentText, realExpandIcon);
|
|
343
|
-
const columnCls = (0, _classnames.default)(className,
|
|
344
|
-
[
|
|
345
|
-
[
|
|
346
|
-
[
|
|
347
|
-
[
|
|
343
|
+
const columnCls = (0, _classnames.default)(className, `${prefixCls}-row-cell`, (0, _get2.default)(customCellProps, 'className'), {
|
|
344
|
+
[`${prefixCls}-cell-fixed-left`]: fixedLeftFlag,
|
|
345
|
+
[`${prefixCls}-cell-fixed-left-last`]: lastFixedLeft,
|
|
346
|
+
[`${prefixCls}-cell-fixed-right`]: fixedRightFlag,
|
|
347
|
+
[`${prefixCls}-cell-fixed-right-first`]: firstFixedRight
|
|
348
348
|
});
|
|
349
349
|
return /*#__PURE__*/_react.default.createElement(BodyCell, Object.assign({
|
|
350
350
|
role: "gridcell",
|
|
@@ -127,7 +127,7 @@ class TableHeader extends _baseComponent.default {
|
|
|
127
127
|
const rows = parseHeaderRows(columns);
|
|
128
128
|
const HeaderWrapper = components.header.wrapper;
|
|
129
129
|
return /*#__PURE__*/_react.default.createElement(HeaderWrapper, {
|
|
130
|
-
className:
|
|
130
|
+
className: `${prefixCls}-thead`,
|
|
131
131
|
ref: forwardedRef
|
|
132
132
|
}, rows.map((row, idx) => /*#__PURE__*/_react.default.createElement(_TableHeaderRow.default, {
|
|
133
133
|
prefixCls: prefixCls,
|
|
@@ -59,7 +59,7 @@ class TableHeaderRow extends _baseComponent.default {
|
|
|
59
59
|
row,
|
|
60
60
|
index
|
|
61
61
|
} = this.props;
|
|
62
|
-
const cellSelector =
|
|
62
|
+
const cellSelector = `.${prefixCls}-row-head`;
|
|
63
63
|
const heads = node && node.querySelectorAll && node.querySelectorAll(cellSelector);
|
|
64
64
|
this.context.setHeadWidths((0, _map2.default)(heads, (head, headIndex) => {
|
|
65
65
|
let configWidth = (0, _get2.default)(row, [headIndex, 'column', 'width']);
|
|
@@ -108,7 +108,7 @@ class TableHeaderRow extends _baseComponent.default {
|
|
|
108
108
|
const HeaderRow = (0, _get2.default)(components, 'header.row', 'tr');
|
|
109
109
|
const HeaderCell = (0, _get2.default)(components, 'header.cell', 'th');
|
|
110
110
|
const rowProps = onHeaderRow(columns, index) || {};
|
|
111
|
-
(0, _set2.default)(rowProps, 'className', (0, _classnames.default)((0, _get2.default)(rowProps, 'className'),
|
|
111
|
+
(0, _set2.default)(rowProps, 'className', (0, _classnames.default)((0, _get2.default)(rowProps, 'className'), `${prefixCls}-row`));
|
|
112
112
|
const cells = (0, _map2.default)(row, (cell, cellIndex) => {
|
|
113
113
|
const {
|
|
114
114
|
column
|
|
@@ -123,16 +123,16 @@ class TableHeaderRow extends _baseComponent.default {
|
|
|
123
123
|
textAlign: column.align
|
|
124
124
|
});
|
|
125
125
|
customProps.className = (0, _classnames.default)(customProps.className, column.className, {
|
|
126
|
-
[
|
|
126
|
+
[`${prefixCls}-align-${column.align}`]: Boolean(column.align)
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
customProps.className = (0, _classnames.default)(
|
|
130
|
+
customProps.className = (0, _classnames.default)(`${prefixCls}-row-head`, column.className, customProps.className, // `${prefixCls}-fixed-columns`,
|
|
131
131
|
{
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
132
|
+
[`${prefixCls}-cell-fixed-left`]: (0, _utils.isFixedLeft)(column),
|
|
133
|
+
[`${prefixCls}-cell-fixed-left-last`]: (0, _utils.isLastLeftFixed)(slicedColumns, column),
|
|
134
|
+
[`${prefixCls}-cell-fixed-right`]: (0, _utils.isFixedRight)(column),
|
|
135
|
+
[`${prefixCls}-cell-fixed-right-first`]: (0, _utils.isFirstFixedRight)(slicedColumns, column)
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
if (headWidths.length && slicedColumns.length) {
|
|
@@ -35,11 +35,11 @@ class TablePagination extends _react.PureComponent {
|
|
|
35
35
|
const total = (0, _get2.default)(pagination, 'total');
|
|
36
36
|
const customPagination = renderPagination && (0, _isFunction2.default)(renderPagination) ? renderPagination(pagination) : null;
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
-
className:
|
|
38
|
+
className: `${prefixCls}-pagination-outer`
|
|
39
39
|
}, /*#__PURE__*/(0, _react.isValidElement)(customPagination) ? customPagination : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
40
|
-
className:
|
|
40
|
+
className: `${prefixCls}-pagination-info`
|
|
41
41
|
}, info), /*#__PURE__*/_react.default.createElement("span", {
|
|
42
|
-
className:
|
|
42
|
+
className: `${prefixCls}-pagination-wrapper`
|
|
43
43
|
}, total > 0 ? /*#__PURE__*/_react.default.createElement(_pagination.default, Object.assign({}, pagination, {
|
|
44
44
|
key: (0, _get2.default)(pagination, 'pageSize', 'pagination')
|
|
45
45
|
})) : null)));
|
package/lib/cjs/tabs/TabBar.js
CHANGED
|
@@ -55,7 +55,7 @@ class TabBar extends _react.default.Component {
|
|
|
55
55
|
const key = this._getItemKey(itemKey); // eslint-disable-next-line max-len
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
const tabItem = document.querySelector(
|
|
58
|
+
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${_constants.cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
59
59
|
tabItem.scrollIntoView({
|
|
60
60
|
behavior: 'smooth',
|
|
61
61
|
block: 'nearest',
|
|
@@ -103,7 +103,7 @@ class TabBar extends _react.default.Component {
|
|
|
103
103
|
const key = this._getItemKey(lastItem.itemKey); // eslint-disable-next-line max-len
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
const tabItem = document.querySelector(
|
|
106
|
+
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${_constants.cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
107
107
|
tabItem.scrollIntoView({
|
|
108
108
|
behavior: 'smooth',
|
|
109
109
|
block: 'nearest',
|
|
@@ -144,17 +144,17 @@ class TabBar extends _react.default.Component {
|
|
|
144
144
|
}));
|
|
145
145
|
|
|
146
146
|
const arrowCls = (0, _classnames.default)({
|
|
147
|
-
[
|
|
148
|
-
[
|
|
147
|
+
[`${_constants.cssClasses.TABS_BAR}-arrow-${pos}`]: pos,
|
|
148
|
+
[`${_constants.cssClasses.TABS_BAR}-arrow`]: true
|
|
149
149
|
});
|
|
150
150
|
const dropdownCls = (0, _classnames.default)(dropdownClassName, {
|
|
151
|
-
[
|
|
151
|
+
[`${_constants.cssClasses.TABS_BAR}-dropdown`]: true
|
|
152
152
|
});
|
|
153
153
|
return /*#__PURE__*/_react.default.createElement(_dropdown.default, {
|
|
154
154
|
className: dropdownCls,
|
|
155
155
|
clickToHide: true,
|
|
156
156
|
clickTriggerToHide: true,
|
|
157
|
-
key:
|
|
157
|
+
key: `${rePosKey}-${pos}`,
|
|
158
158
|
position: pos === 'start' ? 'bottomLeft' : 'bottomRight',
|
|
159
159
|
render: disabled ? null : menu,
|
|
160
160
|
showTick: true,
|
|
@@ -197,14 +197,14 @@ class TabBar extends _react.default.Component {
|
|
|
197
197
|
items: renderedList,
|
|
198
198
|
overflowRenderer: this.renderOverflow,
|
|
199
199
|
renderMode: "scroll",
|
|
200
|
-
className:
|
|
200
|
+
className: `${_constants.cssClasses.TABS_BAR}-overflow-list`,
|
|
201
201
|
visibleItemRenderer: this.renderTabItem
|
|
202
202
|
});
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
this._isActive = key => key === this.props.activeKey;
|
|
206
206
|
|
|
207
|
-
this._getItemKey = key =>
|
|
207
|
+
this._getItemKey = key => `${key}-bar`;
|
|
208
208
|
|
|
209
209
|
this.state = {
|
|
210
210
|
endInd: props.list.length,
|
|
@@ -235,8 +235,8 @@ class TabBar extends _react.default.Component {
|
|
|
235
235
|
};
|
|
236
236
|
const tabBarExtraContentStyle = tabBarExtraContent && tabBarExtraContent.props ? tabBarExtraContent.props.style : {};
|
|
237
237
|
const extraCls = (0, _classnames.default)(_constants.cssClasses.TABS_BAR_EXTRA, {
|
|
238
|
-
[
|
|
239
|
-
[
|
|
238
|
+
[`${_constants.cssClasses.TABS_BAR}-${type}-extra`]: type,
|
|
239
|
+
[`${_constants.cssClasses.TABS_BAR}-${type}-extra-${size}`]: size
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
if (tabBarExtraContent) {
|
|
@@ -268,8 +268,8 @@ class TabBar extends _react.default.Component {
|
|
|
268
268
|
[_constants.cssClasses.TABS_BAR_LINE]: type === 'line',
|
|
269
269
|
[_constants.cssClasses.TABS_BAR_CARD]: type === 'card',
|
|
270
270
|
[_constants.cssClasses.TABS_BAR_BUTTON]: type === 'button',
|
|
271
|
-
[
|
|
272
|
-
[
|
|
271
|
+
[`${_constants.cssClasses.TABS_BAR}-${tabPosition}`]: tabPosition,
|
|
272
|
+
[`${_constants.cssClasses.TABS_BAR}-collapse`]: collapsible
|
|
273
273
|
});
|
|
274
274
|
const extra = this.renderExtra();
|
|
275
275
|
const contents = collapsible ? this.renderCollapsedTab() : this.renderTabComponents(list);
|
package/lib/cjs/tabs/TabItem.js
CHANGED
|
@@ -51,7 +51,7 @@ const TabItem = (props, ref) => {
|
|
|
51
51
|
return type === 'card' && closable ? /*#__PURE__*/_react.default.createElement(_semiIcons.IconClose, {
|
|
52
52
|
"aria-label": "Close",
|
|
53
53
|
role: "button",
|
|
54
|
-
className:
|
|
54
|
+
className: `${_constants.cssClasses.TABS_TAB}-icon-close`,
|
|
55
55
|
onClick: e => deleteTabItem(itemKey, e)
|
|
56
56
|
}) : null;
|
|
57
57
|
}, [type, closable, deleteTabItem, itemKey]);
|
|
@@ -63,17 +63,17 @@ const TabItem = (props, ref) => {
|
|
|
63
63
|
!disabled && onClick && onClick(itemKey, e);
|
|
64
64
|
}, [itemKey, disabled, onClick]);
|
|
65
65
|
const panelIcon = icon ? renderIcon(icon) : null;
|
|
66
|
-
const className = (0, _classnames.default)(_constants.cssClasses.TABS_TAB,
|
|
66
|
+
const className = (0, _classnames.default)(_constants.cssClasses.TABS_TAB, `${_constants.cssClasses.TABS_TAB}-${type}`, `${_constants.cssClasses.TABS_TAB}-${tabPosition}`, `${_constants.cssClasses.TABS_TAB}-single`, {
|
|
67
67
|
[_constants.cssClasses.TABS_TAB_ACTIVE]: selected,
|
|
68
68
|
[_constants.cssClasses.TABS_TAB_DISABLED]: disabled,
|
|
69
|
-
[
|
|
70
|
-
[
|
|
69
|
+
[`${_constants.cssClasses.TABS_TAB}-small`]: size === 'small',
|
|
70
|
+
[`${_constants.cssClasses.TABS_TAB}-medium`]: size === 'medium'
|
|
71
71
|
});
|
|
72
72
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
73
73
|
role: "tab",
|
|
74
|
-
id:
|
|
75
|
-
"data-tabkey":
|
|
76
|
-
"aria-controls":
|
|
74
|
+
id: `semiTab${itemKey}`,
|
|
75
|
+
"data-tabkey": `semiTab${itemKey}`,
|
|
76
|
+
"aria-controls": `semiTabPanel${itemKey}`,
|
|
77
77
|
"aria-disabled": disabled ? 'true' : 'false',
|
|
78
78
|
"aria-selected": selected ? 'true' : 'false',
|
|
79
79
|
tabIndex: selected ? 0 : -1,
|