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
|
@@ -18,25 +18,25 @@ export interface ThemePropsReactive<T> {
|
|
|
18
18
|
themeOverrides?: ExtractThemeOverrides<T>;
|
|
19
19
|
builtinThemeOverrides?: ExtractThemeOverrides<T>;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type ExtractThemeVars<T> = T extends Theme<unknown, infer U, unknown> ? unknown extends U ? {} : U : {};
|
|
22
|
+
export type ExtractPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
|
|
23
23
|
peers?: {
|
|
24
24
|
[k in keyof V]?: ExtractThemeOverrides<V[k]>;
|
|
25
25
|
};
|
|
26
26
|
} : T;
|
|
27
|
-
export
|
|
27
|
+
export type ExtractMergedPeerOverrides<T> = T extends Theme<unknown, unknown, infer V> ? {
|
|
28
28
|
[k in keyof V]?: ExtractPeerOverrides<V[k]>;
|
|
29
29
|
} : T;
|
|
30
|
-
export
|
|
30
|
+
export type ExtractThemeOverrides<T> = Partial<ExtractThemeVars<T>> & ExtractPeerOverrides<T> & {
|
|
31
31
|
common?: ThemeCommonVars;
|
|
32
32
|
};
|
|
33
33
|
export declare function createTheme<N extends string, T, R>(theme: Theme<N, T, R>): Theme<N, T, R>;
|
|
34
|
-
|
|
34
|
+
type UseThemeProps<T> = Readonly<{
|
|
35
35
|
theme?: T | undefined;
|
|
36
36
|
themeOverrides?: ExtractThemeOverrides<T>;
|
|
37
37
|
builtinThemeOverrides?: ExtractThemeOverrides<T>;
|
|
38
38
|
}>;
|
|
39
|
-
export
|
|
39
|
+
export type MergedTheme<T> = T extends Theme<unknown, infer V, infer W> ? {
|
|
40
40
|
common: ThemeCommonVars;
|
|
41
41
|
self: V;
|
|
42
42
|
peers: W;
|
|
@@ -37,8 +37,8 @@ interface characterMap {
|
|
|
37
37
|
m: 'M';
|
|
38
38
|
[key: string]: string;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
type char = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0' | 'q' | 'w' | 'e' | 'r' | 't' | 'y' | 'u' | 'i' | 'o' | 'p' | 'a' | 's' | 'd' | 'f' | 'g' | 'h' | 'j' | 'k' | 'l' | 'z' | 'x' | 'c' | 'v' | 'b' | 'n' | 'm';
|
|
41
|
+
type RestChars<T> = T extends `${char}${infer P}` ? P : '';
|
|
42
|
+
type UpperFirst<T> = T extends `${infer P}${string}` ? `${characterMap[P]}${RestChars<T>}` : T;
|
|
43
43
|
export declare function createKey<P extends string, S extends string>(prefix: P, suffix: S): S extends 'default' ? P : `${P}${UpperFirst<S>}`;
|
|
44
44
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isImageSupportNativeLazy
|
|
1
|
+
export declare const isImageSupportNativeLazy: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isImageSupportNativeLazy = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// typeof document !== 'undefined' && 'loading' in document.createElement('img')
|
|
4
|
+
const is_browser_1 = require("./is-browser");
|
|
5
|
+
exports.isImageSupportNativeLazy = is_browser_1.isBrowser && 'loading' in document.createElement('img');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { useTheme } from '../../_mixins';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type themePropKeys = keyof typeof useTheme.props;
|
|
4
|
+
type RemoveReadonly<T> = {
|
|
5
5
|
-readonly [key in keyof T]: T[key];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ExtractPublicPropTypes<T> = Omit<Partial<RemoveReadonly<ExtractPropTypes<T>>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>;
|
|
8
|
+
export type ExtractInternalPropTypes<T> = Partial<ExtractPropTypes<T>>;
|
|
9
9
|
export {};
|
|
@@ -6,6 +6,6 @@ interface SmallerSizeMap {
|
|
|
6
6
|
large: 'medium';
|
|
7
7
|
huge: 'large';
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type SmallerSize<T extends keyof SmallerSizeMap> = SmallerSizeMap[T];
|
|
10
10
|
export declare function smallerSize<T extends keyof SmallerSizeMap>(size: T): SmallerSize<T>;
|
|
11
11
|
export {};
|
package/lib/_utils/vue/call.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ declare function call<A1, A2>(funcs: MaybeArray<(a1: A1, a2: A2) => void>, a1: A
|
|
|
4
4
|
declare function call<A1, A2, A3>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3) => void>, a1: A1, a2: A2, a3: A3): void;
|
|
5
5
|
declare function call<A1, A2, A3, A4>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3, a4: A4) => void>, a1: A1, a2: A2, a3: A3, a4: A4): void;
|
|
6
6
|
export { call };
|
|
7
|
-
export
|
|
7
|
+
export type MaybeArray<T> = T | T[];
|
package/lib/affix/src/Affix.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const affixProps: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export declare const affixPropKeys: ("bottom" | "top" | "position" | "target" | "listenTo" | "triggerTop" | "triggerBottom" | "offsetTop" | "offsetBottom")[];
|
|
31
|
-
export
|
|
31
|
+
export type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
|
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
|
|
34
34
|
readonly top: NumberConstructor;
|
package/lib/affix/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ScrollTarget = Window | Document | HTMLElement;
|
|
2
2
|
export declare function getScrollTop(target: ScrollTarget): number;
|
|
3
3
|
export declare function getRect(target: ScrollTarget): {
|
|
4
4
|
top: number;
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -215,7 +215,7 @@ export declare const alertProps: {
|
|
|
215
215
|
padding: string;
|
|
216
216
|
}, any>>>;
|
|
217
217
|
};
|
|
218
|
-
export
|
|
218
|
+
export type AlertProps = ExtractPublicPropTypes<typeof alertProps>;
|
|
219
219
|
declare const _default: import("vue").DefineComponent<{
|
|
220
220
|
title: StringConstructor;
|
|
221
221
|
showIcon: {
|
|
@@ -65,7 +65,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
65
65
|
closeMarginRtl: string;
|
|
66
66
|
padding: string;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type AlertThemeVars = ReturnType<typeof self>;
|
|
69
69
|
declare const alertLight: Theme<'Alert', AlertThemeVars>;
|
|
70
70
|
export default alertLight;
|
|
71
|
-
export
|
|
71
|
+
export type AlertTheme = typeof alertLight;
|
|
@@ -87,7 +87,7 @@ export declare const anchorProps: {
|
|
|
87
87
|
railWidth: string;
|
|
88
88
|
}, any>>>;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export type AnchorProps = ExtractPublicPropTypes<typeof anchorProps>;
|
|
91
91
|
declare const _default: import("vue").DefineComponent<{
|
|
92
92
|
readonly type: {
|
|
93
93
|
readonly type: import("vue").PropType<"block" | "rail">;
|
package/lib/anchor/src/Link.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const anchorLinkProps: {
|
|
|
13
13
|
readonly title: StringConstructor;
|
|
14
14
|
readonly href: StringConstructor;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AnchorLinkProps = ExtractPublicPropTypes<typeof anchorLinkProps>;
|
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
readonly title: StringConstructor;
|
|
19
19
|
readonly href: StringConstructor;
|
|
@@ -13,7 +13,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
13
13
|
linkPadding: string;
|
|
14
14
|
railWidth: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AnchorThemeVars = ReturnType<typeof self>;
|
|
17
17
|
declare const anchorLight: Theme<'Anchor', AnchorThemeVars>;
|
|
18
18
|
export default anchorLight;
|
|
19
|
-
export
|
|
19
|
+
export type AnchorTheme = typeof anchorLight;
|
|
@@ -413,7 +413,7 @@ export declare const autoCompleteProps: {
|
|
|
413
413
|
}, any>;
|
|
414
414
|
}>>>;
|
|
415
415
|
};
|
|
416
|
-
export
|
|
416
|
+
export type AutoCompleteProps = ExtractPublicPropTypes<typeof autoCompleteProps>;
|
|
417
417
|
declare const _default: import("vue").DefineComponent<{
|
|
418
418
|
readonly to: {
|
|
419
419
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SelectGroupOption, SelectBaseOption } from '../../select/src/interface';
|
|
2
|
-
export
|
|
2
|
+
export type AutoCompleteOption = SelectBaseOption<string, string>;
|
|
3
3
|
export interface AutoCompleteGroupOption extends Omit<SelectGroupOption, 'children'> {
|
|
4
4
|
children: AutoCompleteOptions;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export type AutoCompleteOptions = Array<AutoCompleteOption | AutoCompleteGroupOption | string>;
|
|
7
|
+
export type OnUpdateValue = (value: string & (string | null)) => void;
|
|
8
|
+
export type OnUpdateImpl = (value: string | null) => void;
|
|
9
|
+
export type OnSelect = (value: string | number) => void;
|
|
10
10
|
export interface AutoCompleteInst {
|
|
11
11
|
focus: () => void;
|
|
12
12
|
blur: () => void;
|
|
@@ -121,5 +121,5 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
|
|
|
121
121
|
}, any>;
|
|
122
122
|
}>;
|
|
123
123
|
export default autoCompleteLight;
|
|
124
|
-
export
|
|
125
|
-
export
|
|
124
|
+
export type AutoCompleteTheme = typeof autoCompleteLight;
|
|
125
|
+
export type AutoCompleteThemeVars = ReturnType<typeof self>;
|
|
@@ -68,7 +68,7 @@ export declare const avatarProps: {
|
|
|
68
68
|
colorPopover: string;
|
|
69
69
|
}, any>>>;
|
|
70
70
|
};
|
|
71
|
-
export
|
|
71
|
+
export type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
|
|
72
72
|
declare const _default: import("vue").DefineComponent<{
|
|
73
73
|
readonly size: PropType<Size>;
|
|
74
74
|
readonly src: StringConstructor;
|
package/lib/avatar/src/Avatar.js
CHANGED
|
@@ -209,7 +209,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
209
209
|
}
|
|
210
210
|
else if (src) {
|
|
211
211
|
const { imgProps } = this;
|
|
212
|
-
return (0, vue_1.h)('img', Object.assign(Object.assign({}, imgProps), { loading:
|
|
212
|
+
return (0, vue_1.h)('img', Object.assign(Object.assign({}, imgProps), { loading:
|
|
213
|
+
// If interseciton observer options is set, do not use native lazy
|
|
214
|
+
is_native_lazy_load_1.isImageSupportNativeLazy &&
|
|
215
|
+
!this.intersectionObserverOptions &&
|
|
216
|
+
lazy
|
|
217
|
+
? 'lazy'
|
|
218
|
+
: 'eager', src: is_native_lazy_load_1.isImageSupportNativeLazy
|
|
213
219
|
? src
|
|
214
220
|
: shouldStartLoading || loaded
|
|
215
221
|
? src
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Size = number | 'small' | 'medium' | 'large';
|
|
2
|
+
export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
@@ -13,8 +13,8 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
13
13
|
colorModal: string;
|
|
14
14
|
colorPopover: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AvatarThemeVars = ReturnType<typeof self>;
|
|
17
17
|
declare const avatarLight: Theme<'Avatar', AvatarThemeVars>;
|
|
18
18
|
export default avatarLight;
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export type AvatarTheme = typeof avatarLight;
|
|
20
|
+
export type AvatarGroupTheme = typeof avatarLight;
|
|
@@ -68,7 +68,7 @@ export declare const avatarGroupProps: {
|
|
|
68
68
|
}, any>;
|
|
69
69
|
}>>>;
|
|
70
70
|
};
|
|
71
|
-
export
|
|
71
|
+
export type AvatarGroupProps = ExtractPublicPropTypes<typeof avatarGroupProps>;
|
|
72
72
|
declare const _default: import("vue").DefineComponent<{
|
|
73
73
|
readonly max: NumberConstructor;
|
|
74
74
|
readonly maxStyle: PropType<string | CSSProperties>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AvatarGroupThemeVars = {};
|
|
2
2
|
export declare const self: () => {
|
|
3
3
|
gap: string;
|
|
4
4
|
};
|
|
@@ -20,4 +20,4 @@ declare const avatarGroupLight: import("../../_mixins").Theme<"AvatarGroup", {
|
|
|
20
20
|
}, any>;
|
|
21
21
|
}>;
|
|
22
22
|
export default avatarGroupLight;
|
|
23
|
-
export
|
|
23
|
+
export type AvatarGroupTheme = typeof avatarGroupLight;
|
|
@@ -72,7 +72,7 @@ export declare const backTopProps: {
|
|
|
72
72
|
iconSize: string;
|
|
73
73
|
}, any>>>;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export type BackTopProps = ExtractPublicPropTypes<typeof backTopProps>;
|
|
76
76
|
declare const _default: import("vue").DefineComponent<{
|
|
77
77
|
readonly show: {
|
|
78
78
|
readonly type: PropType<boolean | undefined>;
|
|
@@ -14,7 +14,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
14
14
|
borderRadius: string;
|
|
15
15
|
iconSize: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type BackTopThemeVars = ReturnType<typeof self>;
|
|
18
18
|
declare const backTopLight: Theme<'BackTop', BackTopThemeVars>;
|
|
19
19
|
export default backTopLight;
|
|
20
|
-
export
|
|
20
|
+
export type BackTopTheme = typeof backTopLight;
|
package/lib/badge/src/Badge.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const badgeProps: {
|
|
|
15
15
|
readonly showZero: BooleanConstructor;
|
|
16
16
|
readonly processing: BooleanConstructor;
|
|
17
17
|
readonly color: StringConstructor;
|
|
18
|
+
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
18
19
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
19
20
|
color: string;
|
|
20
21
|
colorInfo: string;
|
|
@@ -43,7 +44,7 @@ export declare const badgeProps: {
|
|
|
43
44
|
fontFamily: string;
|
|
44
45
|
}, any>>>;
|
|
45
46
|
};
|
|
46
|
-
export
|
|
47
|
+
export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
|
|
47
48
|
declare const _default: import("vue").DefineComponent<{
|
|
48
49
|
readonly value: PropType<string | number>;
|
|
49
50
|
readonly max: NumberConstructor;
|
|
@@ -59,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
60
|
readonly showZero: BooleanConstructor;
|
|
60
61
|
readonly processing: BooleanConstructor;
|
|
61
62
|
readonly color: StringConstructor;
|
|
63
|
+
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
62
64
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
63
65
|
color: string;
|
|
64
66
|
colorInfo: string;
|
|
@@ -103,6 +105,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
105
|
}> | undefined;
|
|
104
106
|
themeClass: import("vue").Ref<string> | undefined;
|
|
105
107
|
onRender: (() => void) | undefined;
|
|
108
|
+
offsetStyle: import("vue").ComputedRef<{
|
|
109
|
+
transform: string;
|
|
110
|
+
} | undefined>;
|
|
106
111
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
107
112
|
readonly value: PropType<string | number>;
|
|
108
113
|
readonly max: NumberConstructor;
|
|
@@ -118,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
123
|
readonly showZero: BooleanConstructor;
|
|
119
124
|
readonly processing: BooleanConstructor;
|
|
120
125
|
readonly color: StringConstructor;
|
|
126
|
+
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
121
127
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
122
128
|
color: string;
|
|
123
129
|
colorInfo: string;
|
package/lib/badge/src/Badge.js
CHANGED
|
@@ -17,7 +17,7 @@ exports.badgeProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
17
17
|
}, show: {
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: true
|
|
20
|
-
}, showZero: Boolean, processing: Boolean, color: String });
|
|
20
|
+
}, showZero: Boolean, processing: Boolean, color: String, offset: Array });
|
|
21
21
|
exports.default = (0, vue_1.defineComponent)({
|
|
22
22
|
name: 'Badge',
|
|
23
23
|
props: exports.badgeProps,
|
|
@@ -68,6 +68,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
68
68
|
return hash;
|
|
69
69
|
}), cssVarsRef, props)
|
|
70
70
|
: undefined;
|
|
71
|
+
const offsetStyleRef = (0, vue_1.computed)(() => {
|
|
72
|
+
const { offset } = props;
|
|
73
|
+
if (!offset)
|
|
74
|
+
return undefined;
|
|
75
|
+
const [x, y] = offset;
|
|
76
|
+
const reslovedOffsetX = typeof x === 'number' ? `${x}px` : x;
|
|
77
|
+
const reslovedOffsetY = typeof y === 'number' ? `${y}px` : y;
|
|
78
|
+
return {
|
|
79
|
+
transform: `translate(calc(${(rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) ? '50%' : '-50%'} + ${reslovedOffsetX}), ${reslovedOffsetY})`
|
|
80
|
+
};
|
|
81
|
+
});
|
|
71
82
|
return {
|
|
72
83
|
rtlEnabled: rtlEnabledRef,
|
|
73
84
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -77,7 +88,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
77
88
|
handleAfterLeave,
|
|
78
89
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
79
90
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
80
|
-
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
91
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
92
|
+
offsetStyle: offsetStyleRef
|
|
81
93
|
};
|
|
82
94
|
},
|
|
83
95
|
render() {
|
|
@@ -96,7 +108,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
96
108
|
], style: this.cssVars },
|
|
97
109
|
children,
|
|
98
110
|
(0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", onAfterEnter: this.handleAfterEnter, onAfterLeave: this.handleAfterLeave }, {
|
|
99
|
-
default: () => this.showBadge ? ((0, vue_1.h)("sup", { class: `${mergedClsPrefix}-badge-sup`, title: (0, _utils_1.getTitleAttribute)(this.value) },
|
|
111
|
+
default: () => this.showBadge ? ((0, vue_1.h)("sup", { class: `${mergedClsPrefix}-badge-sup`, title: (0, _utils_1.getTitleAttribute)(this.value), style: this.offsetStyle },
|
|
100
112
|
(0, _utils_1.resolveSlot)($slots.value, () => [
|
|
101
113
|
!this.dot ? ((0, vue_1.h)(_internal_1.NBaseSlotMachine, { clsPrefix: mergedClsPrefix, appeared: this.appeared, max: this.max, value: this.value })) : null
|
|
102
114
|
]),
|
|
@@ -9,7 +9,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
9
9
|
fontSize: string;
|
|
10
10
|
fontFamily: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type BadgeThemeVars = ReturnType<typeof self>;
|
|
13
13
|
declare const badgeLight: Theme<'Badge', BadgeThemeVars>;
|
|
14
14
|
export default badgeLight;
|
|
15
|
-
export
|
|
15
|
+
export type BadgeTheme = typeof badgeLight;
|
|
@@ -50,7 +50,7 @@ export declare const breadcrumbProps: {
|
|
|
50
50
|
fontWeightActive: string;
|
|
51
51
|
}, any>>>;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type BreadcrumbProps = ExtractPublicPropTypes<typeof breadcrumbProps>;
|
|
54
54
|
declare const _default: import("vue").DefineComponent<{
|
|
55
55
|
readonly separator: {
|
|
56
56
|
readonly type: StringConstructor;
|
|
@@ -8,7 +8,7 @@ export declare const breadcrumbItemProps: {
|
|
|
8
8
|
};
|
|
9
9
|
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type BreadcrumbItemProps = Partial<ExtractPropTypes<typeof breadcrumbItemProps>>;
|
|
12
12
|
declare const _default: import("vue").DefineComponent<{
|
|
13
13
|
readonly separator: StringConstructor;
|
|
14
14
|
readonly href: StringConstructor;
|
|
@@ -13,7 +13,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
13
13
|
separatorColor: string;
|
|
14
14
|
fontWeightActive: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type BreadcrumbThemeVars = ReturnType<typeof self>;
|
|
17
17
|
declare const breadcrumbLight: Theme<'Breadcrumb', BreadcrumbThemeVars>;
|
|
18
18
|
export default breadcrumbLight;
|
|
19
|
-
export
|
|
19
|
+
export type BreadcrumbTheme = typeof breadcrumbLight;
|
|
@@ -664,7 +664,7 @@ export declare const buttonProps: {
|
|
|
664
664
|
rippleDuration: string;
|
|
665
665
|
}, any>>>;
|
|
666
666
|
};
|
|
667
|
-
export
|
|
667
|
+
export type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>;
|
|
668
668
|
declare const Button: import("vue").DefineComponent<{
|
|
669
669
|
readonly color: StringConstructor;
|
|
670
670
|
readonly textColor: StringConstructor;
|
|
@@ -2067,9 +2067,9 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
2067
2067
|
readonly attrType: "button" | "reset" | "submit";
|
|
2068
2068
|
readonly nativeFocusBehavior: boolean;
|
|
2069
2069
|
}>;
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2070
|
+
type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
2071
|
+
type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
|
|
2072
|
+
type MergedProps = Partial<InternalButtonProps & NativeButtonProps>;
|
|
2073
2073
|
export default Button;
|
|
2074
2074
|
export declare const XButton: new () => {
|
|
2075
2075
|
$props: MergedProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Size = 'tiny' | 'small' | 'medium' | 'large';
|
|
2
|
+
export type Type = 'default' | 'tertiary' | 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -204,7 +204,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
204
204
|
iconSizeLarge: string;
|
|
205
205
|
rippleDuration: string;
|
|
206
206
|
};
|
|
207
|
-
export
|
|
207
|
+
export type ButtonThemeVars = ReturnType<typeof self>;
|
|
208
208
|
declare const buttonLight: Theme<'Button', ButtonThemeVars>;
|
|
209
209
|
export default buttonLight;
|
|
210
|
-
export
|
|
210
|
+
export type ButtonTheme = typeof buttonLight;
|
|
@@ -11,7 +11,7 @@ export declare const buttonGroupProps: {
|
|
|
11
11
|
};
|
|
12
12
|
readonly vertical: BooleanConstructor;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ButtonGroupProps = ExtractPublicPropTypes<typeof buttonGroupProps>;
|
|
15
15
|
declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
readonly size: {
|
|
17
17
|
readonly type: PropType<Size | undefined>;
|
|
@@ -3,4 +3,4 @@ export interface ButtonGroupThemeVars {
|
|
|
3
3
|
}
|
|
4
4
|
declare const buttonGroupLight: Theme<'ButtonGroup', ButtonGroupThemeVars>;
|
|
5
5
|
export default buttonGroupLight;
|
|
6
|
-
export
|
|
6
|
+
export type ButtonGroupTheme = typeof buttonGroupLight;
|
|
@@ -693,7 +693,7 @@ export declare const calendarProps: {
|
|
|
693
693
|
}, any>;
|
|
694
694
|
}>>>;
|
|
695
695
|
};
|
|
696
|
-
export
|
|
696
|
+
export type CalendarProps = ExtractPublicPropTypes<typeof calendarProps>;
|
|
697
697
|
declare const _default: import("vue").DefineComponent<{
|
|
698
698
|
readonly isDateDisabled: PropType<(date: number) => boolean | undefined>;
|
|
699
699
|
readonly value: NumberConstructor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type OnUpdateValue = (value: number, time: DateItem) => void;
|
|
2
2
|
export interface DateItem {
|
|
3
3
|
year: number;
|
|
4
4
|
month: number;
|
|
5
5
|
date: number;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type OnPanelChange = (info: {
|
|
8
8
|
year: number;
|
|
9
9
|
month: number;
|
|
10
10
|
}) => void;
|
|
@@ -21,7 +21,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
21
21
|
barColor: string;
|
|
22
22
|
titleFontSize: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type CalendarThemeVars = ReturnType<typeof self>;
|
|
25
25
|
declare const calendarLight: import("../../_mixins").Theme<"Calendar", {
|
|
26
26
|
borderRadius: string;
|
|
27
27
|
borderColor: string;
|
|
@@ -250,4 +250,4 @@ declare const calendarLight: import("../../_mixins").Theme<"Calendar", {
|
|
|
250
250
|
}, any>;
|
|
251
251
|
}>;
|
|
252
252
|
export default calendarLight;
|
|
253
|
-
export
|
|
253
|
+
export type CalendarTheme = typeof calendarLight;
|