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,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.splitProps = void 0;
|
|
7
|
+
const vue_1 = require("vue");
|
|
8
|
+
const _utils_1 = require("../../_utils");
|
|
9
|
+
const use_config_1 = __importDefault(require("../../_mixins/use-config"));
|
|
10
|
+
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
11
|
+
const _mixins_1 = require("../../_mixins");
|
|
12
|
+
const styles_1 = require("../styles");
|
|
13
|
+
const evtd_1 = require("evtd");
|
|
14
|
+
exports.splitProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { direction: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: 'horizontal'
|
|
17
|
+
}, resizeTriggerSize: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 3
|
|
20
|
+
}, disabled: Boolean, defaultSize: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 0.5
|
|
23
|
+
}, min: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 0
|
|
26
|
+
}, max: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 1
|
|
29
|
+
}, onDragStart: Function, onDragMove: Function, onDragEnd: Function });
|
|
30
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
31
|
+
name: 'Split',
|
|
32
|
+
props: exports.splitProps,
|
|
33
|
+
setup(props) {
|
|
34
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = (0, use_config_1.default)(props);
|
|
35
|
+
const themeRef = (0, _mixins_1.useTheme)('Split', '-split', index_cssr_1.default, styles_1.splitLight, props, mergedClsPrefixRef);
|
|
36
|
+
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
37
|
+
const { self: { resizableTriggerColorHover } } = themeRef.value;
|
|
38
|
+
return {
|
|
39
|
+
'--n-resize-trigger-color-hover': resizableTriggerColorHover
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
const resizeTriggerElRef = (0, vue_1.ref)(null);
|
|
43
|
+
const isDraggingRef = (0, vue_1.ref)(false);
|
|
44
|
+
const currentSize = (0, vue_1.ref)(props.defaultSize);
|
|
45
|
+
const firstPaneStyle = (0, vue_1.computed)(() => {
|
|
46
|
+
const size = currentSize.value * 100;
|
|
47
|
+
return {
|
|
48
|
+
flex: `0 0 calc(${size}% - ${(props.resizeTriggerSize * size) / 100}px)`
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
const resizeTriggerStyle = (0, vue_1.computed)(() => {
|
|
52
|
+
return props.direction === 'horizontal'
|
|
53
|
+
? {
|
|
54
|
+
width: `${props.resizeTriggerSize}px`,
|
|
55
|
+
height: '100%'
|
|
56
|
+
}
|
|
57
|
+
: {
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: `${props.resizeTriggerSize}px`
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
const resizeTriggerWrapperStyle = (0, vue_1.computed)(() => {
|
|
63
|
+
const horizontal = props.direction === 'horizontal';
|
|
64
|
+
return {
|
|
65
|
+
width: horizontal ? `${props.resizeTriggerSize}px` : '',
|
|
66
|
+
height: horizontal ? '' : `${props.resizeTriggerSize}px`,
|
|
67
|
+
cursor: props.direction === 'horizontal' ? 'col-resize' : 'row-resize'
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
let offset = 0;
|
|
71
|
+
const handleMouseDown = (e) => {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
isDraggingRef.value = true;
|
|
74
|
+
if (props.onDragStart)
|
|
75
|
+
props.onDragStart(e);
|
|
76
|
+
const mouseMoveEvent = 'mousemove';
|
|
77
|
+
const mouseUpEvent = 'mouseup';
|
|
78
|
+
const onMouseMove = (e) => {
|
|
79
|
+
updateSize(e);
|
|
80
|
+
if (props.onDragMove)
|
|
81
|
+
props.onDragMove(e);
|
|
82
|
+
};
|
|
83
|
+
const onMouseUp = () => {
|
|
84
|
+
(0, evtd_1.off)(mouseMoveEvent, document, onMouseMove);
|
|
85
|
+
(0, evtd_1.off)(mouseUpEvent, document, onMouseUp);
|
|
86
|
+
isDraggingRef.value = false;
|
|
87
|
+
if (props.onDragEnd)
|
|
88
|
+
props.onDragEnd(e);
|
|
89
|
+
document.body.style.cursor = '';
|
|
90
|
+
};
|
|
91
|
+
document.body.style.cursor = resizeTriggerWrapperStyle.value.cursor;
|
|
92
|
+
(0, evtd_1.on)(mouseMoveEvent, document, onMouseMove);
|
|
93
|
+
(0, evtd_1.on)(mouseUpEvent, document, onMouseUp);
|
|
94
|
+
const resizeTriggerEl = resizeTriggerElRef.value;
|
|
95
|
+
if (resizeTriggerEl) {
|
|
96
|
+
const elRect = resizeTriggerEl.getBoundingClientRect();
|
|
97
|
+
if (props.direction === 'horizontal') {
|
|
98
|
+
offset = e.clientX - elRect.left;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
offset = elRect.top - e.clientY;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
updateSize(e);
|
|
105
|
+
};
|
|
106
|
+
const updateSize = (event) => {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
const parentRect = (_b = (_a = resizeTriggerElRef.value) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
109
|
+
if (!parentRect)
|
|
110
|
+
return;
|
|
111
|
+
const newSize = props.direction === 'horizontal'
|
|
112
|
+
? (event.clientX - parentRect.left - offset) /
|
|
113
|
+
(parentRect.width - props.resizeTriggerSize)
|
|
114
|
+
: (event.clientY - parentRect.top + offset) /
|
|
115
|
+
(parentRect.height - props.resizeTriggerSize);
|
|
116
|
+
currentSize.value = newSize;
|
|
117
|
+
if (props.min) {
|
|
118
|
+
currentSize.value = Math.max(newSize, props.min);
|
|
119
|
+
}
|
|
120
|
+
if (props.max) {
|
|
121
|
+
currentSize.value = Math.min(currentSize.value, props.max);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
return {
|
|
125
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
126
|
+
resizeTriggerElRef,
|
|
127
|
+
isDragging: isDraggingRef,
|
|
128
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
129
|
+
resizeTriggerWrapperStyle,
|
|
130
|
+
resizeTriggerStyle,
|
|
131
|
+
handleMouseDown,
|
|
132
|
+
firstPaneStyle
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
render() {
|
|
136
|
+
var _a, _b, _c, _d;
|
|
137
|
+
return ((0, vue_1.h)("div", { class: [
|
|
138
|
+
`${this.mergedClsPrefix}-split`,
|
|
139
|
+
`${this.mergedClsPrefix}-split--${this.direction}`
|
|
140
|
+
], style: this.cssVars },
|
|
141
|
+
(0, vue_1.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)),
|
|
142
|
+
!this.disabled && ((0, vue_1.h)("div", { ref: "resizeTriggerElRef", class: `${this.mergedClsPrefix}-split__resize-trigger-wrapper`, style: this.resizeTriggerWrapperStyle, onMousedown: this.handleMouseDown }, (0, _utils_1.resolveSlot)(this.$slots['resize-trigger'], () => [
|
|
143
|
+
(0, vue_1.h)("div", { style: this.resizeTriggerStyle, class: [
|
|
144
|
+
`${this.mergedClsPrefix}-split__resize-trigger`,
|
|
145
|
+
this.isDragging &&
|
|
146
|
+
`${this.mergedClsPrefix}-split__resize-trigger--hover`
|
|
147
|
+
] })
|
|
148
|
+
]))),
|
|
149
|
+
(0, vue_1.h)("div", { class: `${this.mergedClsPrefix}-split-pane-2` }, (_d = (_c = this.$slots)[2]) === null || _d === void 0 ? void 0 : _d.call(_c))));
|
|
150
|
+
}
|
|
151
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
|
+
// --n-border-color
|
|
9
|
+
// --n-color
|
|
10
|
+
exports.default = (0, cssr_1.cB)('split', `
|
|
11
|
+
display: flex;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
`, [(0, cssr_1.cM)('horizontal', `
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
`), (0, cssr_1.cM)('vertical', `
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
`), (0, cssr_1.cB)('split-pane-1', `
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
`), (0, cssr_1.cB)('split-pane-2', `
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
flex: 1;
|
|
23
|
+
`), (0, cssr_1.cE)('resize-trigger', `
|
|
24
|
+
background-color: var(--n-border-color);
|
|
25
|
+
transition: background-color .3s var(--n-bezier);
|
|
26
|
+
`, [(0, cssr_1.cM)('hover', `
|
|
27
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
28
|
+
`), (0, cssr_1.c)('&:hover', `
|
|
29
|
+
background-color: var(--n-resize-trigger-color-hover);
|
|
30
|
+
`)])]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.splitLight = exports.splitDark = void 0;
|
|
7
|
+
var dark_1 = require("./dark");
|
|
8
|
+
Object.defineProperty(exports, "splitDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
|
+
var light_1 = require("./light");
|
|
10
|
+
Object.defineProperty(exports, "splitLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
@@ -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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = void 0;
|
|
4
|
+
const common_1 = require("../../_styles/common");
|
|
5
|
+
const self = (vars) => {
|
|
6
|
+
const { primaryColorHover } = vars;
|
|
7
|
+
return {
|
|
8
|
+
resizableTriggerColorHover: primaryColorHover
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
exports.self = self;
|
|
12
|
+
const themeLight = {
|
|
13
|
+
name: 'Split',
|
|
14
|
+
common: common_1.commonLight,
|
|
15
|
+
self: exports.self
|
|
16
|
+
};
|
|
17
|
+
exports.default = themeLight;
|
package/lib/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/lib/tabs/src/Tab.js
CHANGED
|
@@ -78,7 +78,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
78
78
|
onClick: trigger === 'click' ? this.activateTab : undefined,
|
|
79
79
|
onMouseenter: trigger === 'hover' ? this.activateTab : undefined,
|
|
80
80
|
style: internalAddable ? undefined : style
|
|
81
|
-
},
|
|
81
|
+
},
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
83
|
+
this.internalCreatedByPane
|
|
82
84
|
? (this.tabProps || {})
|
|
83
85
|
: this.$attrs)),
|
|
84
86
|
(0, vue_1.h)("span", { class: `${clsPrefix}-tabs-tab__label` }, internalAddable ? ((0, vue_1.h)(vue_1.Fragment, null,
|
package/lib/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/lib/tabs/src/Tabs.js
CHANGED
|
@@ -301,7 +301,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
if (type !== 'segment') {
|
|
304
|
-
deriveScrollShadow((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el);
|
|
304
|
+
deriveScrollShadow(((_b = xScrollInstRef.value) === null || _b === void 0 ? void 0 : _b.$el) || null);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
const handleNavResize = (0, lodash_1.throttle)(_handleNavResize, 64);
|
|
@@ -332,7 +332,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
332
332
|
addTabFixedRef.value = false;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
deriveScrollShadow((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el);
|
|
335
|
+
deriveScrollShadow(((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el) || null);
|
|
336
336
|
}
|
|
337
337
|
const handleTabsResize = (0, lodash_1.throttle)(_handleTabsResize, 64);
|
|
338
338
|
function handleAdd() {
|
|
@@ -129,7 +129,9 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
129
129
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
130
130
|
`)]), (0, cssr_1.cM)('shadow-end', [(0, cssr_1.c)('&::after', `
|
|
131
131
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
132
|
-
`)])])]), (0, cssr_1.cM)('left, right', [(0, cssr_1.cB)('tabs-nav-scroll-
|
|
132
|
+
`)])])]), (0, cssr_1.cM)('left, right', [(0, cssr_1.cB)('tabs-nav-scroll-content', `
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
`), (0, cssr_1.cB)('tabs-nav-scroll-wrapper', [(0, cssr_1.c)('&::before', `
|
|
133
135
|
top: 0;
|
|
134
136
|
left: 0;
|
|
135
137
|
right: 0;
|
|
@@ -165,6 +167,7 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
165
167
|
display: flex;
|
|
166
168
|
position: relative;
|
|
167
169
|
min-width: 100%;
|
|
170
|
+
min-height: 100%;
|
|
168
171
|
width: fit-content;
|
|
169
172
|
box-sizing: border-box;
|
|
170
173
|
`), (0, cssr_1.cB)('tabs-wrapper', `
|
|
@@ -298,7 +301,6 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
298
301
|
`), (0, cssr_1.cB)('tabs-pad', `
|
|
299
302
|
flex-grow: 1;
|
|
300
303
|
transition: border-color .3s var(--n-bezier);
|
|
301
|
-
border-bottom: 1px solid var(--n-tab-border-color);
|
|
302
304
|
`), (0, cssr_1.cB)('tabs-tab-pad', `
|
|
303
305
|
transition: border-color .3s var(--n-bezier);
|
|
304
306
|
`), (0, cssr_1.cB)('tabs-tab', `
|
|
@@ -339,6 +341,8 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
339
341
|
border-bottom: 1px solid #0000;
|
|
340
342
|
`)]), (0, cssr_1.cB)('tabs-tab-pad', `
|
|
341
343
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
344
|
+
`), (0, cssr_1.cB)('tabs-pad', `
|
|
345
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
342
346
|
`)])]), (0, cssr_1.cM)('left', [(0, cssr_1.cM)('card-type', [(0, cssr_1.cB)('tabs-tab', `
|
|
343
347
|
border-top-left-radius: var(--n-tab-border-radius);
|
|
344
348
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
@@ -346,6 +350,8 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
346
350
|
border-right: 1px solid #0000;
|
|
347
351
|
`)]), (0, cssr_1.cB)('tabs-tab-pad', `
|
|
348
352
|
border-right: 1px solid var(--n-tab-border-color);
|
|
353
|
+
`), (0, cssr_1.cB)('tabs-pad', `
|
|
354
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
349
355
|
`)])]), (0, cssr_1.cM)('right', [(0, cssr_1.cM)('card-type', [(0, cssr_1.cB)('tabs-tab', `
|
|
350
356
|
border-top-right-radius: var(--n-tab-border-radius);
|
|
351
357
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
@@ -353,6 +359,8 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
353
359
|
border-left: 1px solid #0000;
|
|
354
360
|
`)]), (0, cssr_1.cB)('tabs-tab-pad', `
|
|
355
361
|
border-left: 1px solid var(--n-tab-border-color);
|
|
362
|
+
`), (0, cssr_1.cB)('tabs-pad', `
|
|
363
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
356
364
|
`)])]), (0, cssr_1.cM)('bottom', [(0, cssr_1.cM)('card-type', [(0, cssr_1.cB)('tabs-tab', `
|
|
357
365
|
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
358
366
|
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
@@ -360,4 +368,6 @@ exports.default = (0, cssr_1.cB)('tabs', `
|
|
|
360
368
|
border-top: 1px solid #0000;
|
|
361
369
|
`)]), (0, cssr_1.cB)('tabs-tab-pad', `
|
|
362
370
|
border-top: 1px solid var(--n-tab-border-color);
|
|
371
|
+
`), (0, cssr_1.cB)('tabs-pad', `
|
|
372
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
363
373
|
`)])])])]);
|
|
@@ -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/lib/themes/dark.js
CHANGED
|
@@ -57,32 +57,34 @@ const styles_52 = require("../popconfirm/styles");
|
|
|
57
57
|
const styles_53 = require("../popover/styles");
|
|
58
58
|
const styles_54 = require("../popselect/styles");
|
|
59
59
|
const styles_55 = require("../progress/styles");
|
|
60
|
-
const styles_56 = require("../
|
|
61
|
-
const styles_57 = require("../
|
|
62
|
-
const styles_58 = require("../
|
|
63
|
-
const styles_59 = require("../
|
|
64
|
-
const styles_60 = require("../
|
|
65
|
-
const styles_61 = require("../
|
|
66
|
-
const styles_62 = require("../
|
|
67
|
-
const styles_63 = require("../
|
|
68
|
-
const styles_64 = require("../
|
|
69
|
-
const styles_65 = require("../
|
|
70
|
-
const styles_66 = require("../
|
|
71
|
-
const styles_67 = require("../
|
|
72
|
-
const styles_68 = require("../
|
|
73
|
-
const styles_69 = require("../
|
|
74
|
-
const styles_70 = require("../
|
|
75
|
-
const styles_71 = require("../
|
|
76
|
-
const styles_72 = require("../
|
|
77
|
-
const styles_73 = require("../
|
|
78
|
-
const styles_74 = require("../
|
|
79
|
-
const styles_75 = require("../
|
|
80
|
-
const styles_76 = require("../
|
|
81
|
-
const styles_77 = require("../
|
|
82
|
-
const styles_78 = require("../
|
|
83
|
-
const styles_79 = require("../
|
|
84
|
-
const styles_80 = require("../
|
|
85
|
-
const styles_81 = require("../
|
|
60
|
+
const styles_56 = require("../qr-code/styles");
|
|
61
|
+
const styles_57 = require("../radio/styles");
|
|
62
|
+
const styles_58 = require("../rate/styles");
|
|
63
|
+
const styles_59 = require("../result/styles");
|
|
64
|
+
const styles_60 = require("../legacy-grid/styles");
|
|
65
|
+
const styles_61 = require("../_internal/scrollbar/styles");
|
|
66
|
+
const styles_62 = require("../select/styles");
|
|
67
|
+
const styles_63 = require("../skeleton/styles");
|
|
68
|
+
const styles_64 = require("../slider/styles");
|
|
69
|
+
const styles_65 = require("../space/styles");
|
|
70
|
+
const styles_66 = require("../spin/styles");
|
|
71
|
+
const styles_67 = require("../statistic/styles");
|
|
72
|
+
const styles_68 = require("../steps/styles");
|
|
73
|
+
const styles_69 = require("../switch/styles");
|
|
74
|
+
const styles_70 = require("../table/styles");
|
|
75
|
+
const styles_71 = require("../tabs/styles");
|
|
76
|
+
const styles_72 = require("../tag/styles");
|
|
77
|
+
const styles_73 = require("../thing/styles");
|
|
78
|
+
const styles_74 = require("../time-picker/styles");
|
|
79
|
+
const styles_75 = require("../timeline/styles");
|
|
80
|
+
const styles_76 = require("../tooltip/styles");
|
|
81
|
+
const styles_77 = require("../transfer/styles");
|
|
82
|
+
const styles_78 = require("../tree-select/styles");
|
|
83
|
+
const styles_79 = require("../typography/styles");
|
|
84
|
+
const styles_80 = require("../tree/styles");
|
|
85
|
+
const styles_81 = require("../upload/styles");
|
|
86
|
+
const styles_82 = require("../watermark/styles");
|
|
87
|
+
const styles_83 = require("../split/styles");
|
|
86
88
|
exports.darkTheme = {
|
|
87
89
|
name: 'dark',
|
|
88
90
|
common: common_1.commonDark,
|
|
@@ -141,30 +143,32 @@ exports.darkTheme = {
|
|
|
141
143
|
Popover: styles_53.popoverDark,
|
|
142
144
|
Popselect: styles_54.popselectDark,
|
|
143
145
|
Progress: styles_55.progressDark,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
146
|
+
QrCode: styles_56.qrcodeDark,
|
|
147
|
+
Radio: styles_57.radioDark,
|
|
148
|
+
Rate: styles_58.rateDark,
|
|
149
|
+
Result: styles_59.resultDark,
|
|
150
|
+
Row: styles_60.rowDark,
|
|
151
|
+
Scrollbar: styles_61.scrollbarDark,
|
|
152
|
+
Select: styles_62.selectDark,
|
|
153
|
+
Skeleton: styles_63.skeletonDark,
|
|
154
|
+
Slider: styles_64.sliderDark,
|
|
155
|
+
Space: styles_65.spaceDark,
|
|
156
|
+
Spin: styles_66.spinDark,
|
|
157
|
+
Statistic: styles_67.statisticDark,
|
|
158
|
+
Steps: styles_68.stepsDark,
|
|
159
|
+
Switch: styles_69.switchDark,
|
|
160
|
+
Table: styles_70.tableDark,
|
|
161
|
+
Tabs: styles_71.tabsDark,
|
|
162
|
+
Tag: styles_72.tagDark,
|
|
163
|
+
Thing: styles_73.thingDark,
|
|
164
|
+
TimePicker: styles_74.timePickerDark,
|
|
165
|
+
Timeline: styles_75.timelineDark,
|
|
166
|
+
Tooltip: styles_76.tooltipDark,
|
|
167
|
+
Transfer: styles_77.transferDark,
|
|
168
|
+
Tree: styles_80.treeDark,
|
|
169
|
+
TreeSelect: styles_78.treeSelectDark,
|
|
170
|
+
Typography: styles_79.typographyDark,
|
|
171
|
+
Upload: styles_81.uploadDark,
|
|
172
|
+
Watermark: styles_82.watermarkDark,
|
|
173
|
+
Split: styles_83.splitDark
|
|
170
174
|
};
|