naive-ui 2.18.1 → 2.19.2
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/es/_internal/clear/src/Clear.d.ts +1 -4
- package/es/_internal/clear/src/Clear.js +1 -4
- package/es/_internal/icons/Checkmark.js +3 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/es/_internal/select-menu/src/SelectMenu.js +9 -6
- package/es/_internal/select-menu/src/SelectOption.js +2 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/es/_internal/select-menu/styles/light.d.ts +2 -0
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +64 -56
- package/es/_internal/selection/src/Selection.js +34 -14
- package/es/_internal/selection/src/styles/index.cssr.js +16 -14
- package/es/_internal/selection/styles/_common.d.ts +1 -8
- package/es/_internal/selection/styles/_common.js +2 -9
- package/es/_internal/selection/styles/dark.js +10 -2
- package/es/_internal/selection/styles/light.d.ts +18 -16
- package/es/_internal/selection/styles/light.js +10 -2
- package/es/_mixins/use-rtl.js +1 -1
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- package/es/alert/src/Alert.js +15 -16
- package/es/anchor/src/AnchorAdapter.d.ts +13 -8
- package/es/anchor/src/AnchorAdapter.js +3 -5
- package/es/anchor/src/BaseAnchor.d.ts +14 -1
- package/es/anchor/src/BaseAnchor.js +20 -7
- package/es/anchor/src/Link.js +5 -5
- package/es/anchor/src/styles/index.cssr.js +25 -16
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/src/AutoComplete.d.ts +10 -0
- package/es/auto-complete/src/interface.d.ts +1 -1
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/badge/src/styles/index.cssr.js +1 -0
- package/es/card/src/Card.d.ts +17 -1
- package/es/card/src/Card.js +3 -2
- package/es/card/styles/dark.js +6 -1
- package/es/card/styles/light.d.ts +1 -0
- package/es/card/styles/light.js +2 -2
- package/es/cascader/src/Cascader.d.ts +100 -80
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +10 -8
- package/es/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/es/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/es/cascader/src/interface.d.ts +2 -2
- package/es/cascader/src/styles/index.cssr.js +6 -1
- package/es/cascader/styles/light.d.ts +10 -8
- package/es/checkbox/src/Checkbox.d.ts +1 -0
- package/es/checkbox/src/Checkbox.js +5 -3
- package/es/checkbox/src/CheckboxGroup.js +1 -1
- package/es/composables/use-theme-vars.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +110 -88
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/es/data-table/src/TableParts/Body.d.ts +20 -16
- package/es/data-table/src/TableParts/Cell.d.ts +40 -32
- package/es/data-table/src/TableParts/Header.d.ts +20 -16
- package/es/data-table/styles/light.d.ts +10 -8
- package/es/date-picker/src/DatePicker.d.ts +8 -3
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +3 -3
- package/es/date-picker/src/panel/date.js +10 -1
- package/es/date-picker/src/panel/daterange.js +10 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -17
- package/es/descriptions/src/Descriptions.js +2 -8
- package/es/dialog/src/DialogProvider.d.ts +20 -20
- package/es/drawer/src/styles/index.cssr.js +2 -0
- package/es/dropdown/src/Dropdown.d.ts +9 -23
- package/es/dynamic-tags/src/DynamicTags.js +2 -1
- package/es/empty/src/Empty.d.ts +6 -1
- package/es/empty/src/Empty.js +16 -4
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemGridItem.js +2 -2
- package/es/global-style/src/GlobalStyle.js +13 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +8 -3
- package/es/input-number/src/InputNumber.js +4 -4
- package/es/jest-setup.js +3 -1
- package/es/layout/src/Layout.d.ts +18 -4
- package/es/layout/src/LayoutContent.d.ts +9 -2
- package/es/layout/src/LayoutFooter.d.ts +9 -0
- package/es/layout/src/LayoutHeader.d.ts +6 -0
- package/es/layout/src/LayoutSider.d.ts +11 -0
- package/es/layout/src/LayoutSider.js +4 -2
- package/es/layout/src/ToggleButton.js +7 -3
- package/es/layout/src/styles/layout-sider.cssr.js +31 -15
- package/es/layout/styles/dark.js +3 -2
- package/es/layout/styles/light.d.ts +2 -0
- package/es/layout/styles/light.js +3 -2
- package/es/locales/common/enUS.js +1 -1
- package/es/locales/common/ruRU.js +1 -1
- package/es/locales/common/ukUA.d.ts +3 -0
- package/es/locales/common/ukUA.js +92 -0
- package/es/locales/common/zhCN.js +1 -1
- package/es/locales/date/ukUA.d.ts +3 -0
- package/es/locales/date/ukUA.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/mention/src/Mention.d.ts +10 -0
- package/es/mention/styles/light.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +6 -1
- package/es/menu/src/Menu.js +10 -1
- package/es/menu/src/MenuOption.d.ts +3 -1
- package/es/menu/src/MenuOptionContent.d.ts +3 -1
- package/es/menu/src/Submenu.d.ts +3 -1
- package/es/modal/src/BodyWrapper.d.ts +5 -0
- package/es/modal/src/Modal.d.ts +36 -55
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/styles/light.d.ts +1 -0
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +16 -16
- package/es/page-header/src/PageHeader.d.ts +1 -0
- package/es/page-header/src/PageHeader.js +8 -2
- package/es/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/es/page-header/src/styles/rtl.cssr.js +19 -0
- package/es/page-header/styles/index.d.ts +1 -0
- package/es/page-header/styles/index.js +1 -0
- package/es/page-header/styles/rtl.d.ts +5 -0
- package/es/page-header/styles/rtl.js +5 -0
- package/es/pagination/src/Pagination.d.ts +111 -100
- package/es/pagination/styles/light.d.ts +10 -8
- package/es/popconfirm/src/Popconfirm.d.ts +8 -22
- package/es/popover/src/Popover.d.ts +12 -32
- package/es/popover/src/Popover.js +25 -18
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popover/src/PopoverBody.js +4 -2
- package/es/popselect/src/Popselect.d.ts +18 -22
- package/es/popselect/src/PopselectPanel.d.ts +1 -0
- package/es/popselect/src/PopselectPanel.js +38 -19
- package/es/popselect/styles/light.d.ts +1 -0
- package/es/select/src/Select.d.ts +111 -83
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +10 -8
- package/es/spin/src/Spin.d.ts +34 -25
- package/es/spin/src/Spin.js +27 -20
- package/es/spin/src/styles/index.cssr.js +23 -9
- package/es/spin/styles/light.d.ts +2 -0
- package/es/spin/styles/light.js +3 -1
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tab.js +4 -6
- package/es/tabs/src/Tabs.d.ts +133 -42
- package/es/tabs/src/Tabs.js +37 -38
- package/es/tabs/src/interface.d.ts +2 -1
- package/es/tabs/src/styles/index.cssr.js +34 -10
- package/es/tabs/styles/_common.d.ts +6 -0
- package/es/tabs/styles/_common.js +6 -0
- package/es/tabs/styles/dark.js +7 -1
- package/es/tabs/styles/light.d.ts +13 -0
- package/es/tabs/styles/light.js +3 -3
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/time/src/Time.d.ts +14 -22
- package/es/time/src/Time.js +32 -18
- package/es/time-picker/src/TimePicker.d.ts +5 -0
- package/es/time-picker/src/TimePicker.js +2 -2
- package/es/tooltip/src/Tooltip.d.ts +8 -22
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +25 -10
- package/es/tree/src/Tree.js +34 -11
- package/es/tree/src/TreeNode.js +5 -2
- package/es/tree/src/interface.d.ts +2 -2
- package/es/tree-select/src/TreeSelect.d.ts +103 -81
- package/es/tree-select/src/TreeSelect.js +36 -40
- package/es/tree-select/src/interface.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +9 -8
- package/es/typography/src/blockquote.d.ts +2 -8
- package/es/typography/src/blockquote.js +1 -4
- package/es/typography/src/ol.d.ts +2 -8
- package/es/typography/src/ol.js +1 -4
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/p.js +1 -1
- package/es/typography/src/text.d.ts +14 -58
- package/es/typography/src/text.js +2 -23
- package/es/typography/src/ul.d.ts +2 -8
- package/es/typography/src/ul.js +1 -4
- package/es/upload/index.d.ts +2 -0
- package/es/upload/index.js +2 -0
- package/es/upload/src/Upload.d.ts +16 -68
- package/es/upload/src/Upload.js +71 -98
- package/es/upload/src/UploadDragger.js +7 -1
- package/es/upload/src/UploadFileList.d.ts +2 -0
- package/es/upload/src/UploadFileList.js +34 -0
- package/es/upload/src/UploadProgress.d.ts +0 -7
- package/es/upload/src/UploadProgress.js +1 -5
- package/es/upload/src/UploadTrigger.d.ts +12 -0
- package/es/upload/src/UploadTrigger.js +63 -0
- package/es/upload/src/interface.d.ts +13 -2
- package/es/upload/src/styles/index.cssr.js +40 -32
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -4
- package/lib/_internal/clear/src/Clear.js +1 -4
- package/lib/_internal/icons/Checkmark.js +3 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +173 -0
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -6
- package/lib/_internal/select-menu/src/SelectOption.js +2 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +32 -28
- package/lib/_internal/select-menu/styles/light.d.ts +2 -0
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +64 -56
- package/lib/_internal/selection/src/Selection.js +34 -14
- package/lib/_internal/selection/src/styles/index.cssr.js +16 -14
- package/lib/_internal/selection/styles/_common.d.ts +1 -8
- package/lib/_internal/selection/styles/_common.js +2 -9
- package/lib/_internal/selection/styles/dark.js +10 -2
- package/lib/_internal/selection/styles/light.d.ts +18 -16
- package/lib/_internal/selection/styles/light.js +10 -2
- package/lib/_mixins/use-rtl.js +1 -1
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- package/lib/alert/src/Alert.js +15 -16
- package/lib/anchor/src/AnchorAdapter.d.ts +13 -8
- package/lib/anchor/src/AnchorAdapter.js +3 -5
- package/lib/anchor/src/BaseAnchor.d.ts +14 -1
- package/lib/anchor/src/BaseAnchor.js +19 -6
- package/lib/anchor/src/Link.js +5 -5
- package/lib/anchor/src/styles/index.cssr.js +25 -16
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +10 -0
- package/lib/auto-complete/src/interface.d.ts +1 -1
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/badge/src/styles/index.cssr.js +1 -0
- package/lib/card/src/Card.d.ts +17 -1
- package/lib/card/src/Card.js +3 -2
- package/lib/card/styles/dark.js +6 -1
- package/lib/card/styles/light.d.ts +1 -0
- package/lib/card/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.d.ts +100 -80
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +10 -8
- package/lib/cascader/src/CascaderSelectMenu.d.ts +10 -8
- package/lib/cascader/src/CascaderSubmenu.d.ts +10 -8
- package/lib/cascader/src/interface.d.ts +2 -2
- package/lib/cascader/src/styles/index.cssr.js +6 -1
- package/lib/cascader/styles/light.d.ts +10 -8
- package/lib/checkbox/src/Checkbox.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.js +5 -3
- package/lib/checkbox/src/CheckboxGroup.js +1 -1
- package/lib/composables/use-theme-vars.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +110 -88
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +20 -16
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +20 -16
- package/lib/data-table/src/TableParts/Body.d.ts +20 -16
- package/lib/data-table/src/TableParts/Cell.d.ts +40 -32
- package/lib/data-table/src/TableParts/Header.d.ts +20 -16
- package/lib/data-table/styles/light.d.ts +10 -8
- package/lib/date-picker/src/DatePicker.d.ts +8 -3
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +3 -3
- package/lib/date-picker/src/panel/date.js +9 -0
- package/lib/date-picker/src/panel/daterange.js +9 -0
- package/lib/date-picker/src/panel/datetimerange.js +9 -0
- package/lib/descriptions/src/Descriptions.d.ts +4 -17
- package/lib/descriptions/src/Descriptions.js +2 -8
- package/lib/dialog/src/DialogProvider.d.ts +20 -20
- package/lib/drawer/src/styles/index.cssr.js +2 -0
- package/lib/dropdown/src/Dropdown.d.ts +9 -23
- package/lib/dynamic-tags/src/DynamicTags.js +2 -1
- package/lib/empty/src/Empty.d.ts +6 -1
- package/lib/empty/src/Empty.js +15 -3
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.js +2 -2
- package/lib/global-style/src/GlobalStyle.js +13 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +8 -3
- package/lib/input-number/src/InputNumber.js +4 -4
- package/lib/jest-setup.js +3 -1
- package/lib/layout/src/Layout.d.ts +18 -4
- package/lib/layout/src/LayoutContent.d.ts +9 -2
- package/lib/layout/src/LayoutFooter.d.ts +9 -0
- package/lib/layout/src/LayoutHeader.d.ts +6 -0
- package/lib/layout/src/LayoutSider.d.ts +11 -0
- package/lib/layout/src/LayoutSider.js +4 -2
- package/lib/layout/src/ToggleButton.js +7 -3
- package/lib/layout/src/styles/layout-sider.cssr.js +31 -15
- package/lib/layout/styles/dark.js +3 -2
- package/lib/layout/styles/light.d.ts +2 -0
- package/lib/layout/styles/light.js +3 -2
- package/lib/locales/common/enUS.js +1 -1
- package/lib/locales/common/ruRU.js +1 -1
- package/lib/locales/common/ukUA.d.ts +3 -0
- package/lib/locales/common/ukUA.js +94 -0
- package/lib/locales/common/zhCN.js +1 -1
- package/lib/locales/date/ukUA.d.ts +3 -0
- package/lib/locales/date/ukUA.js +8 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/mention/src/Mention.d.ts +10 -0
- package/lib/mention/styles/light.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +6 -1
- package/lib/menu/src/Menu.js +10 -1
- package/lib/menu/src/MenuOption.d.ts +3 -1
- package/lib/menu/src/MenuOptionContent.d.ts +3 -1
- package/lib/menu/src/Submenu.d.ts +3 -1
- package/lib/modal/src/BodyWrapper.d.ts +5 -0
- package/lib/modal/src/Modal.d.ts +36 -55
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/styles/light.d.ts +1 -0
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +16 -16
- package/lib/page-header/src/PageHeader.d.ts +1 -0
- package/lib/page-header/src/PageHeader.js +8 -2
- package/lib/page-header/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/page-header/src/styles/rtl.cssr.js +26 -0
- package/lib/page-header/styles/index.d.ts +1 -0
- package/lib/page-header/styles/index.js +3 -1
- package/lib/page-header/styles/rtl.d.ts +5 -0
- package/lib/page-header/styles/rtl.js +7 -0
- package/lib/pagination/src/Pagination.d.ts +111 -100
- package/lib/pagination/styles/light.d.ts +10 -8
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -22
- package/lib/popover/src/Popover.d.ts +12 -32
- package/lib/popover/src/Popover.js +23 -16
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popover/src/PopoverBody.js +4 -2
- package/lib/popselect/src/Popselect.d.ts +18 -22
- package/lib/popselect/src/PopselectPanel.d.ts +1 -0
- package/lib/popselect/src/PopselectPanel.js +38 -19
- package/lib/popselect/styles/light.d.ts +1 -0
- package/lib/select/src/Select.d.ts +111 -83
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +10 -8
- package/lib/spin/src/Spin.d.ts +34 -25
- package/lib/spin/src/Spin.js +25 -18
- package/lib/spin/src/styles/index.cssr.js +23 -9
- package/lib/spin/styles/light.d.ts +2 -0
- package/lib/spin/styles/light.js +3 -1
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +63 -61
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tab.js +4 -6
- package/lib/tabs/src/Tabs.d.ts +133 -42
- package/lib/tabs/src/Tabs.js +36 -37
- package/lib/tabs/src/interface.d.ts +2 -1
- package/lib/tabs/src/styles/index.cssr.js +34 -10
- package/lib/tabs/styles/_common.d.ts +6 -0
- package/lib/tabs/styles/_common.js +6 -0
- package/lib/tabs/styles/dark.js +7 -1
- package/lib/tabs/styles/light.d.ts +13 -0
- package/lib/tabs/styles/light.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/time/src/Time.d.ts +14 -22
- package/lib/time/src/Time.js +31 -17
- package/lib/time-picker/src/TimePicker.d.ts +5 -0
- package/lib/time-picker/src/TimePicker.js +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +8 -22
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +25 -10
- package/lib/tree/src/Tree.js +34 -11
- package/lib/tree/src/TreeNode.js +5 -2
- package/lib/tree/src/interface.d.ts +2 -2
- package/lib/tree-select/src/TreeSelect.d.ts +103 -81
- package/lib/tree-select/src/TreeSelect.js +36 -40
- package/lib/tree-select/src/interface.d.ts +2 -2
- package/lib/tree-select/styles/light.d.ts +9 -8
- package/lib/typography/src/blockquote.d.ts +2 -8
- package/lib/typography/src/blockquote.js +1 -4
- package/lib/typography/src/ol.d.ts +2 -8
- package/lib/typography/src/ol.js +1 -4
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/p.js +1 -1
- package/lib/typography/src/text.d.ts +14 -58
- package/lib/typography/src/text.js +2 -23
- package/lib/typography/src/ul.d.ts +2 -8
- package/lib/typography/src/ul.js +1 -4
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +5 -1
- package/lib/upload/src/Upload.d.ts +16 -68
- package/lib/upload/src/Upload.js +68 -95
- package/lib/upload/src/UploadDragger.js +7 -1
- package/lib/upload/src/UploadFileList.d.ts +2 -0
- package/lib/upload/src/UploadFileList.js +36 -0
- package/lib/upload/src/UploadProgress.d.ts +0 -7
- package/lib/upload/src/UploadProgress.js +1 -5
- package/lib/upload/src/UploadTrigger.d.ts +12 -0
- package/lib/upload/src/UploadTrigger.js +65 -0
- package/lib/upload/src/interface.d.ts +13 -2
- package/lib/upload/src/styles/index.cssr.js +40 -32
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +9 -7
- package/web-types.json +239 -13
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -2,23 +2,17 @@
|
|
|
2
2
|
import { PropType, CSSProperties, ComponentPublicInstance, nextTick } from 'vue';
|
|
3
3
|
import { VXScrollInst } from 'vueuc';
|
|
4
4
|
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
5
|
-
import { Addable, OnClose } from './interface';
|
|
5
|
+
import { Addable, OnClose, TabsType } from './interface';
|
|
6
6
|
import type { OnUpdateValue } from './interface';
|
|
7
7
|
declare const tabsProps: {
|
|
8
8
|
readonly value: PropType<string | number>;
|
|
9
9
|
readonly defaultValue: PropType<string | number>;
|
|
10
10
|
readonly type: {
|
|
11
|
-
readonly type: PropType<
|
|
11
|
+
readonly type: PropType<TabsType>;
|
|
12
12
|
readonly default: "bar";
|
|
13
13
|
};
|
|
14
14
|
readonly closable: BooleanConstructor;
|
|
15
15
|
readonly justifyContent: PropType<"space-around" | "space-between" | "space-evenly">;
|
|
16
|
-
/** deprecated */
|
|
17
|
-
readonly labelSize: {
|
|
18
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
19
|
-
readonly validator: () => boolean;
|
|
20
|
-
readonly default: undefined;
|
|
21
|
-
};
|
|
22
16
|
readonly size: {
|
|
23
17
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
24
18
|
readonly default: "medium";
|
|
@@ -34,22 +28,20 @@ declare const tabsProps: {
|
|
|
34
28
|
readonly 'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
35
29
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
36
30
|
readonly onClose: PropType<MaybeArray<OnClose>>;
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly default: undefined;
|
|
41
|
-
};
|
|
42
|
-
readonly onActiveNameChange: {
|
|
43
|
-
readonly type: PropType<MaybeArray<(value: string & number) => void> | undefined>;
|
|
44
|
-
readonly validator: () => boolean;
|
|
45
|
-
readonly default: undefined;
|
|
46
|
-
};
|
|
31
|
+
readonly labelSize: PropType<"small" | "medium" | "large">;
|
|
32
|
+
readonly activeName: PropType<string | number>;
|
|
33
|
+
readonly onActiveNameChange: PropType<MaybeArray<(value: string & number) => void>>;
|
|
47
34
|
readonly theme: PropType<import("../../_mixins").Theme<"Tabs", {
|
|
35
|
+
colorSegment: string;
|
|
48
36
|
tabFontSizeCard: string;
|
|
49
37
|
tabTextColorLine: string;
|
|
50
38
|
tabTextColorActiveLine: string;
|
|
51
39
|
tabTextColorHoverLine: string;
|
|
52
40
|
tabTextColorDisabledLine: string;
|
|
41
|
+
tabTextColorSegment: string;
|
|
42
|
+
tabTextColorActiveSegment: string;
|
|
43
|
+
tabTextColorHoverSegment: string;
|
|
44
|
+
tabTextColorDisabledSegment: string;
|
|
53
45
|
tabTextColorBar: string;
|
|
54
46
|
tabTextColorActiveBar: string;
|
|
55
47
|
tabTextColorHoverBar: string;
|
|
@@ -63,11 +55,13 @@ declare const tabsProps: {
|
|
|
63
55
|
closeColorHover: string;
|
|
64
56
|
closeColorPressed: string;
|
|
65
57
|
tabColor: string;
|
|
58
|
+
tabColorSegment: string;
|
|
66
59
|
tabBorderColor: string;
|
|
67
60
|
tabFontWeightActive: string;
|
|
68
61
|
tabFontWeight: string;
|
|
69
62
|
tabBorderRadius: string;
|
|
70
63
|
paneTextColor: string;
|
|
64
|
+
fontWeightStrong: string;
|
|
71
65
|
tabFontSizeSmall: string;
|
|
72
66
|
tabFontSizeMedium: string;
|
|
73
67
|
tabFontSizeLarge: string;
|
|
@@ -89,16 +83,27 @@ declare const tabsProps: {
|
|
|
89
83
|
tabPaddingSmallCard: string;
|
|
90
84
|
tabPaddingMediumCard: string;
|
|
91
85
|
tabPaddingLargeCard: string;
|
|
86
|
+
tabPaddingSmallSegment: string;
|
|
87
|
+
tabPaddingMediumSegment: string;
|
|
88
|
+
tabPaddingLargeSegment: string;
|
|
89
|
+
tabGapSmallSegment: string;
|
|
90
|
+
tabGapMediumSegment: string;
|
|
91
|
+
tabGapLargeSegment: string;
|
|
92
92
|
panePaddingSmall: string;
|
|
93
93
|
panePaddingMedium: string;
|
|
94
94
|
panePaddingLarge: string;
|
|
95
95
|
}, any>>;
|
|
96
96
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
97
|
+
colorSegment: string;
|
|
97
98
|
tabFontSizeCard: string;
|
|
98
99
|
tabTextColorLine: string;
|
|
99
100
|
tabTextColorActiveLine: string;
|
|
100
101
|
tabTextColorHoverLine: string;
|
|
101
102
|
tabTextColorDisabledLine: string;
|
|
103
|
+
tabTextColorSegment: string;
|
|
104
|
+
tabTextColorActiveSegment: string;
|
|
105
|
+
tabTextColorHoverSegment: string;
|
|
106
|
+
tabTextColorDisabledSegment: string;
|
|
102
107
|
tabTextColorBar: string;
|
|
103
108
|
tabTextColorActiveBar: string;
|
|
104
109
|
tabTextColorHoverBar: string;
|
|
@@ -112,11 +117,13 @@ declare const tabsProps: {
|
|
|
112
117
|
closeColorHover: string;
|
|
113
118
|
closeColorPressed: string;
|
|
114
119
|
tabColor: string;
|
|
120
|
+
tabColorSegment: string;
|
|
115
121
|
tabBorderColor: string;
|
|
116
122
|
tabFontWeightActive: string;
|
|
117
123
|
tabFontWeight: string;
|
|
118
124
|
tabBorderRadius: string;
|
|
119
125
|
paneTextColor: string;
|
|
126
|
+
fontWeightStrong: string;
|
|
120
127
|
tabFontSizeSmall: string;
|
|
121
128
|
tabFontSizeMedium: string;
|
|
122
129
|
tabFontSizeLarge: string;
|
|
@@ -138,16 +145,27 @@ declare const tabsProps: {
|
|
|
138
145
|
tabPaddingSmallCard: string;
|
|
139
146
|
tabPaddingMediumCard: string;
|
|
140
147
|
tabPaddingLargeCard: string;
|
|
148
|
+
tabPaddingSmallSegment: string;
|
|
149
|
+
tabPaddingMediumSegment: string;
|
|
150
|
+
tabPaddingLargeSegment: string;
|
|
151
|
+
tabGapSmallSegment: string;
|
|
152
|
+
tabGapMediumSegment: string;
|
|
153
|
+
tabGapLargeSegment: string;
|
|
141
154
|
panePaddingSmall: string;
|
|
142
155
|
panePaddingMedium: string;
|
|
143
156
|
panePaddingLarge: string;
|
|
144
157
|
}, any>>>;
|
|
145
158
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
159
|
+
colorSegment: string;
|
|
146
160
|
tabFontSizeCard: string;
|
|
147
161
|
tabTextColorLine: string;
|
|
148
162
|
tabTextColorActiveLine: string;
|
|
149
163
|
tabTextColorHoverLine: string;
|
|
150
164
|
tabTextColorDisabledLine: string;
|
|
165
|
+
tabTextColorSegment: string;
|
|
166
|
+
tabTextColorActiveSegment: string;
|
|
167
|
+
tabTextColorHoverSegment: string;
|
|
168
|
+
tabTextColorDisabledSegment: string;
|
|
151
169
|
tabTextColorBar: string;
|
|
152
170
|
tabTextColorActiveBar: string;
|
|
153
171
|
tabTextColorHoverBar: string;
|
|
@@ -161,11 +179,13 @@ declare const tabsProps: {
|
|
|
161
179
|
closeColorHover: string;
|
|
162
180
|
closeColorPressed: string;
|
|
163
181
|
tabColor: string;
|
|
182
|
+
tabColorSegment: string;
|
|
164
183
|
tabBorderColor: string;
|
|
165
184
|
tabFontWeightActive: string;
|
|
166
185
|
tabFontWeight: string;
|
|
167
186
|
tabBorderRadius: string;
|
|
168
187
|
paneTextColor: string;
|
|
188
|
+
fontWeightStrong: string;
|
|
169
189
|
tabFontSizeSmall: string;
|
|
170
190
|
tabFontSizeMedium: string;
|
|
171
191
|
tabFontSizeLarge: string;
|
|
@@ -187,6 +207,12 @@ declare const tabsProps: {
|
|
|
187
207
|
tabPaddingSmallCard: string;
|
|
188
208
|
tabPaddingMediumCard: string;
|
|
189
209
|
tabPaddingLargeCard: string;
|
|
210
|
+
tabPaddingSmallSegment: string;
|
|
211
|
+
tabPaddingMediumSegment: string;
|
|
212
|
+
tabPaddingLargeSegment: string;
|
|
213
|
+
tabGapSmallSegment: string;
|
|
214
|
+
tabGapMediumSegment: string;
|
|
215
|
+
tabGapLargeSegment: string;
|
|
190
216
|
panePaddingSmall: string;
|
|
191
217
|
panePaddingMedium: string;
|
|
192
218
|
panePaddingLarge: string;
|
|
@@ -197,17 +223,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
197
223
|
readonly value: PropType<string | number>;
|
|
198
224
|
readonly defaultValue: PropType<string | number>;
|
|
199
225
|
readonly type: {
|
|
200
|
-
readonly type: PropType<
|
|
226
|
+
readonly type: PropType<TabsType>;
|
|
201
227
|
readonly default: "bar";
|
|
202
228
|
};
|
|
203
229
|
readonly closable: BooleanConstructor;
|
|
204
230
|
readonly justifyContent: PropType<"space-around" | "space-between" | "space-evenly">;
|
|
205
|
-
/** deprecated */
|
|
206
|
-
readonly labelSize: {
|
|
207
|
-
readonly type: PropType<"small" | "medium" | "large">;
|
|
208
|
-
readonly validator: () => boolean;
|
|
209
|
-
readonly default: undefined;
|
|
210
|
-
};
|
|
211
231
|
readonly size: {
|
|
212
232
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
213
233
|
readonly default: "medium";
|
|
@@ -223,22 +243,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
223
243
|
readonly 'onUpdate:value': PropType<MaybeArray<OnUpdateValue>>;
|
|
224
244
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
225
245
|
readonly onClose: PropType<MaybeArray<OnClose>>;
|
|
226
|
-
readonly
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
readonly default: undefined;
|
|
230
|
-
};
|
|
231
|
-
readonly onActiveNameChange: {
|
|
232
|
-
readonly type: PropType<MaybeArray<(value: never) => void> | undefined>;
|
|
233
|
-
readonly validator: () => boolean;
|
|
234
|
-
readonly default: undefined;
|
|
235
|
-
};
|
|
246
|
+
readonly labelSize: PropType<"small" | "medium" | "large">;
|
|
247
|
+
readonly activeName: PropType<string | number>;
|
|
248
|
+
readonly onActiveNameChange: PropType<MaybeArray<(value: never) => void>>;
|
|
236
249
|
readonly theme: PropType<import("../../_mixins").Theme<"Tabs", {
|
|
250
|
+
colorSegment: string;
|
|
237
251
|
tabFontSizeCard: string;
|
|
238
252
|
tabTextColorLine: string;
|
|
239
253
|
tabTextColorActiveLine: string;
|
|
240
254
|
tabTextColorHoverLine: string;
|
|
241
255
|
tabTextColorDisabledLine: string;
|
|
256
|
+
tabTextColorSegment: string;
|
|
257
|
+
tabTextColorActiveSegment: string;
|
|
258
|
+
tabTextColorHoverSegment: string;
|
|
259
|
+
tabTextColorDisabledSegment: string;
|
|
242
260
|
tabTextColorBar: string;
|
|
243
261
|
tabTextColorActiveBar: string;
|
|
244
262
|
tabTextColorHoverBar: string;
|
|
@@ -252,11 +270,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
252
270
|
closeColorHover: string;
|
|
253
271
|
closeColorPressed: string;
|
|
254
272
|
tabColor: string;
|
|
273
|
+
tabColorSegment: string;
|
|
255
274
|
tabBorderColor: string;
|
|
256
275
|
tabFontWeightActive: string;
|
|
257
276
|
tabFontWeight: string;
|
|
258
277
|
tabBorderRadius: string;
|
|
259
278
|
paneTextColor: string;
|
|
279
|
+
fontWeightStrong: string;
|
|
260
280
|
tabFontSizeSmall: string;
|
|
261
281
|
tabFontSizeMedium: string;
|
|
262
282
|
tabFontSizeLarge: string;
|
|
@@ -278,16 +298,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
278
298
|
tabPaddingSmallCard: string;
|
|
279
299
|
tabPaddingMediumCard: string;
|
|
280
300
|
tabPaddingLargeCard: string;
|
|
301
|
+
tabPaddingSmallSegment: string;
|
|
302
|
+
tabPaddingMediumSegment: string;
|
|
303
|
+
tabPaddingLargeSegment: string;
|
|
304
|
+
tabGapSmallSegment: string;
|
|
305
|
+
tabGapMediumSegment: string;
|
|
306
|
+
tabGapLargeSegment: string;
|
|
281
307
|
panePaddingSmall: string;
|
|
282
308
|
panePaddingMedium: string;
|
|
283
309
|
panePaddingLarge: string;
|
|
284
310
|
}, any>>;
|
|
285
311
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
312
|
+
colorSegment: string;
|
|
286
313
|
tabFontSizeCard: string;
|
|
287
314
|
tabTextColorLine: string;
|
|
288
315
|
tabTextColorActiveLine: string;
|
|
289
316
|
tabTextColorHoverLine: string;
|
|
290
317
|
tabTextColorDisabledLine: string;
|
|
318
|
+
tabTextColorSegment: string;
|
|
319
|
+
tabTextColorActiveSegment: string;
|
|
320
|
+
tabTextColorHoverSegment: string;
|
|
321
|
+
tabTextColorDisabledSegment: string;
|
|
291
322
|
tabTextColorBar: string;
|
|
292
323
|
tabTextColorActiveBar: string;
|
|
293
324
|
tabTextColorHoverBar: string;
|
|
@@ -301,11 +332,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
301
332
|
closeColorHover: string;
|
|
302
333
|
closeColorPressed: string;
|
|
303
334
|
tabColor: string;
|
|
335
|
+
tabColorSegment: string;
|
|
304
336
|
tabBorderColor: string;
|
|
305
337
|
tabFontWeightActive: string;
|
|
306
338
|
tabFontWeight: string;
|
|
307
339
|
tabBorderRadius: string;
|
|
308
340
|
paneTextColor: string;
|
|
341
|
+
fontWeightStrong: string;
|
|
309
342
|
tabFontSizeSmall: string;
|
|
310
343
|
tabFontSizeMedium: string;
|
|
311
344
|
tabFontSizeLarge: string;
|
|
@@ -327,16 +360,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
327
360
|
tabPaddingSmallCard: string;
|
|
328
361
|
tabPaddingMediumCard: string;
|
|
329
362
|
tabPaddingLargeCard: string;
|
|
363
|
+
tabPaddingSmallSegment: string;
|
|
364
|
+
tabPaddingMediumSegment: string;
|
|
365
|
+
tabPaddingLargeSegment: string;
|
|
366
|
+
tabGapSmallSegment: string;
|
|
367
|
+
tabGapMediumSegment: string;
|
|
368
|
+
tabGapLargeSegment: string;
|
|
330
369
|
panePaddingSmall: string;
|
|
331
370
|
panePaddingMedium: string;
|
|
332
371
|
panePaddingLarge: string;
|
|
333
372
|
}, any>>>;
|
|
334
373
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
374
|
+
colorSegment: string;
|
|
335
375
|
tabFontSizeCard: string;
|
|
336
376
|
tabTextColorLine: string;
|
|
337
377
|
tabTextColorActiveLine: string;
|
|
338
378
|
tabTextColorHoverLine: string;
|
|
339
379
|
tabTextColorDisabledLine: string;
|
|
380
|
+
tabTextColorSegment: string;
|
|
381
|
+
tabTextColorActiveSegment: string;
|
|
382
|
+
tabTextColorHoverSegment: string;
|
|
383
|
+
tabTextColorDisabledSegment: string;
|
|
340
384
|
tabTextColorBar: string;
|
|
341
385
|
tabTextColorActiveBar: string;
|
|
342
386
|
tabTextColorHoverBar: string;
|
|
@@ -350,11 +394,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
350
394
|
closeColorHover: string;
|
|
351
395
|
closeColorPressed: string;
|
|
352
396
|
tabColor: string;
|
|
397
|
+
tabColorSegment: string;
|
|
353
398
|
tabBorderColor: string;
|
|
354
399
|
tabFontWeightActive: string;
|
|
355
400
|
tabFontWeight: string;
|
|
356
401
|
tabBorderRadius: string;
|
|
357
402
|
paneTextColor: string;
|
|
403
|
+
fontWeightStrong: string;
|
|
358
404
|
tabFontSizeSmall: string;
|
|
359
405
|
tabFontSizeMedium: string;
|
|
360
406
|
tabFontSizeLarge: string;
|
|
@@ -376,6 +422,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
376
422
|
tabPaddingSmallCard: string;
|
|
377
423
|
tabPaddingMediumCard: string;
|
|
378
424
|
tabPaddingLargeCard: string;
|
|
425
|
+
tabPaddingSmallSegment: string;
|
|
426
|
+
tabPaddingMediumSegment: string;
|
|
427
|
+
tabPaddingLargeSegment: string;
|
|
428
|
+
tabGapSmallSegment: string;
|
|
429
|
+
tabGapMediumSegment: string;
|
|
430
|
+
tabGapLargeSegment: string;
|
|
379
431
|
panePaddingSmall: string;
|
|
380
432
|
panePaddingMedium: string;
|
|
381
433
|
panePaddingLarge: string;
|
|
@@ -436,6 +488,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
488
|
handleTabsResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
437
489
|
cssVars: import("vue").ComputedRef<{
|
|
438
490
|
'--bezier': string;
|
|
491
|
+
'--color-segment': string;
|
|
439
492
|
'--bar-color': string;
|
|
440
493
|
'--tab-font-size': string;
|
|
441
494
|
'--tab-text-color': string;
|
|
@@ -454,6 +507,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
454
507
|
'--tab-padding': string;
|
|
455
508
|
'--tab-gap': string;
|
|
456
509
|
'--pane-padding': string;
|
|
510
|
+
'--font-weight-strong': string;
|
|
511
|
+
'--tab-color-segment': string;
|
|
457
512
|
}>;
|
|
458
513
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
459
514
|
readonly value?: unknown;
|
|
@@ -461,7 +516,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
461
516
|
readonly type?: unknown;
|
|
462
517
|
readonly closable?: unknown;
|
|
463
518
|
readonly justifyContent?: unknown;
|
|
464
|
-
readonly labelSize?: unknown;
|
|
465
519
|
readonly size?: unknown;
|
|
466
520
|
readonly tabStyle?: unknown;
|
|
467
521
|
readonly paneStyle?: unknown;
|
|
@@ -471,13 +525,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
471
525
|
readonly 'onUpdate:value'?: unknown;
|
|
472
526
|
readonly onUpdateValue?: unknown;
|
|
473
527
|
readonly onClose?: unknown;
|
|
528
|
+
readonly labelSize?: unknown;
|
|
474
529
|
readonly activeName?: unknown;
|
|
475
530
|
readonly onActiveNameChange?: unknown;
|
|
476
531
|
readonly theme?: unknown;
|
|
477
532
|
readonly themeOverrides?: unknown;
|
|
478
533
|
readonly builtinThemeOverrides?: unknown;
|
|
479
534
|
} & {
|
|
480
|
-
type:
|
|
535
|
+
type: TabsType;
|
|
481
536
|
size: "small" | "medium" | "large";
|
|
482
537
|
closable: boolean;
|
|
483
538
|
tabsPadding: number;
|
|
@@ -485,11 +540,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
485
540
|
value?: string | number | undefined;
|
|
486
541
|
justifyContent?: "space-around" | "space-between" | "space-evenly" | undefined;
|
|
487
542
|
theme?: import("../../_mixins").Theme<"Tabs", {
|
|
543
|
+
colorSegment: string;
|
|
488
544
|
tabFontSizeCard: string;
|
|
489
545
|
tabTextColorLine: string;
|
|
490
546
|
tabTextColorActiveLine: string;
|
|
491
547
|
tabTextColorHoverLine: string;
|
|
492
548
|
tabTextColorDisabledLine: string;
|
|
549
|
+
tabTextColorSegment: string;
|
|
550
|
+
tabTextColorActiveSegment: string;
|
|
551
|
+
tabTextColorHoverSegment: string;
|
|
552
|
+
tabTextColorDisabledSegment: string;
|
|
493
553
|
tabTextColorBar: string;
|
|
494
554
|
tabTextColorActiveBar: string;
|
|
495
555
|
tabTextColorHoverBar: string;
|
|
@@ -503,11 +563,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
503
563
|
closeColorHover: string;
|
|
504
564
|
closeColorPressed: string;
|
|
505
565
|
tabColor: string;
|
|
566
|
+
tabColorSegment: string;
|
|
506
567
|
tabBorderColor: string;
|
|
507
568
|
tabFontWeightActive: string;
|
|
508
569
|
tabFontWeight: string;
|
|
509
570
|
tabBorderRadius: string;
|
|
510
571
|
paneTextColor: string;
|
|
572
|
+
fontWeightStrong: string;
|
|
511
573
|
tabFontSizeSmall: string;
|
|
512
574
|
tabFontSizeMedium: string;
|
|
513
575
|
tabFontSizeLarge: string;
|
|
@@ -529,16 +591,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
529
591
|
tabPaddingSmallCard: string;
|
|
530
592
|
tabPaddingMediumCard: string;
|
|
531
593
|
tabPaddingLargeCard: string;
|
|
594
|
+
tabPaddingSmallSegment: string;
|
|
595
|
+
tabPaddingMediumSegment: string;
|
|
596
|
+
tabPaddingLargeSegment: string;
|
|
597
|
+
tabGapSmallSegment: string;
|
|
598
|
+
tabGapMediumSegment: string;
|
|
599
|
+
tabGapLargeSegment: string;
|
|
532
600
|
panePaddingSmall: string;
|
|
533
601
|
panePaddingMedium: string;
|
|
534
602
|
panePaddingLarge: string;
|
|
535
603
|
}, any> | undefined;
|
|
536
604
|
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
605
|
+
colorSegment: string;
|
|
537
606
|
tabFontSizeCard: string;
|
|
538
607
|
tabTextColorLine: string;
|
|
539
608
|
tabTextColorActiveLine: string;
|
|
540
609
|
tabTextColorHoverLine: string;
|
|
541
610
|
tabTextColorDisabledLine: string;
|
|
611
|
+
tabTextColorSegment: string;
|
|
612
|
+
tabTextColorActiveSegment: string;
|
|
613
|
+
tabTextColorHoverSegment: string;
|
|
614
|
+
tabTextColorDisabledSegment: string;
|
|
542
615
|
tabTextColorBar: string;
|
|
543
616
|
tabTextColorActiveBar: string;
|
|
544
617
|
tabTextColorHoverBar: string;
|
|
@@ -552,11 +625,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
552
625
|
closeColorHover: string;
|
|
553
626
|
closeColorPressed: string;
|
|
554
627
|
tabColor: string;
|
|
628
|
+
tabColorSegment: string;
|
|
555
629
|
tabBorderColor: string;
|
|
556
630
|
tabFontWeightActive: string;
|
|
557
631
|
tabFontWeight: string;
|
|
558
632
|
tabBorderRadius: string;
|
|
559
633
|
paneTextColor: string;
|
|
634
|
+
fontWeightStrong: string;
|
|
560
635
|
tabFontSizeSmall: string;
|
|
561
636
|
tabFontSizeMedium: string;
|
|
562
637
|
tabFontSizeLarge: string;
|
|
@@ -578,16 +653,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
578
653
|
tabPaddingSmallCard: string;
|
|
579
654
|
tabPaddingMediumCard: string;
|
|
580
655
|
tabPaddingLargeCard: string;
|
|
656
|
+
tabPaddingSmallSegment: string;
|
|
657
|
+
tabPaddingMediumSegment: string;
|
|
658
|
+
tabPaddingLargeSegment: string;
|
|
659
|
+
tabGapSmallSegment: string;
|
|
660
|
+
tabGapMediumSegment: string;
|
|
661
|
+
tabGapLargeSegment: string;
|
|
581
662
|
panePaddingSmall: string;
|
|
582
663
|
panePaddingMedium: string;
|
|
583
664
|
panePaddingLarge: string;
|
|
584
665
|
}, any>> | undefined;
|
|
585
666
|
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tabs", {
|
|
667
|
+
colorSegment: string;
|
|
586
668
|
tabFontSizeCard: string;
|
|
587
669
|
tabTextColorLine: string;
|
|
588
670
|
tabTextColorActiveLine: string;
|
|
589
671
|
tabTextColorHoverLine: string;
|
|
590
672
|
tabTextColorDisabledLine: string;
|
|
673
|
+
tabTextColorSegment: string;
|
|
674
|
+
tabTextColorActiveSegment: string;
|
|
675
|
+
tabTextColorHoverSegment: string;
|
|
676
|
+
tabTextColorDisabledSegment: string;
|
|
591
677
|
tabTextColorBar: string;
|
|
592
678
|
tabTextColorActiveBar: string;
|
|
593
679
|
tabTextColorHoverBar: string;
|
|
@@ -601,11 +687,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
601
687
|
closeColorHover: string;
|
|
602
688
|
closeColorPressed: string;
|
|
603
689
|
tabColor: string;
|
|
690
|
+
tabColorSegment: string;
|
|
604
691
|
tabBorderColor: string;
|
|
605
692
|
tabFontWeightActive: string;
|
|
606
693
|
tabFontWeight: string;
|
|
607
694
|
tabBorderRadius: string;
|
|
608
695
|
paneTextColor: string;
|
|
696
|
+
fontWeightStrong: string;
|
|
609
697
|
tabFontSizeSmall: string;
|
|
610
698
|
tabFontSizeMedium: string;
|
|
611
699
|
tabFontSizeLarge: string;
|
|
@@ -627,6 +715,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
627
715
|
tabPaddingSmallCard: string;
|
|
628
716
|
tabPaddingMediumCard: string;
|
|
629
717
|
tabPaddingLargeCard: string;
|
|
718
|
+
tabPaddingSmallSegment: string;
|
|
719
|
+
tabPaddingMediumSegment: string;
|
|
720
|
+
tabPaddingLargeSegment: string;
|
|
721
|
+
tabGapSmallSegment: string;
|
|
722
|
+
tabGapMediumSegment: string;
|
|
723
|
+
tabGapLargeSegment: string;
|
|
630
724
|
panePaddingSmall: string;
|
|
631
725
|
panePaddingMedium: string;
|
|
632
726
|
panePaddingLarge: string;
|
|
@@ -636,19 +730,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
636
730
|
"onUpdate:value"?: MaybeArray<OnUpdateValue> | undefined;
|
|
637
731
|
onUpdateValue?: MaybeArray<OnUpdateValue> | undefined;
|
|
638
732
|
addable?: Addable | undefined;
|
|
639
|
-
labelSize?: "small" | "medium" | "large" | undefined;
|
|
640
733
|
tabStyle?: string | CSSProperties | undefined;
|
|
641
734
|
paneStyle?: string | CSSProperties | undefined;
|
|
642
735
|
onAdd?: (() => void) | undefined;
|
|
736
|
+
labelSize?: "small" | "medium" | "large" | undefined;
|
|
643
737
|
activeName?: string | number | undefined;
|
|
644
738
|
onActiveNameChange?: MaybeArray<(value: never) => void> | undefined;
|
|
645
739
|
}>, {
|
|
646
|
-
type:
|
|
740
|
+
type: TabsType;
|
|
647
741
|
size: "small" | "medium" | "large";
|
|
648
742
|
closable: boolean;
|
|
649
|
-
labelSize: "small" | "medium" | "large";
|
|
650
743
|
tabsPadding: number;
|
|
651
|
-
activeName: string | number | undefined;
|
|
652
|
-
onActiveNameChange: MaybeArray<(value: never) => void> | undefined;
|
|
653
744
|
}>;
|
|
654
745
|
export default _default;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -13,18 +13,7 @@ const Tab_1 = require("./Tab");
|
|
|
13
13
|
const tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { value: [String, Number], defaultValue: [String, Number], type: {
|
|
14
14
|
type: String,
|
|
15
15
|
default: 'bar'
|
|
16
|
-
}, closable: Boolean, justifyContent: String,
|
|
17
|
-
/** deprecated */
|
|
18
|
-
labelSize: {
|
|
19
|
-
type: String,
|
|
20
|
-
validator: () => {
|
|
21
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
22
|
-
(0, _utils_1.warn)('tabs', '`label-size` is deprecated, please use `size` instead.');
|
|
23
|
-
}
|
|
24
|
-
return true;
|
|
25
|
-
},
|
|
26
|
-
default: undefined
|
|
27
|
-
}, size: {
|
|
16
|
+
}, closable: Boolean, justifyContent: String, size: {
|
|
28
17
|
type: String,
|
|
29
18
|
default: 'medium'
|
|
30
19
|
}, tabStyle: [String, Object], paneStyle: [String, Object], addable: [Boolean, Object], tabsPadding: {
|
|
@@ -32,30 +21,25 @@ const tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { v
|
|
|
32
21
|
default: 0
|
|
33
22
|
}, onAdd: Function, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onClose: [Function, Array],
|
|
34
23
|
// deprecated
|
|
35
|
-
activeName:
|
|
36
|
-
type: [String, Number],
|
|
37
|
-
validator: () => {
|
|
38
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
39
|
-
(0, _utils_1.warn)('tabs', '`active-name` is deprecated, please use `value` instead.');
|
|
40
|
-
}
|
|
41
|
-
return true;
|
|
42
|
-
},
|
|
43
|
-
default: undefined
|
|
44
|
-
}, onActiveNameChange: {
|
|
45
|
-
type: [Function, Array],
|
|
46
|
-
validator: () => {
|
|
47
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
48
|
-
(0, _utils_1.warn)('tabs', '`on-active-name-change` is deprecated, please use `on-update:value` instead.');
|
|
49
|
-
}
|
|
50
|
-
return true;
|
|
51
|
-
},
|
|
52
|
-
default: undefined
|
|
53
|
-
} });
|
|
24
|
+
labelSize: String, activeName: [String, Number], onActiveNameChange: [Function, Array] });
|
|
54
25
|
exports.default = (0, vue_1.defineComponent)({
|
|
55
26
|
name: 'Tabs',
|
|
56
27
|
props: tabsProps,
|
|
57
28
|
setup(props, { slots }) {
|
|
58
29
|
var _a, _b;
|
|
30
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
+
(0, vue_1.watchEffect)(() => {
|
|
32
|
+
if (props.labelSize !== undefined) {
|
|
33
|
+
(0, _utils_1.warnOnce)('tabs', '`label-size` is deprecated, please use `size` instead.');
|
|
34
|
+
}
|
|
35
|
+
if (props.activeName !== undefined) {
|
|
36
|
+
(0, _utils_1.warnOnce)('tabs', '`active-name` is deprecated, please use `value` instead.');
|
|
37
|
+
}
|
|
38
|
+
if (props.onActiveNameChange !== undefined) {
|
|
39
|
+
(0, _utils_1.warnOnce)('tabs', '`on-active-name-change` is deprecated, please use `on-update:value` instead.');
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
59
43
|
const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
|
|
60
44
|
const themeRef = (0, _mixins_1.useTheme)('Tabs', 'Tabs', index_cssr_1.default, styles_1.tabsLight, props, mergedClsPrefixRef);
|
|
61
45
|
const tabsElRef = (0, vue_1.ref)(null);
|
|
@@ -256,11 +240,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
256
240
|
cssVars: (0, vue_1.computed)(() => {
|
|
257
241
|
const { value: size } = compitableSizeRef;
|
|
258
242
|
const { type } = props;
|
|
259
|
-
const typeSuffix =
|
|
243
|
+
const typeSuffix = {
|
|
244
|
+
card: 'Card',
|
|
245
|
+
bar: 'Bar',
|
|
246
|
+
line: 'Line',
|
|
247
|
+
segment: 'Segment'
|
|
248
|
+
}[type];
|
|
260
249
|
const sizeType = `${size}${typeSuffix}`;
|
|
261
|
-
const { self: { barColor, closeColor, closeColorHover, closeColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, [(0, _utils_1.createKey)('panePadding', size)]: panePadding, [(0, _utils_1.createKey)('tabPadding', sizeType)]: tabPadding, [(0, _utils_1.createKey)('tabGap', sizeType)]: tabGap, [(0, _utils_1.createKey)('tabTextColor', type)]: tabTextColor, [(0, _utils_1.createKey)('tabTextColorActive', type)]: tabTextColorActive, [(0, _utils_1.createKey)('tabTextColorHover', type)]: tabTextColorHover, [(0, _utils_1.createKey)('tabTextColorDisabled', type)]: tabTextColorDisabled, [(0, _utils_1.createKey)('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
250
|
+
const { self: { barColor, closeColor, closeColorHover, closeColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, colorSegment, fontWeightStrong, tabColorSegment, [(0, _utils_1.createKey)('panePadding', size)]: panePadding, [(0, _utils_1.createKey)('tabPadding', sizeType)]: tabPadding, [(0, _utils_1.createKey)('tabGap', sizeType)]: tabGap, [(0, _utils_1.createKey)('tabTextColor', type)]: tabTextColor, [(0, _utils_1.createKey)('tabTextColorActive', type)]: tabTextColorActive, [(0, _utils_1.createKey)('tabTextColorHover', type)]: tabTextColorHover, [(0, _utils_1.createKey)('tabTextColorDisabled', type)]: tabTextColorDisabled, [(0, _utils_1.createKey)('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
262
251
|
return {
|
|
263
252
|
'--bezier': cubicBezierEaseInOut,
|
|
253
|
+
'--color-segment': colorSegment,
|
|
264
254
|
'--bar-color': barColor,
|
|
265
255
|
'--tab-font-size': tabFontSize,
|
|
266
256
|
'--tab-text-color': tabTextColor,
|
|
@@ -278,7 +268,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
278
268
|
'--tab-font-weight-active': tabFontWeightActive,
|
|
279
269
|
'--tab-padding': tabPadding,
|
|
280
270
|
'--tab-gap': tabGap,
|
|
281
|
-
'--pane-padding': panePadding
|
|
271
|
+
'--pane-padding': panePadding,
|
|
272
|
+
'--font-weight-strong': fontWeightStrong,
|
|
273
|
+
'--tab-color-segment': tabColorSegment
|
|
282
274
|
};
|
|
283
275
|
})
|
|
284
276
|
};
|
|
@@ -293,7 +285,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
293
285
|
const prefix = prefixSlot ? prefixSlot() : null;
|
|
294
286
|
const suffix = suffixSlot ? suffixSlot() : null;
|
|
295
287
|
const isCard = type === 'card';
|
|
296
|
-
const
|
|
288
|
+
const isSegment = type === 'segment';
|
|
289
|
+
const mergedJustifyContent = !isCard && !isSegment && this.justifyContent;
|
|
297
290
|
return ((0, vue_1.h)("div", { class: [
|
|
298
291
|
`${mergedClsPrefix}-tabs`,
|
|
299
292
|
`${mergedClsPrefix}-tabs--${type}-type`,
|
|
@@ -309,7 +302,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
309
302
|
`${mergedClsPrefix}-tabs-nav`
|
|
310
303
|
] },
|
|
311
304
|
prefix ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav__prefix` }, prefix)) : null,
|
|
312
|
-
(0, vue_1.h)(
|
|
305
|
+
isSegment ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-rail` }, children.map((tabPaneVNode, index) => {
|
|
306
|
+
return ((0, vue_1.h)(Tab_1.default, Object.assign({}, tabPaneVNode.props, { leftPadded: index !== 0 }), tabPaneVNode.children
|
|
307
|
+
? {
|
|
308
|
+
default: tabPaneVNode.children.tab
|
|
309
|
+
}
|
|
310
|
+
: undefined));
|
|
311
|
+
}))) : ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleNavResize }, {
|
|
313
312
|
default: () => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav-scroll-wrapper`, ref: "scrollWrapperElRef" },
|
|
314
313
|
(0, vue_1.h)(vueuc_1.VXScroll, { ref: "xScrollInstRef", onScroll: this.handleScroll }, {
|
|
315
314
|
default: () => {
|
|
@@ -338,7 +337,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
338
337
|
isCard ? null : ((0, vue_1.h)("div", { ref: "barElRef", class: `${mergedClsPrefix}-tabs-bar` }))));
|
|
339
338
|
}
|
|
340
339
|
})))
|
|
341
|
-
}),
|
|
340
|
+
})),
|
|
342
341
|
addTabFixed && addable && isCard
|
|
343
342
|
? createAddTag(addable, true)
|
|
344
343
|
: null,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Ref, InjectionKey, CSSProperties } from 'vue';
|
|
2
|
+
export declare type TabsType = 'line' | 'card' | 'bar' | 'segment';
|
|
2
3
|
export declare type OnUpdateValue = (value: string & number) => void;
|
|
3
4
|
export declare type OnUpdateValueImpl = (value: string | number) => void;
|
|
4
5
|
export declare type OnClose = (name: string & number) => void;
|
|
@@ -6,7 +7,7 @@ export declare type OnCloseImpl = (name: string | number) => void;
|
|
|
6
7
|
export interface TabsInjection {
|
|
7
8
|
mergedClsPrefixRef: Ref<string>;
|
|
8
9
|
valueRef: Ref<string | number | null>;
|
|
9
|
-
typeRef: Ref<
|
|
10
|
+
typeRef: Ref<TabsType>;
|
|
10
11
|
closableRef: Ref<boolean>;
|
|
11
12
|
tabStyleRef: Ref<string | CSSProperties | undefined>;
|
|
12
13
|
paneStyleRef: Ref<string | CSSProperties | undefined>;
|