@qsxy/element-plus-react 1.0.3 → 2.0.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/Affix/Affix.d.ts +4 -0
- package/dist/Affix/Affix.js +301 -0
- package/dist/Affix/index.d.ts +2 -0
- package/dist/Affix/index.js +1 -0
- package/dist/Affix/typings.d.ts +50 -0
- package/dist/Affix/typings.js +1 -0
- package/dist/Alert/typings.d.ts +1 -1
- package/dist/Anchor/Anchor.d.ts +6 -0
- package/dist/Anchor/Anchor.js +258 -0
- package/dist/Anchor/AnchorLink.d.ts +4 -0
- package/dist/Anchor/AnchorLink.js +77 -0
- package/dist/Anchor/element.d.ts +4 -0
- package/dist/Anchor/element.js +17 -0
- package/dist/Anchor/index.d.ts +3 -0
- package/dist/Anchor/index.js +2 -0
- package/dist/Anchor/typings.d.ts +101 -0
- package/dist/Anchor/typings.js +1 -0
- package/dist/Backtop/Backtop.d.ts +7 -0
- package/dist/Backtop/Backtop.js +153 -0
- package/dist/Backtop/index.d.ts +2 -0
- package/dist/Backtop/index.js +1 -0
- package/dist/Backtop/typings.d.ts +31 -0
- package/dist/Backtop/typings.js +1 -0
- package/dist/Button/Button.d.ts +2 -11
- package/dist/Button/Button.js +2 -6
- package/dist/Button/index.d.ts +1 -1
- package/dist/Calendar/Calendar.js +12 -8
- package/dist/Calendar/YearRangePanel.js +1 -1
- package/dist/Carousel/typings.d.ts +1 -1
- package/dist/Cascader/Cascader.d.ts +3 -3
- package/dist/Cascader/Cascader.js +238 -166
- package/dist/Cascader/CascaderContext.d.ts +9 -3
- package/dist/Cascader/CascaderContext.js +3 -1
- package/dist/Cascader/CascaderDropdown.d.ts +4 -3
- package/dist/Cascader/CascaderDropdown.js +21 -10
- package/dist/Cascader/CascaderMenu.d.ts +2 -2
- package/dist/Cascader/CascaderMenu.js +56 -14
- package/dist/Cascader/CascaderPanel.d.ts +4 -0
- package/dist/Cascader/CascaderPanel.js +11 -0
- package/dist/Cascader/index.d.ts +4 -1
- package/dist/Cascader/index.js +2 -1
- package/dist/Cascader/typings.d.ts +45 -31
- package/dist/Cascader/useCascader.d.ts +14 -13
- package/dist/Cascader/useCascader.js +120 -27
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +11 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +78 -19
- package/dist/Collapse/Collapse.d.ts +3 -3
- package/dist/Collapse/Collapse.js +71 -16
- package/dist/Collapse/CollapseContext.d.ts +3 -6
- package/dist/Collapse/CollapseContext.js +2 -4
- package/dist/Collapse/CollapseItem.d.ts +3 -3
- package/dist/Collapse/CollapseItem.js +93 -51
- package/dist/Collapse/CollapseTransition.js +11 -7
- package/dist/Collapse/index.d.ts +1 -1
- package/dist/Collapse/typings.d.ts +20 -5
- package/dist/ColorPicker/typings.d.ts +1 -1
- package/dist/Countdown/Countdown.d.ts +4 -0
- package/dist/Countdown/Countdown.js +121 -0
- package/dist/Countdown/index.d.ts +2 -0
- package/dist/Countdown/index.js +1 -0
- package/dist/Countdown/typings.d.ts +52 -0
- package/dist/Countdown/typings.js +1 -0
- package/dist/Countdown/util.d.ts +14 -0
- package/dist/Countdown/util.js +58 -0
- package/dist/DatePicker/DatePicker.js +9 -6
- package/dist/DatePicker/DateRangePicker.js +7 -6
- package/dist/DatePicker/typings.d.ts +0 -13
- package/dist/DateTimePicker/DateTimePicker.js +29 -19
- package/dist/Dialog/Dialog.d.ts +2 -13
- package/dist/Dialog/Dialog.js +139 -149
- package/dist/Dialog/DialogBody.js +3 -38
- package/dist/Dialog/DialogContext.d.ts +0 -7
- package/dist/Dialog/DialogContext.js +1 -5
- package/dist/Dialog/DialogHeader.js +2 -2
- package/dist/Dialog/typings.d.ts +43 -28
- package/dist/Dialog/useDraggable.d.ts +2 -1
- package/dist/Dialog/useDraggable.js +34 -9
- package/dist/Drawer/Drawer.d.ts +2 -13
- package/dist/Drawer/Drawer.js +115 -137
- package/dist/Drawer/DrawerBody.js +7 -8
- package/dist/Drawer/DrawerFooter.js +7 -7
- package/dist/Drawer/DrawerHeader.js +11 -8
- package/dist/Drawer/typings.d.ts +22 -6
- package/dist/Dropdown/Dropdown.js +5 -3
- package/dist/Dropdown/typings.d.ts +2 -1
- package/dist/Empty/Empty.js +16 -4
- package/dist/Form/Form.d.ts +4 -21
- package/dist/Form/Form.js +53 -25
- package/dist/Form/FormItem.d.ts +4 -52
- package/dist/Form/FormItem.js +633 -650
- package/dist/Form/FormItemContext.d.ts +10 -1
- package/dist/Form/FormItemContext.js +9 -1
- package/dist/Form/FormLabelWrap.d.ts +8 -0
- package/dist/Form/FormLabelWrap.js +103 -0
- package/dist/Form/{FieldContext.d.ts → InternalFormContext.d.ts} +2 -2
- package/dist/Form/{FieldContext.js → InternalFormContext.js} +5 -2
- package/dist/Form/List.d.ts +3 -3
- package/dist/Form/List.js +4 -4
- package/dist/Form/index.d.ts +4 -2
- package/dist/Form/index.js +4 -1
- package/dist/Form/typings.d.ts +61 -9
- package/dist/Form/typings.js +15 -1
- package/dist/Form/useForm.js +3 -3
- package/dist/Form/useWatch.js +1 -1
- package/dist/Input/Input.d.ts +2 -14
- package/dist/Input/Input.js +122 -100
- package/dist/Input/InputGroup.js +1 -1
- package/dist/Input/InputRange.js +7 -11
- package/dist/Input/TextArea.d.ts +1 -1
- package/dist/Input/TextArea.js +84 -29
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +2 -1
- package/dist/Input/typings.d.ts +3 -25
- package/dist/InputNumber/InputNumber.js +74 -23
- package/dist/InputNumber/typings.d.ts +0 -4
- package/dist/Menu/Menu.js +1 -1
- package/dist/Menu/typings.d.ts +3 -13
- package/dist/Message/index.js +5 -3
- package/dist/MessageBox/MessageBox.js +29 -33
- package/dist/MessageBox/typings.d.ts +0 -1
- package/dist/Notification/typings.d.ts +1 -1
- package/dist/PageHeader/PageHeader.d.ts +8 -0
- package/dist/PageHeader/PageHeader.js +91 -0
- package/dist/PageHeader/index.d.ts +2 -0
- package/dist/PageHeader/index.js +1 -0
- package/dist/PageHeader/typings.d.ts +34 -0
- package/dist/PageHeader/typings.js +1 -0
- package/dist/Pagination/typings.d.ts +1 -1
- package/dist/Popover/Popover.js +7 -7
- package/dist/Popover/typings.d.ts +3 -3
- package/dist/Popper/Popper.js +49 -28
- package/dist/Popper/popperOptions.js +1 -0
- package/dist/Popper/typings.d.ts +2 -0
- package/dist/Radio/Radio.d.ts +2 -12
- package/dist/Radio/Radio.js +2 -6
- package/dist/Radio/RadioButton.d.ts +1 -1
- package/dist/Radio/RadioButton.js +4 -4
- package/dist/Radio/index.d.ts +1 -0
- package/dist/Radio/index.js +2 -1
- package/dist/Radio/typings.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.js +44 -16
- package/dist/RadioGroup/typings.d.ts +10 -0
- package/dist/Segmented/Segmented.d.ts +4 -0
- package/dist/Segmented/Segmented.js +208 -0
- package/dist/Segmented/index.d.ts +2 -0
- package/dist/Segmented/index.js +1 -0
- package/dist/Segmented/typings.d.ts +20 -0
- package/dist/Segmented/typings.js +5 -0
- package/dist/Select/SelectCore.js +52 -9
- package/dist/Select/typings.d.ts +13 -8
- package/dist/Select/useSelect.d.ts +23 -9
- package/dist/Select/useSelect.js +55 -8
- package/dist/Skeleton/typings.d.ts +1 -1
- package/dist/Slider/Button.d.ts +4 -0
- package/dist/Slider/Button.js +96 -0
- package/dist/Slider/Marker.d.ts +4 -0
- package/dist/Slider/Marker.js +31 -0
- package/dist/Slider/Slider.d.ts +4 -0
- package/dist/Slider/Slider.js +263 -0
- package/dist/Slider/SliderContext.d.ts +3 -0
- package/dist/Slider/SliderContext.js +2 -0
- package/dist/Slider/hooks/index.d.ts +5 -0
- package/dist/Slider/hooks/index.js +5 -0
- package/dist/Slider/hooks/useLifecycle.d.ts +5 -0
- package/dist/Slider/hooks/useLifecycle.js +50 -0
- package/dist/Slider/hooks/useMarks.d.ts +2 -0
- package/dist/Slider/hooks/useMarks.js +49 -0
- package/dist/Slider/hooks/useSlider.d.ts +38 -0
- package/dist/Slider/hooks/useSlider.js +227 -0
- package/dist/Slider/hooks/useSliderButton.d.ts +28 -0
- package/dist/Slider/hooks/useSliderButton.js +454 -0
- package/dist/Slider/hooks/useStops.d.ts +6 -0
- package/dist/Slider/hooks/useStops.js +47 -0
- package/dist/Slider/hooks/useWatch.d.ts +3 -0
- package/dist/Slider/hooks/useWatch.js +119 -0
- package/dist/Slider/index.d.ts +2 -0
- package/dist/Slider/index.js +1 -0
- package/dist/Slider/style/css.d.ts +1 -0
- package/dist/Slider/style/css.js +1 -0
- package/dist/Slider/style/index.d.ts +1 -0
- package/dist/Slider/style/index.js +1 -0
- package/dist/Slider/typings.d.ts +122 -0
- package/dist/Slider/typings.js +1 -0
- package/dist/Space/Space.js +9 -12
- package/dist/Space/useSpace.js +2 -1
- package/dist/Statistic/Statistic.js +1 -2
- package/dist/Steps/Step.d.ts +4 -0
- package/dist/Steps/Step.js +247 -0
- package/dist/Steps/Steps.d.ts +5 -0
- package/dist/Steps/Steps.js +116 -0
- package/dist/Steps/index.d.ts +3 -0
- package/dist/Steps/index.js +2 -0
- package/dist/Steps/typings.d.ts +119 -0
- package/dist/Steps/typings.js +1 -0
- package/dist/Switch/typings.d.ts +0 -1
- package/dist/Table/Table.js +14 -14
- package/dist/Table/TableBody.js +4 -4
- package/dist/Table/TableCell.js +53 -28
- package/dist/Table/TableColumn.d.ts +2 -2
- package/dist/Table/TableHeader.js +2 -2
- package/dist/Table/TableHeaderCell.js +2 -2
- package/dist/Table/hooks/useResize.js +0 -2
- package/dist/Table/hooks/useTable.d.ts +1 -1
- package/dist/Table/hooks/useTable.js +15 -10
- package/dist/Table/typings.d.ts +26 -12
- package/dist/Table/util.d.ts +1 -1
- package/dist/Table/util.js +8 -65
- package/dist/TableV2/index.d.ts +10 -0
- package/dist/TableV2/index.js +7 -0
- package/dist/TableV2/src/auto-resizer.d.ts +14 -0
- package/dist/TableV2/src/auto-resizer.js +1 -0
- package/dist/TableV2/src/cell.d.ts +21 -0
- package/dist/TableV2/src/cell.js +1 -0
- package/dist/TableV2/src/components/auto-resizer.d.ts +4 -0
- package/dist/TableV2/src/components/auto-resizer.js +32 -0
- package/dist/TableV2/src/components/cell.d.ts +4 -0
- package/dist/TableV2/src/components/cell.js +22 -0
- package/dist/TableV2/src/components/expand-icon.d.ts +12 -0
- package/dist/TableV2/src/components/expand-icon.js +29 -0
- package/dist/TableV2/src/components/header-cell.d.ts +4 -0
- package/dist/TableV2/src/components/header-cell.js +23 -0
- package/dist/TableV2/src/components/header-row.d.ts +17 -0
- package/dist/TableV2/src/components/header-row.js +41 -0
- package/dist/TableV2/src/components/header.d.ts +20 -0
- package/dist/TableV2/src/components/header.js +103 -0
- package/dist/TableV2/src/components/index.d.ts +10 -0
- package/dist/TableV2/src/components/index.js +7 -0
- package/dist/TableV2/src/components/row.d.ts +19 -0
- package/dist/TableV2/src/components/row.js +206 -0
- package/dist/TableV2/src/components/sort-icon.d.ts +9 -0
- package/dist/TableV2/src/components/sort-icon.js +14 -0
- package/dist/TableV2/src/composables/index.d.ts +6 -0
- package/dist/TableV2/src/composables/index.js +6 -0
- package/dist/TableV2/src/composables/use-auto-resize.d.ts +7 -0
- package/dist/TableV2/src/composables/use-auto-resize.js +55 -0
- package/dist/TableV2/src/composables/use-columns.d.ts +21 -0
- package/dist/TableV2/src/composables/use-columns.js +119 -0
- package/dist/TableV2/src/composables/use-data.d.ts +15 -0
- package/dist/TableV2/src/composables/use-data.js +62 -0
- package/dist/TableV2/src/composables/use-row.d.ts +34 -0
- package/dist/TableV2/src/composables/use-row.js +191 -0
- package/dist/TableV2/src/composables/use-scrollbar.d.ts +25 -0
- package/dist/TableV2/src/composables/use-scrollbar.js +117 -0
- package/dist/TableV2/src/composables/use-styles.d.ts +23 -0
- package/dist/TableV2/src/composables/use-styles.js +90 -0
- package/dist/TableV2/src/composables/utils.d.ts +3 -0
- package/dist/TableV2/src/composables/utils.js +29 -0
- package/dist/TableV2/src/constants.d.ts +18 -0
- package/dist/TableV2/src/constants.js +22 -0
- package/dist/TableV2/src/grid.d.ts +52 -0
- package/dist/TableV2/src/grid.js +1 -0
- package/dist/TableV2/src/header-cell.d.ts +13 -0
- package/dist/TableV2/src/header-cell.js +1 -0
- package/dist/TableV2/src/header-row.d.ts +10 -0
- package/dist/TableV2/src/header-row.js +1 -0
- package/dist/TableV2/src/header.d.ts +15 -0
- package/dist/TableV2/src/header.js +1 -0
- package/dist/TableV2/src/private.d.ts +1 -0
- package/dist/TableV2/src/private.js +1 -0
- package/dist/TableV2/src/renderers/cell.d.ts +14 -0
- package/dist/TableV2/src/renderers/cell.js +120 -0
- package/dist/TableV2/src/renderers/empty.d.ts +7 -0
- package/dist/TableV2/src/renderers/empty.js +11 -0
- package/dist/TableV2/src/renderers/footer.d.ts +7 -0
- package/dist/TableV2/src/renderers/footer.js +9 -0
- package/dist/TableV2/src/renderers/header-cell.d.ts +13 -0
- package/dist/TableV2/src/renderers/header-cell.js +92 -0
- package/dist/TableV2/src/renderers/header.d.ts +9 -0
- package/dist/TableV2/src/renderers/header.js +39 -0
- package/dist/TableV2/src/renderers/left-table.d.ts +32 -0
- package/dist/TableV2/src/renderers/left-table.js +15 -0
- package/dist/TableV2/src/renderers/main-table.d.ts +31 -0
- package/dist/TableV2/src/renderers/main-table.js +12 -0
- package/dist/TableV2/src/renderers/overlay.d.ts +3 -0
- package/dist/TableV2/src/renderers/overlay.js +9 -0
- package/dist/TableV2/src/renderers/right-table.d.ts +31 -0
- package/dist/TableV2/src/renderers/right-table.js +15 -0
- package/dist/TableV2/src/renderers/row.d.ts +11 -0
- package/dist/TableV2/src/renderers/row.js +96 -0
- package/dist/TableV2/src/row.d.ts +51 -0
- package/dist/TableV2/src/row.js +1 -0
- package/dist/TableV2/src/table-grid.d.ts +43 -0
- package/dist/TableV2/src/table-grid.js +283 -0
- package/dist/TableV2/src/table-v2.d.ts +31 -0
- package/dist/TableV2/src/table-v2.js +311 -0
- package/dist/TableV2/src/table.d.ts +196 -0
- package/dist/TableV2/src/table.js +1 -0
- package/dist/TableV2/src/tokens.d.ts +11 -0
- package/dist/TableV2/src/tokens.js +6 -0
- package/dist/TableV2/src/types.d.ts +94 -0
- package/dist/TableV2/src/types.js +1 -0
- package/dist/TableV2/src/use-table.d.ts +48 -0
- package/dist/TableV2/src/use-table.js +197 -0
- package/dist/TableV2/src/utils.d.ts +5 -0
- package/dist/TableV2/src/utils.js +47 -0
- package/dist/Tabs/Tabs.js +1 -1
- package/dist/Tabs/typings.d.ts +1 -3
- package/dist/Tag/Tag.js +1 -1
- package/dist/TimePicker/TimePicker.js +6 -7
- package/dist/TimePicker/TimePickerPanel.js +12 -2
- package/dist/TimePicker/TimePickerRange.js +19 -8
- package/dist/Tooltip/Tooltip.js +31 -8
- package/dist/Tooltip/typings.d.ts +4 -0
- package/dist/Tour/Content.d.ts +9 -0
- package/dist/Tour/Content.js +81 -0
- package/dist/Tour/Mask.d.ts +12 -0
- package/dist/Tour/Mask.js +100 -0
- package/dist/Tour/Step.d.ts +7 -0
- package/dist/Tour/Step.js +119 -0
- package/dist/Tour/Tour.d.ts +6 -0
- package/dist/Tour/Tour.js +237 -0
- package/dist/Tour/context.d.ts +4 -0
- package/dist/Tour/context.js +9 -0
- package/dist/Tour/helper.d.ts +39 -0
- package/dist/Tour/helper.js +286 -0
- package/dist/Tour/index.d.ts +3 -0
- package/dist/Tour/index.js +2 -0
- package/dist/Tour/typings.d.ts +318 -0
- package/dist/Tour/typings.js +38 -0
- package/dist/Transfer/List.js +58 -59
- package/dist/Transfer/ListItem.d.ts +2 -2
- package/dist/Transfer/Transfer.d.ts +2 -2
- package/dist/Transfer/Transfer.js +84 -70
- package/dist/Transfer/index.d.ts +1 -1
- package/dist/Transfer/operation.js +8 -10
- package/dist/Transfer/typings/index.d.ts +49 -38
- package/dist/Transfer/typings/list.d.ts +11 -11
- package/dist/Transfer/typings/listBody.d.ts +2 -2
- package/dist/Transition/Transition.d.ts +1 -0
- package/dist/Transition/Transition.js +8 -7
- package/dist/Tree/Tree.js +1 -0
- package/dist/Tree/model/tree-store.js +4 -4
- package/dist/Tree/typings.d.ts +3 -1
- package/dist/TreeSelect/typings.d.ts +1 -1
- package/dist/TreeSelect/useSelect.d.ts +38 -85
- package/dist/TreeSelect/useSelect.js +1 -1
- package/dist/TreeSelect/useTree.d.ts +47 -52
- package/dist/TreeSelect/useTree.js +2 -2
- package/dist/Upload/UploadContent.js +1 -1
- package/dist/Upload/typings.d.ts +1 -1
- package/dist/Util/PopupManager.js +1 -1
- package/dist/Util/aria.d.ts +1 -1
- package/dist/Util/base.d.ts +33 -8
- package/dist/Util/base.js +44 -16
- package/dist/Util/easings.d.ts +1 -0
- package/dist/Util/easings.js +8 -0
- package/dist/Util/error.d.ts +3 -0
- package/dist/Util/error.js +39 -0
- package/dist/Util/icons.d.ts +2 -0
- package/dist/Util/icons.js +15 -0
- package/dist/Util/index.d.ts +6 -2
- package/dist/Util/index.js +6 -2
- package/dist/Util/position.d.ts +9 -0
- package/dist/Util/position.js +53 -0
- package/dist/Util/raf.d.ts +4 -0
- package/dist/Util/raf.js +10 -0
- package/dist/Util/scroll.d.ts +9 -0
- package/dist/Util/scroll.js +72 -0
- package/dist/Util/throttleByRaf.d.ts +4 -0
- package/dist/Util/throttleByRaf.js +21 -0
- package/dist/VirtualList/builders/build-grid.d.ts +5 -0
- package/dist/VirtualList/builders/build-grid.js +561 -0
- package/dist/VirtualList/builders/build-list.d.ts +7 -0
- package/dist/VirtualList/builders/build-list.js +408 -0
- package/dist/VirtualList/components/dynamic-size-grid.d.ts +15 -0
- package/dist/VirtualList/components/dynamic-size-grid.js +242 -0
- package/dist/VirtualList/components/dynamic-size-list.d.ts +7 -0
- package/dist/VirtualList/components/dynamic-size-list.js +186 -0
- package/dist/VirtualList/components/fixed-size-grid.d.ts +4 -0
- package/dist/VirtualList/components/fixed-size-grid.js +161 -0
- package/dist/VirtualList/components/fixed-size-list.d.ts +7 -0
- package/dist/VirtualList/components/fixed-size-list.js +103 -0
- package/dist/VirtualList/components/scrollbar.d.ts +5 -0
- package/dist/VirtualList/components/scrollbar.js +272 -0
- package/dist/VirtualList/defaults.d.ts +26 -0
- package/dist/VirtualList/defaults.js +24 -0
- package/dist/VirtualList/hooks/use-cache.d.ts +1 -0
- package/dist/VirtualList/hooks/use-cache.js +16 -0
- package/dist/VirtualList/hooks/use-grid-touch.d.ts +8 -0
- package/dist/VirtualList/hooks/use-grid-touch.js +58 -0
- package/dist/VirtualList/hooks/use-grid-wheel.d.ts +12 -0
- package/dist/VirtualList/hooks/use-grid-wheel.js +48 -0
- package/dist/VirtualList/hooks/use-wheel.d.ts +12 -0
- package/dist/VirtualList/hooks/use-wheel.js +41 -0
- package/dist/VirtualList/index.d.ts +9 -0
- package/dist/VirtualList/index.js +6 -0
- package/dist/VirtualList/props.d.ts +95 -0
- package/dist/VirtualList/props.js +42 -0
- package/dist/VirtualList/types.d.ts +151 -0
- package/dist/VirtualList/types.js +1 -0
- package/dist/VirtualList/utils.d.ts +11 -0
- package/dist/VirtualList/utils.js +56 -0
- package/dist/Watermark/Watermark.d.ts +4 -0
- package/dist/Watermark/Watermark.js +257 -0
- package/dist/Watermark/helper.d.ts +50 -0
- package/dist/Watermark/helper.js +253 -0
- package/dist/Watermark/index.d.ts +2 -0
- package/dist/Watermark/index.js +1 -0
- package/dist/Watermark/typings.d.ts +93 -0
- package/dist/Watermark/typings.js +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useClassNames.d.ts +1 -0
- package/dist/hooks/useClickOutside.js +25 -9
- package/dist/hooks/useCommonProps.d.ts +4 -0
- package/dist/hooks/useCommonProps.js +12 -3
- package/dist/hooks/useLockscreen.d.ts +6 -0
- package/dist/hooks/useLockscreen.js +45 -0
- package/dist/hooks/useResizeObserver.d.ts +1 -1
- package/dist/hooks/useResizeObserver.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +33 -12
- package/dist/index.js +17 -6
- package/dist/locale/en.d.ts +4 -1
- package/dist/locale/en.js +4 -1
- package/dist/locale/zhCn.d.ts +4 -1
- package/dist/locale/zhCn.js +4 -1
- package/package.json +5 -3
- package/theme-chalk/affix.scss +7 -0
- package/theme-chalk/alert.scss +115 -115
- package/theme-chalk/anchor-link.scss +45 -0
- package/theme-chalk/anchor.scss +93 -0
- package/theme-chalk/backtop.scss +29 -0
- package/theme-chalk/breadcrumb-item.scss +58 -0
- package/theme-chalk/breadcrumb.scss +5 -61
- package/theme-chalk/cascader-panel.scss +57 -82
- package/theme-chalk/cascader.scss +206 -160
- package/theme-chalk/checkbox.scss +4 -0
- package/theme-chalk/collapse-item.scss +72 -0
- package/theme-chalk/collapse.scss +21 -76
- package/theme-chalk/common/popup.scss +47 -0
- package/theme-chalk/common/var.scss +62 -6
- package/theme-chalk/dialog.scss +145 -137
- package/theme-chalk/drawer.scss +252 -247
- package/theme-chalk/form-item.scss +437 -0
- package/theme-chalk/form.scss +23 -361
- package/theme-chalk/index.scss +17 -1
- package/theme-chalk/input/input.scss +19 -0
- package/theme-chalk/input-number.scss +179 -192
- package/theme-chalk/message-box.scss +160 -133
- package/theme-chalk/message.scss +104 -104
- package/theme-chalk/mixins/mixins.scss +148 -151
- package/theme-chalk/notification.scss +109 -109
- package/theme-chalk/overlay.scss +17 -0
- package/theme-chalk/page-header.scss +60 -0
- package/theme-chalk/popper.scss +1 -1
- package/theme-chalk/radio.scss +3 -3
- package/theme-chalk/segmented.scss +186 -0
- package/theme-chalk/slider.scss +212 -0
- package/theme-chalk/space.scss +20 -20
- package/theme-chalk/statistic.scss +35 -35
- package/theme-chalk/step.scss +320 -0
- package/theme-chalk/steps.scss +22 -0
- package/theme-chalk/table-v2.scss +237 -0
- package/theme-chalk/table.scss +461 -482
- package/theme-chalk/time-range-picker.scss +1 -1
- package/theme-chalk/tooltip.scss +2 -2
- package/theme-chalk/tour.scss +170 -0
- package/theme-chalk/transfer.scss +38 -12
- package/theme-chalk/tree-select.scss +41 -41
- package/theme-chalk/virtual-list.scss +40 -0
- package/theme-chalk/button/_mixins.scss +0 -317
- package/theme-chalk/button/button-group.scss +0 -83
- package/theme-chalk/button/button.scss +0 -382
- package/theme-chalk/button/index.scss +0 -2
- package/theme-chalk/button--bak/_mixins.scss +0 -317
- package/theme-chalk/button--bak/button-group.scss +0 -83
- package/theme-chalk/button--bak/button.scss +0 -382
- package/theme-chalk/button--bak/index.scss +0 -2
- package/theme-chalk/calendar/date-table.scss--bak +0 -156
- package/theme-chalk/input/input.scss--bak +0 -578
- package/theme-chalk/input-number.bak +0 -172
- package/theme-chalk/link.scss--bak +0 -99
- package/theme-chalk/notification.bak +0 -156
- package/theme-chalk/popper.scss--bak +0 -86
- package/theme-chalk/radio-button.scss--bak +0 -128
- package/theme-chalk/select/index.scss--bak +0 -247
- package/theme-chalk/switch.scss--bak +0 -273
- package/theme-chalk/tag.scss--bak +0 -203
- package/theme-chalk/tree/_directory.scss +0 -73
- package/theme-chalk/tree/_tree.scss +0 -401
- package/theme-chalk/tree/index.scss +0 -2
- /package/dist/TreeSelect/{utils.d.ts → Utils.d.ts} +0 -0
- /package/dist/TreeSelect/{utils.js → Utils.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './locale/i18n';
|
|
2
|
-
export { Button as ElButton } from './Button';
|
|
3
|
-
export type { ButtonGroupProps, ButtonProps } from './Button';
|
|
2
|
+
export { Button as ElButton, ButtonGroup as ElButtonGroup } from './Button';
|
|
3
|
+
export type { ButtonGroupProps, ButtonProps, ButtonRef } from './Button';
|
|
4
4
|
export { Aside as ElAside, Container as ElContainer, Footer as ElFooter, Header as ElHeader, Main as ElMain } from './Container';
|
|
5
5
|
export type { AsideProps, ContainerProps, FooterProps, HeaderProps, MainProps } from './Container';
|
|
6
6
|
export { Col as ElCol } from './Col';
|
|
@@ -22,19 +22,19 @@ export { Popper as ElPopper } from './Popper';
|
|
|
22
22
|
export type { PopperOptionRef, PopperOptions, PopperProps } from './Popper';
|
|
23
23
|
export { Transition as ElTransition } from './Transition';
|
|
24
24
|
export type { TransitionProps } from './Transition';
|
|
25
|
-
export { Cascader as ElCascader } from './Cascader';
|
|
26
|
-
export type { CascaderMenuProps, CascaderProps } from './Cascader';
|
|
25
|
+
export { Cascader as ElCascader, CascaderPanel as ElCascaderPanel } from './Cascader';
|
|
26
|
+
export type { CascaderMenuProps, CascaderProps, CascaderRef } from './Cascader';
|
|
27
27
|
export { Checkbox as ElCheckbox, CheckboxButton as ElCheckboxButton } from './Checkbox';
|
|
28
28
|
export type { CheckboxProps, ValueType as CheckboxValueType } from './Checkbox';
|
|
29
29
|
export { CheckboxGroup as ElCheckboxGroup } from './CheckboxGroup';
|
|
30
30
|
export type { CheckboxGroupContextValue, CheckboxGroupProps } from './CheckboxGroup';
|
|
31
31
|
export { ColorPicker as ElColorPicker } from './ColorPicker';
|
|
32
32
|
export type { ColorPickerProps } from './ColorPicker';
|
|
33
|
-
export { Radio as ElRadio } from './Radio';
|
|
33
|
+
export { Radio as ElRadio, RadioButton as ElRadioButton } from './Radio';
|
|
34
34
|
export type { RadioProps, ValueType } from './Radio';
|
|
35
35
|
export { RadioGroup as ElRadioGroup } from './RadioGroup';
|
|
36
36
|
export type { RadioContextProps, RadioGroupProps } from './RadioGroup';
|
|
37
|
-
export { Input as ElInput } from './Input';
|
|
37
|
+
export { Input as ElInput, InputGroup as ElInputGroup, InputRange as ElInputRange, TextArea as ElTextArea } from './Input';
|
|
38
38
|
export type { InputProps, InputRangeProps, InputRef, TextareaProps, TextareaRef } from './Input';
|
|
39
39
|
export { InputNumber as ElInputNumber } from './InputNumber';
|
|
40
40
|
export type { InputNumberProps, InputNumberRef } from './InputNumber';
|
|
@@ -48,10 +48,14 @@ export { TimePicker as ElTimePicker } from './TimePicker';
|
|
|
48
48
|
export type { TimePickerProps, TimePickerRef } from './TimePicker';
|
|
49
49
|
export { Switch as ElSwitch } from './Switch';
|
|
50
50
|
export type { ChangeValue, ISwitchProps, ValueType as SwitchValueType } from './Switch';
|
|
51
|
+
export { Slider as ElSlider } from './Slider';
|
|
52
|
+
export type { SliderMarkerItem, SliderMarks, SliderProps, SliderRef, SliderValue } from './Slider';
|
|
53
|
+
export { Segmented as ElSegmented } from './Segmented';
|
|
54
|
+
export type { Option, SegmentedComponentProps, SegmentedProps } from './Segmented';
|
|
51
55
|
export { Transfer as ElTransfer } from './Transfer';
|
|
52
|
-
export type { ListStyle,
|
|
53
|
-
export { Form as ElForm, useForm } from './Form';
|
|
54
|
-
export type { FormInstance, FormItemProps, FormProps, FormRules,
|
|
56
|
+
export type { ListStyle, TransferDataItem, TransferDirection, TransferFormat, TransferKey, TransferLocale, TransferProps, TransferPropsAlias, TransferRender } from './Transfer';
|
|
57
|
+
export { Form as ElForm, FormItem as ElFormItem, List as ElFormList, useForm, useWatch } from './Form';
|
|
58
|
+
export type { FormContextProps, FormInstance, FormItemProps, FormProps, FormRules, InternalNamePath, NamePath, Rule, RuleType, ValidateErrorEntity, ValidateMessages, ValidateOptions, } from './Form';
|
|
55
59
|
export { Upload as ElUpload } from './Upload';
|
|
56
60
|
export type { UploadFile, UploadFiles, UploadProps, UploadRawFile, UploadRef, UploadStatus, UploadUserFile } from './Upload';
|
|
57
61
|
export { Avatar as ElAvatar } from './Avatar';
|
|
@@ -63,17 +67,22 @@ export type { CardProps } from './Card';
|
|
|
63
67
|
export { Carousel as ElCarousel, CarouselItem as ElCarouselItem } from './Carousel';
|
|
64
68
|
export type { CarouselItemProps, CarouselProps, CarouselRef } from './Carousel';
|
|
65
69
|
export { Collapse as ElCollapse, CollapseItem as ElCollapseItem } from './Collapse';
|
|
66
|
-
export type { CollapseItemProps, CollapseProps } from './Collapse';
|
|
70
|
+
export type { CollapseActiveName, CollapseItemProps, CollapseItemRef, CollapseProps, CollapseRef } from './Collapse';
|
|
67
71
|
export { Descriptions as ElDescriptions, DescriptionsItem as ElDescriptionsItem } from './Descriptions';
|
|
68
72
|
export type { DescriptionsItemProps, DescriptionsProps } from './Descriptions';
|
|
69
73
|
export { Pagination as ElPagination } from './Pagination';
|
|
70
74
|
export type { PageType, PaginationProps, PaginationRef } from './Pagination';
|
|
71
75
|
export { Progress as ElProgress } from './Progress';
|
|
72
76
|
export type { PropgressProps } from './Progress';
|
|
77
|
+
export { Countdown as ElCountdown } from './Countdown';
|
|
78
|
+
export type { CountdownProps, CountdownRef } from './Countdown';
|
|
73
79
|
export { Statistic as ElStatistic } from './Statistic';
|
|
74
80
|
export type { StatisticProps, StatisticRef } from './Statistic';
|
|
75
81
|
export { Table as ElTable, TableColumn as ElTableColumn } from './Table';
|
|
76
82
|
export type { RenderCell, TableColumnCtx, TableColumnProps, TableProps, TableRef, TableSort } from './Table';
|
|
83
|
+
export { Tour as ElTour, TourStep as ElTourStep } from './Tour';
|
|
84
|
+
export type { PosInfo, TourBtnProps, TourContentProps, TourContextType, TourGap, TourMask, TourProps, TourStepProps } from './Tour';
|
|
85
|
+
export { AutoResizer as ElAutoResizer, TableV2 as ElTableV2 } from './TableV2';
|
|
77
86
|
export { Tag as ElTag } from './Tag';
|
|
78
87
|
export type { TagProps } from './Tag';
|
|
79
88
|
export { TimeLine as ElTimeLine, TimeLineItem as ElTimeLineItem } from './TimeLine';
|
|
@@ -81,16 +90,26 @@ export type { TimeLineItemProps, TimeLineProps } from './TimeLine';
|
|
|
81
90
|
export { Tree as ElTree } from './Tree';
|
|
82
91
|
export type { AllowDragFunction, AllowDropFunction, AllowDropType, FilterNodeMethodFunction, LoadFunction, NodeDropType, TreeNode, TreeNodeData, TreeNodeProps, TreeOptionProps, TreeProps, TreeRef, TreeStore, } from './Tree';
|
|
83
92
|
export { TreeSelect as ElTreeSelect } from './TreeSelect';
|
|
93
|
+
export { Affix as ElAffix } from './Affix';
|
|
94
|
+
export type { AffixProps, AffixRef } from './Affix';
|
|
95
|
+
export { Anchor as ElAnchor, AnchorLink as ElAnchorLink } from './Anchor';
|
|
96
|
+
export type { AnchorContext, AnchorLinkProps, AnchorLinkState, AnchorProps, AnchorRef } from './Anchor';
|
|
97
|
+
export { Backtop as ElBacktop } from './Backtop';
|
|
98
|
+
export type { BacktopProps } from './Backtop';
|
|
84
99
|
export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from './Breadcrumb';
|
|
85
100
|
export type { BreadcrumbItemProps, BreadcrumbProps } from './Breadcrumb';
|
|
101
|
+
export { Step as ElStep, Steps as ElSteps } from './Steps';
|
|
102
|
+
export type { StepItemState, StepProps, StepsContextProps, StepsProps, StepsStatus } from './Steps';
|
|
86
103
|
export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from './Dropdown';
|
|
87
104
|
export type { DropdownItemProps, DropdownMenuProps, DropdownProps } from './Dropdown';
|
|
88
105
|
export { Menu as ElMenu, MenuItem as ElMenuItem, MenuItemGroup as ElMenuItemGroup, SubMenu as ElSubMenu } from './Menu';
|
|
89
106
|
export type { MenuCloseEvent, MenuItemClicked, MenuItemGroupProps, MenuItemProps, MenuItemRegistered, MenuOpenEvent, MenuProps, MenuRef, SubMenuProps } from './Menu';
|
|
90
107
|
export { TabPane as ElTabPane, Tabs as ElTabs } from './Tabs';
|
|
91
|
-
export type { TabPaneProps, TabsPaneContext, TabsProps } from './Tabs';
|
|
108
|
+
export type { TabPaneName, TabPaneProps, TabsPaneContext, TabsProps } from './Tabs';
|
|
92
109
|
export { Empty as ElEmpty } from './Empty';
|
|
93
110
|
export type { IEmptyProps } from './Empty';
|
|
111
|
+
export { PageHeader as ElPageHeader } from './PageHeader';
|
|
112
|
+
export type { PageHeaderProps } from './PageHeader';
|
|
94
113
|
export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from './Skeleton';
|
|
95
114
|
export type { SkeletonItemProps, SkeletonProps } from './Skeleton';
|
|
96
115
|
export { Alert as ElAlert } from './Alert';
|
|
@@ -115,8 +134,10 @@ export { Popover as ElPopover } from './Popover';
|
|
|
115
134
|
export type { PopoverProps } from './Popover';
|
|
116
135
|
export { Divider as ElDivider } from './Divider';
|
|
117
136
|
export type { DividerProps } from './Divider';
|
|
118
|
-
export {
|
|
137
|
+
export { Watermark as ElWatermark } from './Watermark';
|
|
138
|
+
export type { WatermarkFontType, WatermarkProps } from './Watermark';
|
|
119
139
|
export { htmlInputAttrs, htmlInputEvents, htmlInputProps, partitionAnimationProps, partitionHTMLProps, partitionPopperPropsUtils, partitionTreePropsUtils, prefix, useChildrenInstance, useClassNames, useClickOutside, useComponentWillMount, useConfigProvider, useControlled, useDisabled, useForceUpdate, useSize, } from './hooks';
|
|
140
|
+
export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from './Util';
|
|
120
141
|
export type { AnimationEventProps, BaseProps, FormControlBaseProps, NativeProps, StandardProps, TooltipBaseProps, TypeAttributes } from './types/common';
|
|
121
142
|
/** 全局配置 */
|
|
122
143
|
export { ConfigProvider as ElConfigProvider } from './ConfigProvider';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./locale/i18n";
|
|
2
2
|
|
|
3
3
|
/* Basic 基础组件 */
|
|
4
|
-
export { Button as ElButton } from "./Button";
|
|
4
|
+
export { Button as ElButton, ButtonGroup as ElButtonGroup } from "./Button";
|
|
5
5
|
export { Aside as ElAside, Container as ElContainer, Footer as ElFooter, Header as ElHeader, Main as ElMain } from "./Container";
|
|
6
6
|
export { Col as ElCol } from "./Col";
|
|
7
7
|
export { Row as ElRow, RowContext } from "./Row";
|
|
@@ -14,21 +14,23 @@ export { Space as ElSpace } from "./Space";
|
|
|
14
14
|
export { Popper as ElPopper } from "./Popper";
|
|
15
15
|
export { Transition as ElTransition } from "./Transition";
|
|
16
16
|
/* Form 表单组件 */
|
|
17
|
-
export { Cascader as ElCascader } from "./Cascader";
|
|
17
|
+
export { Cascader as ElCascader, CascaderPanel as ElCascaderPanel } from "./Cascader";
|
|
18
18
|
export { Checkbox as ElCheckbox, CheckboxButton as ElCheckboxButton } from "./Checkbox";
|
|
19
19
|
export { CheckboxGroup as ElCheckboxGroup } from "./CheckboxGroup";
|
|
20
20
|
export { ColorPicker as ElColorPicker } from "./ColorPicker";
|
|
21
|
-
export { Radio as ElRadio } from "./Radio";
|
|
21
|
+
export { Radio as ElRadio, RadioButton as ElRadioButton } from "./Radio";
|
|
22
22
|
export { RadioGroup as ElRadioGroup } from "./RadioGroup";
|
|
23
|
-
export { Input as ElInput } from "./Input";
|
|
23
|
+
export { Input as ElInput, InputGroup as ElInputGroup, InputRange as ElInputRange, TextArea as ElTextArea } from "./Input";
|
|
24
24
|
export { InputNumber as ElInputNumber } from "./InputNumber";
|
|
25
25
|
export { Option as ElOption, OptionGroup as ElOptionGroup, Select as ElSelect } from "./Select";
|
|
26
26
|
export { Calendar, CalendarContext } from "./Calendar";
|
|
27
27
|
export { DatePicker as ElDatePicker } from "./DatePicker";
|
|
28
28
|
export { TimePicker as ElTimePicker } from "./TimePicker";
|
|
29
29
|
export { Switch as ElSwitch } from "./Switch";
|
|
30
|
+
export { Slider as ElSlider } from "./Slider";
|
|
31
|
+
export { Segmented as ElSegmented } from "./Segmented";
|
|
30
32
|
export { Transfer as ElTransfer } from "./Transfer";
|
|
31
|
-
export { Form as ElForm, useForm } from "./Form";
|
|
33
|
+
export { Form as ElForm, FormItem as ElFormItem, List as ElFormList, useForm, useWatch } from "./Form";
|
|
32
34
|
export { Upload as ElUpload } from "./Upload";
|
|
33
35
|
/* Data 数据展示 */
|
|
34
36
|
export { Avatar as ElAvatar } from "./Avatar";
|
|
@@ -39,8 +41,11 @@ export { Collapse as ElCollapse, CollapseItem as ElCollapseItem } from "./Collap
|
|
|
39
41
|
export { Descriptions as ElDescriptions, DescriptionsItem as ElDescriptionsItem } from "./Descriptions";
|
|
40
42
|
export { Pagination as ElPagination } from "./Pagination";
|
|
41
43
|
export { Progress as ElProgress } from "./Progress";
|
|
44
|
+
export { Countdown as ElCountdown } from "./Countdown";
|
|
42
45
|
export { Statistic as ElStatistic } from "./Statistic";
|
|
43
46
|
export { Table as ElTable, TableColumn as ElTableColumn } from "./Table";
|
|
47
|
+
export { Tour as ElTour, TourStep as ElTourStep } from "./Tour";
|
|
48
|
+
export { AutoResizer as ElAutoResizer, TableV2 as ElTableV2 } from "./TableV2";
|
|
44
49
|
export { Tag as ElTag } from "./Tag";
|
|
45
50
|
export { TimeLine as ElTimeLine, TimeLineItem as ElTimeLineItem } from "./TimeLine";
|
|
46
51
|
export { Tree as ElTree } from "./Tree";
|
|
@@ -51,11 +56,16 @@ export { TreeSelect as ElTreeSelect } from "./TreeSelect";
|
|
|
51
56
|
// export type { ListProps, ListRef, ScrollTo } from './VirtualList';
|
|
52
57
|
|
|
53
58
|
/* Navigation 导航 */
|
|
59
|
+
export { Affix as ElAffix } from "./Affix";
|
|
60
|
+
export { Anchor as ElAnchor, AnchorLink as ElAnchorLink } from "./Anchor";
|
|
61
|
+
export { Backtop as ElBacktop } from "./Backtop";
|
|
54
62
|
export { Breadcrumb as ElBreadcrumb, BreadcrumbItem as ElBreadcrumbItem } from "./Breadcrumb";
|
|
63
|
+
export { Step as ElStep, Steps as ElSteps } from "./Steps";
|
|
55
64
|
export { Dropdown as ElDropdown, DropdownItem as ElDropdownItem, DropdownMenu as ElDropdownMenu } from "./Dropdown";
|
|
56
65
|
export { Menu as ElMenu, MenuItem as ElMenuItem, MenuItemGroup as ElMenuItemGroup, SubMenu as ElSubMenu } from "./Menu";
|
|
57
66
|
export { TabPane as ElTabPane, Tabs as ElTabs } from "./Tabs";
|
|
58
67
|
export { Empty as ElEmpty } from "./Empty";
|
|
68
|
+
export { PageHeader as ElPageHeader } from "./PageHeader";
|
|
59
69
|
export { Skeleton as ElSkeleton, SkeletonItem as ElSkeletonItem } from "./Skeleton";
|
|
60
70
|
/* Feedback 反馈组件 */
|
|
61
71
|
export { Alert as ElAlert } from "./Alert";
|
|
@@ -70,9 +80,10 @@ export { Popconfirm as ElPopconfirm } from "./Popconfirm";
|
|
|
70
80
|
export { Popover as ElPopover } from "./Popover";
|
|
71
81
|
/* Others 其他 */
|
|
72
82
|
export { Divider as ElDivider } from "./Divider";
|
|
83
|
+
export { Watermark as ElWatermark } from "./Watermark";
|
|
73
84
|
/* 工具库与hooks */
|
|
74
|
-
export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from "./Util";
|
|
75
85
|
export { htmlInputAttrs, htmlInputEvents, htmlInputProps, partitionAnimationProps, partitionHTMLProps, partitionPopperPropsUtils, partitionTreePropsUtils, prefix, useChildrenInstance, useClassNames, useClickOutside, useComponentWillMount, useConfigProvider, useControlled, useDisabled, useForceUpdate, useSize } from "./hooks";
|
|
86
|
+
export { PopupManager, download, genFileId, generateTree, getScrollWidth, isEmpty, isNotEmpty, randomCode } from "./Util";
|
|
76
87
|
|
|
77
88
|
/* 通用types */
|
|
78
89
|
|
package/dist/locale/en.d.ts
CHANGED
|
@@ -171,7 +171,10 @@ declare const _default: {
|
|
|
171
171
|
transfer: {
|
|
172
172
|
noMatch: string;
|
|
173
173
|
noData: string;
|
|
174
|
-
titles:
|
|
174
|
+
titles: {
|
|
175
|
+
0: string;
|
|
176
|
+
1: string;
|
|
177
|
+
};
|
|
175
178
|
filterPlaceholder: string;
|
|
176
179
|
noCheckedFormat: string;
|
|
177
180
|
hasCheckedFormat: string;
|
package/dist/locale/en.js
CHANGED
|
@@ -171,7 +171,10 @@ export default {
|
|
|
171
171
|
transfer: {
|
|
172
172
|
noMatch: 'No matching data',
|
|
173
173
|
noData: 'No data',
|
|
174
|
-
titles:
|
|
174
|
+
titles: {
|
|
175
|
+
0: 'List 1',
|
|
176
|
+
1: 'List 2'
|
|
177
|
+
},
|
|
175
178
|
filterPlaceholder: 'Enter keyword',
|
|
176
179
|
noCheckedFormat: '{total} items',
|
|
177
180
|
hasCheckedFormat: '{checked}/{total} checked'
|
package/dist/locale/zhCn.d.ts
CHANGED
|
@@ -170,7 +170,10 @@ declare const _default: {
|
|
|
170
170
|
transfer: {
|
|
171
171
|
noMatch: string;
|
|
172
172
|
noData: string;
|
|
173
|
-
titles:
|
|
173
|
+
titles: {
|
|
174
|
+
0: string;
|
|
175
|
+
1: string;
|
|
176
|
+
};
|
|
174
177
|
filterPlaceholder: string;
|
|
175
178
|
noCheckedFormat: string;
|
|
176
179
|
hasCheckedFormat: string;
|
package/dist/locale/zhCn.js
CHANGED
|
@@ -170,7 +170,10 @@ export default {
|
|
|
170
170
|
transfer: {
|
|
171
171
|
noMatch: '无匹配数据',
|
|
172
172
|
noData: '无数据',
|
|
173
|
-
titles:
|
|
173
|
+
titles: {
|
|
174
|
+
0: '列表 1',
|
|
175
|
+
1: '列表 2'
|
|
176
|
+
},
|
|
174
177
|
filterPlaceholder: '请输入搜索内容',
|
|
175
178
|
noCheckedFormat: '共 {total} 项',
|
|
176
179
|
hasCheckedFormat: '已选 {checked}/{total} 项'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qsxy/element-plus-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "element-plus-react",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": ">=18.0.0",
|
|
21
|
-
"react-
|
|
22
|
-
"react-dom": ">=
|
|
21
|
+
"react-dom": ">=18.0.0",
|
|
22
|
+
"react-router-dom": ">=6.22.1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ctrl/tinycolor": "^4.1.0",
|
|
26
|
+
"@floating-ui/dom": "^1.7.6",
|
|
26
27
|
"@popperjs/core": "^2.11.8",
|
|
27
28
|
"ahooks": "^3.7.10",
|
|
28
29
|
"async-validator": "^4.2.5",
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"escape-html": "^1.0.3",
|
|
33
34
|
"i18next": "^25.2.1",
|
|
34
35
|
"lodash": "^4.17.21",
|
|
36
|
+
"memoize-one": "^6.0.0",
|
|
35
37
|
"rc-resize-observer": "^1.4.0",
|
|
36
38
|
"rc-util": "^5.38.1",
|
|
37
39
|
"rc-virtual-list": "3.18.5",
|
package/theme-chalk/alert.scss
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
@use 'mixins/mixins' as *;
|
|
2
|
-
@use 'mixins/var' as *;
|
|
3
|
-
@use 'common/var' as *;
|
|
4
|
-
|
|
5
|
-
@include b(alert) {
|
|
6
|
-
@include set-component-css-var('alert', $alert);
|
|
7
|
-
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: getCssVar('alert', 'padding');
|
|
10
|
-
margin: 0;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
border-radius: getCssVar('alert', 'border-radius-base');
|
|
13
|
-
position: relative;
|
|
14
|
-
background-color: getCssVar('color', 'white');
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
opacity: 1;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
transition: opacity getCssVar('transition-duration', 'fast');
|
|
20
|
-
|
|
21
|
-
@include when(light) {
|
|
22
|
-
.#{$namespace}-alert__close-btn {
|
|
23
|
-
color: getCssVar('text-color', 'placeholder');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@include when(dark) {
|
|
28
|
-
.#{$namespace}-alert__close-btn {
|
|
29
|
-
color: getCssVar('color', 'white');
|
|
30
|
-
}
|
|
31
|
-
.#{$namespace}-alert__description {
|
|
32
|
-
color: getCssVar('color', 'white');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@include when(center) {
|
|
37
|
-
justify-content: center;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@each $type in (primary, success, info, warning, error) {
|
|
41
|
-
@include m($type) {
|
|
42
|
-
@include css-var-from-global(
|
|
43
|
-
('alert', 'bg-color'),
|
|
44
|
-
('color', $type, 'light-9')
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
&.is-light {
|
|
48
|
-
background-color: getCssVar('alert', 'bg-color');
|
|
49
|
-
color: getCssVar('color', $type);
|
|
50
|
-
|
|
51
|
-
.#{$namespace}-alert__description {
|
|
52
|
-
color: getCssVar('color', $type);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.is-dark {
|
|
57
|
-
background-color: getCssVar('color', $type);
|
|
58
|
-
color: getCssVar('color', 'white');
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@include e(content) {
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: column;
|
|
66
|
-
gap: 4px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
& .#{$namespace}-alert__icon {
|
|
70
|
-
font-size: getCssVar('alert', 'icon-size');
|
|
71
|
-
width: getCssVar('alert', 'icon-size');
|
|
72
|
-
margin-right: 8px;
|
|
73
|
-
|
|
74
|
-
@include when(big) {
|
|
75
|
-
font-size: getCssVar('alert', 'icon-large-size');
|
|
76
|
-
width: getCssVar('alert', 'icon-large-size');
|
|
77
|
-
margin-right: 12px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@include e(title) {
|
|
82
|
-
font-size: getCssVar('alert', 'title-font-size');
|
|
83
|
-
line-height: 24px;
|
|
84
|
-
|
|
85
|
-
&.with-description {
|
|
86
|
-
font-size: getCssVar('alert', 'title-with-description-font-size');
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
& .#{$namespace}-alert__description {
|
|
91
|
-
font-size: getCssVar('alert', 'description-font-size');
|
|
92
|
-
margin: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
& .#{$namespace}-alert__close-btn {
|
|
96
|
-
font-size: getCssVar('alert', 'close-font-size');
|
|
97
|
-
opacity: 1;
|
|
98
|
-
position: absolute;
|
|
99
|
-
top: 12px;
|
|
100
|
-
right: 16px;
|
|
101
|
-
cursor: pointer;
|
|
102
|
-
|
|
103
|
-
@include when(customed) {
|
|
104
|
-
font-style: normal;
|
|
105
|
-
font-size: getCssVar('alert', 'close-customed-font-size');
|
|
106
|
-
line-height: 24px;
|
|
107
|
-
top: 8px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.#{$namespace}-alert-fade-enter-from,
|
|
113
|
-
.#{$namespace}-alert-fade-leave-active {
|
|
114
|
-
opacity: 0;
|
|
115
|
-
}
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(alert) {
|
|
6
|
+
@include set-component-css-var('alert', $alert);
|
|
7
|
+
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: getCssVar('alert', 'padding');
|
|
10
|
+
margin: 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
border-radius: getCssVar('alert', 'border-radius-base');
|
|
13
|
+
position: relative;
|
|
14
|
+
background-color: getCssVar('color', 'white');
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
opacity: 1;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
transition: opacity getCssVar('transition-duration', 'fast');
|
|
20
|
+
|
|
21
|
+
@include when(light) {
|
|
22
|
+
.#{$namespace}-alert__close-btn {
|
|
23
|
+
color: getCssVar('text-color', 'placeholder');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include when(dark) {
|
|
28
|
+
.#{$namespace}-alert__close-btn {
|
|
29
|
+
color: getCssVar('color', 'white');
|
|
30
|
+
}
|
|
31
|
+
.#{$namespace}-alert__description {
|
|
32
|
+
color: getCssVar('color', 'white');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include when(center) {
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@each $type in (primary, success, info, warning, error) {
|
|
41
|
+
@include m($type) {
|
|
42
|
+
@include css-var-from-global(
|
|
43
|
+
('alert', 'bg-color'),
|
|
44
|
+
('color', $type, 'light-9')
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
&.is-light {
|
|
48
|
+
background-color: getCssVar('alert', 'bg-color');
|
|
49
|
+
color: getCssVar('color', $type);
|
|
50
|
+
|
|
51
|
+
.#{$namespace}-alert__description {
|
|
52
|
+
color: getCssVar('color', $type);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.is-dark {
|
|
57
|
+
background-color: getCssVar('color', $type);
|
|
58
|
+
color: getCssVar('color', 'white');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include e(content) {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: 4px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .#{$namespace}-alert__icon {
|
|
70
|
+
font-size: getCssVar('alert', 'icon-size');
|
|
71
|
+
width: getCssVar('alert', 'icon-size');
|
|
72
|
+
margin-right: 8px;
|
|
73
|
+
|
|
74
|
+
@include when(big) {
|
|
75
|
+
font-size: getCssVar('alert', 'icon-large-size');
|
|
76
|
+
width: getCssVar('alert', 'icon-large-size');
|
|
77
|
+
margin-right: 12px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include e(title) {
|
|
82
|
+
font-size: getCssVar('alert', 'title-font-size');
|
|
83
|
+
line-height: 24px;
|
|
84
|
+
|
|
85
|
+
&.with-description {
|
|
86
|
+
font-size: getCssVar('alert', 'title-with-description-font-size');
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& .#{$namespace}-alert__description {
|
|
91
|
+
font-size: getCssVar('alert', 'description-font-size');
|
|
92
|
+
margin: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
& .#{$namespace}-alert__close-btn {
|
|
96
|
+
font-size: getCssVar('alert', 'close-font-size');
|
|
97
|
+
opacity: 1;
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 12px;
|
|
100
|
+
right: 16px;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
|
|
103
|
+
@include when(customed) {
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-size: getCssVar('alert', 'close-customed-font-size');
|
|
106
|
+
line-height: 24px;
|
|
107
|
+
top: 8px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.#{$namespace}-alert-fade-enter-from,
|
|
113
|
+
.#{$namespace}-alert-fade-leave-active {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
@include b(anchor) {
|
|
8
|
+
@include e(item) {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include e(link) {
|
|
14
|
+
font-size: getCssVar('anchor-font-size');
|
|
15
|
+
line-height: getCssVar('anchor-line-height');
|
|
16
|
+
padding: 4px 0;
|
|
17
|
+
color: getCssVar('anchor-color');
|
|
18
|
+
transition: color getCssVar('transition-duration');
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
outline: none;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
|
|
27
|
+
&:hover,
|
|
28
|
+
&:focus {
|
|
29
|
+
color: getCssVar('hover-color');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:focus-visible {
|
|
33
|
+
border-radius: getCssVar('border-radius', 'base');
|
|
34
|
+
outline: 2px solid getCssVar('color-primary');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include when(active) {
|
|
38
|
+
color: getCssVar('anchor-active-color');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
& .#{$namespace}-anchor__list .#{$namespace}-anchor__item a {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/var' as *;
|
|
5
|
+
@use 'common/var' as *;
|
|
6
|
+
|
|
7
|
+
@include b(anchor) {
|
|
8
|
+
@include set-component-css-var('anchor', $anchor);
|
|
9
|
+
|
|
10
|
+
position: relative;
|
|
11
|
+
background-color: getCssVar('anchor-bg-color');
|
|
12
|
+
|
|
13
|
+
@include e(marker) {
|
|
14
|
+
position: absolute;
|
|
15
|
+
background-color: getCssVar('anchor-marker-bg-color');
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
z-index: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.#{$namespace}-anchor--vertical {
|
|
22
|
+
@include e(marker) {
|
|
23
|
+
width: 4px;
|
|
24
|
+
height: 14px;
|
|
25
|
+
top: 8px;
|
|
26
|
+
left: 0;
|
|
27
|
+
transition:
|
|
28
|
+
top 0.25s ease-in-out,
|
|
29
|
+
opacity 0.25s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@include e(list) {
|
|
33
|
+
padding-left: getCssVar('anchor-padding-indent');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.#{$namespace}-anchor--underline {
|
|
37
|
+
&::before {
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 0;
|
|
40
|
+
width: 2px;
|
|
41
|
+
height: 100%;
|
|
42
|
+
background-color: rgba(5, 5, 5, 0.06);
|
|
43
|
+
content: '';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include e(marker) {
|
|
47
|
+
width: 2px;
|
|
48
|
+
border-radius: unset;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.#{$namespace}-anchor--horizontal {
|
|
54
|
+
@include e(marker) {
|
|
55
|
+
height: 2px;
|
|
56
|
+
width: 20px;
|
|
57
|
+
bottom: 0;
|
|
58
|
+
transition:
|
|
59
|
+
left 0.25s ease-in-out,
|
|
60
|
+
opacity 0.25s,
|
|
61
|
+
width 0.25s;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@include e(list) {
|
|
65
|
+
display: flex;
|
|
66
|
+
padding-bottom: 4px;
|
|
67
|
+
|
|
68
|
+
@include e(item) {
|
|
69
|
+
padding-left: 16px;
|
|
70
|
+
|
|
71
|
+
&:first-child {
|
|
72
|
+
padding-left: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.#{$namespace}-anchor--underline {
|
|
78
|
+
&::before {
|
|
79
|
+
position: absolute;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
width: 100%;
|
|
82
|
+
height: 2px;
|
|
83
|
+
background-color: rgba(5, 5, 5, 0.06);
|
|
84
|
+
content: '';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include e(marker) {
|
|
88
|
+
height: 2px;
|
|
89
|
+
border-radius: unset;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|