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
|
@@ -122,6 +122,7 @@ declare const cascaderProps: {
|
|
|
122
122
|
optionOpacityDisabled: string;
|
|
123
123
|
optionCheckColor: string;
|
|
124
124
|
optionColorPending: string;
|
|
125
|
+
optionColorActive: string;
|
|
125
126
|
actionTextColor: string;
|
|
126
127
|
loadingColor: string;
|
|
127
128
|
height: string;
|
|
@@ -154,6 +155,14 @@ declare const cascaderProps: {
|
|
|
154
155
|
}, any>;
|
|
155
156
|
}>;
|
|
156
157
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
158
|
+
fontSizeTiny: string;
|
|
159
|
+
fontSizeSmall: string;
|
|
160
|
+
fontSizeMedium: string;
|
|
161
|
+
fontSizeLarge: string;
|
|
162
|
+
heightTiny: string;
|
|
163
|
+
heightSmall: string;
|
|
164
|
+
heightMedium: string;
|
|
165
|
+
heightLarge: string;
|
|
157
166
|
borderRadius: string;
|
|
158
167
|
textColor: string;
|
|
159
168
|
textColorDisabled: string;
|
|
@@ -194,16 +203,9 @@ declare const cascaderProps: {
|
|
|
194
203
|
clearColor: string;
|
|
195
204
|
clearColorHover: string;
|
|
196
205
|
clearColorPressed: string;
|
|
197
|
-
heightTiny: string;
|
|
198
|
-
heightSmall: string;
|
|
199
|
-
heightMedium: string;
|
|
200
|
-
heightLarge: string;
|
|
201
|
-
fontSizeTiny: string;
|
|
202
|
-
fontSizeSmall: string;
|
|
203
|
-
fontSizeMedium: string;
|
|
204
|
-
fontSizeLarge: string;
|
|
205
206
|
paddingSingle: string;
|
|
206
207
|
clearSize: string;
|
|
208
|
+
arrowSize: string;
|
|
207
209
|
}, {
|
|
208
210
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
209
211
|
fontSize: string;
|
|
@@ -290,6 +292,7 @@ declare const cascaderProps: {
|
|
|
290
292
|
optionOpacityDisabled: string;
|
|
291
293
|
optionCheckColor: string;
|
|
292
294
|
optionColorPending: string;
|
|
295
|
+
optionColorActive: string;
|
|
293
296
|
actionTextColor: string;
|
|
294
297
|
loadingColor: string;
|
|
295
298
|
height: string;
|
|
@@ -322,6 +325,14 @@ declare const cascaderProps: {
|
|
|
322
325
|
}, any>;
|
|
323
326
|
}>;
|
|
324
327
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
328
|
+
fontSizeTiny: string;
|
|
329
|
+
fontSizeSmall: string;
|
|
330
|
+
fontSizeMedium: string;
|
|
331
|
+
fontSizeLarge: string;
|
|
332
|
+
heightTiny: string;
|
|
333
|
+
heightSmall: string;
|
|
334
|
+
heightMedium: string;
|
|
335
|
+
heightLarge: string;
|
|
325
336
|
borderRadius: string;
|
|
326
337
|
textColor: string;
|
|
327
338
|
textColorDisabled: string;
|
|
@@ -362,16 +373,9 @@ declare const cascaderProps: {
|
|
|
362
373
|
clearColor: string;
|
|
363
374
|
clearColorHover: string;
|
|
364
375
|
clearColorPressed: string;
|
|
365
|
-
heightTiny: string;
|
|
366
|
-
heightSmall: string;
|
|
367
|
-
heightMedium: string;
|
|
368
|
-
heightLarge: string;
|
|
369
|
-
fontSizeTiny: string;
|
|
370
|
-
fontSizeSmall: string;
|
|
371
|
-
fontSizeMedium: string;
|
|
372
|
-
fontSizeLarge: string;
|
|
373
376
|
paddingSingle: string;
|
|
374
377
|
clearSize: string;
|
|
378
|
+
arrowSize: string;
|
|
375
379
|
}, {
|
|
376
380
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
377
381
|
fontSize: string;
|
|
@@ -458,6 +462,7 @@ declare const cascaderProps: {
|
|
|
458
462
|
optionOpacityDisabled: string;
|
|
459
463
|
optionCheckColor: string;
|
|
460
464
|
optionColorPending: string;
|
|
465
|
+
optionColorActive: string;
|
|
461
466
|
actionTextColor: string;
|
|
462
467
|
loadingColor: string;
|
|
463
468
|
height: string;
|
|
@@ -490,6 +495,14 @@ declare const cascaderProps: {
|
|
|
490
495
|
}, any>;
|
|
491
496
|
}>;
|
|
492
497
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
498
|
+
fontSizeTiny: string;
|
|
499
|
+
fontSizeSmall: string;
|
|
500
|
+
fontSizeMedium: string;
|
|
501
|
+
fontSizeLarge: string;
|
|
502
|
+
heightTiny: string;
|
|
503
|
+
heightSmall: string;
|
|
504
|
+
heightMedium: string;
|
|
505
|
+
heightLarge: string;
|
|
493
506
|
borderRadius: string;
|
|
494
507
|
textColor: string;
|
|
495
508
|
textColorDisabled: string;
|
|
@@ -530,16 +543,9 @@ declare const cascaderProps: {
|
|
|
530
543
|
clearColor: string;
|
|
531
544
|
clearColorHover: string;
|
|
532
545
|
clearColorPressed: string;
|
|
533
|
-
heightTiny: string;
|
|
534
|
-
heightSmall: string;
|
|
535
|
-
heightMedium: string;
|
|
536
|
-
heightLarge: string;
|
|
537
|
-
fontSizeTiny: string;
|
|
538
|
-
fontSizeSmall: string;
|
|
539
|
-
fontSizeMedium: string;
|
|
540
|
-
fontSizeLarge: string;
|
|
541
546
|
paddingSingle: string;
|
|
542
547
|
clearSize: string;
|
|
548
|
+
arrowSize: string;
|
|
543
549
|
}, {
|
|
544
550
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
545
551
|
fontSize: string;
|
|
@@ -709,6 +715,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
709
715
|
optionOpacityDisabled: string;
|
|
710
716
|
optionCheckColor: string;
|
|
711
717
|
optionColorPending: string;
|
|
718
|
+
optionColorActive: string;
|
|
712
719
|
actionTextColor: string;
|
|
713
720
|
loadingColor: string;
|
|
714
721
|
height: string;
|
|
@@ -741,6 +748,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
741
748
|
}, any>;
|
|
742
749
|
}>;
|
|
743
750
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
751
|
+
fontSizeTiny: string;
|
|
752
|
+
fontSizeSmall: string;
|
|
753
|
+
fontSizeMedium: string;
|
|
754
|
+
fontSizeLarge: string;
|
|
755
|
+
heightTiny: string;
|
|
756
|
+
heightSmall: string;
|
|
757
|
+
heightMedium: string;
|
|
758
|
+
heightLarge: string;
|
|
744
759
|
borderRadius: string;
|
|
745
760
|
textColor: string;
|
|
746
761
|
textColorDisabled: string;
|
|
@@ -781,16 +796,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
781
796
|
clearColor: string;
|
|
782
797
|
clearColorHover: string;
|
|
783
798
|
clearColorPressed: string;
|
|
784
|
-
heightTiny: string;
|
|
785
|
-
heightSmall: string;
|
|
786
|
-
heightMedium: string;
|
|
787
|
-
heightLarge: string;
|
|
788
|
-
fontSizeTiny: string;
|
|
789
|
-
fontSizeSmall: string;
|
|
790
|
-
fontSizeMedium: string;
|
|
791
|
-
fontSizeLarge: string;
|
|
792
799
|
paddingSingle: string;
|
|
793
800
|
clearSize: string;
|
|
801
|
+
arrowSize: string;
|
|
794
802
|
}, {
|
|
795
803
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
796
804
|
fontSize: string;
|
|
@@ -877,6 +885,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
877
885
|
optionOpacityDisabled: string;
|
|
878
886
|
optionCheckColor: string;
|
|
879
887
|
optionColorPending: string;
|
|
888
|
+
optionColorActive: string;
|
|
880
889
|
actionTextColor: string;
|
|
881
890
|
loadingColor: string;
|
|
882
891
|
height: string;
|
|
@@ -909,6 +918,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
909
918
|
}, any>;
|
|
910
919
|
}>;
|
|
911
920
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
921
|
+
fontSizeTiny: string;
|
|
922
|
+
fontSizeSmall: string;
|
|
923
|
+
fontSizeMedium: string;
|
|
924
|
+
fontSizeLarge: string;
|
|
925
|
+
heightTiny: string;
|
|
926
|
+
heightSmall: string;
|
|
927
|
+
heightMedium: string;
|
|
928
|
+
heightLarge: string;
|
|
912
929
|
borderRadius: string;
|
|
913
930
|
textColor: string;
|
|
914
931
|
textColorDisabled: string;
|
|
@@ -949,16 +966,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
949
966
|
clearColor: string;
|
|
950
967
|
clearColorHover: string;
|
|
951
968
|
clearColorPressed: string;
|
|
952
|
-
heightTiny: string;
|
|
953
|
-
heightSmall: string;
|
|
954
|
-
heightMedium: string;
|
|
955
|
-
heightLarge: string;
|
|
956
|
-
fontSizeTiny: string;
|
|
957
|
-
fontSizeSmall: string;
|
|
958
|
-
fontSizeMedium: string;
|
|
959
|
-
fontSizeLarge: string;
|
|
960
969
|
paddingSingle: string;
|
|
961
970
|
clearSize: string;
|
|
971
|
+
arrowSize: string;
|
|
962
972
|
}, {
|
|
963
973
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
964
974
|
fontSize: string;
|
|
@@ -1045,6 +1055,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1045
1055
|
optionOpacityDisabled: string;
|
|
1046
1056
|
optionCheckColor: string;
|
|
1047
1057
|
optionColorPending: string;
|
|
1058
|
+
optionColorActive: string;
|
|
1048
1059
|
actionTextColor: string;
|
|
1049
1060
|
loadingColor: string;
|
|
1050
1061
|
height: string;
|
|
@@ -1077,6 +1088,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1077
1088
|
}, any>;
|
|
1078
1089
|
}>;
|
|
1079
1090
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1091
|
+
fontSizeTiny: string;
|
|
1092
|
+
fontSizeSmall: string;
|
|
1093
|
+
fontSizeMedium: string;
|
|
1094
|
+
fontSizeLarge: string;
|
|
1095
|
+
heightTiny: string;
|
|
1096
|
+
heightSmall: string;
|
|
1097
|
+
heightMedium: string;
|
|
1098
|
+
heightLarge: string;
|
|
1080
1099
|
borderRadius: string;
|
|
1081
1100
|
textColor: string;
|
|
1082
1101
|
textColorDisabled: string;
|
|
@@ -1117,16 +1136,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1117
1136
|
clearColor: string;
|
|
1118
1137
|
clearColorHover: string;
|
|
1119
1138
|
clearColorPressed: string;
|
|
1120
|
-
heightTiny: string;
|
|
1121
|
-
heightSmall: string;
|
|
1122
|
-
heightMedium: string;
|
|
1123
|
-
heightLarge: string;
|
|
1124
|
-
fontSizeTiny: string;
|
|
1125
|
-
fontSizeSmall: string;
|
|
1126
|
-
fontSizeMedium: string;
|
|
1127
|
-
fontSizeLarge: string;
|
|
1128
1139
|
paddingSingle: string;
|
|
1129
1140
|
clearSize: string;
|
|
1141
|
+
arrowSize: string;
|
|
1130
1142
|
}, {
|
|
1131
1143
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1132
1144
|
fontSize: string;
|
|
@@ -1372,6 +1384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1372
1384
|
optionOpacityDisabled: string;
|
|
1373
1385
|
optionCheckColor: string;
|
|
1374
1386
|
optionColorPending: string;
|
|
1387
|
+
optionColorActive: string;
|
|
1375
1388
|
actionTextColor: string;
|
|
1376
1389
|
loadingColor: string;
|
|
1377
1390
|
height: string;
|
|
@@ -1404,6 +1417,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1404
1417
|
}, any>;
|
|
1405
1418
|
}>;
|
|
1406
1419
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1420
|
+
fontSizeTiny: string;
|
|
1421
|
+
fontSizeSmall: string;
|
|
1422
|
+
fontSizeMedium: string;
|
|
1423
|
+
fontSizeLarge: string;
|
|
1424
|
+
heightTiny: string;
|
|
1425
|
+
heightSmall: string;
|
|
1426
|
+
heightMedium: string;
|
|
1427
|
+
heightLarge: string;
|
|
1407
1428
|
borderRadius: string;
|
|
1408
1429
|
textColor: string;
|
|
1409
1430
|
textColorDisabled: string;
|
|
@@ -1444,16 +1465,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1444
1465
|
clearColor: string;
|
|
1445
1466
|
clearColorHover: string;
|
|
1446
1467
|
clearColorPressed: string;
|
|
1447
|
-
heightTiny: string;
|
|
1448
|
-
heightSmall: string;
|
|
1449
|
-
heightMedium: string;
|
|
1450
|
-
heightLarge: string;
|
|
1451
|
-
fontSizeTiny: string;
|
|
1452
|
-
fontSizeSmall: string;
|
|
1453
|
-
fontSizeMedium: string;
|
|
1454
|
-
fontSizeLarge: string;
|
|
1455
1468
|
paddingSingle: string;
|
|
1456
1469
|
clearSize: string;
|
|
1470
|
+
arrowSize: string;
|
|
1457
1471
|
}, {
|
|
1458
1472
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1459
1473
|
fontSize: string;
|
|
@@ -1677,6 +1691,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1677
1691
|
optionOpacityDisabled: string;
|
|
1678
1692
|
optionCheckColor: string;
|
|
1679
1693
|
optionColorPending: string;
|
|
1694
|
+
optionColorActive: string;
|
|
1680
1695
|
actionTextColor: string;
|
|
1681
1696
|
loadingColor: string;
|
|
1682
1697
|
height: string;
|
|
@@ -1709,6 +1724,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1709
1724
|
}, any>;
|
|
1710
1725
|
}>;
|
|
1711
1726
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1727
|
+
fontSizeTiny: string;
|
|
1728
|
+
fontSizeSmall: string;
|
|
1729
|
+
fontSizeMedium: string;
|
|
1730
|
+
fontSizeLarge: string;
|
|
1731
|
+
heightTiny: string;
|
|
1732
|
+
heightSmall: string;
|
|
1733
|
+
heightMedium: string;
|
|
1734
|
+
heightLarge: string;
|
|
1712
1735
|
borderRadius: string;
|
|
1713
1736
|
textColor: string;
|
|
1714
1737
|
textColorDisabled: string;
|
|
@@ -1749,16 +1772,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1749
1772
|
clearColor: string;
|
|
1750
1773
|
clearColorHover: string;
|
|
1751
1774
|
clearColorPressed: string;
|
|
1752
|
-
heightTiny: string;
|
|
1753
|
-
heightSmall: string;
|
|
1754
|
-
heightMedium: string;
|
|
1755
|
-
heightLarge: string;
|
|
1756
|
-
fontSizeTiny: string;
|
|
1757
|
-
fontSizeSmall: string;
|
|
1758
|
-
fontSizeMedium: string;
|
|
1759
|
-
fontSizeLarge: string;
|
|
1760
1775
|
paddingSingle: string;
|
|
1761
1776
|
clearSize: string;
|
|
1777
|
+
arrowSize: string;
|
|
1762
1778
|
}, {
|
|
1763
1779
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1764
1780
|
fontSize: string;
|
|
@@ -1845,6 +1861,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1845
1861
|
optionOpacityDisabled: string;
|
|
1846
1862
|
optionCheckColor: string;
|
|
1847
1863
|
optionColorPending: string;
|
|
1864
|
+
optionColorActive: string;
|
|
1848
1865
|
actionTextColor: string;
|
|
1849
1866
|
loadingColor: string;
|
|
1850
1867
|
height: string;
|
|
@@ -1877,6 +1894,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1877
1894
|
}, any>;
|
|
1878
1895
|
}>;
|
|
1879
1896
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
1897
|
+
fontSizeTiny: string;
|
|
1898
|
+
fontSizeSmall: string;
|
|
1899
|
+
fontSizeMedium: string;
|
|
1900
|
+
fontSizeLarge: string;
|
|
1901
|
+
heightTiny: string;
|
|
1902
|
+
heightSmall: string;
|
|
1903
|
+
heightMedium: string;
|
|
1904
|
+
heightLarge: string;
|
|
1880
1905
|
borderRadius: string;
|
|
1881
1906
|
textColor: string;
|
|
1882
1907
|
textColorDisabled: string;
|
|
@@ -1917,16 +1942,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1917
1942
|
clearColor: string;
|
|
1918
1943
|
clearColorHover: string;
|
|
1919
1944
|
clearColorPressed: string;
|
|
1920
|
-
heightTiny: string;
|
|
1921
|
-
heightSmall: string;
|
|
1922
|
-
heightMedium: string;
|
|
1923
|
-
heightLarge: string;
|
|
1924
|
-
fontSizeTiny: string;
|
|
1925
|
-
fontSizeSmall: string;
|
|
1926
|
-
fontSizeMedium: string;
|
|
1927
|
-
fontSizeLarge: string;
|
|
1928
1945
|
paddingSingle: string;
|
|
1929
1946
|
clearSize: string;
|
|
1947
|
+
arrowSize: string;
|
|
1930
1948
|
}, {
|
|
1931
1949
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1932
1950
|
fontSize: string;
|
|
@@ -2013,6 +2031,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2013
2031
|
optionOpacityDisabled: string;
|
|
2014
2032
|
optionCheckColor: string;
|
|
2015
2033
|
optionColorPending: string;
|
|
2034
|
+
optionColorActive: string;
|
|
2016
2035
|
actionTextColor: string;
|
|
2017
2036
|
loadingColor: string;
|
|
2018
2037
|
height: string;
|
|
@@ -2045,6 +2064,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2045
2064
|
}, any>;
|
|
2046
2065
|
}>;
|
|
2047
2066
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
2067
|
+
fontSizeTiny: string;
|
|
2068
|
+
fontSizeSmall: string;
|
|
2069
|
+
fontSizeMedium: string;
|
|
2070
|
+
fontSizeLarge: string;
|
|
2071
|
+
heightTiny: string;
|
|
2072
|
+
heightSmall: string;
|
|
2073
|
+
heightMedium: string;
|
|
2074
|
+
heightLarge: string;
|
|
2048
2075
|
borderRadius: string;
|
|
2049
2076
|
textColor: string;
|
|
2050
2077
|
textColorDisabled: string;
|
|
@@ -2085,16 +2112,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2085
2112
|
clearColor: string;
|
|
2086
2113
|
clearColorHover: string;
|
|
2087
2114
|
clearColorPressed: string;
|
|
2088
|
-
heightTiny: string;
|
|
2089
|
-
heightSmall: string;
|
|
2090
|
-
heightMedium: string;
|
|
2091
|
-
heightLarge: string;
|
|
2092
|
-
fontSizeTiny: string;
|
|
2093
|
-
fontSizeSmall: string;
|
|
2094
|
-
fontSizeMedium: string;
|
|
2095
|
-
fontSizeLarge: string;
|
|
2096
2115
|
paddingSingle: string;
|
|
2097
2116
|
clearSize: string;
|
|
2117
|
+
arrowSize: string;
|
|
2098
2118
|
}, {
|
|
2099
2119
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
2100
2120
|
fontSize: string;
|
|
@@ -163,15 +163,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function doUpdateValue(value) {
|
|
166
|
+
function doUpdateValue(value, option) {
|
|
167
167
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
168
168
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
169
169
|
if (onUpdateValue)
|
|
170
|
-
(0, _utils_1.call)(onUpdateValue, value);
|
|
171
|
-
if (_onUpdateValue)
|
|
172
|
-
(0, _utils_1.call)(_onUpdateValue, value);
|
|
170
|
+
(0, _utils_1.call)(onUpdateValue, value, option);
|
|
171
|
+
if (_onUpdateValue) {
|
|
172
|
+
(0, _utils_1.call)(_onUpdateValue, value, option);
|
|
173
|
+
}
|
|
173
174
|
if (onChange)
|
|
174
|
-
(0, _utils_1.call)(onChange, value);
|
|
175
|
+
(0, _utils_1.call)(onChange, value, option);
|
|
175
176
|
uncontrolledValueRef.value = value;
|
|
176
177
|
nTriggerFormInput();
|
|
177
178
|
nTriggerFormChange();
|
|
@@ -184,22 +185,23 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
184
185
|
}
|
|
185
186
|
function doCheck(key) {
|
|
186
187
|
const { cascade, multiple, filterable } = props;
|
|
188
|
+
const { value: { check, getNode } } = treeMateRef;
|
|
187
189
|
if (multiple) {
|
|
188
190
|
try {
|
|
189
|
-
const { checkedKeys } =
|
|
191
|
+
const { checkedKeys } = check(key, mergedKeysRef.value.checkedKeys, {
|
|
190
192
|
cascade,
|
|
191
193
|
checkStrategy: mergedCheckStrategyRef.value
|
|
192
194
|
});
|
|
193
|
-
doUpdateValue(checkedKeys);
|
|
195
|
+
doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
|
|
194
196
|
if (filterable)
|
|
195
197
|
focusSelectionInput();
|
|
196
198
|
}
|
|
197
199
|
catch (err) {
|
|
198
200
|
if (err instanceof treemate_1.SubtreeNotLoadedError) {
|
|
199
201
|
if (cascaderMenuInstRef.value) {
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
cascaderMenuInstRef.value.showErrorMessage(
|
|
202
|
+
const tmNode = getNode(key);
|
|
203
|
+
if (tmNode !== null) {
|
|
204
|
+
cascaderMenuInstRef.value.showErrorMessage(tmNode.rawNode[props.labelField]);
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
207
|
}
|
|
@@ -210,16 +212,17 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
214
|
if (mergedCheckStrategyRef.value === 'child') {
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
doUpdateValue(key);
|
|
215
|
+
const tmNode = getNode(key);
|
|
216
|
+
if (tmNode === null || tmNode === void 0 ? void 0 : tmNode.isLeaf) {
|
|
217
|
+
doUpdateValue(key, tmNode.rawNode);
|
|
216
218
|
}
|
|
217
219
|
else {
|
|
218
220
|
return false;
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
else {
|
|
222
|
-
|
|
224
|
+
const tmNode = getNode(key);
|
|
225
|
+
doUpdateValue(key, (tmNode === null || tmNode === void 0 ? void 0 : tmNode.rawNode) || null);
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
return true;
|
|
@@ -227,11 +230,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
227
230
|
function doUncheck(key) {
|
|
228
231
|
const { cascade, multiple } = props;
|
|
229
232
|
if (multiple) {
|
|
230
|
-
const {
|
|
233
|
+
const { value: { uncheck, getNode } } = treeMateRef;
|
|
234
|
+
const { checkedKeys } = uncheck(key, mergedKeysRef.value.checkedKeys, {
|
|
231
235
|
cascade,
|
|
232
236
|
checkStrategy: mergedCheckStrategyRef.value
|
|
233
237
|
});
|
|
234
|
-
doUpdateValue(checkedKeys);
|
|
238
|
+
doUpdateValue(checkedKeys, checkedKeys.map((checkedKey) => { var _a; return ((_a = getNode(checkedKey)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; }));
|
|
235
239
|
}
|
|
236
240
|
}
|
|
237
241
|
const selectedOptionsRef = (0, vue_1.computed)(() => {
|
|
@@ -523,7 +527,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
523
527
|
// --- search
|
|
524
528
|
function handleClear(e) {
|
|
525
529
|
e.stopPropagation();
|
|
526
|
-
|
|
530
|
+
if (props.multiple) {
|
|
531
|
+
doUpdateValue([], []);
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
doUpdateValue(null, null);
|
|
535
|
+
}
|
|
527
536
|
}
|
|
528
537
|
function handleTriggerFocus(e) {
|
|
529
538
|
var _a;
|
|
@@ -588,7 +597,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
588
597
|
doUncheck(option[valueField]);
|
|
589
598
|
}
|
|
590
599
|
else {
|
|
591
|
-
doUpdateValue(null);
|
|
600
|
+
doUpdateValue(null, null);
|
|
592
601
|
}
|
|
593
602
|
}
|
|
594
603
|
function handleKeyDown(e) {
|
|
@@ -714,7 +723,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
714
723
|
(0, vue_1.h)(vueuc_1.VTarget, null, {
|
|
715
724
|
default: () => ((0, vue_1.h)(_internal_1.NInternalSelection, { ref: "triggerInstRef", clsPrefix: mergedClsPrefix, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, focused: this.focused, onFocus: this.handleTriggerFocus, onBlur: this.handleTriggerBlur, onClick: this.handleTriggerClick, onClear: this.handleClear, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onKeydown: this.handleKeyDown, onKeyup: this.handleKeyUp }))
|
|
716
725
|
}),
|
|
717
|
-
(0, vue_1.h)(vueuc_1.VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
726
|
+
(0, vue_1.h)(vueuc_1.VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === _utils_1.useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
718
727
|
default: () => ((0, vue_1.h)(CascaderMenu_1.default, { ref: "cascaderMenuInstRef", value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout }, this.$slots.action && {
|
|
719
728
|
action: this.$slots.action
|
|
720
729
|
}))
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const vue_1 = require("vue");
|
|
4
4
|
const vdirs_1 = require("vdirs");
|
|
5
|
+
const empty_1 = require("../../empty");
|
|
5
6
|
const _internal_1 = require("../../_internal");
|
|
6
7
|
const CascaderSubmenu_1 = require("./CascaderSubmenu");
|
|
7
8
|
const interface_1 = require("./interface");
|
|
@@ -101,23 +102,24 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
101
102
|
render() {
|
|
102
103
|
const { submenuInstRefs, mergedClsPrefix, $slots } = this;
|
|
103
104
|
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
104
|
-
default: () =>
|
|
105
|
-
|
|
105
|
+
default: () => {
|
|
106
|
+
if (!this.show)
|
|
107
|
+
return null;
|
|
108
|
+
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
|
|
106
109
|
'--col-count': this.menuModel.length
|
|
107
110
|
} },
|
|
108
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
109
|
-
this.menuModel.map((submenuOptions, index) => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
$slots.action ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
|
|
111
|
+
this.menuModel[0].length ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
112
|
+
this.menuModel.map((submenuOptions, index) => ((0, vue_1.h)(CascaderSubmenu_1.default, { ref: ((instance) => {
|
|
113
|
+
if (instance) {
|
|
114
|
+
submenuInstRefs[index] = instance;
|
|
115
|
+
}
|
|
116
|
+
}), key: index, tmNodes: submenuOptions, depth: index + 1 }))),
|
|
117
|
+
(0, vue_1.h)(_internal_1.NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, (0, vue_1.renderSlot)($slots, 'empty', undefined, () => [(0, vue_1.h)(empty_1.NEmpty, null)]))),
|
|
118
|
+
$slots.action && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
|
|
117
119
|
default: $slots.action
|
|
118
|
-
}))
|
|
119
|
-
(0, vue_1.h)(focus_detector_1.default, { onFocus: this.onTabout })), [[vdirs_1.clickoutside, this.handleClickOutside]])
|
|
120
|
-
|
|
120
|
+
})),
|
|
121
|
+
(0, vue_1.h)(focus_detector_1.default, { onFocus: this.onTabout })), [[vdirs_1.clickoutside, this.handleClickOutside]]);
|
|
122
|
+
}
|
|
121
123
|
}));
|
|
122
124
|
}
|
|
123
125
|
});
|
|
@@ -157,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
157
|
optionOpacityDisabled: string;
|
|
158
158
|
optionCheckColor: string;
|
|
159
159
|
optionColorPending: string;
|
|
160
|
+
optionColorActive: string;
|
|
160
161
|
actionTextColor: string;
|
|
161
162
|
loadingColor: string;
|
|
162
163
|
height: string;
|
|
@@ -189,6 +190,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
190
|
}, any>;
|
|
190
191
|
}>;
|
|
191
192
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
193
|
+
fontSizeTiny: string;
|
|
194
|
+
fontSizeSmall: string;
|
|
195
|
+
fontSizeMedium: string;
|
|
196
|
+
fontSizeLarge: string;
|
|
197
|
+
heightTiny: string;
|
|
198
|
+
heightSmall: string;
|
|
199
|
+
heightMedium: string;
|
|
200
|
+
heightLarge: string;
|
|
192
201
|
borderRadius: string;
|
|
193
202
|
textColor: string;
|
|
194
203
|
textColorDisabled: string;
|
|
@@ -229,16 +238,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
238
|
clearColor: string;
|
|
230
239
|
clearColorHover: string;
|
|
231
240
|
clearColorPressed: string;
|
|
232
|
-
heightTiny: string;
|
|
233
|
-
heightSmall: string;
|
|
234
|
-
heightMedium: string;
|
|
235
|
-
heightLarge: string;
|
|
236
|
-
fontSizeTiny: string;
|
|
237
|
-
fontSizeSmall: string;
|
|
238
|
-
fontSizeMedium: string;
|
|
239
|
-
fontSizeLarge: string;
|
|
240
241
|
paddingSingle: string;
|
|
241
242
|
clearSize: string;
|
|
243
|
+
arrowSize: string;
|
|
242
244
|
}, {
|
|
243
245
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
244
246
|
fontSize: string;
|
|
@@ -164,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
164
|
optionOpacityDisabled: string;
|
|
165
165
|
optionCheckColor: string;
|
|
166
166
|
optionColorPending: string;
|
|
167
|
+
optionColorActive: string;
|
|
167
168
|
actionTextColor: string;
|
|
168
169
|
loadingColor: string;
|
|
169
170
|
height: string;
|
|
@@ -196,6 +197,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
197
|
}, any>;
|
|
197
198
|
}>;
|
|
198
199
|
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
200
|
+
fontSizeTiny: string;
|
|
201
|
+
fontSizeSmall: string;
|
|
202
|
+
fontSizeMedium: string;
|
|
203
|
+
fontSizeLarge: string;
|
|
204
|
+
heightTiny: string;
|
|
205
|
+
heightSmall: string;
|
|
206
|
+
heightMedium: string;
|
|
207
|
+
heightLarge: string;
|
|
199
208
|
borderRadius: string;
|
|
200
209
|
textColor: string;
|
|
201
210
|
textColorDisabled: string;
|
|
@@ -236,16 +245,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
245
|
clearColor: string;
|
|
237
246
|
clearColorHover: string;
|
|
238
247
|
clearColorPressed: string;
|
|
239
|
-
heightTiny: string;
|
|
240
|
-
heightSmall: string;
|
|
241
|
-
heightMedium: string;
|
|
242
|
-
heightLarge: string;
|
|
243
|
-
fontSizeTiny: string;
|
|
244
|
-
fontSizeSmall: string;
|
|
245
|
-
fontSizeMedium: string;
|
|
246
|
-
fontSizeLarge: string;
|
|
247
248
|
paddingSingle: string;
|
|
248
249
|
clearSize: string;
|
|
250
|
+
arrowSize: string;
|
|
249
251
|
}, {
|
|
250
252
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
251
253
|
fontSize: string;
|