naive-ui 2.18.0 → 2.19.1
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 +8 -0
- 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 -0
- package/es/_internal/selection/styles/_common.js +2 -1
- package/es/_internal/selection/styles/light.d.ts +2 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/naive/mutable.d.ts +2 -2
- 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 +20 -0
- package/es/cascader/src/Cascader.js +28 -19
- package/es/cascader/src/CascaderMenu.js +17 -15
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- 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 +2 -0
- 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 +22 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Cell.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +4 -0
- package/es/data-table/styles/light.d.ts +2 -0
- 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/Dialog.d.ts +4 -16
- package/es/dialog/src/Dialog.js +2 -8
- package/es/dialog/src/DialogEnvironment.d.ts +28 -36
- package/es/dialog/src/DialogEnvironment.js +2 -2
- package/es/dialog/src/DialogProvider.d.ts +18 -15
- package/es/dialog/src/DialogProvider.js +2 -1
- 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/grid/src/GridItem.d.ts +2 -2
- package/es/grid/src/GridItem.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +5 -0
- package/es/input-number/src/InputNumber.js +9 -8
- 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/zhCN.js +1 -1
- 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 +7 -8
- package/es/modal/src/Modal.d.ts +40 -71
- package/es/modal/src/Modal.js +18 -39
- package/es/modal/src/presetProps.d.ts +4 -9
- 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 +23 -1
- package/es/pagination/styles/light.d.ts +2 -0
- 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 +31 -3
- package/es/select/src/Select.js +55 -56
- package/es/select/src/interface.d.ts +2 -2
- package/es/select/styles/light.d.ts +2 -0
- 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/steps/src/Steps.js +2 -2
- 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/timeline/src/Timeline.d.ts +67 -0
- package/es/timeline/src/Timeline.js +1 -1
- package/es/timeline/src/TimelineItem.d.ts +2 -0
- package/es/timeline/src/TimelineItem.js +11 -11
- package/es/timeline/src/styles/index.cssr.js +26 -17
- package/es/timeline/styles/_common.d.ts +2 -0
- package/es/timeline/styles/_common.js +3 -1
- package/es/timeline/styles/dark.js +1 -1
- package/es/timeline/styles/light.d.ts +7 -0
- package/es/timeline/styles/light.js +1 -1
- 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 +23 -1
- 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 +1 -0
- 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 +8 -0
- 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 -0
- package/lib/_internal/selection/styles/_common.js +2 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/naive/mutable.d.ts +2 -2
- 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 +20 -0
- package/lib/cascader/src/Cascader.js +28 -19
- package/lib/cascader/src/CascaderMenu.js +16 -14
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- 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 +2 -0
- 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 +22 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -0
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +4 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- 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/Dialog.d.ts +4 -16
- package/lib/dialog/src/Dialog.js +2 -8
- package/lib/dialog/src/DialogEnvironment.d.ts +28 -36
- package/lib/dialog/src/DialogEnvironment.js +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +18 -15
- package/lib/dialog/src/DialogProvider.js +2 -1
- 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/grid/src/GridItem.d.ts +2 -2
- package/lib/grid/src/GridItem.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +5 -0
- package/lib/input-number/src/InputNumber.js +9 -8
- 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/zhCN.js +1 -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 +7 -8
- package/lib/modal/src/Modal.d.ts +40 -71
- package/lib/modal/src/Modal.js +17 -38
- package/lib/modal/src/presetProps.d.ts +4 -9
- 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 +23 -1
- package/lib/pagination/styles/light.d.ts +2 -0
- 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 +31 -3
- package/lib/select/src/Select.js +55 -56
- package/lib/select/src/interface.d.ts +2 -2
- package/lib/select/styles/light.d.ts +2 -0
- 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/steps/src/Steps.js +1 -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/timeline/src/Timeline.d.ts +67 -0
- package/lib/timeline/src/Timeline.js +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +2 -0
- package/lib/timeline/src/TimelineItem.js +10 -10
- package/lib/timeline/src/styles/index.cssr.js +27 -18
- package/lib/timeline/styles/_common.d.ts +2 -0
- package/lib/timeline/styles/_common.js +3 -1
- package/lib/timeline/styles/dark.js +1 -1
- package/lib/timeline/styles/light.d.ts +7 -0
- package/lib/timeline/styles/light.js +1 -1
- 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 +23 -1
- 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 +1 -0
- 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 +8 -6
- package/web-types.json +248 -13
|
@@ -38,6 +38,9 @@ declare const props: {
|
|
|
38
38
|
readonly type: PropType<Key[]>;
|
|
39
39
|
readonly default: () => never[];
|
|
40
40
|
};
|
|
41
|
+
readonly indeterminateKeys: PropType<Key[]>;
|
|
42
|
+
readonly onUpdateIndeterminateKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
43
|
+
readonly 'onUpdate:indeterminateKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
41
44
|
readonly onUpdateExpandedKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
42
45
|
readonly 'onUpdate:expandedKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
43
46
|
readonly bordered: {
|
|
@@ -211,6 +214,7 @@ declare const props: {
|
|
|
211
214
|
fontSizeLarge: string;
|
|
212
215
|
paddingSingle: string;
|
|
213
216
|
clearSize: string;
|
|
217
|
+
arrowSize: string;
|
|
214
218
|
}, {
|
|
215
219
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
216
220
|
fontSize: string;
|
|
@@ -344,6 +348,7 @@ declare const props: {
|
|
|
344
348
|
fontSizeLarge: string;
|
|
345
349
|
paddingSingle: string;
|
|
346
350
|
clearSize: string;
|
|
351
|
+
arrowSize: string;
|
|
347
352
|
}, {
|
|
348
353
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
349
354
|
fontSize: string;
|
|
@@ -477,6 +482,7 @@ declare const props: {
|
|
|
477
482
|
fontSizeLarge: string;
|
|
478
483
|
paddingSingle: string;
|
|
479
484
|
clearSize: string;
|
|
485
|
+
arrowSize: string;
|
|
480
486
|
}, {
|
|
481
487
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
482
488
|
fontSize: string;
|
|
@@ -529,6 +535,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
529
535
|
readonly type: PropType<Key[]>;
|
|
530
536
|
readonly default: () => never[];
|
|
531
537
|
};
|
|
538
|
+
readonly indeterminateKeys: PropType<Key[]>;
|
|
539
|
+
readonly onUpdateIndeterminateKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
540
|
+
readonly 'onUpdate:indeterminateKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
532
541
|
readonly onUpdateExpandedKeys: PropType<MaybeArray<(value: Key[]) => void>>;
|
|
533
542
|
readonly 'onUpdate:expandedKeys': PropType<MaybeArray<(value: Key[]) => void>>;
|
|
534
543
|
readonly bordered: {
|
|
@@ -702,6 +711,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
702
711
|
fontSizeLarge: string;
|
|
703
712
|
paddingSingle: string;
|
|
704
713
|
clearSize: string;
|
|
714
|
+
arrowSize: string;
|
|
705
715
|
}, {
|
|
706
716
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
707
717
|
fontSize: string;
|
|
@@ -835,6 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
835
845
|
fontSizeLarge: string;
|
|
836
846
|
paddingSingle: string;
|
|
837
847
|
clearSize: string;
|
|
848
|
+
arrowSize: string;
|
|
838
849
|
}, {
|
|
839
850
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
840
851
|
fontSize: string;
|
|
@@ -968,6 +979,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
968
979
|
fontSizeLarge: string;
|
|
969
980
|
paddingSingle: string;
|
|
970
981
|
clearSize: string;
|
|
982
|
+
arrowSize: string;
|
|
971
983
|
}, {
|
|
972
984
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
973
985
|
fontSize: string;
|
|
@@ -1029,8 +1041,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1029
1041
|
handleMenuLeave: () => void;
|
|
1030
1042
|
handleTriggerClick: () => void;
|
|
1031
1043
|
handleMenuClickoutside: (e: MouseEvent) => void;
|
|
1032
|
-
handleUpdateSelectedKeys: (keys: Key[]) => void;
|
|
1033
1044
|
handleUpdateCheckedKeys: (keys: Key[]) => void;
|
|
1045
|
+
handleUpdateIndeterminateKeys: (keys: Key[]) => void;
|
|
1034
1046
|
handleTriggerFocus: (e: FocusEvent) => void;
|
|
1035
1047
|
handleTriggerBlur: (e: FocusEvent) => void;
|
|
1036
1048
|
handleMenuFocusin: (e: FocusEvent) => void;
|
|
@@ -1266,6 +1278,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1266
1278
|
fontSizeLarge: string;
|
|
1267
1279
|
paddingSingle: string;
|
|
1268
1280
|
clearSize: string;
|
|
1281
|
+
arrowSize: string;
|
|
1269
1282
|
}, {
|
|
1270
1283
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1271
1284
|
fontSize: string;
|
|
@@ -1360,6 +1373,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1360
1373
|
readonly labelField?: unknown;
|
|
1361
1374
|
readonly childrenField?: unknown;
|
|
1362
1375
|
readonly defaultExpandedKeys?: unknown;
|
|
1376
|
+
readonly indeterminateKeys?: unknown;
|
|
1377
|
+
readonly onUpdateIndeterminateKeys?: unknown;
|
|
1378
|
+
readonly 'onUpdate:indeterminateKeys'?: unknown;
|
|
1363
1379
|
readonly onUpdateExpandedKeys?: unknown;
|
|
1364
1380
|
readonly 'onUpdate:expandedKeys'?: unknown;
|
|
1365
1381
|
readonly bordered?: unknown;
|
|
@@ -1534,6 +1550,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1534
1550
|
fontSizeLarge: string;
|
|
1535
1551
|
paddingSingle: string;
|
|
1536
1552
|
clearSize: string;
|
|
1553
|
+
arrowSize: string;
|
|
1537
1554
|
}, {
|
|
1538
1555
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1539
1556
|
fontSize: string;
|
|
@@ -1667,6 +1684,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1667
1684
|
fontSizeLarge: string;
|
|
1668
1685
|
paddingSingle: string;
|
|
1669
1686
|
clearSize: string;
|
|
1687
|
+
arrowSize: string;
|
|
1670
1688
|
}, {
|
|
1671
1689
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1672
1690
|
fontSize: string;
|
|
@@ -1800,6 +1818,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1800
1818
|
fontSizeLarge: string;
|
|
1801
1819
|
paddingSingle: string;
|
|
1802
1820
|
clearSize: string;
|
|
1821
|
+
arrowSize: string;
|
|
1803
1822
|
}, {
|
|
1804
1823
|
Popover: import("../../_mixins").Theme<"Popover", {
|
|
1805
1824
|
fontSize: string;
|
|
@@ -1826,6 +1845,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1826
1845
|
expandedKeys?: Key[] | undefined;
|
|
1827
1846
|
"onUpdate:expandedKeys"?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1828
1847
|
onUpdateExpandedKeys?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1848
|
+
indeterminateKeys?: Key[] | undefined;
|
|
1849
|
+
onUpdateIndeterminateKeys?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1850
|
+
"onUpdate:indeterminateKeys"?: MaybeArray<(value: Key[]) => void> | undefined;
|
|
1829
1851
|
}>, {
|
|
1830
1852
|
show: boolean | undefined;
|
|
1831
1853
|
separator: string;
|
|
@@ -117,7 +117,7 @@ export default defineComponent({
|
|
|
117
117
|
? initMergedValue[initMergedValue.length - 1]
|
|
118
118
|
: null);
|
|
119
119
|
const mergedCascadeRef = computed(() => {
|
|
120
|
-
return props.multiple && props.cascade;
|
|
120
|
+
return props.multiple && props.cascade && props.checkable;
|
|
121
121
|
});
|
|
122
122
|
// The same logic as tree, now it's not that complex so I don't extract a
|
|
123
123
|
// function to reuse it.
|
|
@@ -136,21 +136,9 @@ export default defineComponent({
|
|
|
136
136
|
const treeSelectedKeysRef = computed(() => {
|
|
137
137
|
if (props.checkable)
|
|
138
138
|
return [];
|
|
139
|
-
|
|
140
|
-
const { multiple } = props;
|
|
141
|
-
return Array.isArray(mergedValue)
|
|
142
|
-
? multiple
|
|
143
|
-
? mergedValue
|
|
144
|
-
: []
|
|
145
|
-
: multiple
|
|
146
|
-
? []
|
|
147
|
-
: mergedValue === null
|
|
148
|
-
? []
|
|
149
|
-
: [mergedValue];
|
|
139
|
+
return treeCheckedKeysRef.value;
|
|
150
140
|
});
|
|
151
141
|
const treeCheckedKeysRef = computed(() => {
|
|
152
|
-
if (!props.checkable)
|
|
153
|
-
return [];
|
|
154
142
|
const { value: mergedValue } = mergedValueRef;
|
|
155
143
|
if (props.multiple) {
|
|
156
144
|
if (Array.isArray(mergedValue))
|
|
@@ -226,16 +214,26 @@ export default defineComponent({
|
|
|
226
214
|
call(_onUpdateShow, value);
|
|
227
215
|
uncontrolledShowRef.value = value;
|
|
228
216
|
}
|
|
229
|
-
function doUpdateValue(value) {
|
|
217
|
+
function doUpdateValue(value, option) {
|
|
230
218
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
|
|
231
219
|
if (onUpdateValue)
|
|
232
|
-
call(onUpdateValue, value);
|
|
233
|
-
if (_onUpdateValue)
|
|
234
|
-
call(_onUpdateValue, value);
|
|
220
|
+
call(onUpdateValue, value, option);
|
|
221
|
+
if (_onUpdateValue) {
|
|
222
|
+
call(_onUpdateValue, value, option);
|
|
223
|
+
}
|
|
235
224
|
uncontrolledValueRef.value = value;
|
|
236
225
|
nTriggerFormInput();
|
|
237
226
|
nTriggerFormChange();
|
|
238
227
|
}
|
|
228
|
+
function doUpdateIndeterminateKeys(value, option) {
|
|
229
|
+
const { onUpdateIndeterminateKeys, 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys } = props;
|
|
230
|
+
if (onUpdateIndeterminateKeys) {
|
|
231
|
+
call(onUpdateIndeterminateKeys, value, option);
|
|
232
|
+
}
|
|
233
|
+
if (_onUpdateIndeterminateKeys) {
|
|
234
|
+
call(_onUpdateIndeterminateKeys, value, option);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
239
237
|
function doUpdateExpandedKeys(keys) {
|
|
240
238
|
const { onUpdateExpandedKeys, 'onUpdate:expandedKeys': _onUpdateExpandedKeys } = props;
|
|
241
239
|
if (onUpdateExpandedKeys)
|
|
@@ -294,16 +292,19 @@ export default defineComponent({
|
|
|
294
292
|
}
|
|
295
293
|
}
|
|
296
294
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
295
|
+
function getOptionsByKeys(keys) {
|
|
296
|
+
const { value: { getNode } } = dataTreeMateRef;
|
|
297
|
+
return keys.map((key) => { var _a; return ((_a = getNode(key)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; });
|
|
298
|
+
}
|
|
299
|
+
function handleUpdateCheckedKeys(keys) {
|
|
300
|
+
const options = getOptionsByKeys(keys);
|
|
302
301
|
if (props.multiple) {
|
|
303
|
-
doUpdateValue(keys);
|
|
302
|
+
doUpdateValue(keys, options);
|
|
304
303
|
}
|
|
305
304
|
else {
|
|
306
|
-
|
|
305
|
+
keys.length
|
|
306
|
+
? doUpdateValue(keys[0], options[0] || null)
|
|
307
|
+
: doUpdateValue(null, null);
|
|
307
308
|
closeMenu();
|
|
308
309
|
if (!props.filterable) {
|
|
309
310
|
// Currently it is not necessary. However if there is an action slot,
|
|
@@ -316,14 +317,9 @@ export default defineComponent({
|
|
|
316
317
|
patternRef.value = '';
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
doUpdateValue(keys);
|
|
323
|
-
if (props.filterable) {
|
|
324
|
-
focusSelectionInput();
|
|
325
|
-
patternRef.value = '';
|
|
326
|
-
}
|
|
320
|
+
function handleUpdateIndeterminateKeys(keys) {
|
|
321
|
+
if (props.checkable) {
|
|
322
|
+
doUpdateIndeterminateKeys(keys, getOptionsByKeys(keys));
|
|
327
323
|
}
|
|
328
324
|
}
|
|
329
325
|
function handleTriggerFocus(e) {
|
|
@@ -365,10 +361,10 @@ export default defineComponent({
|
|
|
365
361
|
closeMenu();
|
|
366
362
|
}
|
|
367
363
|
if (multiple) {
|
|
368
|
-
doUpdateValue([]);
|
|
364
|
+
doUpdateValue([], []);
|
|
369
365
|
}
|
|
370
366
|
else {
|
|
371
|
-
doUpdateValue(null);
|
|
367
|
+
doUpdateValue(null, null);
|
|
372
368
|
}
|
|
373
369
|
}
|
|
374
370
|
function handleDeleteOption(option) {
|
|
@@ -381,12 +377,12 @@ export default defineComponent({
|
|
|
381
377
|
const { checkedKeys } = dataTreeMateRef.value.uncheck(option.value, mergedValue, {
|
|
382
378
|
cascade: mergedCascadeRef.value
|
|
383
379
|
});
|
|
384
|
-
doUpdateValue(checkedKeys);
|
|
380
|
+
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys));
|
|
385
381
|
}
|
|
386
382
|
else {
|
|
387
383
|
const nextValue = Array.from(mergedValue);
|
|
388
384
|
nextValue.splice(index, 1);
|
|
389
|
-
doUpdateValue(nextValue);
|
|
385
|
+
doUpdateValue(nextValue, getOptionsByKeys(nextValue));
|
|
390
386
|
}
|
|
391
387
|
}
|
|
392
388
|
}
|
|
@@ -504,8 +500,8 @@ export default defineComponent({
|
|
|
504
500
|
handleMenuLeave,
|
|
505
501
|
handleTriggerClick,
|
|
506
502
|
handleMenuClickoutside,
|
|
507
|
-
handleUpdateSelectedKeys,
|
|
508
503
|
handleUpdateCheckedKeys,
|
|
504
|
+
handleUpdateIndeterminateKeys,
|
|
509
505
|
handleTriggerFocus,
|
|
510
506
|
handleTriggerBlur,
|
|
511
507
|
handleMenuFocusin,
|
|
@@ -545,8 +541,8 @@ export default defineComponent({
|
|
|
545
541
|
return null;
|
|
546
542
|
const { mergedClsPrefix, filteredTreeInfo, checkable, multiple } = this;
|
|
547
543
|
return withDirectives(h("div", { class: `${mergedClsPrefix}-tree-select-menu`, ref: "menuElRef", style: this.cssVars, tabindex: 0, onMousedown: this.handleMenuMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown, onFocusin: this.handleMenuFocusin, onFocusout: this.handleMenuFocusout },
|
|
548
|
-
filteredTreeInfo.filteredTree.length ? (h(NTree, { ref: "treeInstRef", blockLine: true, animated: false, data: filteredTreeInfo.filteredTree, cancelable: multiple, labelField: this.labelField, theme: mergedTheme.peers.Tree, themeOverrides: mergedTheme.peerOverrides.Tree, defaultExpandAll: this.defaultExpandAll, defaultExpandedKeys: this.defaultExpandedKeys, expandedKeys: this.mergedExpandedKeys, checkedKeys: this.treeCheckedKeys, selectedKeys: this.treeSelectedKeys, checkable: checkable,
|
|
549
|
-
this.virtualScroll, internalDataTreeMate: this.dataTreeMate, internalDisplayTreeMate: this.displayTreeMate, internalHighlightKeySet: filteredTreeInfo.highlightKeySet,
|
|
544
|
+
filteredTreeInfo.filteredTree.length ? (h(NTree, { ref: "treeInstRef", blockLine: true, animated: false, data: filteredTreeInfo.filteredTree, cancelable: multiple, labelField: this.labelField, theme: mergedTheme.peers.Tree, themeOverrides: mergedTheme.peerOverrides.Tree, defaultExpandAll: this.defaultExpandAll, defaultExpandedKeys: this.defaultExpandedKeys, expandedKeys: this.mergedExpandedKeys, checkedKeys: this.treeCheckedKeys, selectedKeys: this.treeSelectedKeys, checkable: checkable, checkStrategy: this.checkStrategy, cascade: this.mergedCascade, leafOnly: this.leafOnly, multiple: this.multiple, virtualScroll: this.consistentMenuWidth &&
|
|
545
|
+
this.virtualScroll, internalDataTreeMate: this.dataTreeMate, internalDisplayTreeMate: this.displayTreeMate, internalHighlightKeySet: filteredTreeInfo.highlightKeySet, internalUnifySelectCheck: true, internalScrollable: true, internalScrollablePadding: this.menuPadding, internalFocusable: false, internalCheckboxFocusable: false, onUpdateCheckedKeys: this.handleUpdateCheckedKeys, onUpdateIndeterminateKeys: this.handleUpdateIndeterminateKeys, onUpdateExpandedKeys: this.doUpdateExpandedKeys })) : (h("div", { class: `${mergedClsPrefix}-tree-select-menu__empty` },
|
|
550
546
|
h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty }))),
|
|
551
547
|
h(NBaseFocusDetector, { onFocus: this.handleTabOut })), [[clickoutside, this.handleMenuClickoutside]]);
|
|
552
548
|
}
|
|
@@ -6,8 +6,8 @@ export declare type TreeSelectOption = Omit<TreeOptionBase, 'checkboxDisabled' |
|
|
|
6
6
|
[k: string]: unknown;
|
|
7
7
|
};
|
|
8
8
|
export declare type TreeSelectTmNode = TreeNode<TreeSelectOption>;
|
|
9
|
-
export declare type OnUpdateValue = (value: string & number & (string | number) & string[] & number[] & Array<string | number> & null) => void;
|
|
10
|
-
export declare type OnUpdateValueImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null) => void;
|
|
9
|
+
export declare type OnUpdateValue = (value: string & number & (string | number) & string[] & number[] & Array<string | number> & null, option: TreeSelectOption & null & TreeSelectOption[] & Array<TreeSelectOption | null>) => void;
|
|
10
|
+
export declare type OnUpdateValueImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>) => void;
|
|
11
11
|
export declare type Value = string | number | Array<string | number> | null;
|
|
12
12
|
export interface TreeSelectInjection {
|
|
13
13
|
pendingNodeKeyRef: Ref<string | number | null>;
|
|
@@ -123,6 +123,7 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
123
123
|
fontSizeLarge: string;
|
|
124
124
|
paddingSingle: string;
|
|
125
125
|
clearSize: string;
|
|
126
|
+
arrowSize: string;
|
|
126
127
|
}, {
|
|
127
128
|
Popover: import("../../_mixins/use-theme").Theme<"Popover", {
|
|
128
129
|
fontSize: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
declare const blockquoteProps: {
|
|
3
|
-
readonly alignText:
|
|
4
|
-
readonly type: BooleanConstructor;
|
|
5
|
-
readonly default: false;
|
|
6
|
-
};
|
|
3
|
+
readonly alignText: BooleanConstructor;
|
|
7
4
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
8
5
|
aTextColor: string;
|
|
9
6
|
blockquoteTextColor: string;
|
|
@@ -205,10 +202,7 @@ declare const blockquoteProps: {
|
|
|
205
202
|
};
|
|
206
203
|
export declare type BlockquoteProps = ExtractPublicPropTypes<typeof blockquoteProps>;
|
|
207
204
|
declare const _default: import("vue").DefineComponent<{
|
|
208
|
-
readonly alignText:
|
|
209
|
-
readonly type: BooleanConstructor;
|
|
210
|
-
readonly default: false;
|
|
211
|
-
};
|
|
205
|
+
readonly alignText: BooleanConstructor;
|
|
212
206
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
213
207
|
aTextColor: string;
|
|
214
208
|
blockquoteTextColor: string;
|
|
@@ -2,10 +2,7 @@ import { h, defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { useConfig, useTheme } from '../../_mixins';
|
|
3
3
|
import style from './styles/blockquote.cssr';
|
|
4
4
|
import { typographyLight } from '../styles';
|
|
5
|
-
const blockquoteProps = Object.assign(Object.assign({}, useTheme.props), { alignText:
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: false
|
|
8
|
-
} });
|
|
5
|
+
const blockquoteProps = Object.assign(Object.assign({}, useTheme.props), { alignText: Boolean });
|
|
9
6
|
export default defineComponent({
|
|
10
7
|
name: 'Blockquote',
|
|
11
8
|
props: blockquoteProps,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
declare const olProps: {
|
|
3
|
-
alignText:
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
3
|
+
alignText: BooleanConstructor;
|
|
7
4
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
8
5
|
aTextColor: string;
|
|
9
6
|
blockquoteTextColor: string;
|
|
@@ -205,10 +202,7 @@ declare const olProps: {
|
|
|
205
202
|
};
|
|
206
203
|
export declare type OlProps = ExtractPublicPropTypes<typeof olProps>;
|
|
207
204
|
declare const _default: import("vue").DefineComponent<{
|
|
208
|
-
alignText:
|
|
209
|
-
type: BooleanConstructor;
|
|
210
|
-
default: boolean;
|
|
211
|
-
};
|
|
205
|
+
alignText: BooleanConstructor;
|
|
212
206
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
213
207
|
aTextColor: string;
|
|
214
208
|
blockquoteTextColor: string;
|
package/es/typography/src/ol.js
CHANGED
|
@@ -2,10 +2,7 @@ import { h, defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { useConfig, useTheme } from '../../_mixins';
|
|
3
3
|
import { typographyLight } from '../styles';
|
|
4
4
|
import style from './styles/list.cssr';
|
|
5
|
-
const olProps = Object.assign(Object.assign({}, useTheme.props), { alignText:
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: false
|
|
8
|
-
} });
|
|
5
|
+
const olProps = Object.assign(Object.assign({}, useTheme.props), { alignText: Boolean });
|
|
9
6
|
export default defineComponent({
|
|
10
7
|
name: 'Ol',
|
|
11
8
|
props: olProps,
|
package/es/typography/src/p.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
declare const pProps: {
|
|
4
|
-
depth: PropType<2 | 1 | 3 | "1" | "2" | "3"
|
|
4
|
+
depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
|
|
5
5
|
theme: PropType<import("../../_mixins").Theme<"Typography", {
|
|
6
6
|
aTextColor: string;
|
|
7
7
|
blockquoteTextColor: string;
|
|
@@ -203,7 +203,7 @@ declare const pProps: {
|
|
|
203
203
|
};
|
|
204
204
|
export declare type PProps = ExtractPublicPropTypes<typeof pProps>;
|
|
205
205
|
declare const _default: import("vue").DefineComponent<{
|
|
206
|
-
depth: PropType<2 | 1 | 3 | "1" | "2" | "3"
|
|
206
|
+
depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
|
|
207
207
|
theme: PropType<import("../../_mixins").Theme<"Typography", {
|
|
208
208
|
aTextColor: string;
|
|
209
209
|
blockquoteTextColor: string;
|
package/es/typography/src/p.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h, defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { useConfig, useTheme } from '../../_mixins';
|
|
3
3
|
import { typographyLight } from '../styles';
|
|
4
4
|
import style from './styles/p.cssr';
|
|
5
|
-
const pProps = Object.assign(Object.assign({}, useTheme.props), { depth: String });
|
|
5
|
+
const pProps = Object.assign(Object.assign({}, useTheme.props), { depth: [String, Number] });
|
|
6
6
|
export default defineComponent({
|
|
7
7
|
name: 'P',
|
|
8
8
|
props: pProps,
|
|
@@ -1,38 +1,17 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
declare const textProps: {
|
|
4
|
-
readonly code:
|
|
5
|
-
readonly type: BooleanConstructor;
|
|
6
|
-
readonly default: false;
|
|
7
|
-
};
|
|
4
|
+
readonly code: BooleanConstructor;
|
|
8
5
|
readonly type: {
|
|
9
6
|
readonly type: StringConstructor;
|
|
10
7
|
readonly default: "default";
|
|
11
8
|
};
|
|
12
|
-
readonly delete:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
readonly default: false;
|
|
19
|
-
};
|
|
20
|
-
readonly italic: {
|
|
21
|
-
readonly type: BooleanConstructor;
|
|
22
|
-
readonly default: false;
|
|
23
|
-
};
|
|
24
|
-
readonly underline: {
|
|
25
|
-
readonly type: BooleanConstructor;
|
|
26
|
-
readonly default: false;
|
|
27
|
-
};
|
|
28
|
-
readonly depth: {
|
|
29
|
-
readonly type: PropType<2 | 1 | 3 | "1" | "2" | "3" | undefined>;
|
|
30
|
-
readonly default: undefined;
|
|
31
|
-
};
|
|
32
|
-
readonly tag: {
|
|
33
|
-
readonly type: StringConstructor;
|
|
34
|
-
readonly default: undefined;
|
|
35
|
-
};
|
|
9
|
+
readonly delete: BooleanConstructor;
|
|
10
|
+
readonly strong: BooleanConstructor;
|
|
11
|
+
readonly italic: BooleanConstructor;
|
|
12
|
+
readonly underline: BooleanConstructor;
|
|
13
|
+
readonly depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
|
|
14
|
+
readonly tag: StringConstructor;
|
|
36
15
|
readonly as: {
|
|
37
16
|
readonly type: StringConstructor;
|
|
38
17
|
readonly validator: () => boolean;
|
|
@@ -239,38 +218,17 @@ declare const textProps: {
|
|
|
239
218
|
};
|
|
240
219
|
export declare type TextProps = ExtractPublicPropTypes<typeof textProps>;
|
|
241
220
|
declare const _default: import("vue").DefineComponent<{
|
|
242
|
-
readonly code:
|
|
243
|
-
readonly type: BooleanConstructor;
|
|
244
|
-
readonly default: false;
|
|
245
|
-
};
|
|
221
|
+
readonly code: BooleanConstructor;
|
|
246
222
|
readonly type: {
|
|
247
223
|
readonly type: StringConstructor;
|
|
248
224
|
readonly default: "default";
|
|
249
225
|
};
|
|
250
|
-
readonly delete:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
readonly
|
|
255
|
-
|
|
256
|
-
readonly default: false;
|
|
257
|
-
};
|
|
258
|
-
readonly italic: {
|
|
259
|
-
readonly type: BooleanConstructor;
|
|
260
|
-
readonly default: false;
|
|
261
|
-
};
|
|
262
|
-
readonly underline: {
|
|
263
|
-
readonly type: BooleanConstructor;
|
|
264
|
-
readonly default: false;
|
|
265
|
-
};
|
|
266
|
-
readonly depth: {
|
|
267
|
-
readonly type: PropType<2 | 1 | 3 | "1" | "2" | "3" | undefined>;
|
|
268
|
-
readonly default: undefined;
|
|
269
|
-
};
|
|
270
|
-
readonly tag: {
|
|
271
|
-
readonly type: StringConstructor;
|
|
272
|
-
readonly default: undefined;
|
|
273
|
-
};
|
|
226
|
+
readonly delete: BooleanConstructor;
|
|
227
|
+
readonly strong: BooleanConstructor;
|
|
228
|
+
readonly italic: BooleanConstructor;
|
|
229
|
+
readonly underline: BooleanConstructor;
|
|
230
|
+
readonly depth: PropType<2 | 1 | 3 | "1" | "2" | "3">;
|
|
231
|
+
readonly tag: StringConstructor;
|
|
274
232
|
readonly as: {
|
|
275
233
|
readonly type: StringConstructor;
|
|
276
234
|
readonly validator: () => boolean;
|
|
@@ -711,12 +669,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
711
669
|
}>, {
|
|
712
670
|
type: string;
|
|
713
671
|
delete: boolean;
|
|
714
|
-
tag: string;
|
|
715
672
|
italic: boolean;
|
|
716
673
|
underline: boolean;
|
|
717
674
|
as: string;
|
|
718
675
|
code: boolean;
|
|
719
676
|
strong: boolean;
|
|
720
|
-
depth: 2 | 1 | 3 | "1" | "2" | "3" | undefined;
|
|
721
677
|
}>;
|
|
722
678
|
export default _default;
|
|
@@ -4,31 +4,10 @@ import { useConfig, useTheme } from '../../_mixins';
|
|
|
4
4
|
import { warn, createKey } from '../../_utils';
|
|
5
5
|
import { typographyLight } from '../styles';
|
|
6
6
|
import style from './styles/text.cssr';
|
|
7
|
-
const textProps = Object.assign(Object.assign({}, useTheme.props), { code: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: false
|
|
10
|
-
}, type: {
|
|
7
|
+
const textProps = Object.assign(Object.assign({}, useTheme.props), { code: Boolean, type: {
|
|
11
8
|
type: String,
|
|
12
9
|
default: 'default'
|
|
13
|
-
}, delete:
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: false
|
|
16
|
-
}, strong: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: false
|
|
19
|
-
}, italic: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
}, underline: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
}, depth: {
|
|
26
|
-
type: [String, Number],
|
|
27
|
-
default: undefined
|
|
28
|
-
}, tag: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: undefined
|
|
31
|
-
},
|
|
10
|
+
}, delete: Boolean, strong: Boolean, italic: Boolean, underline: Boolean, depth: [String, Number], tag: String,
|
|
32
11
|
// deprecated
|
|
33
12
|
as: {
|
|
34
13
|
type: String,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
declare const ulProps: {
|
|
3
|
-
readonly alignText:
|
|
4
|
-
readonly type: BooleanConstructor;
|
|
5
|
-
readonly default: false;
|
|
6
|
-
};
|
|
3
|
+
readonly alignText: BooleanConstructor;
|
|
7
4
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
8
5
|
aTextColor: string;
|
|
9
6
|
blockquoteTextColor: string;
|
|
@@ -205,10 +202,7 @@ declare const ulProps: {
|
|
|
205
202
|
};
|
|
206
203
|
export declare type UlProps = ExtractPublicPropTypes<typeof ulProps>;
|
|
207
204
|
declare const _default: import("vue").DefineComponent<{
|
|
208
|
-
readonly alignText:
|
|
209
|
-
readonly type: BooleanConstructor;
|
|
210
|
-
readonly default: false;
|
|
211
|
-
};
|
|
205
|
+
readonly alignText: BooleanConstructor;
|
|
212
206
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
213
207
|
aTextColor: string;
|
|
214
208
|
blockquoteTextColor: string;
|
package/es/typography/src/ul.js
CHANGED
|
@@ -2,10 +2,7 @@ import { h, defineComponent, computed } from 'vue';
|
|
|
2
2
|
import { useConfig, useTheme } from '../../_mixins';
|
|
3
3
|
import { typographyLight } from '../styles';
|
|
4
4
|
import style from './styles/list.cssr';
|
|
5
|
-
const ulProps = Object.assign(Object.assign({}, useTheme.props), { alignText:
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: false
|
|
8
|
-
} });
|
|
5
|
+
const ulProps = Object.assign(Object.assign({}, useTheme.props), { alignText: Boolean });
|
|
9
6
|
export default defineComponent({
|
|
10
7
|
name: 'Ul',
|
|
11
8
|
props: ulProps,
|
package/es/upload/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as NUpload } from './src/Upload';
|
|
2
2
|
export { default as NUploadDragger } from './src/UploadDragger';
|
|
3
|
+
export { default as NUploadTrigger } from './src/UploadTrigger';
|
|
4
|
+
export { default as NUploadFileList } from './src/UploadFileList';
|
|
3
5
|
export type { UploadProps } from './src/Upload';
|
|
4
6
|
export type { uploadDraggerKey } from './src/UploadDragger';
|
|
5
7
|
export type { UploadInst, FileInfo as UploadFileInfo } from './src/interface';
|
package/es/upload/index.js
CHANGED