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
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { h, defineComponent, ref, computed } from 'vue';
|
|
2
|
+
import { resolveSlot } from '../../_utils';
|
|
3
|
+
import useConfig from '../../_mixins/use-config';
|
|
4
|
+
import style from './styles/index.cssr';
|
|
5
|
+
import { useTheme } from '../../_mixins';
|
|
6
|
+
import { splitLight } from '../styles';
|
|
7
|
+
import { off, on } from 'evtd';
|
|
8
|
+
export const splitProps = Object.assign(Object.assign({}, useTheme.props), { direction: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: 'horizontal'
|
|
11
|
+
}, resizeTriggerSize: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 3
|
|
14
|
+
}, disabled: Boolean, defaultSize: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 0.5
|
|
17
|
+
}, min: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0
|
|
20
|
+
}, max: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 1
|
|
23
|
+
}, onDragStart: Function, onDragMove: Function, onDragEnd: Function });
|
|
24
|
+
export default defineComponent({
|
|
25
|
+
name: 'Split',
|
|
26
|
+
props: splitProps,
|
|
27
|
+
setup(props) {
|
|
28
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
29
|
+
const themeRef = useTheme('Split', '-split', style, splitLight, props, mergedClsPrefixRef);
|
|
30
|
+
const cssVarsRef = computed(() => {
|
|
31
|
+
const { self: { resizableTriggerColorHover } } = themeRef.value;
|
|
32
|
+
return {
|
|
33
|
+
'--n-resize-trigger-color-hover': resizableTriggerColorHover
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const resizeTriggerElRef = ref(null);
|
|
37
|
+
const isDraggingRef = ref(false);
|
|
38
|
+
const currentSize = ref(props.defaultSize);
|
|
39
|
+
const firstPaneStyle = computed(() => {
|
|
40
|
+
const size = currentSize.value * 100;
|
|
41
|
+
return {
|
|
42
|
+
flex: `0 0 calc(${size}% - ${(props.resizeTriggerSize * size) / 100}px)`
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
const resizeTriggerStyle = computed(() => {
|
|
46
|
+
return props.direction === 'horizontal'
|
|
47
|
+
? {
|
|
48
|
+
width: `${props.resizeTriggerSize}px`,
|
|
49
|
+
height: '100%'
|
|
50
|
+
}
|
|
51
|
+
: {
|
|
52
|
+
width: '100%',
|
|
53
|
+
height: `${props.resizeTriggerSize}px`
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
const resizeTriggerWrapperStyle = computed(() => {
|
|
57
|
+
const horizontal = props.direction === 'horizontal';
|
|
58
|
+
return {
|
|
59
|
+
width: horizontal ? `${props.resizeTriggerSize}px` : '',
|
|
60
|
+
height: horizontal ? '' : `${props.resizeTriggerSize}px`,
|
|
61
|
+
cursor: props.direction === 'horizontal' ? 'col-resize' : 'row-resize'
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
let offset = 0;
|
|
65
|
+
const handleMouseDown = (e) => {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
isDraggingRef.value = true;
|
|
68
|
+
if (props.onDragStart)
|
|
69
|
+
props.onDragStart(e);
|
|
70
|
+
const mouseMoveEvent = 'mousemove';
|
|
71
|
+
const mouseUpEvent = 'mouseup';
|
|
72
|
+
const onMouseMove = (e) => {
|
|
73
|
+
updateSize(e);
|
|
74
|
+
if (props.onDragMove)
|
|
75
|
+
props.onDragMove(e);
|
|
76
|
+
};
|
|
77
|
+
const onMouseUp = () => {
|
|
78
|
+
off(mouseMoveEvent, document, onMouseMove);
|
|
79
|
+
off(mouseUpEvent, document, onMouseUp);
|
|
80
|
+
isDraggingRef.value = false;
|
|
81
|
+
if (props.onDragEnd)
|
|
82
|
+
props.onDragEnd(e);
|
|
83
|
+
document.body.style.cursor = '';
|
|
84
|
+
};
|
|
85
|
+
document.body.style.cursor = resizeTriggerWrapperStyle.value.cursor;
|
|
86
|
+
on(mouseMoveEvent, document, onMouseMove);
|
|
87
|
+
on(mouseUpEvent, document, onMouseUp);
|
|
88
|
+
const resizeTriggerEl = resizeTriggerElRef.value;
|
|
89
|
+
if (resizeTriggerEl) {
|
|
90
|
+
const elRect = resizeTriggerEl.getBoundingClientRect();
|
|
91
|
+
if (props.direction === 'horizontal') {
|
|
92
|
+
offset = e.clientX - elRect.left;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
offset = elRect.top - e.clientY;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
updateSize(e);
|
|
99
|
+
};
|
|
100
|
+
const updateSize = (event) => {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
const parentRect = (_b = (_a = resizeTriggerElRef.value) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
103
|
+
if (!parentRect)
|
|
104
|
+
return;
|
|
105
|
+
const newSize = props.direction === 'horizontal'
|
|
106
|
+
? (event.clientX - parentRect.left - offset) /
|
|
107
|
+
(parentRect.width - props.resizeTriggerSize)
|
|
108
|
+
: (event.clientY - parentRect.top + offset) /
|
|
109
|
+
(parentRect.height - props.resizeTriggerSize);
|
|
110
|
+
currentSize.value = newSize;
|
|
111
|
+
if (props.min) {
|
|
112
|
+
currentSize.value = Math.max(newSize, props.min);
|
|
113
|
+
}
|
|
114
|
+
if (props.max) {
|
|
115
|
+
currentSize.value = Math.min(currentSize.value, props.max);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
return {
|
|
119
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
120
|
+
resizeTriggerElRef,
|
|
121
|
+
isDragging: isDraggingRef,
|
|
122
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
123
|
+
resizeTriggerWrapperStyle,
|
|
124
|
+
resizeTriggerStyle,
|
|
125
|
+
handleMouseDown,
|
|
126
|
+
firstPaneStyle
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
render() {
|
|
130
|
+
var _a, _b, _c, _d;
|
|
131
|
+
return (h("div", { class: [
|
|
132
|
+
`${this.mergedClsPrefix}-split`,
|
|
133
|
+
`${this.mergedClsPrefix}-split--${this.direction}`
|
|
134
|
+
], style: this.cssVars },
|
|
135
|
+
h("div", { class: `${this.mergedClsPrefix}-split-pane-1`, style: this.firstPaneStyle }, (_b = (_a = this.$slots)[1]) === null || _b === void 0 ? void 0 : _b.call(_a)),
|
|
136
|
+
!this.disabled && (h("div", { ref: "resizeTriggerElRef", class: `${this.mergedClsPrefix}-split__resize-trigger-wrapper`, style: this.resizeTriggerWrapperStyle, onMousedown: this.handleMouseDown }, resolveSlot(this.$slots['resize-trigger'], () => [
|
|
137
|
+
h("div", { style: this.resizeTriggerStyle, class: [
|
|
138
|
+
`${this.mergedClsPrefix}-split__resize-trigger`,
|
|
139
|
+
this.isDragging &&
|
|
140
|
+
`${this.mergedClsPrefix}-split__resize-trigger--hover`
|
|
141
|
+
] })
|
|
142
|
+
]))),
|
|
143
|
+
h("div", { class: `${this.mergedClsPrefix}-split-pane-2` }, (_d = (_c = this.$slots)[2]) === null || _d === void 0 ? void 0 : _d.call(_c))));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { c, cB, cM, cE } from '../../../_utils/cssr';
|
|
2
|
+
// vars:
|
|
3
|
+
// --n-border-color
|
|
4
|
+
// --n-color
|
|
5
|
+
export default cB('split', `
|
|
6
|
+
display: flex;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
`, [cM('horizontal', `
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
`), cM('vertical', `
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
`), cB('split-pane-1', `
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
`), cB('split-pane-2', `
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
flex: 1;
|
|
18
|
+
`), cE('resize-trigger', `
|
|
19
|
+
background-color: var(--n-border-color);
|
|
20
|
+
transition: background-color .3s var(--n-bezier);
|
|
21
|
+
`, [cM('hover', `
|
|
22
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
23
|
+
`), c('&:hover', `
|
|
24
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
25
|
+
`)])]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ThemeCommonVars } from '../../_styles/common';
|
|
2
|
+
import { type Theme } from '../../_mixins';
|
|
3
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
4
|
+
resizableTriggerColorHover: string;
|
|
5
|
+
};
|
|
6
|
+
export type SplitThemeVars = ReturnType<typeof self>;
|
|
7
|
+
declare const themeLight: Theme<'Split', SplitThemeVars>;
|
|
8
|
+
export default themeLight;
|
|
9
|
+
export type SplitTheme = typeof themeLight;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { commonLight } from '../../_styles/common';
|
|
2
|
+
export const self = (vars) => {
|
|
3
|
+
const { primaryColorHover } = vars;
|
|
4
|
+
return {
|
|
5
|
+
resizableTriggerColorHover: primaryColorHover
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
const themeLight = {
|
|
9
|
+
name: 'Split',
|
|
10
|
+
common: commonLight,
|
|
11
|
+
self
|
|
12
|
+
};
|
|
13
|
+
export default themeLight;
|
package/es/steps/src/Steps.d.ts
CHANGED
|
@@ -369,8 +369,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
369
369
|
indicatorIconSizeMedium: string;
|
|
370
370
|
}, any>>>;
|
|
371
371
|
}>>, {
|
|
372
|
+
status: "wait" | "error" | "finish" | "process";
|
|
372
373
|
size: "small" | "medium";
|
|
373
374
|
vertical: boolean;
|
|
374
|
-
status: "wait" | "error" | "finish" | "process";
|
|
375
375
|
}, {}>;
|
|
376
376
|
export default _default;
|
package/es/tabs/src/Tab.js
CHANGED
|
@@ -75,7 +75,9 @@ export default defineComponent({
|
|
|
75
75
|
onClick: trigger === 'click' ? this.activateTab : undefined,
|
|
76
76
|
onMouseenter: trigger === 'hover' ? this.activateTab : undefined,
|
|
77
77
|
style: internalAddable ? undefined : style
|
|
78
|
-
},
|
|
78
|
+
},
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
80
|
+
this.internalCreatedByPane
|
|
79
81
|
? (this.tabProps || {})
|
|
80
82
|
: this.$attrs)),
|
|
81
83
|
h("span", { class: `${clsPrefix}-tabs-tab__label` }, internalAddable ? (h(Fragment, null,
|
package/es/tabs/src/Tabs.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const tabsProps: {
|
|
|
21
21
|
readonly default: "medium";
|
|
22
22
|
};
|
|
23
23
|
readonly placement: {
|
|
24
|
-
readonly type: PropType<"left" | "right" | "
|
|
24
|
+
readonly type: PropType<"left" | "right" | "top" | "bottom">;
|
|
25
25
|
readonly default: "top";
|
|
26
26
|
};
|
|
27
27
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
@@ -337,7 +337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
337
337
|
readonly default: "medium";
|
|
338
338
|
};
|
|
339
339
|
readonly placement: {
|
|
340
|
-
readonly type: PropType<"left" | "right" | "
|
|
340
|
+
readonly type: PropType<"left" | "right" | "top" | "bottom">;
|
|
341
341
|
readonly default: "top";
|
|
342
342
|
};
|
|
343
343
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
@@ -680,7 +680,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
680
680
|
$forceUpdate: () => void;
|
|
681
681
|
$nextTick: typeof nextTick;
|
|
682
682
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
683
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
|
|
683
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {}) | null>;
|
|
684
684
|
scrollWrapperElRef: import("vue").Ref<HTMLElement | null>;
|
|
685
685
|
addTabFixed: import("vue").Ref<boolean>;
|
|
686
686
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
@@ -726,7 +726,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
726
726
|
'--n-tab-color-segment': string;
|
|
727
727
|
}> | undefined;
|
|
728
728
|
themeClass: import("vue").Ref<string> | undefined;
|
|
729
|
-
animationDirection: import("vue").Ref<"
|
|
729
|
+
animationDirection: import("vue").Ref<"next" | "prev">;
|
|
730
730
|
renderNameListRef: {
|
|
731
731
|
value: Array<string | number>;
|
|
732
732
|
};
|
|
@@ -752,7 +752,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
752
752
|
readonly default: "medium";
|
|
753
753
|
};
|
|
754
754
|
readonly placement: {
|
|
755
|
-
readonly type: PropType<"left" | "right" | "
|
|
755
|
+
readonly type: PropType<"left" | "right" | "top" | "bottom">;
|
|
756
756
|
readonly default: "top";
|
|
757
757
|
};
|
|
758
758
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
@@ -1052,7 +1052,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1052
1052
|
readonly type: TabsType;
|
|
1053
1053
|
readonly size: "small" | "medium" | "large";
|
|
1054
1054
|
readonly closable: boolean;
|
|
1055
|
-
readonly placement: "left" | "right" | "
|
|
1055
|
+
readonly placement: "left" | "right" | "top" | "bottom";
|
|
1056
1056
|
readonly trigger: "click" | "hover";
|
|
1057
1057
|
readonly animated: boolean;
|
|
1058
1058
|
readonly tabsPadding: number;
|
package/es/tabs/src/Tabs.js
CHANGED
|
@@ -295,7 +295,7 @@ export default defineComponent({
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
if (type !== 'segment') {
|
|
298
|
-
deriveScrollShadow((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el);
|
|
298
|
+
deriveScrollShadow(((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el) || null);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
const handleNavResize = throttle(_handleNavResize, 64);
|
|
@@ -326,7 +326,7 @@ export default defineComponent({
|
|
|
326
326
|
addTabFixedRef.value = false;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
deriveScrollShadow((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el);
|
|
329
|
+
deriveScrollShadow(((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el) || null);
|
|
330
330
|
}
|
|
331
331
|
const handleTabsResize = throttle(_handleTabsResize, 64);
|
|
332
332
|
function handleAdd() {
|
|
@@ -124,7 +124,9 @@ export default cB('tabs', `
|
|
|
124
124
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
125
125
|
`)]), cM('shadow-end', [c('&::after', `
|
|
126
126
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
127
|
-
`)])])]), cM('left, right', [cB('tabs-nav-scroll-
|
|
127
|
+
`)])])]), cM('left, right', [cB('tabs-nav-scroll-content', `
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
`), cB('tabs-nav-scroll-wrapper', [c('&::before', `
|
|
128
130
|
top: 0;
|
|
129
131
|
left: 0;
|
|
130
132
|
right: 0;
|
|
@@ -160,6 +162,7 @@ export default cB('tabs', `
|
|
|
160
162
|
display: flex;
|
|
161
163
|
position: relative;
|
|
162
164
|
min-width: 100%;
|
|
165
|
+
min-height: 100%;
|
|
163
166
|
width: fit-content;
|
|
164
167
|
box-sizing: border-box;
|
|
165
168
|
`), cB('tabs-wrapper', `
|
|
@@ -293,7 +296,6 @@ export default cB('tabs', `
|
|
|
293
296
|
`), cB('tabs-pad', `
|
|
294
297
|
flex-grow: 1;
|
|
295
298
|
transition: border-color .3s var(--n-bezier);
|
|
296
|
-
border-bottom: 1px solid var(--n-tab-border-color);
|
|
297
299
|
`), cB('tabs-tab-pad', `
|
|
298
300
|
transition: border-color .3s var(--n-bezier);
|
|
299
301
|
`), cB('tabs-tab', `
|
|
@@ -334,6 +336,8 @@ export default cB('tabs', `
|
|
|
334
336
|
border-bottom: 1px solid #0000;
|
|
335
337
|
`)]), cB('tabs-tab-pad', `
|
|
336
338
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
339
|
+
`), cB('tabs-pad', `
|
|
340
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
337
341
|
`)])]), cM('left', [cM('card-type', [cB('tabs-tab', `
|
|
338
342
|
border-top-left-radius: var(--n-tab-border-radius);
|
|
339
343
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
@@ -341,6 +345,8 @@ export default cB('tabs', `
|
|
|
341
345
|
border-right: 1px solid #0000;
|
|
342
346
|
`)]), cB('tabs-tab-pad', `
|
|
343
347
|
border-right: 1px solid var(--n-tab-border-color);
|
|
348
|
+
`), cB('tabs-pad', `
|
|
349
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
344
350
|
`)])]), cM('right', [cM('card-type', [cB('tabs-tab', `
|
|
345
351
|
border-top-right-radius: var(--n-tab-border-radius);
|
|
346
352
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
@@ -348,6 +354,8 @@ export default cB('tabs', `
|
|
|
348
354
|
border-left: 1px solid #0000;
|
|
349
355
|
`)]), cB('tabs-tab-pad', `
|
|
350
356
|
border-left: 1px solid var(--n-tab-border-color);
|
|
357
|
+
`), cB('tabs-pad', `
|
|
358
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
351
359
|
`)])]), cM('bottom', [cM('card-type', [cB('tabs-tab', `
|
|
352
360
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
353
361
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
@@ -355,4 +363,6 @@ export default cB('tabs', `
|
|
|
355
363
|
border-top: 1px solid #0000;
|
|
356
364
|
`)]), cB('tabs-tab-pad', `
|
|
357
365
|
border-top: 1px solid var(--n-tab-border-color);
|
|
366
|
+
`), cB('tabs-pad', `
|
|
367
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
358
368
|
`)])])])]);
|
|
@@ -117,8 +117,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
117
117
|
}>;
|
|
118
118
|
theme: import("vue").ComputedRef<GlobalThemeOverrides>;
|
|
119
119
|
showPanel: import("vue").Ref<boolean>;
|
|
120
|
-
tempOverrides: any
|
|
121
|
-
overrides: any
|
|
120
|
+
tempOverrides: import("vue").Ref<any>;
|
|
121
|
+
overrides: import("vue").Ref<any>;
|
|
122
122
|
compNamePattern: import("vue").Ref<string>;
|
|
123
123
|
tempCompNamePattern: import("vue").Ref<string>;
|
|
124
124
|
varNamePattern: import("vue").Ref<string>;
|
package/es/themes/dark.js
CHANGED
|
@@ -54,6 +54,7 @@ import { popconfirmDark } from '../popconfirm/styles';
|
|
|
54
54
|
import { popoverDark } from '../popover/styles';
|
|
55
55
|
import { popselectDark } from '../popselect/styles';
|
|
56
56
|
import { progressDark } from '../progress/styles';
|
|
57
|
+
import { qrcodeDark } from '../qr-code/styles';
|
|
57
58
|
import { radioDark } from '../radio/styles';
|
|
58
59
|
import { rateDark } from '../rate/styles';
|
|
59
60
|
import { resultDark } from '../result/styles';
|
|
@@ -80,6 +81,7 @@ import { typographyDark } from '../typography/styles';
|
|
|
80
81
|
import { treeDark } from '../tree/styles';
|
|
81
82
|
import { uploadDark } from '../upload/styles';
|
|
82
83
|
import { watermarkDark } from '../watermark/styles';
|
|
84
|
+
import { splitDark } from '../split/styles';
|
|
83
85
|
export const darkTheme = {
|
|
84
86
|
name: 'dark',
|
|
85
87
|
common: commonDark,
|
|
@@ -138,6 +140,7 @@ export const darkTheme = {
|
|
|
138
140
|
Popover: popoverDark,
|
|
139
141
|
Popselect: popselectDark,
|
|
140
142
|
Progress: progressDark,
|
|
143
|
+
QrCode: qrcodeDark,
|
|
141
144
|
Radio: radioDark,
|
|
142
145
|
Rate: rateDark,
|
|
143
146
|
Result: resultDark,
|
|
@@ -163,5 +166,6 @@ export const darkTheme = {
|
|
|
163
166
|
TreeSelect: treeSelectDark,
|
|
164
167
|
Typography: typographyDark,
|
|
165
168
|
Upload: uploadDark,
|
|
166
|
-
Watermark: watermarkDark
|
|
169
|
+
Watermark: watermarkDark,
|
|
170
|
+
Split: splitDark
|
|
167
171
|
};
|
package/es/themes/light.js
CHANGED
|
@@ -56,6 +56,7 @@ import { popconfirmLight } from '../popconfirm/styles';
|
|
|
56
56
|
import { popoverLight } from '../popover/styles';
|
|
57
57
|
import { popselectLight } from '../popselect/styles';
|
|
58
58
|
import { progressLight } from '../progress/styles';
|
|
59
|
+
import { qrcodeLight } from '../qr-code/styles';
|
|
59
60
|
import { radioLight } from '../radio/styles';
|
|
60
61
|
import { rateLight } from '../rate/styles';
|
|
61
62
|
import { resultLight } from '../result/styles';
|
|
@@ -82,6 +83,7 @@ import { treeLight } from '../tree/styles';
|
|
|
82
83
|
import { treeSelectLight } from '../tree-select/styles';
|
|
83
84
|
import { uploadLight } from '../upload/styles';
|
|
84
85
|
import { watermarkLight } from '../watermark/styles';
|
|
86
|
+
import { splitLight } from '../split/styles';
|
|
85
87
|
export const lightTheme = {
|
|
86
88
|
name: 'light',
|
|
87
89
|
common: commonLight,
|
|
@@ -140,6 +142,7 @@ export const lightTheme = {
|
|
|
140
142
|
Popover: popoverLight,
|
|
141
143
|
Popselect: popselectLight,
|
|
142
144
|
Progress: progressLight,
|
|
145
|
+
QrCode: qrcodeLight,
|
|
143
146
|
Radio: radioLight,
|
|
144
147
|
Rate: rateLight,
|
|
145
148
|
Row: rowLight,
|
|
@@ -165,5 +168,6 @@ export const lightTheme = {
|
|
|
165
168
|
TreeSelect: treeSelectLight,
|
|
166
169
|
Typography: typographyLight,
|
|
167
170
|
Upload: uploadLight,
|
|
168
|
-
Watermark: watermarkLight
|
|
171
|
+
Watermark: watermarkLight,
|
|
172
|
+
Split: splitLight
|
|
169
173
|
};
|
package/es/thing/src/Thing.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ export declare const thingProps: {
|
|
|
4
4
|
title: StringConstructor;
|
|
5
5
|
titleExtra: StringConstructor;
|
|
6
6
|
description: StringConstructor;
|
|
7
|
+
descriptionClass: StringConstructor;
|
|
7
8
|
descriptionStyle: PropType<string | CSSProperties>;
|
|
8
9
|
content: StringConstructor;
|
|
10
|
+
contentClass: StringConstructor;
|
|
9
11
|
contentStyle: PropType<string | CSSProperties>;
|
|
10
12
|
contentIndented: BooleanConstructor;
|
|
11
13
|
theme: PropType<import("../../_mixins").Theme<"Thing", {
|
|
@@ -32,8 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
34
|
title: StringConstructor;
|
|
33
35
|
titleExtra: StringConstructor;
|
|
34
36
|
description: StringConstructor;
|
|
37
|
+
descriptionClass: StringConstructor;
|
|
35
38
|
descriptionStyle: PropType<string | CSSProperties>;
|
|
36
39
|
content: StringConstructor;
|
|
40
|
+
contentClass: StringConstructor;
|
|
37
41
|
contentStyle: PropType<string | CSSProperties>;
|
|
38
42
|
contentIndented: BooleanConstructor;
|
|
39
43
|
theme: PropType<import("../../_mixins").Theme<"Thing", {
|
|
@@ -58,8 +62,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
62
|
title: StringConstructor;
|
|
59
63
|
titleExtra: StringConstructor;
|
|
60
64
|
description: StringConstructor;
|
|
65
|
+
descriptionClass: StringConstructor;
|
|
61
66
|
descriptionStyle: PropType<string | CSSProperties>;
|
|
62
67
|
content: StringConstructor;
|
|
68
|
+
contentClass: StringConstructor;
|
|
63
69
|
contentStyle: PropType<string | CSSProperties>;
|
|
64
70
|
contentIndented: BooleanConstructor;
|
|
65
71
|
theme: PropType<import("../../_mixins").Theme<"Thing", {
|
package/es/thing/src/Thing.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h, defineComponent, computed, Fragment } from 'vue';
|
|
|
2
2
|
import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
3
3
|
import { thingLight } from '../styles';
|
|
4
4
|
import style from './styles/index.cssr';
|
|
5
|
-
export const thingProps = Object.assign(Object.assign({}, useTheme.props), { title: String, titleExtra: String, description: String, descriptionStyle: [String, Object], content: String, contentStyle: [String, Object], contentIndented: Boolean });
|
|
5
|
+
export const thingProps = Object.assign(Object.assign({}, useTheme.props), { title: String, titleExtra: String, description: String, descriptionClass: String, descriptionStyle: [String, Object], content: String, contentClass: String, contentStyle: [String, Object], contentIndented: Boolean });
|
|
6
6
|
export default defineComponent({
|
|
7
7
|
name: 'Thing',
|
|
8
8
|
props: thingProps,
|
|
@@ -53,7 +53,10 @@ export default defineComponent({
|
|
|
53
53
|
slots['header-extra'] || props.titleExtra ? (h("div", { class: `${mergedClsPrefix}-thing-header__extra` }, slots['header-extra']
|
|
54
54
|
? slots['header-extra']()
|
|
55
55
|
: props.titleExtra)) : null),
|
|
56
|
-
slots.description || props.description ? (h("div", { class:
|
|
56
|
+
slots.description || props.description ? (h("div", { class: [
|
|
57
|
+
`${mergedClsPrefix}-thing-main__description`,
|
|
58
|
+
props.descriptionClass
|
|
59
|
+
], style: props.descriptionStyle }, slots.description
|
|
57
60
|
? slots.description()
|
|
58
61
|
: props.description)) : null)) : null)) : (h(Fragment, null,
|
|
59
62
|
slots.header ||
|
|
@@ -64,10 +67,16 @@ export default defineComponent({
|
|
|
64
67
|
slots['header-extra'] || props.titleExtra ? (h("div", { class: `${mergedClsPrefix}-thing-header__extra` }, slots['header-extra']
|
|
65
68
|
? slots['header-extra']()
|
|
66
69
|
: props.titleExtra)) : null)) : null,
|
|
67
|
-
slots.description || props.description ? (h("div", { class:
|
|
70
|
+
slots.description || props.description ? (h("div", { class: [
|
|
71
|
+
`${mergedClsPrefix}-thing-main__description`,
|
|
72
|
+
props.descriptionClass
|
|
73
|
+
], style: props.descriptionStyle }, slots.description
|
|
68
74
|
? slots.description()
|
|
69
75
|
: props.description)) : null)),
|
|
70
|
-
slots.default || props.content ? (h("div", { class:
|
|
76
|
+
slots.default || props.content ? (h("div", { class: [
|
|
77
|
+
`${mergedClsPrefix}-thing-main__content`,
|
|
78
|
+
props.contentClass
|
|
79
|
+
], style: props.contentStyle }, slots.default ? slots.default() : props.content)) : null,
|
|
71
80
|
slots.footer ? (h("div", { class: `${mergedClsPrefix}-thing-main__footer` }, slots.footer())) : null,
|
|
72
81
|
slots.action ? (h("div", { class: `${mergedClsPrefix}-thing-main__action` }, slots.action())) : null)));
|
|
73
82
|
};
|
|
@@ -103,7 +103,10 @@ export declare const tooltipProps: {
|
|
|
103
103
|
type: import("vue").PropType<"show" | "if">;
|
|
104
104
|
default: string;
|
|
105
105
|
};
|
|
106
|
+
arrowClass: StringConstructor;
|
|
106
107
|
arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
108
|
+
arrowWrapperClass: StringConstructor;
|
|
109
|
+
arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
107
110
|
flip: {
|
|
108
111
|
type: BooleanConstructor;
|
|
109
112
|
default: boolean;
|
|
@@ -127,8 +130,11 @@ export declare const tooltipProps: {
|
|
|
127
130
|
default: undefined;
|
|
128
131
|
};
|
|
129
132
|
scrollable: BooleanConstructor;
|
|
133
|
+
contentClass: StringConstructor;
|
|
130
134
|
contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
135
|
+
headerClass: StringConstructor;
|
|
131
136
|
headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
137
|
+
footerClass: StringConstructor;
|
|
132
138
|
footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
133
139
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
134
140
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -256,7 +262,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
262
|
type: import("vue").PropType<"show" | "if">;
|
|
257
263
|
default: string;
|
|
258
264
|
};
|
|
265
|
+
arrowClass: StringConstructor;
|
|
259
266
|
arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
267
|
+
arrowWrapperClass: StringConstructor;
|
|
268
|
+
arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
260
269
|
flip: {
|
|
261
270
|
type: BooleanConstructor;
|
|
262
271
|
default: boolean;
|
|
@@ -280,8 +289,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
289
|
default: undefined;
|
|
281
290
|
};
|
|
282
291
|
scrollable: BooleanConstructor;
|
|
292
|
+
contentClass: StringConstructor;
|
|
283
293
|
contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
294
|
+
headerClass: StringConstructor;
|
|
284
295
|
headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
296
|
+
footerClass: StringConstructor;
|
|
285
297
|
footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
286
298
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
287
299
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
|
@@ -558,7 +570,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
558
570
|
type: import("vue").PropType<"show" | "if">;
|
|
559
571
|
default: string;
|
|
560
572
|
};
|
|
573
|
+
arrowClass: StringConstructor;
|
|
561
574
|
arrowStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
575
|
+
arrowWrapperClass: StringConstructor;
|
|
576
|
+
arrowWrapperStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
562
577
|
flip: {
|
|
563
578
|
type: BooleanConstructor;
|
|
564
579
|
default: boolean;
|
|
@@ -582,8 +597,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
597
|
default: undefined;
|
|
583
598
|
};
|
|
584
599
|
scrollable: BooleanConstructor;
|
|
600
|
+
contentClass: StringConstructor;
|
|
585
601
|
contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
602
|
+
headerClass: StringConstructor;
|
|
586
603
|
headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
604
|
+
footerClass: StringConstructor;
|
|
587
605
|
footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
588
606
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
589
607
|
'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(value: boolean) => void>>;
|
package/es/tree/index.d.ts
CHANGED
package/es/tree/index.js
CHANGED