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;
|
|
@@ -119,7 +119,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
119
119
|
? initMergedValue[initMergedValue.length - 1]
|
|
120
120
|
: null);
|
|
121
121
|
const mergedCascadeRef = (0, vue_1.computed)(() => {
|
|
122
|
-
return props.multiple && props.cascade;
|
|
122
|
+
return props.multiple && props.cascade && props.checkable;
|
|
123
123
|
});
|
|
124
124
|
// The same logic as tree, now it's not that complex so I don't extract a
|
|
125
125
|
// function to reuse it.
|
|
@@ -138,21 +138,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
138
138
|
const treeSelectedKeysRef = (0, vue_1.computed)(() => {
|
|
139
139
|
if (props.checkable)
|
|
140
140
|
return [];
|
|
141
|
-
|
|
142
|
-
const { multiple } = props;
|
|
143
|
-
return Array.isArray(mergedValue)
|
|
144
|
-
? multiple
|
|
145
|
-
? mergedValue
|
|
146
|
-
: []
|
|
147
|
-
: multiple
|
|
148
|
-
? []
|
|
149
|
-
: mergedValue === null
|
|
150
|
-
? []
|
|
151
|
-
: [mergedValue];
|
|
141
|
+
return treeCheckedKeysRef.value;
|
|
152
142
|
});
|
|
153
143
|
const treeCheckedKeysRef = (0, vue_1.computed)(() => {
|
|
154
|
-
if (!props.checkable)
|
|
155
|
-
return [];
|
|
156
144
|
const { value: mergedValue } = mergedValueRef;
|
|
157
145
|
if (props.multiple) {
|
|
158
146
|
if (Array.isArray(mergedValue))
|
|
@@ -228,16 +216,26 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
228
216
|
(0, _utils_1.call)(_onUpdateShow, value);
|
|
229
217
|
uncontrolledShowRef.value = value;
|
|
230
218
|
}
|
|
231
|
-
function doUpdateValue(value) {
|
|
219
|
+
function doUpdateValue(value, option) {
|
|
232
220
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
|
|
233
221
|
if (onUpdateValue)
|
|
234
|
-
(0, _utils_1.call)(onUpdateValue, value);
|
|
235
|
-
if (_onUpdateValue)
|
|
236
|
-
(0, _utils_1.call)(_onUpdateValue, value);
|
|
222
|
+
(0, _utils_1.call)(onUpdateValue, value, option);
|
|
223
|
+
if (_onUpdateValue) {
|
|
224
|
+
(0, _utils_1.call)(_onUpdateValue, value, option);
|
|
225
|
+
}
|
|
237
226
|
uncontrolledValueRef.value = value;
|
|
238
227
|
nTriggerFormInput();
|
|
239
228
|
nTriggerFormChange();
|
|
240
229
|
}
|
|
230
|
+
function doUpdateIndeterminateKeys(value, option) {
|
|
231
|
+
const { onUpdateIndeterminateKeys, 'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys } = props;
|
|
232
|
+
if (onUpdateIndeterminateKeys) {
|
|
233
|
+
(0, _utils_1.call)(onUpdateIndeterminateKeys, value, option);
|
|
234
|
+
}
|
|
235
|
+
if (_onUpdateIndeterminateKeys) {
|
|
236
|
+
(0, _utils_1.call)(_onUpdateIndeterminateKeys, value, option);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
241
239
|
function doUpdateExpandedKeys(keys) {
|
|
242
240
|
const { onUpdateExpandedKeys, 'onUpdate:expandedKeys': _onUpdateExpandedKeys } = props;
|
|
243
241
|
if (onUpdateExpandedKeys)
|
|
@@ -296,16 +294,19 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
296
294
|
}
|
|
297
295
|
}
|
|
298
296
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
function getOptionsByKeys(keys) {
|
|
298
|
+
const { value: { getNode } } = dataTreeMateRef;
|
|
299
|
+
return keys.map((key) => { var _a; return ((_a = getNode(key)) === null || _a === void 0 ? void 0 : _a.rawNode) || null; });
|
|
300
|
+
}
|
|
301
|
+
function handleUpdateCheckedKeys(keys) {
|
|
302
|
+
const options = getOptionsByKeys(keys);
|
|
304
303
|
if (props.multiple) {
|
|
305
|
-
doUpdateValue(keys);
|
|
304
|
+
doUpdateValue(keys, options);
|
|
306
305
|
}
|
|
307
306
|
else {
|
|
308
|
-
|
|
307
|
+
keys.length
|
|
308
|
+
? doUpdateValue(keys[0], options[0] || null)
|
|
309
|
+
: doUpdateValue(null, null);
|
|
309
310
|
closeMenu();
|
|
310
311
|
if (!props.filterable) {
|
|
311
312
|
// Currently it is not necessary. However if there is an action slot,
|
|
@@ -318,14 +319,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
318
319
|
patternRef.value = '';
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
doUpdateValue(keys);
|
|
325
|
-
if (props.filterable) {
|
|
326
|
-
focusSelectionInput();
|
|
327
|
-
patternRef.value = '';
|
|
328
|
-
}
|
|
322
|
+
function handleUpdateIndeterminateKeys(keys) {
|
|
323
|
+
if (props.checkable) {
|
|
324
|
+
doUpdateIndeterminateKeys(keys, getOptionsByKeys(keys));
|
|
329
325
|
}
|
|
330
326
|
}
|
|
331
327
|
function handleTriggerFocus(e) {
|
|
@@ -367,10 +363,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
367
363
|
closeMenu();
|
|
368
364
|
}
|
|
369
365
|
if (multiple) {
|
|
370
|
-
doUpdateValue([]);
|
|
366
|
+
doUpdateValue([], []);
|
|
371
367
|
}
|
|
372
368
|
else {
|
|
373
|
-
doUpdateValue(null);
|
|
369
|
+
doUpdateValue(null, null);
|
|
374
370
|
}
|
|
375
371
|
}
|
|
376
372
|
function handleDeleteOption(option) {
|
|
@@ -383,12 +379,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
383
379
|
const { checkedKeys } = dataTreeMateRef.value.uncheck(option.value, mergedValue, {
|
|
384
380
|
cascade: mergedCascadeRef.value
|
|
385
381
|
});
|
|
386
|
-
doUpdateValue(checkedKeys);
|
|
382
|
+
doUpdateValue(checkedKeys, getOptionsByKeys(checkedKeys));
|
|
387
383
|
}
|
|
388
384
|
else {
|
|
389
385
|
const nextValue = Array.from(mergedValue);
|
|
390
386
|
nextValue.splice(index, 1);
|
|
391
|
-
doUpdateValue(nextValue);
|
|
387
|
+
doUpdateValue(nextValue, getOptionsByKeys(nextValue));
|
|
392
388
|
}
|
|
393
389
|
}
|
|
394
390
|
}
|
|
@@ -506,8 +502,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
506
502
|
handleMenuLeave,
|
|
507
503
|
handleTriggerClick,
|
|
508
504
|
handleMenuClickoutside,
|
|
509
|
-
handleUpdateSelectedKeys,
|
|
510
505
|
handleUpdateCheckedKeys,
|
|
506
|
+
handleUpdateIndeterminateKeys,
|
|
511
507
|
handleTriggerFocus,
|
|
512
508
|
handleTriggerBlur,
|
|
513
509
|
handleMenuFocusin,
|
|
@@ -547,8 +543,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
547
543
|
return null;
|
|
548
544
|
const { mergedClsPrefix, filteredTreeInfo, checkable, multiple } = this;
|
|
549
545
|
return (0, vue_1.withDirectives)((0, vue_1.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 },
|
|
550
|
-
filteredTreeInfo.filteredTree.length ? ((0, vue_1.h)(tree_1.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,
|
|
551
|
-
this.virtualScroll, internalDataTreeMate: this.dataTreeMate, internalDisplayTreeMate: this.displayTreeMate, internalHighlightKeySet: filteredTreeInfo.highlightKeySet,
|
|
546
|
+
filteredTreeInfo.filteredTree.length ? ((0, vue_1.h)(tree_1.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 &&
|
|
547
|
+
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 })) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tree-select-menu__empty` },
|
|
552
548
|
(0, vue_1.h)(empty_1.NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty }))),
|
|
553
549
|
(0, vue_1.h)(_internal_1.NBaseFocusDetector, { onFocus: this.handleTabOut })), [[vdirs_1.clickoutside, this.handleMenuClickoutside]]);
|
|
554
550
|
}
|
|
@@ -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;
|
|
@@ -4,10 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const _mixins_1 = require("../../_mixins");
|
|
5
5
|
const blockquote_cssr_1 = require("./styles/blockquote.cssr");
|
|
6
6
|
const styles_1 = require("../styles");
|
|
7
|
-
const blockquoteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText:
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: false
|
|
10
|
-
} });
|
|
7
|
+
const blockquoteProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText: Boolean });
|
|
11
8
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
9
|
name: 'Blockquote',
|
|
13
10
|
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/lib/typography/src/ol.js
CHANGED
|
@@ -4,10 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const _mixins_1 = require("../../_mixins");
|
|
5
5
|
const styles_1 = require("../styles");
|
|
6
6
|
const list_cssr_1 = require("./styles/list.cssr");
|
|
7
|
-
const olProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText:
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: false
|
|
10
|
-
} });
|
|
7
|
+
const olProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText: Boolean });
|
|
11
8
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
9
|
name: 'Ol',
|
|
13
10
|
props: olProps,
|
|
@@ -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/lib/typography/src/p.js
CHANGED
|
@@ -4,7 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const _mixins_1 = require("../../_mixins");
|
|
5
5
|
const styles_1 = require("../styles");
|
|
6
6
|
const p_cssr_1 = require("./styles/p.cssr");
|
|
7
|
-
const pProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: String });
|
|
7
|
+
const pProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: [String, Number] });
|
|
8
8
|
exports.default = (0, vue_1.defineComponent)({
|
|
9
9
|
name: 'P',
|
|
10
10
|
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;
|
|
@@ -6,31 +6,10 @@ const _mixins_1 = require("../../_mixins");
|
|
|
6
6
|
const _utils_1 = require("../../_utils");
|
|
7
7
|
const styles_1 = require("../styles");
|
|
8
8
|
const text_cssr_1 = require("./styles/text.cssr");
|
|
9
|
-
const textProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { code: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: false
|
|
12
|
-
}, type: {
|
|
9
|
+
const textProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { code: Boolean, type: {
|
|
13
10
|
type: String,
|
|
14
11
|
default: 'default'
|
|
15
|
-
}, delete:
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: false
|
|
18
|
-
}, strong: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
}, italic: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
}, underline: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: false
|
|
27
|
-
}, depth: {
|
|
28
|
-
type: [String, Number],
|
|
29
|
-
default: undefined
|
|
30
|
-
}, tag: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: undefined
|
|
33
|
-
},
|
|
12
|
+
}, delete: Boolean, strong: Boolean, italic: Boolean, underline: Boolean, depth: [String, Number], tag: String,
|
|
34
13
|
// deprecated
|
|
35
14
|
as: {
|
|
36
15
|
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/lib/typography/src/ul.js
CHANGED
|
@@ -4,10 +4,7 @@ const vue_1 = require("vue");
|
|
|
4
4
|
const _mixins_1 = require("../../_mixins");
|
|
5
5
|
const styles_1 = require("../styles");
|
|
6
6
|
const list_cssr_1 = require("./styles/list.cssr");
|
|
7
|
-
const ulProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText:
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: false
|
|
10
|
-
} });
|
|
7
|
+
const ulProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { alignText: Boolean });
|
|
11
8
|
exports.default = (0, vue_1.defineComponent)({
|
|
12
9
|
name: 'Ul',
|
|
13
10
|
props: ulProps,
|
package/lib/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/lib/upload/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NUploadDragger = exports.NUpload = void 0;
|
|
3
|
+
exports.NUploadFileList = exports.NUploadTrigger = exports.NUploadDragger = exports.NUpload = void 0;
|
|
4
4
|
var Upload_1 = require("./src/Upload");
|
|
5
5
|
Object.defineProperty(exports, "NUpload", { enumerable: true, get: function () { return Upload_1.default; } });
|
|
6
6
|
var UploadDragger_1 = require("./src/UploadDragger");
|
|
7
7
|
Object.defineProperty(exports, "NUploadDragger", { enumerable: true, get: function () { return UploadDragger_1.default; } });
|
|
8
|
+
var UploadTrigger_1 = require("./src/UploadTrigger");
|
|
9
|
+
Object.defineProperty(exports, "NUploadTrigger", { enumerable: true, get: function () { return UploadTrigger_1.default; } });
|
|
10
|
+
var UploadFileList_1 = require("./src/UploadFileList");
|
|
11
|
+
Object.defineProperty(exports, "NUploadFileList", { enumerable: true, get: function () { return UploadFileList_1.default; } });
|