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
|
@@ -547,11 +547,14 @@ const Scrollbar = defineComponent({
|
|
|
547
547
|
if (!this.scrollable)
|
|
548
548
|
return (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots);
|
|
549
549
|
const triggerIsNone = this.trigger === 'none';
|
|
550
|
-
const createYRail = (style) => {
|
|
550
|
+
const createYRail = (className, style) => {
|
|
551
551
|
return (h("div", { ref: "yRailRef", class: [
|
|
552
552
|
`${mergedClsPrefix}-scrollbar-rail`,
|
|
553
|
-
`${mergedClsPrefix}-scrollbar-rail--vertical
|
|
554
|
-
|
|
553
|
+
`${mergedClsPrefix}-scrollbar-rail--vertical`,
|
|
554
|
+
className
|
|
555
|
+
], "data-scrollbar-rail": true, style: [style || '', this.verticalRailStyle], "aria-hiddens": true }, h(
|
|
556
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
557
|
+
(triggerIsNone ? Wrapper : Transition), triggerIsNone ? null : { name: 'fade-in-transition' }, {
|
|
555
558
|
default: () => this.needYBar && this.isShowYBar && !this.isIos ? (h("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
|
|
556
559
|
height: this.yBarSizePx,
|
|
557
560
|
top: this.yBarTopPx
|
|
@@ -592,11 +595,13 @@ const Scrollbar = defineComponent({
|
|
|
592
595
|
this.contentClass
|
|
593
596
|
] }, $slots))
|
|
594
597
|
}))),
|
|
595
|
-
internalHoistYRail ? null : createYRail(undefined),
|
|
598
|
+
internalHoistYRail ? null : createYRail(undefined, undefined),
|
|
596
599
|
this.xScrollable && (h("div", { ref: "xRailRef", class: [
|
|
597
600
|
`${mergedClsPrefix}-scrollbar-rail`,
|
|
598
601
|
`${mergedClsPrefix}-scrollbar-rail--horizontal`
|
|
599
|
-
], style: this.horizontalRailStyle, "data-scrollbar-rail": true, "aria-hidden": true }, h(
|
|
602
|
+
], style: this.horizontalRailStyle, "data-scrollbar-rail": true, "aria-hidden": true }, h(
|
|
603
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
604
|
+
(triggerIsNone ? Wrapper : Transition), triggerIsNone ? null : { name: 'fade-in-transition' }, {
|
|
600
605
|
default: () => this.needXBar && this.isShowXBar && !this.isIos ? (h("div", { class: `${mergedClsPrefix}-scrollbar-rail__scrollbar`, style: {
|
|
601
606
|
width: this.xBarSizePx,
|
|
602
607
|
right: rtlEnabled ? this.xBarLeftPx : undefined,
|
|
@@ -611,7 +616,7 @@ const Scrollbar = defineComponent({
|
|
|
611
616
|
if (internalHoistYRail) {
|
|
612
617
|
return (h(Fragment, null,
|
|
613
618
|
scrollbarNode,
|
|
614
|
-
createYRail(this.cssVars)));
|
|
619
|
+
createYRail(this.themeClass, this.cssVars)));
|
|
615
620
|
}
|
|
616
621
|
else {
|
|
617
622
|
return scrollbarNode;
|
|
@@ -424,8 +424,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
424
424
|
padding: import("vue").ComputedRef<import("seemly").Margin>;
|
|
425
425
|
flattenedNodes: import("vue").ComputedRef<TreeNode<import("../../../select/src/interface").SelectBaseOption<string | number, string | ((option: import("../../../select/src/interface").SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>, SelectGroupOption, SelectIgnoredOption>[]>;
|
|
426
426
|
empty: import("vue").ComputedRef<boolean>;
|
|
427
|
-
virtualListContainer(): HTMLElement;
|
|
428
|
-
virtualListContent(): HTMLElement;
|
|
427
|
+
virtualListContainer(): HTMLElement | undefined;
|
|
428
|
+
virtualListContent(): HTMLElement | null | undefined;
|
|
429
429
|
doScroll: (e: Event) => void;
|
|
430
430
|
handleFocusin: (e: FocusEvent) => void;
|
|
431
431
|
handleFocusout: (e: FocusEvent) => void;
|
|
@@ -689,8 +689,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
689
689
|
size: Size;
|
|
690
690
|
show: boolean;
|
|
691
691
|
multiple: boolean;
|
|
692
|
-
focusable: boolean;
|
|
693
692
|
loading: boolean;
|
|
693
|
+
focusable: boolean;
|
|
694
694
|
inlineThemeDisabled: boolean;
|
|
695
695
|
scrollable: boolean;
|
|
696
696
|
showCheckmark: boolean;
|
|
@@ -324,6 +324,7 @@ export default defineComponent({
|
|
|
324
324
|
themeClass,
|
|
325
325
|
this.multiple && `${clsPrefix}-base-select-menu--multiple`
|
|
326
326
|
], style: this.cssVars, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.handleKeyUp, onKeydown: this.handleKeyDown, onMousedown: this.handleMouseDown, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave },
|
|
327
|
+
resolveWrappedSlot($slots.header, (children) => children && (h("div", { class: `${clsPrefix}-base-select-menu__header`, "data-header": true, key: "header" }, children))),
|
|
327
328
|
this.loading ? (h("div", { class: `${clsPrefix}-base-select-menu__loading` },
|
|
328
329
|
h(NInternalLoading, { clsPrefix: clsPrefix, strokeWidth: 20 }))) : !this.empty ? (h(NScrollbar, { ref: "scrollbarRef", theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, scrollable: this.scrollable, container: virtualScroll ? this.virtualListContainer : undefined, content: virtualScroll ? this.virtualListContent : undefined, onScroll: virtualScroll ? undefined : this.doScroll }, {
|
|
329
330
|
default: () => {
|
|
@@ -43,6 +43,14 @@ export default cB('base-select-menu', `
|
|
|
43
43
|
`), cE('loading', `
|
|
44
44
|
color: var(--n-loading-color);
|
|
45
45
|
font-size: var(--n-loading-size);
|
|
46
|
+
`), cE('header', `
|
|
47
|
+
padding: 8px var(--n-option-padding-left);
|
|
48
|
+
font-size: var(--n-option-font-size);
|
|
49
|
+
transition:
|
|
50
|
+
color .3s var(--n-bezier),
|
|
51
|
+
border-color .3s var(--n-bezier);
|
|
52
|
+
border-bottom: 1px solid var(--n-action-divider-color);
|
|
53
|
+
color: var(--n-action-text-color);
|
|
46
54
|
`), cE('action', `
|
|
47
55
|
padding: 8px var(--n-option-padding-left);
|
|
48
56
|
font-size: var(--n-option-font-size);
|
|
@@ -488,7 +488,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
488
488
|
singleElRef: import("vue").Ref<HTMLElement | null>;
|
|
489
489
|
patternInputWrapperRef: import("vue").Ref<HTMLElement | null>;
|
|
490
490
|
overflowRef: import("vue").Ref<{
|
|
491
|
-
sync: (
|
|
491
|
+
sync: (options: {
|
|
492
|
+
showAllItemsBeforeCalculate: boolean;
|
|
493
|
+
}) => void;
|
|
492
494
|
} | null>;
|
|
493
495
|
inputTagElRef: import("vue").Ref<HTMLElement | null>;
|
|
494
496
|
handleMouseDown: (e: MouseEvent) => void;
|
|
@@ -87,7 +87,9 @@ export default defineComponent({
|
|
|
87
87
|
if (patternInputEl) {
|
|
88
88
|
patternInputEl.style.width = `${patternInputMirrorEl.offsetWidth}px`;
|
|
89
89
|
if (props.maxTagCount !== 'responsive') {
|
|
90
|
-
(_a = overflowRef.value) === null || _a === void 0 ? void 0 : _a.sync(
|
|
90
|
+
(_a = overflowRef.value) === null || _a === void 0 ? void 0 : _a.sync({
|
|
91
|
+
showAllItemsBeforeCalculate: false
|
|
92
|
+
});
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
}
|
|
@@ -500,7 +502,7 @@ export default defineComponent({
|
|
|
500
502
|
} }, {
|
|
501
503
|
default: createOriginalTagNodes,
|
|
502
504
|
counter: renderCounter
|
|
503
|
-
}))) : maxTagCountNumeric ? (createOriginalTagNodes().concat(counter)) : (createOriginalTagNodes());
|
|
505
|
+
}))) : maxTagCountNumeric && counter ? (createOriginalTagNodes().concat(counter)) : (createOriginalTagNodes());
|
|
504
506
|
const renderPopover = useMaxTagCount
|
|
505
507
|
? () => (h("div", { class: `${clsPrefix}-base-selection-popover` }, maxTagCountResponsive
|
|
506
508
|
? createOriginalTagNodes()
|
|
@@ -11,8 +11,8 @@ const base = {
|
|
|
11
11
|
alpha1: '0.82',
|
|
12
12
|
alpha2: '0.72',
|
|
13
13
|
alpha3: '0.38',
|
|
14
|
-
alpha4: '0.24',
|
|
15
|
-
alpha5: '0.18',
|
|
14
|
+
alpha4: '0.24', // disabled text, placeholder, icon
|
|
15
|
+
alpha5: '0.18', // disabled placeholder
|
|
16
16
|
alphaClose: '0.6',
|
|
17
17
|
alphaDisabled: '0.5',
|
|
18
18
|
alphaDisabledInput: '0.02',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Ref, type InjectionKey } from 'vue';
|
|
2
|
-
export declare function useInjectionInstanceCollection(injectionName: string | InjectionKey<unknown>, collectionKey: string, registerKeyRef: Ref<
|
|
2
|
+
export declare function useInjectionInstanceCollection(injectionName: string | InjectionKey<unknown>, collectionKey: string, registerKeyRef: Ref<string | undefined>): void;
|
|
3
3
|
export declare function useInjectionCollection(injectionName: string | InjectionKey<unknown>, collectionKey: string, valueRef: Ref<any>): void;
|
|
4
4
|
export declare function useInjectionElementCollection(injectionName: string | InjectionKey<unknown>, collectionKey: string, getElement: () => HTMLElement | null): void;
|
|
@@ -15,6 +15,8 @@ export function useInjectionInstanceCollection(injectionName, collectionKey, reg
|
|
|
15
15
|
registerInstance(undefined, registerKeyRef.value);
|
|
16
16
|
});
|
|
17
17
|
function registerInstance(key, oldKey) {
|
|
18
|
+
if (!injection)
|
|
19
|
+
return;
|
|
18
20
|
const collection = injection[collectionKey];
|
|
19
21
|
if (oldKey !== undefined)
|
|
20
22
|
removeInstance(collection, oldKey);
|
package/es/affix/src/Affix.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const affixProps: {
|
|
|
27
27
|
readonly default: undefined;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export declare const affixPropKeys: ("
|
|
30
|
+
export declare const affixPropKeys: ("target" | "top" | "bottom" | "position" | "listenTo" | "triggerTop" | "triggerBottom" | "offsetTop" | "offsetBottom")[];
|
|
31
31
|
export type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
|
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
|
|
@@ -85,8 +85,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
readonly default: undefined;
|
|
86
86
|
};
|
|
87
87
|
}>>, {
|
|
88
|
-
readonly position: "absolute" | "fix";
|
|
89
88
|
readonly target: (() => HTMLElement) | undefined;
|
|
89
|
+
readonly position: "absolute" | "fix";
|
|
90
90
|
readonly offsetTop: number | undefined;
|
|
91
91
|
readonly offsetBottom: number | undefined;
|
|
92
92
|
}, {}>;
|
package/es/affix/src/Affix.js
CHANGED
|
@@ -107,11 +107,13 @@ export default defineComponent({
|
|
|
107
107
|
return;
|
|
108
108
|
const scrollTop = getScrollTop(scrollTarget);
|
|
109
109
|
if (affixedRef.value) {
|
|
110
|
-
if (
|
|
110
|
+
if (topAffixedTriggerScrollTopRef.value !== null &&
|
|
111
|
+
scrollTop < topAffixedTriggerScrollTopRef.value) {
|
|
111
112
|
stickToTopRef.value = false;
|
|
112
113
|
topAffixedTriggerScrollTopRef.value = null;
|
|
113
114
|
}
|
|
114
|
-
if (
|
|
115
|
+
if (bottomAffixedTriggerScrollTopRef.value !== null &&
|
|
116
|
+
scrollTop > bottomAffixedTriggerScrollTopRef.value) {
|
|
115
117
|
stickToBottomRef.value = false;
|
|
116
118
|
bottomAffixedTriggerScrollTopRef.value = null;
|
|
117
119
|
}
|
package/es/alert/src/Alert.js
CHANGED
|
@@ -127,7 +127,9 @@ export default defineComponent({
|
|
|
127
127
|
style: this.cssVars,
|
|
128
128
|
role: 'alert'
|
|
129
129
|
};
|
|
130
|
-
return this.visible ? (
|
|
130
|
+
return this.visible ? (
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
132
|
+
h("div", Object.assign({}, mergeProps(this.$attrs, attrs)),
|
|
131
133
|
this.closable && (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-alert__close`, onClick: this.handleCloseClick })),
|
|
132
134
|
this.bordered && (h("div", { class: `${mergedClsPrefix}-alert__border` })),
|
|
133
135
|
this.showIcon && (h("div", { class: `${mergedClsPrefix}-alert__icon`, "aria-hidden": "true" }, resolveSlot($slots.icon, () => [
|
|
@@ -262,8 +262,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
}>>, {
|
|
263
263
|
readonly type: "block" | "rail";
|
|
264
264
|
readonly bound: number;
|
|
265
|
-
readonly position: "absolute" | "fix";
|
|
266
265
|
readonly target: (() => HTMLElement) | undefined;
|
|
266
|
+
readonly position: "absolute" | "fix";
|
|
267
267
|
readonly affix: boolean;
|
|
268
268
|
readonly offsetTop: number | undefined;
|
|
269
269
|
readonly offsetBottom: number | undefined;
|
|
@@ -1529,8 +1529,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1529
1529
|
}>>, {
|
|
1530
1530
|
readonly options: AutoCompleteOptions;
|
|
1531
1531
|
readonly disabled: boolean | undefined;
|
|
1532
|
-
readonly to: string | boolean | HTMLElement;
|
|
1533
1532
|
readonly loading: boolean;
|
|
1533
|
+
readonly to: string | boolean | HTMLElement;
|
|
1534
1534
|
readonly bordered: boolean | undefined;
|
|
1535
1535
|
readonly placement: FollowerPlacement;
|
|
1536
1536
|
readonly clearable: boolean;
|
|
@@ -2054,9 +2054,9 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
2054
2054
|
readonly text: boolean;
|
|
2055
2055
|
readonly circle: boolean;
|
|
2056
2056
|
readonly disabled: boolean;
|
|
2057
|
+
readonly loading: boolean;
|
|
2057
2058
|
readonly focusable: boolean;
|
|
2058
2059
|
readonly strong: boolean;
|
|
2059
|
-
readonly loading: boolean;
|
|
2060
2060
|
readonly bordered: boolean;
|
|
2061
2061
|
readonly tertiary: boolean;
|
|
2062
2062
|
readonly ghost: boolean;
|
package/es/button/src/Button.js
CHANGED
|
@@ -460,7 +460,7 @@ const Button = defineComponent({
|
|
|
460
460
|
});
|
|
461
461
|
export default Button;
|
|
462
462
|
// XButton is for tsx type checking
|
|
463
|
-
// It's not
|
|
463
|
+
// It's not compatible with render function `h`
|
|
464
464
|
// Currently we don't expose it as public
|
|
465
465
|
// If there's any issue about this, we may expose it
|
|
466
466
|
// Since most people use template, the type checking phase doesn't work as tsx
|
package/es/card/src/Card.d.ts
CHANGED
|
@@ -7,9 +7,13 @@ export interface CardSegmented {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const cardBaseProps: {
|
|
9
9
|
readonly title: StringConstructor;
|
|
10
|
+
readonly contentClass: StringConstructor;
|
|
10
11
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
12
|
+
readonly headerClass: StringConstructor;
|
|
11
13
|
readonly headerStyle: PropType<string | CSSProperties>;
|
|
14
|
+
readonly headerExtraClass: StringConstructor;
|
|
12
15
|
readonly headerExtraStyle: PropType<string | CSSProperties>;
|
|
16
|
+
readonly footerClass: StringConstructor;
|
|
13
17
|
readonly footerStyle: PropType<string | CSSProperties>;
|
|
14
18
|
readonly embedded: BooleanConstructor;
|
|
15
19
|
readonly segmented: {
|
|
@@ -33,12 +37,16 @@ export declare const cardBaseProps: {
|
|
|
33
37
|
readonly default: "div";
|
|
34
38
|
};
|
|
35
39
|
};
|
|
36
|
-
export declare const cardBasePropKeys: ("tag" | "size" | "title" | "role" | "bordered" | "closable" | "contentStyle" | "onClose" | "headerStyle" | "footerStyle" | "hoverable" | "embedded" | "headerExtraStyle" | "segmented")[];
|
|
40
|
+
export declare const cardBasePropKeys: ("tag" | "size" | "title" | "role" | "bordered" | "closable" | "contentClass" | "contentStyle" | "onClose" | "headerClass" | "headerStyle" | "footerClass" | "footerStyle" | "hoverable" | "embedded" | "headerExtraClass" | "headerExtraStyle" | "segmented")[];
|
|
37
41
|
export declare const cardProps: {
|
|
38
42
|
title: StringConstructor;
|
|
43
|
+
contentClass: StringConstructor;
|
|
39
44
|
contentStyle: PropType<string | CSSProperties>;
|
|
45
|
+
headerClass: StringConstructor;
|
|
40
46
|
headerStyle: PropType<string | CSSProperties>;
|
|
47
|
+
headerExtraClass: StringConstructor;
|
|
41
48
|
headerExtraStyle: PropType<string | CSSProperties>;
|
|
49
|
+
footerClass: StringConstructor;
|
|
42
50
|
footerStyle: PropType<string | CSSProperties>;
|
|
43
51
|
embedded: BooleanConstructor;
|
|
44
52
|
segmented: {
|
|
@@ -176,9 +184,13 @@ export declare const cardProps: {
|
|
|
176
184
|
export type CardProps = ExtractPublicPropTypes<typeof cardProps>;
|
|
177
185
|
declare const _default: import("vue").DefineComponent<{
|
|
178
186
|
title: StringConstructor;
|
|
187
|
+
contentClass: StringConstructor;
|
|
179
188
|
contentStyle: PropType<string | CSSProperties>;
|
|
189
|
+
headerClass: StringConstructor;
|
|
180
190
|
headerStyle: PropType<string | CSSProperties>;
|
|
191
|
+
headerExtraClass: StringConstructor;
|
|
181
192
|
headerExtraStyle: PropType<string | CSSProperties>;
|
|
193
|
+
footerClass: StringConstructor;
|
|
182
194
|
footerStyle: PropType<string | CSSProperties>;
|
|
183
195
|
embedded: BooleanConstructor;
|
|
184
196
|
segmented: {
|
|
@@ -499,9 +511,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
499
511
|
onRender: (() => void) | undefined;
|
|
500
512
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
501
513
|
title: StringConstructor;
|
|
514
|
+
contentClass: StringConstructor;
|
|
502
515
|
contentStyle: PropType<string | CSSProperties>;
|
|
516
|
+
headerClass: StringConstructor;
|
|
503
517
|
headerStyle: PropType<string | CSSProperties>;
|
|
518
|
+
headerExtraClass: StringConstructor;
|
|
504
519
|
headerExtraStyle: PropType<string | CSSProperties>;
|
|
520
|
+
footerClass: StringConstructor;
|
|
505
521
|
footerStyle: PropType<string | CSSProperties>;
|
|
506
522
|
embedded: BooleanConstructor;
|
|
507
523
|
segmented: {
|
package/es/card/src/Card.js
CHANGED
|
@@ -8,9 +8,13 @@ import { cardLight } from '../styles';
|
|
|
8
8
|
import style from './styles/index.cssr';
|
|
9
9
|
export const cardBaseProps = {
|
|
10
10
|
title: String,
|
|
11
|
+
contentClass: String,
|
|
11
12
|
contentStyle: [Object, String],
|
|
13
|
+
headerClass: String,
|
|
12
14
|
headerStyle: [Object, String],
|
|
15
|
+
headerExtraClass: String,
|
|
13
16
|
headerExtraStyle: [Object, String],
|
|
17
|
+
footerClass: String,
|
|
14
18
|
footerStyle: [Object, String],
|
|
15
19
|
embedded: Boolean,
|
|
16
20
|
segmented: {
|
|
@@ -101,7 +105,7 @@ export default defineComponent({
|
|
|
101
105
|
};
|
|
102
106
|
},
|
|
103
107
|
render() {
|
|
104
|
-
const { segmented, bordered, hoverable, mergedClsPrefix, rtlEnabled, onRender, embedded, tag: Component, $slots } = this;
|
|
108
|
+
const { footerStyle, headerExtraClass, headerClass, contentClass, segmented, bordered, hoverable, mergedClsPrefix, rtlEnabled, onRender, embedded, tag: Component, $slots } = this;
|
|
105
109
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
106
110
|
return (h(Component, { class: [
|
|
107
111
|
`${mergedClsPrefix}-card`,
|
|
@@ -122,14 +126,17 @@ export default defineComponent({
|
|
|
122
126
|
], style: this.cssVars, role: this.role },
|
|
123
127
|
resolveWrappedSlot($slots.cover, (children) => children && (h("div", { class: `${mergedClsPrefix}-card-cover`, role: "none" }, children))),
|
|
124
128
|
resolveWrappedSlot($slots.header, (children) => {
|
|
125
|
-
return children || this.title || this.closable ? (h("div", { class: `${mergedClsPrefix}-card-header`, style: this.headerStyle },
|
|
129
|
+
return children || this.title || this.closable ? (h("div", { class: [`${mergedClsPrefix}-card-header`, headerClass], style: this.headerStyle },
|
|
126
130
|
h("div", { class: `${mergedClsPrefix}-card-header__main`, role: "heading" }, children || this.title),
|
|
127
|
-
resolveWrappedSlot($slots['header-extra'], (children) => children && (h("div", { class:
|
|
131
|
+
resolveWrappedSlot($slots['header-extra'], (children) => children && (h("div", { class: [
|
|
132
|
+
`${mergedClsPrefix}-card-header__extra`,
|
|
133
|
+
headerExtraClass
|
|
134
|
+
], style: this.headerExtraStyle }, children))),
|
|
128
135
|
this.closable ? (h(NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-card-header__close`, onClick: this.handleCloseClick, absolute: true })) : null)) : null;
|
|
129
136
|
}),
|
|
130
|
-
resolveWrappedSlot($slots.default, (children) => children && (h("div", { class: `${mergedClsPrefix}-card__content`, style: this.contentStyle, role: "none" }, children))),
|
|
137
|
+
resolveWrappedSlot($slots.default, (children) => children && (h("div", { class: [`${mergedClsPrefix}-card__content`, contentClass], style: this.contentStyle, role: "none" }, children))),
|
|
131
138
|
resolveWrappedSlot($slots.footer, (children) => children && [
|
|
132
|
-
h("div", { class: `${mergedClsPrefix}-card__footer`, style: this.footerStyle, role: "none" }, children)
|
|
139
|
+
h("div", { class: [`${mergedClsPrefix}-card__footer`, footerStyle], style: this.footerStyle, role: "none" }, children)
|
|
133
140
|
]),
|
|
134
141
|
resolveWrappedSlot($slots.action, (children) => children && (h("div", { class: `${mergedClsPrefix}-card__action`, role: "none" }, children)))));
|
|
135
142
|
}
|
|
@@ -2,7 +2,7 @@ import type { CSSProperties, PropType, Ref, TransitionProps, VNode } from 'vue';
|
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import type { ArrowScopedSlotProps, DotScopedSlotProps, Size } from './interface';
|
|
4
4
|
declare const transitionProperties: readonly ["transitionDuration", "transitionTimingFunction"];
|
|
5
|
-
type TransitionStyle = Partial<Pick<CSSProperties, typeof transitionProperties[number]>>;
|
|
5
|
+
type TransitionStyle = Partial<Pick<CSSProperties, (typeof transitionProperties)[number]>>;
|
|
6
6
|
export declare const carouselProps: {
|
|
7
7
|
defaultIndex: {
|
|
8
8
|
type: NumberConstructor;
|
|
@@ -15,7 +15,7 @@ export declare const carouselProps: {
|
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
17
|
dotPlacement: {
|
|
18
|
-
type: PropType<"left" | "right" | "
|
|
18
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
slidesPerView: {
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
default: string;
|
|
110
110
|
};
|
|
111
111
|
dotPlacement: {
|
|
112
|
-
type: PropType<"left" | "right" | "
|
|
112
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
113
113
|
default: string;
|
|
114
114
|
};
|
|
115
115
|
slidesPerView: {
|
|
@@ -246,7 +246,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
246
|
default: string;
|
|
247
247
|
};
|
|
248
248
|
dotPlacement: {
|
|
249
|
-
type: PropType<"left" | "right" | "
|
|
249
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
|
250
250
|
default: string;
|
|
251
251
|
};
|
|
252
252
|
slidesPerView: {
|
|
@@ -336,7 +336,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
336
336
|
keyboard: boolean;
|
|
337
337
|
dotType: "dot" | "line";
|
|
338
338
|
defaultIndex: number;
|
|
339
|
-
dotPlacement: "left" | "right" | "
|
|
339
|
+
dotPlacement: "left" | "right" | "top" | "bottom";
|
|
340
340
|
slidesPerView: number | "auto";
|
|
341
341
|
spaceBetween: number;
|
|
342
342
|
centeredSlides: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
1
2
|
import { h, defineComponent, ref, cloneVNode, computed, onBeforeUnmount, watch, withDirectives, vShow, Transition, toRef, nextTick, onMounted, watchEffect, normalizeStyle, onUpdated } from 'vue';
|
|
2
3
|
import { VResizeObserver } from 'vueuc';
|
|
3
4
|
import { useMergedState } from 'vooks';
|
|
@@ -442,7 +443,7 @@ export default defineComponent({
|
|
|
442
443
|
dragStartX = touchEvent.clientX;
|
|
443
444
|
}
|
|
444
445
|
if (props.touchable) {
|
|
445
|
-
on('touchmove', document, handleTouchmove
|
|
446
|
+
on('touchmove', document, handleTouchmove);
|
|
446
447
|
on('touchend', document, handleTouchend);
|
|
447
448
|
on('touchcancel', document, handleTouchend);
|
|
448
449
|
}
|
|
@@ -23,11 +23,11 @@ export declare const checkboxProps: {
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
checkedValue: {
|
|
26
|
-
type: (
|
|
26
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
uncheckedValue: {
|
|
30
|
-
type: (
|
|
30
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
'onUpdate:checked': PropType<MaybeArray<OnUpdateChecked>>;
|
|
@@ -148,11 +148,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
148
|
default: boolean;
|
|
149
149
|
};
|
|
150
150
|
checkedValue: {
|
|
151
|
-
type: (
|
|
151
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
152
152
|
default: boolean;
|
|
153
153
|
};
|
|
154
154
|
uncheckedValue: {
|
|
155
|
-
type: (
|
|
155
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
156
156
|
default: boolean;
|
|
157
157
|
};
|
|
158
158
|
'onUpdate:checked': PropType<MaybeArray<OnUpdateChecked>>;
|
|
@@ -451,11 +451,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
451
451
|
default: boolean;
|
|
452
452
|
};
|
|
453
453
|
checkedValue: {
|
|
454
|
-
type: (
|
|
454
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
455
455
|
default: boolean;
|
|
456
456
|
};
|
|
457
457
|
uncheckedValue: {
|
|
458
|
-
type: (
|
|
458
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
459
459
|
default: boolean;
|
|
460
460
|
};
|
|
461
461
|
'onUpdate:checked': PropType<MaybeArray<OnUpdateChecked>>;
|
|
@@ -14,9 +14,10 @@ function normalizeColor(color, mode) {
|
|
|
14
14
|
return color;
|
|
15
15
|
}
|
|
16
16
|
function getHexFromName(color) {
|
|
17
|
-
const ctx = document
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const ctx = document.createElement('canvas').getContext('2d');
|
|
18
|
+
if (!ctx) {
|
|
19
|
+
return '#000000';
|
|
20
|
+
}
|
|
20
21
|
ctx.fillStyle = color;
|
|
21
22
|
return ctx.fillStyle;
|
|
22
23
|
}
|
package/es/components.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './popconfirm';
|
|
|
59
59
|
export * from './popover';
|
|
60
60
|
export * from './popselect';
|
|
61
61
|
export * from './progress';
|
|
62
|
+
export * from './qr-code';
|
|
62
63
|
export * from './radio';
|
|
63
64
|
export * from './rate';
|
|
64
65
|
export * from './result';
|
|
@@ -68,6 +69,7 @@ export * from './skeleton';
|
|
|
68
69
|
export * from './slider';
|
|
69
70
|
export * from './space';
|
|
70
71
|
export * from './spin';
|
|
72
|
+
export * from './split';
|
|
71
73
|
export * from './statistic';
|
|
72
74
|
export * from './steps';
|
|
73
75
|
export * from './switch';
|
|
@@ -84,6 +86,7 @@ export * from './tree';
|
|
|
84
86
|
export * from './tree-select';
|
|
85
87
|
export * from './typography';
|
|
86
88
|
export * from './upload';
|
|
89
|
+
export * from './virtual-list';
|
|
87
90
|
export * from './watermark';
|
|
88
91
|
export * from './discrete';
|
|
89
92
|
export * from './equation';
|
package/es/components.js
CHANGED
|
@@ -59,6 +59,7 @@ export * from './popconfirm';
|
|
|
59
59
|
export * from './popover';
|
|
60
60
|
export * from './popselect';
|
|
61
61
|
export * from './progress';
|
|
62
|
+
export * from './qr-code';
|
|
62
63
|
export * from './radio';
|
|
63
64
|
export * from './rate';
|
|
64
65
|
export * from './result';
|
|
@@ -68,6 +69,7 @@ export * from './skeleton';
|
|
|
68
69
|
export * from './slider';
|
|
69
70
|
export * from './space';
|
|
70
71
|
export * from './spin';
|
|
72
|
+
export * from './split';
|
|
71
73
|
export * from './statistic';
|
|
72
74
|
export * from './steps';
|
|
73
75
|
export * from './switch';
|
|
@@ -84,6 +86,7 @@ export * from './tree';
|
|
|
84
86
|
export * from './tree-select';
|
|
85
87
|
export * from './typography';
|
|
86
88
|
export * from './upload';
|
|
89
|
+
export * from './virtual-list';
|
|
87
90
|
export * from './watermark';
|
|
88
91
|
export * from './discrete';
|
|
89
92
|
export * from './equation';
|
|
@@ -53,6 +53,7 @@ import type { PopconfirmTheme } from '../../popconfirm/styles';
|
|
|
53
53
|
import type { PopoverTheme } from '../../popover/styles';
|
|
54
54
|
import type { PopselectTheme } from '../../popselect/styles';
|
|
55
55
|
import type { ProgressTheme } from '../../progress/styles';
|
|
56
|
+
import type { QrCodeTheme } from '../../qr-code/styles';
|
|
56
57
|
import type { RadioTheme } from '../../radio/styles';
|
|
57
58
|
import type { RateTheme } from '../../rate/styles';
|
|
58
59
|
import type { ResultTheme } from '../../result/styles';
|
|
@@ -94,6 +95,7 @@ import type { CollapseTransitionTheme } from '../../collapse-transition/styles';
|
|
|
94
95
|
import type { ButtonGroupTheme } from '../../button-group/styles/light';
|
|
95
96
|
import type { RowTheme } from '../../legacy-grid/styles';
|
|
96
97
|
import type { Katex } from './katex';
|
|
98
|
+
import type { SplitTheme } from '../../split/styles';
|
|
97
99
|
export interface GlobalThemeWithoutCommon {
|
|
98
100
|
Alert?: AlertTheme;
|
|
99
101
|
Anchor?: AnchorTheme;
|
|
@@ -150,6 +152,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
150
152
|
Popover?: PopoverTheme;
|
|
151
153
|
Popselect?: PopselectTheme;
|
|
152
154
|
Progress?: ProgressTheme;
|
|
155
|
+
QrCode?: QrCodeTheme;
|
|
153
156
|
Radio?: RadioTheme;
|
|
154
157
|
Rate?: RateTheme;
|
|
155
158
|
Result?: ResultTheme;
|
|
@@ -175,6 +178,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
175
178
|
Typography?: TypographyTheme;
|
|
176
179
|
Upload?: UploadTheme;
|
|
177
180
|
Watermark?: WatermarkTheme;
|
|
181
|
+
Split?: SplitTheme;
|
|
178
182
|
Row?: RowTheme;
|
|
179
183
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
180
184
|
InternalSelection?: InternalSelectionTheme;
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
};
|
|
77
77
|
readonly flexHeight: BooleanConstructor;
|
|
78
78
|
readonly summaryPlacement: {
|
|
79
|
-
readonly type: import("vue").PropType<"
|
|
79
|
+
readonly type: import("vue").PropType<"top" | "bottom">;
|
|
80
80
|
readonly default: "bottom";
|
|
81
81
|
};
|
|
82
82
|
readonly paginationBehaviorOnFilter: {
|
|
@@ -3821,7 +3821,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3821
3821
|
};
|
|
3822
3822
|
readonly flexHeight: BooleanConstructor;
|
|
3823
3823
|
readonly summaryPlacement: {
|
|
3824
|
-
readonly type: import("vue").PropType<"
|
|
3824
|
+
readonly type: import("vue").PropType<"top" | "bottom">;
|
|
3825
3825
|
readonly default: "bottom";
|
|
3826
3826
|
};
|
|
3827
3827
|
readonly paginationBehaviorOnFilter: {
|
|
@@ -6221,7 +6221,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6221
6221
|
readonly childrenKey: string;
|
|
6222
6222
|
readonly indent: number;
|
|
6223
6223
|
readonly flexHeight: boolean;
|
|
6224
|
-
readonly summaryPlacement: "
|
|
6224
|
+
readonly summaryPlacement: "top" | "bottom";
|
|
6225
6225
|
readonly paginationBehaviorOnFilter: "first" | "current";
|
|
6226
6226
|
readonly spinProps: import("../../_internal").BaseLoadingExposedProps;
|
|
6227
6227
|
}, {}>;
|
|
@@ -174,6 +174,7 @@ export default defineComponent({
|
|
|
174
174
|
clearFilter,
|
|
175
175
|
scrollTo: (arg0, arg1) => {
|
|
176
176
|
var _a;
|
|
177
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
177
178
|
(_a = mainTableInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(arg0, arg1);
|
|
178
179
|
}
|
|
179
180
|
};
|