naive-ui 2.33.4 → 2.34.0
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 +3517 -6061
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/styles/index.cssr.js +2 -2
- package/es/_internal/close/src/styles/index.cssr.js +2 -2
- package/es/_internal/index.d.ts +1 -0
- package/es/_internal/loading/index.d.ts +1 -0
- package/es/_internal/loading/src/Loading.d.ts +26 -14
- package/es/_internal/loading/src/Loading.js +17 -20
- package/es/_internal/scrollbar/src/styles/index.cssr.js +2 -2
- package/es/_internal/select-menu/src/styles/index.cssr.js +2 -2
- package/es/_internal/selection/src/Selection.js +5 -5
- package/es/_internal/selection/src/styles/index.cssr.js +2 -2
- package/es/_internal/slot-machine/src/styles/index.cssr.js +4 -3
- package/es/_styles/global/index.cssr.js +2 -2
- package/es/alert/src/styles/index.cssr.js +2 -2
- package/es/anchor/src/styles/index.cssr.js +2 -2
- package/es/auto-complete/src/styles/index.cssr.js +2 -2
- package/es/avatar/src/Avatar.d.ts +4 -1
- package/es/avatar/src/Avatar.js +12 -13
- package/es/avatar/src/styles/index.cssr.js +2 -2
- package/es/avatar-group/index.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -2
- package/es/avatar-group/src/styles/avatar-group.cssr.js +2 -2
- package/es/back-top/src/styles/index.cssr.js +2 -2
- package/es/badge/src/styles/index.cssr.js +2 -2
- package/es/breadcrumb/src/styles/index.cssr.js +2 -2
- package/es/button/src/Button.d.ts +4 -1
- package/es/button/src/Button.js +3 -3
- package/es/button/src/styles/index.cssr.js +2 -2
- package/es/button-group/src/styles/index.cssr.js +0 -3
- package/es/button-group/src/styles/rtl.cssr.js +0 -2
- package/es/calendar/src/styles/index.cssr.js +2 -2
- package/es/card/src/styles/index.cssr.js +4 -3
- package/es/carousel/src/styles/index.cssr.js +2 -2
- package/es/cascader/src/Cascader.d.ts +8 -0
- package/es/cascader/src/Cascader.js +41 -2
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderOption.js +1 -7
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/es/cascader/src/CascaderSelectMenu.js +8 -4
- package/es/cascader/src/interface.d.ts +11 -1
- package/es/cascader/src/styles/index.cssr.js +2 -2
- package/es/checkbox/src/styles/index.cssr.js +8 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/src/styles/index.cssr.js +2 -2
- package/es/collapse/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +5 -5
- package/es/color-picker/src/ColorPicker.js +7 -1
- package/es/color-picker/src/styles/index.cssr.js +2 -2
- package/es/color-picker/src/utils.d.ts +1 -1
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -0
- package/es/config-provider/src/ConfigProvider.js +7 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +11 -0
- package/es/data-table/src/DataTable.js +7 -3
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +14 -6
- package/es/data-table/src/TableParts/Header.js +7 -5
- package/es/data-table/src/interface.d.ts +10 -2
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +21 -9
- package/es/date-picker/src/DatePicker.js +5 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/es/date-picker/src/styles/index.cssr.js +2 -2
- package/es/descriptions/src/styles/index.cssr.js +2 -2
- package/es/dialog/src/DialogEnvironment.d.ts +3 -0
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +3 -0
- package/es/dialog/src/styles/index.cssr.js +2 -2
- package/es/divider/src/styles/index.cssr.js +2 -2
- package/es/drawer/src/styles/index.cssr.js +2 -2
- package/es/dropdown/src/styles/index.cssr.js +2 -2
- package/es/dynamic-input/src/styles/index.cssr.js +2 -2
- package/es/dynamic-tags/src/styles/index.cssr.js +2 -2
- package/es/empty/src/styles/index.cssr.js +2 -2
- package/es/equation/index.d.ts +1 -0
- package/es/equation/index.js +1 -0
- package/es/equation/src/Equation.d.ts +18 -0
- package/es/equation/src/Equation.js +29 -0
- package/es/equation/styles/dark.d.ts +3 -0
- package/es/equation/styles/dark.js +8 -0
- package/es/equation/styles/index.d.ts +3 -0
- package/es/equation/styles/index.js +2 -0
- package/es/equation/styles/light.d.ts +6 -0
- package/es/equation/styles/light.js +8 -0
- package/es/form/src/FormItem.d.ts +3 -2
- package/es/form/src/FormItem.js +24 -7
- package/es/form/src/styles/form-item.cssr.js +5 -3
- package/es/gradient-text/src/styles/index.cssr.js +2 -2
- package/es/icon/src/styles/index.cssr.js +2 -2
- package/es/icon-wrapper/src/styles/index.cssr.js +2 -2
- package/es/image/src/Image.d.ts +4 -1
- package/es/image/src/Image.js +13 -7
- package/es/image/src/ImagePreview.d.ts +3 -2
- package/es/image/src/ImagePreview.js +41 -8
- package/es/image/src/interface.d.ts +5 -0
- package/es/image/src/interface.js +2 -0
- package/es/image/src/styles/index.cssr.js +2 -2
- package/es/input/src/Input.d.ts +3 -0
- package/es/input/src/Input.js +25 -6
- package/es/input/src/WordCount.js +2 -2
- package/es/input/src/interface.d.ts +1 -0
- package/es/input/src/styles/input-group-label.cssr.js +2 -2
- package/es/input/src/styles/input.cssr.js +11 -7
- package/es/layout/src/styles/layout-footer.cssr.js +2 -2
- package/es/layout/src/styles/layout-header.cssr.js +2 -2
- package/es/layout/src/styles/layout-sider.cssr.js +2 -2
- package/es/layout/src/styles/layout.cssr.js +2 -2
- package/es/list/src/styles/index.cssr.js +2 -2
- package/es/loading-bar/src/styles/index.cssr.js +2 -2
- package/es/locales/common/arDZ.d.ts +3 -0
- package/es/locales/common/arDZ.js +120 -0
- package/es/locales/common/deDE.js +2 -1
- package/es/locales/common/enGB.js +2 -1
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +2 -1
- package/es/locales/common/eo.js +2 -1
- package/es/locales/common/esAR.js +2 -1
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +2 -1
- package/es/locales/common/itIT.js +2 -1
- package/es/locales/common/jaJP.js +2 -1
- package/es/locales/common/koKR.js +2 -1
- package/es/locales/common/nbNO.js +2 -1
- package/es/locales/common/nlNL.js +2 -1
- package/es/locales/common/plPL.js +2 -1
- package/es/locales/common/ptBR.js +2 -1
- package/es/locales/common/ruRU.js +2 -1
- package/es/locales/common/skSK.js +2 -1
- package/es/locales/common/thTH.js +2 -1
- package/es/locales/common/trTR.d.ts +3 -0
- package/es/locales/common/trTR.js +121 -0
- package/es/locales/common/ukUA.js +2 -1
- package/es/locales/common/viVN.js +2 -1
- package/es/locales/common/zhCN.js +2 -1
- package/es/locales/common/zhTW.js +2 -1
- package/es/locales/date/arDZ.d.ts +3 -0
- package/es/locales/date/arDZ.js +6 -0
- package/es/locales/date/trTR.d.ts +3 -0
- package/es/locales/date/trTR.js +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/log/src/styles/index.cssr.js +2 -2
- package/es/mention/src/Mention.d.ts +6 -0
- package/es/mention/src/Mention.js +6 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/menu/src/styles/index.cssr.js +2 -3
- package/es/message/src/styles/index.cssr.js +2 -2
- package/es/modal/src/BodyWrapper.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.js +2 -2
- package/es/notification/src/styles/index.cssr.js +2 -3
- package/es/page-header/src/styles/index.cssr.js +2 -2
- package/es/pagination/src/Pagination.js +1 -1
- package/es/pagination/src/styles/index.cssr.js +2 -2
- package/es/popconfirm/src/styles/index.cssr.js +2 -2
- package/es/popover/src/styles/index.cssr.js +5 -5
- package/es/popselect/src/styles/index.cssr.js +2 -2
- package/es/progress/src/styles/index.cssr.js +2 -2
- package/es/radio/src/styles/radio-group.cssr.js +2 -2
- package/es/radio/src/styles/radio.cssr.js +2 -2
- package/es/rate/src/styles/index.cssr.js +2 -2
- package/es/result/src/styles/index.cssr.js +2 -2
- package/es/select/src/Select.js +1 -0
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/styles/index.cssr.js +2 -2
- package/es/slider/src/styles/index.cssr.js +2 -2
- package/es/spin/src/styles/index.cssr.js +2 -2
- package/es/statistic/src/styles/index.cssr.js +2 -2
- package/es/steps/src/styles/index.cssr.js +2 -2
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/table/src/styles/index.cssr.js +2 -2
- package/es/tabs/src/Tabs.d.ts +7 -7
- package/es/tabs/src/styles/index.cssr.js +2 -2
- package/es/tag/src/styles/index.cssr.js +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/thing/src/styles/index.cssr.js +2 -2
- package/es/time-picker/src/styles/index.cssr.js +2 -2
- package/es/timeline/src/styles/index.cssr.js +6 -3
- package/es/transfer/src/Transfer.d.ts +13 -0
- package/es/transfer/src/Transfer.js +6 -2
- package/es/transfer/src/TransferListItem.d.ts +2 -1
- package/es/transfer/src/TransferListItem.js +5 -4
- package/es/transfer/src/interface.d.ts +1 -0
- package/es/transfer/src/styles/index.cssr.js +2 -2
- package/es/transfer/src/use-transfer-data.d.ts +1 -0
- package/es/transfer/src/use-transfer-data.js +13 -4
- package/es/tree/src/Tree.d.ts +60 -30
- package/es/tree/src/Tree.js +70 -24
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/es/tree/src/TreeNodeSwitcher.js +7 -5
- package/es/tree/src/interface.d.ts +12 -1
- package/es/tree/src/styles/index.cssr.js +3 -2
- package/es/tree/src/utils.d.ts +6 -0
- package/es/tree/src/utils.js +4 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +38 -19
- package/es/tree-select/src/TreeSelect.js +75 -48
- package/es/tree-select/src/interface.d.ts +33 -2
- package/es/tree-select/src/styles/index.cssr.js +2 -2
- package/es/typography/src/styles/a.cssr.js +2 -2
- package/es/typography/src/styles/blockquote.cssr.js +2 -2
- package/es/typography/src/styles/header.cssr.js +2 -2
- package/es/typography/src/styles/hr.cssr.js +2 -2
- package/es/typography/src/styles/list.cssr.js +2 -2
- package/es/typography/src/styles/p.cssr.js +2 -2
- package/es/typography/src/styles/text.cssr.js +2 -2
- package/es/upload/index.d.ts +1 -1
- package/es/upload/src/Upload.d.ts +77 -1
- package/es/upload/src/Upload.js +28 -11
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadFile.js +9 -10
- package/es/upload/src/interface.d.ts +7 -3
- package/es/upload/src/utils.d.ts +2 -2
- package/es/upload/src/utils.js +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +2 -5
- package/lib/_internal/close/src/styles/index.cssr.js +2 -4
- package/lib/_internal/icon/src/styles/index.cssr.js +0 -2
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/loading/index.d.ts +1 -0
- package/lib/_internal/loading/src/Loading.d.ts +26 -14
- package/lib/_internal/loading/src/Loading.js +17 -20
- package/lib/_internal/loading/src/styles/index.cssr.js +0 -3
- package/lib/_internal/menu-mask/src/styles/index.cssr.js +0 -3
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +2 -5
- package/lib/_internal/scrollbar/src/styles/rtl.cssr.js +0 -2
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -5
- package/lib/_internal/selection/src/Selection.js +5 -5
- package/lib/_internal/selection/src/styles/index.cssr.js +2 -4
- package/lib/_internal/slot-machine/src/styles/index.cssr.js +4 -7
- package/lib/_internal/wave/src/styles/index.cssr.js +0 -2
- package/lib/_styles/global/index.cssr.js +2 -6
- package/lib/_styles/transitions/fade-down.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-height-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-scale-up.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/fade-in.cssr.js +0 -6
- package/lib/_styles/transitions/fade-up-width-expand.cssr.js +0 -6
- package/lib/_styles/transitions/icon-switch.cssr.js +0 -6
- package/lib/affix/src/styles/index.cssr.js +0 -2
- package/lib/alert/src/styles/index.cssr.js +2 -5
- package/lib/alert/src/styles/rtl.cssr.js +0 -2
- package/lib/anchor/src/styles/index.cssr.js +2 -4
- package/lib/auto-complete/src/styles/index.cssr.js +2 -5
- package/lib/avatar/src/Avatar.d.ts +4 -1
- package/lib/avatar/src/Avatar.js +12 -13
- package/lib/avatar/src/styles/index.cssr.js +2 -4
- package/lib/avatar-group/index.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +7 -7
- package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +2 -4
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +2 -4
- package/lib/back-top/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/index.cssr.js +2 -5
- package/lib/badge/src/styles/rtl.cssr.js +0 -2
- package/lib/breadcrumb/src/styles/index.cssr.js +2 -4
- package/lib/button/src/Button.d.ts +4 -1
- package/lib/button/src/Button.js +3 -3
- package/lib/button/src/styles/index.cssr.js +2 -7
- package/lib/button/src/styles/rtl.cssr.js +0 -2
- package/lib/button-group/src/styles/index.cssr.js +0 -5
- package/lib/button-group/src/styles/rtl.cssr.js +0 -4
- package/lib/calendar/src/styles/index.cssr.js +2 -4
- package/lib/card/src/styles/index.cssr.js +4 -5
- package/lib/card/src/styles/rtl.cssr.js +0 -2
- package/lib/carousel/src/styles/index.cssr.js +2 -4
- package/lib/cascader/src/Cascader.d.ts +8 -0
- package/lib/cascader/src/Cascader.js +41 -2
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.js +1 -7
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -0
- package/lib/cascader/src/CascaderSelectMenu.js +8 -4
- package/lib/cascader/src/interface.d.ts +11 -1
- package/lib/cascader/src/styles/index.cssr.js +2 -5
- package/lib/checkbox/src/styles/index.cssr.js +8 -8
- package/lib/checkbox/src/styles/rtl.cssr.js +0 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/src/styles/index.cssr.js +2 -4
- package/lib/collapse/src/styles/index.cssr.js +2 -5
- package/lib/collapse/src/styles/rtl.cssr.js +0 -2
- package/lib/collapse-transition/src/styles/index.cssr.js +0 -3
- package/lib/collapse-transition/src/styles/rtl.cssr.js +0 -2
- package/lib/color-picker/src/ColorPicker.d.ts +5 -5
- package/lib/color-picker/src/ColorPicker.js +7 -1
- package/lib/color-picker/src/styles/index.cssr.js +2 -5
- package/lib/color-picker/src/utils.d.ts +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -0
- package/lib/config-provider/src/ConfigProvider.js +7 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +11 -0
- package/lib/data-table/src/DataTable.js +6 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +13 -5
- package/lib/data-table/src/TableParts/Header.js +7 -5
- package/lib/data-table/src/interface.d.ts +10 -2
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +21 -13
- package/lib/date-picker/src/DatePicker.js +5 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -6
- package/lib/date-picker/src/styles/index.cssr.js +2 -5
- package/lib/descriptions/src/styles/index.cssr.js +2 -4
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -0
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +3 -0
- package/lib/dialog/src/styles/index.cssr.js +2 -4
- package/lib/divider/src/styles/index.cssr.js +2 -4
- package/lib/drawer/src/styles/index.cssr.js +2 -9
- package/lib/drawer/src/styles/rtl.cssr.js +0 -2
- package/lib/dropdown/src/styles/index.cssr.js +2 -5
- package/lib/dynamic-input/src/styles/index.cssr.js +2 -4
- package/lib/dynamic-input/src/styles/rtl.cssr.js +0 -2
- package/lib/dynamic-tags/src/styles/index.cssr.js +2 -4
- package/lib/ellipsis/src/styles/index.cssr.js +0 -2
- package/lib/empty/src/styles/index.cssr.js +2 -4
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/index.js +6 -0
- package/lib/equation/src/Equation.d.ts +18 -0
- package/lib/equation/src/Equation.js +32 -0
- package/lib/equation/styles/dark.d.ts +3 -0
- package/lib/equation/styles/dark.js +10 -0
- package/lib/equation/styles/index.d.ts +3 -0
- package/lib/equation/styles/index.js +10 -0
- package/lib/equation/styles/light.d.ts +6 -0
- package/lib/equation/styles/light.js +12 -0
- package/lib/form/src/FormItem.d.ts +3 -2
- package/lib/form/src/FormItem.js +24 -7
- package/lib/form/src/styles/form-item.cssr.js +5 -6
- package/lib/form/src/styles/form.cssr.js +0 -2
- package/lib/gradient-text/src/styles/index.cssr.js +2 -4
- package/lib/icon/src/styles/index.cssr.js +2 -4
- package/lib/icon-wrapper/src/styles/index.cssr.js +2 -4
- package/lib/image/src/Image.d.ts +4 -1
- package/lib/image/src/Image.js +11 -5
- package/lib/image/src/ImagePreview.d.ts +3 -2
- package/lib/image/src/ImagePreview.js +39 -6
- package/lib/image/src/interface.d.ts +5 -0
- package/lib/image/src/interface.js +3 -1
- package/lib/image/src/styles/index.cssr.js +2 -6
- package/lib/input/src/Input.d.ts +3 -0
- package/lib/input/src/Input.js +25 -6
- package/lib/input/src/WordCount.js +2 -2
- package/lib/input/src/interface.d.ts +1 -0
- package/lib/input/src/styles/input-group-label.cssr.js +2 -4
- package/lib/input/src/styles/input-group.cssr.js +0 -2
- package/lib/input/src/styles/input.cssr.js +11 -9
- package/lib/input/src/styles/rtl.cssr.js +0 -2
- package/lib/input-number/src/styles/input-number.cssr.js +0 -2
- package/lib/input-number/src/styles/rtl.cssr.js +0 -2
- package/lib/layout/src/styles/layout-footer.cssr.js +2 -4
- package/lib/layout/src/styles/layout-header.cssr.js +2 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +2 -4
- package/lib/layout/src/styles/layout.cssr.js +2 -4
- package/lib/legacy-grid/src/styles/index.cssr.js +0 -2
- package/lib/legacy-grid/src/styles/rtl.cssr.js +0 -2
- package/lib/legacy-transfer/src/styles/index.cssr.js +0 -3
- package/lib/list/src/styles/index.cssr.js +2 -4
- package/lib/list/src/styles/rtl.cssr.js +0 -2
- package/lib/loading-bar/src/styles/index.cssr.js +2 -5
- package/lib/locales/common/arDZ.d.ts +3 -0
- package/lib/locales/common/arDZ.js +122 -0
- package/lib/locales/common/deDE.js +2 -1
- package/lib/locales/common/enGB.js +2 -1
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +2 -1
- package/lib/locales/common/eo.js +2 -1
- package/lib/locales/common/esAR.js +2 -1
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +2 -1
- package/lib/locales/common/itIT.js +2 -1
- package/lib/locales/common/jaJP.js +2 -1
- package/lib/locales/common/koKR.js +2 -1
- package/lib/locales/common/nbNO.js +2 -1
- package/lib/locales/common/nlNL.js +2 -1
- package/lib/locales/common/plPL.js +2 -1
- package/lib/locales/common/ptBR.js +2 -1
- package/lib/locales/common/ruRU.js +2 -1
- package/lib/locales/common/skSK.js +2 -1
- package/lib/locales/common/thTH.js +2 -1
- package/lib/locales/common/trTR.d.ts +3 -0
- package/lib/locales/common/trTR.js +123 -0
- package/lib/locales/common/ukUA.js +2 -1
- package/lib/locales/common/viVN.js +2 -1
- package/lib/locales/common/zhCN.js +2 -1
- package/lib/locales/common/zhTW.js +2 -1
- package/lib/locales/date/arDZ.d.ts +3 -0
- package/lib/locales/date/arDZ.js +11 -0
- package/lib/locales/date/trTR.d.ts +3 -0
- package/lib/locales/date/trTR.js +11 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/log/src/styles/index.cssr.js +2 -5
- package/lib/mention/src/Mention.d.ts +6 -0
- package/lib/mention/src/Mention.js +6 -1
- package/lib/mention/src/styles/index.cssr.js +2 -5
- package/lib/menu/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/index.cssr.js +2 -6
- package/lib/message/src/styles/rtl.cssr.js +0 -2
- package/lib/modal/src/BodyWrapper.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +2 -6
- package/lib/notification/src/styles/index.cssr.js +2 -5
- package/lib/notification/src/styles/rtl.cssr.js +0 -2
- package/lib/page-header/src/styles/index.cssr.js +2 -4
- package/lib/page-header/src/styles/rtl.cssr.js +0 -2
- package/lib/pagination/src/Pagination.js +1 -1
- package/lib/pagination/src/styles/index.cssr.js +2 -4
- package/lib/pagination/src/styles/rtl.cssr.js +0 -2
- package/lib/popconfirm/src/styles/index.cssr.js +2 -4
- package/lib/popover/src/styles/index.cssr.js +5 -8
- package/lib/popselect/src/styles/index.cssr.js +2 -4
- package/lib/progress/src/styles/index.cssr.js +2 -4
- package/lib/radio/src/styles/radio-group.cssr.js +2 -4
- package/lib/radio/src/styles/radio.cssr.js +2 -4
- package/lib/radio/src/styles/rtl.cssr.js +0 -2
- package/lib/rate/src/styles/index.cssr.js +2 -4
- package/lib/result/src/styles/index.cssr.js +2 -4
- package/lib/select/src/Select.js +1 -0
- package/lib/select/src/styles/index.cssr.js +2 -5
- package/lib/skeleton/src/styles/index.cssr.js +2 -4
- package/lib/slider/src/styles/index.cssr.js +2 -5
- package/lib/space/src/styles/rtl.cssr.js +0 -2
- package/lib/spin/src/styles/index.cssr.js +2 -5
- package/lib/statistic/src/styles/index.cssr.js +2 -4
- package/lib/statistic/src/styles/rtl.cssr.js +0 -2
- package/lib/steps/src/styles/index.cssr.js +2 -5
- package/lib/steps/src/styles/rtl.cssr.js +0 -2
- package/lib/switch/src/styles/index.cssr.js +2 -5
- package/lib/table/src/styles/index.cssr.js +2 -4
- package/lib/table/src/styles/rtl.cssr.js +0 -2
- package/lib/tabs/src/Tabs.d.ts +7 -7
- package/lib/tabs/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/index.cssr.js +2 -4
- package/lib/tag/src/styles/rtl.cssr.js +0 -2
- package/lib/themes/dark.js +100 -98
- package/lib/themes/light.js +100 -98
- package/lib/thing/src/styles/index.cssr.js +2 -4
- package/lib/thing/src/styles/rtl.cssr.js +0 -2
- package/lib/time-picker/src/styles/index.cssr.js +2 -5
- package/lib/timeline/src/styles/index.cssr.js +6 -5
- package/lib/transfer/src/Transfer.d.ts +13 -0
- package/lib/transfer/src/Transfer.js +6 -2
- package/lib/transfer/src/TransferListItem.d.ts +2 -1
- package/lib/transfer/src/TransferListItem.js +5 -4
- package/lib/transfer/src/interface.d.ts +1 -0
- package/lib/transfer/src/styles/index.cssr.js +2 -4
- package/lib/transfer/src/use-transfer-data.d.ts +1 -0
- package/lib/transfer/src/use-transfer-data.js +13 -4
- package/lib/tree/src/Tree.d.ts +60 -30
- package/lib/tree/src/Tree.js +69 -23
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +3 -0
- package/lib/tree/src/TreeNodeSwitcher.js +7 -5
- package/lib/tree/src/interface.d.ts +12 -1
- package/lib/tree/src/styles/index.cssr.js +3 -6
- package/lib/tree/src/styles/rtl.cssr.js +0 -2
- package/lib/tree/src/utils.d.ts +6 -0
- package/lib/tree/src/utils.js +6 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +38 -19
- package/lib/tree-select/src/TreeSelect.js +75 -48
- package/lib/tree-select/src/interface.d.ts +33 -2
- package/lib/tree-select/src/styles/index.cssr.js +2 -5
- package/lib/typography/src/styles/a.cssr.js +2 -4
- package/lib/typography/src/styles/blockquote.cssr.js +2 -4
- package/lib/typography/src/styles/header.cssr.js +2 -4
- package/lib/typography/src/styles/hr.cssr.js +2 -4
- package/lib/typography/src/styles/list.cssr.js +2 -4
- package/lib/typography/src/styles/p.cssr.js +2 -4
- package/lib/typography/src/styles/text.cssr.js +2 -4
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/src/Upload.d.ts +77 -1
- package/lib/upload/src/Upload.js +27 -10
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadFile.js +8 -9
- package/lib/upload/src/interface.d.ts +7 -3
- package/lib/upload/src/styles/index.cssr.js +0 -4
- package/lib/upload/src/utils.d.ts +2 -2
- package/lib/upload/src/utils.js +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/styles/index.cssr.js +0 -2
- package/package.json +13 -10
- package/volar.d.ts +1 -0
- package/web-types.json +236 -57
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.34.0",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"name": "status",
|
|
473
473
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/auto-complete",
|
|
474
474
|
"type": "'success' | 'warning' | 'error'",
|
|
475
|
-
"description": "
|
|
475
|
+
"description": "Validation status.",
|
|
476
476
|
"default": "undefined",
|
|
477
477
|
"description-sections": {
|
|
478
478
|
"since": "2.27.0"
|
|
@@ -643,6 +643,16 @@
|
|
|
643
643
|
"since": "2.33.4"
|
|
644
644
|
}
|
|
645
645
|
},
|
|
646
|
+
{
|
|
647
|
+
"name": "img-props",
|
|
648
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/avatar",
|
|
649
|
+
"type": "object",
|
|
650
|
+
"description": "The props of the img element inside the component.",
|
|
651
|
+
"default": "undefined",
|
|
652
|
+
"description-sections": {
|
|
653
|
+
"since": "2.34.0"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
646
656
|
{
|
|
647
657
|
"name": "color",
|
|
648
658
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/avatar",
|
|
@@ -1115,6 +1125,16 @@
|
|
|
1115
1125
|
"description": "Whether the button's border is a dashed line.",
|
|
1116
1126
|
"default": "false"
|
|
1117
1127
|
},
|
|
1128
|
+
{
|
|
1129
|
+
"name": "render-icon",
|
|
1130
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/button",
|
|
1131
|
+
"type": "() => VNodeChild",
|
|
1132
|
+
"description": "Render function that renders button icon.",
|
|
1133
|
+
"default": "undefined",
|
|
1134
|
+
"description-sections": {
|
|
1135
|
+
"since": "2.34.0"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1118
1138
|
{
|
|
1119
1139
|
"name": "icon-placement",
|
|
1120
1140
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/button",
|
|
@@ -1392,6 +1412,13 @@
|
|
|
1392
1412
|
"description-sections": {
|
|
1393
1413
|
"since": "2.24.0"
|
|
1394
1414
|
}
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"name": "internal-actions",
|
|
1418
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/color-picker",
|
|
1419
|
+
"type": "Array<'redo' | 'undo' | 'clear'>",
|
|
1420
|
+
"description": "Set of built-in operations.",
|
|
1421
|
+
"default": "undefined"
|
|
1395
1422
|
}
|
|
1396
1423
|
],
|
|
1397
1424
|
"js": {
|
|
@@ -1902,6 +1929,14 @@
|
|
|
1902
1929
|
"description-sections": {
|
|
1903
1930
|
"since": "2.22.0"
|
|
1904
1931
|
}
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"name": "not-found",
|
|
1935
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/cascader",
|
|
1936
|
+
"description": "Data not found slot when searching.",
|
|
1937
|
+
"description-sections": {
|
|
1938
|
+
"since": "2.34.0"
|
|
1939
|
+
}
|
|
1905
1940
|
}
|
|
1906
1941
|
],
|
|
1907
1942
|
"attributes": [],
|
|
@@ -2151,7 +2186,7 @@
|
|
|
2151
2186
|
"name": "status",
|
|
2152
2187
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/cascader",
|
|
2153
2188
|
"type": "'success' | 'warning' | 'error'",
|
|
2154
|
-
"description": "
|
|
2189
|
+
"description": "Validation status.",
|
|
2155
2190
|
"default": "undefined",
|
|
2156
2191
|
"description-sections": {
|
|
2157
2192
|
"since": "2.27.0"
|
|
@@ -2415,7 +2450,7 @@
|
|
|
2415
2450
|
},
|
|
2416
2451
|
{
|
|
2417
2452
|
"name": "NCode",
|
|
2418
|
-
"description": "## Prequisites\n\n<n-alert title=\"Note\" type=\"warning\" style=\"margin-bottom: 16px;\">\n Due to package size, Naive UI doesn't include highlight.js. If you want to use Code, make sure you have set highlightjs before using it.\n</n-alert>\n\nThe following code shows how to set hljs of Code. Importing highlight.js on demand is recommonded, because it can significantly reduce bundle size of your app.\n\n```html\n<template>\n <n-config-provider :hljs=\"hljs\">\n <my-app />\n </n-config-provider>\n</template>\n\n<script>\n import { defineComponent } from 'vue'\n import hljs from 'highlight.js/lib/core'\n import javascript from 'highlight.js/lib/languages/javascript'\n\n hljs.registerLanguage('javascript', javascript)\n\n export default defineComponent({\n setup() {\n return {\n hljs\n }\n }\n })\n</script>\n```",
|
|
2453
|
+
"description": "## Prequisites\n\n<n-alert title=\"Note\" type=\"warning\" style=\"margin-bottom: 16px;\" :bordered=\"false\">\n Due to package size, Naive UI doesn't include highlight.js. If you want to use Code, make sure you have set highlightjs before using it.\n</n-alert>\n\nThe following code shows how to set hljs of Code. Importing highlight.js on demand is recommonded, because it can significantly reduce bundle size of your app.\n\n```html\n<template>\n <n-config-provider :hljs=\"hljs\">\n <my-app />\n </n-config-provider>\n</template>\n\n<script>\n import { defineComponent } from 'vue'\n import hljs from 'highlight.js/lib/core'\n import javascript from 'highlight.js/lib/languages/javascript'\n\n hljs.registerLanguage('javascript', javascript)\n\n export default defineComponent({\n setup() {\n return {\n hljs\n }\n }\n })\n</script>\n```",
|
|
2419
2454
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/code",
|
|
2420
2455
|
"source": {
|
|
2421
2456
|
"symbol": "NCode"
|
|
@@ -2751,6 +2786,16 @@
|
|
|
2751
2786
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/config-provider",
|
|
2752
2787
|
"type": "object"
|
|
2753
2788
|
},
|
|
2789
|
+
{
|
|
2790
|
+
"name": "katex",
|
|
2791
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/config-provider",
|
|
2792
|
+
"type": "object",
|
|
2793
|
+
"description": "Katex object for `n-equation`.",
|
|
2794
|
+
"default": "undefined",
|
|
2795
|
+
"description-sections": {
|
|
2796
|
+
"since": "2.34.0"
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2754
2799
|
{
|
|
2755
2800
|
"name": "component-options",
|
|
2756
2801
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/config-provider",
|
|
@@ -2985,6 +3030,15 @@
|
|
|
2985
3030
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
2986
3031
|
"type": "()",
|
|
2987
3032
|
"description": "Custom description when data of table is empty."
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"name": "loading",
|
|
3036
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
3037
|
+
"type": "()",
|
|
3038
|
+
"description": "Custom description when data of table is loading.",
|
|
3039
|
+
"description-sections": {
|
|
3040
|
+
"since": "2.34.0"
|
|
3041
|
+
}
|
|
2988
3042
|
}
|
|
2989
3043
|
],
|
|
2990
3044
|
"attributes": [],
|
|
@@ -3245,6 +3299,11 @@
|
|
|
3245
3299
|
"since": "2.28.3"
|
|
3246
3300
|
}
|
|
3247
3301
|
},
|
|
3302
|
+
{
|
|
3303
|
+
"name": "scrollbar-props",
|
|
3304
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
3305
|
+
"type": "object"
|
|
3306
|
+
},
|
|
3248
3307
|
{
|
|
3249
3308
|
"name": "render-cell",
|
|
3250
3309
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
@@ -3264,6 +3323,16 @@
|
|
|
3264
3323
|
"description-sections": {
|
|
3265
3324
|
"since": "2.32.2"
|
|
3266
3325
|
}
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
"name": "spin-props",
|
|
3329
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/data-table",
|
|
3330
|
+
"type": "{ strokeWidth?: number, stroke?: string }",
|
|
3331
|
+
"description": "Table spin's props.",
|
|
3332
|
+
"default": "undefined",
|
|
3333
|
+
"description-sections": {
|
|
3334
|
+
"since": "2.34.0"
|
|
3335
|
+
}
|
|
3267
3336
|
}
|
|
3268
3337
|
],
|
|
3269
3338
|
"js": {
|
|
@@ -3831,7 +3900,7 @@
|
|
|
3831
3900
|
},
|
|
3832
3901
|
{
|
|
3833
3902
|
"name": "NDialog",
|
|
3834
|
-
"description": "Before taking action, please confirm.\n\n<n-alert title=\"Prerequisite\" type=\"warning\">\n If you want to use dialog, you need to wrap the component where you call related methods inside <n-text code>n-dialog-provider</n-text> and use <n-text code>useDialog</n-text> to get the API.\n</n-alert>\n\nFor example:\n\n```html\n<!-- App.vue -->\n<n-dialog-provider>\n <content />\n</n-dialog-provider>\n```\n\n```js\nimport { defineComponent } from 'vue'\nimport { useDialog } from 'naive-ui'\n\n// content\nexport default defineComponent({\n setup () {\n const dialog = useDialog()\n return {\n warning () {\n dialog.warning(options)\n }\n }\n }\n})\n```",
|
|
3903
|
+
"description": "Before taking action, please confirm.\n\n<n-alert title=\"Prerequisite\" type=\"warning\" :bordered=\"false\">\n If you want to use dialog, you need to wrap the component where you call related methods inside <n-text code>n-dialog-provider</n-text> and use <n-text code>useDialog</n-text> to get the API.\n</n-alert>\n\nFor example:\n\n```html\n<!-- App.vue -->\n<n-dialog-provider>\n <content />\n</n-dialog-provider>\n```\n\n```js\nimport { defineComponent } from 'vue'\nimport { useDialog } from 'naive-ui'\n\n// content\nexport default defineComponent({\n setup () {\n const dialog = useDialog()\n return {\n warning () {\n dialog.warning(options)\n }\n }\n }\n})\n```",
|
|
3835
3904
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/dialog",
|
|
3836
3905
|
"source": {
|
|
3837
3906
|
"symbol": "NDialog"
|
|
@@ -4057,7 +4126,7 @@
|
|
|
4057
4126
|
},
|
|
4058
4127
|
{
|
|
4059
4128
|
"name": "NDrawer",
|
|
4060
|
-
"description": "I think it is similar with modal, with a bit difference on placement.\n\n<n-alert title=\"Caveat\" type=\"warning\">\n If you need to use <n-text code>n-drawer-content</n-text>, you should keep <n-text code>n-drawer</n-text>'s <n-text code>native-scrollbar</n-text> prop as <n-text code>true</n-text>.\n</n-alert>",
|
|
4129
|
+
"description": "I think it is similar with modal, with a bit difference on placement.\n\n<n-alert title=\"Caveat\" type=\"warning\" :bordered=\"false\">\n If you need to use <n-text code>n-drawer-content</n-text>, you should keep <n-text code>n-drawer</n-text>'s <n-text code>native-scrollbar</n-text> prop as <n-text code>true</n-text>.\n</n-alert>",
|
|
4061
4130
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/drawer",
|
|
4062
4131
|
"source": {
|
|
4063
4132
|
"symbol": "NDrawer"
|
|
@@ -5213,7 +5282,7 @@
|
|
|
5213
5282
|
},
|
|
5214
5283
|
{
|
|
5215
5284
|
"name": "NForm",
|
|
5216
|
-
"description": "<!--single-column-->\n\nThe element to collect and validate data.\n\n<n-alert type=\"warning\" title=\"Caveat\">\n If you want to apply required rule for a form item with number typed value, you need to set <n-text code>`type: number`</n-text> in the rule object.\n</n-alert>",
|
|
5285
|
+
"description": "<!--single-column-->\n\nThe element to collect and validate data.\n\n<n-alert type=\"warning\" title=\"Caveat\" :bordered=\"false\">\n If you want to apply required rule for a form item with number typed value, you need to set <n-text code>`type: number`</n-text> in the rule object.\n</n-alert>",
|
|
5217
5286
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/form",
|
|
5218
5287
|
"source": {
|
|
5219
5288
|
"symbol": "NForm"
|
|
@@ -6120,6 +6189,7 @@
|
|
|
6120
6189
|
},
|
|
6121
6190
|
{
|
|
6122
6191
|
"name": "NGrid",
|
|
6192
|
+
"description": "<!--single-column-->\n\nBased on CSS Grid. Responsive. Keep away from IE.\n\n<n-alert type=\"warning\" title=\"Caveats\" :bordered=\"false\">\nDue to technical limitation, <n-text code>n-grid-item</n-text> can't be encapsulated in another component.\n</n-alert>",
|
|
6123
6193
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/grid",
|
|
6124
6194
|
"source": {
|
|
6125
6195
|
"symbol": "NGrid"
|
|
@@ -6472,6 +6542,16 @@
|
|
|
6472
6542
|
"description": "The props of the img element inside the component.",
|
|
6473
6543
|
"default": "undefined"
|
|
6474
6544
|
},
|
|
6545
|
+
{
|
|
6546
|
+
"name": "previewed-img-props",
|
|
6547
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/image",
|
|
6548
|
+
"type": "object",
|
|
6549
|
+
"description": "DOM attributes of img element in preview mode.",
|
|
6550
|
+
"default": "undefined",
|
|
6551
|
+
"description-sections": {
|
|
6552
|
+
"since": "2.34.0"
|
|
6553
|
+
}
|
|
6554
|
+
},
|
|
6475
6555
|
{
|
|
6476
6556
|
"name": "lazy",
|
|
6477
6557
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/image",
|
|
@@ -6851,11 +6931,21 @@
|
|
|
6851
6931
|
"since": "2.32.2"
|
|
6852
6932
|
}
|
|
6853
6933
|
},
|
|
6934
|
+
{
|
|
6935
|
+
"name": "count-graphemes",
|
|
6936
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/input",
|
|
6937
|
+
"type": "(value: string) => number",
|
|
6938
|
+
"description": "Count graphemes of input value. If it's set, native `maxlength` and `minlength` won't be used.",
|
|
6939
|
+
"default": "undefined",
|
|
6940
|
+
"description-sections": {
|
|
6941
|
+
"since": "2.34.0"
|
|
6942
|
+
}
|
|
6943
|
+
},
|
|
6854
6944
|
{
|
|
6855
6945
|
"name": "status",
|
|
6856
6946
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/input",
|
|
6857
6947
|
"type": "'success' | 'warning' | 'error'",
|
|
6858
|
-
"description": "
|
|
6948
|
+
"description": "Validation status.",
|
|
6859
6949
|
"default": "undefined",
|
|
6860
6950
|
"description-sections": {
|
|
6861
6951
|
"since": "2.25.0"
|
|
@@ -7223,7 +7313,7 @@
|
|
|
7223
7313
|
"name": "status",
|
|
7224
7314
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/input-number",
|
|
7225
7315
|
"type": "'success' | 'warning' | 'error'",
|
|
7226
|
-
"description": "
|
|
7316
|
+
"description": "Validation status.",
|
|
7227
7317
|
"default": "undefined",
|
|
7228
7318
|
"description-sections": {
|
|
7229
7319
|
"since": "2.27.0"
|
|
@@ -7882,7 +7972,7 @@
|
|
|
7882
7972
|
},
|
|
7883
7973
|
{
|
|
7884
7974
|
"name": "NLog",
|
|
7885
|
-
"description": "<!--single-column-->\n\nIf you have some logs to show, use log.\n\n<n-alert title=\"Note\" type=\"warning\" style=\"margin-bottom: 16px;\">\n Due to package size, Naive UI doesn't include highlight.js. If you want highlight logs, make sure you have set highlightjs before using it.\n</n-alert>\n\nIn highlight demo, we defined a language called `naive-log` which will highlight all the numbers of line. The following code shows how we defined it. If you want to know more about highlight.js, see <n-a href=\"https://highlightjs.org/\" target=\"_blank\">highlight.js</n-a> and <n-a href=\"https://highlightjs.readthedocs.io/en/latest/index.html\" target=\"_blank\">highlight.js developer documentation</n-a>\n\n```html\n<template>\n <n-config-provider :hljs=\"hljs\">\n <my-app />\n </n-config-provider>\n</template>\n\n<script>\n import { defineComponent } from 'vue'\n import hljs from 'highlight.js/lib/core'\n\n hljs.registerLanguage('naive-log', () => ({\n contains: [\n {\n className: 'number',\n begin: /\\d+/\n }\n ]\n }))\n\n export default defineComponent({\n setup() {\n return {\n hljs\n }\n }\n })\n</script>\n```",
|
|
7975
|
+
"description": "<!--single-column-->\n\nIf you have some logs to show, use log.\n\n<n-alert title=\"Note\" type=\"warning\" style=\"margin-bottom: 16px;\" :bordered=\"false\">\n Due to package size, Naive UI doesn't include highlight.js. If you want highlight logs, make sure you have set highlightjs before using it.\n</n-alert>\n\nIn highlight demo, we defined a language called `naive-log` which will highlight all the numbers of line. The following code shows how we defined it. If you want to know more about highlight.js, see <n-a href=\"https://highlightjs.org/\" target=\"_blank\">highlight.js</n-a> and <n-a href=\"https://highlightjs.readthedocs.io/en/latest/index.html\" target=\"_blank\">highlight.js developer documentation</n-a>\n\n```html\n<template>\n <n-config-provider :hljs=\"hljs\">\n <my-app />\n </n-config-provider>\n</template>\n\n<script>\n import { defineComponent } from 'vue'\n import hljs from 'highlight.js/lib/core'\n\n hljs.registerLanguage('naive-log', () => ({\n contains: [\n {\n className: 'number',\n begin: /\\d+/\n }\n ]\n }))\n\n export default defineComponent({\n setup() {\n return {\n hljs\n }\n }\n })\n</script>\n```",
|
|
7886
7976
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/log",
|
|
7887
7977
|
"source": {
|
|
7888
7978
|
"symbol": "NLog"
|
|
@@ -8084,7 +8174,7 @@
|
|
|
8084
8174
|
"name": "default-expand-all",
|
|
8085
8175
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/menu",
|
|
8086
8176
|
"type": "boolean",
|
|
8087
|
-
"description": "Whether to expand all menus.",
|
|
8177
|
+
"description": "Whether to expand all menus. When options is set asynchronously, you can set `watch-props` to `['defaultExpandedKeys']` to make it work.",
|
|
8088
8178
|
"default": "false"
|
|
8089
8179
|
},
|
|
8090
8180
|
{
|
|
@@ -8396,7 +8486,7 @@
|
|
|
8396
8486
|
"name": "status",
|
|
8397
8487
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention",
|
|
8398
8488
|
"type": "'success' | 'warning' | 'error'",
|
|
8399
|
-
"description": "
|
|
8489
|
+
"description": "Validation status.",
|
|
8400
8490
|
"default": "undefined",
|
|
8401
8491
|
"description-sections": {
|
|
8402
8492
|
"since": "2.27.0"
|
|
@@ -8405,6 +8495,14 @@
|
|
|
8405
8495
|
],
|
|
8406
8496
|
"js": {
|
|
8407
8497
|
"events": [
|
|
8498
|
+
{
|
|
8499
|
+
"name": "update-show",
|
|
8500
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention"
|
|
8501
|
+
},
|
|
8502
|
+
{
|
|
8503
|
+
"name": "update-show",
|
|
8504
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention"
|
|
8505
|
+
},
|
|
8408
8506
|
{
|
|
8409
8507
|
"name": "update-value",
|
|
8410
8508
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention"
|
|
@@ -8441,6 +8539,16 @@
|
|
|
8441
8539
|
"description": "Triggered when the input box loses focus.",
|
|
8442
8540
|
"default": "undefined"
|
|
8443
8541
|
},
|
|
8542
|
+
{
|
|
8543
|
+
"name": "update:show",
|
|
8544
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention",
|
|
8545
|
+
"type": "(show: boolean) => void",
|
|
8546
|
+
"description": "Callback when the selection panel of mentions is shown or hidden.",
|
|
8547
|
+
"default": "undefined",
|
|
8548
|
+
"description-sections": {
|
|
8549
|
+
"since": "2.34.0"
|
|
8550
|
+
}
|
|
8551
|
+
},
|
|
8444
8552
|
{
|
|
8445
8553
|
"name": "update:value",
|
|
8446
8554
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/mention",
|
|
@@ -10921,7 +11029,7 @@
|
|
|
10921
11029
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
10922
11030
|
"type": "string",
|
|
10923
11031
|
"description": "Field name of option value.",
|
|
10924
|
-
"default": "'
|
|
11032
|
+
"default": "'value'",
|
|
10925
11033
|
"description-sections": {
|
|
10926
11034
|
"since": "2.29.1"
|
|
10927
11035
|
}
|
|
@@ -10931,7 +11039,7 @@
|
|
|
10931
11039
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
10932
11040
|
"type": "string",
|
|
10933
11041
|
"description": "Field name of group option children.",
|
|
10934
|
-
"default": "'
|
|
11042
|
+
"default": "'children'",
|
|
10935
11043
|
"description-sections": {
|
|
10936
11044
|
"since": "2.29.1"
|
|
10937
11045
|
}
|
|
@@ -11003,7 +11111,7 @@
|
|
|
11003
11111
|
"name": "status",
|
|
11004
11112
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
11005
11113
|
"type": "'success' | 'warning' | 'error'",
|
|
11006
|
-
"description": "
|
|
11114
|
+
"description": "Validation status.",
|
|
11007
11115
|
"default": "undefined",
|
|
11008
11116
|
"description-sections": {
|
|
11009
11117
|
"since": "2.27.0"
|
|
@@ -11031,7 +11139,7 @@
|
|
|
11031
11139
|
"name": "create",
|
|
11032
11140
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/select",
|
|
11033
11141
|
"type": "(label: string) => SelectOption",
|
|
11034
|
-
"description": "How to create an option when you type in a custom option. Note that `filter` will be applied to the created option too. And you'd better make sure that the value of the created option is not the same as any other option.",
|
|
11142
|
+
"description": "How to create an option when you type in a custom option. Note that `filter` will be applied to the created option too. And you'd better make sure that the value of the created option is not the same as any other option. Should be used with `tag` prop.",
|
|
11035
11143
|
"default": "label => ({ label, value: label })"
|
|
11036
11144
|
},
|
|
11037
11145
|
{
|
|
@@ -11764,7 +11872,7 @@
|
|
|
11764
11872
|
{
|
|
11765
11873
|
"name": "value",
|
|
11766
11874
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
11767
|
-
"type": "boolean",
|
|
11875
|
+
"type": "string | number | boolean | undefined",
|
|
11768
11876
|
"description": "Value when being set manually.",
|
|
11769
11877
|
"default": "undefined"
|
|
11770
11878
|
},
|
|
@@ -11806,7 +11914,9 @@
|
|
|
11806
11914
|
{
|
|
11807
11915
|
"name": "unchecked-value",
|
|
11808
11916
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
11809
|
-
"type": "string |
|
|
11917
|
+
"type": "string | boolean | number",
|
|
11918
|
+
"description": "Value of checked state.",
|
|
11919
|
+
"default": "false"
|
|
11810
11920
|
},
|
|
11811
11921
|
{
|
|
11812
11922
|
"name": "rail-style",
|
|
@@ -11824,27 +11934,6 @@
|
|
|
11824
11934
|
"description-sections": {
|
|
11825
11935
|
"since": "2.28.3"
|
|
11826
11936
|
}
|
|
11827
|
-
},
|
|
11828
|
-
{
|
|
11829
|
-
"name": "checked-style",
|
|
11830
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
11831
|
-
"type": "string",
|
|
11832
|
-
"description": "Style of the checked state.",
|
|
11833
|
-
"default": "undefined"
|
|
11834
|
-
},
|
|
11835
|
-
{
|
|
11836
|
-
"name": "unchecked-color",
|
|
11837
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
11838
|
-
"type": "string",
|
|
11839
|
-
"description": "Background of unchecked state.",
|
|
11840
|
-
"default": "undefined"
|
|
11841
|
-
},
|
|
11842
|
-
{
|
|
11843
|
-
"name": "unchecked-style",
|
|
11844
|
-
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/switch",
|
|
11845
|
-
"type": "string | boolean | number",
|
|
11846
|
-
"description": "Style of the unchecked state.",
|
|
11847
|
-
"default": "false"
|
|
11848
11937
|
}
|
|
11849
11938
|
],
|
|
11850
11939
|
"js": {
|
|
@@ -11995,7 +12084,7 @@
|
|
|
11995
12084
|
},
|
|
11996
12085
|
{
|
|
11997
12086
|
"name": "NTabs",
|
|
11998
|
-
"description": "Switch contents in same area.\n\n<n-alert type=\"warning\" title=\"Note\">\n <n-text code>n-tabs</n-text> will extract default tab value from default slot, so there would be a vue slot warning. If you don't want to see the warning, you should give component a <n-text code>default-value</n-text>.\n</n-alert>",
|
|
12087
|
+
"description": "Switch contents in same area.\n\n<n-alert type=\"warning\" title=\"Note\" :bordered=\"false\">\n <n-text code>n-tabs</n-text> will extract default tab value from default slot, so there would be a vue slot warning. If you don't want to see the warning, you should give component a <n-text code>default-value</n-text>.\n</n-alert>",
|
|
11999
12088
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tabs",
|
|
12000
12089
|
"source": {
|
|
12001
12090
|
"symbol": "NTabs"
|
|
@@ -12787,7 +12876,7 @@
|
|
|
12787
12876
|
"name": "status",
|
|
12788
12877
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/time-picker",
|
|
12789
12878
|
"type": "'success' | 'warning' | 'error'",
|
|
12790
|
-
"description": "
|
|
12879
|
+
"description": "Validation status.",
|
|
12791
12880
|
"default": "undefined",
|
|
12792
12881
|
"description-sections": {
|
|
12793
12882
|
"since": "2.27.0"
|
|
@@ -13371,6 +13460,16 @@
|
|
|
13371
13460
|
"since": "2.32.2"
|
|
13372
13461
|
}
|
|
13373
13462
|
},
|
|
13463
|
+
{
|
|
13464
|
+
"name": "show-selected",
|
|
13465
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/transfer",
|
|
13466
|
+
"type": "boolean",
|
|
13467
|
+
"description": "Whether to show selected options in the source list.",
|
|
13468
|
+
"default": "true",
|
|
13469
|
+
"description-sections": {
|
|
13470
|
+
"since": "2.34.0"
|
|
13471
|
+
}
|
|
13472
|
+
},
|
|
13374
13473
|
{
|
|
13375
13474
|
"name": "source-filter-placeholder",
|
|
13376
13475
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/transfer",
|
|
@@ -13802,11 +13901,11 @@
|
|
|
13802
13901
|
{
|
|
13803
13902
|
"name": "render-switcher-icon",
|
|
13804
13903
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13805
|
-
"type": "() => VNodeChild",
|
|
13904
|
+
"type": "(props: { expanded: boolean, selected: boolean }) => VNodeChild",
|
|
13806
13905
|
"description": "Render function of option switcher icon.",
|
|
13807
13906
|
"default": "undefined",
|
|
13808
13907
|
"description-sections": {
|
|
13809
|
-
"since": "2.24.0"
|
|
13908
|
+
"since": "2.24.0, `props` 2.34.0"
|
|
13810
13909
|
}
|
|
13811
13910
|
},
|
|
13812
13911
|
{
|
|
@@ -13905,30 +14004,39 @@
|
|
|
13905
14004
|
{
|
|
13906
14005
|
"name": "update:checked-keys",
|
|
13907
14006
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13908
|
-
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>)) => void",
|
|
14007
|
+
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>), meta: { node: TreeOption | null, action: 'check' | 'uncheck' }) => void",
|
|
13909
14008
|
"description": "Callback function when node checked options change.",
|
|
13910
|
-
"default": "undefined"
|
|
14009
|
+
"default": "undefined",
|
|
14010
|
+
"description-sections": {
|
|
14011
|
+
"since": "`meta` 2.34.0"
|
|
14012
|
+
}
|
|
13911
14013
|
},
|
|
13912
14014
|
{
|
|
13913
14015
|
"name": "update:indeterminate-keys",
|
|
13914
14016
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13915
|
-
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>)
|
|
14017
|
+
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>) => void",
|
|
13916
14018
|
"description": "Callback function when node indeterminate options change.",
|
|
13917
14019
|
"default": "undefined"
|
|
13918
14020
|
},
|
|
13919
14021
|
{
|
|
13920
14022
|
"name": "update:expanded-keys",
|
|
13921
14023
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13922
|
-
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>)) => void",
|
|
14024
|
+
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>), meta: { node: TreeOption | null, action: 'expand' | 'collapse' | 'filter' }) => void",
|
|
13923
14025
|
"description": "The callback function when the node expansion item changes.",
|
|
13924
|
-
"default": "undefined"
|
|
14026
|
+
"default": "undefined",
|
|
14027
|
+
"description-sections": {
|
|
14028
|
+
"since": "`meta` 2.34.0"
|
|
14029
|
+
}
|
|
13925
14030
|
},
|
|
13926
14031
|
{
|
|
13927
14032
|
"name": "update:selected-keys",
|
|
13928
14033
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree",
|
|
13929
|
-
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>)) => void",
|
|
14034
|
+
"type": "(keys: Array<string | number>, option: Array<TreeOption | null>), meta: { node: TreeOption, action: 'select' | 'unselect' }) => void",
|
|
13930
14035
|
"description": "The callback function when the selected item of the node changes.",
|
|
13931
|
-
"default": "undefined"
|
|
14036
|
+
"default": "undefined",
|
|
14037
|
+
"description-sections": {
|
|
14038
|
+
"since": "`meta` 2.34.0"
|
|
14039
|
+
}
|
|
13932
14040
|
}
|
|
13933
14041
|
]
|
|
13934
14042
|
}
|
|
@@ -14152,7 +14260,7 @@
|
|
|
14152
14260
|
"name": "status",
|
|
14153
14261
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree-select",
|
|
14154
14262
|
"type": "'success' | 'warning' | 'error'",
|
|
14155
|
-
"description": "
|
|
14263
|
+
"description": "Validation status.",
|
|
14156
14264
|
"default": "undefined",
|
|
14157
14265
|
"description-sections": {
|
|
14158
14266
|
"since": "2.27.0"
|
|
@@ -14361,9 +14469,12 @@
|
|
|
14361
14469
|
{
|
|
14362
14470
|
"name": "update:expanded-keys",
|
|
14363
14471
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree-select",
|
|
14364
|
-
"type": "(value: Array<string | number
|
|
14472
|
+
"type": "(value: Array<string | number>, meta: { node: TreeOption | null, action: 'expand' | 'collapse' | 'filter' }) => void",
|
|
14365
14473
|
"description": "Callback on expanded keys updated.",
|
|
14366
|
-
"default": "undefined"
|
|
14474
|
+
"default": "undefined",
|
|
14475
|
+
"description-sections": {
|
|
14476
|
+
"since": "`meta` 2.34.0"
|
|
14477
|
+
}
|
|
14367
14478
|
},
|
|
14368
14479
|
{
|
|
14369
14480
|
"name": "update:indeterminate-keys",
|
|
@@ -14375,7 +14486,7 @@
|
|
|
14375
14486
|
{
|
|
14376
14487
|
"name": "update:value",
|
|
14377
14488
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/tree-select",
|
|
14378
|
-
"type": "(value: string | number | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null
|
|
14489
|
+
"type": "(value: string | number | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>, meta: { node: TreeOption | null, action: 'select' | 'unselect' | 'delete' | 'clear' }) => void) => void",
|
|
14379
14490
|
"description": "Callback on value updated.",
|
|
14380
14491
|
"default": "undefined"
|
|
14381
14492
|
}
|
|
@@ -14993,12 +15104,25 @@
|
|
|
14993
15104
|
"description": "Built-in styles for file lists, `text`, `image` and `image-card`.",
|
|
14994
15105
|
"default": "'text'"
|
|
14995
15106
|
},
|
|
15107
|
+
{
|
|
15108
|
+
"name": "should-use-thumbnail-url",
|
|
15109
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/upload",
|
|
15110
|
+
"type": "(file: UploadSettledFileInfo) => boolean",
|
|
15111
|
+
"description": "A function that determines whether to show thumbnail for the file. It only works when `list-type=\"image\"` or `list-type=\"image-card\"`.",
|
|
15112
|
+
"default": "A function that only returns `true` for image typed file.",
|
|
15113
|
+
"description-sections": {
|
|
15114
|
+
"since": "2.34.0"
|
|
15115
|
+
}
|
|
15116
|
+
},
|
|
14996
15117
|
{
|
|
14997
15118
|
"name": "create-thumbnail-url",
|
|
14998
15119
|
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/upload",
|
|
14999
|
-
"type": "(file: File) => Promise<string>",
|
|
15000
|
-
"description": "Customize file thumbnails.",
|
|
15001
|
-
"default": "undefined"
|
|
15120
|
+
"type": "(file: File | null, fileInfo: UploadSettledFileInfo) => (Promise<string> | string | undefined)",
|
|
15121
|
+
"description": "Customize file thumbnails. If `undefined` is returned, the file would use default thumbnail display logic.",
|
|
15122
|
+
"default": "undefined",
|
|
15123
|
+
"description-sections": {
|
|
15124
|
+
"since": "`fileInfo` 2.34.0"
|
|
15125
|
+
}
|
|
15002
15126
|
},
|
|
15003
15127
|
{
|
|
15004
15128
|
"name": "abstract",
|
|
@@ -15053,6 +15177,16 @@
|
|
|
15053
15177
|
"description-sections": {
|
|
15054
15178
|
"since": "2.29.1"
|
|
15055
15179
|
}
|
|
15180
|
+
},
|
|
15181
|
+
{
|
|
15182
|
+
"name": "render-icon",
|
|
15183
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/upload",
|
|
15184
|
+
"type": "(file: UploadSettledFileInfo) => VNodeChild",
|
|
15185
|
+
"description": "Render function of file icon. It works when `list-type=\"image\"`.",
|
|
15186
|
+
"default": "undefined",
|
|
15187
|
+
"description-sections": {
|
|
15188
|
+
"since": "2.34.0"
|
|
15189
|
+
}
|
|
15056
15190
|
}
|
|
15057
15191
|
],
|
|
15058
15192
|
"js": {
|
|
@@ -15465,6 +15599,51 @@
|
|
|
15465
15599
|
"js": {
|
|
15466
15600
|
"events": []
|
|
15467
15601
|
}
|
|
15602
|
+
},
|
|
15603
|
+
{
|
|
15604
|
+
"name": "NEquation",
|
|
15605
|
+
"description": "No one will think of that a component library should have this component. However a friend of me need this.\n\n<n-alert title=\"Note\" type=\"warning\" style=\"margin-bottom: 16px;\" :bordered=\"false\">\n Due to package size, Naive UI doesn't include katex. If you want to use Equation, make sure you have setup katex before using it.\n</n-alert>\n\nThe following code shows how to setup katex for Equation.\n\n```html\n<template>\n <n-config-provider :katex=\"katex\">\n <my-app />\n </n-config-provider>\n</template>\n\n<script>\n import { defineComponent } from 'vue'\n import katex from 'katex'\n import 'katex/dist/katex.css'\n\n export default defineComponent({\n setup() {\n return {\n katex\n }\n }\n })\n</script>\n```",
|
|
15606
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/equation",
|
|
15607
|
+
"source": {
|
|
15608
|
+
"symbol": "NEquation"
|
|
15609
|
+
},
|
|
15610
|
+
"slots": [],
|
|
15611
|
+
"attributes": [],
|
|
15612
|
+
"props": [
|
|
15613
|
+
{
|
|
15614
|
+
"name": "value",
|
|
15615
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/equation",
|
|
15616
|
+
"type": "string",
|
|
15617
|
+
"description": "Latex expression of the equation.",
|
|
15618
|
+
"default": "undefined",
|
|
15619
|
+
"description-sections": {
|
|
15620
|
+
"since": "2.34.0"
|
|
15621
|
+
}
|
|
15622
|
+
},
|
|
15623
|
+
{
|
|
15624
|
+
"name": "katex",
|
|
15625
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/equation",
|
|
15626
|
+
"type": "object",
|
|
15627
|
+
"description": "Katex",
|
|
15628
|
+
"default": "undefined",
|
|
15629
|
+
"description-sections": {
|
|
15630
|
+
"since": "2.34.0"
|
|
15631
|
+
}
|
|
15632
|
+
},
|
|
15633
|
+
{
|
|
15634
|
+
"name": "katex-options",
|
|
15635
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/equation",
|
|
15636
|
+
"type": "object",
|
|
15637
|
+
"description": "Katex options for the equation.",
|
|
15638
|
+
"default": "undefined",
|
|
15639
|
+
"description-sections": {
|
|
15640
|
+
"since": "2.34.0"
|
|
15641
|
+
}
|
|
15642
|
+
}
|
|
15643
|
+
],
|
|
15644
|
+
"js": {
|
|
15645
|
+
"events": []
|
|
15646
|
+
}
|
|
15468
15647
|
}
|
|
15469
15648
|
]
|
|
15470
15649
|
}
|