naive-ui 2.40.4 → 2.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3516 -1947
- package/dist/index.mjs +3510 -1949
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/selection/src/Selection.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/dom/download.d.ts +1 -0
- package/es/_utils/dom/download.mjs +3 -0
- package/es/_utils/index.d.ts +2 -2
- package/es/_utils/index.mjs +2 -2
- package/es/_utils/naive/index.d.ts +1 -0
- package/es/_utils/naive/index.mjs +1 -0
- package/es/_utils/naive/value.d.ts +1 -0
- package/es/_utils/naive/value.mjs +13 -0
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/es/_utils/vue/get-first-slot-vnode.mjs +13 -0
- package/es/_utils/vue/index.d.ts +2 -2
- package/es/_utils/vue/index.mjs +2 -2
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.mjs +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +7 -2
- package/es/alert/src/Alert.mjs +1 -0
- package/es/auto-complete/index.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +10 -4
- package/es/auto-complete/src/AutoComplete.mjs +3 -2
- package/es/auto-complete/src/interface.d.ts +6 -0
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +7 -2
- package/es/avatar/src/Avatar.mjs +1 -0
- package/es/avatar-group/index.d.ts +2 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/es/avatar-group/src/AvatarGroup.mjs +1 -0
- package/es/avatar-group/src/interface.d.ts +8 -0
- package/es/avatar-group/src/interface.mjs +1 -0
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/es/breadcrumb/src/BreadcrumbItem.mjs +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/src/Button.d.ts +6 -2
- package/es/button/src/Button.mjs +1 -0
- package/es/calendar/src/Calendar.d.ts +7 -3
- package/es/calendar/src/Calendar.mjs +3 -2
- package/es/calendar/src/interface.d.ts +9 -0
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +10 -2
- package/es/card/src/Card.mjs +1 -0
- package/es/carousel/index.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +8 -3
- package/es/carousel/src/Carousel.mjs +4 -3
- package/es/carousel/src/interface.d.ts +12 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +9 -3
- package/es/cascader/src/Cascader.mjs +1 -0
- package/es/collapse/index.d.ts +3 -2
- package/es/collapse/src/Collapse.d.ts +10 -4
- package/es/collapse/src/Collapse.mjs +1 -0
- package/es/collapse/src/CollapseItem.d.ts +9 -4
- package/es/collapse/src/CollapseItem.mjs +8 -11
- package/es/collapse/src/interface.d.ts +12 -0
- package/es/color-picker/index.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +7 -2
- package/es/color-picker/src/ColorPicker.mjs +1 -3
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.mjs +1 -0
- package/es/color-picker/src/context.d.ts +3 -2
- package/es/components.d.ts +1 -0
- package/es/components.mjs +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +9 -8
- package/es/data-table/src/DataTable.mjs +7 -6
- package/es/data-table/src/TableParts/Body.d.ts +1 -3
- package/es/data-table/src/interface.d.ts +7 -2
- package/es/data-table/src/styles/index.cssr.mjs +1 -0
- package/es/data-table/src/use-group-header.mjs +4 -3
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +27 -5
- package/es/date-picker/src/DatePicker.mjs +1 -0
- package/es/date-picker/src/interface.d.ts +3 -2
- package/es/date-picker/src/panel/date.d.ts +1 -3
- package/es/date-picker/src/panel/date.mjs +8 -8
- package/es/date-picker/src/panel/daterange.d.ts +1 -3
- package/es/date-picker/src/panel/daterange.mjs +12 -12
- package/es/date-picker/src/panel/datetime.d.ts +1 -3
- package/es/date-picker/src/panel/datetime.mjs +10 -10
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/es/date-picker/src/panel/datetimerange.mjs +12 -12
- package/es/date-picker/src/panel/month.d.ts +1 -3
- package/es/date-picker/src/panel/month.mjs +9 -9
- package/es/date-picker/src/panel/monthrange.d.ts +1 -3
- package/es/date-picker/src/panel/monthrange.mjs +9 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/es/date-picker/src/props.d.ts +1 -1
- package/es/descriptions/index.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +7 -3
- package/es/descriptions/src/Descriptions.mjs +1 -0
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/es/descriptions/src/DescriptionsItem.mjs +1 -0
- package/es/dialog/index.d.ts +1 -0
- package/es/dialog/src/Dialog.d.ts +9 -2
- package/es/dialog/src/Dialog.mjs +1 -0
- package/es/dialog/src/DialogEnvironment.d.ts +5 -1
- package/es/dialog/src/DialogEnvironment.mjs +8 -3
- package/es/dialog/src/DialogProvider.d.ts +8 -2
- package/es/drawer/index.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +7 -2
- package/es/drawer/src/DrawerContent.mjs +1 -0
- package/es/dynamic-input/index.d.ts +2 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/es/dynamic-input/src/DynamicInput.mjs +3 -3
- package/es/dynamic-input/src/interface.d.ts +11 -0
- package/es/dynamic-tags/index.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/es/dynamic-tags/src/DynamicTags.mjs +1 -0
- package/es/dynamic-tags/src/interface.d.ts +8 -0
- package/es/ellipsis/index.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +6 -2
- package/es/ellipsis/src/Ellipsis.mjs +1 -0
- package/es/empty/index.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +7 -2
- package/es/empty/src/Empty.mjs +1 -0
- package/es/float-button/index.d.ts +1 -1
- package/es/float-button/src/FloatButton.d.ts +7 -2
- package/es/float-button/src/FloatButton.mjs +1 -0
- package/es/form/index.d.ts +1 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/interface.d.ts +0 -1
- package/es/form/src/public-types.d.ts +1 -0
- package/es/form/src/public-types.mjs +1 -0
- package/es/image/index.d.ts +1 -1
- package/es/image/src/Image.d.ts +6 -2
- package/es/image/src/Image.mjs +2 -5
- package/es/input/index.d.ts +1 -1
- package/es/input/src/Input.d.ts +14 -3
- package/es/input/src/Input.mjs +8 -8
- package/es/input/src/WordCount.mjs +2 -2
- package/es/input-number/index.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +9 -3
- package/es/input-number/src/InputNumber.mjs +1 -0
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.mjs +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.mjs +317 -0
- package/es/input-otp/src/public-types.d.ts +24 -0
- package/es/input-otp/src/public-types.mjs +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.mjs +11 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.mjs +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.mjs +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.mjs +3 -0
- package/es/input-otp/styles/light.d.ts +81 -0
- package/es/input-otp/styles/light.mjs +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.mjs +5 -0
- package/es/list/index.d.ts +2 -1
- package/es/list/src/List.d.ts +7 -2
- package/es/list/src/List.mjs +1 -0
- package/es/list/src/ListItem.d.ts +7 -1
- package/es/list/src/ListItem.mjs +1 -0
- package/es/locales/common/kmKH.d.ts +3 -0
- package/es/locales/common/kmKH.mjs +124 -0
- package/es/locales/common/ugCN.d.ts +3 -0
- package/es/locales/common/ugCN.mjs +124 -0
- package/es/locales/date/kmKH.d.ts +3 -0
- package/es/locales/date/kmKH.mjs +6 -0
- package/es/locales/date/ugCN.d.ts +3 -0
- package/es/locales/date/ugCN.mjs +6 -0
- package/es/locales/index.d.ts +3 -0
- package/es/locales/index.mjs +3 -0
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +7 -3
- package/es/mention/src/Mention.mjs +1 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +20 -5
- package/es/modal/src/BodyWrapper.mjs +55 -13
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.mjs +3 -0
- package/es/modal/src/ModalEnvironment.d.ts +4 -2
- package/es/modal/src/ModalProvider.mjs +0 -6
- package/es/modal/src/composables.d.ts +13 -1
- package/es/modal/src/composables.mjs +105 -1
- package/es/modal/src/interface.d.ts +6 -0
- package/es/modal/src/styles/index.cssr.mjs +5 -1
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +12 -2
- package/es/page-header/src/PageHeader.mjs +1 -0
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +12 -3
- package/es/pagination/src/Pagination.mjs +3 -2
- package/es/pagination/src/interface.d.ts +1 -0
- package/es/popconfirm/index.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -2
- package/es/popconfirm/src/Popconfirm.mjs +2 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +8 -2
- package/es/popover/src/Popover.mjs +2 -5
- package/es/popselect/index.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +8 -2
- package/es/popselect/src/Popselect.mjs +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/result/index.d.ts +1 -1
- package/es/result/src/Result.d.ts +7 -2
- package/es/result/src/Result.mjs +1 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +10 -3
- package/es/select/src/Select.mjs +1 -0
- package/es/slider/index.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +6 -2
- package/es/slider/src/Slider.mjs +1 -0
- package/es/spin/index.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +7 -2
- package/es/spin/src/Spin.mjs +1 -0
- package/es/split/index.d.ts +1 -1
- package/es/split/src/Split.d.ts +8 -2
- package/es/split/src/Split.mjs +1 -0
- package/es/statistic/index.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +8 -1
- package/es/statistic/src/Statistic.mjs +1 -0
- package/es/steps/index.d.ts +2 -2
- package/es/steps/src/Step.d.ts +8 -5
- package/es/steps/src/Step.mjs +1 -0
- package/es/steps/src/Steps.d.ts +8 -3
- package/es/steps/src/Steps.mjs +1 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/switch/index.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +10 -2
- package/es/switch/src/Switch.mjs +1 -0
- package/es/tabs/index.d.ts +2 -2
- package/es/tabs/src/TabPane.d.ts +8 -2
- package/es/tabs/src/TabPane.mjs +1 -0
- package/es/tabs/src/Tabs.d.ts +7 -2
- package/es/tabs/src/Tabs.mjs +1 -0
- package/es/tag/index.d.ts +1 -1
- package/es/tag/src/Tag.d.ts +7 -2
- package/es/tag/src/Tag.mjs +1 -0
- package/es/themes/dark.mjs +2 -1
- package/es/themes/light.mjs +2 -0
- package/es/thing/index.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +11 -2
- package/es/thing/src/Thing.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +6 -2
- package/es/timeline/index.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +8 -2
- package/es/timeline/src/TimelineItem.mjs +1 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +5 -2
- package/es/tooltip/src/Tooltip.mjs +1 -0
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +27 -19
- package/es/tree/src/Tree.mjs +5 -4
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +22 -3
- package/es/tree-select/src/TreeSelect.mjs +2 -0
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.mjs +1 -0
- package/es/upload/src/Upload.d.ts +11 -8
- package/es/upload/src/Upload.mjs +2 -0
- package/es/upload/src/UploadFile.mjs +8 -1
- package/es/upload/src/UploadTrigger.d.ts +7 -2
- package/es/upload/src/UploadTrigger.mjs +1 -0
- package/es/upload/src/interface.d.ts +8 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/dom/download.d.ts +1 -0
- package/lib/_utils/dom/download.js +4 -0
- package/lib/_utils/index.d.ts +2 -2
- package/lib/_utils/index.js +4 -2
- package/lib/_utils/naive/index.d.ts +1 -0
- package/lib/_utils/naive/index.js +3 -1
- package/lib/_utils/naive/value.d.ts +1 -0
- package/lib/_utils/naive/value.js +18 -0
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -0
- package/lib/_utils/vue/get-first-slot-vnode.js +15 -0
- package/lib/_utils/vue/index.d.ts +2 -2
- package/lib/_utils/vue/index.js +3 -2
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.js +2 -2
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +7 -2
- package/lib/alert/src/Alert.js +1 -0
- package/lib/auto-complete/index.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -4
- package/lib/auto-complete/src/AutoComplete.js +2 -1
- package/lib/auto-complete/src/interface.d.ts +6 -0
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +7 -2
- package/lib/avatar/src/Avatar.js +1 -0
- package/lib/avatar-group/index.d.ts +2 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +8 -2
- package/lib/avatar-group/src/AvatarGroup.js +1 -0
- package/lib/avatar-group/src/interface.d.ts +8 -0
- package/lib/avatar-group/src/interface.js +2 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +6 -2
- package/lib/breadcrumb/src/BreadcrumbItem.js +1 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/src/Button.d.ts +6 -2
- package/lib/button/src/Button.js +1 -0
- package/lib/calendar/src/Calendar.d.ts +7 -3
- package/lib/calendar/src/Calendar.js +2 -1
- package/lib/calendar/src/interface.d.ts +9 -0
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +10 -2
- package/lib/card/src/Card.js +1 -0
- package/lib/carousel/index.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +8 -3
- package/lib/carousel/src/Carousel.js +3 -2
- package/lib/carousel/src/interface.d.ts +12 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +9 -3
- package/lib/cascader/src/Cascader.js +1 -0
- package/lib/collapse/index.d.ts +3 -2
- package/lib/collapse/src/Collapse.d.ts +10 -4
- package/lib/collapse/src/Collapse.js +1 -0
- package/lib/collapse/src/CollapseItem.d.ts +9 -4
- package/lib/collapse/src/CollapseItem.js +6 -9
- package/lib/collapse/src/interface.d.ts +12 -0
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +7 -2
- package/lib/color-picker/src/ColorPicker.js +3 -4
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.js +1 -0
- package/lib/color-picker/src/context.d.ts +3 -2
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +9 -8
- package/lib/data-table/src/DataTable.js +7 -6
- package/lib/data-table/src/TableParts/Body.d.ts +1 -3
- package/lib/data-table/src/interface.d.ts +7 -2
- package/lib/data-table/src/styles/index.cssr.js +1 -0
- package/lib/data-table/src/use-group-header.js +4 -3
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +27 -5
- package/lib/date-picker/src/DatePicker.js +1 -0
- package/lib/date-picker/src/interface.d.ts +3 -2
- package/lib/date-picker/src/panel/date.d.ts +1 -3
- package/lib/date-picker/src/panel/date.js +15 -7
- package/lib/date-picker/src/panel/daterange.d.ts +1 -3
- package/lib/date-picker/src/panel/daterange.js +27 -11
- package/lib/date-picker/src/panel/datetime.d.ts +1 -3
- package/lib/date-picker/src/panel/datetime.js +16 -8
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -3
- package/lib/date-picker/src/panel/datetimerange.js +27 -11
- package/lib/date-picker/src/panel/month.d.ts +1 -3
- package/lib/date-picker/src/panel/month.js +6 -6
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -3
- package/lib/date-picker/src/panel/monthrange.js +5 -3
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -3
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +1 -3
- package/lib/date-picker/src/props.d.ts +1 -1
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +7 -3
- package/lib/descriptions/src/Descriptions.js +1 -0
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -2
- package/lib/descriptions/src/DescriptionsItem.js +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/src/Dialog.d.ts +9 -2
- package/lib/dialog/src/Dialog.js +1 -0
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -1
- package/lib/dialog/src/DialogEnvironment.js +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +8 -2
- package/lib/drawer/index.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +7 -2
- package/lib/drawer/src/DrawerContent.js +1 -0
- package/lib/dynamic-input/index.d.ts +2 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +8 -2
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-input/src/interface.d.ts +11 -0
- package/lib/dynamic-tags/index.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -3
- package/lib/dynamic-tags/src/DynamicTags.js +1 -0
- package/lib/dynamic-tags/src/interface.d.ts +8 -0
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +6 -2
- package/lib/ellipsis/src/Ellipsis.js +1 -0
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +7 -2
- package/lib/empty/src/Empty.js +1 -0
- package/lib/float-button/index.d.ts +1 -1
- package/lib/float-button/src/FloatButton.d.ts +7 -2
- package/lib/float-button/src/FloatButton.js +1 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/interface.d.ts +0 -1
- package/lib/form/src/public-types.d.ts +1 -0
- package/lib/form/src/public-types.js +2 -0
- package/lib/image/index.d.ts +1 -1
- package/lib/image/src/Image.d.ts +6 -2
- package/lib/image/src/Image.js +2 -2
- package/lib/input/index.d.ts +1 -1
- package/lib/input/src/Input.d.ts +14 -3
- package/lib/input/src/Input.js +9 -8
- package/lib/input/src/WordCount.js +1 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +9 -3
- package/lib/input-number/src/InputNumber.js +1 -0
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +242 -0
- package/lib/input-otp/src/public-types.d.ts +24 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +16 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +81 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/list/index.d.ts +2 -1
- package/lib/list/src/List.d.ts +7 -2
- package/lib/list/src/List.js +1 -0
- package/lib/list/src/ListItem.d.ts +7 -1
- package/lib/list/src/ListItem.js +1 -0
- package/lib/locales/common/kmKH.d.ts +3 -0
- package/lib/locales/common/kmKH.js +126 -0
- package/lib/locales/common/ugCN.d.ts +3 -0
- package/lib/locales/common/ugCN.js +126 -0
- package/lib/locales/date/kmKH.d.ts +3 -0
- package/lib/locales/date/kmKH.js +8 -0
- package/lib/locales/date/ugCN.d.ts +3 -0
- package/lib/locales/date/ugCN.js +8 -0
- package/lib/locales/index.d.ts +3 -0
- package/lib/locales/index.js +8 -2
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +7 -3
- package/lib/mention/src/Mention.js +1 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +20 -5
- package/lib/modal/src/BodyWrapper.js +47 -14
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +3 -2
- package/lib/modal/src/ModalEnvironment.d.ts +4 -2
- package/lib/modal/src/ModalProvider.js +0 -6
- package/lib/modal/src/composables.d.ts +13 -1
- package/lib/modal/src/composables.js +100 -0
- package/lib/modal/src/interface.d.ts +6 -0
- package/lib/modal/src/styles/index.cssr.js +5 -1
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +12 -2
- package/lib/page-header/src/PageHeader.js +1 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +12 -3
- package/lib/pagination/src/Pagination.js +3 -2
- package/lib/pagination/src/interface.d.ts +1 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -2
- package/lib/popconfirm/src/Popconfirm.js +2 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +8 -2
- package/lib/popover/src/Popover.js +2 -6
- package/lib/popselect/index.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +8 -2
- package/lib/popselect/src/Popselect.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/result/index.d.ts +1 -1
- package/lib/result/src/Result.d.ts +7 -2
- package/lib/result/src/Result.js +1 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +10 -3
- package/lib/select/src/Select.js +1 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +6 -2
- package/lib/slider/src/Slider.js +1 -0
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +7 -2
- package/lib/spin/src/Spin.js +1 -0
- package/lib/split/index.d.ts +1 -1
- package/lib/split/src/Split.d.ts +8 -2
- package/lib/split/src/Split.js +1 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +8 -1
- package/lib/statistic/src/Statistic.js +1 -0
- package/lib/steps/index.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +8 -5
- package/lib/steps/src/Step.js +1 -0
- package/lib/steps/src/Steps.d.ts +8 -3
- package/lib/steps/src/Steps.js +1 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +99 -96
- package/lib/switch/index.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +10 -2
- package/lib/switch/src/Switch.js +1 -0
- package/lib/tabs/index.d.ts +2 -2
- package/lib/tabs/src/TabPane.d.ts +8 -2
- package/lib/tabs/src/TabPane.js +1 -0
- package/lib/tabs/src/Tabs.d.ts +7 -2
- package/lib/tabs/src/Tabs.js +1 -0
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag/src/Tag.d.ts +7 -2
- package/lib/tag/src/Tag.js +1 -0
- package/lib/themes/dark.js +1 -0
- package/lib/themes/light.js +92 -90
- package/lib/thing/index.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +11 -2
- package/lib/thing/src/Thing.js +1 -0
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +6 -2
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +8 -2
- package/lib/timeline/src/TimelineItem.js +1 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +5 -2
- package/lib/tooltip/src/Tooltip.js +1 -0
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +27 -19
- package/lib/tree/src/Tree.js +6 -4
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +22 -3
- package/lib/tree-select/src/TreeSelect.js +2 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +3 -1
- package/lib/upload/src/Upload.d.ts +11 -8
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.js +7 -2
- package/lib/upload/src/UploadTrigger.d.ts +7 -2
- package/lib/upload/src/UploadTrigger.js +1 -0
- package/lib/upload/src/interface.d.ts +8 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +1 -1
- package/volar.d.ts +3 -2
- package/web-types.json +142 -14
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isArrayShallowEqual = isArrayShallowEqual;
|
|
4
|
+
function isArrayShallowEqual(array1, array2) {
|
|
5
|
+
if (array1 === null && array2 === null)
|
|
6
|
+
return true;
|
|
7
|
+
if (array1 === null || array2 === null)
|
|
8
|
+
return false;
|
|
9
|
+
if (array1.length === array2.length) {
|
|
10
|
+
for (let i = 0; i < array1.length; ++i) {
|
|
11
|
+
if (array1[i] !== array2[i]) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { Slots, VNode } from 'vue';
|
|
2
2
|
export declare function getFirstSlotVNode(slots: Slots, slotName?: string, props?: unknown): VNode | null;
|
|
3
|
+
export declare function getFirstSlotVNodeWithTypedProps<T>(slotName: string, slot: ((props: T) => VNode[]) | undefined, props: T): VNode | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFirstSlotVNode = getFirstSlotVNode;
|
|
4
|
+
exports.getFirstSlotVNodeWithTypedProps = getFirstSlotVNodeWithTypedProps;
|
|
4
5
|
const naive_1 = require("../naive");
|
|
5
6
|
const flatten_1 = require("./flatten");
|
|
6
7
|
function getFirstSlotVNode(slots, slotName = 'default', props = undefined) {
|
|
@@ -19,3 +20,17 @@ function getFirstSlotVNode(slots, slotName = 'default', props = undefined) {
|
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
function getFirstSlotVNodeWithTypedProps(slotName, slot, props) {
|
|
24
|
+
if (!slot) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const slotContent = (0, flatten_1.flatten)(slot(props));
|
|
28
|
+
// vue will normalize the slot, so slot must be an array
|
|
29
|
+
if (slotContent.length === 1) {
|
|
30
|
+
return slotContent[0];
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
(0, naive_1.warn)('getFirstSlotVNode', `slot[${slotName}] should have exactly one child`);
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -4,7 +4,7 @@ export { createDataKey } from './create-data-key';
|
|
|
4
4
|
export { createInjectionKey } from './create-injection-key';
|
|
5
5
|
export { createRefSetter } from './create-ref-setter';
|
|
6
6
|
export { flatten } from './flatten';
|
|
7
|
-
export { getFirstSlotVNode } from './get-first-slot-vnode';
|
|
7
|
+
export { getFirstSlotVNode, getFirstSlotVNodeWithTypedProps } from './get-first-slot-vnode';
|
|
8
8
|
export { getSlot } from './get-slot';
|
|
9
9
|
export { getVNodeChildren } from './get-v-node-children';
|
|
10
10
|
export { isNodeVShowFalse } from './is-node-v-show-false';
|
|
@@ -13,5 +13,5 @@ export { keysOf } from './keysOf';
|
|
|
13
13
|
export { mergeEventHandlers } from './merge-handlers';
|
|
14
14
|
export { omit } from './omit';
|
|
15
15
|
export { render } from './render';
|
|
16
|
-
export { isSlotEmpty, resolveSlot,
|
|
16
|
+
export { isSlotEmpty, resolveSlot, resolveSlotWithTypedProps, resolveWrappedSlot, resolveWrappedSlotWithProps } from './resolve-slot';
|
|
17
17
|
export { Wrapper } from './wrapper';
|
package/lib/_utils/vue/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Wrapper = exports.resolveWrappedSlotWithProps = exports.resolveWrappedSlot = exports.
|
|
3
|
+
exports.Wrapper = exports.resolveWrappedSlotWithProps = exports.resolveWrappedSlot = exports.resolveSlotWithTypedProps = exports.resolveSlot = exports.isSlotEmpty = exports.render = exports.omit = exports.mergeEventHandlers = exports.keysOf = exports.keep = exports.isNodeVShowFalse = exports.getVNodeChildren = exports.getSlot = exports.getFirstSlotVNodeWithTypedProps = exports.getFirstSlotVNode = exports.flatten = exports.createRefSetter = exports.createInjectionKey = exports.createDataKey = exports.call = void 0;
|
|
4
4
|
var call_1 = require("./call");
|
|
5
5
|
Object.defineProperty(exports, "call", { enumerable: true, get: function () { return call_1.call; } });
|
|
6
6
|
var create_data_key_1 = require("./create-data-key");
|
|
@@ -13,6 +13,7 @@ var flatten_1 = require("./flatten");
|
|
|
13
13
|
Object.defineProperty(exports, "flatten", { enumerable: true, get: function () { return flatten_1.flatten; } });
|
|
14
14
|
var get_first_slot_vnode_1 = require("./get-first-slot-vnode");
|
|
15
15
|
Object.defineProperty(exports, "getFirstSlotVNode", { enumerable: true, get: function () { return get_first_slot_vnode_1.getFirstSlotVNode; } });
|
|
16
|
+
Object.defineProperty(exports, "getFirstSlotVNodeWithTypedProps", { enumerable: true, get: function () { return get_first_slot_vnode_1.getFirstSlotVNodeWithTypedProps; } });
|
|
16
17
|
var get_slot_1 = require("./get-slot");
|
|
17
18
|
Object.defineProperty(exports, "getSlot", { enumerable: true, get: function () { return get_slot_1.getSlot; } });
|
|
18
19
|
var get_v_node_children_1 = require("./get-v-node-children");
|
|
@@ -32,7 +33,7 @@ Object.defineProperty(exports, "render", { enumerable: true, get: function () {
|
|
|
32
33
|
var resolve_slot_1 = require("./resolve-slot");
|
|
33
34
|
Object.defineProperty(exports, "isSlotEmpty", { enumerable: true, get: function () { return resolve_slot_1.isSlotEmpty; } });
|
|
34
35
|
Object.defineProperty(exports, "resolveSlot", { enumerable: true, get: function () { return resolve_slot_1.resolveSlot; } });
|
|
35
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "resolveSlotWithTypedProps", { enumerable: true, get: function () { return resolve_slot_1.resolveSlotWithTypedProps; } });
|
|
36
37
|
Object.defineProperty(exports, "resolveWrappedSlot", { enumerable: true, get: function () { return resolve_slot_1.resolveWrappedSlot; } });
|
|
37
38
|
Object.defineProperty(exports, "resolveWrappedSlotWithProps", { enumerable: true, get: function () { return resolve_slot_1.resolveWrappedSlotWithProps; } });
|
|
38
39
|
var wrapper_1 = require("./wrapper");
|
|
@@ -4,7 +4,7 @@ export declare function ensureValidVNode(vnodes: VNodeArrayChildren): VNodeArray
|
|
|
4
4
|
* We shouldn't use the following functions with slot flags `_: 1, 2, 3`
|
|
5
5
|
*/
|
|
6
6
|
export declare function resolveSlot(slot: Slot | undefined, fallback: () => VNodeArrayChildren): VNodeArrayChildren;
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function resolveSlotWithTypedProps<T>(slot: Slot<T> | undefined, props: T, fallback: (props: T) => VNodeArrayChildren): VNodeArrayChildren;
|
|
8
8
|
/**
|
|
9
9
|
* Resolve slot with wrapper if content exists, no fallback
|
|
10
10
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureValidVNode = ensureValidVNode;
|
|
4
4
|
exports.resolveSlot = resolveSlot;
|
|
5
|
-
exports.
|
|
5
|
+
exports.resolveSlotWithTypedProps = resolveSlotWithTypedProps;
|
|
6
6
|
exports.resolveWrappedSlot = resolveWrappedSlot;
|
|
7
7
|
exports.resolveWrappedSlotWithProps = resolveWrappedSlotWithProps;
|
|
8
8
|
exports.isSlotEmpty = isSlotEmpty;
|
|
@@ -30,7 +30,7 @@ function ensureValidVNode(vnodes) {
|
|
|
30
30
|
function resolveSlot(slot, fallback) {
|
|
31
31
|
return (slot && ensureValidVNode(slot())) || fallback();
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function resolveSlotWithTypedProps(slot, props, fallback) {
|
|
34
34
|
return (slot && ensureValidVNode(slot(props))) || fallback(props);
|
|
35
35
|
}
|
|
36
36
|
/**
|
package/lib/alert/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { alertProps, default as NAlert } from './src/Alert';
|
|
2
|
-
export type { AlertProps } from './src/Alert';
|
|
2
|
+
export type { AlertProps, AlertSlots } from './src/Alert';
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
2
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const alertProps: {
|
|
4
4
|
title: StringConstructor;
|
|
5
5
|
showIcon: {
|
|
@@ -216,6 +216,11 @@ export declare const alertProps: {
|
|
|
216
216
|
}, any>>>;
|
|
217
217
|
};
|
|
218
218
|
export type AlertProps = ExtractPublicPropTypes<typeof alertProps>;
|
|
219
|
+
export interface AlertSlots {
|
|
220
|
+
default?: () => VNode[];
|
|
221
|
+
icon?: () => VNode[];
|
|
222
|
+
header?: () => VNode[];
|
|
223
|
+
}
|
|
219
224
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
220
225
|
title: StringConstructor;
|
|
221
226
|
showIcon: {
|
|
@@ -758,5 +763,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
758
763
|
bordered: boolean;
|
|
759
764
|
showIcon: boolean;
|
|
760
765
|
closable: boolean;
|
|
761
|
-
},
|
|
766
|
+
}, SlotsType<AlertSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
762
767
|
export default _default;
|
package/lib/alert/src/Alert.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { autoCompleteProps, default as NAutoComplete } from './src/AutoComplete';
|
|
2
|
-
export type { AutoCompleteProps } from './src/AutoComplete';
|
|
3
|
-
export type { AutoCompleteGroupOption, AutoCompleteInst, AutoCompleteOption } from './src/interface';
|
|
2
|
+
export type { AutoCompleteProps, AutoCompleteSlots } from './src/AutoComplete';
|
|
3
|
+
export type { AutoCompleteDefaultSlotProps, AutoCompleteGroupOption, AutoCompleteInst, AutoCompleteOption } from './src/interface';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RenderLabel, RenderOption } from '../../_internal/select-menu/src/interface';
|
|
2
|
-
import type { FormValidationStatus } from '../../form/src/
|
|
2
|
+
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
3
3
|
import type { SelectBaseOption, SelectGroupOption, SelectIgnoredOption } from '../../select/src/interface';
|
|
4
|
-
import type { AutoCompleteOptions, OnSelect, OnUpdateValue } from './interface';
|
|
4
|
+
import type { AutoCompleteDefaultSlotProps, AutoCompleteOptions, OnSelect, OnUpdateValue } from './interface';
|
|
5
5
|
import { type TreeNode } from 'treemate';
|
|
6
|
-
import { type HTMLAttributes, type InputHTMLAttributes, type PropType } from 'vue';
|
|
6
|
+
import { type HTMLAttributes, type InputHTMLAttributes, type PropType, type SlotsType, type VNode } from 'vue';
|
|
7
7
|
import { type FollowerPlacement } from 'vueuc';
|
|
8
8
|
import { type ExtractPublicPropTypes, type MaybeArray } from '../../_utils';
|
|
9
9
|
export declare const autoCompleteProps: {
|
|
@@ -460,6 +460,12 @@ export declare const autoCompleteProps: {
|
|
|
460
460
|
}>>>;
|
|
461
461
|
};
|
|
462
462
|
export type AutoCompleteProps = ExtractPublicPropTypes<typeof autoCompleteProps>;
|
|
463
|
+
export interface AutoCompleteSlots {
|
|
464
|
+
default?: (options: AutoCompleteDefaultSlotProps) => VNode[];
|
|
465
|
+
empty?: () => VNode[];
|
|
466
|
+
prefix?: () => VNode[];
|
|
467
|
+
suffix?: () => VNode[];
|
|
468
|
+
}
|
|
463
469
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
464
470
|
readonly to: {
|
|
465
471
|
type: PropType<HTMLElement | string | boolean>;
|
|
@@ -1636,5 +1642,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1636
1642
|
readonly blurAfterSelect: boolean;
|
|
1637
1643
|
readonly clearAfterSelect: boolean;
|
|
1638
1644
|
readonly showEmpty: boolean;
|
|
1639
|
-
},
|
|
1645
|
+
}, SlotsType<AutoCompleteSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1640
1646
|
export default _default;
|
|
@@ -45,6 +45,7 @@ exports.autoCompleteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
|
|
|
45
45
|
exports.default = (0, vue_1.defineComponent)({
|
|
46
46
|
name: 'AutoComplete',
|
|
47
47
|
props: exports.autoCompleteProps,
|
|
48
|
+
slots: Object,
|
|
48
49
|
setup(props) {
|
|
49
50
|
if (process.env.NODE_ENV !== 'production') {
|
|
50
51
|
(0, vue_1.watchEffect)(() => {
|
|
@@ -254,7 +255,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
254
255
|
default: () => {
|
|
255
256
|
const defaultSlot = this.$slots.default;
|
|
256
257
|
if (defaultSlot) {
|
|
257
|
-
return (0, _utils_1.
|
|
258
|
+
return (0, _utils_1.getFirstSlotVNodeWithTypedProps)('default', defaultSlot, {
|
|
258
259
|
handleInput: this.handleInput,
|
|
259
260
|
handleFocus: this.handleFocus,
|
|
260
261
|
handleBlur: this.handleBlur,
|
|
@@ -12,3 +12,9 @@ export interface AutoCompleteInst {
|
|
|
12
12
|
focus: () => void;
|
|
13
13
|
blur: () => void;
|
|
14
14
|
}
|
|
15
|
+
export interface AutoCompleteDefaultSlotProps {
|
|
16
|
+
handleInput: (value: string) => void;
|
|
17
|
+
handleFocus: (e: FocusEvent) => void;
|
|
18
|
+
handleBlur: (e: FocusEvent) => void;
|
|
19
|
+
value: string | null;
|
|
20
|
+
}
|
package/lib/avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { avatarProps, default as NAvatar } from './src/Avatar';
|
|
2
|
-
export type { AvatarProps } from './src/Avatar';
|
|
2
|
+
export type { AvatarProps, AvatarSlots } from './src/Avatar';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
import type { ObjectFit, Size } from './interface';
|
|
3
|
-
import { type ImgHTMLAttributes, type PropType, type VNodeChild } from 'vue';
|
|
3
|
+
import { type ImgHTMLAttributes, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
4
4
|
import { type IntersectionObserverOptions } from '../../image/src/utils';
|
|
5
5
|
export declare const avatarProps: {
|
|
6
6
|
readonly size: PropType<Size>;
|
|
@@ -69,6 +69,11 @@ export declare const avatarProps: {
|
|
|
69
69
|
}, any>>>;
|
|
70
70
|
};
|
|
71
71
|
export type AvatarProps = ExtractPublicPropTypes<typeof avatarProps>;
|
|
72
|
+
export interface AvatarSlots {
|
|
73
|
+
default?: () => VNode[];
|
|
74
|
+
placeholder?: () => VNode[];
|
|
75
|
+
fallback?: () => VNode[];
|
|
76
|
+
}
|
|
72
77
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
73
78
|
readonly size: PropType<Size>;
|
|
74
79
|
readonly src: StringConstructor;
|
|
@@ -227,5 +232,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
227
232
|
readonly circle: boolean;
|
|
228
233
|
readonly lazy: boolean;
|
|
229
234
|
readonly bordered: boolean;
|
|
230
|
-
},
|
|
235
|
+
}, SlotsType<AvatarSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
231
236
|
export default _default;
|
package/lib/avatar/src/Avatar.js
CHANGED
|
@@ -29,6 +29,7 @@ exports.avatarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
29
29
|
exports.default = (0, vue_1.defineComponent)({
|
|
30
30
|
name: 'Avatar',
|
|
31
31
|
props: exports.avatarProps,
|
|
32
|
+
slots: Object,
|
|
32
33
|
setup(props) {
|
|
33
34
|
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
34
35
|
const hasLoadErrorRef = (0, vue_1.ref)(false);
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { avatarGroupProps, default as NAvatarGroup } from './src/AvatarGroup';
|
|
2
|
-
export type { AvatarGroupOption, AvatarGroupProps } from './src/AvatarGroup';
|
|
2
|
+
export type { AvatarGroupOption, AvatarGroupProps, AvatarGroupSlots } from './src/AvatarGroup';
|
|
3
|
+
export type { AvatarGroupAvatarSlotProps, AvatarGroupRestSlotProps } from './src/interface';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
import type { Size } from '../../avatar/src/interface';
|
|
3
|
-
import {
|
|
3
|
+
import type { AvatarGroupAvatarSlotProps, AvatarGroupRestSlotProps } from './interface';
|
|
4
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
5
|
export interface AvatarGroupInjection {
|
|
5
6
|
size?: Size | undefined;
|
|
6
7
|
}
|
|
@@ -70,6 +71,11 @@ export declare const avatarGroupProps: {
|
|
|
70
71
|
}>>>;
|
|
71
72
|
};
|
|
72
73
|
export type AvatarGroupProps = ExtractPublicPropTypes<typeof avatarGroupProps>;
|
|
74
|
+
export interface AvatarGroupSlots {
|
|
75
|
+
avatar?: (props: AvatarGroupAvatarSlotProps) => VNode[];
|
|
76
|
+
rest?: (props: AvatarGroupRestSlotProps) => VNode[];
|
|
77
|
+
default?: () => VNode[];
|
|
78
|
+
}
|
|
73
79
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
74
80
|
readonly max: NumberConstructor;
|
|
75
81
|
readonly maxStyle: PropType<CSSProperties | string>;
|
|
@@ -232,5 +238,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
232
238
|
readonly options: AvatarGroupOption[];
|
|
233
239
|
readonly vertical: boolean;
|
|
234
240
|
readonly expandOnHover: boolean;
|
|
235
|
-
},
|
|
241
|
+
}, SlotsType<AvatarGroupSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
236
242
|
export default _default;
|
|
@@ -18,6 +18,7 @@ exports.avatarGroupProps = Object.assign(Object.assign({}, _mixins_1.useTheme.pr
|
|
|
18
18
|
exports.default = (0, vue_1.defineComponent)({
|
|
19
19
|
name: 'AvatarGroup',
|
|
20
20
|
props: exports.avatarGroupProps,
|
|
21
|
+
slots: Object,
|
|
21
22
|
setup(props) {
|
|
22
23
|
const { mergedClsPrefixRef, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
23
24
|
const mergedThemeRef = (0, _mixins_1.useTheme)('AvatarGroup', '-avatar-group', avatar_group_cssr_1.default, styles_1.avatarGroupLight, props, mergedClsPrefixRef);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { breadcrumbProps, default as NBreadcrumb } from './src/Breadcrumb';
|
|
2
2
|
export type { BreadcrumbProps } from './src/Breadcrumb';
|
|
3
3
|
export { breadcrumbItemProps, default as NBreadcrumbItem } from './src/BreadcrumbItem';
|
|
4
|
-
export type { BreadcrumbItemProps } from './src/BreadcrumbItem';
|
|
4
|
+
export type { BreadcrumbItemProps, BreadcrumbItemSlots } from './src/BreadcrumbItem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type SlotsType, type VNode } from 'vue';
|
|
2
2
|
export declare const breadcrumbItemProps: {
|
|
3
3
|
readonly separator: StringConstructor;
|
|
4
4
|
readonly href: StringConstructor;
|
|
@@ -9,6 +9,10 @@ export declare const breadcrumbItemProps: {
|
|
|
9
9
|
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
10
10
|
};
|
|
11
11
|
export type BreadcrumbItemProps = Partial<ExtractPropTypes<typeof breadcrumbItemProps>>;
|
|
12
|
+
export interface BreadcrumbItemSlots {
|
|
13
|
+
default?: () => VNode[];
|
|
14
|
+
separator?: () => VNode[];
|
|
15
|
+
}
|
|
12
16
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
13
17
|
readonly separator: StringConstructor;
|
|
14
18
|
readonly href: StringConstructor;
|
|
@@ -27,5 +31,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
27
31
|
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
28
32
|
}>> & Readonly<{}>, {
|
|
29
33
|
readonly clickable: boolean;
|
|
30
|
-
},
|
|
34
|
+
}, SlotsType<BreadcrumbItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
35
|
export default _default;
|
|
@@ -17,6 +17,7 @@ exports.breadcrumbItemProps = {
|
|
|
17
17
|
exports.default = (0, vue_1.defineComponent)({
|
|
18
18
|
name: 'BreadcrumbItem',
|
|
19
19
|
props: exports.breadcrumbItemProps,
|
|
20
|
+
slots: Object,
|
|
20
21
|
setup(props, { slots }) {
|
|
21
22
|
const NBreadcrumb = (0, vue_1.inject)(Breadcrumb_1.breadcrumbInjectionKey, null);
|
|
22
23
|
if (!NBreadcrumb) {
|
package/lib/button/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { buttonProps, default as NButton, XButton as NxButton } from './src/Button';
|
|
2
|
-
export type { ButtonProps } from './src/Button';
|
|
2
|
+
export type { ButtonProps, ButtonSlots } from './src/Button';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseWaveRef } from '../../_internal';
|
|
2
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
3
|
import type { Size, Type } from './interface';
|
|
4
|
-
import { type ButtonHTMLAttributes, type ExtractPropTypes, type PropType, type VNodeChild } from 'vue';
|
|
4
|
+
import { type ButtonHTMLAttributes, type ExtractPropTypes, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
5
5
|
export declare const buttonProps: {
|
|
6
6
|
readonly color: StringConstructor;
|
|
7
7
|
readonly textColor: StringConstructor;
|
|
@@ -666,6 +666,10 @@ export declare const buttonProps: {
|
|
|
666
666
|
}, any>>>;
|
|
667
667
|
};
|
|
668
668
|
export type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>;
|
|
669
|
+
export interface ButtonSlots {
|
|
670
|
+
default?: () => VNode[];
|
|
671
|
+
icon?: () => VNode[];
|
|
672
|
+
}
|
|
669
673
|
declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
670
674
|
readonly color: StringConstructor;
|
|
671
675
|
readonly textColor: StringConstructor;
|
|
@@ -2069,7 +2073,7 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
2069
2073
|
readonly iconPlacement: "left" | "right";
|
|
2070
2074
|
readonly attrType: "reset" | "submit" | "button";
|
|
2071
2075
|
readonly nativeFocusBehavior: boolean;
|
|
2072
|
-
},
|
|
2076
|
+
}, SlotsType<ButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2073
2077
|
type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
2074
2078
|
type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
|
|
2075
2079
|
type MergedProps = Partial<InternalButtonProps & NativeButtonProps>;
|
package/lib/button/src/Button.js
CHANGED
|
@@ -44,6 +44,7 @@ exports.buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
44
44
|
const Button = (0, vue_1.defineComponent)({
|
|
45
45
|
name: 'Button',
|
|
46
46
|
props: exports.buttonProps,
|
|
47
|
+
slots: Object,
|
|
47
48
|
setup(props) {
|
|
48
49
|
if (process.env.NODE_ENV !== 'production') {
|
|
49
50
|
(0, vue_1.watchEffect)(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import type { DateItem, OnPanelChange, OnUpdateValue } from './interface';
|
|
3
|
-
import { type PropType } from 'vue';
|
|
2
|
+
import type { CalendarDefaultSlotProps, CalendarHeaderSlotProps, DateItem, OnPanelChange, OnUpdateValue } from './interface';
|
|
3
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
export declare const calendarProps: {
|
|
5
5
|
readonly isDateDisabled: PropType<(date: number) => boolean | undefined>;
|
|
6
6
|
readonly value: NumberConstructor;
|
|
@@ -694,6 +694,10 @@ export declare const calendarProps: {
|
|
|
694
694
|
}>>>;
|
|
695
695
|
};
|
|
696
696
|
export type CalendarProps = ExtractPublicPropTypes<typeof calendarProps>;
|
|
697
|
+
export interface CalendarSlots {
|
|
698
|
+
default?: (props: CalendarDefaultSlotProps) => VNode[];
|
|
699
|
+
header?: (props: CalendarHeaderSlotProps) => VNode[];
|
|
700
|
+
}
|
|
697
701
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
698
702
|
readonly isDateDisabled: PropType<(date: number) => boolean | undefined>;
|
|
699
703
|
readonly value: NumberConstructor;
|
|
@@ -2413,5 +2417,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2413
2417
|
}>>>;
|
|
2414
2418
|
}>> & Readonly<{}>, {
|
|
2415
2419
|
readonly defaultValue: number | null;
|
|
2416
|
-
},
|
|
2420
|
+
}, SlotsType<CalendarSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2417
2421
|
export default _default;
|
|
@@ -23,6 +23,7 @@ exports.calendarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props
|
|
|
23
23
|
exports.default = (0, vue_1.defineComponent)({
|
|
24
24
|
name: 'Calendar',
|
|
25
25
|
props: exports.calendarProps,
|
|
26
|
+
slots: Object,
|
|
26
27
|
setup(props) {
|
|
27
28
|
var _a;
|
|
28
29
|
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
@@ -134,7 +135,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
134
135
|
const calendarMonth = (0, date_fns_1.getMonth)(monthTs) + 1;
|
|
135
136
|
return ((0, vue_1.h)("div", { class: [`${mergedClsPrefix}-calendar`, this.themeClass], style: cssVars },
|
|
136
137
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-calendar-header` },
|
|
137
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-calendar-header__title` }, (0, _utils_1.
|
|
138
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-calendar-header__title` }, (0, _utils_1.resolveSlotWithTypedProps)($slots.header, { year, month: calendarMonth }, () => {
|
|
138
139
|
const localeMonth = (0, date_fns_1.format)(monthTs, 'MMMM', { locale });
|
|
139
140
|
return [
|
|
140
141
|
monthBeforeYear
|
|
@@ -8,3 +8,12 @@ export type OnPanelChange = (info: {
|
|
|
8
8
|
year: number;
|
|
9
9
|
month: number;
|
|
10
10
|
}) => void;
|
|
11
|
+
export interface CalendarDefaultSlotProps {
|
|
12
|
+
year: number;
|
|
13
|
+
month: number;
|
|
14
|
+
date: number;
|
|
15
|
+
}
|
|
16
|
+
export interface CalendarHeaderSlotProps {
|
|
17
|
+
year: number;
|
|
18
|
+
month: number;
|
|
19
|
+
}
|
package/lib/card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { cardProps, default as NCard } from './src/Card';
|
|
2
|
-
export type { CardProps, CardSegmented } from './src/Card';
|
|
2
|
+
export type { CardProps, CardSegmented, CardSlots } from './src/Card';
|
package/lib/card/src/Card.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType, type VNodeChild } from 'vue';
|
|
2
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
3
3
|
export interface CardSegmented {
|
|
4
4
|
content?: boolean | 'soft';
|
|
5
5
|
footer?: boolean | 'soft';
|
|
@@ -192,6 +192,14 @@ export declare const cardProps: {
|
|
|
192
192
|
}, any>>>;
|
|
193
193
|
};
|
|
194
194
|
export type CardProps = ExtractPublicPropTypes<typeof cardProps>;
|
|
195
|
+
export interface CardSlots {
|
|
196
|
+
default?: () => VNode[];
|
|
197
|
+
cover?: () => VNode[];
|
|
198
|
+
header?: () => VNode[];
|
|
199
|
+
'header-extra'?: () => VNode[];
|
|
200
|
+
footer?: () => VNode[];
|
|
201
|
+
action?: () => VNode[];
|
|
202
|
+
}
|
|
195
203
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
196
204
|
title: PropType<string | (() => VNodeChild)>;
|
|
197
205
|
contentClass: StringConstructor;
|
|
@@ -575,5 +583,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
575
583
|
hoverable: boolean;
|
|
576
584
|
embedded: boolean;
|
|
577
585
|
segmented: boolean | CardSegmented;
|
|
578
|
-
},
|
|
586
|
+
}, SlotsType<CardSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
579
587
|
export default _default;
|
package/lib/card/src/Card.js
CHANGED
|
@@ -55,6 +55,7 @@ exports.cardProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), e
|
|
|
55
55
|
exports.default = (0, vue_1.defineComponent)({
|
|
56
56
|
name: 'Card',
|
|
57
57
|
props: exports.cardProps,
|
|
58
|
+
slots: Object,
|
|
58
59
|
setup(props) {
|
|
59
60
|
const handleCloseClick = () => {
|
|
60
61
|
const { onClose } = props;
|
package/lib/carousel/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { carouselProps, default as NCarousel } from './src/Carousel';
|
|
2
|
-
export type { CarouselProps } from './src/Carousel';
|
|
2
|
+
export type { CarouselProps, CarouselSlots } from './src/Carousel';
|
|
3
3
|
export { default as NCarouselItem } from './src/CarouselItem';
|
|
4
|
-
export type { CarouselInst } from './src/interface';
|
|
4
|
+
export type { CarouselArrowSlotProps, CarouselDotSlotProps, CarouselInst } from './src/interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CSSProperties, PropType, Ref, TransitionProps, VNode } from 'vue';
|
|
1
|
+
import type { CSSProperties, PropType, Ref, SlotsType, TransitionProps, VNode } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
import type { ArrowScopedSlotProps, DotScopedSlotProps, Size } from './interface';
|
|
3
|
+
import type { ArrowScopedSlotProps, CarouselArrowSlotProps, CarouselDotSlotProps, DotScopedSlotProps, Size } from './interface';
|
|
4
4
|
declare const transitionProperties: readonly ["transitionDuration", "transitionTimingFunction"];
|
|
5
5
|
type TransitionStyle = Partial<Pick<CSSProperties, (typeof transitionProperties)[number]>>;
|
|
6
6
|
export declare const carouselProps: {
|
|
@@ -97,6 +97,11 @@ export declare const carouselProps: {
|
|
|
97
97
|
}, any>>>;
|
|
98
98
|
};
|
|
99
99
|
export type CarouselProps = ExtractPublicPropTypes<typeof carouselProps>;
|
|
100
|
+
export interface CarouselSlots {
|
|
101
|
+
default?: () => VNode[];
|
|
102
|
+
arrow?: (props: CarouselArrowSlotProps) => VNode[];
|
|
103
|
+
dots?: (props: CarouselDotSlotProps) => VNode[];
|
|
104
|
+
}
|
|
100
105
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
101
106
|
defaultIndex: {
|
|
102
107
|
type: NumberConstructor;
|
|
@@ -343,5 +348,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
343
348
|
transitionStyle: Partial<Pick<CSSProperties, "transitionDuration" | "transitionTimingFunction">>;
|
|
344
349
|
touchable: boolean;
|
|
345
350
|
mousewheel: boolean;
|
|
346
|
-
},
|
|
351
|
+
}, SlotsType<CarouselSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
347
352
|
export default _default;
|
|
@@ -92,6 +92,7 @@ let globalDragging = false;
|
|
|
92
92
|
exports.default = (0, vue_1.defineComponent)({
|
|
93
93
|
name: 'Carousel',
|
|
94
94
|
props: exports.carouselProps,
|
|
95
|
+
slots: Object,
|
|
95
96
|
setup(props) {
|
|
96
97
|
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
97
98
|
// Dom
|
|
@@ -792,11 +793,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
792
793
|
}),
|
|
793
794
|
this.showDots
|
|
794
795
|
&& dotSlotProps.total > 1
|
|
795
|
-
&& (0, _utils_1.
|
|
796
|
+
&& (0, _utils_1.resolveSlotWithTypedProps)(dotsSlot, dotSlotProps, () => [
|
|
796
797
|
(0, vue_1.h)(CarouselDots_1.default, { key: dotType + dotPlacement, total: dotSlotProps.total, currentIndex: dotSlotProps.currentIndex, dotType: dotType, trigger: this.trigger, keyboard: this.keyboard })
|
|
797
798
|
]),
|
|
798
799
|
showArrow
|
|
799
|
-
&& (0, _utils_1.
|
|
800
|
+
&& (0, _utils_1.resolveSlotWithTypedProps)(arrowSlot, arrowSlotProps, () => [
|
|
800
801
|
(0, vue_1.h)(CarouselArrow_1.default, null)
|
|
801
802
|
])));
|
|
802
803
|
}
|
|
@@ -17,3 +17,15 @@ export interface Size {
|
|
|
17
17
|
width: number;
|
|
18
18
|
height: number;
|
|
19
19
|
}
|
|
20
|
+
export interface CarouselArrowSlotProps {
|
|
21
|
+
total: number;
|
|
22
|
+
currentIndex: number;
|
|
23
|
+
to: (index: number) => void;
|
|
24
|
+
prev: () => void;
|
|
25
|
+
next: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface CarouselDotSlotProps {
|
|
28
|
+
total: number;
|
|
29
|
+
currentIndex: number;
|
|
30
|
+
to: (index: number) => void;
|
|
31
|
+
}
|
package/lib/cascader/index.d.ts
CHANGED