naive-ui 2.35.0 → 2.36.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/README.md +2 -0
- package/README.zh-CN.md +1 -0
- package/dist/index.js +2433 -667
- package/dist/index.prod.js +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectMenu.js +1 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/es/_internal/selection/src/Selection.d.ts +3 -1
- package/es/_internal/selection/src/Selection.js +4 -2
- package/es/_styles/common/_common.js +1 -1
- package/es/_styles/common/light.js +2 -2
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.js +2 -0
- package/es/_utils/css/color-to-class.js +1 -1
- package/es/affix/src/Affix.d.ts +2 -2
- package/es/affix/src/Affix.js +4 -2
- package/es/alert/src/Alert.js +3 -1
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/button/src/Button.d.ts +1 -1
- package/es/button/src/Button.js +1 -1
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +12 -5
- package/es/carousel/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +2 -1
- package/es/checkbox/src/Checkbox.d.ts +6 -6
- package/es/color-picker/src/ColorPickerSwatches.js +4 -3
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/DataTable.d.ts +3 -3
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/MainTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +3 -3
- package/es/data-table/src/TableParts/Body.js +5 -3
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -2
- package/es/date-picker/src/panel/month.d.ts +2 -2
- package/es/date-picker/src/panel/monthrange.d.ts +2 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +720 -773
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-calendar.js +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/es/date-picker/src/utils.js +1 -6
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +6 -0
- package/es/descriptions/src/Descriptions.js +22 -7
- package/es/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/es/descriptions/src/DescriptionsItem.js +2 -0
- package/es/dialog/src/Dialog.js +6 -2
- package/es/dialog/src/DialogEnvironment.d.ts +1 -1
- package/es/dialog/src/DialogProvider.d.ts +3 -3
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +18 -0
- package/es/dropdown/src/Dropdown.js +1 -1
- package/es/dropdown/src/DropdownMenu.js +4 -1
- package/es/dropdown/src/DropdownOption.d.ts +5 -4
- package/es/dropdown/src/DropdownOption.js +2 -4
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/es/dynamic-input/src/DynamicInput.js +3 -3
- package/es/dynamic-tags/src/DynamicTags.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.js +4 -4
- package/es/equation/index.d.ts +1 -0
- package/es/equation/src/Equation.d.ts +2 -0
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/input/src/Input.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -1
- package/es/layout/src/Layout.d.ts +6 -0
- package/es/layout/src/Layout.js +8 -1
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +9 -0
- package/es/layout/src/LayoutSider.js +12 -3
- package/es/legacy-grid/src/styles/index.cssr.js +2 -3
- package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/es/loading-bar/src/LoadingBar.d.ts +2 -0
- package/es/loading-bar/src/LoadingBar.js +3 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/frFR.js +1 -1
- package/es/log/src/Log.d.ts +3 -3
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/utils.js +4 -4
- package/es/menu/src/Menu.d.ts +30 -13
- package/es/menu/src/Menu.js +101 -7
- package/es/menu/src/MenuOptionContent.d.ts +3 -0
- package/es/menu/src/MenuOptionContent.js +7 -2
- package/es/menu/src/Submenu.d.ts +23 -12
- package/es/menu/src/Submenu.js +9 -8
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/styles/index.cssr.js +8 -4
- package/es/menu/src/use-menu-child.js +5 -5
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +7 -4
- package/es/message/src/MessageProvider.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +12 -4
- package/es/modal/src/Modal.d.ts +16 -4
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/notification/src/NotificationEnvironment.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +3 -0
- package/es/notification/src/NotificationProvider.js +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +18 -0
- package/es/popover/src/Popover.d.ts +24 -0
- package/es/popover/src/Popover.js +7 -0
- package/es/popover/src/PopoverBody.d.ts +22 -1
- package/es/popover/src/PopoverBody.js +26 -10
- package/es/popover/src/interface.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +18 -0
- package/es/popselect/src/Popselect.js +2 -1
- package/es/popselect/src/PopselectPanel.js +1 -0
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +154 -0
- package/es/qr-code/src/QrCode.js +146 -0
- package/es/qr-code/src/qrcodegen.d.ts +94 -0
- package/es/qr-code/src/qrcodegen.js +948 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/radio/src/RadioGroup.d.ts +1 -0
- package/es/radio/src/RadioGroup.js +2 -1
- package/es/radio/src/styles/radio-group.cssr.js +1 -0
- package/es/result/src/Result.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +2 -0
- package/es/select/src/Select.d.ts +1 -1
- package/es/skeleton/src/Skeleton.js +4 -7
- package/es/slider/src/Slider.d.ts +6 -0
- package/es/slider/src/Slider.js +10 -3
- package/es/slider/src/utils.d.ts +2 -2
- package/es/slider/src/utils.js +4 -4
- package/es/space/src/Space.d.ts +3 -0
- package/es/space/src/Space.js +3 -3
- package/es/spin/src/Spin.d.ts +7 -1
- package/es/spin/src/Spin.js +4 -3
- package/es/split/index.d.ts +2 -0
- package/es/split/index.js +1 -0
- package/es/split/src/Split.d.ts +135 -0
- package/es/split/src/Split.js +145 -0
- package/es/split/src/styles/index.cssr.d.ts +2 -0
- package/es/split/src/styles/index.cssr.js +25 -0
- package/es/split/styles/dark.d.ts +3 -0
- package/es/split/styles/dark.js +6 -0
- package/es/split/styles/index.d.ts +3 -0
- package/es/split/styles/index.js +2 -0
- package/es/split/styles/light.d.ts +9 -0
- package/es/split/styles/light.js +13 -0
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/tabs/src/Tab.js +3 -1
- package/es/tabs/src/Tabs.d.ts +6 -6
- package/es/tabs/src/Tabs.js +2 -2
- package/es/tabs/src/styles/index.cssr.js +12 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/thing/src/Thing.d.ts +6 -0
- package/es/thing/src/Thing.js +13 -4
- package/es/tooltip/src/Tooltip.d.ts +18 -0
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree/src/Tree.d.ts +11 -0
- package/es/tree/src/Tree.js +6 -3
- package/es/tree/src/TreeNode.js +30 -19
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/styles/index.cssr.js +4 -3
- package/es/tree/src/utils.d.ts +1 -0
- package/es/tree/src/utils.js +12 -0
- package/es/tree/styles/light.d.ts +2 -0
- package/es/tree/styles/light.js +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +17 -10
- package/es/tree-select/src/TreeSelect.js +2 -2
- package/es/tree-select/styles/light.d.ts +1 -0
- package/es/upload/src/Upload.d.ts +6 -0
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadFileList.js +3 -2
- package/es/upload/src/UploadTrigger.js +3 -2
- package/es/upload/src/interface.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +102 -0
- package/es/watermark/src/Watermark.js +7 -0
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectMenu.js +1 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +3 -1
- package/lib/_internal/selection/src/Selection.js +4 -2
- package/lib/_styles/common/_common.js +1 -1
- package/lib/_styles/common/light.js +2 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +2 -0
- package/lib/_utils/css/color-to-class.js +1 -1
- package/lib/affix/src/Affix.d.ts +2 -2
- package/lib/affix/src/Affix.js +4 -2
- package/lib/alert/src/Alert.js +3 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/button/src/Button.d.ts +1 -1
- package/lib/button/src/Button.js +1 -1
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +12 -5
- package/lib/carousel/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +2 -1
- package/lib/checkbox/src/Checkbox.d.ts +6 -6
- package/lib/color-picker/src/ColorPickerSwatches.js +4 -3
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/DataTable.d.ts +3 -3
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/MainTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +3 -3
- package/lib/data-table/src/TableParts/Body.js +5 -3
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +2 -2
- package/lib/date-picker/src/panel/daterange.d.ts +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +2 -2
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -2
- package/lib/date-picker/src/panel/month.d.ts +2 -2
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +720 -773
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/lib/date-picker/src/utils.js +1 -6
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +6 -0
- package/lib/descriptions/src/Descriptions.js +22 -7
- package/lib/descriptions/src/DescriptionsItem.d.ts +6 -0
- package/lib/descriptions/src/DescriptionsItem.js +2 -0
- package/lib/dialog/src/Dialog.js +6 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +3 -3
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +18 -0
- package/lib/dropdown/src/Dropdown.js +1 -1
- package/lib/dropdown/src/DropdownMenu.js +4 -1
- package/lib/dropdown/src/DropdownOption.d.ts +5 -4
- package/lib/dropdown/src/DropdownOption.js +2 -4
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -0
- package/lib/dynamic-input/src/DynamicInput.js +3 -3
- package/lib/dynamic-tags/src/DynamicTags.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.js +4 -4
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/src/Equation.d.ts +2 -0
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/input/src/Input.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/layout/src/Layout.d.ts +6 -0
- package/lib/layout/src/Layout.js +8 -1
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +9 -0
- package/lib/layout/src/LayoutSider.js +12 -3
- package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
- package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/lib/loading-bar/src/LoadingBar.d.ts +2 -0
- package/lib/loading-bar/src/LoadingBar.js +3 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -0
- package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
- package/lib/locales/common/frFR.js +1 -1
- package/lib/log/src/Log.d.ts +3 -3
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/utils.js +4 -4
- package/lib/menu/src/Menu.d.ts +30 -13
- package/lib/menu/src/Menu.js +101 -7
- package/lib/menu/src/MenuOptionContent.d.ts +3 -0
- package/lib/menu/src/MenuOptionContent.js +7 -2
- package/lib/menu/src/Submenu.d.ts +23 -12
- package/lib/menu/src/Submenu.js +9 -8
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/styles/index.cssr.js +8 -4
- package/lib/menu/src/use-menu-child.js +5 -5
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +7 -4
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +12 -4
- package/lib/modal/src/Modal.d.ts +16 -4
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/notification/src/NotificationEnvironment.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +3 -0
- package/lib/notification/src/NotificationProvider.js +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +18 -0
- package/lib/popover/src/Popover.d.ts +24 -0
- package/lib/popover/src/Popover.js +7 -0
- package/lib/popover/src/PopoverBody.d.ts +22 -1
- package/lib/popover/src/PopoverBody.js +26 -10
- package/lib/popover/src/interface.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +18 -0
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.js +1 -0
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +154 -0
- package/lib/qr-code/src/QrCode.js +152 -0
- package/lib/qr-code/src/qrcodegen.d.ts +94 -0
- package/lib/qr-code/src/qrcodegen.js +949 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/RadioGroup.d.ts +1 -0
- package/lib/radio/src/RadioGroup.js +2 -1
- package/lib/radio/src/styles/radio-group.cssr.js +1 -0
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +2 -0
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.js +3 -6
- package/lib/slider/src/Slider.d.ts +6 -0
- package/lib/slider/src/Slider.js +10 -3
- package/lib/slider/src/utils.d.ts +2 -2
- package/lib/slider/src/utils.js +3 -3
- package/lib/space/src/Space.d.ts +3 -0
- package/lib/space/src/Space.js +3 -3
- package/lib/spin/src/Spin.d.ts +7 -1
- package/lib/spin/src/Spin.js +4 -3
- package/lib/split/index.d.ts +2 -0
- package/lib/split/index.js +9 -0
- package/lib/split/src/Split.d.ts +135 -0
- package/lib/split/src/Split.js +151 -0
- package/lib/split/src/styles/index.cssr.d.ts +2 -0
- package/lib/split/src/styles/index.cssr.js +30 -0
- package/lib/split/styles/dark.d.ts +3 -0
- package/lib/split/styles/dark.js +8 -0
- package/lib/split/styles/index.d.ts +3 -0
- package/lib/split/styles/index.js +10 -0
- package/lib/split/styles/light.d.ts +9 -0
- package/lib/split/styles/light.js +17 -0
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/tabs/src/Tab.js +3 -1
- package/lib/tabs/src/Tabs.d.ts +6 -6
- package/lib/tabs/src/Tabs.js +2 -2
- package/lib/tabs/src/styles/index.cssr.js +12 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -2
- package/lib/themes/dark.js +56 -52
- package/lib/themes/light.js +56 -52
- package/lib/thing/src/Thing.d.ts +6 -0
- package/lib/thing/src/Thing.js +13 -4
- package/lib/tooltip/src/Tooltip.d.ts +18 -0
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +3 -1
- package/lib/tree/src/Tree.d.ts +11 -0
- package/lib/tree/src/Tree.js +6 -3
- package/lib/tree/src/TreeNode.js +30 -19
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/styles/index.cssr.js +4 -3
- package/lib/tree/src/utils.d.ts +1 -0
- package/lib/tree/src/utils.js +14 -1
- package/lib/tree/styles/light.d.ts +2 -0
- package/lib/tree/styles/light.js +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +17 -10
- package/lib/tree-select/src/TreeSelect.js +2 -2
- package/lib/tree-select/styles/light.d.ts +1 -0
- package/lib/upload/src/Upload.d.ts +6 -0
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadFileList.js +3 -2
- package/lib/upload/src/UploadTrigger.js +3 -2
- package/lib/upload/src/interface.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +105 -0
- package/lib/watermark/src/Watermark.js +7 -0
- package/package.json +15 -15
- package/volar.d.ts +4 -0
- package/web-types.json +773 -18
|
@@ -38,8 +38,8 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
38
38
|
handleDateInput: (value: string) => void;
|
|
39
39
|
handleTimePickerChange: (value: number | null) => void;
|
|
40
40
|
clearSelectedDateTime: () => void;
|
|
41
|
-
virtualListContainer: () => HTMLElement;
|
|
42
|
-
virtualListContent: () => HTMLElement;
|
|
41
|
+
virtualListContainer: () => HTMLElement | null;
|
|
42
|
+
virtualListContent: () => HTMLElement | null;
|
|
43
43
|
handleVirtualListScroll: (e: Event) => void;
|
|
44
44
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
|
|
45
45
|
dateInputValue: import("vue").Ref<string>;
|
|
@@ -250,12 +250,12 @@ function useCalendar(props, type) {
|
|
|
250
250
|
// For month type
|
|
251
251
|
function virtualListContainer() {
|
|
252
252
|
const { value } = yearVlRef;
|
|
253
|
-
return value === null || value === void 0 ? void 0 : value.listElRef;
|
|
253
|
+
return (value === null || value === void 0 ? void 0 : value.listElRef) || null;
|
|
254
254
|
}
|
|
255
255
|
// For month type
|
|
256
256
|
function virtualListContent() {
|
|
257
257
|
const { value } = yearVlRef;
|
|
258
|
-
return value === null || value === void 0 ? void 0 : value.itemsElRef;
|
|
258
|
+
return (value === null || value === void 0 ? void 0 : value.itemsElRef) || null;
|
|
259
259
|
}
|
|
260
260
|
// For month type
|
|
261
261
|
function handleVirtualListScroll(e) {
|
|
@@ -60,8 +60,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
60
60
|
handleEndDateInputBlur: () => void;
|
|
61
61
|
handleStartYearVlScroll: () => void;
|
|
62
62
|
handleEndYearVlScroll: () => void;
|
|
63
|
-
virtualListContainer: (type: 'start' | 'end') => HTMLElement;
|
|
64
|
-
virtualListContent: (type: 'start' | 'end') => HTMLElement;
|
|
63
|
+
virtualListContainer: (type: 'start' | 'end') => HTMLElement | null;
|
|
64
|
+
virtualListContent: (type: 'start' | 'end') => HTMLElement | null;
|
|
65
65
|
onUpdateStartCalendarValue: (value: number) => void;
|
|
66
66
|
onUpdateEndCalendarValue: (value: number) => void;
|
|
67
67
|
startYearScrollbarRef: import("vue").Ref<ScrollbarInst | null>;
|
|
@@ -607,19 +607,19 @@ function useDualCalendar(props, type) {
|
|
|
607
607
|
function virtualListContainer(type) {
|
|
608
608
|
var _a, _b;
|
|
609
609
|
if (type === 'start') {
|
|
610
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
610
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef) || null;
|
|
611
611
|
}
|
|
612
612
|
else {
|
|
613
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef;
|
|
613
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef) || null;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function virtualListContent(type) {
|
|
617
617
|
var _a, _b;
|
|
618
618
|
if (type === 'start') {
|
|
619
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
619
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef) || null;
|
|
620
620
|
}
|
|
621
621
|
else {
|
|
622
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef;
|
|
622
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef) || null;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
const childComponentRefs = {
|
|
@@ -24,12 +24,7 @@ const matcherMap = {
|
|
|
24
24
|
};
|
|
25
25
|
function matchDate(sourceTime, patternTime, type) {
|
|
26
26
|
const matcher = matcherMap[type];
|
|
27
|
-
|
|
28
|
-
return sourceTime.some((time) => matcher(time, patternTime));
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return matcher(sourceTime, patternTime);
|
|
32
|
-
}
|
|
27
|
+
return matcher(sourceTime, patternTime);
|
|
33
28
|
}
|
|
34
29
|
// date item's valueTs can be a tuple since two date may show in one panel, so
|
|
35
30
|
// any matched value would make it shown as selected
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
calendarLeftPaddingDatetime: '4px 12px',
|
|
18
18
|
calendarLeftPaddingDaterange: '6px 12px 4px 12px',
|
|
19
19
|
calendarLeftPaddingDatetimerange: '4px 12px',
|
|
20
|
-
calendarLeftPaddingMonth: '0',
|
|
20
|
+
calendarLeftPaddingMonth: '0', // TODO: make it actually effective
|
|
21
21
|
calendarLeftPaddingYear: '0',
|
|
22
22
|
calendarLeftPaddingQuarter: '0',
|
|
23
23
|
calendarLeftPaddingMonthrange: '0',
|
|
@@ -24,7 +24,9 @@ export declare const descriptionsProps: {
|
|
|
24
24
|
readonly default: "medium";
|
|
25
25
|
};
|
|
26
26
|
readonly bordered: BooleanConstructor;
|
|
27
|
+
readonly labelClass: StringConstructor;
|
|
27
28
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
29
|
+
readonly contentClass: StringConstructor;
|
|
28
30
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
31
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
30
32
|
lineHeight: string;
|
|
@@ -150,7 +152,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
152
|
readonly default: "medium";
|
|
151
153
|
};
|
|
152
154
|
readonly bordered: BooleanConstructor;
|
|
155
|
+
readonly labelClass: StringConstructor;
|
|
153
156
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
157
|
+
readonly contentClass: StringConstructor;
|
|
154
158
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
155
159
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
156
160
|
lineHeight: string;
|
|
@@ -299,7 +303,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
299
303
|
readonly default: "medium";
|
|
300
304
|
};
|
|
301
305
|
readonly bordered: BooleanConstructor;
|
|
306
|
+
readonly labelClass: StringConstructor;
|
|
302
307
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
308
|
+
readonly contentClass: StringConstructor;
|
|
303
309
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
304
310
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
305
311
|
lineHeight: string;
|
|
@@ -21,7 +21,7 @@ export const descriptionsProps = Object.assign(Object.assign({}, useTheme.props)
|
|
|
21
21
|
}, size: {
|
|
22
22
|
type: String,
|
|
23
23
|
default: 'medium'
|
|
24
|
-
}, bordered: Boolean, labelStyle: [Object, String], contentStyle: [Object, String] });
|
|
24
|
+
}, bordered: Boolean, labelClass: String, labelStyle: [Object, String], contentClass: String, contentStyle: [Object, String] });
|
|
25
25
|
export default defineComponent({
|
|
26
26
|
name: 'Descriptions',
|
|
27
27
|
props: descriptionsProps,
|
|
@@ -76,7 +76,7 @@ export default defineComponent({
|
|
|
76
76
|
const defaultSlots = this.$slots.default;
|
|
77
77
|
const children = defaultSlots ? flatten(defaultSlots()) : [];
|
|
78
78
|
const memorizedLength = children.length;
|
|
79
|
-
const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
79
|
+
const { contentClass, labelClass, compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
80
80
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
81
81
|
const filteredChildren = children.filter((child) => isDescriptionsItem(child));
|
|
82
82
|
if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
|
|
@@ -102,7 +102,13 @@ export default defineComponent({
|
|
|
102
102
|
const contentStyle = props.contentStyle || props['content-style'] || this.contentStyle;
|
|
103
103
|
if (labelPlacement === 'left') {
|
|
104
104
|
if (bordered) {
|
|
105
|
-
state.row.push(h("th", { class:
|
|
105
|
+
state.row.push(h("th", { class: [
|
|
106
|
+
`${mergedClsPrefix}-descriptions-table-header`,
|
|
107
|
+
labelClass
|
|
108
|
+
], colspan: 1, style: labelStyle }, itemLabel), h("td", { class: [
|
|
109
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
110
|
+
contentClass
|
|
111
|
+
], colspan: isLastIteration
|
|
106
112
|
? (compitableColumn - memorizedSpan) * 2 + 1
|
|
107
113
|
: itemSpan * 2 - 1, style: contentStyle }, itemChildren));
|
|
108
114
|
}
|
|
@@ -110,19 +116,28 @@ export default defineComponent({
|
|
|
110
116
|
state.row.push(h("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: isLastIteration
|
|
111
117
|
? (compitableColumn - memorizedSpan) * 2
|
|
112
118
|
: itemSpan * 2 },
|
|
113
|
-
h("span", { class:
|
|
119
|
+
h("span", { class: [
|
|
120
|
+
`${mergedClsPrefix}-descriptions-table-content__label`,
|
|
121
|
+
labelClass
|
|
122
|
+
], style: labelStyle }, [
|
|
114
123
|
...itemLabel,
|
|
115
124
|
separator && (h("span", { class: `${mergedClsPrefix}-descriptions-separator` }, separator))
|
|
116
125
|
]),
|
|
117
|
-
h("span", { class:
|
|
126
|
+
h("span", { class: [
|
|
127
|
+
`${mergedClsPrefix}-descriptions-table-content__content`,
|
|
128
|
+
contentClass
|
|
129
|
+
], style: contentStyle }, itemChildren)));
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
else {
|
|
121
133
|
const colspan = isLastIteration
|
|
122
134
|
? (compitableColumn - memorizedSpan) * 2
|
|
123
135
|
: itemSpan * 2;
|
|
124
|
-
state.row.push(h("th", { class: `${mergedClsPrefix}-descriptions-table-header`, colspan: colspan, style: labelStyle }, itemLabel));
|
|
125
|
-
state.secondRow.push(h("td", { class:
|
|
136
|
+
state.row.push(h("th", { class: [`${mergedClsPrefix}-descriptions-table-header`, labelClass], colspan: colspan, style: labelStyle }, itemLabel));
|
|
137
|
+
state.secondRow.push(h("td", { class: [
|
|
138
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
139
|
+
contentClass
|
|
140
|
+
], colspan: colspan, style: contentStyle }, itemChildren));
|
|
126
141
|
}
|
|
127
142
|
if (state.span >= compitableColumn || isLastIteration) {
|
|
128
143
|
state.span = 0;
|
|
@@ -6,7 +6,9 @@ export declare const descriptionsItemProps: {
|
|
|
6
6
|
readonly type: NumberConstructor;
|
|
7
7
|
readonly default: 1;
|
|
8
8
|
};
|
|
9
|
+
readonly labelClass: StringConstructor;
|
|
9
10
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
11
|
+
readonly contentClass: StringConstructor;
|
|
10
12
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
11
13
|
};
|
|
12
14
|
export type DescriptionItemProps = ExtractPublicPropTypes<typeof descriptionsItemProps>;
|
|
@@ -16,7 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
18
|
readonly type: NumberConstructor;
|
|
17
19
|
readonly default: 1;
|
|
18
20
|
};
|
|
21
|
+
readonly labelClass: StringConstructor;
|
|
19
22
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
23
|
+
readonly contentClass: StringConstructor;
|
|
20
24
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
21
25
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
26
|
readonly label: StringConstructor;
|
|
@@ -24,7 +28,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
readonly type: NumberConstructor;
|
|
25
29
|
readonly default: 1;
|
|
26
30
|
};
|
|
31
|
+
readonly labelClass: StringConstructor;
|
|
27
32
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
33
|
+
readonly contentClass: StringConstructor;
|
|
28
34
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
35
|
}>>, {
|
|
30
36
|
readonly span: number;
|
package/es/dialog/src/Dialog.js
CHANGED
|
@@ -17,7 +17,7 @@ const iconRenderMap = {
|
|
|
17
17
|
export const NDialog = defineComponent({
|
|
18
18
|
name: 'Dialog',
|
|
19
19
|
alias: [
|
|
20
|
-
'NimbusConfirmCard',
|
|
20
|
+
'NimbusConfirmCard', // deprecated
|
|
21
21
|
'Confirm' // deprecated
|
|
22
22
|
],
|
|
23
23
|
props: Object.assign(Object.assign({}, useTheme.props), dialogProps),
|
|
@@ -119,7 +119,11 @@ export const NDialog = defineComponent({
|
|
|
119
119
|
`${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
|
|
120
120
|
bordered && `${mergedClsPrefix}-dialog--bordered`
|
|
121
121
|
], style: cssVars, role: "dialog" },
|
|
122
|
-
closable
|
|
122
|
+
closable
|
|
123
|
+
? resolveWrappedSlot(this.$slots.close, (node) => {
|
|
124
|
+
return node ? (h("div", { class: `${mergedClsPrefix}-dialog__close` }, node)) : (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick }));
|
|
125
|
+
})
|
|
126
|
+
: null,
|
|
123
127
|
showIcon && mergedIconPlacement === 'top' ? (h("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
|
|
124
128
|
h("div", { class: `${mergedClsPrefix}-dialog__title` },
|
|
125
129
|
showIcon && mergedIconPlacement === 'left' ? icon : null,
|
|
@@ -177,8 +177,8 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
177
177
|
iconPlacement: PropType<import("./interface").IconPlacement>;
|
|
178
178
|
}>>, {
|
|
179
179
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
180
|
-
autoFocus: boolean;
|
|
181
180
|
loading: boolean;
|
|
181
|
+
autoFocus: boolean;
|
|
182
182
|
bordered: boolean;
|
|
183
183
|
showIcon: boolean;
|
|
184
184
|
closable: boolean;
|
|
@@ -49,10 +49,10 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
49
49
|
onAfterLeave?: (() => void) | undefined;
|
|
50
50
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
51
51
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
52
|
+
loading?: boolean | undefined;
|
|
52
53
|
autoFocus?: boolean | undefined;
|
|
53
54
|
positiveText?: string | undefined;
|
|
54
55
|
negativeText?: string | undefined;
|
|
55
|
-
loading?: boolean | undefined;
|
|
56
56
|
bordered?: boolean | undefined;
|
|
57
57
|
showIcon?: boolean | undefined;
|
|
58
58
|
closable?: boolean | undefined;
|
|
@@ -71,6 +71,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
71
71
|
circle?: boolean | undefined;
|
|
72
72
|
disabled?: boolean | undefined;
|
|
73
73
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
74
|
+
loading?: boolean | undefined;
|
|
74
75
|
focusable?: boolean | undefined;
|
|
75
76
|
strong?: boolean | undefined;
|
|
76
77
|
themeOverrides?: {
|
|
@@ -385,7 +386,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
385
386
|
name: "common";
|
|
386
387
|
} | undefined;
|
|
387
388
|
} | undefined;
|
|
388
|
-
loading?: boolean | undefined;
|
|
389
389
|
bordered?: boolean | undefined;
|
|
390
390
|
textColor?: string | undefined;
|
|
391
391
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -410,6 +410,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
410
410
|
circle?: boolean | undefined;
|
|
411
411
|
disabled?: boolean | undefined;
|
|
412
412
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
413
|
+
loading?: boolean | undefined;
|
|
413
414
|
focusable?: boolean | undefined;
|
|
414
415
|
strong?: boolean | undefined;
|
|
415
416
|
themeOverrides?: {
|
|
@@ -724,7 +725,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
724
725
|
name: "common";
|
|
725
726
|
} | undefined;
|
|
726
727
|
} | undefined;
|
|
727
|
-
loading?: boolean | undefined;
|
|
728
728
|
bordered?: boolean | undefined;
|
|
729
729
|
textColor?: string | undefined;
|
|
730
730
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -32,4 +32,4 @@ declare const dialogProps: {
|
|
|
32
32
|
};
|
|
33
33
|
export type DialogProps = ExtractPublicPropTypes<typeof dialogProps>;
|
|
34
34
|
export { dialogProps };
|
|
35
|
-
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "
|
|
35
|
+
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "loading" | "positiveText" | "negativeText" | "bordered" | "showIcon" | "closable" | "onClose" | "iconPlacement" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
|
|
@@ -300,7 +300,10 @@ export declare const dropdownProps: {
|
|
|
300
300
|
type: PropType<"show" | "if">;
|
|
301
301
|
default: string;
|
|
302
302
|
};
|
|
303
|
+
readonly arrowClass: StringConstructor;
|
|
303
304
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
305
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
306
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
304
307
|
readonly flip: {
|
|
305
308
|
type: BooleanConstructor;
|
|
306
309
|
default: boolean;
|
|
@@ -320,8 +323,11 @@ export declare const dropdownProps: {
|
|
|
320
323
|
default: undefined;
|
|
321
324
|
};
|
|
322
325
|
readonly scrollable: BooleanConstructor;
|
|
326
|
+
readonly contentClass: StringConstructor;
|
|
323
327
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
328
|
+
readonly headerClass: StringConstructor;
|
|
324
329
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
330
|
+
readonly footerClass: StringConstructor;
|
|
325
331
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
326
332
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
327
333
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -626,7 +632,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
626
632
|
type: PropType<"show" | "if">;
|
|
627
633
|
default: string;
|
|
628
634
|
};
|
|
635
|
+
readonly arrowClass: StringConstructor;
|
|
629
636
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
637
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
638
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
630
639
|
readonly flip: {
|
|
631
640
|
type: BooleanConstructor;
|
|
632
641
|
default: boolean;
|
|
@@ -646,8 +655,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
646
655
|
default: undefined;
|
|
647
656
|
};
|
|
648
657
|
readonly scrollable: BooleanConstructor;
|
|
658
|
+
readonly contentClass: StringConstructor;
|
|
649
659
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
660
|
+
readonly headerClass: StringConstructor;
|
|
650
661
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
662
|
+
readonly footerClass: StringConstructor;
|
|
651
663
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
652
664
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
653
665
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -1144,7 +1156,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1144
1156
|
type: PropType<"show" | "if">;
|
|
1145
1157
|
default: string;
|
|
1146
1158
|
};
|
|
1159
|
+
readonly arrowClass: StringConstructor;
|
|
1147
1160
|
readonly arrowStyle: PropType<string | import("vue").CSSProperties>;
|
|
1161
|
+
readonly arrowWrapperClass: StringConstructor;
|
|
1162
|
+
readonly arrowWrapperStyle: PropType<string | import("vue").CSSProperties>;
|
|
1148
1163
|
readonly flip: {
|
|
1149
1164
|
type: BooleanConstructor;
|
|
1150
1165
|
default: boolean;
|
|
@@ -1164,8 +1179,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1164
1179
|
default: undefined;
|
|
1165
1180
|
};
|
|
1166
1181
|
readonly scrollable: BooleanConstructor;
|
|
1182
|
+
readonly contentClass: StringConstructor;
|
|
1167
1183
|
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
1184
|
+
readonly headerClass: StringConstructor;
|
|
1168
1185
|
readonly headerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1186
|
+
readonly footerClass: StringConstructor;
|
|
1169
1187
|
readonly footerStyle: PropType<string | import("vue").CSSProperties>;
|
|
1170
1188
|
readonly onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
1171
1189
|
readonly 'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -312,7 +312,7 @@ export default defineComponent({
|
|
|
312
312
|
class: [className, `${mergedClsPrefix}-dropdown`, this.themeClass],
|
|
313
313
|
clsPrefix: mergedClsPrefix,
|
|
314
314
|
tmNodes: this.tmNodes,
|
|
315
|
-
style: [style, this.cssVars],
|
|
315
|
+
style: [...style, this.cssVars],
|
|
316
316
|
showArrow: this.showArrow,
|
|
317
317
|
arrowStyle: this.arrowStyle,
|
|
318
318
|
scrollable: this.scrollable,
|
|
@@ -93,7 +93,10 @@ export default defineComponent({
|
|
|
93
93
|
this.showArrow
|
|
94
94
|
? renderArrow({
|
|
95
95
|
clsPrefix,
|
|
96
|
-
arrowStyle: this.arrowStyle
|
|
96
|
+
arrowStyle: this.arrowStyle,
|
|
97
|
+
arrowClass: undefined,
|
|
98
|
+
arrowWrapperClass: undefined,
|
|
99
|
+
arrowWrapperStyle: undefined
|
|
97
100
|
})
|
|
98
101
|
: null));
|
|
99
102
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type PropType, type Ref, type HTMLAttributes } from 'vue';
|
|
2
2
|
import { type FollowerPlacement } from 'vueuc';
|
|
3
|
+
import type { MenuGroupOption } from '../../menu/src/interface';
|
|
3
4
|
import type { TreeNode } from 'treemate';
|
|
4
5
|
export interface NDropdownOptionInjection {
|
|
5
6
|
enteringSubmenuRef: Ref<boolean>;
|
|
@@ -10,7 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
11
|
required: true;
|
|
11
12
|
};
|
|
12
13
|
tmNode: {
|
|
13
|
-
type: PropType<TreeNode<import("
|
|
14
|
+
type: PropType<TreeNode<import("../../menu/src/interface").MenuOption, MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
14
15
|
required: true;
|
|
15
16
|
};
|
|
16
17
|
parentKey: {
|
|
@@ -33,14 +34,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
popoverBody: Ref<HTMLElement | null>;
|
|
34
35
|
animated: Ref<boolean>;
|
|
35
36
|
mergedShowSubmenu: import("vue").ComputedRef<boolean>;
|
|
36
|
-
rawNode: import("vue").ComputedRef<import("
|
|
37
|
+
rawNode: import("vue").ComputedRef<import("../../menu/src/interface").MenuOption | MenuGroupOption | import("../../menu/src/interface").MenuIgnoredOption>;
|
|
37
38
|
hasSubmenu: import("vue").ComputedRef<boolean>;
|
|
38
39
|
pending: import("vue").ComputedRef<boolean>;
|
|
39
40
|
childActive: import("vue").ComputedRef<boolean>;
|
|
40
41
|
active: import("vue").ComputedRef<boolean>;
|
|
41
42
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
42
43
|
renderOption: Ref<import("./interface").RenderOptionImpl | undefined>;
|
|
43
|
-
nodeProps: Ref<import("
|
|
44
|
+
nodeProps: Ref<import("../../menu/src/interface").MenuNodeProps | undefined>;
|
|
44
45
|
handleClick: () => void;
|
|
45
46
|
handleMouseMove: () => void;
|
|
46
47
|
handleMouseEnter: () => void;
|
|
@@ -53,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
54
|
required: true;
|
|
54
55
|
};
|
|
55
56
|
tmNode: {
|
|
56
|
-
type: PropType<TreeNode<import("
|
|
57
|
+
type: PropType<TreeNode<import("../../menu/src/interface").MenuOption, MenuGroupOption, import("../../menu/src/interface").MenuIgnoredOption>>;
|
|
57
58
|
required: true;
|
|
58
59
|
};
|
|
59
60
|
parentKey: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, computed, inject, ref, Transition, defineComponent, provide, mergeProps } from 'vue';
|
|
2
2
|
import { VBinder, VTarget, VFollower } from 'vueuc';
|
|
3
3
|
import { useMemo } from 'vooks';
|
|
4
|
+
import { happensIn } from 'seemly';
|
|
4
5
|
import { ChevronRightIcon } from '../../_internal/icons';
|
|
5
6
|
import { render, useDeferredTrue } from '../../_utils';
|
|
6
7
|
import { NIcon } from '../../icon';
|
|
@@ -9,7 +10,6 @@ import NDropdownMenu from './DropdownMenu';
|
|
|
9
10
|
import { dropdownMenuInjectionKey, dropdownInjectionKey, dropdownOptionInjectionKey } from './context';
|
|
10
11
|
import { popoverBodyInjectionKey } from '../../popover/src/interface';
|
|
11
12
|
import { isSubmenuNode } from './utils';
|
|
12
|
-
import { happensIn } from 'seemly';
|
|
13
13
|
export default defineComponent({
|
|
14
14
|
name: 'DropdownOption',
|
|
15
15
|
props: {
|
|
@@ -181,9 +181,7 @@ export default defineComponent({
|
|
|
181
181
|
const { animated, rawNode, mergedShowSubmenu, clsPrefix, siblingHasIcon, siblingHasSubmenu, renderLabel, renderIcon, renderOption, nodeProps, props, scrollable } = this;
|
|
182
182
|
let submenuVNode = null;
|
|
183
183
|
if (mergedShowSubmenu) {
|
|
184
|
-
const submenuNodeProps = (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.call(this, rawNode,
|
|
185
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
186
|
-
rawNode.children);
|
|
184
|
+
const submenuNodeProps = (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.call(this, rawNode, rawNode.children);
|
|
187
185
|
submenuVNode = (h(NDropdownMenu, Object.assign({}, submenuNodeProps, { clsPrefix: clsPrefix, scrollable: this.scrollable, tmNodes: this.tmNode.children, parentKey: this.tmNode.key })));
|
|
188
186
|
}
|
|
189
187
|
const builtinProps = {
|
|
@@ -18,6 +18,7 @@ export declare const dynamicInputProps: {
|
|
|
18
18
|
readonly default: "input";
|
|
19
19
|
};
|
|
20
20
|
readonly keyField: StringConstructor;
|
|
21
|
+
readonly itemClass: StringConstructor;
|
|
21
22
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
22
23
|
readonly keyPlaceholder: {
|
|
23
24
|
readonly type: StringConstructor;
|
|
@@ -868,6 +869,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
868
869
|
readonly default: "input";
|
|
869
870
|
};
|
|
870
871
|
readonly keyField: StringConstructor;
|
|
872
|
+
readonly itemClass: StringConstructor;
|
|
871
873
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
872
874
|
readonly keyPlaceholder: {
|
|
873
875
|
readonly type: StringConstructor;
|
|
@@ -2130,6 +2132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2130
2132
|
readonly default: "input";
|
|
2131
2133
|
};
|
|
2132
2134
|
readonly keyField: StringConstructor;
|
|
2135
|
+
readonly itemClass: StringConstructor;
|
|
2133
2136
|
readonly itemStyle: PropType<string | CSSProperties>;
|
|
2134
2137
|
readonly keyPlaceholder: {
|
|
2135
2138
|
readonly type: StringConstructor;
|
|
@@ -26,7 +26,7 @@ export const dynamicInputProps = Object.assign(Object.assign({}, useTheme.props)
|
|
|
26
26
|
}, preset: {
|
|
27
27
|
type: String,
|
|
28
28
|
default: 'input'
|
|
29
|
-
}, keyField: String, itemStyle: [String, Object],
|
|
29
|
+
}, keyField: String, itemClass: String, itemStyle: [String, Object],
|
|
30
30
|
// for preset pair
|
|
31
31
|
keyPlaceholder: {
|
|
32
32
|
type: String,
|
|
@@ -233,7 +233,7 @@ export default defineComponent({
|
|
|
233
233
|
};
|
|
234
234
|
},
|
|
235
235
|
render() {
|
|
236
|
-
const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender, disabled } = this;
|
|
236
|
+
const { $slots, itemClass, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender, disabled } = this;
|
|
237
237
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
238
238
|
return (h("div", { class: [
|
|
239
239
|
`${mergedClsPrefix}-dynamic-input`,
|
|
@@ -246,7 +246,7 @@ export default defineComponent({
|
|
|
246
246
|
icon: () => resolveSlot($slots['create-button-icon'], () => [
|
|
247
247
|
h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => h(AddIcon, null) })
|
|
248
248
|
])
|
|
249
|
-
})) : (mergedValue.map((_, index) => (h("div", { key: keyField ? _[keyField] : ensureKey(_, index), "data-key": keyField ? _[keyField] : ensureKey(_, index), class: `${mergedClsPrefix}-dynamic-input-item`, style: itemStyle },
|
|
249
|
+
})) : (mergedValue.map((_, index) => (h("div", { key: keyField ? _[keyField] : ensureKey(_, index), "data-key": keyField ? _[keyField] : ensureKey(_, index), class: [`${mergedClsPrefix}-dynamic-input-item`, itemClass], style: itemStyle },
|
|
250
250
|
resolveSlotWithProps($slots.default, {
|
|
251
251
|
value: mergedValue[index],
|
|
252
252
|
index
|
|
@@ -16,9 +16,11 @@ export declare const dynamicTagsProps: {
|
|
|
16
16
|
default: () => never[];
|
|
17
17
|
};
|
|
18
18
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
19
|
+
inputClass: StringConstructor;
|
|
19
20
|
inputStyle: PropType<string | CSSProperties>;
|
|
20
21
|
inputProps: PropType<InputProps>;
|
|
21
22
|
max: PropType<number>;
|
|
23
|
+
tagClass: StringConstructor;
|
|
22
24
|
tagStyle: PropType<string | CSSProperties>;
|
|
23
25
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
24
26
|
onCreate: {
|
|
@@ -1143,9 +1145,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1145
|
default: () => never[];
|
|
1144
1146
|
};
|
|
1145
1147
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
1148
|
+
inputClass: StringConstructor;
|
|
1146
1149
|
inputStyle: PropType<string | CSSProperties>;
|
|
1147
1150
|
inputProps: PropType<InputProps>;
|
|
1148
1151
|
max: PropType<number>;
|
|
1152
|
+
tagClass: StringConstructor;
|
|
1149
1153
|
tagStyle: PropType<string | CSSProperties>;
|
|
1150
1154
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
1151
1155
|
onCreate: {
|
|
@@ -2796,9 +2800,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2796
2800
|
default: () => never[];
|
|
2797
2801
|
};
|
|
2798
2802
|
value: PropType<(string | DynamicTagsOption)[]>;
|
|
2803
|
+
inputClass: StringConstructor;
|
|
2799
2804
|
inputStyle: PropType<string | CSSProperties>;
|
|
2800
2805
|
inputProps: PropType<InputProps>;
|
|
2801
2806
|
max: PropType<number>;
|
|
2807
|
+
tagClass: StringConstructor;
|
|
2802
2808
|
tagStyle: PropType<string | CSSProperties>;
|
|
2803
2809
|
renderTag: PropType<((tag: string, index: number) => VNodeChild) | ((tag: DynamicTagsOption, index: number) => VNodeChild)>;
|
|
2804
2810
|
onCreate: {
|
|
@@ -20,7 +20,7 @@ export const dynamicTagsProps = Object.assign(Object.assign(Object.assign({}, us
|
|
|
20
20
|
}, defaultValue: {
|
|
21
21
|
type: Array,
|
|
22
22
|
default: () => []
|
|
23
|
-
}, value: Array, inputStyle: [String, Object], inputProps: Object, max: Number, tagStyle: [String, Object], renderTag: Function, onCreate: {
|
|
23
|
+
}, value: Array, inputClass: String, inputStyle: [String, Object], inputProps: Object, max: Number, tagClass: String, tagStyle: [String, Object], renderTag: Function, onCreate: {
|
|
24
24
|
type: Function,
|
|
25
25
|
default: (label) => label
|
|
26
26
|
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array],
|
|
@@ -141,9 +141,9 @@ export default defineComponent({
|
|
|
141
141
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
142
142
|
return (h(NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
|
|
143
143
|
default: () => {
|
|
144
|
-
const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
144
|
+
const { mergedTheme, tagClass, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputClass, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
145
145
|
return this.mergedValue
|
|
146
|
-
.map((tag, index) => renderTag ? (renderTag(tag, index)) : (h(NTag, { key: index, theme: mergedTheme.peers.Tag, themeOverrides: mergedTheme.peerOverrides.Tag, style: tagStyle, type: type, round: round, size: size, color: color, closable: closable, disabled: mergedDisabled, onClose: () => {
|
|
146
|
+
.map((tag, index) => renderTag ? (renderTag(tag, index)) : (h(NTag, { key: index, theme: mergedTheme.peers.Tag, themeOverrides: mergedTheme.peerOverrides.Tag, class: tagClass, style: tagStyle, type: type, round: round, size: size, color: color, closable: closable, disabled: mergedDisabled, onClose: () => {
|
|
147
147
|
handleCloseClick(index);
|
|
148
148
|
} }, {
|
|
149
149
|
default: () => (typeof tag === 'string' ? tag : tag.label)
|
|
@@ -151,7 +151,7 @@ export default defineComponent({
|
|
|
151
151
|
.concat(showInput ? ($slots.input ? ($slots.input({
|
|
152
152
|
submit: handleInputConfirm,
|
|
153
153
|
deactivate: handleInputBlur
|
|
154
|
-
})) : (h(NInput, Object.assign({ placeholder: "", size: inputSize, style: inputStyle, autosize: true }, this.inputProps, { ref: "inputInstRef", value: inputValue, onUpdateValue: (v) => {
|
|
154
|
+
})) : (h(NInput, Object.assign({ placeholder: "", size: inputSize, style: inputStyle, class: inputClass, autosize: true }, this.inputProps, { ref: "inputInstRef", value: inputValue, onUpdateValue: (v) => {
|
|
155
155
|
this.inputValue = v;
|
|
156
156
|
}, theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, onKeyup: handleInputKeyUp, onBlur: handleInputBlur, internalForceFocus: inputForceFocused })))) : $slots.trigger ? ($slots.trigger({
|
|
157
157
|
activate: handleAddClick,
|
package/es/equation/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { KatexOptions } from 'katex';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
4
|
export declare const equationProps: {
|
|
4
5
|
readonly value: StringConstructor;
|
|
5
6
|
readonly katex: PropType<typeof import("katex")>;
|
|
6
7
|
readonly katexOptions: PropType<KatexOptions>;
|
|
7
8
|
};
|
|
9
|
+
export type EquationProps = ExtractPublicPropTypes<typeof equationProps>;
|
|
8
10
|
export declare const Equation: import("vue").DefineComponent<{
|
|
9
11
|
readonly value: StringConstructor;
|
|
10
12
|
readonly katex: PropType<typeof import("katex")>;
|
|
@@ -282,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
282
282
|
internalValidate: FormItemInternalValidate;
|
|
283
283
|
mergedSize: import("vue").ComputedRef<import("./interface").Size>;
|
|
284
284
|
validationErrored: import("vue").Ref<boolean>;
|
|
285
|
-
mergedLabelStyle: import("vue").ComputedRef<
|
|
285
|
+
mergedLabelStyle: import("vue").ComputedRef<import("vue").StyleValue[]>;
|
|
286
286
|
mergedLabelPlacement: import("vue").ComputedRef<LabelPlacement>;
|
|
287
287
|
mergedLabelAlign: import("vue").ComputedRef<LabelAlign | undefined>;
|
|
288
288
|
mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
|
package/es/form/src/utils.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function formItemSize(props: FormItemSetupProps): {
|
|
|
6
6
|
};
|
|
7
7
|
export declare function formItemMisc(props: FormItemSetupProps): {
|
|
8
8
|
validationErrored: import("vue").Ref<boolean>;
|
|
9
|
-
mergedLabelStyle: ComputedRef<
|
|
9
|
+
mergedLabelStyle: ComputedRef<import("vue").StyleValue[]>;
|
|
10
10
|
mergedLabelPlacement: ComputedRef<import("./interface").LabelPlacement>;
|
|
11
11
|
mergedLabelAlign: ComputedRef<import("./interface").LabelAlign | undefined>;
|
|
12
12
|
mergedShowRequireMark: ComputedRef<boolean | undefined>;
|