naive-ui 2.34.2 → 2.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11964 -9783
- package/dist/index.prod.js +3 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/es/_internal/scrollbar/styles/light.d.ts +2 -2
- package/es/_internal/select-menu/src/interface.d.ts +7 -7
- package/es/_internal/select-menu/styles/light.d.ts +2 -2
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +2 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-theme.d.ts +6 -6
- package/es/_styles/common/light.d.ts +1 -1
- package/es/_utils/cssr/create-key.d.ts +3 -3
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/es/_utils/env/is-native-lazy-load.js +2 -3
- package/es/_utils/naive/extract-public-props.d.ts +4 -4
- package/es/_utils/naive/mutable.d.ts +1 -1
- package/es/_utils/naive/prop.d.ts +1 -1
- package/es/_utils/vue/call.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/affix/src/utils.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/styles/light.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/utils.d.ts +1 -1
- package/es/anchor/styles/light.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/interface.d.ts +5 -5
- package/es/auto-complete/styles/light.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.js +7 -1
- package/es/avatar/src/interface.d.ts +2 -2
- package/es/avatar/styles/light.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/styles/light.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/styles/light.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +7 -1
- package/es/badge/src/Badge.js +15 -3
- package/es/badge/styles/light.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/styles/light.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/interface.d.ts +2 -2
- package/es/button/styles/light.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/styles/light.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/interface.d.ts +2 -2
- package/es/calendar/styles/light.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -18
- package/es/card/src/Card.js +8 -7
- package/es/card/styles/light.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +11 -1
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +11 -11
- package/es/cascader/styles/light.d.ts +3 -2
- package/es/checkbox/src/Checkbox.d.ts +12 -1
- package/es/checkbox/src/Checkbox.js +2 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/interface.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +1 -0
- package/es/checkbox/styles/_common.d.ts +1 -0
- package/es/checkbox/styles/_common.js +2 -1
- package/es/checkbox/styles/light.d.ts +3 -2
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/interface.d.ts +4 -4
- package/es/collapse/styles/light.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/styles/light.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +5 -5
- package/es/color-picker/src/utils.d.ts +2 -2
- package/es/color-picker/styles/light.d.ts +2 -2
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +3 -5
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +52 -52
- package/es/data-table/styles/light.d.ts +4 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +21 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/styles/light.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/interface.d.ts +1 -1
- package/es/dialog/styles/light.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +2 -2
- package/es/discrete/src/interface.d.ts +3 -3
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/styles/light.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/drawer/styles/light.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/interface.d.ts +21 -21
- package/es/dropdown/styles/light.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/light.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/interface.d.ts +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +7 -1
- package/es/ellipsis/styles/light.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/styles/light.d.ts +2 -2
- package/es/equation/styles/light.d.ts +2 -2
- package/es/form/src/Form.d.ts +11 -2
- package/es/form/src/FormItem.d.ts +14 -4
- package/es/form/src/FormItem.js +2 -1
- package/es/form/src/FormItemCol.d.ts +12 -3
- package/es/form/src/FormItemGridItem.d.ts +12 -3
- package/es/form/src/FormItemRow.d.ts +11 -2
- package/es/form/src/interface.d.ts +19 -19
- package/es/form/src/styles/form-item.cssr.js +1 -0
- package/es/form/styles/_common.d.ts +1 -0
- package/es/form/styles/_common.js +2 -1
- package/es/form/styles/light.d.ts +3 -2
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/gradient-text/styles/light.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/styles/light.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/icon-wrapper/styles/light.d.ts +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +5 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.js +5 -4
- package/es/image/src/utils.d.ts +1 -1
- package/es/image/styles/light.d.ts +2 -2
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/interface.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/styles/light.d.ts +2 -2
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/interface.d.ts +2 -2
- package/es/input-number/styles/light.d.ts +2 -2
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/light.d.ts +2 -2
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-grid/src/interface.d.ts +1 -1
- package/es/legacy-grid/styles/dark.d.ts +1 -1
- package/es/legacy-grid/styles/light.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +11 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/src/interface.d.ts +3 -3
- package/es/legacy-transfer/styles/light.d.ts +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/es/loading-bar/styles/light.d.ts +2 -2
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/koKR.js +9 -9
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/styles/light.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +1 -1
- package/es/mention/styles/light.d.ts +2 -2
- package/es/menu/src/Menu.d.ts +2 -2
- package/es/menu/src/Submenu.js +2 -2
- package/es/menu/src/interface.d.ts +11 -11
- package/es/menu/src/use-menu-child-props.d.ts +1 -1
- package/es/menu/styles/light.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +5 -7
- package/es/message/src/message-props.d.ts +2 -2
- package/es/message/src/types.d.ts +3 -3
- package/es/message/styles/light.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +9 -0
- package/es/modal/src/Modal.d.ts +14 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/styles/light.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +7 -7
- package/es/notification/styles/light.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/styles/light.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +9 -2
- package/es/pagination/src/Pagination.js +6 -4
- package/es/pagination/src/interface.d.ts +9 -8
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/styles/light.d.ts +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +2 -2
- package/es/popover/src/Popover.d.ts +2 -2
- package/es/popover/src/interface.d.ts +3 -3
- package/es/popover/styles/light.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +2 -2
- package/es/popselect/src/interface.d.ts +2 -2
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Line.js +3 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/interface.d.ts +1 -1
- package/es/progress/styles/light.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +8 -1
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +10 -1
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/radio/styles/_common.d.ts +1 -0
- package/es/radio/styles/_common.js +2 -1
- package/es/radio/styles/light.d.ts +3 -2
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/interface.d.ts +2 -2
- package/es/rate/styles/light.d.ts +2 -2
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/styles/light.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +5 -1
- package/es/select/src/Select.js +5 -2
- package/es/select/src/interface.d.ts +12 -12
- package/es/select/styles/light.d.ts +2 -2
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/utils.d.ts +3 -3
- package/es/slider/styles/light.d.ts +2 -2
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/light.d.ts +2 -2
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/styles/light.d.ts +2 -2
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/interface.d.ts +2 -2
- package/es/switch/styles/light.d.ts +2 -2
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +123 -1
- package/es/tabs/src/Tabs.js +83 -61
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/src/styles/index.cssr.js +49 -2
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +12 -0
- package/es/tabs/styles/light.d.ts +14 -2
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/styles/light.d.ts +2 -2
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +2 -2
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/styles/light.d.ts +2 -2
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/interface.d.ts +9 -9
- package/es/time-picker/styles/light.d.ts +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/styles/light.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +2 -2
- package/es/tooltip/styles/light.d.ts +2 -2
- package/es/transfer/src/Transfer.d.ts +11 -1
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +6 -6
- package/es/transfer/styles/light.d.ts +3 -2
- package/es/tree/src/Tree.d.ts +24 -12
- package/es/tree/src/Tree.js +36 -34
- package/es/tree/src/TreeNode.js +4 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/interface.d.ts +16 -16
- package/es/tree/styles/light.d.ts +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +22 -5
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/interface.d.ts +12 -12
- package/es/tree-select/styles/light.d.ts +3 -2
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/styles/light.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +2 -4
- package/es/upload/src/interface.d.ts +16 -16
- package/es/upload/src/utils.js +7 -9
- package/es/upload/styles/light.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/styles/light.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
- package/lib/_internal/select-menu/src/interface.d.ts +7 -7
- package/lib/_internal/select-menu/styles/light.d.ts +2 -2
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -2
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-theme.d.ts +6 -6
- package/lib/_styles/common/light.d.ts +1 -1
- package/lib/_utils/cssr/create-key.d.ts +3 -3
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/lib/_utils/env/is-native-lazy-load.js +2 -3
- package/lib/_utils/naive/extract-public-props.d.ts +4 -4
- package/lib/_utils/naive/mutable.d.ts +1 -1
- package/lib/_utils/naive/prop.d.ts +1 -1
- package/lib/_utils/vue/call.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/affix/src/utils.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/styles/light.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/utils.d.ts +1 -1
- package/lib/anchor/styles/light.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/interface.d.ts +5 -5
- package/lib/auto-complete/styles/light.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +7 -1
- package/lib/avatar/src/interface.d.ts +2 -2
- package/lib/avatar/styles/light.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/styles/light.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/styles/light.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +7 -1
- package/lib/badge/src/Badge.js +15 -3
- package/lib/badge/styles/light.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/styles/light.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/interface.d.ts +2 -2
- package/lib/button/styles/light.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/styles/light.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/interface.d.ts +2 -2
- package/lib/calendar/styles/light.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -18
- package/lib/card/src/Card.js +8 -7
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +11 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +11 -11
- package/lib/cascader/styles/light.d.ts +3 -2
- package/lib/checkbox/src/Checkbox.d.ts +12 -1
- package/lib/checkbox/src/Checkbox.js +2 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/interface.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +1 -0
- package/lib/checkbox/styles/_common.d.ts +1 -0
- package/lib/checkbox/styles/_common.js +2 -1
- package/lib/checkbox/styles/light.d.ts +3 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/interface.d.ts +4 -4
- package/lib/collapse/styles/light.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/styles/light.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +5 -5
- package/lib/color-picker/src/utils.d.ts +2 -2
- package/lib/color-picker/styles/light.d.ts +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +3 -5
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +52 -52
- package/lib/data-table/styles/light.d.ts +4 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +21 -21
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/styles/light.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/interface.d.ts +1 -1
- package/lib/dialog/styles/light.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +2 -2
- package/lib/discrete/src/interface.d.ts +3 -3
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/styles/light.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/drawer/styles/light.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/interface.d.ts +21 -21
- package/lib/dropdown/styles/light.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/light.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/interface.d.ts +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +6 -0
- package/lib/ellipsis/styles/light.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/styles/light.d.ts +2 -2
- package/lib/equation/styles/light.d.ts +2 -2
- package/lib/form/src/Form.d.ts +11 -2
- package/lib/form/src/FormItem.d.ts +14 -4
- package/lib/form/src/FormItem.js +2 -1
- package/lib/form/src/FormItemCol.d.ts +12 -3
- package/lib/form/src/FormItemGridItem.d.ts +12 -3
- package/lib/form/src/FormItemRow.d.ts +11 -2
- package/lib/form/src/interface.d.ts +19 -19
- package/lib/form/src/styles/form-item.cssr.js +1 -0
- package/lib/form/styles/_common.d.ts +1 -0
- package/lib/form/styles/_common.js +2 -1
- package/lib/form/styles/light.d.ts +3 -2
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/gradient-text/styles/light.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/styles/light.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.d.ts +2 -2
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +5 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +5 -4
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/image/styles/light.d.ts +2 -2
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/interface.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/styles/light.d.ts +2 -2
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/interface.d.ts +2 -2
- package/lib/input-number/styles/light.d.ts +2 -2
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/light.d.ts +2 -2
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-grid/src/interface.d.ts +1 -1
- package/lib/legacy-grid/styles/dark.d.ts +1 -1
- package/lib/legacy-grid/styles/light.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/src/interface.d.ts +3 -3
- package/lib/legacy-transfer/styles/light.d.ts +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/lib/loading-bar/styles/light.d.ts +2 -2
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/koKR.js +9 -9
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/styles/light.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +1 -1
- package/lib/mention/styles/light.d.ts +2 -2
- package/lib/menu/src/Menu.d.ts +2 -2
- package/lib/menu/src/Submenu.js +2 -2
- package/lib/menu/src/interface.d.ts +11 -11
- package/lib/menu/src/use-menu-child-props.d.ts +1 -1
- package/lib/menu/styles/light.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +5 -7
- package/lib/message/src/message-props.d.ts +2 -2
- package/lib/message/src/types.d.ts +3 -3
- package/lib/message/styles/light.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +9 -0
- package/lib/modal/src/Modal.d.ts +14 -1
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/modal/styles/light.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +7 -7
- package/lib/notification/styles/light.d.ts +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/styles/light.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +9 -2
- package/lib/pagination/src/Pagination.js +6 -4
- package/lib/pagination/src/interface.d.ts +9 -8
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/styles/light.d.ts +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +2 -2
- package/lib/popover/src/Popover.d.ts +2 -2
- package/lib/popover/src/interface.d.ts +3 -3
- package/lib/popover/styles/light.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +2 -2
- package/lib/popselect/src/interface.d.ts +2 -2
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Line.js +3 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/interface.d.ts +1 -1
- package/lib/progress/styles/light.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +8 -1
- package/lib/radio/src/Radio.js +2 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +10 -1
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/radio/styles/_common.d.ts +1 -0
- package/lib/radio/styles/_common.js +2 -1
- package/lib/radio/styles/light.d.ts +3 -2
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/interface.d.ts +2 -2
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/styles/light.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +5 -1
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +12 -12
- package/lib/select/styles/light.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/utils.d.ts +3 -3
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/light.d.ts +2 -2
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/styles/light.d.ts +2 -2
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/interface.d.ts +2 -2
- package/lib/switch/styles/light.d.ts +2 -2
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +123 -1
- package/lib/tabs/src/Tabs.js +83 -61
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/src/styles/index.cssr.js +49 -2
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +12 -0
- package/lib/tabs/styles/light.d.ts +14 -2
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +2 -2
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +2 -2
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/styles/light.d.ts +2 -2
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/interface.d.ts +9 -9
- package/lib/time-picker/styles/light.d.ts +2 -2
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/styles/light.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +2 -2
- package/lib/tooltip/styles/light.d.ts +2 -2
- package/lib/transfer/src/Transfer.d.ts +11 -1
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +6 -6
- package/lib/transfer/styles/light.d.ts +3 -2
- package/lib/tree/src/Tree.d.ts +24 -12
- package/lib/tree/src/Tree.js +36 -34
- package/lib/tree/src/TreeNode.js +4 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/interface.d.ts +16 -16
- package/lib/tree/styles/light.d.ts +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +22 -5
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/interface.d.ts +12 -12
- package/lib/tree-select/styles/light.d.ts +3 -2
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/styles/light.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +2 -4
- package/lib/upload/src/interface.d.ts +16 -16
- package/lib/upload/src/utils.js +7 -9
- package/lib/upload/styles/light.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/styles/light.d.ts +1 -1
- package/package.json +13 -13
- package/web-types.json +80 -14
|
@@ -200,7 +200,7 @@ export declare const blockquoteProps: {
|
|
|
200
200
|
ulPadding: string;
|
|
201
201
|
}, any>>>;
|
|
202
202
|
};
|
|
203
|
-
export
|
|
203
|
+
export type BlockquoteProps = ExtractPublicPropTypes<typeof blockquoteProps>;
|
|
204
204
|
declare const _default: import("vue").DefineComponent<{
|
|
205
205
|
readonly alignText: BooleanConstructor;
|
|
206
206
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
@@ -206,7 +206,7 @@ export declare const headerProps: {
|
|
|
206
206
|
ulPadding: string;
|
|
207
207
|
}, any>>>;
|
|
208
208
|
};
|
|
209
|
-
export
|
|
209
|
+
export type HeaderProps = ExtractPublicPropTypes<typeof headerProps>;
|
|
210
210
|
declare const _default: (level: '1' | '2' | '3' | '4' | '5' | '6') => import("vue").DefineComponent<{
|
|
211
211
|
readonly type: {
|
|
212
212
|
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
@@ -200,7 +200,7 @@ export declare const olProps: {
|
|
|
200
200
|
ulPadding: string;
|
|
201
201
|
}, any>>>;
|
|
202
202
|
};
|
|
203
|
-
export
|
|
203
|
+
export type OlProps = ExtractPublicPropTypes<typeof olProps>;
|
|
204
204
|
declare const _default: import("vue").DefineComponent<{
|
|
205
205
|
alignText: BooleanConstructor;
|
|
206
206
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
@@ -201,7 +201,7 @@ export declare const pProps: {
|
|
|
201
201
|
ulPadding: string;
|
|
202
202
|
}, any>>>;
|
|
203
203
|
};
|
|
204
|
-
export
|
|
204
|
+
export type PProps = ExtractPublicPropTypes<typeof pProps>;
|
|
205
205
|
declare const _default: import("vue").DefineComponent<{
|
|
206
206
|
depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
|
|
207
207
|
theme: PropType<import("../../_mixins").Theme<"Typography", {
|
|
@@ -216,7 +216,7 @@ export declare const textProps: {
|
|
|
216
216
|
ulPadding: string;
|
|
217
217
|
}, any>>>;
|
|
218
218
|
};
|
|
219
|
-
export
|
|
219
|
+
export type TextProps = ExtractPublicPropTypes<typeof textProps>;
|
|
220
220
|
declare const _default: import("vue").DefineComponent<{
|
|
221
221
|
readonly code: BooleanConstructor;
|
|
222
222
|
readonly type: {
|
|
@@ -200,7 +200,7 @@ export declare const ulProps: {
|
|
|
200
200
|
ulPadding: string;
|
|
201
201
|
}, any>>>;
|
|
202
202
|
};
|
|
203
|
-
export
|
|
203
|
+
export type UlProps = ExtractPublicPropTypes<typeof ulProps>;
|
|
204
204
|
declare const _default: import("vue").DefineComponent<{
|
|
205
205
|
readonly alignText: BooleanConstructor;
|
|
206
206
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
@@ -66,7 +66,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
66
66
|
olPadding: string;
|
|
67
67
|
ulPadding: string;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type TypographyThemeVars = ReturnType<typeof self>;
|
|
70
70
|
declare const typographyLight: Theme<'Typography', TypographyThemeVars>;
|
|
71
71
|
export default typographyLight;
|
|
72
|
-
export
|
|
72
|
+
export type TypographyTheme = typeof typographyLight;
|
|
@@ -846,7 +846,7 @@ export declare const uploadProps: {
|
|
|
846
846
|
}, any>;
|
|
847
847
|
}>>>;
|
|
848
848
|
};
|
|
849
|
-
export
|
|
849
|
+
export type UploadProps = ExtractPublicPropTypes<typeof uploadProps>;
|
|
850
850
|
declare const _default: import("vue").DefineComponent<{
|
|
851
851
|
readonly name: {
|
|
852
852
|
readonly type: StringConstructor;
|
package/lib/upload/src/Upload.js
CHANGED
|
@@ -57,8 +57,7 @@ function createXhrHandlers(inst, file, xhr) {
|
|
|
57
57
|
}
|
|
58
58
|
let fileAfterChange = Object.assign({}, file, {
|
|
59
59
|
status: 'finished',
|
|
60
|
-
percentage
|
|
61
|
-
file: null
|
|
60
|
+
percentage
|
|
62
61
|
});
|
|
63
62
|
xhrMap.delete(file.id);
|
|
64
63
|
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange, event: e })) || fileAfterChange);
|
|
@@ -112,8 +111,7 @@ function customSubmitImpl(options) {
|
|
|
112
111
|
var _a;
|
|
113
112
|
let fileAfterChange = Object.assign({}, file, {
|
|
114
113
|
status: 'finished',
|
|
115
|
-
percentage
|
|
116
|
-
file: null
|
|
114
|
+
percentage
|
|
117
115
|
});
|
|
118
116
|
fileAfterChange = (0, utils_1.createSettledFileInfo)(((_a = inst.onFinish) === null || _a === void 0 ? void 0 : _a.call(inst, { file: fileAfterChange })) || fileAfterChange);
|
|
119
117
|
doChange(fileAfterChange);
|
|
@@ -14,25 +14,25 @@ export interface FileInfo {
|
|
|
14
14
|
type?: string | null;
|
|
15
15
|
fullPath?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type SettledFileInfo = Required<FileInfo>;
|
|
18
|
+
export type ShouldUseThumbnailUrl = (file: SettledFileInfo) => boolean;
|
|
19
|
+
export type FuncOrRecordOrUndef = Record<string, string> | (({ file }: {
|
|
20
20
|
file: SettledFileInfo;
|
|
21
21
|
}) => Record<string, string>) | undefined;
|
|
22
|
-
export
|
|
22
|
+
export type OnChange = (data: {
|
|
23
23
|
file: SettledFileInfo;
|
|
24
24
|
fileList: SettledFileInfo[];
|
|
25
25
|
event: ProgressEvent | Event | undefined;
|
|
26
26
|
}) => void;
|
|
27
|
-
export
|
|
27
|
+
export type OnFinish = ({ file, event }: {
|
|
28
28
|
file: SettledFileInfo;
|
|
29
29
|
event?: ProgressEvent;
|
|
30
30
|
}) => FileInfo | undefined | void;
|
|
31
|
-
export
|
|
31
|
+
export type OnRemove = (data: {
|
|
32
32
|
file: SettledFileInfo;
|
|
33
33
|
fileList: SettledFileInfo[];
|
|
34
34
|
}) => Promise<boolean> | boolean | any;
|
|
35
|
-
export
|
|
35
|
+
export type OnDownload = (file: SettledFileInfo) => Promise<boolean> | boolean | any;
|
|
36
36
|
export interface UploadInternalInst {
|
|
37
37
|
doChange: DoChange;
|
|
38
38
|
xhrMap: Map<string, XMLHttpRequest>;
|
|
@@ -40,12 +40,12 @@ export interface UploadInternalInst {
|
|
|
40
40
|
onError: OnError | undefined;
|
|
41
41
|
onFinish: OnFinish | undefined;
|
|
42
42
|
}
|
|
43
|
-
export
|
|
43
|
+
export type DoChange = (fileAfterChange: SettledFileInfo, event?: ProgressEvent | Event, options?: {
|
|
44
44
|
append?: boolean;
|
|
45
45
|
remove?: boolean;
|
|
46
46
|
}) => void;
|
|
47
|
-
export
|
|
48
|
-
export
|
|
47
|
+
export type OnUpdateFileList = (fileList: SettledFileInfo[]) => void;
|
|
48
|
+
export type RenderIcon = (file: SettledFileInfo) => VNodeChild;
|
|
49
49
|
export interface UploadInjection {
|
|
50
50
|
mergedClsPrefixRef: Ref<string>;
|
|
51
51
|
mergedThemeRef: Ref<MergedTheme<UploadTheme>>;
|
|
@@ -96,13 +96,13 @@ export interface UploadInst {
|
|
|
96
96
|
submit: () => void;
|
|
97
97
|
clear: () => void;
|
|
98
98
|
}
|
|
99
|
-
export
|
|
99
|
+
export type OnBeforeUpload = (data: {
|
|
100
100
|
file: SettledFileInfo;
|
|
101
101
|
fileList: SettledFileInfo[];
|
|
102
102
|
}) => Promise<boolean | void> | boolean | void;
|
|
103
|
-
export
|
|
104
|
-
export
|
|
105
|
-
export
|
|
103
|
+
export type ListType = 'text' | 'image' | 'image-card';
|
|
104
|
+
export type OnPreview = (file: SettledFileInfo) => void;
|
|
105
|
+
export type CreateThumbnailUrl = (file: File | null, fileInfo: SettledFileInfo) => Promise<string> | string | undefined;
|
|
106
106
|
export interface CustomRequestOptions {
|
|
107
107
|
file: SettledFileInfo;
|
|
108
108
|
action?: string;
|
|
@@ -115,8 +115,8 @@ export interface CustomRequestOptions {
|
|
|
115
115
|
onFinish: () => void;
|
|
116
116
|
onError: () => void;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
119
|
-
export
|
|
118
|
+
export type CustomRequest = (options: CustomRequestOptions) => void;
|
|
119
|
+
export type OnError = ({ file, event }: {
|
|
120
120
|
file: SettledFileInfo;
|
|
121
121
|
event?: ProgressEvent;
|
|
122
122
|
}) => FileInfo | undefined | void;
|
package/lib/upload/src/utils.js
CHANGED
|
@@ -19,22 +19,20 @@ const getExtname = (url = '') => {
|
|
|
19
19
|
const filenameWithoutSuffix = filename.split(/#|\?/)[0];
|
|
20
20
|
return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0];
|
|
21
21
|
};
|
|
22
|
+
const imageExtensionRegex = /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i;
|
|
22
23
|
// Do not need File object
|
|
23
24
|
const isImageFile = (file) => {
|
|
24
25
|
if (file.type) {
|
|
25
26
|
return (0, exports.isImageFileType)(file.type);
|
|
26
27
|
}
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
if (/^data:image\//.test(url) ||
|
|
30
|
-
/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(extension)) {
|
|
28
|
+
const fileNameExtension = getExtname(file.name || '');
|
|
29
|
+
if (imageExtensionRegex.test(fileNameExtension)) {
|
|
31
30
|
return true;
|
|
32
31
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return false;
|
|
32
|
+
const url = file.thumbnailUrl || file.url || '';
|
|
33
|
+
const urlExtension = getExtname(url);
|
|
34
|
+
if (/^data:image\//.test(url) || imageExtensionRegex.test(urlExtension)) {
|
|
35
|
+
return true;
|
|
38
36
|
}
|
|
39
37
|
return false;
|
|
40
38
|
};
|
|
@@ -16,7 +16,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
16
16
|
itemBorderImageCardError: string;
|
|
17
17
|
itemBorderImageCard: string;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type UploadThemeVars = ReturnType<typeof self>;
|
|
20
20
|
declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
21
21
|
fontSize: string;
|
|
22
22
|
lineHeight: string;
|
|
@@ -263,4 +263,4 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
263
263
|
}, any>;
|
|
264
264
|
}>;
|
|
265
265
|
export default uploadLight;
|
|
266
|
-
export
|
|
266
|
+
export type UploadTheme = typeof uploadLight;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.34.
|
|
1
|
+
declare const _default: "2.34.3";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
|
@@ -91,7 +91,7 @@ export declare const watermarkProps: {
|
|
|
91
91
|
fontFamily: string;
|
|
92
92
|
}, unknown>>>;
|
|
93
93
|
};
|
|
94
|
-
export
|
|
94
|
+
export type WatermarkProps = ExtractPublicPropTypes<typeof watermarkProps>;
|
|
95
95
|
declare const _default: import("vue").DefineComponent<{
|
|
96
96
|
readonly debug: BooleanConstructor;
|
|
97
97
|
readonly cross: BooleanConstructor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naive-ui",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.3",
|
|
4
4
|
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -51,9 +51,10 @@
|
|
|
51
51
|
"@babel/preset-env": "^7.16.11",
|
|
52
52
|
"@babel/traverse": "^7.17.9",
|
|
53
53
|
"@rollup/plugin-babel": "^6.0.2",
|
|
54
|
-
"@rollup/plugin-commonjs": "^
|
|
54
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
55
55
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
56
|
-
"@rollup/plugin-replace": "^
|
|
56
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
57
|
+
"@rollup/plugin-terser": "^0.2.0",
|
|
57
58
|
"@types/estree": "^1.0.0",
|
|
58
59
|
"@types/jest": "^29.0.2",
|
|
59
60
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
"@vicons/fluent": "^0.12.0",
|
|
62
63
|
"@vicons/ionicons4": "^0.12.0",
|
|
63
64
|
"@vicons/ionicons5": "^0.12.0",
|
|
64
|
-
"@vitejs/plugin-vue": "^
|
|
65
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
65
66
|
"@vue/compiler-sfc": "^3.2.39",
|
|
66
67
|
"@vue/eslint-config-standard": "^8.0.1",
|
|
67
68
|
"@vue/eslint-config-typescript": "^11.0.1",
|
|
@@ -72,11 +73,11 @@
|
|
|
72
73
|
"codesandbox": "^2.2.3",
|
|
73
74
|
"cssnano": "^5.1.7",
|
|
74
75
|
"deepmerge": "^4.2.2",
|
|
75
|
-
"esbuild": "0.
|
|
76
|
+
"esbuild": "0.16.10",
|
|
76
77
|
"eslint": "^8.13.0",
|
|
77
78
|
"eslint-config-prettier": "^8.5.0",
|
|
78
79
|
"eslint-config-standard": "^17.0.0",
|
|
79
|
-
"eslint-config-standard-with-typescript": "^
|
|
80
|
+
"eslint-config-standard-with-typescript": "^24.0.0",
|
|
80
81
|
"eslint-plugin-import": "^2.26.0",
|
|
81
82
|
"eslint-plugin-markdown": "^3.0.0",
|
|
82
83
|
"eslint-plugin-n": "^15.2.0",
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
"eslint-plugin-vue": "^9.4.0",
|
|
86
87
|
"express": "^4.17.3",
|
|
87
88
|
"fast-glob": "^3.2.11",
|
|
88
|
-
"fs-extra": "^
|
|
89
|
+
"fs-extra": "^11.1.0",
|
|
89
90
|
"grapheme-splitter": "^1.0.4",
|
|
90
91
|
"husky": "^8.0.1",
|
|
91
92
|
"inquirer": "^9.1.0",
|
|
@@ -98,17 +99,16 @@
|
|
|
98
99
|
"marked": "^4.0.13",
|
|
99
100
|
"prettier": "^2.6.2",
|
|
100
101
|
"rimraf": "^3.0.2",
|
|
101
|
-
"rollup": "^
|
|
102
|
-
"rollup-plugin-esbuild": "^
|
|
103
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
+
"rollup": "^3.7.0",
|
|
103
|
+
"rollup-plugin-esbuild": "^5.0.0",
|
|
104
104
|
"superagent": "^8.0.0",
|
|
105
105
|
"ts-jest": "^29.0.3",
|
|
106
|
-
"typescript": "
|
|
106
|
+
"typescript": "4.9.4",
|
|
107
107
|
"vfonts": "^0.1.0",
|
|
108
|
-
"vite": "
|
|
108
|
+
"vite": "^4.0.1",
|
|
109
109
|
"vue": "^3.2.39",
|
|
110
110
|
"vue-router": "^4.0.14",
|
|
111
|
-
"vue-tsc": "^1.0.
|
|
111
|
+
"vue-tsc": "^1.0.12"
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
114
|
"vue": "^3.0.0"
|
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "naive-ui",
|
|
5
|
-
"version": "2.34.
|
|
5
|
+
"version": "2.34.3",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -894,6 +894,16 @@
|
|
|
894
894
|
"type": "string",
|
|
895
895
|
"description": "Badge color.",
|
|
896
896
|
"default": "undefined"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"name": "offset",
|
|
900
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/badge",
|
|
901
|
+
"type": "[string | number, string | number]",
|
|
902
|
+
"description": "Offset of the badge from the left and top of the default position.",
|
|
903
|
+
"default": "undefined",
|
|
904
|
+
"description-sections": {
|
|
905
|
+
"since": "2.34.3"
|
|
906
|
+
}
|
|
897
907
|
}
|
|
898
908
|
],
|
|
899
909
|
"js": {
|
|
@@ -1392,7 +1402,7 @@
|
|
|
1392
1402
|
{
|
|
1393
1403
|
"name": "actions",
|
|
1394
1404
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
1395
|
-
"type": "Array<'confirm'> | null",
|
|
1405
|
+
"type": "Array<'confirm' | 'clear'> | null",
|
|
1396
1406
|
"description": "The types of buttons to be shown in the panel.",
|
|
1397
1407
|
"default": "null"
|
|
1398
1408
|
},
|
|
@@ -1412,13 +1422,6 @@
|
|
|
1412
1422
|
"description-sections": {
|
|
1413
1423
|
"since": "2.24.0"
|
|
1414
1424
|
}
|
|
1415
|
-
},
|
|
1416
|
-
{
|
|
1417
|
-
"name": "internal-actions",
|
|
1418
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
1419
|
-
"type": "Array<'redo' | 'undo' | 'clear'>",
|
|
1420
|
-
"description": "Set of built-in operations.",
|
|
1421
|
-
"default": "undefined"
|
|
1422
1425
|
}
|
|
1423
1426
|
],
|
|
1424
1427
|
"js": {
|
|
@@ -1598,6 +1601,16 @@
|
|
|
1598
1601
|
"name": "role",
|
|
1599
1602
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/card",
|
|
1600
1603
|
"type": "string"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "tag",
|
|
1607
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/card",
|
|
1608
|
+
"type": "string",
|
|
1609
|
+
"description": "What tag need the card be rendered as.",
|
|
1610
|
+
"default": "'div'",
|
|
1611
|
+
"description-sections": {
|
|
1612
|
+
"since": "2.34.3"
|
|
1613
|
+
}
|
|
1601
1614
|
}
|
|
1602
1615
|
],
|
|
1603
1616
|
"js": {
|
|
@@ -8795,6 +8808,11 @@
|
|
|
8795
8808
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
8796
8809
|
"type": "string"
|
|
8797
8810
|
},
|
|
8811
|
+
{
|
|
8812
|
+
"name": "tag",
|
|
8813
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
8814
|
+
"type": "string"
|
|
8815
|
+
},
|
|
8798
8816
|
{
|
|
8799
8817
|
"name": "icon",
|
|
8800
8818
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
@@ -9232,6 +9250,16 @@
|
|
|
9232
9250
|
"description": "The number of pages displayed.",
|
|
9233
9251
|
"default": "9"
|
|
9234
9252
|
},
|
|
9253
|
+
{
|
|
9254
|
+
"name": "select-props",
|
|
9255
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/pagination",
|
|
9256
|
+
"type": "SelectProps",
|
|
9257
|
+
"description": "Page size select's props.",
|
|
9258
|
+
"default": "undefined",
|
|
9259
|
+
"description-sections": {
|
|
9260
|
+
"since": "2.34.3"
|
|
9261
|
+
}
|
|
9262
|
+
},
|
|
9235
9263
|
{
|
|
9236
9264
|
"name": "prev",
|
|
9237
9265
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/pagination",
|
|
@@ -9246,6 +9274,16 @@
|
|
|
9246
9274
|
"description": "Next page.",
|
|
9247
9275
|
"default": "undefined"
|
|
9248
9276
|
},
|
|
9277
|
+
{
|
|
9278
|
+
"name": "goto",
|
|
9279
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/pagination",
|
|
9280
|
+
"type": "() => VNodeChild",
|
|
9281
|
+
"description": "Fast jump content render function.",
|
|
9282
|
+
"default": "undefined",
|
|
9283
|
+
"description-sections": {
|
|
9284
|
+
"since": "2.34.3"
|
|
9285
|
+
}
|
|
9286
|
+
},
|
|
9249
9287
|
{
|
|
9250
9288
|
"name": "prefix",
|
|
9251
9289
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/pagination",
|
|
@@ -10892,7 +10930,7 @@
|
|
|
10892
10930
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
10893
10931
|
"type": "string",
|
|
10894
10932
|
"description": "Placeholder.",
|
|
10895
|
-
"default": "'Please Select'"
|
|
10933
|
+
"default": "'Please Select' (i18n)"
|
|
10896
10934
|
},
|
|
10897
10935
|
{
|
|
10898
10936
|
"name": "menu-props",
|
|
@@ -11092,6 +11130,16 @@
|
|
|
11092
11130
|
"since": "2.33.4"
|
|
11093
11131
|
}
|
|
11094
11132
|
},
|
|
11133
|
+
{
|
|
11134
|
+
"name": "show-on-focus",
|
|
11135
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
11136
|
+
"type": "boolean",
|
|
11137
|
+
"description": "Whether to show menu on focus.",
|
|
11138
|
+
"default": "false",
|
|
11139
|
+
"description-sections": {
|
|
11140
|
+
"since": "2.34.3"
|
|
11141
|
+
}
|
|
11142
|
+
},
|
|
11095
11143
|
{
|
|
11096
11144
|
"name": "display-directive",
|
|
11097
11145
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
@@ -12163,6 +12211,11 @@
|
|
|
12163
12211
|
"description": "Size of tabs.",
|
|
12164
12212
|
"default": "'medium'"
|
|
12165
12213
|
},
|
|
12214
|
+
{
|
|
12215
|
+
"name": "placement",
|
|
12216
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
12217
|
+
"type": "string"
|
|
12218
|
+
},
|
|
12166
12219
|
{
|
|
12167
12220
|
"name": "tab-style",
|
|
12168
12221
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
@@ -13650,7 +13703,7 @@
|
|
|
13650
13703
|
"name": "checkable",
|
|
13651
13704
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13652
13705
|
"type": "boolean",
|
|
13653
|
-
"description": "Whether to display the selection box
|
|
13706
|
+
"description": "Whether to display the selection box.",
|
|
13654
13707
|
"default": "false"
|
|
13655
13708
|
},
|
|
13656
13709
|
{
|
|
@@ -13822,6 +13875,16 @@
|
|
|
13822
13875
|
"since": "2.32.2"
|
|
13823
13876
|
}
|
|
13824
13877
|
},
|
|
13878
|
+
{
|
|
13879
|
+
"name": "get-children",
|
|
13880
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13881
|
+
"type": "(option: any) => unknown",
|
|
13882
|
+
"description": "Get children of the option.",
|
|
13883
|
+
"default": "undefined",
|
|
13884
|
+
"description-sections": {
|
|
13885
|
+
"since": "2.34.3"
|
|
13886
|
+
}
|
|
13887
|
+
},
|
|
13825
13888
|
{
|
|
13826
13889
|
"name": "allow-checking-not-loaded",
|
|
13827
13890
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
@@ -13927,8 +13990,11 @@
|
|
|
13927
13990
|
"name": "load",
|
|
13928
13991
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13929
13992
|
"type": "(node: TreeOption) => Promise<void>",
|
|
13930
|
-
"description": "Callback function for asynchronously loading data.",
|
|
13931
|
-
"default": "undefined"
|
|
13993
|
+
"description": "Callback function for asynchronously loading data. If not data is loaded, you should make promise resolve `false` or be rejected, nor the loading animation won't end.",
|
|
13994
|
+
"default": "undefined",
|
|
13995
|
+
"description-sections": {
|
|
13996
|
+
"since": "Non void Promise 2.34.3"
|
|
13997
|
+
}
|
|
13932
13998
|
},
|
|
13933
13999
|
{
|
|
13934
14000
|
"name": "dragenter",
|
|
@@ -15182,7 +15248,7 @@
|
|
|
15182
15248
|
"name": "render-icon",
|
|
15183
15249
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/upload",
|
|
15184
15250
|
"type": "(file: UploadSettledFileInfo) => VNodeChild",
|
|
15185
|
-
"description": "Render function of file icon. It works when `list-type=\"image\"`.",
|
|
15251
|
+
"description": "Render function of file icon. It only works when `list-type=\"image\"` or `list-type=\"image-card\"`.",
|
|
15186
15252
|
"default": "undefined",
|
|
15187
15253
|
"description-sections": {
|
|
15188
15254
|
"since": "2.34.0"
|