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
package/lib/modal/src/Modal.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import
|
|
2
|
+
import type { CardSlots } from '../../card';
|
|
3
|
+
import type { DialogSlots } from '../../dialog';
|
|
4
|
+
import type { ModalDraggableOptions } from './interface';
|
|
5
|
+
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
6
|
export declare const modalProps: {
|
|
7
|
+
draggable: PropType<boolean | ModalDraggableOptions>;
|
|
4
8
|
onEsc: PropType<() => void>;
|
|
5
9
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
6
10
|
onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -58,7 +62,7 @@ export declare const modalProps: {
|
|
|
58
62
|
footerStyle: PropType<CSSProperties | string>;
|
|
59
63
|
embedded: BooleanConstructor;
|
|
60
64
|
segmented: {
|
|
61
|
-
readonly type: PropType<boolean | import("
|
|
65
|
+
readonly type: PropType<boolean | import("../../card").CardSegmented>;
|
|
62
66
|
readonly default: false;
|
|
63
67
|
};
|
|
64
68
|
size: {
|
|
@@ -988,7 +992,13 @@ export declare const modalProps: {
|
|
|
988
992
|
}>>>;
|
|
989
993
|
};
|
|
990
994
|
export type ModalProps = ExtractPublicPropTypes<typeof modalProps>;
|
|
995
|
+
export type ModalSlots = Omit<CardSlots & DialogSlots, 'default'> & {
|
|
996
|
+
default?: (props: {
|
|
997
|
+
draggableClass: string;
|
|
998
|
+
}) => VNode[];
|
|
999
|
+
};
|
|
991
1000
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1001
|
+
draggable: PropType<boolean | ModalDraggableOptions>;
|
|
992
1002
|
onEsc: PropType<() => void>;
|
|
993
1003
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
994
1004
|
onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -1046,7 +1056,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1046
1056
|
footerStyle: PropType<CSSProperties | string>;
|
|
1047
1057
|
embedded: BooleanConstructor;
|
|
1048
1058
|
segmented: {
|
|
1049
|
-
readonly type: PropType<boolean | import("
|
|
1059
|
+
readonly type: PropType<boolean | import("../../card").CardSegmented>;
|
|
1050
1060
|
readonly default: false;
|
|
1051
1061
|
};
|
|
1052
1062
|
size: {
|
|
@@ -1997,6 +2007,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1997
2007
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
1998
2008
|
onRender: (() => void) | undefined;
|
|
1999
2009
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2010
|
+
draggable: PropType<boolean | ModalDraggableOptions>;
|
|
2000
2011
|
onEsc: PropType<() => void>;
|
|
2001
2012
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
2002
2013
|
onUpdateShow: PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -2054,7 +2065,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2054
2065
|
footerStyle: PropType<CSSProperties | string>;
|
|
2055
2066
|
embedded: BooleanConstructor;
|
|
2056
2067
|
segmented: {
|
|
2057
|
-
readonly type: PropType<boolean | import("
|
|
2068
|
+
readonly type: PropType<boolean | import("../../card").CardSegmented>;
|
|
2058
2069
|
readonly default: false;
|
|
2059
2070
|
};
|
|
2060
2071
|
size: {
|
|
@@ -2996,14 +3007,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2996
3007
|
displayDirective: "show" | "if";
|
|
2997
3008
|
hoverable: boolean;
|
|
2998
3009
|
embedded: boolean;
|
|
2999
|
-
segmented: boolean | import("
|
|
3000
|
-
blockScroll: boolean;
|
|
3001
|
-
trapFocus: boolean;
|
|
3010
|
+
segmented: boolean | import("../../card").CardSegmented;
|
|
3002
3011
|
internalDialog: boolean;
|
|
3003
3012
|
internalModal: boolean;
|
|
3004
3013
|
internalAppear: boolean | undefined;
|
|
3005
3014
|
unstableShowMask: boolean;
|
|
3006
3015
|
maskClosable: boolean;
|
|
3016
|
+
trapFocus: boolean;
|
|
3007
3017
|
closeOnEsc: boolean;
|
|
3008
|
-
|
|
3018
|
+
blockScroll: boolean;
|
|
3019
|
+
}, SlotsType<ModalSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3009
3020
|
export default _default;
|
package/lib/modal/src/Modal.js
CHANGED
|
@@ -38,7 +38,7 @@ exports.modalProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
38
38
|
}, closeOnEsc: {
|
|
39
39
|
type: Boolean,
|
|
40
40
|
default: true
|
|
41
|
-
}, blockScroll: { type: Boolean, default: true } }), presetProps_1.presetProps), {
|
|
41
|
+
}, blockScroll: { type: Boolean, default: true } }), presetProps_1.presetProps), { draggable: [Boolean, Object],
|
|
42
42
|
// events
|
|
43
43
|
onEsc: Function, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onAfterEnter: Function, onBeforeLeave: Function, onAfterLeave: Function, onClose: Function, onPositiveClick: Function, onNegativeClick: Function, onMaskClick: Function,
|
|
44
44
|
// private
|
|
@@ -52,6 +52,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
52
52
|
name: 'Modal',
|
|
53
53
|
inheritAttrs: false,
|
|
54
54
|
props: exports.modalProps,
|
|
55
|
+
slots: Object,
|
|
55
56
|
setup(props) {
|
|
56
57
|
if (process.env.NODE_ENV !== 'production') {
|
|
57
58
|
if (props.onHide) {
|
|
@@ -233,7 +234,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
233
234
|
this.themeClass,
|
|
234
235
|
this.namespace
|
|
235
236
|
], style: this.cssVars },
|
|
236
|
-
(0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: "bodyWrapper", displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus, blockScroll: this.blockScroll }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: unstableShowMask ? undefined : this.handleClickoutside, renderMask: unstableShowMask
|
|
237
|
+
(0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: "bodyWrapper", displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus, draggable: this.draggable, blockScroll: this.blockScroll }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: unstableShowMask ? undefined : this.handleClickoutside, renderMask: unstableShowMask
|
|
237
238
|
? () => {
|
|
238
239
|
var _a;
|
|
239
240
|
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", key: "mask", appear: (_a = this.internalAppear) !== null && _a !== void 0 ? _a : this.isMounted }, {
|
|
@@ -8,6 +8,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
8
8
|
type: PropType<(key: string) => void>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
+
draggable: PropType<boolean | import("./interface").ModalDraggableOptions>;
|
|
11
12
|
onEsc: PropType<() => void>;
|
|
12
13
|
'onUpdate:show': PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
13
14
|
onUpdateShow: PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -1012,6 +1013,7 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
1012
1013
|
type: PropType<(key: string) => void>;
|
|
1013
1014
|
required: true;
|
|
1014
1015
|
};
|
|
1016
|
+
draggable: PropType<boolean | import("./interface").ModalDraggableOptions>;
|
|
1015
1017
|
onEsc: PropType<() => void>;
|
|
1016
1018
|
'onUpdate:show': PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
1017
1019
|
onUpdateShow: PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -2012,12 +2014,12 @@ export declare const NModalEnvironment: import("vue").DefineComponent<import("vu
|
|
|
2012
2014
|
hoverable: boolean;
|
|
2013
2015
|
embedded: boolean;
|
|
2014
2016
|
segmented: boolean | import("../..").CardSegmented;
|
|
2015
|
-
blockScroll: boolean;
|
|
2016
|
-
trapFocus: boolean;
|
|
2017
2017
|
internalDialog: boolean;
|
|
2018
2018
|
internalModal: boolean;
|
|
2019
2019
|
internalAppear: boolean | undefined;
|
|
2020
2020
|
unstableShowMask: boolean;
|
|
2021
2021
|
maskClosable: boolean;
|
|
2022
|
+
trapFocus: boolean;
|
|
2022
2023
|
closeOnEsc: boolean;
|
|
2024
|
+
blockScroll: boolean;
|
|
2023
2025
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -14,8 +14,6 @@ exports.NModalProvider = (0, vue_1.defineComponent)({
|
|
|
14
14
|
name: 'ModalProvider',
|
|
15
15
|
props: exports.modalProviderProps,
|
|
16
16
|
setup() {
|
|
17
|
-
const clickedRef = (0, vooks_1.useClicked)(64);
|
|
18
|
-
const clickedPositionRef = (0, vooks_1.useClickPosition)();
|
|
19
17
|
const modalListRef = (0, vue_1.ref)([]);
|
|
20
18
|
const modalInstRefs = {};
|
|
21
19
|
function create(options = {}) {
|
|
@@ -46,10 +44,6 @@ exports.NModalProvider = (0, vue_1.defineComponent)({
|
|
|
46
44
|
clickedPositionRef: (0, vooks_1.useClickPosition)()
|
|
47
45
|
});
|
|
48
46
|
(0, vue_1.provide)(context_1.modalReactiveListInjectionKey, modalListRef);
|
|
49
|
-
(0, vue_1.provide)(context_1.modalProviderInjectionKey, {
|
|
50
|
-
clickedRef,
|
|
51
|
-
clickedPositionRef
|
|
52
|
-
});
|
|
53
47
|
return Object.assign(Object.assign({}, api), { modalList: modalListRef, modalInstRefs,
|
|
54
48
|
handleAfterLeave });
|
|
55
49
|
},
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { ModalDraggableOptions } from './interface';
|
|
1
3
|
import type { ModalApiInjection, ModalReactive } from './ModalProvider';
|
|
2
|
-
import { type Ref } from 'vue';
|
|
3
4
|
export declare function useModal(): ModalApiInjection;
|
|
4
5
|
export declare function useModalReactiveList(): Ref<readonly ModalReactive[]>;
|
|
6
|
+
export declare const DRAGGABLE_CLASS = "n-draggable";
|
|
7
|
+
interface UseDragModalOptions {
|
|
8
|
+
onEnd: (el: HTMLElement) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useDragModal(draggablePropsRef: Ref<boolean | ModalDraggableOptions>, options: UseDragModalOptions): {
|
|
11
|
+
stopDrag: () => void;
|
|
12
|
+
startDrag: (modal: HTMLElement) => void;
|
|
13
|
+
draggableRef: import("vue").ComputedRef<boolean>;
|
|
14
|
+
draggableClassRef: import("vue").ComputedRef<"" | "n-draggable">;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DRAGGABLE_CLASS = void 0;
|
|
3
4
|
exports.useModal = useModal;
|
|
4
5
|
exports.useModalReactiveList = useModalReactiveList;
|
|
6
|
+
exports.useDragModal = useDragModal;
|
|
7
|
+
const evtd_1 = require("evtd");
|
|
5
8
|
const vue_1 = require("vue");
|
|
6
9
|
const _utils_1 = require("../../_utils");
|
|
7
10
|
const context_1 = require("./context");
|
|
@@ -19,3 +22,100 @@ function useModalReactiveList() {
|
|
|
19
22
|
}
|
|
20
23
|
return modalReactiveList;
|
|
21
24
|
}
|
|
25
|
+
exports.DRAGGABLE_CLASS = 'n-draggable';
|
|
26
|
+
function useDragModal(draggablePropsRef, options) {
|
|
27
|
+
let cleanup;
|
|
28
|
+
const draggableRef = (0, vue_1.computed)(() => {
|
|
29
|
+
return draggablePropsRef.value !== false;
|
|
30
|
+
});
|
|
31
|
+
const draggableClassRef = (0, vue_1.computed)(() => {
|
|
32
|
+
return draggableRef.value ? exports.DRAGGABLE_CLASS : '';
|
|
33
|
+
});
|
|
34
|
+
const boundsToWindowRef = (0, vue_1.computed)(() => {
|
|
35
|
+
const draggableProps = draggablePropsRef.value;
|
|
36
|
+
if (draggableProps === true || draggableProps === false) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
else if (draggableProps) {
|
|
40
|
+
return draggableProps.bounds !== 'none';
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
function startDrag(modal) {
|
|
47
|
+
const header = modal.querySelector(`.${exports.DRAGGABLE_CLASS}`);
|
|
48
|
+
if (!header || !draggableClassRef.value) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
let maxMoveX = 0;
|
|
52
|
+
let minMoveX = 0;
|
|
53
|
+
let maxMoveY = 0;
|
|
54
|
+
let minMoveY = 0;
|
|
55
|
+
let prevMoveY = 0;
|
|
56
|
+
let prevMoveX = 0;
|
|
57
|
+
let mousedownEvent;
|
|
58
|
+
function handleMouseDown(event) {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
mousedownEvent = event;
|
|
61
|
+
const { x, y, right, bottom } = modal.getBoundingClientRect();
|
|
62
|
+
minMoveX = x;
|
|
63
|
+
minMoveY = y;
|
|
64
|
+
maxMoveX = window.innerWidth - right;
|
|
65
|
+
maxMoveY = window.innerHeight - bottom;
|
|
66
|
+
const { left, top } = modal.style;
|
|
67
|
+
prevMoveY = +top.slice(0, -2);
|
|
68
|
+
prevMoveX = +left.slice(0, -2);
|
|
69
|
+
}
|
|
70
|
+
function handleMouseMove(event) {
|
|
71
|
+
if (!mousedownEvent)
|
|
72
|
+
return;
|
|
73
|
+
const { clientX: downX, clientY: downY } = mousedownEvent;
|
|
74
|
+
let moveX = event.clientX - downX;
|
|
75
|
+
let moveY = event.clientY - downY;
|
|
76
|
+
if (boundsToWindowRef.value) {
|
|
77
|
+
if (moveX > maxMoveX) {
|
|
78
|
+
moveX = maxMoveX;
|
|
79
|
+
}
|
|
80
|
+
else if (-moveX > minMoveX) {
|
|
81
|
+
moveX = -minMoveX;
|
|
82
|
+
}
|
|
83
|
+
if (moveY > maxMoveY) {
|
|
84
|
+
moveY = maxMoveY;
|
|
85
|
+
}
|
|
86
|
+
else if (-moveY > minMoveY) {
|
|
87
|
+
moveY = -minMoveY;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const x = moveX + prevMoveX;
|
|
91
|
+
const y = moveY + prevMoveY;
|
|
92
|
+
modal.style.top = `${y}px`;
|
|
93
|
+
modal.style.left = `${x}px`;
|
|
94
|
+
}
|
|
95
|
+
function handleMouseUp() {
|
|
96
|
+
mousedownEvent = undefined;
|
|
97
|
+
options.onEnd(modal);
|
|
98
|
+
}
|
|
99
|
+
(0, evtd_1.on)('mousedown', header, handleMouseDown);
|
|
100
|
+
(0, evtd_1.on)('mousemove', window, handleMouseMove);
|
|
101
|
+
(0, evtd_1.on)('mouseup', window, handleMouseUp);
|
|
102
|
+
cleanup = () => {
|
|
103
|
+
(0, evtd_1.off)('mousedown', header, handleMouseDown);
|
|
104
|
+
(0, evtd_1.on)('mousemove', window, handleMouseMove);
|
|
105
|
+
(0, evtd_1.on)('mouseup', window, handleMouseUp);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function stopDrag() {
|
|
109
|
+
if (cleanup) {
|
|
110
|
+
cleanup();
|
|
111
|
+
cleanup = undefined;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
(0, vue_1.onUnmounted)(stopDrag);
|
|
115
|
+
return {
|
|
116
|
+
stopDrag,
|
|
117
|
+
startDrag,
|
|
118
|
+
draggableRef,
|
|
119
|
+
draggableClassRef
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -23,3 +23,9 @@ export interface ModalInjection {
|
|
|
23
23
|
transformOriginRef: Ref<'mouse' | 'center'>;
|
|
24
24
|
}
|
|
25
25
|
export declare const modalInjectionKey: import("vue").InjectionKey<ModalInjection>;
|
|
26
|
+
export interface ModalDraggableOptions {
|
|
27
|
+
/**
|
|
28
|
+
* If set to 'none', the modal's position will not be bounded to the window.
|
|
29
|
+
*/
|
|
30
|
+
bounds?: 'none';
|
|
31
|
+
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
const fade_in_scale_up_cssr_1 = require("../../../_styles/transitions/fade-in-scale-up.cssr");
|
|
7
7
|
const fade_in_cssr_1 = require("../../../_styles/transitions/fade-in.cssr");
|
|
8
8
|
const cssr_1 = require("../../../_utils/cssr");
|
|
9
|
+
const composables_1 = require("../composables");
|
|
9
10
|
// vars:
|
|
10
11
|
// --n-bezier-ease-out
|
|
11
12
|
// --n-box-shadow
|
|
@@ -50,4 +51,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('modal-container', `
|
|
|
50
51
|
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)({
|
|
51
52
|
duration: '.25s',
|
|
52
53
|
enterScale: '.5'
|
|
53
|
-
})
|
|
54
|
+
}), (0, cssr_1.c)(`.${composables_1.DRAGGABLE_CLASS}`, `
|
|
55
|
+
cursor: move;
|
|
56
|
+
user-select: none;
|
|
57
|
+
`)])]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NPageHeader, pageHeaderProps } from './src/PageHeader';
|
|
2
|
-
export type { PageHeaderProps } from './src/PageHeader';
|
|
2
|
+
export type { PageHeaderProps, PageHeaderSlots } from './src/PageHeader';
|
|
@@ -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 pageHeaderProps: {
|
|
4
4
|
title: StringConstructor;
|
|
5
5
|
subtitle: StringConstructor;
|
|
@@ -40,6 +40,16 @@ export declare const pageHeaderProps: {
|
|
|
40
40
|
}, unknown>>>;
|
|
41
41
|
};
|
|
42
42
|
export type PageHeaderProps = ExtractPublicPropTypes<typeof pageHeaderProps>;
|
|
43
|
+
export interface PageHeaderSlots {
|
|
44
|
+
avatar?: () => VNode[];
|
|
45
|
+
header?: () => VNode[];
|
|
46
|
+
default?: () => VNode[];
|
|
47
|
+
extra?: () => VNode[];
|
|
48
|
+
footer?: () => VNode[];
|
|
49
|
+
subtitle?: () => VNode[];
|
|
50
|
+
title?: () => VNode[];
|
|
51
|
+
back?: () => VNode[];
|
|
52
|
+
}
|
|
43
53
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
44
54
|
title: StringConstructor;
|
|
45
55
|
subtitle: StringConstructor;
|
|
@@ -133,5 +143,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
133
143
|
titleFontSize: string;
|
|
134
144
|
backSize: string;
|
|
135
145
|
}, unknown>>>;
|
|
136
|
-
}>> & Readonly<{}>, {},
|
|
146
|
+
}>> & Readonly<{}>, {}, SlotsType<PageHeaderSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
137
147
|
export default _default;
|
|
@@ -15,6 +15,7 @@ exports.pageHeaderProps = Object.assign(Object.assign({}, _mixins_1.useTheme.pro
|
|
|
15
15
|
exports.default = (0, vue_1.defineComponent)({
|
|
16
16
|
name: 'PageHeader',
|
|
17
17
|
props: exports.pageHeaderProps,
|
|
18
|
+
slots: Object,
|
|
18
19
|
setup(props) {
|
|
19
20
|
const { mergedClsPrefixRef, mergedRtlRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
20
21
|
const themeRef = (0, _mixins_1.useTheme)('PageHeader', '-page-header', index_cssr_1.default, light_1.pageHeaderLight, props, mergedClsPrefixRef);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { PaginationInfo, PaginationRenderLabel, PaginationSizeOption } from './src/interface';
|
|
2
2
|
export { default as NPagination, paginationProps } from './src/Pagination';
|
|
3
|
-
export type { PaginationProps } from './src/Pagination';
|
|
3
|
+
export type { PaginationProps, PaginationSlots } from './src/Pagination';
|
|
@@ -2,9 +2,9 @@ import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
|
2
2
|
import type { Size as InputSize } from '../../input/src/interface';
|
|
3
3
|
import type { SelectProps } from '../../select';
|
|
4
4
|
import type { Size as SelectSize } from '../../select/src/interface';
|
|
5
|
-
import type { PaginationRenderLabel, PaginationSizeOption, RenderGoto, RenderNext, RenderPrefix, RenderPrev, RenderSuffix, Size } from './interface';
|
|
5
|
+
import type { PaginationInfo, PaginationLabelInfo, PaginationRenderLabel, PaginationSizeOption, RenderGoto, RenderNext, RenderPrefix, RenderPrev, RenderSuffix, Size } from './interface';
|
|
6
6
|
import type { PageItem } from './utils';
|
|
7
|
-
import { type PropType } from 'vue';
|
|
7
|
+
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
8
8
|
export declare const paginationProps: {
|
|
9
9
|
readonly simple: BooleanConstructor;
|
|
10
10
|
readonly page: NumberConstructor;
|
|
@@ -1147,6 +1147,15 @@ export declare const paginationProps: {
|
|
|
1147
1147
|
}>>>;
|
|
1148
1148
|
};
|
|
1149
1149
|
export type PaginationProps = ExtractPublicPropTypes<typeof paginationProps>;
|
|
1150
|
+
export interface PaginationSlots {
|
|
1151
|
+
default?: () => VNode[];
|
|
1152
|
+
goto?: () => VNode[];
|
|
1153
|
+
label?: (props: PaginationLabelInfo) => VNode[];
|
|
1154
|
+
next?: (props: PaginationInfo) => VNode;
|
|
1155
|
+
prev?: (props: PaginationInfo) => VNode;
|
|
1156
|
+
prefix?: (props: PaginationInfo) => VNode;
|
|
1157
|
+
suffix?: (props: PaginationInfo) => VNode;
|
|
1158
|
+
}
|
|
1150
1159
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1151
1160
|
readonly simple: BooleanConstructor;
|
|
1152
1161
|
readonly page: NumberConstructor;
|
|
@@ -4122,5 +4131,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4122
4131
|
readonly pageSlot: number;
|
|
4123
4132
|
readonly displayOrder: ("pages" | "size-picker" | "quick-jumper")[];
|
|
4124
4133
|
readonly showQuickJumpDropdown: boolean;
|
|
4125
|
-
},
|
|
4134
|
+
}, SlotsType<PaginationSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4126
4135
|
export default _default;
|
|
@@ -45,6 +45,7 @@ exports.paginationProps = Object.assign(Object.assign({}, _mixins_1.useTheme.pro
|
|
|
45
45
|
exports.default = (0, vue_1.defineComponent)({
|
|
46
46
|
name: 'Pagination',
|
|
47
47
|
props: exports.paginationProps,
|
|
48
|
+
slots: Object,
|
|
48
49
|
setup(props) {
|
|
49
50
|
if (process.env.NODE_ENV !== 'production') {
|
|
50
51
|
(0, vue_1.watchEffect)(() => {
|
|
@@ -370,8 +371,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
370
371
|
// it's ok to expand all prop here since no slots' deps
|
|
371
372
|
const { $slots, mergedClsPrefix, disabled, cssVars, mergedPage, mergedPageCount, pageItems, showSizePicker, showQuickJumper, mergedTheme, locale, inputSize, selectSize, mergedPageSize, pageSizeOptions, jumperValue, simple, prev, next, prefix, suffix, label, goto, handleJumperInput, handleSizePickerChange, handleBackwardClick, handlePageItemClick, handleForwardClick, handleQuickJumperChange, onRender } = this;
|
|
372
373
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
373
|
-
const renderPrefix =
|
|
374
|
-
const renderSuffix =
|
|
374
|
+
const renderPrefix = prefix || $slots.prefix;
|
|
375
|
+
const renderSuffix = suffix || $slots.suffix;
|
|
375
376
|
const renderPrev = prev || $slots.prev;
|
|
376
377
|
const renderNext = next || $slots.next;
|
|
377
378
|
const renderLabel = label || $slots.label;
|
|
@@ -2,7 +2,7 @@ import type { ExtractPublicPropTypes } from '../../_utils';
|
|
|
2
2
|
import type { ButtonProps } from '../../button';
|
|
3
3
|
import type { PopoverTrigger } from '../../popover';
|
|
4
4
|
import type { InternalPopoverInst } from '../../popover/src/interface';
|
|
5
|
-
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
5
|
+
import { type ExtractPropTypes, type PropType, type SlotsType, type VNode } from 'vue';
|
|
6
6
|
export declare const popconfirmProps: {
|
|
7
7
|
positiveText: PropType<string | null>;
|
|
8
8
|
negativeText: PropType<string | null>;
|
|
@@ -779,6 +779,12 @@ export declare const popconfirmProps: {
|
|
|
779
779
|
};
|
|
780
780
|
export type PopconfirmProps = ExtractPublicPropTypes<typeof popconfirmProps>;
|
|
781
781
|
export type PopconfirmSetupProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
782
|
+
export interface PopconfirmSlots {
|
|
783
|
+
action?: () => VNode[];
|
|
784
|
+
default?: () => VNode[];
|
|
785
|
+
icon?: () => VNode[];
|
|
786
|
+
trigger?: () => VNode[];
|
|
787
|
+
}
|
|
782
788
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
783
789
|
positiveText: PropType<string | null>;
|
|
784
790
|
negativeText: PropType<string | null>;
|
|
@@ -2605,5 +2611,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
2605
2611
|
internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
|
|
2606
2612
|
internalExtraClass: string[];
|
|
2607
2613
|
arrow: boolean | undefined;
|
|
2608
|
-
},
|
|
2614
|
+
}, SlotsType<PopconfirmSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2609
2615
|
export default _default;
|
|
@@ -46,6 +46,7 @@ exports.popconfirmProps = Object.assign(Object.assign(Object.assign({}, _mixins_
|
|
|
46
46
|
exports.default = (0, vue_1.defineComponent)({
|
|
47
47
|
name: 'Popconfirm',
|
|
48
48
|
props: exports.popconfirmProps,
|
|
49
|
+
slots: Object,
|
|
49
50
|
__popover__: true,
|
|
50
51
|
setup(props) {
|
|
51
52
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)();
|
|
@@ -108,7 +109,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
108
109
|
internalExtraClass: ['popconfirm'],
|
|
109
110
|
ref: 'popoverInstRef'
|
|
110
111
|
}), {
|
|
111
|
-
trigger: slots.
|
|
112
|
+
trigger: slots.trigger,
|
|
112
113
|
default: () => {
|
|
113
114
|
const panelProps = (0, _utils_1.keep)(props, PopconfirmPanel_1.panelPropKeys);
|
|
114
115
|
return (0, vue_1.h)(PopconfirmPanel_1.default, Object.assign(Object.assign({}, panelProps), { onPositiveClick: this.handlePositiveClick, onNegativeClick: this.handleNegativeClick }), slots);
|
package/lib/popover/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { PopoverInst, PopoverTrigger } from './src/interface';
|
|
2
2
|
export { default as NPopover, popoverProps } from './src/Popover';
|
|
3
|
-
export type { PopoverProps } from './src/Popover';
|
|
3
|
+
export type { PopoverProps, PopoverSlots } from './src/Popover';
|
|
4
4
|
export type { FollowerPlacement as PopoverPlacement } from 'vueuc';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractInternalPropTypes, ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
2
|
import type { InternalRenderBody, PopoverTrigger } from './interface';
|
|
3
|
-
import { type ComputedRef, type CSSProperties, type PropType, type Ref } from 'vue';
|
|
3
|
+
import { type ComputedRef, type CSSProperties, type PropType, type Ref, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
import { type BinderInst, type FollowerPlacement } from 'vueuc';
|
|
5
5
|
export interface TriggerEventHandlers {
|
|
6
6
|
onClick: (e: MouseEvent) => void;
|
|
@@ -257,6 +257,12 @@ export declare const popoverProps: {
|
|
|
257
257
|
};
|
|
258
258
|
export type PopoverProps = ExtractPublicPropTypes<typeof popoverBaseProps>;
|
|
259
259
|
export type PopoverInternalProps = ExtractInternalPropTypes<typeof popoverProps>;
|
|
260
|
+
export interface PopoverSlots {
|
|
261
|
+
trigger?: () => VNode[];
|
|
262
|
+
footer?: () => VNode[];
|
|
263
|
+
header?: () => VNode[];
|
|
264
|
+
default?: () => VNode[];
|
|
265
|
+
}
|
|
260
266
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
261
267
|
internalOnAfterLeave: PropType<() => void>;
|
|
262
268
|
internalRenderBody: PropType<InternalRenderBody>;
|
|
@@ -570,5 +576,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
570
576
|
internalInheritedEventHandlers: TriggerEventHandlers[];
|
|
571
577
|
internalExtraClass: string[];
|
|
572
578
|
arrow: boolean | undefined;
|
|
573
|
-
},
|
|
579
|
+
}, SlotsType<PopoverSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
574
580
|
export default _default;
|
|
@@ -157,6 +157,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
157
157
|
name: 'Popover',
|
|
158
158
|
inheritAttrs: false,
|
|
159
159
|
props: exports.popoverProps,
|
|
160
|
+
slots: Object,
|
|
160
161
|
__popover__: true,
|
|
161
162
|
setup(props) {
|
|
162
163
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -396,12 +397,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
396
397
|
let triggerVNode;
|
|
397
398
|
let popoverInside = false;
|
|
398
399
|
if (!positionManually) {
|
|
399
|
-
|
|
400
|
-
triggerVNode = (0, _utils_1.getFirstSlotVNode)(slots, 'activator');
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
triggerVNode = (0, _utils_1.getFirstSlotVNode)(slots, 'trigger');
|
|
404
|
-
}
|
|
400
|
+
triggerVNode = (0, _utils_1.getFirstSlotVNode)(slots, 'trigger');
|
|
405
401
|
if (triggerVNode) {
|
|
406
402
|
triggerVNode = (0, vue_1.cloneVNode)(triggerVNode);
|
|
407
403
|
triggerVNode
|
package/lib/popselect/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
import type { PopoverInst, PopoverTrigger } from '../../popover';
|
|
3
|
-
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
3
|
+
import { type ExtractPropTypes, type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
export declare const popselectProps: {
|
|
5
5
|
multiple: BooleanConstructor;
|
|
6
6
|
value: {
|
|
@@ -368,6 +368,12 @@ export declare const popselectProps: {
|
|
|
368
368
|
};
|
|
369
369
|
export type PopselectSetupProps = ExtractPropTypes<typeof popselectProps>;
|
|
370
370
|
export type PopselectProps = ExtractPublicPropTypes<typeof popselectProps>;
|
|
371
|
+
export interface PopselectSlots {
|
|
372
|
+
default?: () => VNode[];
|
|
373
|
+
header?: () => VNode[];
|
|
374
|
+
action?: () => VNode[];
|
|
375
|
+
empty?: () => VNode[];
|
|
376
|
+
}
|
|
371
377
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
372
378
|
multiple: BooleanConstructor;
|
|
373
379
|
value: {
|
|
@@ -1263,5 +1269,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1263
1269
|
internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
|
|
1264
1270
|
internalExtraClass: string[];
|
|
1265
1271
|
cancelable: boolean;
|
|
1266
|
-
},
|
|
1272
|
+
}, SlotsType<PopselectSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1267
1273
|
export default _default;
|
|
@@ -39,6 +39,7 @@ exports.popselectProps = Object.assign(Object.assign(Object.assign(Object.assign
|
|
|
39
39
|
exports.default = (0, vue_1.defineComponent)({
|
|
40
40
|
name: 'Popselect',
|
|
41
41
|
props: exports.popselectProps,
|
|
42
|
+
slots: Object,
|
|
42
43
|
inheritAttrs: false,
|
|
43
44
|
__popover__: true,
|
|
44
45
|
setup(props) {
|
|
@@ -85,8 +85,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
85
|
default: number;
|
|
86
86
|
};
|
|
87
87
|
}>> & Readonly<{}>, {
|
|
88
|
+
gapOffsetDegree: number;
|
|
88
89
|
percentage: number;
|
|
89
90
|
offsetDegree: number;
|
|
90
|
-
gapOffsetDegree: number;
|
|
91
91
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
92
|
export default _default;
|
|
@@ -77,7 +77,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
77
|
}>> & Readonly<{}>, {
|
|
78
78
|
railColor: string[];
|
|
79
79
|
fillColor: string[] | ProgressGradient[];
|
|
80
|
-
percentage: number[];
|
|
81
80
|
railStyle: (string | CSSProperties)[];
|
|
81
|
+
percentage: number[];
|
|
82
82
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
export default _default;
|
|
@@ -385,10 +385,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
385
385
|
readonly strokeWidth: number;
|
|
386
386
|
readonly unit: string;
|
|
387
387
|
readonly processing: boolean;
|
|
388
|
-
readonly showIndicator: boolean;
|
|
389
388
|
readonly viewBoxWidth: number;
|
|
389
|
+
readonly showIndicator: boolean;
|
|
390
|
+
readonly indicatorPosition: "inside" | "outside";
|
|
390
391
|
readonly indicatorPlacement: "inside" | "outside";
|
|
391
392
|
readonly circleGap: number;
|
|
392
|
-
readonly indicatorPosition: "inside" | "outside";
|
|
393
393
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
394
394
|
export default _default;
|
package/lib/result/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as NResult, resultProps } from './src/Result';
|
|
2
|
-
export type { ResultProps } from './src/Result';
|
|
2
|
+
export type { ResultProps, ResultSlots } from './src/Result';
|