naive-ui 2.43.2 → 2.44.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/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/index.js +1001 -446
- package/dist/index.mjs +1001 -446
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/index.d.ts +1 -1
- package/es/_internal/loading/index.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +26 -18
- package/es/_internal/loading/src/Loading.mjs +9 -9
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/es/_internal/scrollbar/src/Scrollbar.mjs +6 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/es/_internal/select-menu/src/SelectMenu.mjs +19 -9
- package/es/_mixins/use-form-item.d.ts +1 -2
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +9 -4
- package/es/auto-complete/src/AutoComplete.mjs +21 -3
- package/es/auto-complete/src/public-types.d.ts +1 -0
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/es/breadcrumb/src/BreadcrumbItem.mjs +5 -1
- package/es/button/index.d.ts +1 -0
- package/es/button/src/Button.d.ts +11 -8
- package/es/button/src/Button.mjs +14 -11
- package/es/button/src/public-types.d.ts +4 -0
- package/es/button-group/src/ButtonGroup.d.ts +5 -15
- package/es/button-group/src/ButtonGroup.mjs +1 -4
- package/es/card/index.d.ts +1 -0
- package/es/card/src/Card.d.ts +11 -18
- package/es/card/src/Card.mjs +25 -17
- package/es/card/src/public-types.d.ts +1 -0
- package/es/card/src/public-types.mjs +1 -0
- package/es/card/src/styles/index.cssr.mjs +44 -21
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/src/Cascader.d.ts +12 -5
- package/es/cascader/src/Cascader.mjs +22 -2
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderMenu.mjs +16 -5
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.mjs +4 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.mjs +5 -2
- package/es/cascader/src/interface.d.ts +4 -0
- package/es/cascader/src/public-types.d.ts +3 -0
- package/es/cascader/src/public-types.mjs +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +4 -3
- package/es/checkbox/src/Checkbox.mjs +5 -1
- package/es/checkbox/src/public-types.d.ts +1 -0
- package/es/checkbox/src/public-types.mjs +1 -0
- package/es/color-picker/index.d.ts +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +11 -5
- package/es/color-picker/src/ColorPicker.mjs +56 -23
- package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
- package/es/color-picker/src/public-types.d.ts +1 -0
- package/es/color-picker/src/public-types.mjs +1 -0
- package/es/color-picker/src/styles/index.cssr.mjs +11 -14
- package/es/config-provider/src/internal-interface.d.ts +127 -5
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.mjs +1 -2
- package/es/data-table/src/DataTable.d.ts +8 -22
- package/es/data-table/src/DataTable.mjs +30 -20
- package/es/data-table/src/MainTable.d.ts +1 -0
- package/es/data-table/src/MainTable.mjs +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +4 -3
- package/es/data-table/src/TableParts/Body.mjs +46 -54
- package/es/data-table/src/interface.d.ts +5 -10
- package/es/data-table/src/interface.mjs +2 -8
- package/{lib/data-table/src/publicTypes.d.ts → es/data-table/src/public-types.d.ts} +3 -0
- package/es/data-table/src/public-types.mjs +1 -0
- package/es/data-table/src/use-scroll.d.ts +5 -1
- package/es/data-table/src/use-scroll.mjs +16 -4
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +10 -3
- package/es/date-picker/src/DatePicker.mjs +23 -6
- package/es/date-picker/src/panel/date.d.ts +10 -0
- package/es/date-picker/src/panel/date.mjs +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +10 -0
- package/es/date-picker/src/panel/daterange.mjs +4 -0
- package/es/date-picker/src/panel/datetime.d.ts +10 -0
- package/es/date-picker/src/panel/datetime.mjs +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/es/date-picker/src/panel/datetimerange.mjs +4 -0
- package/es/date-picker/src/panel/month.d.ts +10 -0
- package/es/date-picker/src/panel/month.mjs +6 -0
- package/es/date-picker/src/panel/monthrange.d.ts +10 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/es/date-picker/src/panel/panelHeader.mjs +21 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.mjs +4 -0
- package/es/date-picker/src/props.d.ts +4 -1
- package/es/date-picker/src/props.mjs +2 -0
- package/es/date-picker/src/public-types.d.ts +1 -0
- package/es/descriptions/index.d.ts +1 -0
- package/es/descriptions/src/Descriptions.d.ts +5 -13
- package/es/descriptions/src/Descriptions.mjs +16 -14
- package/es/descriptions/src/public-types.d.ts +1 -0
- package/es/descriptions/src/public-types.mjs +1 -0
- package/es/dialog/src/DialogProvider.d.ts +40 -16
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +9 -17
- package/es/dropdown/src/Dropdown.mjs +11 -8
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/public-types.d.ts +1 -0
- package/es/dropdown/src/public-types.mjs +1 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/es/dynamic-tags/src/DynamicTags.mjs +11 -8
- package/es/dynamic-tags/src/public-types.d.ts +1 -0
- package/es/dynamic-tags/src/public-types.mjs +1 -0
- package/es/float-button/src/FloatButton.d.ts +1 -1
- package/es/form/src/Form.d.ts +5 -4
- package/es/form/src/Form.mjs +11 -1
- package/es/form/src/FormItem.d.ts +5 -4
- package/es/form/src/FormItem.mjs +16 -13
- package/es/form/src/FormItemCol.d.ts +3 -1
- package/es/form/src/FormItemGridItem.d.ts +6 -3
- package/es/form/src/FormItemGridItem.mjs +1 -0
- package/es/form/src/FormItemRow.d.ts +2 -0
- package/es/form/src/interface.d.ts +8 -2
- package/es/form/src/public-types.d.ts +2 -0
- package/es/form/src/utils.d.ts +3 -2
- package/es/form/src/utils.mjs +7 -0
- package/es/input/index.d.ts +1 -0
- package/es/input/src/Input.d.ts +6 -5
- package/es/input/src/Input.mjs +19 -3
- package/es/input/src/InputGroupLabel.d.ts +4 -4
- package/es/input/src/InputGroupLabel.mjs +16 -10
- package/es/input/src/interface.d.ts +0 -1
- package/es/input/src/public-types.d.ts +1 -0
- package/es/input/src/public-types.mjs +1 -0
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.mjs +18 -2
- package/es/input-number/src/interface.d.ts +2 -1
- package/es/input-number/src/public-types.d.ts +1 -0
- package/es/input-number/src/public-types.mjs +1 -0
- package/es/input-otp/src/InputOtp.mjs +18 -2
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.mjs +17 -5
- package/es/log/index.d.ts +1 -0
- package/es/log/src/Log.d.ts +4 -0
- package/es/log/src/Log.mjs +3 -1
- package/es/log/src/LogLoader.d.ts +4 -0
- package/es/log/src/LogLoader.mjs +4 -3
- package/es/log/src/public-types.d.ts +2 -0
- package/es/log/src/public-types.mjs +1 -0
- package/es/marquee/src/Marquee.mjs +5 -3
- package/es/mention/index.d.ts +1 -0
- package/es/mention/src/Mention.d.ts +9 -5
- package/es/mention/src/Mention.mjs +21 -3
- package/es/mention/src/public-types.d.ts +1 -0
- package/es/mention/src/public-types.mjs +1 -0
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/message/index.d.ts +1 -0
- package/es/message/src/Message.d.ts +3 -0
- package/es/message/src/Message.mjs +4 -4
- package/es/message/src/MessageEnvironment.d.ts +2 -0
- package/es/message/src/MessageEnvironment.mjs +1 -0
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/message-props.d.ts +2 -0
- package/es/message/src/message-props.mjs +1 -0
- package/es/message/src/public-types.d.ts +2 -0
- package/es/message/src/public-types.mjs +1 -0
- package/es/message/src/types.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +5 -9
- package/es/modal/src/Modal.d.ts +7 -13
- package/es/modal/src/ModalEnvironment.d.ts +5 -9
- package/es/modal/src/composables.mjs +31 -4
- package/es/modal/src/presetProps.d.ts +3 -5
- package/es/notification/src/NotificationProvider.d.ts +3 -3
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/src/Pagination.d.ts +11 -16
- package/es/pagination/src/Pagination.mjs +12 -13
- package/es/pagination/src/interface.d.ts +0 -1
- package/es/pagination/src/public-types.d.ts +1 -0
- package/es/pagination/src/public-types.mjs +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +4 -4
- package/es/popover/src/Popover.d.ts +4 -4
- package/es/popover/src/PopoverBody.d.ts +1 -1
- package/es/popselect/index.d.ts +1 -0
- package/es/popselect/src/Popselect.d.ts +41 -47
- package/es/popselect/src/Popselect.mjs +4 -2
- package/es/popselect/src/PopselectPanel.d.ts +8 -16
- package/es/popselect/src/PopselectPanel.mjs +12 -7
- package/es/popselect/src/interface.d.ts +0 -1
- package/es/popselect/src/public-types.d.ts +1 -0
- package/es/popselect/src/public-types.mjs +1 -0
- package/es/radio/index.d.ts +1 -0
- package/es/radio/src/Radio.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +3 -3
- package/es/radio/src/public-types.d.ts +1 -0
- package/es/radio/src/public-types.mjs +1 -0
- package/es/radio/src/use-radio.d.ts +4 -3
- package/es/radio/src/use-radio.mjs +8 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/src/Rate.d.ts +4 -13
- package/es/rate/src/Rate.mjs +19 -9
- package/es/rate/src/public-types.d.ts +1 -0
- package/es/rate/src/public-types.mjs +1 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/src/Result.d.ts +4 -13
- package/es/result/src/Result.mjs +9 -7
- package/es/result/src/public-types.d.ts +1 -0
- package/es/result/src/public-types.mjs +1 -0
- package/es/select/index.d.ts +1 -0
- package/es/select/src/Select.d.ts +26 -9
- package/es/select/src/Select.mjs +32 -4
- package/es/select/src/interface.d.ts +0 -1
- package/es/select/src/public-types.d.ts +1 -0
- package/es/select/src/public-types.mjs +1 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/src/Skeleton.d.ts +4 -3
- package/es/skeleton/src/Skeleton.mjs +9 -4
- package/es/skeleton/src/public-types.d.ts +1 -0
- package/es/skeleton/src/public-types.mjs +1 -0
- package/es/space/index.d.ts +1 -0
- package/es/space/src/Space.d.ts +4 -13
- package/es/space/src/Space.mjs +8 -8
- package/es/space/src/public-types.d.ts +1 -0
- package/es/space/src/public-types.mjs +1 -0
- package/es/spin/src/Spin.d.ts +52 -6
- package/es/spin/src/Spin.mjs +5 -4
- package/es/switch/index.d.ts +1 -0
- package/es/switch/src/Switch.d.ts +7 -14
- package/es/switch/src/Switch.mjs +18 -8
- package/es/switch/src/public-types.d.ts +3 -0
- package/es/switch/src/public-types.mjs +1 -0
- package/es/table/index.d.ts +1 -0
- package/es/table/src/Table.d.ts +4 -13
- package/es/table/src/Table.mjs +9 -9
- package/es/table/src/public-types.d.ts +1 -0
- package/es/table/src/public-types.mjs +1 -0
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +9 -18
- package/es/tabs/src/Tabs.mjs +13 -8
- package/es/tabs/src/public-types.d.ts +1 -0
- package/es/tabs/src/public-types.mjs +1 -0
- package/es/tag/index.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +3 -13
- package/es/tag/src/Tag.mjs +8 -4
- package/es/tag/src/common-props.d.ts +2 -4
- package/es/tag/src/common-props.mjs +1 -4
- package/es/tag/src/public-types.d.ts +1 -0
- package/es/tag/src/public-types.mjs +1 -0
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +6 -5
- package/es/time-picker/src/TimePicker.mjs +18 -2
- package/es/time-picker/src/interface.d.ts +0 -1
- package/es/time-picker/src/public-types.d.ts +1 -0
- package/es/time-picker/src/public-types.mjs +1 -0
- package/es/tooltip/src/Tooltip.d.ts +4 -4
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/src/Transfer.d.ts +5 -4
- package/es/transfer/src/Transfer.mjs +18 -2
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.mjs +12 -2
- package/es/transfer/src/public-types.d.ts +1 -0
- package/es/transfer/src/public-types.mjs +1 -0
- package/es/tree/index.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +5 -0
- package/es/tree/src/Tree.mjs +25 -11
- package/es/tree/src/TreeNodeSwitcher.mjs +4 -3
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/public-types.d.ts +2 -0
- package/es/tree/src/public-types.mjs +1 -0
- package/es/tree-select/index.d.ts +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +10 -4
- package/es/tree-select/src/TreeSelect.mjs +32 -6
- package/es/tree-select/src/public-types.d.ts +1 -0
- package/es/tree-select/src/public-types.mjs +1 -0
- package/es/upload/src/Upload.d.ts +4 -1
- package/es/upload/src/Upload.mjs +5 -2
- package/es/upload/src/UploadFile.mjs +3 -1
- package/es/upload/src/interface.d.ts +4 -1
- package/es/upload/src/public-types.d.ts +4 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/es/watermark/src/Watermark.d.ts +2 -2
- package/lib/_internal/index.d.ts +1 -1
- package/lib/_internal/loading/index.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +26 -18
- package/lib/_internal/loading/src/Loading.js +11 -8
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +5 -1
- package/lib/_internal/select-menu/src/SelectMenu.js +15 -7
- package/lib/_mixins/use-form-item.d.ts +1 -2
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +9 -4
- package/lib/auto-complete/src/AutoComplete.js +18 -4
- package/lib/auto-complete/src/public-types.d.ts +1 -0
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/lib/breadcrumb/src/BreadcrumbItem.js +6 -2
- package/lib/button/index.d.ts +1 -0
- package/lib/button/src/Button.d.ts +11 -8
- package/lib/button/src/Button.js +8 -5
- package/lib/button/src/public-types.d.ts +4 -0
- package/lib/button-group/src/ButtonGroup.d.ts +5 -15
- package/lib/button-group/src/ButtonGroup.js +1 -4
- package/lib/card/index.d.ts +1 -0
- package/lib/card/src/Card.d.ts +11 -18
- package/lib/card/src/Card.js +17 -10
- package/lib/card/src/public-types.d.ts +1 -0
- package/lib/card/src/public-types.js +2 -0
- package/lib/card/src/styles/index.cssr.js +44 -21
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/src/Cascader.d.ts +12 -5
- package/lib/cascader/src/Cascader.js +19 -3
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderMenu.js +12 -4
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +3 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.js +3 -3
- package/lib/cascader/src/interface.d.ts +4 -0
- package/lib/cascader/src/public-types.d.ts +3 -0
- package/lib/cascader/src/public-types.js +2 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +4 -3
- package/lib/checkbox/src/Checkbox.js +5 -1
- package/lib/checkbox/src/public-types.d.ts +1 -0
- package/lib/checkbox/src/public-types.js +2 -0
- package/lib/color-picker/index.d.ts +1 -0
- package/lib/color-picker/src/ColorPicker.d.ts +11 -5
- package/lib/color-picker/src/ColorPicker.js +62 -28
- package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
- package/lib/color-picker/src/public-types.d.ts +1 -0
- package/lib/color-picker/src/public-types.js +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +11 -14
- package/lib/config-provider/src/internal-interface.d.ts +127 -5
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +0 -15
- package/lib/data-table/src/DataTable.d.ts +8 -22
- package/lib/data-table/src/DataTable.js +22 -11
- package/lib/data-table/src/MainTable.d.ts +1 -0
- package/lib/data-table/src/MainTable.js +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +4 -3
- package/lib/data-table/src/TableParts/Body.js +56 -59
- package/lib/data-table/src/interface.d.ts +5 -10
- package/lib/data-table/src/interface.js +2 -5
- package/{es/data-table/src/publicTypes.d.ts → lib/data-table/src/public-types.d.ts} +3 -0
- package/lib/data-table/src/public-types.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +5 -1
- package/lib/data-table/src/use-scroll.js +16 -5
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +10 -3
- package/lib/date-picker/src/DatePicker.js +18 -2
- package/lib/date-picker/src/panel/date.d.ts +10 -0
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +10 -0
- package/lib/date-picker/src/panel/daterange.js +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +10 -0
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +10 -0
- package/lib/date-picker/src/panel/month.js +7 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +10 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/lib/date-picker/src/panel/panelHeader.js +20 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.js +4 -0
- package/lib/date-picker/src/props.d.ts +4 -1
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/public-types.d.ts +1 -0
- package/lib/descriptions/index.d.ts +1 -0
- package/lib/descriptions/src/Descriptions.d.ts +5 -13
- package/lib/descriptions/src/Descriptions.js +17 -12
- package/lib/descriptions/src/public-types.d.ts +1 -0
- package/lib/descriptions/src/public-types.js +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +40 -16
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +9 -17
- package/lib/dropdown/src/Dropdown.js +16 -8
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/public-types.d.ts +1 -0
- package/lib/dropdown/src/public-types.js +2 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +5 -13
- package/lib/dynamic-tags/src/DynamicTags.js +12 -8
- package/lib/dynamic-tags/src/public-types.d.ts +1 -0
- package/lib/dynamic-tags/src/public-types.js +2 -0
- package/lib/float-button/src/FloatButton.d.ts +1 -1
- package/lib/form/src/Form.d.ts +5 -4
- package/lib/form/src/Form.js +11 -1
- package/lib/form/src/FormItem.d.ts +5 -4
- package/lib/form/src/FormItem.js +17 -14
- package/lib/form/src/FormItemCol.d.ts +3 -1
- package/lib/form/src/FormItemGridItem.d.ts +6 -3
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +2 -0
- package/lib/form/src/interface.d.ts +8 -2
- package/lib/form/src/public-types.d.ts +2 -0
- package/lib/form/src/utils.d.ts +3 -2
- package/lib/form/src/utils.js +6 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/src/Input.d.ts +6 -5
- package/lib/input/src/Input.js +17 -2
- package/lib/input/src/InputGroupLabel.d.ts +4 -4
- package/lib/input/src/InputGroupLabel.js +16 -7
- package/lib/input/src/interface.d.ts +0 -1
- package/lib/input/src/public-types.d.ts +1 -0
- package/lib/input/src/public-types.js +2 -0
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +16 -2
- package/lib/input-number/src/interface.d.ts +2 -1
- package/lib/input-number/src/public-types.d.ts +1 -0
- package/lib/input-number/src/public-types.js +2 -0
- package/lib/input-otp/src/InputOtp.js +16 -2
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.js +13 -1
- package/lib/log/index.d.ts +1 -0
- package/lib/log/src/Log.d.ts +4 -0
- package/lib/log/src/Log.js +2 -2
- package/lib/log/src/LogLoader.d.ts +4 -0
- package/lib/log/src/LogLoader.js +3 -2
- package/lib/log/src/public-types.d.ts +2 -0
- package/lib/log/src/public-types.js +2 -0
- package/lib/marquee/src/Marquee.js +3 -2
- package/lib/mention/index.d.ts +1 -0
- package/lib/mention/src/Mention.d.ts +9 -5
- package/lib/mention/src/Mention.js +18 -4
- package/lib/mention/src/public-types.d.ts +1 -0
- package/lib/mention/src/public-types.js +2 -0
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/message/index.d.ts +1 -0
- package/lib/message/src/Message.d.ts +3 -0
- package/lib/message/src/Message.js +3 -4
- package/lib/message/src/MessageEnvironment.d.ts +2 -0
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/message-props.d.ts +2 -0
- package/lib/message/src/message-props.js +1 -0
- package/lib/message/src/public-types.d.ts +2 -0
- package/lib/message/src/public-types.js +2 -0
- package/lib/message/src/types.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +5 -9
- package/lib/modal/src/Modal.d.ts +7 -13
- package/lib/modal/src/ModalEnvironment.d.ts +5 -9
- package/lib/modal/src/composables.js +28 -4
- package/lib/modal/src/presetProps.d.ts +3 -5
- package/lib/notification/src/NotificationProvider.d.ts +3 -3
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/src/Pagination.d.ts +11 -16
- package/lib/pagination/src/Pagination.js +14 -12
- package/lib/pagination/src/interface.d.ts +0 -1
- package/lib/pagination/src/public-types.d.ts +1 -0
- package/lib/pagination/src/public-types.js +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +4 -4
- package/lib/popover/src/Popover.d.ts +4 -4
- package/lib/popover/src/PopoverBody.d.ts +1 -1
- package/lib/popselect/index.d.ts +1 -0
- package/lib/popselect/src/Popselect.d.ts +41 -47
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +8 -16
- package/lib/popselect/src/PopselectPanel.js +12 -7
- package/lib/popselect/src/interface.d.ts +0 -1
- package/lib/popselect/src/public-types.d.ts +1 -0
- package/lib/popselect/src/public-types.js +2 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/src/Radio.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +3 -3
- package/lib/radio/src/public-types.d.ts +1 -0
- package/lib/radio/src/public-types.js +2 -0
- package/lib/radio/src/use-radio.d.ts +4 -3
- package/lib/radio/src/use-radio.js +6 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/src/Rate.d.ts +4 -13
- package/lib/rate/src/Rate.js +18 -7
- package/lib/rate/src/public-types.d.ts +1 -0
- package/lib/rate/src/public-types.js +2 -0
- package/lib/result/index.d.ts +1 -0
- package/lib/result/src/Result.d.ts +4 -13
- package/lib/result/src/Result.js +10 -7
- package/lib/result/src/public-types.d.ts +1 -0
- package/lib/result/src/public-types.js +2 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/src/Select.d.ts +26 -9
- package/lib/select/src/Select.js +26 -6
- package/lib/select/src/interface.d.ts +0 -1
- package/lib/select/src/public-types.d.ts +1 -0
- package/lib/select/src/public-types.js +2 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/src/Skeleton.d.ts +4 -3
- package/lib/skeleton/src/Skeleton.js +9 -4
- package/lib/skeleton/src/public-types.d.ts +1 -0
- package/lib/skeleton/src/public-types.js +2 -0
- package/lib/space/index.d.ts +1 -0
- package/lib/space/src/Space.d.ts +4 -13
- package/lib/space/src/Space.js +7 -6
- package/lib/space/src/public-types.d.ts +1 -0
- package/lib/space/src/public-types.js +2 -0
- package/lib/spin/src/Spin.d.ts +52 -6
- package/lib/spin/src/Spin.js +5 -4
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/src/Switch.d.ts +7 -14
- package/lib/switch/src/Switch.js +18 -8
- package/lib/switch/src/public-types.d.ts +3 -0
- package/lib/switch/src/public-types.js +2 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/src/Table.d.ts +4 -13
- package/lib/table/src/Table.js +8 -7
- package/lib/table/src/public-types.d.ts +1 -0
- package/lib/table/src/public-types.js +2 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +9 -18
- package/lib/tabs/src/Tabs.js +14 -8
- package/lib/tabs/src/public-types.d.ts +1 -0
- package/lib/tabs/src/public-types.js +2 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +3 -13
- package/lib/tag/src/Tag.js +9 -4
- package/lib/tag/src/common-props.d.ts +2 -4
- package/lib/tag/src/common-props.js +1 -4
- package/lib/tag/src/public-types.d.ts +1 -0
- package/lib/tag/src/public-types.js +2 -0
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +6 -5
- package/lib/time-picker/src/TimePicker.js +16 -2
- package/lib/time-picker/src/interface.d.ts +0 -1
- package/lib/time-picker/src/public-types.d.ts +1 -0
- package/lib/time-picker/src/public-types.js +2 -0
- package/lib/tooltip/src/Tooltip.d.ts +4 -4
- package/lib/transfer/index.d.ts +1 -0
- package/lib/transfer/src/Transfer.d.ts +5 -4
- package/lib/transfer/src/Transfer.js +16 -2
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +9 -1
- package/lib/transfer/src/public-types.d.ts +1 -0
- package/lib/transfer/src/public-types.js +2 -0
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +5 -0
- package/lib/tree/src/Tree.js +20 -9
- package/lib/tree/src/TreeNodeSwitcher.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/public-types.d.ts +2 -0
- package/lib/tree/src/public-types.js +2 -0
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/src/TreeSelect.d.ts +10 -4
- package/lib/tree-select/src/TreeSelect.js +28 -7
- package/lib/tree-select/src/public-types.d.ts +1 -0
- package/lib/tree-select/src/public-types.js +2 -0
- package/lib/upload/src/Upload.d.ts +4 -1
- package/lib/upload/src/Upload.js +2 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/interface.d.ts +4 -1
- package/lib/upload/src/public-types.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/lib/watermark/src/Watermark.d.ts +2 -2
- package/package.json +5 -3
- package/web-types.json +249 -61
- package/es/button/src/interface.d.ts +0 -2
- package/lib/button/src/interface.d.ts +0 -2
- /package/es/{button/src/interface.mjs → auto-complete/src/public-types.mjs} +0 -0
- /package/es/{data-table/src/publicTypes.mjs → button/src/public-types.mjs} +0 -0
- /package/lib/{button/src/interface.js → auto-complete/src/public-types.js} +0 -0
- /package/lib/{data-table/src/publicTypes.js → button/src/public-types.js} +0 -0
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "naive-ui",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.44.1",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -518,6 +518,16 @@
|
|
|
518
518
|
"description-sections": {
|
|
519
519
|
"since": "2.27.0"
|
|
520
520
|
}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "scrollbar-props",
|
|
524
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/auto-complete",
|
|
525
|
+
"type": "ScrollbarProps",
|
|
526
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
527
|
+
"default": "undefined",
|
|
528
|
+
"description-sections": {
|
|
529
|
+
"since": "2.44.0"
|
|
530
|
+
}
|
|
521
531
|
}
|
|
522
532
|
],
|
|
523
533
|
"js": {
|
|
@@ -1026,6 +1036,16 @@
|
|
|
1026
1036
|
"description-sections": {
|
|
1027
1037
|
"since": "2.30.0"
|
|
1028
1038
|
}
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "show-separator",
|
|
1042
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/breadcrumb",
|
|
1043
|
+
"type": "boolean",
|
|
1044
|
+
"description": "Whether to show the separator.",
|
|
1045
|
+
"default": "true",
|
|
1046
|
+
"description-sections": {
|
|
1047
|
+
"since": "2.44.0"
|
|
1048
|
+
}
|
|
1029
1049
|
}
|
|
1030
1050
|
],
|
|
1031
1051
|
"js": {
|
|
@@ -1231,6 +1251,16 @@
|
|
|
1231
1251
|
"description-sections": {
|
|
1232
1252
|
"since": "2.28.3"
|
|
1233
1253
|
}
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "spin-props",
|
|
1257
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/button",
|
|
1258
|
+
"type": "{ strokeWidth?: number, stroke?: string, scale?: number, radius?: number }",
|
|
1259
|
+
"description": "Loading icon properties.",
|
|
1260
|
+
"default": "undefined",
|
|
1261
|
+
"description-sections": {
|
|
1262
|
+
"since": "2.44.0"
|
|
1263
|
+
}
|
|
1234
1264
|
}
|
|
1235
1265
|
],
|
|
1236
1266
|
"js": {
|
|
@@ -1422,6 +1452,16 @@
|
|
|
1422
1452
|
"description": "The style of the card content area.",
|
|
1423
1453
|
"default": "undefined"
|
|
1424
1454
|
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "content-scrollable",
|
|
1457
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/card",
|
|
1458
|
+
"type": "boolean",
|
|
1459
|
+
"description": "Whether only the card content area is scrollable (recommended with fixed height).",
|
|
1460
|
+
"default": "false",
|
|
1461
|
+
"description-sections": {
|
|
1462
|
+
"since": "2.44.0"
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1425
1465
|
{
|
|
1426
1466
|
"name": "header-class",
|
|
1427
1467
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/card",
|
|
@@ -2206,6 +2246,16 @@
|
|
|
2206
2246
|
"since": "2.38.2"
|
|
2207
2247
|
}
|
|
2208
2248
|
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "spin-props",
|
|
2251
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/cascader",
|
|
2252
|
+
"type": "{ strokeWidth?: number, stroke?: string, scale?: number, radius?: number }",
|
|
2253
|
+
"description": "Loading icon properties.",
|
|
2254
|
+
"default": "undefined",
|
|
2255
|
+
"description-sections": {
|
|
2256
|
+
"since": "2.44.0"
|
|
2257
|
+
}
|
|
2258
|
+
},
|
|
2209
2259
|
{
|
|
2210
2260
|
"name": "render-prefix",
|
|
2211
2261
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/cascader",
|
|
@@ -2225,6 +2275,16 @@
|
|
|
2225
2275
|
"description-sections": {
|
|
2226
2276
|
"since": "2.38.2"
|
|
2227
2277
|
}
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
"name": "scrollbar-props",
|
|
2281
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/cascader",
|
|
2282
|
+
"type": "ScrollbarProps",
|
|
2283
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
2284
|
+
"default": "undefined",
|
|
2285
|
+
"description-sections": {
|
|
2286
|
+
"since": "2.44.0"
|
|
2287
|
+
}
|
|
2228
2288
|
}
|
|
2229
2289
|
],
|
|
2230
2290
|
"js": {
|
|
@@ -2781,6 +2841,14 @@
|
|
|
2781
2841
|
"symbol": "NColorPicker"
|
|
2782
2842
|
},
|
|
2783
2843
|
"slots": [
|
|
2844
|
+
{
|
|
2845
|
+
"name": "action",
|
|
2846
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
2847
|
+
"description": "Custom action.",
|
|
2848
|
+
"description-sections": {
|
|
2849
|
+
"since": "2.24.0"
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2784
2852
|
{
|
|
2785
2853
|
"name": "label",
|
|
2786
2854
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
@@ -2790,11 +2858,12 @@
|
|
|
2790
2858
|
}
|
|
2791
2859
|
},
|
|
2792
2860
|
{
|
|
2793
|
-
"name": "
|
|
2861
|
+
"name": "trigger",
|
|
2794
2862
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
2795
|
-
"
|
|
2863
|
+
"type": "{ value: string | null , onClick: () => void, ref: (ref: Element | ComponentPublicInstance | null }) => void }",
|
|
2864
|
+
"description": "Custom trigger element. Only one element is allowed & it can't be pure text.",
|
|
2796
2865
|
"description-sections": {
|
|
2797
|
-
"since": "2.
|
|
2866
|
+
"since": "2.44.0"
|
|
2798
2867
|
}
|
|
2799
2868
|
}
|
|
2800
2869
|
],
|
|
@@ -3049,7 +3118,9 @@
|
|
|
3049
3118
|
{
|
|
3050
3119
|
"name": "component-options",
|
|
3051
3120
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/config-provider",
|
|
3052
|
-
"type": "
|
|
3121
|
+
"type": "GlobalComponentConfig",
|
|
3122
|
+
"description": "Global component options. Some props can be configured per component. If set to `undefined` it will inherit its parent `n-config-provider`.",
|
|
3123
|
+
"default": "undefined"
|
|
3053
3124
|
},
|
|
3054
3125
|
{
|
|
3055
3126
|
"name": "icons",
|
|
@@ -3061,7 +3132,7 @@
|
|
|
3061
3132
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/config-provider",
|
|
3062
3133
|
"type": "{ [k: string]: number }",
|
|
3063
3134
|
"description": "Responsive breakpoints, it will be used in `n-grid`. The prop is not responsive, you need to set it on its first mount.",
|
|
3064
|
-
"default": "{ xs:
|
|
3135
|
+
"default": "{ xs: <640, s: ≥640, m: ≥1024, l: ≥1280, xl: ≥1536, xxl: ≥1920 }"
|
|
3065
3136
|
},
|
|
3066
3137
|
{
|
|
3067
3138
|
"name": "preflight-style-disabled",
|
|
@@ -3554,7 +3625,7 @@
|
|
|
3554
3625
|
{
|
|
3555
3626
|
"name": "spin-props",
|
|
3556
3627
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
3557
|
-
"type": "{ strokeWidth?: number, stroke?: string }",
|
|
3628
|
+
"type": "{ strokeWidth?: number, stroke?: string, scale?: number, radius?: number }",
|
|
3558
3629
|
"description": "Table spin's props.",
|
|
3559
3630
|
"default": "undefined",
|
|
3560
3631
|
"description-sections": {
|
|
@@ -3802,6 +3873,16 @@
|
|
|
3802
3873
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
|
|
3803
3874
|
"type": "boolean"
|
|
3804
3875
|
},
|
|
3876
|
+
{
|
|
3877
|
+
"name": "fast-year-select",
|
|
3878
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
|
|
3879
|
+
"type": "boolean"
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
"name": "fast-month-select",
|
|
3883
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
|
|
3884
|
+
"type": "boolean"
|
|
3885
|
+
},
|
|
3805
3886
|
{
|
|
3806
3887
|
"name": "update-value-on-close",
|
|
3807
3888
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/date-picker",
|
|
@@ -4986,7 +5067,7 @@
|
|
|
4986
5067
|
"name": "scrollbar-props",
|
|
4987
5068
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/drawer",
|
|
4988
5069
|
"type": "object",
|
|
4989
|
-
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
5070
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props).",
|
|
4990
5071
|
"default": "undefined"
|
|
4991
5072
|
},
|
|
4992
5073
|
{
|
|
@@ -6392,6 +6473,19 @@
|
|
|
6392
6473
|
"name": "default",
|
|
6393
6474
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/form",
|
|
6394
6475
|
"description": "Content."
|
|
6476
|
+
},
|
|
6477
|
+
{
|
|
6478
|
+
"name": "feedback",
|
|
6479
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/form",
|
|
6480
|
+
"description": "Feedback.",
|
|
6481
|
+
"description-sections": {
|
|
6482
|
+
"since": "2.24.0"
|
|
6483
|
+
}
|
|
6484
|
+
},
|
|
6485
|
+
{
|
|
6486
|
+
"name": "label",
|
|
6487
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/form",
|
|
6488
|
+
"description": "Label content."
|
|
6395
6489
|
}
|
|
6396
6490
|
],
|
|
6397
6491
|
"attributes": [],
|
|
@@ -7734,7 +7828,12 @@
|
|
|
7734
7828
|
{
|
|
7735
7829
|
"name": "auto-escape",
|
|
7736
7830
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/highlight",
|
|
7737
|
-
"type": "boolean"
|
|
7831
|
+
"type": "boolean",
|
|
7832
|
+
"description": "Whether to escape `patterns` automatically. By default, elements in `patterns` will be converted into regular expressions for matching, and this process includes automatic escaping, so that the regular expressions will match the literal content of the elements. For example, `\\(` will match `\\(`. If you need the n-highlight component to match using regular expressions constructed from the elements in `patterns` themselves (e.g., `\\(` matches `(`), you can set this to false. If you do not understand these details, do not change this setting.",
|
|
7833
|
+
"default": "true",
|
|
7834
|
+
"description-sections": {
|
|
7835
|
+
"since": "2.40.0"
|
|
7836
|
+
}
|
|
7738
7837
|
},
|
|
7739
7838
|
{
|
|
7740
7839
|
"name": "text",
|
|
@@ -7775,16 +7874,6 @@
|
|
|
7775
7874
|
"description-sections": {
|
|
7776
7875
|
"since": "2.40.0"
|
|
7777
7876
|
}
|
|
7778
|
-
},
|
|
7779
|
-
{
|
|
7780
|
-
"name": "auto-espace",
|
|
7781
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/highlight",
|
|
7782
|
-
"type": "boolean",
|
|
7783
|
-
"description": "Whether to escape `patterns` automatically. By default, elements in `patterns` will be converted into regular expressions for matching, and this process includes automatic escaping, so that the regular expressions will match the literal content of the elements. For example, `\\(` will match `\\(`. If you need the n-highlight component to match using regular expressions constructed from the elements in `patterns` themselves (e.g., `\\(` matches `(`), you can set this to false. If you do not understand these details, do not change this setting.",
|
|
7784
|
-
"default": "true",
|
|
7785
|
-
"description-sections": {
|
|
7786
|
-
"since": "2.40.0"
|
|
7787
|
-
}
|
|
7788
7877
|
}
|
|
7789
7878
|
],
|
|
7790
7879
|
"js": {
|
|
@@ -9201,7 +9290,7 @@
|
|
|
9201
9290
|
"name": "scrollbar-props",
|
|
9202
9291
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/layout",
|
|
9203
9292
|
"type": "ScrollbarProps",
|
|
9204
|
-
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
9293
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props).",
|
|
9205
9294
|
"default": "undefined"
|
|
9206
9295
|
},
|
|
9207
9296
|
{
|
|
@@ -9827,9 +9916,7 @@
|
|
|
9827
9916
|
{
|
|
9828
9917
|
"name": "trim",
|
|
9829
9918
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log",
|
|
9830
|
-
"type": "boolean"
|
|
9831
|
-
"description": "Whether to display the log after `trim`.",
|
|
9832
|
-
"default": "false"
|
|
9919
|
+
"type": "boolean"
|
|
9833
9920
|
},
|
|
9834
9921
|
{
|
|
9835
9922
|
"name": "log",
|
|
@@ -9889,30 +9976,26 @@
|
|
|
9889
9976
|
"type": "Object",
|
|
9890
9977
|
"description": "If you want to set `hljs` locally, pass it using this prop.",
|
|
9891
9978
|
"default": "undefined"
|
|
9979
|
+
},
|
|
9980
|
+
{
|
|
9981
|
+
"name": "spin-props",
|
|
9982
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log",
|
|
9983
|
+
"type": "object"
|
|
9892
9984
|
}
|
|
9893
9985
|
],
|
|
9894
9986
|
"js": {
|
|
9895
9987
|
"events": [
|
|
9896
9988
|
{
|
|
9897
9989
|
"name": "reach-top",
|
|
9898
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9899
|
-
"type": "() => void",
|
|
9900
|
-
"description": "Scroll to the top callback function.",
|
|
9901
|
-
"default": "undefined"
|
|
9990
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9902
9991
|
},
|
|
9903
9992
|
{
|
|
9904
9993
|
"name": "reach-bottom",
|
|
9905
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9906
|
-
"type": "() => void",
|
|
9907
|
-
"description": "Scroll to the bottom callback function.",
|
|
9908
|
-
"default": "undefined"
|
|
9994
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9909
9995
|
},
|
|
9910
9996
|
{
|
|
9911
9997
|
"name": "require-more",
|
|
9912
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9913
|
-
"type": "(from: 'top' | 'bottom') => void",
|
|
9914
|
-
"description": "Callback function for scroll loading log.",
|
|
9915
|
-
"default": "undefined"
|
|
9998
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log"
|
|
9916
9999
|
}
|
|
9917
10000
|
]
|
|
9918
10001
|
}
|
|
@@ -10104,6 +10187,16 @@
|
|
|
10104
10187
|
"description-sections": {
|
|
10105
10188
|
"since": "2.27.0"
|
|
10106
10189
|
}
|
|
10190
|
+
},
|
|
10191
|
+
{
|
|
10192
|
+
"name": "scrollbar-props",
|
|
10193
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention",
|
|
10194
|
+
"type": "ScrollbarProps",
|
|
10195
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
10196
|
+
"default": "undefined",
|
|
10197
|
+
"description-sections": {
|
|
10198
|
+
"since": "2.44.0"
|
|
10199
|
+
}
|
|
10107
10200
|
}
|
|
10108
10201
|
],
|
|
10109
10202
|
"js": {
|
|
@@ -10535,7 +10628,7 @@
|
|
|
10535
10628
|
},
|
|
10536
10629
|
{
|
|
10537
10630
|
"name": "NModal",
|
|
10538
|
-
"description": "It just pops and shows you something.\n\n<n-
|
|
10631
|
+
"description": "It just pops and shows you something.\n\n<n-space vertical size=\"large\">\n<n-alert type=\"warning\" title=\"Notice\" :bordered=\"false\">\n <n-ul align-text>\n <li>\n If you want to use <n-text code>useModal</n-text> to create modal, you need to put the component that calls its method inside <n-text code>n-modal-provider</n-text> and use <n-text code>useModal</n-text> to get the API.\n </li>\n <li>\n If you want to know how to use it outside of <n-text code>setup</n-text>, please refer to Q & A at the bottom of this page.\n </li>\n </n-ul>\n</n-alert>\n\nFor example:\n\n```html\n<!-- App.vue -->\n<n-modal-provider>\n <content />\n</n-modal-provider>\n```\n\n```js\nimport { useModal } from 'naive-ui'\nimport { defineComponent } from 'vue'\n\n// content\nexport default defineComponent({\n setup() {\n const modal = useModal()\n return {\n showModal() {\n modal.create({\n title: 'Title',\n content: 'Content'\n })\n }\n }\n }\n})\n```\n\n</n-space>",
|
|
10539
10632
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
10540
10633
|
"source": {
|
|
10541
10634
|
"symbol": "NModal"
|
|
@@ -10666,6 +10759,11 @@
|
|
|
10666
10759
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
10667
10760
|
"type": "string | object"
|
|
10668
10761
|
},
|
|
10762
|
+
{
|
|
10763
|
+
"name": "content-scrollable",
|
|
10764
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
10765
|
+
"type": "boolean"
|
|
10766
|
+
},
|
|
10669
10767
|
{
|
|
10670
10768
|
"name": "header-class",
|
|
10671
10769
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/modal",
|
|
@@ -11444,6 +11542,16 @@
|
|
|
11444
11542
|
"description-sections": {
|
|
11445
11543
|
"since": "2.37.0"
|
|
11446
11544
|
}
|
|
11545
|
+
},
|
|
11546
|
+
{
|
|
11547
|
+
"name": "scrollbar-props",
|
|
11548
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/pagination",
|
|
11549
|
+
"type": "ScrollbarProps",
|
|
11550
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
11551
|
+
"default": "undefined",
|
|
11552
|
+
"description-sections": {
|
|
11553
|
+
"since": "2.44.0"
|
|
11554
|
+
}
|
|
11447
11555
|
}
|
|
11448
11556
|
],
|
|
11449
11557
|
"js": {
|
|
@@ -12387,6 +12495,16 @@
|
|
|
12387
12495
|
"description-sections": {
|
|
12388
12496
|
"since": "2.30.4"
|
|
12389
12497
|
}
|
|
12498
|
+
},
|
|
12499
|
+
{
|
|
12500
|
+
"name": "scrollbar-props",
|
|
12501
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/popselect",
|
|
12502
|
+
"type": "ScrollbarProps",
|
|
12503
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
12504
|
+
"default": "undefined",
|
|
12505
|
+
"description-sections": {
|
|
12506
|
+
"since": "2.44.0"
|
|
12507
|
+
}
|
|
12390
12508
|
}
|
|
12391
12509
|
],
|
|
12392
12510
|
"js": {
|
|
@@ -13263,6 +13381,16 @@
|
|
|
13263
13381
|
"description": "Whether the value is clearable.",
|
|
13264
13382
|
"default": "false"
|
|
13265
13383
|
},
|
|
13384
|
+
{
|
|
13385
|
+
"name": "clear-created-options-on-clear",
|
|
13386
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
13387
|
+
"type": "boolean",
|
|
13388
|
+
"description": "When `tag` and `clearable` are enabled, whether to clear created options when clearing.",
|
|
13389
|
+
"default": "true",
|
|
13390
|
+
"description-sections": {
|
|
13391
|
+
"since": "2.44.0"
|
|
13392
|
+
}
|
|
13393
|
+
},
|
|
13266
13394
|
{
|
|
13267
13395
|
"name": "clear-filter-after-select",
|
|
13268
13396
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
@@ -13574,6 +13702,16 @@
|
|
|
13574
13702
|
"since": "2.33.4"
|
|
13575
13703
|
}
|
|
13576
13704
|
},
|
|
13705
|
+
{
|
|
13706
|
+
"name": "scrollbar-props",
|
|
13707
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
13708
|
+
"type": "ScrollbarProps",
|
|
13709
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
13710
|
+
"default": "undefined",
|
|
13711
|
+
"description-sections": {
|
|
13712
|
+
"since": "2.44.0"
|
|
13713
|
+
}
|
|
13714
|
+
},
|
|
13577
13715
|
{
|
|
13578
13716
|
"name": "items",
|
|
13579
13717
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
@@ -14080,13 +14218,6 @@
|
|
|
14080
14218
|
"description": "Description of the spin.",
|
|
14081
14219
|
"default": "undefined"
|
|
14082
14220
|
},
|
|
14083
|
-
{
|
|
14084
|
-
"name": "stroke",
|
|
14085
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14086
|
-
"type": "string",
|
|
14087
|
-
"description": "Color of the spin.",
|
|
14088
|
-
"default": "undefined"
|
|
14089
|
-
},
|
|
14090
14221
|
{
|
|
14091
14222
|
"name": "size",
|
|
14092
14223
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
@@ -14101,13 +14232,6 @@
|
|
|
14101
14232
|
"description": "Specify whether spin is active when spin has content inside. It won't work if you just use spin itself.",
|
|
14102
14233
|
"default": "true"
|
|
14103
14234
|
},
|
|
14104
|
-
{
|
|
14105
|
-
"name": "stroke-width",
|
|
14106
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14107
|
-
"type": "number",
|
|
14108
|
-
"description": "Relative width of spin's stroke, assuming the outer radius of spin is 100.",
|
|
14109
|
-
"default": "undefined"
|
|
14110
|
-
},
|
|
14111
14235
|
{
|
|
14112
14236
|
"name": "rotate",
|
|
14113
14237
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
@@ -14126,6 +14250,40 @@
|
|
|
14126
14250
|
"type": "number",
|
|
14127
14251
|
"description": "Specifies a delay in milliseconds for loading state (prevent flush).",
|
|
14128
14252
|
"default": "undefined"
|
|
14253
|
+
},
|
|
14254
|
+
{
|
|
14255
|
+
"name": "stroke-width",
|
|
14256
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14257
|
+
"type": "number",
|
|
14258
|
+
"description": "Relative width of spin's stroke, assuming the outer radius of spin is 100.",
|
|
14259
|
+
"default": "undefined"
|
|
14260
|
+
},
|
|
14261
|
+
{
|
|
14262
|
+
"name": "stroke",
|
|
14263
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14264
|
+
"type": "string",
|
|
14265
|
+
"description": "Color of the spin.",
|
|
14266
|
+
"default": "undefined"
|
|
14267
|
+
},
|
|
14268
|
+
{
|
|
14269
|
+
"name": "scale",
|
|
14270
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14271
|
+
"type": "number",
|
|
14272
|
+
"description": "Scale factor of the spin icon.",
|
|
14273
|
+
"default": "1",
|
|
14274
|
+
"description-sections": {
|
|
14275
|
+
"since": "2.44.0"
|
|
14276
|
+
}
|
|
14277
|
+
},
|
|
14278
|
+
{
|
|
14279
|
+
"name": "radius",
|
|
14280
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/spin",
|
|
14281
|
+
"type": "number",
|
|
14282
|
+
"description": "Outer radius of the spin icon.",
|
|
14283
|
+
"default": "100",
|
|
14284
|
+
"description-sections": {
|
|
14285
|
+
"since": "2.44.0"
|
|
14286
|
+
}
|
|
14129
14287
|
}
|
|
14130
14288
|
],
|
|
14131
14289
|
"js": {
|
|
@@ -14690,6 +14848,16 @@
|
|
|
14690
14848
|
"description-sections": {
|
|
14691
14849
|
"since": "2.28.3"
|
|
14692
14850
|
}
|
|
14851
|
+
},
|
|
14852
|
+
{
|
|
14853
|
+
"name": "spin-props",
|
|
14854
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
14855
|
+
"type": "{ strokeWidth?: number, stroke?: string, scale?: number, radius?: number }",
|
|
14856
|
+
"description": "Loading icon properties.",
|
|
14857
|
+
"default": "undefined",
|
|
14858
|
+
"description-sections": {
|
|
14859
|
+
"since": "2.44.0"
|
|
14860
|
+
}
|
|
14693
14861
|
}
|
|
14694
14862
|
],
|
|
14695
14863
|
"js": {
|
|
@@ -14932,14 +15100,14 @@
|
|
|
14932
15100
|
"name": "disabled",
|
|
14933
15101
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
14934
15102
|
"type": "boolean",
|
|
14935
|
-
"description": "Whether to disable the
|
|
15103
|
+
"description": "Whether to disable the tab.",
|
|
14936
15104
|
"default": "false"
|
|
14937
15105
|
},
|
|
14938
15106
|
{
|
|
14939
15107
|
"name": "display-directive",
|
|
14940
15108
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
14941
15109
|
"type": "'if' | 'show' | 'show:lazy'",
|
|
14942
|
-
"description": "The directive to use in conditionally rendering. `if` will use `v-if` and `show` will use `v-show`. When
|
|
15110
|
+
"description": "The directive to use in conditionally rendering. `if` will use `v-if` and `show` will use `v-show`. When using the `show` directive, the status of tab won't be reset after tab changes. When use `show:lazy`, the display effect is the same as `show`, but the content will be lazily loaded.",
|
|
14943
15111
|
"default": "'if'"
|
|
14944
15112
|
},
|
|
14945
15113
|
{
|
|
@@ -15125,7 +15293,7 @@
|
|
|
15125
15293
|
"name": "pane-wrapper-class",
|
|
15126
15294
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15127
15295
|
"type": "string",
|
|
15128
|
-
"description": "Class of the pane
|
|
15296
|
+
"description": "Class of the pane wrapper.",
|
|
15129
15297
|
"default": "undefined",
|
|
15130
15298
|
"description-sections": {
|
|
15131
15299
|
"since": "2.34.4"
|
|
@@ -15135,7 +15303,7 @@
|
|
|
15135
15303
|
"name": "pane-wrapper-style",
|
|
15136
15304
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15137
15305
|
"type": "string | object",
|
|
15138
|
-
"description": "Style of the pane
|
|
15306
|
+
"description": "Style of the pane wrapper.",
|
|
15139
15307
|
"default": "undefined",
|
|
15140
15308
|
"description-sections": {
|
|
15141
15309
|
"since": "2.34.4"
|
|
@@ -15145,7 +15313,7 @@
|
|
|
15145
15313
|
"name": "addable",
|
|
15146
15314
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15147
15315
|
"type": "boolean | { disabled?: boolean }",
|
|
15148
|
-
"description": "Whether to allow
|
|
15316
|
+
"description": "Whether to allow adding a tag. Only works when the tag's `type` is `card`.",
|
|
15149
15317
|
"default": "false"
|
|
15150
15318
|
},
|
|
15151
15319
|
{
|
|
@@ -15159,7 +15327,7 @@
|
|
|
15159
15327
|
"name": "animated",
|
|
15160
15328
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15161
15329
|
"type": "boolean",
|
|
15162
|
-
"description": "Whether to activate tab switching animation. It
|
|
15330
|
+
"description": "Whether to activate tab switching animation. It has no effect if `placement` is `'left'` or `'right'`.",
|
|
15163
15331
|
"default": "false",
|
|
15164
15332
|
"description-sections": {
|
|
15165
15333
|
"since": "2.27.0"
|
|
@@ -15182,14 +15350,14 @@
|
|
|
15182
15350
|
"name": "before-leave",
|
|
15183
15351
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15184
15352
|
"type": "(activeName: string | number, oldActiveName: string | number | null) => boolean | Promise<boolean>",
|
|
15185
|
-
"description": "Hook function before switching
|
|
15353
|
+
"description": "Hook function executed before switching tabs. Returning `false` or promise resolving `false` or promise rejection will prevent tab switching.",
|
|
15186
15354
|
"default": "undefined"
|
|
15187
15355
|
},
|
|
15188
15356
|
{
|
|
15189
15357
|
"name": "add",
|
|
15190
15358
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15191
15359
|
"type": "() => void",
|
|
15192
|
-
"description": "Callback function triggered when
|
|
15360
|
+
"description": "Callback function triggered when adding tag.",
|
|
15193
15361
|
"default": "undefined"
|
|
15194
15362
|
},
|
|
15195
15363
|
{
|
|
@@ -15204,7 +15372,7 @@
|
|
|
15204
15372
|
"name": "close",
|
|
15205
15373
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
15206
15374
|
"type": "(name: string | number) => void",
|
|
15207
|
-
"description": "Callback function triggered when
|
|
15375
|
+
"description": "Callback function triggered when closing a tag.",
|
|
15208
15376
|
"default": "undefined"
|
|
15209
15377
|
},
|
|
15210
15378
|
{
|
|
@@ -15274,7 +15442,7 @@
|
|
|
15274
15442
|
{
|
|
15275
15443
|
"name": "size",
|
|
15276
15444
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tag",
|
|
15277
|
-
"type": "'small' | 'medium' | 'large'",
|
|
15445
|
+
"type": "'tiny' | 'small' | 'medium' | 'large'",
|
|
15278
15446
|
"description": "Size of the tag.",
|
|
15279
15447
|
"default": "'medium'"
|
|
15280
15448
|
},
|
|
@@ -16644,7 +16812,7 @@
|
|
|
16644
16812
|
"name": "scrollbar-props",
|
|
16645
16813
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
16646
16814
|
"type": "ScrollbarProps",
|
|
16647
|
-
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
16815
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props).",
|
|
16648
16816
|
"default": "undefined"
|
|
16649
16817
|
},
|
|
16650
16818
|
{
|
|
@@ -16862,6 +17030,16 @@
|
|
|
16862
17030
|
"description": "The strategy of setting checked callback's keys argument. `all` means setting all checked node. `parent` means setting all checked parent node of whom all child node are checked. `child` means setting all child node.",
|
|
16863
17031
|
"default": "'all'"
|
|
16864
17032
|
},
|
|
17033
|
+
{
|
|
17034
|
+
"name": "spin-props",
|
|
17035
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
17036
|
+
"type": "{ strokeWidth?: number, stroke?: string, scale?: number, radius?: number }",
|
|
17037
|
+
"description": "Loading icon properties.",
|
|
17038
|
+
"default": "undefined",
|
|
17039
|
+
"description-sections": {
|
|
17040
|
+
"since": "2.44.0"
|
|
17041
|
+
}
|
|
17042
|
+
},
|
|
16865
17043
|
{
|
|
16866
17044
|
"name": "leaf-only",
|
|
16867
17045
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
@@ -17133,6 +17311,16 @@
|
|
|
17133
17311
|
"description": "Allow selecting multiple options.",
|
|
17134
17312
|
"default": "false"
|
|
17135
17313
|
},
|
|
17314
|
+
{
|
|
17315
|
+
"name": "show-line",
|
|
17316
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree-select",
|
|
17317
|
+
"type": "boolean",
|
|
17318
|
+
"description": "Whether to display tree connecting lines.",
|
|
17319
|
+
"default": "false",
|
|
17320
|
+
"description-sections": {
|
|
17321
|
+
"since": "2.44.0"
|
|
17322
|
+
}
|
|
17323
|
+
},
|
|
17136
17324
|
{
|
|
17137
17325
|
"name": "show-path",
|
|
17138
17326
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree-select",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|