@koi-design/uxd-ui 13.2.6 → 13.2.8
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/components/Affix/index.d.ts +1 -1
- package/es/components/Alert/Alert.vue.d.ts +1 -1
- package/es/components/Alert/index.d.ts +3 -3
- package/es/components/Anchor/index.d.ts +1 -1
- package/es/components/AutoComplete/AutoComplete.vue.d.ts +10 -10
- package/es/components/AutoComplete/index.d.ts +25 -25
- package/es/components/Avatar/Avatar.vue.d.ts +1 -1
- package/es/components/Avatar/index.d.ts +3 -3
- package/es/components/BackTop/BackTop.vue.d.ts +1 -1
- package/es/components/BackTop/index.d.ts +3 -3
- package/es/components/Badge/index.d.ts +1 -1
- package/es/components/Breadcrumb/index.d.ts +1 -1
- package/es/components/Button/Button.vue.d.ts +1 -1
- package/es/components/Button/index.d.ts +3 -3
- package/es/components/Calendar/Calendar.vue.d.ts +5 -5
- package/es/components/Calendar/Header.vue.d.ts +5 -5
- package/es/components/Calendar/index.d.ts +11 -11
- package/es/components/Card/Card.d.ts +1 -1
- package/es/components/Card/CardMeta.vue.d.ts +3 -3
- package/es/components/Card/index.d.ts +6 -6
- package/es/components/Carousel/Carousel.vue.d.ts +1 -1
- package/es/components/Carousel/index.d.ts +3 -3
- package/es/components/Cascader/Cascader.d.ts +1 -1
- package/es/components/Cascader/index.d.ts +1 -1
- package/es/components/Checkbox/Checkbox.vue.d.ts +1 -1
- package/es/components/Checkbox/CheckboxGroup.mjs +1 -4
- package/es/components/Checkbox/CheckboxGroup.mjs.map +1 -1
- package/es/components/Checkbox/CheckboxGroup.vue.d.ts +2 -2
- package/es/components/Checkbox/index.d.ts +5 -5
- package/es/components/Collapse/Panel.vue.d.ts +1 -1
- package/es/components/Collapse/index.d.ts +2 -2
- package/es/components/ColorPicker/ColorPicker.vue.d.ts +7 -7
- package/es/components/ColorPicker/index.d.ts +15 -15
- package/es/components/Comment/index.d.ts +1 -1
- package/es/components/ConfigProvider/index.d.ts +1 -1
- package/es/components/DatePicker/DatePicker.vue.d.ts +18 -18
- package/es/components/DatePicker/Panel/DatePanel/DatePanel.vue.d.ts +2 -2
- package/es/components/DatePicker/Panel/DatePanel/DatePanelHeader.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +8 -8
- package/es/components/DatePicker/Panel/DateRangePanel.vue.d.ts +8 -8
- package/es/components/DatePicker/Panel/MonthPanel/MonthPanel.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/MonthPanel/MonthPanelHeader.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/QuarterPanel/QuarterPanel.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/QuarterPanel/QuarterPanelHeader.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/RangePart.vue.d.ts +5 -5
- package/es/components/DatePicker/Panel/YearPanel/YearPanel.vue.d.ts +1 -1
- package/es/components/DatePicker/Panel/YearPanel/YearPanelHeader.vue.d.ts +1 -1
- package/es/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +1 -1
- package/es/components/DatePicker/index.d.ts +37 -37
- package/es/components/Divider/index.d.ts +1 -1
- package/es/components/Drawer/index.d.ts +1 -1
- package/es/components/Dropdown/index.d.ts +1 -1
- package/es/components/Empty/index.d.ts +1 -1
- package/es/components/Form/index.d.ts +1 -1
- package/es/components/Grid/index.d.ts +1 -1
- package/es/components/Icon/index.d.ts +1 -1
- package/es/components/Image/Image.vue.d.ts +1 -1
- package/es/components/Image/ImgViewer.vue.d.ts +1 -1
- package/es/components/Image/index.d.ts +4 -4
- package/es/components/InfoView/index.d.ts +1 -1
- package/es/components/Input/Input.d.ts +1 -1
- package/es/components/Input/index.d.ts +3 -3
- package/es/components/InputNumber/index.d.ts +1 -1
- package/es/components/Layout/Sider.vue.d.ts +1 -1
- package/es/components/Layout/index.d.ts +2 -2
- package/es/components/Link/Link.vue.d.ts +1 -1
- package/es/components/Link/index.d.ts +3 -3
- package/es/components/List/List.vue.d.ts +2 -2
- package/es/components/List/ListItemMeta.vue.d.ts +3 -3
- package/es/components/List/index.d.ts +8 -8
- package/es/components/LoadingBar/index.d.ts +1 -1
- package/es/components/Mask/index.d.ts +1 -1
- package/es/components/Menu/MenuItem.vue.d.ts +1 -1
- package/es/components/Menu/SubMenu.vue.d.ts +1 -1
- package/es/components/Menu/index.d.ts +3 -3
- package/es/components/Message/index.d.ts +1 -1
- package/es/components/Modal/ConfirmDialog.vue.d.ts +8 -8
- package/es/components/Modal/Modal.vue.d.ts +4 -4
- package/es/components/Modal/index.d.ts +9 -9
- package/es/components/Notice/index.d.ts +1 -1
- package/es/components/Notification/Notice.vue.d.ts +1 -1
- package/es/components/Notification/Notification.vue.d.ts +1 -1
- package/es/components/PageHeader/PageHeader.vue.d.ts +2 -2
- package/es/components/PageHeader/index.d.ts +5 -5
- package/es/components/Pagination/Pager.vue.d.ts +1 -1
- package/es/components/Pagination/Pagination.d.ts +2 -2
- package/es/components/Pagination/index.d.ts +5 -5
- package/es/components/PopConfirm/PopConfirm.vue.d.ts +5 -5
- package/es/components/PopConfirm/index.d.ts +11 -11
- package/es/components/Popover/index.d.ts +1 -1
- package/es/components/Progress/Circle.d.ts +1 -1
- package/es/components/Progress/Line.vue.d.ts +1 -1
- package/es/components/Progress/Progress.vue.d.ts +2 -2
- package/es/components/Progress/index.d.ts +5 -5
- package/es/components/Radio/index.d.ts +1 -1
- package/es/components/Rate/Rate.vue.d.ts +2 -2
- package/es/components/Rate/Star.vue.d.ts +1 -1
- package/es/components/Rate/index.d.ts +5 -5
- package/es/components/Result/Result.vue.d.ts +1 -1
- package/es/components/Result/index.d.ts +3 -3
- package/es/components/Scrollbar/index.d.ts +1 -1
- package/es/components/Select/DropdownMenu.mjs +2 -1
- package/es/components/Select/DropdownMenu.mjs.map +1 -1
- package/es/components/Select/DropdownMenu.vue.d.ts +2 -2
- package/es/components/Select/RefSelect.mjs +3 -0
- package/es/components/Select/RefSelect.mjs.map +1 -1
- package/es/components/Select/RefSelect.vue.d.ts +67 -1015
- package/es/components/Select/Select.d.ts +4 -4
- package/es/components/Select/Select.type.d.ts +1 -1
- package/es/components/Select/Select.type.mjs +1 -1
- package/es/components/Select/Select.type.mjs.map +1 -1
- package/es/components/Select/Selection/Multiple.mjs +2 -3
- package/es/components/Select/Selection/Multiple.mjs.map +1 -1
- package/es/components/Select/Selection/Multiple.vue.d.ts +4 -4
- package/es/components/Select/Selection/Multiple.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/Select/Selection/Multiple.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/Select/Selection/MultipleBase.d.ts +253 -0
- package/es/components/Select/Selection/MultipleBase.mjs +306 -0
- package/es/components/Select/Selection/MultipleBase.mjs.map +1 -0
- package/es/components/Select/Selection/Selection.mjs +90 -67
- package/es/components/Select/Selection/Selection.mjs.map +1 -1
- package/es/components/Select/Selection/Selection.vue.d.ts +57 -1005
- package/es/components/Select/hooks/useMultipleBase.d.ts +34 -0
- package/es/components/Select/hooks/useMultipleBase.mjs +211 -0
- package/es/components/Select/hooks/useMultipleBase.mjs.map +1 -0
- package/es/components/Select/index.d.ts +4 -4
- package/es/components/Skeleton/index.d.ts +1 -1
- package/es/components/Slider/index.d.ts +1 -1
- package/es/components/Space/index.d.ts +1 -1
- package/es/components/Spin/index.d.ts +1 -1
- package/es/components/Statistic/Statistic.vue.d.ts +2 -2
- package/es/components/Statistic/index.d.ts +5 -5
- package/es/components/Steps/Step.vue.d.ts +1 -1
- package/es/components/Steps/index.d.ts +2 -2
- package/es/components/Switch/index.d.ts +1 -1
- package/es/components/Table/BaseTable.vue.d.ts +18 -18
- package/es/components/Table/BodyTable.vue.d.ts +18 -18
- package/es/components/Table/HeadTable.vue.d.ts +18 -18
- package/es/components/Table/Table.vue.d.ts +42 -42
- package/es/components/Table/TableBox.vue.d.ts +36 -36
- package/es/components/Table/tableUnits/DraggableIcon.vue.d.ts +1 -1
- package/es/components/Table/tableUnits/ExpandIcon.vue.d.ts +1 -1
- package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +3 -3
- package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +11 -11
- package/es/components/Table/tableUnits/SelectionBox.vue.d.ts +6 -6
- package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +11 -11
- package/es/components/Table/tableUnits/TableBody.vue.d.ts +6 -6
- package/es/components/Table/tableUnits/TableCell.vue.d.ts +3 -3
- package/es/components/Table/tableUnits/TableHeader.vue.d.ts +12 -12
- package/es/components/Table/tableUnits/TableHeaderRow.mjs +1 -1
- package/es/components/Table/tableUnits/TableHeaderRow.mjs.map +1 -1
- package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +12 -12
- package/es/components/Table/tableUnits/TableRow.vue.d.ts +3 -3
- package/es/components/Table/tableUnits/TableSummaryRow.mjs +2 -3
- package/es/components/Table/tableUnits/TableSummaryRow.mjs.map +1 -1
- package/es/components/Tabs/TabNav.vue.d.ts +1 -1
- package/es/components/Tabs/Tabs.d.ts +1 -1
- package/es/components/Tabs/index.d.ts +4 -4
- package/es/components/Tag/Tag.vue.d.ts +1 -1
- package/es/components/Tag/index.d.ts +3 -3
- package/es/components/Text/index.d.ts +1 -1
- package/es/components/ThemePanel/ThemePanel.vue.d.ts +4 -4
- package/es/components/ThemePanel/index.d.ts +9 -9
- package/es/components/TimePicker/Panel/SelectList.vue.d.ts +1 -1
- package/es/components/TimePicker/Panel/TimePanel.vue.d.ts +1 -1
- package/es/components/TimePicker/Panel/TimeRangePane.vue.d.ts +1 -1
- package/es/components/TimePicker/TimePicker.vue.d.ts +4 -4
- package/es/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +1 -1
- package/es/components/TimePicker/index.d.ts +9 -9
- package/es/components/Timeline/index.d.ts +1 -1
- package/es/components/Toggle/index.d.ts +1 -1
- package/es/components/Tooltip/index.d.ts +1 -1
- package/es/components/Transfer/Operation.vue.d.ts +3 -3
- package/es/components/Transfer/Transfer.vue.d.ts +42 -42
- package/es/components/Transfer/TransferList.vue.d.ts +13 -13
- package/es/components/Transfer/TransferListItem.vue.d.ts +5 -5
- package/es/components/Transfer/index.d.ts +111 -111
- package/es/components/Tree/SubTree.vue.d.ts +6 -6
- package/es/components/Tree/Tree.vue.d.ts +6 -6
- package/es/components/Tree/TreeNode.vue.d.ts +6 -6
- package/es/components/Tree/index.d.ts +13 -13
- package/es/components/TreeSelect/TreeSelect.vue.d.ts +71 -1019
- package/es/components/TreeSelect/index.d.ts +1118 -3014
- package/es/components/Upload/UploadList.vue.d.ts +6 -6
- package/es/components/Upload/index.d.ts +1 -1
- package/es/components/VirtualList/index.d.ts +1 -1
- package/es/components/base/ResizeObserver.mjs +1 -1
- package/es/components/base/ResizeObserver.mjs.map +1 -1
- package/es/utils/install.d.ts +2 -2
- package/lib/components/Affix/index.d.ts +1 -1
- package/lib/components/Alert/Alert.vue.d.ts +1 -1
- package/lib/components/Alert/index.d.ts +3 -3
- package/lib/components/Anchor/index.d.ts +1 -1
- package/lib/components/AutoComplete/AutoComplete.vue.d.ts +10 -10
- package/lib/components/AutoComplete/index.d.ts +25 -25
- package/lib/components/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/components/Avatar/index.d.ts +3 -3
- package/lib/components/BackTop/BackTop.vue.d.ts +1 -1
- package/lib/components/BackTop/index.d.ts +3 -3
- package/lib/components/Badge/index.d.ts +1 -1
- package/lib/components/Breadcrumb/index.d.ts +1 -1
- package/lib/components/Button/Button.vue.d.ts +1 -1
- package/lib/components/Button/index.d.ts +3 -3
- package/lib/components/Calendar/Calendar.vue.d.ts +5 -5
- package/lib/components/Calendar/Header.vue.d.ts +5 -5
- package/lib/components/Calendar/index.d.ts +11 -11
- package/lib/components/Card/Card.d.ts +1 -1
- package/lib/components/Card/CardMeta.vue.d.ts +3 -3
- package/lib/components/Card/index.d.ts +6 -6
- package/lib/components/Carousel/Carousel.vue.d.ts +1 -1
- package/lib/components/Carousel/index.d.ts +3 -3
- package/lib/components/Cascader/Cascader.d.ts +1 -1
- package/lib/components/Cascader/index.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.vue.d.ts +1 -1
- package/lib/components/Checkbox/CheckboxGroup.js +1 -4
- package/lib/components/Checkbox/CheckboxGroup.js.map +1 -1
- package/lib/components/Checkbox/CheckboxGroup.vue.d.ts +2 -2
- package/lib/components/Checkbox/index.d.ts +5 -5
- package/lib/components/Collapse/Panel.vue.d.ts +1 -1
- package/lib/components/Collapse/index.d.ts +2 -2
- package/lib/components/ColorPicker/ColorPicker.vue.d.ts +7 -7
- package/lib/components/ColorPicker/index.d.ts +15 -15
- package/lib/components/Comment/index.d.ts +1 -1
- package/lib/components/ConfigProvider/index.d.ts +1 -1
- package/lib/components/DatePicker/DatePicker.vue.d.ts +18 -18
- package/lib/components/DatePicker/Panel/DatePanel/DatePanel.vue.d.ts +2 -2
- package/lib/components/DatePicker/Panel/DatePanel/DatePanelHeader.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +8 -8
- package/lib/components/DatePicker/Panel/DateRangePanel.vue.d.ts +8 -8
- package/lib/components/DatePicker/Panel/MonthPanel/MonthPanel.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/MonthPanel/MonthPanelHeader.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/QuarterPanel/QuarterPanel.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/QuarterPanel/QuarterPanelHeader.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/RangePart.vue.d.ts +5 -5
- package/lib/components/DatePicker/Panel/YearPanel/YearPanel.vue.d.ts +1 -1
- package/lib/components/DatePicker/Panel/YearPanel/YearPanelHeader.vue.d.ts +1 -1
- package/lib/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +1 -1
- package/lib/components/DatePicker/index.d.ts +37 -37
- package/lib/components/Divider/index.d.ts +1 -1
- package/lib/components/Drawer/index.d.ts +1 -1
- package/lib/components/Dropdown/index.d.ts +1 -1
- package/lib/components/Empty/index.d.ts +1 -1
- package/lib/components/Form/index.d.ts +1 -1
- package/lib/components/Grid/index.d.ts +1 -1
- package/lib/components/Icon/index.d.ts +1 -1
- package/lib/components/Image/Image.vue.d.ts +1 -1
- package/lib/components/Image/ImgViewer.vue.d.ts +1 -1
- package/lib/components/Image/index.d.ts +4 -4
- package/lib/components/InfoView/index.d.ts +1 -1
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/index.d.ts +3 -3
- package/lib/components/InputNumber/index.d.ts +1 -1
- package/lib/components/Layout/Sider.vue.d.ts +1 -1
- package/lib/components/Layout/index.d.ts +2 -2
- package/lib/components/Link/Link.vue.d.ts +1 -1
- package/lib/components/Link/index.d.ts +3 -3
- package/lib/components/List/List.vue.d.ts +2 -2
- package/lib/components/List/ListItemMeta.vue.d.ts +3 -3
- package/lib/components/List/index.d.ts +8 -8
- package/lib/components/LoadingBar/index.d.ts +1 -1
- package/lib/components/Mask/index.d.ts +1 -1
- package/lib/components/Menu/MenuItem.vue.d.ts +1 -1
- package/lib/components/Menu/SubMenu.vue.d.ts +1 -1
- package/lib/components/Menu/index.d.ts +3 -3
- package/lib/components/Message/index.d.ts +1 -1
- package/lib/components/Modal/ConfirmDialog.vue.d.ts +8 -8
- package/lib/components/Modal/Modal.vue.d.ts +4 -4
- package/lib/components/Modal/index.d.ts +9 -9
- package/lib/components/Notice/index.d.ts +1 -1
- package/lib/components/Notification/Notice.vue.d.ts +1 -1
- package/lib/components/Notification/Notification.vue.d.ts +1 -1
- package/lib/components/PageHeader/PageHeader.vue.d.ts +2 -2
- package/lib/components/PageHeader/index.d.ts +5 -5
- package/lib/components/Pagination/Pager.vue.d.ts +1 -1
- package/lib/components/Pagination/Pagination.d.ts +2 -2
- package/lib/components/Pagination/index.d.ts +5 -5
- package/lib/components/PopConfirm/PopConfirm.vue.d.ts +5 -5
- package/lib/components/PopConfirm/index.d.ts +11 -11
- package/lib/components/Popover/index.d.ts +1 -1
- package/lib/components/Progress/Circle.d.ts +1 -1
- package/lib/components/Progress/Line.vue.d.ts +1 -1
- package/lib/components/Progress/Progress.vue.d.ts +2 -2
- package/lib/components/Progress/index.d.ts +5 -5
- package/lib/components/Radio/index.d.ts +1 -1
- package/lib/components/Rate/Rate.vue.d.ts +2 -2
- package/lib/components/Rate/Star.vue.d.ts +1 -1
- package/lib/components/Rate/index.d.ts +5 -5
- package/lib/components/Result/Result.vue.d.ts +1 -1
- package/lib/components/Result/index.d.ts +3 -3
- package/lib/components/Scrollbar/index.d.ts +1 -1
- package/lib/components/Select/DropdownMenu.js +1 -0
- package/lib/components/Select/DropdownMenu.js.map +1 -1
- package/lib/components/Select/DropdownMenu.vue.d.ts +2 -2
- package/lib/components/Select/RefSelect.js +3 -0
- package/lib/components/Select/RefSelect.js.map +1 -1
- package/lib/components/Select/RefSelect.vue.d.ts +67 -1015
- package/lib/components/Select/Select.d.ts +4 -4
- package/lib/components/Select/Select.type.d.ts +1 -1
- package/lib/components/Select/Select.type.js +1 -1
- package/lib/components/Select/Select.type.js.map +1 -1
- package/lib/components/Select/Selection/Multiple.js +2 -3
- package/lib/components/Select/Selection/Multiple.js.map +1 -1
- package/lib/components/Select/Selection/Multiple.vue.d.ts +4 -4
- package/lib/components/Select/Selection/Multiple.vue_vue_type_script_lang.js +1 -1
- package/lib/components/Select/Selection/Multiple.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/Select/Selection/MultipleBase.d.ts +253 -0
- package/lib/components/Select/Selection/MultipleBase.js +315 -0
- package/lib/components/Select/Selection/MultipleBase.js.map +1 -0
- package/lib/components/Select/Selection/Selection.js +89 -66
- package/lib/components/Select/Selection/Selection.js.map +1 -1
- package/lib/components/Select/Selection/Selection.vue.d.ts +57 -1005
- package/lib/components/Select/hooks/useMultipleBase.d.ts +34 -0
- package/lib/components/Select/hooks/useMultipleBase.js +216 -0
- package/lib/components/Select/hooks/useMultipleBase.js.map +1 -0
- package/lib/components/Select/index.d.ts +4 -4
- package/lib/components/Skeleton/index.d.ts +1 -1
- package/lib/components/Slider/index.d.ts +1 -1
- package/lib/components/Space/index.d.ts +1 -1
- package/lib/components/Spin/index.d.ts +1 -1
- package/lib/components/Statistic/Statistic.vue.d.ts +2 -2
- package/lib/components/Statistic/index.d.ts +5 -5
- package/lib/components/Steps/Step.vue.d.ts +1 -1
- package/lib/components/Steps/index.d.ts +2 -2
- package/lib/components/Switch/index.d.ts +1 -1
- package/lib/components/Table/BaseTable.vue.d.ts +18 -18
- package/lib/components/Table/BodyTable.vue.d.ts +18 -18
- package/lib/components/Table/HeadTable.vue.d.ts +18 -18
- package/lib/components/Table/Table.vue.d.ts +42 -42
- package/lib/components/Table/TableBox.vue.d.ts +36 -36
- package/lib/components/Table/tableUnits/DraggableIcon.vue.d.ts +1 -1
- package/lib/components/Table/tableUnits/ExpandIcon.vue.d.ts +1 -1
- package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +3 -3
- package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +11 -11
- package/lib/components/Table/tableUnits/SelectionBox.vue.d.ts +6 -6
- package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +11 -11
- package/lib/components/Table/tableUnits/TableBody.vue.d.ts +6 -6
- package/lib/components/Table/tableUnits/TableCell.vue.d.ts +3 -3
- package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +12 -12
- package/lib/components/Table/tableUnits/TableHeaderRow.js +1 -1
- package/lib/components/Table/tableUnits/TableHeaderRow.js.map +1 -1
- package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +12 -12
- package/lib/components/Table/tableUnits/TableRow.vue.d.ts +3 -3
- package/lib/components/Table/tableUnits/TableSummaryRow.js +2 -3
- package/lib/components/Table/tableUnits/TableSummaryRow.js.map +1 -1
- package/lib/components/Tabs/TabNav.vue.d.ts +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/index.d.ts +4 -4
- package/lib/components/Tag/Tag.vue.d.ts +1 -1
- package/lib/components/Tag/index.d.ts +3 -3
- package/lib/components/Text/index.d.ts +1 -1
- package/lib/components/ThemePanel/ThemePanel.vue.d.ts +4 -4
- package/lib/components/ThemePanel/index.d.ts +9 -9
- package/lib/components/TimePicker/Panel/SelectList.vue.d.ts +1 -1
- package/lib/components/TimePicker/Panel/TimePanel.vue.d.ts +1 -1
- package/lib/components/TimePicker/Panel/TimeRangePane.vue.d.ts +1 -1
- package/lib/components/TimePicker/TimePicker.vue.d.ts +4 -4
- package/lib/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +1 -1
- package/lib/components/TimePicker/index.d.ts +9 -9
- package/lib/components/Timeline/index.d.ts +1 -1
- package/lib/components/Toggle/index.d.ts +1 -1
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/components/Transfer/Operation.vue.d.ts +3 -3
- package/lib/components/Transfer/Transfer.vue.d.ts +42 -42
- package/lib/components/Transfer/TransferList.vue.d.ts +13 -13
- package/lib/components/Transfer/TransferListItem.vue.d.ts +5 -5
- package/lib/components/Transfer/index.d.ts +111 -111
- package/lib/components/Tree/SubTree.vue.d.ts +6 -6
- package/lib/components/Tree/Tree.vue.d.ts +6 -6
- package/lib/components/Tree/TreeNode.vue.d.ts +6 -6
- package/lib/components/Tree/index.d.ts +13 -13
- package/lib/components/TreeSelect/TreeSelect.vue.d.ts +71 -1019
- package/lib/components/TreeSelect/index.d.ts +1118 -3014
- package/lib/components/Upload/UploadList.vue.d.ts +6 -6
- package/lib/components/Upload/index.d.ts +1 -1
- package/lib/components/VirtualList/index.d.ts +1 -1
- package/lib/components/base/ResizeObserver.js +1 -1
- package/lib/components/base/ResizeObserver.js.map +1 -1
- package/lib/utils/install.d.ts +2 -2
- package/package.json +1 -1
- package/styles/components/cascader/index.css +1 -1
- package/styles/components/select/index.css +1 -1
- package/styles/components/select/index.less +10 -1
- package/styles/index.css +1 -1
- package/types/components/Affix/index.d.ts +1 -1
- package/types/components/Alert/Alert.vue.d.ts +1 -1
- package/types/components/Alert/index.d.ts +3 -3
- package/types/components/Anchor/index.d.ts +1 -1
- package/types/components/AutoComplete/AutoComplete.vue.d.ts +10 -10
- package/types/components/AutoComplete/index.d.ts +25 -25
- package/types/components/Avatar/Avatar.vue.d.ts +1 -1
- package/types/components/Avatar/index.d.ts +3 -3
- package/types/components/BackTop/BackTop.vue.d.ts +1 -1
- package/types/components/BackTop/index.d.ts +3 -3
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/Breadcrumb/index.d.ts +1 -1
- package/types/components/Button/Button.vue.d.ts +1 -1
- package/types/components/Button/index.d.ts +3 -3
- package/types/components/Calendar/Calendar.vue.d.ts +5 -5
- package/types/components/Calendar/Header.vue.d.ts +5 -5
- package/types/components/Calendar/index.d.ts +11 -11
- package/types/components/Card/Card.d.ts +1 -1
- package/types/components/Card/CardMeta.vue.d.ts +3 -3
- package/types/components/Card/index.d.ts +6 -6
- package/types/components/Carousel/Carousel.vue.d.ts +1 -1
- package/types/components/Carousel/index.d.ts +3 -3
- package/types/components/Cascader/Cascader.d.ts +1 -1
- package/types/components/Cascader/index.d.ts +1 -1
- package/types/components/Checkbox/Checkbox.vue.d.ts +1 -1
- package/types/components/Checkbox/CheckboxGroup.vue.d.ts +2 -2
- package/types/components/Checkbox/index.d.ts +5 -5
- package/types/components/Collapse/Panel.vue.d.ts +1 -1
- package/types/components/Collapse/index.d.ts +2 -2
- package/types/components/ColorPicker/ColorPicker.vue.d.ts +7 -7
- package/types/components/ColorPicker/index.d.ts +15 -15
- package/types/components/Comment/index.d.ts +1 -1
- package/types/components/ConfigProvider/index.d.ts +1 -1
- package/types/components/DatePicker/DatePicker.vue.d.ts +18 -18
- package/types/components/DatePicker/Panel/DatePanel/DatePanel.vue.d.ts +2 -2
- package/types/components/DatePicker/Panel/DatePanel/DatePanelHeader.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +8 -8
- package/types/components/DatePicker/Panel/DateRangePanel.vue.d.ts +8 -8
- package/types/components/DatePicker/Panel/MonthPanel/MonthPanel.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/MonthPanel/MonthPanelHeader.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/QuarterPanel/QuarterPanel.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/QuarterPanel/QuarterPanelHeader.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/RangePart.vue.d.ts +5 -5
- package/types/components/DatePicker/Panel/YearPanel/YearPanel.vue.d.ts +1 -1
- package/types/components/DatePicker/Panel/YearPanel/YearPanelHeader.vue.d.ts +1 -1
- package/types/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +1 -1
- package/types/components/DatePicker/index.d.ts +37 -37
- package/types/components/Divider/index.d.ts +1 -1
- package/types/components/Drawer/index.d.ts +1 -1
- package/types/components/Dropdown/index.d.ts +1 -1
- package/types/components/Empty/index.d.ts +1 -1
- package/types/components/Form/index.d.ts +1 -1
- package/types/components/Grid/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Image/Image.vue.d.ts +1 -1
- package/types/components/Image/ImgViewer.vue.d.ts +1 -1
- package/types/components/Image/index.d.ts +4 -4
- package/types/components/InfoView/index.d.ts +1 -1
- package/types/components/Input/Input.d.ts +1 -1
- package/types/components/Input/index.d.ts +3 -3
- package/types/components/InputNumber/index.d.ts +1 -1
- package/types/components/Layout/Sider.vue.d.ts +1 -1
- package/types/components/Layout/index.d.ts +2 -2
- package/types/components/Link/Link.vue.d.ts +1 -1
- package/types/components/Link/index.d.ts +3 -3
- package/types/components/List/List.vue.d.ts +2 -2
- package/types/components/List/ListItemMeta.vue.d.ts +3 -3
- package/types/components/List/index.d.ts +8 -8
- package/types/components/LoadingBar/index.d.ts +1 -1
- package/types/components/Mask/index.d.ts +1 -1
- package/types/components/Menu/MenuItem.vue.d.ts +1 -1
- package/types/components/Menu/SubMenu.vue.d.ts +1 -1
- package/types/components/Menu/index.d.ts +3 -3
- package/types/components/Message/index.d.ts +1 -1
- package/types/components/Modal/ConfirmDialog.vue.d.ts +8 -8
- package/types/components/Modal/Modal.vue.d.ts +4 -4
- package/types/components/Modal/index.d.ts +9 -9
- package/types/components/Notice/index.d.ts +1 -1
- package/types/components/Notification/Notice.vue.d.ts +1 -1
- package/types/components/Notification/Notification.vue.d.ts +1 -1
- package/types/components/PageHeader/PageHeader.vue.d.ts +2 -2
- package/types/components/PageHeader/index.d.ts +5 -5
- package/types/components/Pagination/Pager.vue.d.ts +1 -1
- package/types/components/Pagination/Pagination.d.ts +2 -2
- package/types/components/Pagination/index.d.ts +5 -5
- package/types/components/PopConfirm/PopConfirm.vue.d.ts +5 -5
- package/types/components/PopConfirm/index.d.ts +11 -11
- package/types/components/Popover/index.d.ts +1 -1
- package/types/components/Progress/Circle.d.ts +1 -1
- package/types/components/Progress/Line.vue.d.ts +1 -1
- package/types/components/Progress/Progress.vue.d.ts +2 -2
- package/types/components/Progress/index.d.ts +5 -5
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Rate/Rate.vue.d.ts +2 -2
- package/types/components/Rate/Star.vue.d.ts +1 -1
- package/types/components/Rate/index.d.ts +5 -5
- package/types/components/Result/Result.vue.d.ts +1 -1
- package/types/components/Result/index.d.ts +3 -3
- package/types/components/Scrollbar/index.d.ts +1 -1
- package/types/components/Select/DropdownMenu.vue.d.ts +2 -2
- package/types/components/Select/RefSelect.vue.d.ts +67 -1015
- package/types/components/Select/Select.d.ts +4 -4
- package/types/components/Select/Select.type.d.ts +1 -1
- package/types/components/Select/Selection/Multiple.vue.d.ts +4 -4
- package/types/components/Select/Selection/MultipleBase.d.ts +253 -0
- package/types/components/Select/Selection/Selection.vue.d.ts +57 -1005
- package/types/components/Select/hooks/useMultipleBase.d.ts +34 -0
- package/types/components/Select/index.d.ts +4 -4
- package/types/components/Skeleton/index.d.ts +1 -1
- package/types/components/Slider/index.d.ts +1 -1
- package/types/components/Space/index.d.ts +1 -1
- package/types/components/Spin/index.d.ts +1 -1
- package/types/components/Statistic/Statistic.vue.d.ts +2 -2
- package/types/components/Statistic/index.d.ts +5 -5
- package/types/components/Steps/Step.vue.d.ts +1 -1
- package/types/components/Steps/index.d.ts +2 -2
- package/types/components/Switch/index.d.ts +1 -1
- package/types/components/Table/BaseTable.vue.d.ts +18 -18
- package/types/components/Table/BodyTable.vue.d.ts +18 -18
- package/types/components/Table/HeadTable.vue.d.ts +18 -18
- package/types/components/Table/Table.vue.d.ts +42 -42
- package/types/components/Table/TableBox.vue.d.ts +36 -36
- package/types/components/Table/tableUnits/DraggableIcon.vue.d.ts +1 -1
- package/types/components/Table/tableUnits/ExpandIcon.vue.d.ts +1 -1
- package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +3 -3
- package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +11 -11
- package/types/components/Table/tableUnits/SelectionBox.vue.d.ts +6 -6
- package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +11 -11
- package/types/components/Table/tableUnits/TableBody.vue.d.ts +6 -6
- package/types/components/Table/tableUnits/TableCell.vue.d.ts +3 -3
- package/types/components/Table/tableUnits/TableHeader.vue.d.ts +12 -12
- package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +12 -12
- package/types/components/Table/tableUnits/TableRow.vue.d.ts +3 -3
- package/types/components/Tabs/TabNav.vue.d.ts +1 -1
- package/types/components/Tabs/Tabs.d.ts +1 -1
- package/types/components/Tabs/index.d.ts +4 -4
- package/types/components/Tag/Tag.vue.d.ts +1 -1
- package/types/components/Tag/index.d.ts +3 -3
- package/types/components/Text/index.d.ts +1 -1
- package/types/components/ThemePanel/ThemePanel.vue.d.ts +4 -4
- package/types/components/ThemePanel/index.d.ts +9 -9
- package/types/components/TimePicker/Panel/SelectList.vue.d.ts +1 -1
- package/types/components/TimePicker/Panel/TimePanel.vue.d.ts +1 -1
- package/types/components/TimePicker/Panel/TimeRangePane.vue.d.ts +1 -1
- package/types/components/TimePicker/TimePicker.vue.d.ts +4 -4
- package/types/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +1 -1
- package/types/components/TimePicker/index.d.ts +9 -9
- package/types/components/Timeline/index.d.ts +1 -1
- package/types/components/Toggle/index.d.ts +1 -1
- package/types/components/Tooltip/index.d.ts +1 -1
- package/types/components/Transfer/Operation.vue.d.ts +3 -3
- package/types/components/Transfer/Transfer.vue.d.ts +42 -42
- package/types/components/Transfer/TransferList.vue.d.ts +13 -13
- package/types/components/Transfer/TransferListItem.vue.d.ts +5 -5
- package/types/components/Transfer/index.d.ts +111 -111
- package/types/components/Tree/SubTree.vue.d.ts +6 -6
- package/types/components/Tree/Tree.vue.d.ts +6 -6
- package/types/components/Tree/TreeNode.vue.d.ts +6 -6
- package/types/components/Tree/index.d.ts +13 -13
- package/types/components/TreeSelect/TreeSelect.vue.d.ts +71 -1019
- package/types/components/TreeSelect/index.d.ts +1118 -3014
- package/types/components/Upload/UploadList.vue.d.ts +6 -6
- package/types/components/Upload/index.d.ts +1 -1
- package/types/components/VirtualList/index.d.ts +1 -1
- package/types/utils/install.d.ts +2 -2
- package/uxd-ui.css +1 -1
- package/uxd-ui.esm.min.mjs +6 -6
- package/uxd-ui.esm.mjs +723 -546
- package/uxd-ui.umd.js +723 -546
- package/uxd-ui.umd.min.js +6 -6
package/uxd-ui.esm.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @koi-design/uxd-ui@3.2.
|
|
1
|
+
/*! @koi-design/uxd-ui@3.2.8 */
|
|
2
2
|
|
|
3
3
|
import { defineComponent, reactive, watch, provide, inject, computed, onMounted, ref, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, withDirectives, vShow, createBlock, resolveDynamicComponent, createCommentVNode, toRaw, resolveComponent, Transition, withCtx, createVNode, toDisplayString, isVNode, Comment as Comment$1, Fragment, Text as Text$1, h, shallowRef, toRef, nextTick, onUpdated, onUnmounted, cloneVNode, Teleport, toRefs, withModifiers, mergeProps, renderList, onBeforeUpdate, createTextVNode, watchEffect, onActivated, onDeactivated, normalizeProps, guardReactiveProps, createStaticVNode, withKeys, TransitionGroup, createApp, onBeforeMount } from 'vue';
|
|
4
4
|
import { URoundClose, USolidCheckmarkCircle, USolidCloseCircle, USolidAlertCircle, USolidInfoCircle, ULineLoading, URoundSearch, URoundCloseCircle, URoundEyeOpen, URoundEyeOff, URoundCheck, ULineEnter, ULineUp, ULineDown, ULineRight, ULineMenu, URoundDown, USolidCheck, USolidRemove, UColorfulEmpty, ULineSearch, ULineLeft, USolidDown, ULineSortRight, ULineLeftDouble, ULineRightDouble, URoundCalendar, ULineShrink, ULineMagnify, ULineRefreshLeft, ULineRefreshRight, ULineScreenOpen, ULineScaleToOriginal, USolidCaretLeft, USolidCaretRight, ULineUnfold, ULinePack, ULinePicture, ULineAlertCircle, USolidStar, UColorfulNotFound, UColorfulStatisticsEmpty, UColorfulMessageEmpty, USolidFilter, USolidCaretUp, USolidCaretDown, ULineCanDrag, ULineAdd, URoundTime, ULineText, ULineDelete, USolidHelpCircle, URoundHelpCircle, ULineInfoCircle, ULineCheckmarkCircle } from '@koi-design/uxd-icon';
|
|
@@ -19,7 +19,7 @@ const camelize$1 = cacheStringFunction(
|
|
|
19
19
|
);
|
|
20
20
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
21
21
|
/**
|
|
22
|
-
* @vue/shared v3.5.
|
|
22
|
+
* @vue/shared v3.5.18
|
|
23
23
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
24
|
* @license MIT
|
|
25
25
|
**/
|
|
@@ -593,7 +593,7 @@ function getOffset(element, scrollElement) {
|
|
|
593
593
|
left: rect.left + scrollLeft - clientLeft
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
const _sfc_main$
|
|
596
|
+
const _sfc_main$2f = defineComponent({
|
|
597
597
|
name: "UAffix",
|
|
598
598
|
props: affixProps,
|
|
599
599
|
emits: affixEmits,
|
|
@@ -687,9 +687,9 @@ const _sfc_main$2g = defineComponent({
|
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
689
|
});
|
|
690
|
-
const _hoisted_1
|
|
691
|
-
function _sfc_render$
|
|
692
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
690
|
+
const _hoisted_1$_ = { ref: "containerRef" };
|
|
691
|
+
function _sfc_render$2d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
692
|
+
return openBlock(), createElementBlock("div", _hoisted_1$_, [
|
|
693
693
|
createElementVNode("div", {
|
|
694
694
|
ref: "pointRef",
|
|
695
695
|
class: normalizeClass(_ctx.classes),
|
|
@@ -704,7 +704,7 @@ function _sfc_render$2e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
704
704
|
])
|
|
705
705
|
], 512);
|
|
706
706
|
}
|
|
707
|
-
var Affix = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
707
|
+
var Affix = /* @__PURE__ */ _export_sfc(_sfc_main$2f, [["render", _sfc_render$2d], ["__file", "Affix.vue"]]);
|
|
708
708
|
|
|
709
709
|
const UAffix = withInstall(Affix);
|
|
710
710
|
|
|
@@ -728,7 +728,7 @@ const iconEmits = {
|
|
|
728
728
|
click: (ev) => ev instanceof Event
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
const _sfc_main$
|
|
731
|
+
const _sfc_main$2e = defineComponent({
|
|
732
732
|
name: "UIcon",
|
|
733
733
|
props: iconProps,
|
|
734
734
|
emits: iconEmits,
|
|
@@ -770,7 +770,7 @@ const _sfc_main$2f = defineComponent({
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
});
|
|
773
|
-
function _sfc_render$
|
|
773
|
+
function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
774
774
|
return openBlock(), createElementBlock("i", {
|
|
775
775
|
class: normalizeClass([
|
|
776
776
|
{
|
|
@@ -786,7 +786,7 @@ function _sfc_render$2d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
786
786
|
])
|
|
787
787
|
], 6);
|
|
788
788
|
}
|
|
789
|
-
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
789
|
+
var Icon = /* @__PURE__ */ _export_sfc(_sfc_main$2e, [["render", _sfc_render$2c], ["__file", "Icon.vue"]]);
|
|
790
790
|
|
|
791
791
|
const UIcon = withInstall(Icon);
|
|
792
792
|
|
|
@@ -1104,7 +1104,7 @@ const alertEmits = {
|
|
|
1104
1104
|
"update:visible": (v) => typeof v === "boolean"
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
const _sfc_main$
|
|
1107
|
+
const _sfc_main$2d = defineComponent({
|
|
1108
1108
|
name: "UAlert",
|
|
1109
1109
|
components: {
|
|
1110
1110
|
UIcon,
|
|
@@ -1167,8 +1167,8 @@ const _sfc_main$2e = defineComponent({
|
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
|
-
const _hoisted_1$
|
|
1171
|
-
function _sfc_render$
|
|
1170
|
+
const _hoisted_1$Z = ["data-color"];
|
|
1171
|
+
function _sfc_render$2b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1172
1172
|
const _component_UIcon = resolveComponent("UIcon");
|
|
1173
1173
|
const _component_URoundClose = resolveComponent("URoundClose");
|
|
1174
1174
|
return openBlock(), createBlock(Transition, {
|
|
@@ -1222,12 +1222,12 @@ function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1222
1222
|
})
|
|
1223
1223
|
])
|
|
1224
1224
|
], 2)) : createCommentVNode("v-if", true)
|
|
1225
|
-
], 10, _hoisted_1$
|
|
1225
|
+
], 10, _hoisted_1$Z)) : createCommentVNode("v-if", true)
|
|
1226
1226
|
]),
|
|
1227
1227
|
_: 3
|
|
1228
1228
|
}, 8, ["onAfterLeave"]);
|
|
1229
1229
|
}
|
|
1230
|
-
var Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1230
|
+
var Alert = /* @__PURE__ */ _export_sfc(_sfc_main$2d, [["render", _sfc_render$2b], ["__file", "Alert.vue"]]);
|
|
1231
1231
|
|
|
1232
1232
|
const UAlert = withInstall(Alert);
|
|
1233
1233
|
|
|
@@ -3503,7 +3503,7 @@ const formItemProps = {
|
|
|
3503
3503
|
}
|
|
3504
3504
|
};
|
|
3505
3505
|
|
|
3506
|
-
const _sfc_main$
|
|
3506
|
+
const _sfc_main$2c = defineComponent({
|
|
3507
3507
|
name: "UForm",
|
|
3508
3508
|
props: formProps,
|
|
3509
3509
|
emits: formEmits,
|
|
@@ -3627,7 +3627,7 @@ const _sfc_main$2d = defineComponent({
|
|
|
3627
3627
|
};
|
|
3628
3628
|
}
|
|
3629
3629
|
});
|
|
3630
|
-
function _sfc_render$
|
|
3630
|
+
function _sfc_render$2a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3631
3631
|
return openBlock(), createElementBlock("form", {
|
|
3632
3632
|
class: normalizeClass([
|
|
3633
3633
|
_ctx.prefixCls,
|
|
@@ -3643,7 +3643,7 @@ function _sfc_render$2b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3643
3643
|
renderSlot(_ctx.$slots, "default")
|
|
3644
3644
|
], 34);
|
|
3645
3645
|
}
|
|
3646
|
-
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3646
|
+
var Form = /* @__PURE__ */ _export_sfc(_sfc_main$2c, [["render", _sfc_render$2a], ["__file", "Form.vue"]]);
|
|
3647
3647
|
|
|
3648
3648
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
3649
3649
|
var freeGlobal$1 = freeGlobal;
|
|
@@ -7515,7 +7515,7 @@ var ResizeObserver$1 = defineComponent({
|
|
|
7515
7515
|
if (stateWidth !== _width || stateHeight !== _height) {
|
|
7516
7516
|
stateWidth = _width;
|
|
7517
7517
|
stateHeight = _height;
|
|
7518
|
-
emit("resize", { widht: _width, height: _height });
|
|
7518
|
+
emit("resize", { widht: _width, width: _width, height: _height });
|
|
7519
7519
|
}
|
|
7520
7520
|
};
|
|
7521
7521
|
const destroyObserver = () => {
|
|
@@ -7562,7 +7562,7 @@ var ResizeObserver$1 = defineComponent({
|
|
|
7562
7562
|
}
|
|
7563
7563
|
});
|
|
7564
7564
|
|
|
7565
|
-
const _sfc_main$
|
|
7565
|
+
const _sfc_main$2b = defineComponent({
|
|
7566
7566
|
name: "ListContent",
|
|
7567
7567
|
components: {
|
|
7568
7568
|
ResizeObserver: ResizeObserver$1
|
|
@@ -7620,7 +7620,7 @@ const _sfc_main$2c = defineComponent({
|
|
|
7620
7620
|
};
|
|
7621
7621
|
}
|
|
7622
7622
|
});
|
|
7623
|
-
function _sfc_render$
|
|
7623
|
+
function _sfc_render$29(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7624
7624
|
const _component_ResizeObserver = resolveComponent("ResizeObserver");
|
|
7625
7625
|
return openBlock(), createElementBlock("div", {
|
|
7626
7626
|
ref: _ctx.contentRef,
|
|
@@ -7641,7 +7641,7 @@ function _sfc_render$2a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7641
7641
|
}, 8, ["onResize"])
|
|
7642
7642
|
], 4);
|
|
7643
7643
|
}
|
|
7644
|
-
var ListContent = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7644
|
+
var ListContent = /* @__PURE__ */ _export_sfc(_sfc_main$2b, [["render", _sfc_render$29], ["__file", "ListContent.vue"]]);
|
|
7645
7645
|
|
|
7646
7646
|
const ListItem$2 = ({
|
|
7647
7647
|
itemRef
|
|
@@ -7766,7 +7766,7 @@ raf_1.polyfill = polyfill;
|
|
|
7766
7766
|
function getPageY(e) {
|
|
7767
7767
|
return "touches" in e ? e.touches[0].pageY : e.pageY;
|
|
7768
7768
|
}
|
|
7769
|
-
const _sfc_main$
|
|
7769
|
+
const _sfc_main$2a = defineComponent({
|
|
7770
7770
|
name: "VirtualScrollBar",
|
|
7771
7771
|
props: {
|
|
7772
7772
|
prefixCls: {
|
|
@@ -7914,7 +7914,7 @@ const _sfc_main$2b = defineComponent({
|
|
|
7914
7914
|
};
|
|
7915
7915
|
}
|
|
7916
7916
|
});
|
|
7917
|
-
function _sfc_render$
|
|
7917
|
+
function _sfc_render$28(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7918
7918
|
return openBlock(), createElementBlock("div", {
|
|
7919
7919
|
ref: "scrollBarRef",
|
|
7920
7920
|
class: normalizeClass(`${_ctx.prefixCls}-scrollbar`),
|
|
@@ -7956,7 +7956,7 @@ function _sfc_render$29(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7956
7956
|
}, null, 38)
|
|
7957
7957
|
], 38);
|
|
7958
7958
|
}
|
|
7959
|
-
var VirtualScrollBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
7959
|
+
var VirtualScrollBar = /* @__PURE__ */ _export_sfc(_sfc_main$2a, [["render", _sfc_render$28], ["__file", "VirtualScrollBar.vue"]]);
|
|
7960
7960
|
|
|
7961
7961
|
function useHeight(getKey, useVirtual, props, state, contentRef) {
|
|
7962
7962
|
const instance = /* @__PURE__ */ new Map();
|
|
@@ -8194,7 +8194,7 @@ function useScrollTo(containerRef, state, heights, props, getKey, collectHeight,
|
|
|
8194
8194
|
};
|
|
8195
8195
|
}
|
|
8196
8196
|
|
|
8197
|
-
const _sfc_main$
|
|
8197
|
+
const _sfc_main$29 = defineComponent({
|
|
8198
8198
|
name: "UVirtualList",
|
|
8199
8199
|
components: {
|
|
8200
8200
|
ListContent,
|
|
@@ -8395,7 +8395,7 @@ const _sfc_main$2a = defineComponent({
|
|
|
8395
8395
|
};
|
|
8396
8396
|
}
|
|
8397
8397
|
});
|
|
8398
|
-
function _sfc_render$
|
|
8398
|
+
function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8399
8399
|
const _component_ListItem = resolveComponent("ListItem");
|
|
8400
8400
|
const _component_ListContent = resolveComponent("ListContent");
|
|
8401
8401
|
const _component_VirtualScrollBar = resolveComponent("VirtualScrollBar");
|
|
@@ -8446,7 +8446,7 @@ function _sfc_render$28(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8446
8446
|
}, null, 8, ["prefix-cls", "height", "count", "scroll-height", "scroll-top", "onScroll"])) : createCommentVNode("v-if", true)
|
|
8447
8447
|
], 16);
|
|
8448
8448
|
}
|
|
8449
|
-
var VirtualList$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
8449
|
+
var VirtualList$1 = /* @__PURE__ */ _export_sfc(_sfc_main$29, [["render", _sfc_render$27], ["__file", "VirtualList.vue"]]);
|
|
8450
8450
|
|
|
8451
8451
|
var VirtualList = withInstall(VirtualList$1);
|
|
8452
8452
|
|
|
@@ -8805,7 +8805,7 @@ function useShouldRender(show, desdroyOnClose, animationEnd, renderFunction) {
|
|
|
8805
8805
|
return desdroyOnClose && animationEnd ? null : renderFunction == null ? void 0 : renderFunction();
|
|
8806
8806
|
}
|
|
8807
8807
|
|
|
8808
|
-
const _sfc_main$
|
|
8808
|
+
const _sfc_main$28 = defineComponent({
|
|
8809
8809
|
name: "OptionList",
|
|
8810
8810
|
components: {
|
|
8811
8811
|
VirtualList,
|
|
@@ -9055,9 +9055,9 @@ const _sfc_main$29 = defineComponent({
|
|
|
9055
9055
|
};
|
|
9056
9056
|
}
|
|
9057
9057
|
});
|
|
9058
|
-
const _hoisted_1$
|
|
9059
|
-
const _hoisted_2$
|
|
9060
|
-
function _sfc_render$
|
|
9058
|
+
const _hoisted_1$Y = ["title", "onMousemove", "onClick"];
|
|
9059
|
+
const _hoisted_2$p = ["id"];
|
|
9060
|
+
function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9061
9061
|
const _component_u_checkbox = resolveComponent("u-checkbox");
|
|
9062
9062
|
const _component_URoundCheck = resolveComponent("URoundCheck");
|
|
9063
9063
|
const _component_UIcon = resolveComponent("UIcon");
|
|
@@ -9084,6 +9084,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9084
9084
|
_: 1
|
|
9085
9085
|
}, 8, ["class", "model-value", "indeterminate", "disabled", "onChange"])
|
|
9086
9086
|
], 34)) : createCommentVNode("v-if", true),
|
|
9087
|
+
renderSlot(_ctx.$slots, "top"),
|
|
9087
9088
|
createVNode(_component_VirtualList, {
|
|
9088
9089
|
ref: "listRef",
|
|
9089
9090
|
"prefix-cls": `${_ctx.prefixCls}-dropdown-list`,
|
|
@@ -9164,7 +9165,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9164
9165
|
]),
|
|
9165
9166
|
_: 1
|
|
9166
9167
|
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
9167
|
-
], 46, _hoisted_1$
|
|
9168
|
+
], 46, _hoisted_1$Y))
|
|
9168
9169
|
]),
|
|
9169
9170
|
_: 1
|
|
9170
9171
|
}, 8, ["prefix-cls", "data", "height", "item-height", "virtual", "data-color", "onScrollAtTop", "onScrollAtBottom"])
|
|
@@ -9177,9 +9178,9 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9177
9178
|
}, ["prevent"]))
|
|
9178
9179
|
}, [
|
|
9179
9180
|
renderSlot(_ctx.$slots, "empty")
|
|
9180
|
-
], 42, _hoisted_2$
|
|
9181
|
+
], 42, _hoisted_2$p));
|
|
9181
9182
|
}
|
|
9182
|
-
var DropdownMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9183
|
+
var DropdownMenu$1 = /* @__PURE__ */ _export_sfc(_sfc_main$28, [["render", _sfc_render$26], ["__file", "DropdownMenu.vue"]]);
|
|
9183
9184
|
|
|
9184
9185
|
const getInnerText = (children) => {
|
|
9185
9186
|
if (children && children.length > 0) {
|
|
@@ -9546,7 +9547,7 @@ const autoCompleteEmits = {
|
|
|
9546
9547
|
select: (val) => typeof val === "string"
|
|
9547
9548
|
};
|
|
9548
9549
|
|
|
9549
|
-
const _sfc_main$
|
|
9550
|
+
const _sfc_main$27 = defineComponent({
|
|
9550
9551
|
name: "UAutoComplete",
|
|
9551
9552
|
components: {
|
|
9552
9553
|
Popup,
|
|
@@ -9673,7 +9674,7 @@ const _sfc_main$28 = defineComponent({
|
|
|
9673
9674
|
};
|
|
9674
9675
|
}
|
|
9675
9676
|
});
|
|
9676
|
-
function _sfc_render$
|
|
9677
|
+
function _sfc_render$25(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9677
9678
|
const _component_UInput = resolveComponent("UInput");
|
|
9678
9679
|
const _component_ULineLoading = resolveComponent("ULineLoading");
|
|
9679
9680
|
const _component_UIcon = resolveComponent("UIcon");
|
|
@@ -9751,7 +9752,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9751
9752
|
}, 8, ["prefix-cls", "visible", "popup-class", "popup-style", "click-outside"])
|
|
9752
9753
|
], 2);
|
|
9753
9754
|
}
|
|
9754
|
-
var AutoComplete = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
9755
|
+
var AutoComplete = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["render", _sfc_render$25], ["__file", "AutoComplete.vue"]]);
|
|
9755
9756
|
|
|
9756
9757
|
const selectProps = {
|
|
9757
9758
|
modelValue: {
|
|
@@ -9820,7 +9821,7 @@ const selectProps = {
|
|
|
9820
9821
|
type: Function
|
|
9821
9822
|
},
|
|
9822
9823
|
maxTagTextLength: {
|
|
9823
|
-
type: Number
|
|
9824
|
+
type: [Number, String]
|
|
9824
9825
|
},
|
|
9825
9826
|
tagRender: {
|
|
9826
9827
|
type: Function
|
|
@@ -10098,7 +10099,7 @@ const anchorLinkEmits = {
|
|
|
10098
10099
|
change: (href, ev) => typeof href === "string" && ev instanceof Event
|
|
10099
10100
|
};
|
|
10100
10101
|
|
|
10101
|
-
const _sfc_main$
|
|
10102
|
+
const _sfc_main$26 = defineComponent({
|
|
10102
10103
|
name: "UAnchor",
|
|
10103
10104
|
props: anchorProps,
|
|
10104
10105
|
emits: anchorEmits,
|
|
@@ -10298,7 +10299,7 @@ const _sfc_main$27 = defineComponent({
|
|
|
10298
10299
|
};
|
|
10299
10300
|
}
|
|
10300
10301
|
});
|
|
10301
|
-
function _sfc_render$
|
|
10302
|
+
function _sfc_render$24(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10302
10303
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.wrapperComponent), {
|
|
10303
10304
|
container: _ctx.container,
|
|
10304
10305
|
"offset-top": _ctx.offsetTop,
|
|
@@ -10330,9 +10331,9 @@ function _sfc_render$25(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10330
10331
|
_: 3
|
|
10331
10332
|
}, 40, ["container", "offset-top", "offset-bottom", "onOnChange"]);
|
|
10332
10333
|
}
|
|
10333
|
-
var Anchor = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10334
|
+
var Anchor = /* @__PURE__ */ _export_sfc(_sfc_main$26, [["render", _sfc_render$24], ["__file", "Anchor.vue"]]);
|
|
10334
10335
|
|
|
10335
|
-
const _sfc_main$
|
|
10336
|
+
const _sfc_main$25 = defineComponent({
|
|
10336
10337
|
name: "UAnchorLink",
|
|
10337
10338
|
props: anchorLinkProps,
|
|
10338
10339
|
emits: anchorLinkEmits,
|
|
@@ -10371,8 +10372,8 @@ const _sfc_main$26 = defineComponent({
|
|
|
10371
10372
|
};
|
|
10372
10373
|
}
|
|
10373
10374
|
});
|
|
10374
|
-
const _hoisted_1$
|
|
10375
|
-
function _sfc_render$
|
|
10375
|
+
const _hoisted_1$X = ["href", "data-scroll-offset", "data-href", "title"];
|
|
10376
|
+
function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10376
10377
|
return openBlock(), createElementBlock("div", {
|
|
10377
10378
|
class: normalizeClass([`${_ctx.prefixCls}`, { [`${_ctx.prefixCls}-active`]: !!_ctx.anchorLinkClasses }])
|
|
10378
10379
|
}, [
|
|
@@ -10383,11 +10384,11 @@ function _sfc_render$24(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10383
10384
|
"data-href": _ctx.href,
|
|
10384
10385
|
title: _ctx.title,
|
|
10385
10386
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.goAnchor && _ctx.goAnchor(...args), ["prevent"]))
|
|
10386
|
-
}, toDisplayString(_ctx.title), 11, _hoisted_1$
|
|
10387
|
+
}, toDisplayString(_ctx.title), 11, _hoisted_1$X),
|
|
10387
10388
|
renderSlot(_ctx.$slots, "default")
|
|
10388
10389
|
], 2);
|
|
10389
10390
|
}
|
|
10390
|
-
var AnchorLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10391
|
+
var AnchorLink = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$23], ["__file", "AnchorLink.vue"]]);
|
|
10391
10392
|
|
|
10392
10393
|
const UAnchor = withInstall(Anchor, { Link: AnchorLink });
|
|
10393
10394
|
|
|
@@ -10421,7 +10422,7 @@ const avatarEmits = {
|
|
|
10421
10422
|
};
|
|
10422
10423
|
|
|
10423
10424
|
const sizeList = ["small", "large", "default"];
|
|
10424
|
-
const _sfc_main$
|
|
10425
|
+
const _sfc_main$24 = defineComponent({
|
|
10425
10426
|
name: "UAvatar",
|
|
10426
10427
|
components: {
|
|
10427
10428
|
UIcon
|
|
@@ -10493,8 +10494,8 @@ const _sfc_main$25 = defineComponent({
|
|
|
10493
10494
|
};
|
|
10494
10495
|
}
|
|
10495
10496
|
});
|
|
10496
|
-
const _hoisted_1$
|
|
10497
|
-
function _sfc_render$
|
|
10497
|
+
const _hoisted_1$W = ["src"];
|
|
10498
|
+
function _sfc_render$22(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10498
10499
|
const _component_UIcon = resolveComponent("UIcon");
|
|
10499
10500
|
return openBlock(), createElementBlock("span", {
|
|
10500
10501
|
ref: "avatar",
|
|
@@ -10513,7 +10514,7 @@ function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10513
10514
|
key: 0,
|
|
10514
10515
|
src: _ctx.src,
|
|
10515
10516
|
onError: _cache[0] || (_cache[0] = (...args) => _ctx.handleError && _ctx.handleError(...args))
|
|
10516
|
-
}, null, 40, _hoisted_1$
|
|
10517
|
+
}, null, 40, _hoisted_1$W)) : _ctx.icon ? (openBlock(), createBlock(_component_UIcon, { key: 1 }, {
|
|
10517
10518
|
default: withCtx(() => [
|
|
10518
10519
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
|
|
10519
10520
|
]),
|
|
@@ -10528,7 +10529,7 @@ function _sfc_render$23(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10528
10529
|
], 6))
|
|
10529
10530
|
], 6);
|
|
10530
10531
|
}
|
|
10531
|
-
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10532
|
+
var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$24, [["render", _sfc_render$22], ["__file", "Avatar.vue"]]);
|
|
10532
10533
|
|
|
10533
10534
|
const popoverTrigger = ["hover", "focus", "click", "contextmenu"];
|
|
10534
10535
|
const popoverType = ["popover", "popConfirm"];
|
|
@@ -10596,7 +10597,7 @@ const popoverEmits = {
|
|
|
10596
10597
|
"update:visible": (v) => typeof v === "boolean"
|
|
10597
10598
|
};
|
|
10598
10599
|
|
|
10599
|
-
const _sfc_main$
|
|
10600
|
+
const _sfc_main$23 = defineComponent({
|
|
10600
10601
|
name: "UPopover",
|
|
10601
10602
|
components: {
|
|
10602
10603
|
Popup
|
|
@@ -10679,7 +10680,7 @@ const _sfc_main$24 = defineComponent({
|
|
|
10679
10680
|
};
|
|
10680
10681
|
}
|
|
10681
10682
|
});
|
|
10682
|
-
function _sfc_render$
|
|
10683
|
+
function _sfc_render$21(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10683
10684
|
const _component_Popup = resolveComponent("Popup");
|
|
10684
10685
|
return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(_component_Popup, {
|
|
10685
10686
|
key: 1,
|
|
@@ -10736,7 +10737,7 @@ function _sfc_render$22(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10736
10737
|
_: 3
|
|
10737
10738
|
}, 8, ["class", "style", "prefix-cls", "popup-class", "popup-style", "visible", "placement", "trigger", "mouse-enter-delay", "offset", "destroy-popup-on-hide", "onPopupVisibleChange"]));
|
|
10738
10739
|
}
|
|
10739
|
-
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10740
|
+
var Popover = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$21], ["__file", "Popover.vue"]]);
|
|
10740
10741
|
|
|
10741
10742
|
var AvatarGroup = defineComponent({
|
|
10742
10743
|
name: "UAvatarGroup",
|
|
@@ -10812,7 +10813,7 @@ const backTopProps = {
|
|
|
10812
10813
|
}
|
|
10813
10814
|
};
|
|
10814
10815
|
|
|
10815
|
-
const _sfc_main$
|
|
10816
|
+
const _sfc_main$22 = defineComponent({
|
|
10816
10817
|
name: "UBackTop",
|
|
10817
10818
|
components: {
|
|
10818
10819
|
UIcon,
|
|
@@ -10879,7 +10880,7 @@ const _sfc_main$23 = defineComponent({
|
|
|
10879
10880
|
};
|
|
10880
10881
|
}
|
|
10881
10882
|
});
|
|
10882
|
-
function _sfc_render$
|
|
10883
|
+
function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10883
10884
|
const _component_ULineUp = resolveComponent("ULineUp");
|
|
10884
10885
|
const _component_UIcon = resolveComponent("UIcon");
|
|
10885
10886
|
return openBlock(), createElementBlock("div", {
|
|
@@ -10901,7 +10902,7 @@ function _sfc_render$21(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10901
10902
|
])
|
|
10902
10903
|
], 6);
|
|
10903
10904
|
}
|
|
10904
|
-
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
10905
|
+
var BackTop = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$20], ["__file", "BackTop.vue"]]);
|
|
10905
10906
|
|
|
10906
10907
|
const UBackTop = withInstall(BackTop);
|
|
10907
10908
|
|
|
@@ -10950,7 +10951,7 @@ const badgeProps = {
|
|
|
10950
10951
|
};
|
|
10951
10952
|
|
|
10952
10953
|
const initColorList = colorType.toString().split(",");
|
|
10953
|
-
const _sfc_main$
|
|
10954
|
+
const _sfc_main$21 = defineComponent({
|
|
10954
10955
|
name: "UBadge",
|
|
10955
10956
|
props: badgeProps,
|
|
10956
10957
|
setup(props) {
|
|
@@ -11042,10 +11043,10 @@ const _sfc_main$22 = defineComponent({
|
|
|
11042
11043
|
};
|
|
11043
11044
|
}
|
|
11044
11045
|
});
|
|
11045
|
-
const _hoisted_1$
|
|
11046
|
-
const _hoisted_2$
|
|
11047
|
-
const _hoisted_3$
|
|
11048
|
-
function _sfc_render$
|
|
11046
|
+
const _hoisted_1$V = ["data-color"];
|
|
11047
|
+
const _hoisted_2$o = { class: "uui-badge-status-text" };
|
|
11048
|
+
const _hoisted_3$6 = ["data-color"];
|
|
11049
|
+
function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11049
11050
|
return _ctx.dot ? (openBlock(), createElementBlock("span", {
|
|
11050
11051
|
key: 0,
|
|
11051
11052
|
class: normalizeClass(_ctx.prefixCls)
|
|
@@ -11071,8 +11072,8 @@ function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11071
11072
|
]),
|
|
11072
11073
|
"data-color": _ctx.computedColor,
|
|
11073
11074
|
style: normalizeStyle(_ctx.statusStyles)
|
|
11074
|
-
}, null, 14, _hoisted_1$
|
|
11075
|
-
createElementVNode("span", _hoisted_2$
|
|
11075
|
+
}, null, 14, _hoisted_1$V),
|
|
11076
|
+
createElementVNode("span", _hoisted_2$o, [
|
|
11076
11077
|
renderSlot(_ctx.$slots, "text", {}, () => [
|
|
11077
11078
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
11078
11079
|
])
|
|
@@ -11110,12 +11111,12 @@ function _sfc_render$20(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11110
11111
|
renderSlot(_ctx.$slots, "text", {}, () => [
|
|
11111
11112
|
createTextVNode(toDisplayString(_ctx.finalCount), 1)
|
|
11112
11113
|
])
|
|
11113
|
-
], 14, _hoisted_3$
|
|
11114
|
+
], 14, _hoisted_3$6)), [
|
|
11114
11115
|
[vShow, _ctx.badgeShow]
|
|
11115
11116
|
]) : createCommentVNode("v-if", true)
|
|
11116
11117
|
], 2));
|
|
11117
11118
|
}
|
|
11118
|
-
var Badge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11119
|
+
var Badge = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$1$], ["__file", "Badge.vue"]]);
|
|
11119
11120
|
|
|
11120
11121
|
const UBadge = withInstall(Badge);
|
|
11121
11122
|
|
|
@@ -11315,7 +11316,7 @@ const menuItemGroupProps = {
|
|
|
11315
11316
|
};
|
|
11316
11317
|
|
|
11317
11318
|
let guid$1 = -1;
|
|
11318
|
-
const _sfc_main$
|
|
11319
|
+
const _sfc_main$20 = defineComponent({
|
|
11319
11320
|
name: "USubMenu",
|
|
11320
11321
|
components: {
|
|
11321
11322
|
Popup,
|
|
@@ -11448,11 +11449,11 @@ const _sfc_main$21 = defineComponent({
|
|
|
11448
11449
|
};
|
|
11449
11450
|
}
|
|
11450
11451
|
});
|
|
11451
|
-
const _hoisted_1$
|
|
11452
|
-
const _hoisted_2$
|
|
11453
|
-
const _hoisted_3$
|
|
11452
|
+
const _hoisted_1$U = ["aria-expanded", "aria-owns"];
|
|
11453
|
+
const _hoisted_2$n = ["id"];
|
|
11454
|
+
const _hoisted_3$5 = ["data-color", "aria-owns"];
|
|
11454
11455
|
const _hoisted_4$2 = ["id"];
|
|
11455
|
-
function _sfc_render$
|
|
11456
|
+
function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11456
11457
|
const _component_ULineDown = resolveComponent("ULineDown");
|
|
11457
11458
|
const _component_UIcon = resolveComponent("UIcon");
|
|
11458
11459
|
const _component_CollapseTransition = resolveComponent("CollapseTransition");
|
|
@@ -11490,7 +11491,7 @@ function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11490
11491
|
]),
|
|
11491
11492
|
_: 1
|
|
11492
11493
|
}, 8, ["class"])
|
|
11493
|
-
], 14, _hoisted_1$
|
|
11494
|
+
], 14, _hoisted_1$U),
|
|
11494
11495
|
createCommentVNode(' <transition name="slide-up"> '),
|
|
11495
11496
|
createVNode(_component_CollapseTransition, { appear: "" }, {
|
|
11496
11497
|
default: withCtx(() => [
|
|
@@ -11500,7 +11501,7 @@ function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11500
11501
|
style: normalizeStyle(_ctx.subMenuStyle)
|
|
11501
11502
|
}, [
|
|
11502
11503
|
renderSlot(_ctx.$slots, "default")
|
|
11503
|
-
], 14, _hoisted_2$
|
|
11504
|
+
], 14, _hoisted_2$n), [
|
|
11504
11505
|
[vShow, _ctx.isOpen]
|
|
11505
11506
|
])
|
|
11506
11507
|
]),
|
|
@@ -11552,13 +11553,13 @@ function _sfc_render$1$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11552
11553
|
]),
|
|
11553
11554
|
_: 1
|
|
11554
11555
|
}, 8, ["class"])
|
|
11555
|
-
], 10, _hoisted_3$
|
|
11556
|
+
], 10, _hoisted_3$5)
|
|
11556
11557
|
]),
|
|
11557
11558
|
_: 3
|
|
11558
11559
|
}, 8, ["aria-owns", "popup-class", "prefix", "placement", "offset", "trigger", "mouse-enter-delay", "mouse-leave-delay", "transition-name", "get-popup-container", "onPopupVisibleChange", "onClick"]))
|
|
11559
11560
|
], 2);
|
|
11560
11561
|
}
|
|
11561
|
-
var SubMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11562
|
+
var SubMenu = /* @__PURE__ */ _export_sfc(_sfc_main$20, [["render", _sfc_render$1_], ["__file", "SubMenu.vue"]]);
|
|
11562
11563
|
|
|
11563
11564
|
const FLOAT_PRECISION_ADJUST = 0.5;
|
|
11564
11565
|
const getWidth$1 = (elem) => {
|
|
@@ -11948,7 +11949,7 @@ const tooltipEmits = {
|
|
|
11948
11949
|
"update:visible": (v) => typeof v === "boolean"
|
|
11949
11950
|
};
|
|
11950
11951
|
|
|
11951
|
-
const _sfc_main$
|
|
11952
|
+
const _sfc_main$1$ = defineComponent({
|
|
11952
11953
|
name: "UTooltip",
|
|
11953
11954
|
components: {
|
|
11954
11955
|
Popup
|
|
@@ -12021,9 +12022,9 @@ const _sfc_main$20 = defineComponent({
|
|
|
12021
12022
|
};
|
|
12022
12023
|
}
|
|
12023
12024
|
});
|
|
12024
|
-
const _hoisted_1$
|
|
12025
|
-
const _hoisted_2$
|
|
12026
|
-
function _sfc_render$
|
|
12025
|
+
const _hoisted_1$T = ["data-color"];
|
|
12026
|
+
const _hoisted_2$m = ["data-color"];
|
|
12027
|
+
function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12027
12028
|
const _component_Popup = resolveComponent("Popup");
|
|
12028
12029
|
return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(_component_Popup, mergeProps({
|
|
12029
12030
|
key: 1,
|
|
@@ -12045,7 +12046,7 @@ function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12045
12046
|
class: normalizeClass(`${_ctx.prefixCls}-arrow`),
|
|
12046
12047
|
"data-color": _ctx.color,
|
|
12047
12048
|
style: normalizeStyle(_ctx.arrowStyle)
|
|
12048
|
-
}, null, 14, _hoisted_1$
|
|
12049
|
+
}, null, 14, _hoisted_1$T),
|
|
12049
12050
|
createElementVNode("div", {
|
|
12050
12051
|
ref: "innerRef",
|
|
12051
12052
|
class: normalizeClass(`${_ctx.prefixCls}-inner`),
|
|
@@ -12055,7 +12056,7 @@ function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12055
12056
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
12056
12057
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
12057
12058
|
])
|
|
12058
|
-
], 10, _hoisted_2$
|
|
12059
|
+
], 10, _hoisted_2$m)
|
|
12059
12060
|
]),
|
|
12060
12061
|
default: withCtx(() => [
|
|
12061
12062
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -12063,12 +12064,12 @@ function _sfc_render$1_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12063
12064
|
_: 3
|
|
12064
12065
|
}, 16, ["prefix-cls", "popup-class", "popup-style", "visible", "placement", "trigger", "offset", "mouse-enter-delay", "mouse-leave-delay", "destroy-popup-on-hide", "onPopupVisibleChange"]));
|
|
12065
12066
|
}
|
|
12066
|
-
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12067
|
+
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["render", _sfc_render$1Z], ["__file", "Tooltip.vue"]]);
|
|
12067
12068
|
|
|
12068
12069
|
const UTooltip = withInstall(Tooltip);
|
|
12069
12070
|
|
|
12070
12071
|
let guid = -1;
|
|
12071
|
-
const _sfc_main$
|
|
12072
|
+
const _sfc_main$1_ = defineComponent({
|
|
12072
12073
|
name: "UMenuItem",
|
|
12073
12074
|
components: {
|
|
12074
12075
|
UTooltip
|
|
@@ -12156,8 +12157,8 @@ const _sfc_main$1$ = defineComponent({
|
|
|
12156
12157
|
};
|
|
12157
12158
|
}
|
|
12158
12159
|
});
|
|
12159
|
-
const _hoisted_1$
|
|
12160
|
-
function _sfc_render$
|
|
12160
|
+
const _hoisted_1$S = ["data-color"];
|
|
12161
|
+
function _sfc_render$1Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12161
12162
|
const _component_UTooltip = resolveComponent("UTooltip");
|
|
12162
12163
|
return openBlock(), createBlock(_component_UTooltip, {
|
|
12163
12164
|
title: _ctx.title,
|
|
@@ -12183,14 +12184,14 @@ function _sfc_render$1Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12183
12184
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
12184
12185
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
12185
12186
|
])
|
|
12186
|
-
], 16, _hoisted_1$
|
|
12187
|
+
], 16, _hoisted_1$S)
|
|
12187
12188
|
]),
|
|
12188
12189
|
_: 3
|
|
12189
12190
|
}, 8, ["title", "disabled", "class"]);
|
|
12190
12191
|
}
|
|
12191
|
-
var MenuItem$2 = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12192
|
+
var MenuItem$2 = /* @__PURE__ */ _export_sfc(_sfc_main$1_, [["render", _sfc_render$1Y], ["__file", "MenuItem.vue"]]);
|
|
12192
12193
|
|
|
12193
|
-
const _sfc_main$
|
|
12194
|
+
const _sfc_main$1Z = defineComponent({
|
|
12194
12195
|
name: "UMenuItemGroup",
|
|
12195
12196
|
props: menuItemGroupProps,
|
|
12196
12197
|
setup() {
|
|
@@ -12200,7 +12201,7 @@ const _sfc_main$1_ = defineComponent({
|
|
|
12200
12201
|
};
|
|
12201
12202
|
}
|
|
12202
12203
|
});
|
|
12203
|
-
function _sfc_render$
|
|
12204
|
+
function _sfc_render$1X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12204
12205
|
return openBlock(), createElementBlock("li", {
|
|
12205
12206
|
class: normalizeClass(`${_ctx.rootPrefixCls}-item-group`)
|
|
12206
12207
|
}, [
|
|
@@ -12218,9 +12219,9 @@ function _sfc_render$1Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12218
12219
|
], 2)
|
|
12219
12220
|
], 2);
|
|
12220
12221
|
}
|
|
12221
|
-
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12222
|
+
var MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1X], ["__file", "MenuItemGroup.vue"]]);
|
|
12222
12223
|
|
|
12223
|
-
const _sfc_main$
|
|
12224
|
+
const _sfc_main$1Y = defineComponent({
|
|
12224
12225
|
name: "UMenuDivider",
|
|
12225
12226
|
setup() {
|
|
12226
12227
|
const { rootPrefixCls } = inject("menuStore", {});
|
|
@@ -12229,12 +12230,12 @@ const _sfc_main$1Z = defineComponent({
|
|
|
12229
12230
|
};
|
|
12230
12231
|
}
|
|
12231
12232
|
});
|
|
12232
|
-
function _sfc_render$
|
|
12233
|
+
function _sfc_render$1W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12233
12234
|
return openBlock(), createElementBlock("li", {
|
|
12234
12235
|
class: normalizeClass([`${_ctx.rootPrefixCls}-item-divider`])
|
|
12235
12236
|
}, null, 2);
|
|
12236
12237
|
}
|
|
12237
|
-
var MenuDivider = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12238
|
+
var MenuDivider = /* @__PURE__ */ _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1W], ["__file", "MenuDivider.vue"]]);
|
|
12238
12239
|
|
|
12239
12240
|
const UMenu = withInstall(Menu, {
|
|
12240
12241
|
Item: MenuItem$2,
|
|
@@ -12315,7 +12316,7 @@ const dropdownEmits = {
|
|
|
12315
12316
|
"update:visible": (v) => typeof v === "boolean"
|
|
12316
12317
|
};
|
|
12317
12318
|
|
|
12318
|
-
const _sfc_main$
|
|
12319
|
+
const _sfc_main$1X = defineComponent({
|
|
12319
12320
|
name: "UDropdown",
|
|
12320
12321
|
components: {
|
|
12321
12322
|
Popup
|
|
@@ -12364,7 +12365,7 @@ const _sfc_main$1Y = defineComponent({
|
|
|
12364
12365
|
};
|
|
12365
12366
|
}
|
|
12366
12367
|
});
|
|
12367
|
-
function _sfc_render$
|
|
12368
|
+
function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12368
12369
|
const _component_Popup = resolveComponent("Popup");
|
|
12369
12370
|
return openBlock(), createBlock(_component_Popup, {
|
|
12370
12371
|
placement: _ctx.placement,
|
|
@@ -12398,9 +12399,9 @@ function _sfc_render$1W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12398
12399
|
_: 3
|
|
12399
12400
|
}, 8, ["placement", "prefix-cls", "class", "disabled", "style", "offset", "visible", "trigger", "popup-class", "popup-style", "mouse-enter-delay", "mouse-leave-delay", "transition-name", "destroy-popup-on-hide", "get-popup-container", "modifiers", "onPopupVisibleChange"]);
|
|
12400
12401
|
}
|
|
12401
|
-
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12402
|
+
var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main$1X, [["render", _sfc_render$1V], ["__file", "Dropdown.vue"]]);
|
|
12402
12403
|
|
|
12403
|
-
function _isSlot$
|
|
12404
|
+
function _isSlot$6(s) {
|
|
12404
12405
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12405
12406
|
}
|
|
12406
12407
|
var DropdownMenu = defineComponent({
|
|
@@ -12464,7 +12465,7 @@ var DropdownMenu = defineComponent({
|
|
|
12464
12465
|
let _slot;
|
|
12465
12466
|
return createVNode(UMenu.ItemGroup, {
|
|
12466
12467
|
"title": m.title
|
|
12467
|
-
}, _isSlot$
|
|
12468
|
+
}, _isSlot$6(_slot = m.children.map(renderItem)) ? _slot : {
|
|
12468
12469
|
default: () => [_slot]
|
|
12469
12470
|
});
|
|
12470
12471
|
}
|
|
@@ -12511,7 +12512,7 @@ var DropdownMenu = defineComponent({
|
|
|
12511
12512
|
[`${prefixCls}-menu-with-icon`]: this.icon
|
|
12512
12513
|
},
|
|
12513
12514
|
"style": this.style
|
|
12514
|
-
}, _isSlot$
|
|
12515
|
+
}, _isSlot$6(menus) ? menus : {
|
|
12515
12516
|
default: () => [menus]
|
|
12516
12517
|
});
|
|
12517
12518
|
}
|
|
@@ -12600,7 +12601,7 @@ const buttonGroupProps = {
|
|
|
12600
12601
|
}
|
|
12601
12602
|
};
|
|
12602
12603
|
|
|
12603
|
-
const _sfc_main$
|
|
12604
|
+
const _sfc_main$1W = defineComponent({
|
|
12604
12605
|
name: "UButton",
|
|
12605
12606
|
components: {
|
|
12606
12607
|
UIcon
|
|
@@ -12642,18 +12643,18 @@ const _sfc_main$1X = defineComponent({
|
|
|
12642
12643
|
};
|
|
12643
12644
|
}
|
|
12644
12645
|
});
|
|
12645
|
-
const _hoisted_1$
|
|
12646
|
-
const _hoisted_2$
|
|
12646
|
+
const _hoisted_1$R = ["data-color", "type", "disabled"];
|
|
12647
|
+
const _hoisted_2$l = {
|
|
12647
12648
|
width: "24",
|
|
12648
12649
|
height: "24",
|
|
12649
12650
|
viewBox: "0 0 24 24",
|
|
12650
12651
|
xmlns: "http://www.w3.org/2000/svg"
|
|
12651
12652
|
};
|
|
12652
|
-
const _hoisted_3$
|
|
12653
|
+
const _hoisted_3$4 = { "clip-path": "url(#clip0_165_1518)" };
|
|
12653
12654
|
const _hoisted_4$1 = ["fill"];
|
|
12654
12655
|
const _hoisted_5 = ["id"];
|
|
12655
12656
|
const _hoisted_6 = { key: 2 };
|
|
12656
|
-
function _sfc_render$
|
|
12657
|
+
function _sfc_render$1U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12657
12658
|
const _component_UIcon = resolveComponent("UIcon");
|
|
12658
12659
|
return openBlock(), createElementBlock("button", {
|
|
12659
12660
|
ref: "buttonRef",
|
|
@@ -12683,8 +12684,8 @@ function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12683
12684
|
spin: ""
|
|
12684
12685
|
}, {
|
|
12685
12686
|
default: withCtx(() => [
|
|
12686
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
12687
|
-
createElementVNode("g", _hoisted_3$
|
|
12687
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$l, [
|
|
12688
|
+
createElementVNode("g", _hoisted_3$4, [
|
|
12688
12689
|
createElementVNode("path", {
|
|
12689
12690
|
"fill-rule": "evenodd",
|
|
12690
12691
|
"clip-rule": "evenodd",
|
|
@@ -12728,11 +12729,11 @@ function _sfc_render$1V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12728
12729
|
_ctx.showSlot ? (openBlock(), createElementBlock("span", _hoisted_6, [
|
|
12729
12730
|
renderSlot(_ctx.$slots, "default")
|
|
12730
12731
|
])) : createCommentVNode("v-if", true)
|
|
12731
|
-
], 10, _hoisted_1$
|
|
12732
|
+
], 10, _hoisted_1$R);
|
|
12732
12733
|
}
|
|
12733
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12734
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1W, [["render", _sfc_render$1U], ["__file", "Button.vue"]]);
|
|
12734
12735
|
|
|
12735
|
-
const _sfc_main$
|
|
12736
|
+
const _sfc_main$1V = defineComponent({
|
|
12736
12737
|
name: "UButtonGroup",
|
|
12737
12738
|
props: buttonGroupProps,
|
|
12738
12739
|
setup() {
|
|
@@ -12742,7 +12743,7 @@ const _sfc_main$1W = defineComponent({
|
|
|
12742
12743
|
};
|
|
12743
12744
|
}
|
|
12744
12745
|
});
|
|
12745
|
-
function _sfc_render$
|
|
12746
|
+
function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12746
12747
|
return openBlock(), createElementBlock("div", {
|
|
12747
12748
|
class: normalizeClass([
|
|
12748
12749
|
`${_ctx.prefixCls}`,
|
|
@@ -12756,7 +12757,7 @@ function _sfc_render$1U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12756
12757
|
renderSlot(_ctx.$slots, "default")
|
|
12757
12758
|
], 2);
|
|
12758
12759
|
}
|
|
12759
|
-
var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12760
|
+
var ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["render", _sfc_render$1T], ["__file", "ButtonGroup.vue"]]);
|
|
12760
12761
|
|
|
12761
12762
|
const UButton = withInstall(Button, {
|
|
12762
12763
|
Group: ButtonGroup
|
|
@@ -12923,7 +12924,7 @@ var BreadcrumbItem = defineComponent({
|
|
|
12923
12924
|
}
|
|
12924
12925
|
});
|
|
12925
12926
|
|
|
12926
|
-
function _isSlot$
|
|
12927
|
+
function _isSlot$5(s) {
|
|
12927
12928
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12928
12929
|
}
|
|
12929
12930
|
const UMenuItem = UMenu.Item;
|
|
@@ -12993,11 +12994,11 @@ var Breadcrumb = defineComponent({
|
|
|
12993
12994
|
if (routeChildren && !!routeChildren.length) {
|
|
12994
12995
|
return () => {
|
|
12995
12996
|
let _slot2;
|
|
12996
|
-
return createVNode(UMenu, null, _isSlot$
|
|
12997
|
+
return createVNode(UMenu, null, _isSlot$5(_slot2 = routeChildren.map((routeChild, index) => {
|
|
12997
12998
|
let _slot;
|
|
12998
12999
|
return createVNode(UMenuItem, {
|
|
12999
13000
|
"key": index
|
|
13000
|
-
}, _isSlot$
|
|
13001
|
+
}, _isSlot$5(_slot = renderRouteItem(routeChild)) ? _slot : {
|
|
13001
13002
|
default: () => [_slot]
|
|
13002
13003
|
});
|
|
13003
13004
|
})) ? _slot2 : {
|
|
@@ -13414,7 +13415,7 @@ const checkboxGroupEmits = {
|
|
|
13414
13415
|
change: (v) => Array.isArray(v) && v.every((x) => x === void 0 || typeof x === "number" || typeof x === "string")
|
|
13415
13416
|
};
|
|
13416
13417
|
|
|
13417
|
-
const _sfc_main$
|
|
13418
|
+
const _sfc_main$1U = defineComponent({
|
|
13418
13419
|
name: "UCheckbox",
|
|
13419
13420
|
components: {
|
|
13420
13421
|
UIcon,
|
|
@@ -13525,9 +13526,9 @@ const _sfc_main$1V = defineComponent({
|
|
|
13525
13526
|
};
|
|
13526
13527
|
}
|
|
13527
13528
|
});
|
|
13528
|
-
const _hoisted_1$
|
|
13529
|
-
const _hoisted_2$
|
|
13530
|
-
function _sfc_render$
|
|
13529
|
+
const _hoisted_1$Q = ["data-color"];
|
|
13530
|
+
const _hoisted_2$k = ["disabled", "checked", "name"];
|
|
13531
|
+
function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13531
13532
|
const _component_USolidCheck = resolveComponent("USolidCheck");
|
|
13532
13533
|
const _component_USolidRemove = resolveComponent("USolidRemove");
|
|
13533
13534
|
const _component_UIcon = resolveComponent("UIcon");
|
|
@@ -13576,7 +13577,7 @@ function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13576
13577
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
13577
13578
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
13578
13579
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args))
|
|
13579
|
-
}, null, 42, _hoisted_2$
|
|
13580
|
+
}, null, 42, _hoisted_2$k)
|
|
13580
13581
|
], 2),
|
|
13581
13582
|
_ctx.showSlot ? (openBlock(), createElementBlock("span", {
|
|
13582
13583
|
key: 0,
|
|
@@ -13586,11 +13587,11 @@ function _sfc_render$1T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13586
13587
|
createTextVNode(toDisplayString(_ctx.value), 1)
|
|
13587
13588
|
])
|
|
13588
13589
|
], 2)) : createCommentVNode("v-if", true)
|
|
13589
|
-
], 10, _hoisted_1$
|
|
13590
|
+
], 10, _hoisted_1$Q);
|
|
13590
13591
|
}
|
|
13591
|
-
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13592
|
+
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1U, [["render", _sfc_render$1S], ["__file", "Checkbox.vue"]]);
|
|
13592
13593
|
|
|
13593
|
-
const _sfc_main$
|
|
13594
|
+
const _sfc_main$1T = defineComponent({
|
|
13594
13595
|
name: "UCheckboxGroup",
|
|
13595
13596
|
components: {
|
|
13596
13597
|
UIcon,
|
|
@@ -13659,9 +13660,9 @@ const _sfc_main$1U = defineComponent({
|
|
|
13659
13660
|
};
|
|
13660
13661
|
}
|
|
13661
13662
|
});
|
|
13662
|
-
const _hoisted_1$
|
|
13663
|
-
const _hoisted_2$
|
|
13664
|
-
function _sfc_render$
|
|
13663
|
+
const _hoisted_1$P = ["data-color"];
|
|
13664
|
+
const _hoisted_2$j = { key: 0 };
|
|
13665
|
+
function _sfc_render$1R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13665
13666
|
const _component_ULineLoading = resolveComponent("ULineLoading");
|
|
13666
13667
|
const _component_UIcon = resolveComponent("UIcon");
|
|
13667
13668
|
const _component_UCheckbox = resolveComponent("UCheckbox");
|
|
@@ -13673,7 +13674,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13673
13674
|
"data-color": _ctx.color
|
|
13674
13675
|
}, [
|
|
13675
13676
|
_ctx.hasSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13676
|
-
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
13677
|
+
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
|
|
13677
13678
|
createVNode(_component_UIcon, { spin: "" }, {
|
|
13678
13679
|
default: withCtx(() => [
|
|
13679
13680
|
createVNode(_component_ULineLoading)
|
|
@@ -13682,10 +13683,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13682
13683
|
}),
|
|
13683
13684
|
createTextVNode(" " + toDisplayString(_ctx.loadingText || _ctx.computedLocale.loadingText), 1)
|
|
13684
13685
|
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.options, (item, index) => {
|
|
13685
|
-
return openBlock(), createBlock(_component_UCheckbox, mergeProps({
|
|
13686
|
-
key: index,
|
|
13687
|
-
ref_for: true
|
|
13688
|
-
}, item), {
|
|
13686
|
+
return openBlock(), createBlock(_component_UCheckbox, mergeProps({ key: index }, { ref_for: true }, item), {
|
|
13689
13687
|
default: withCtx(() => [
|
|
13690
13688
|
createTextVNode(toDisplayString(item.label || item.value), 1)
|
|
13691
13689
|
]),
|
|
@@ -13693,16 +13691,16 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13693
13691
|
}, 1040);
|
|
13694
13692
|
}), 128))
|
|
13695
13693
|
], 64))
|
|
13696
|
-
], 10, _hoisted_1$
|
|
13694
|
+
], 10, _hoisted_1$P)
|
|
13697
13695
|
], 2);
|
|
13698
13696
|
}
|
|
13699
|
-
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13697
|
+
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1T, [["render", _sfc_render$1R], ["__file", "CheckboxGroup.vue"]]);
|
|
13700
13698
|
|
|
13701
13699
|
const UCheckbox = withInstall(Checkbox, {
|
|
13702
13700
|
Group: CheckboxGroup
|
|
13703
13701
|
});
|
|
13704
13702
|
|
|
13705
|
-
const _sfc_main$
|
|
13703
|
+
const _sfc_main$1S = defineComponent({
|
|
13706
13704
|
name: "SelectInput",
|
|
13707
13705
|
props: {
|
|
13708
13706
|
inputRef: {
|
|
@@ -13785,8 +13783,8 @@ const _sfc_main$1T = defineComponent({
|
|
|
13785
13783
|
};
|
|
13786
13784
|
}
|
|
13787
13785
|
});
|
|
13788
|
-
const _hoisted_1$
|
|
13789
|
-
function _sfc_render$
|
|
13786
|
+
const _hoisted_1$O = ["id", "aria-expanded", "aria-own", "aria-controls", "aria-activedescendant", "disabled", "tabindex", "autocomplete", "autofocus", "value", "readonly", "unselectable"];
|
|
13787
|
+
function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13790
13788
|
return openBlock(), createElementBlock("input", {
|
|
13791
13789
|
id: _ctx.id,
|
|
13792
13790
|
ref: _ctx.inputRef,
|
|
@@ -13814,11 +13812,11 @@ function _sfc_render$1R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13814
13812
|
onInput: _cache[5] || (_cache[5] = (...args) => _ctx.onChange && _ctx.onChange(...args)),
|
|
13815
13813
|
onCompositionstart: _cache[6] || (_cache[6] = (...args) => _ctx.onCompositionstart && _ctx.onCompositionstart(...args)),
|
|
13816
13814
|
onCompositionend: _cache[7] || (_cache[7] = (...args) => _ctx.onCompositionend && _ctx.onCompositionend(...args))
|
|
13817
|
-
}, null, 46, _hoisted_1$
|
|
13815
|
+
}, null, 46, _hoisted_1$O);
|
|
13818
13816
|
}
|
|
13819
|
-
var SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13817
|
+
var SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["render", _sfc_render$1Q], ["__file", "Input.vue"]]);
|
|
13820
13818
|
|
|
13821
|
-
const _sfc_main$
|
|
13819
|
+
const _sfc_main$1R = defineComponent({
|
|
13822
13820
|
name: "SingleSeletor",
|
|
13823
13821
|
components: {
|
|
13824
13822
|
Render,
|
|
@@ -13914,8 +13912,8 @@ const _sfc_main$1S = defineComponent({
|
|
|
13914
13912
|
};
|
|
13915
13913
|
}
|
|
13916
13914
|
});
|
|
13917
|
-
const _hoisted_1$
|
|
13918
|
-
function _sfc_render$
|
|
13915
|
+
const _hoisted_1$N = ["title"];
|
|
13916
|
+
function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13919
13917
|
const _component_SelectInput = resolveComponent("SelectInput");
|
|
13920
13918
|
const _component_Render = resolveComponent("Render");
|
|
13921
13919
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -13945,7 +13943,7 @@ function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13945
13943
|
createVNode(_component_Render, {
|
|
13946
13944
|
render: _ctx.getRender(_ctx.selectedItem.displayLabel)
|
|
13947
13945
|
}, null, 8, ["render"])
|
|
13948
|
-
], 10, _hoisted_1$
|
|
13946
|
+
], 10, _hoisted_1$N)) : createCommentVNode("v-if", true),
|
|
13949
13947
|
withDirectives(createElementVNode("div", {
|
|
13950
13948
|
class: normalizeClass(`${_ctx.prefixCls}-selection-placeholder`)
|
|
13951
13949
|
}, [
|
|
@@ -13955,361 +13953,518 @@ function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13955
13953
|
])
|
|
13956
13954
|
], 64);
|
|
13957
13955
|
}
|
|
13958
|
-
var SingleSelection = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13956
|
+
var SingleSelection = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["render", _sfc_render$1P], ["__file", "Single.vue"]]);
|
|
13959
13957
|
|
|
13960
13958
|
const UPopover = withInstall(Popover);
|
|
13961
13959
|
|
|
13962
13960
|
const REST_TAG_KEY = "__UUI_SELECT_MAX_REST_COUNT__";
|
|
13961
|
+
function useMultipleBase(props, emit) {
|
|
13962
|
+
const motionAppear = ref(false);
|
|
13963
|
+
const measureRef = ref();
|
|
13964
|
+
const inputWidth = ref(0);
|
|
13965
|
+
const mergedContainerWidth = computed(() => props.containerWrapperWidth || 0);
|
|
13966
|
+
const itemWidths = shallowRef(/* @__PURE__ */ new Map());
|
|
13967
|
+
const suffixWidth = shallowRef(0);
|
|
13968
|
+
const prevRestWidth = shallowRef(0);
|
|
13969
|
+
const restWidth = shallowRef(0);
|
|
13970
|
+
const displayCount = shallowRef(null);
|
|
13971
|
+
const restReady = shallowRef(false);
|
|
13972
|
+
const inputValue = computed(() => {
|
|
13973
|
+
return props.searchValue;
|
|
13974
|
+
});
|
|
13975
|
+
const inputEditable = computed(() => {
|
|
13976
|
+
return props.filterable && props.open;
|
|
13977
|
+
});
|
|
13978
|
+
const showPlaceholder = computed(() => {
|
|
13979
|
+
return !props.values.length && !inputValue.value;
|
|
13980
|
+
});
|
|
13981
|
+
const isNotRender = computed(() => {
|
|
13982
|
+
return !props.tagRender;
|
|
13983
|
+
});
|
|
13984
|
+
const mergedDisplayCount = computed(() => {
|
|
13985
|
+
if (displayCount.value === null) {
|
|
13986
|
+
return Number.MAX_SAFE_INTEGER;
|
|
13987
|
+
}
|
|
13988
|
+
return displayCount.value || 0;
|
|
13989
|
+
});
|
|
13990
|
+
const mergedRestWidth = computed(() => Math.max(prevRestWidth.value, restWidth.value));
|
|
13991
|
+
const omittedItems = computed(() => {
|
|
13992
|
+
return props.values.slice(mergedDisplayCount.value + 1);
|
|
13993
|
+
});
|
|
13994
|
+
const displayRest = computed(() => restReady.value && !!omittedItems.value.length);
|
|
13995
|
+
const baseDisplayValues = computed(() => {
|
|
13996
|
+
const { values, maxTagCount, maxTagTextLength, maxTagPlaceholder } = props;
|
|
13997
|
+
let restCount = 0;
|
|
13998
|
+
let _display = values;
|
|
13999
|
+
if (typeof maxTagCount === "number") {
|
|
14000
|
+
restCount = values.length - maxTagCount;
|
|
14001
|
+
_display = values.slice(0, maxTagCount);
|
|
14002
|
+
}
|
|
14003
|
+
if (typeof maxTagTextLength === "number") {
|
|
14004
|
+
_display = _display.map(({ displayLabel, ...rest }) => {
|
|
14005
|
+
let _label = displayLabel;
|
|
14006
|
+
if (typeof displayLabel === "string" || typeof displayLabel === "number") {
|
|
14007
|
+
const strLabel = String(_label);
|
|
14008
|
+
if (strLabel.length > maxTagTextLength) {
|
|
14009
|
+
_label = `${strLabel.slice(0, maxTagTextLength)}...`;
|
|
14010
|
+
}
|
|
14011
|
+
}
|
|
14012
|
+
return {
|
|
14013
|
+
...rest,
|
|
14014
|
+
displayLabel: _label
|
|
14015
|
+
};
|
|
14016
|
+
});
|
|
14017
|
+
}
|
|
14018
|
+
if (restCount > 0) {
|
|
14019
|
+
const rest = values.slice(maxTagCount);
|
|
14020
|
+
_display.push({
|
|
14021
|
+
key: REST_TAG_KEY,
|
|
14022
|
+
value: REST_TAG_KEY,
|
|
14023
|
+
displayLabel: maxTagPlaceholder(rest)
|
|
14024
|
+
});
|
|
14025
|
+
}
|
|
14026
|
+
return _display;
|
|
14027
|
+
});
|
|
14028
|
+
const overflowDisplayValues = computed(() => {
|
|
14029
|
+
const { maxTagPlaceholder } = props;
|
|
14030
|
+
let items = [];
|
|
14031
|
+
if (props.containerWrapperWidth === null) {
|
|
14032
|
+
items = props.values;
|
|
14033
|
+
} else {
|
|
14034
|
+
items = props.values.slice(0, Math.min(props.values.length, props.containerWrapperWidth / props.itemWidth));
|
|
14035
|
+
}
|
|
14036
|
+
items = [
|
|
14037
|
+
...items,
|
|
14038
|
+
{
|
|
14039
|
+
key: REST_TAG_KEY,
|
|
14040
|
+
value: REST_TAG_KEY,
|
|
14041
|
+
displayLabel: maxTagPlaceholder(omittedItems.value)
|
|
14042
|
+
}
|
|
14043
|
+
];
|
|
14044
|
+
return items;
|
|
14045
|
+
});
|
|
14046
|
+
const displayValues = computed(() => {
|
|
14047
|
+
return props.enableOverflow ? overflowDisplayValues.value : baseDisplayValues.value;
|
|
14048
|
+
});
|
|
14049
|
+
const closable = (item) => {
|
|
14050
|
+
return item.key !== REST_TAG_KEY && !item.disabled;
|
|
14051
|
+
};
|
|
14052
|
+
const onClose = (value, e) => {
|
|
14053
|
+
if (e && e.stopPropagation) {
|
|
14054
|
+
e.stopPropagation();
|
|
14055
|
+
}
|
|
14056
|
+
emit("select", value, { selected: false });
|
|
14057
|
+
};
|
|
14058
|
+
const getItemWidth = (index) => {
|
|
14059
|
+
return itemWidths.value.get(displayValues.value[index].value || displayValues.value[index].key);
|
|
14060
|
+
};
|
|
14061
|
+
const updateDisplayCount = (count, notReady) => {
|
|
14062
|
+
displayCount.value = count;
|
|
14063
|
+
if (!notReady) {
|
|
14064
|
+
restReady.value = count < props.values.length - 1;
|
|
14065
|
+
}
|
|
14066
|
+
};
|
|
14067
|
+
const onOverflowItemResize = ({ width }, item) => {
|
|
14068
|
+
const clone = new Map(itemWidths.value);
|
|
14069
|
+
const key = item.value || item.key;
|
|
14070
|
+
if (key === REST_TAG_KEY) {
|
|
14071
|
+
prevRestWidth.value = restWidth.value;
|
|
14072
|
+
restWidth.value = width;
|
|
14073
|
+
}
|
|
14074
|
+
if (width === null) {
|
|
14075
|
+
clone.delete(key);
|
|
14076
|
+
} else {
|
|
14077
|
+
clone.set(key, width);
|
|
14078
|
+
}
|
|
14079
|
+
itemWidths.value = clone;
|
|
14080
|
+
};
|
|
14081
|
+
const onSuffixResize = ({ width }) => {
|
|
14082
|
+
suffixWidth.value = width;
|
|
14083
|
+
};
|
|
14084
|
+
const onInputMouseDown = () => {
|
|
14085
|
+
emit("input-mousedown");
|
|
14086
|
+
};
|
|
14087
|
+
const onInputChange = (val) => {
|
|
14088
|
+
emit("input-change", val);
|
|
14089
|
+
};
|
|
14090
|
+
const onInputKeydown = (e) => {
|
|
14091
|
+
emit("input-keydown", e);
|
|
14092
|
+
};
|
|
14093
|
+
const onInputCompositionStart = (e) => {
|
|
14094
|
+
emit("input-compositionstart", e);
|
|
14095
|
+
};
|
|
14096
|
+
const onInputCompositionEnd = (e) => {
|
|
14097
|
+
emit("input-compositionend", e);
|
|
14098
|
+
};
|
|
14099
|
+
const onInputPaste = (e) => {
|
|
14100
|
+
emit("input-paste", e);
|
|
14101
|
+
};
|
|
14102
|
+
onMounted(() => {
|
|
14103
|
+
motionAppear.value = true;
|
|
14104
|
+
watch(
|
|
14105
|
+
inputValue,
|
|
14106
|
+
() => {
|
|
14107
|
+
inputWidth.value = measureRef.value.scrollWidth;
|
|
14108
|
+
},
|
|
14109
|
+
{ flush: "post" }
|
|
14110
|
+
);
|
|
14111
|
+
});
|
|
14112
|
+
watch([mergedContainerWidth, itemWidths, restWidth, suffixWidth, displayValues], () => {
|
|
14113
|
+
if (!props.enableOverflow)
|
|
14114
|
+
return;
|
|
14115
|
+
if (mergedContainerWidth.value && mergedRestWidth.value && displayValues.value) {
|
|
14116
|
+
let totalWidth = suffixWidth.value;
|
|
14117
|
+
const len = displayValues.value.filter((item) => item.key !== REST_TAG_KEY).length;
|
|
14118
|
+
const lastIndex = len - 1;
|
|
14119
|
+
if (!len) {
|
|
14120
|
+
updateDisplayCount(0);
|
|
14121
|
+
return;
|
|
14122
|
+
}
|
|
14123
|
+
for (let i = 0; i < len; i += 1) {
|
|
14124
|
+
const currentItemWidth = getItemWidth(i);
|
|
14125
|
+
if (currentItemWidth === void 0) {
|
|
14126
|
+
updateDisplayCount(i - 1, true);
|
|
14127
|
+
break;
|
|
14128
|
+
}
|
|
14129
|
+
totalWidth += currentItemWidth;
|
|
14130
|
+
if (lastIndex === 0 && totalWidth <= mergedContainerWidth.value || i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth.value) {
|
|
14131
|
+
updateDisplayCount(lastIndex);
|
|
14132
|
+
break;
|
|
14133
|
+
} else if (totalWidth + mergedRestWidth.value > mergedContainerWidth.value) {
|
|
14134
|
+
updateDisplayCount(i - 1);
|
|
14135
|
+
break;
|
|
14136
|
+
}
|
|
14137
|
+
}
|
|
14138
|
+
}
|
|
14139
|
+
});
|
|
14140
|
+
return {
|
|
14141
|
+
motionAppear,
|
|
14142
|
+
measureRef,
|
|
14143
|
+
inputWidth,
|
|
14144
|
+
inputValue,
|
|
14145
|
+
inputEditable,
|
|
14146
|
+
showPlaceholder,
|
|
14147
|
+
isNotRender,
|
|
14148
|
+
displayValues,
|
|
14149
|
+
displayRest,
|
|
14150
|
+
mergedDisplayCount,
|
|
14151
|
+
closable,
|
|
14152
|
+
onClose,
|
|
14153
|
+
onOverflowItemResize,
|
|
14154
|
+
onSuffixResize,
|
|
14155
|
+
onInputMouseDown,
|
|
14156
|
+
onInputChange,
|
|
14157
|
+
onInputKeydown,
|
|
14158
|
+
onInputCompositionStart,
|
|
14159
|
+
onInputCompositionEnd,
|
|
14160
|
+
onInputPaste,
|
|
14161
|
+
REST_TAG_KEY,
|
|
14162
|
+
getRender
|
|
14163
|
+
};
|
|
14164
|
+
}
|
|
14165
|
+
|
|
14166
|
+
function _isSlot$4(s) {
|
|
14167
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
14168
|
+
}
|
|
13963
14169
|
const defaultMaxTagPlaceholder = (ommittedValus) => `+ ${ommittedValus.length}...`;
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
SelectInput,
|
|
13968
|
-
Render,
|
|
13969
|
-
UPopover,
|
|
13970
|
-
UIcon,
|
|
13971
|
-
URoundClose
|
|
14170
|
+
const multipleBaseProps = {
|
|
14171
|
+
prefixCls: {
|
|
14172
|
+
type: String
|
|
13972
14173
|
},
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
|
|
13980
|
-
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
|
|
14014
|
-
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
type: Number,
|
|
14019
|
-
default: 99900
|
|
14020
|
-
},
|
|
14021
|
-
tagRender: {
|
|
14022
|
-
type: Function
|
|
14023
|
-
},
|
|
14024
|
-
removeIcon: {
|
|
14025
|
-
type: [String, Object]
|
|
14026
|
-
},
|
|
14027
|
-
isShowTagTooltip: {
|
|
14028
|
-
type: Boolean,
|
|
14029
|
-
default: false
|
|
14030
|
-
},
|
|
14031
|
-
popoverProps: {
|
|
14032
|
-
type: Object,
|
|
14033
|
-
default: () => ({})
|
|
14034
|
-
}
|
|
14174
|
+
values: {
|
|
14175
|
+
type: Array,
|
|
14176
|
+
default: () => []
|
|
14177
|
+
},
|
|
14178
|
+
searchValue: {
|
|
14179
|
+
type: String
|
|
14180
|
+
},
|
|
14181
|
+
filterable: {
|
|
14182
|
+
type: Boolean,
|
|
14183
|
+
default: false
|
|
14184
|
+
},
|
|
14185
|
+
disabled: {
|
|
14186
|
+
type: Boolean,
|
|
14187
|
+
default: void 0
|
|
14188
|
+
},
|
|
14189
|
+
open: {
|
|
14190
|
+
type: Boolean,
|
|
14191
|
+
default: void 0
|
|
14192
|
+
},
|
|
14193
|
+
inputRef: {
|
|
14194
|
+
type: Function
|
|
14195
|
+
},
|
|
14196
|
+
tagTransitionName: {
|
|
14197
|
+
type: String
|
|
14198
|
+
},
|
|
14199
|
+
maxTagCount: {
|
|
14200
|
+
type: Number
|
|
14201
|
+
},
|
|
14202
|
+
maxTagTextLength: {
|
|
14203
|
+
type: [Number, String]
|
|
14204
|
+
},
|
|
14205
|
+
maxTagPlaceholder: {
|
|
14206
|
+
type: Function,
|
|
14207
|
+
default: defaultMaxTagPlaceholder
|
|
14208
|
+
},
|
|
14209
|
+
maxTagTooltip: {
|
|
14210
|
+
type: Boolean,
|
|
14211
|
+
default: false
|
|
14212
|
+
},
|
|
14213
|
+
maxTagTooltipWidth: {
|
|
14214
|
+
type: Number,
|
|
14215
|
+
default: 99900
|
|
14216
|
+
},
|
|
14217
|
+
tagRender: {
|
|
14218
|
+
type: Function
|
|
14035
14219
|
},
|
|
14036
|
-
|
|
14220
|
+
removeIcon: {
|
|
14221
|
+
type: [String, Object]
|
|
14222
|
+
},
|
|
14223
|
+
isShowTagTooltip: {
|
|
14224
|
+
type: Boolean,
|
|
14225
|
+
default: false
|
|
14226
|
+
},
|
|
14227
|
+
popoverProps: {
|
|
14228
|
+
type: Object,
|
|
14229
|
+
default: () => ({})
|
|
14230
|
+
},
|
|
14231
|
+
itemWidth: {
|
|
14232
|
+
type: Number,
|
|
14233
|
+
default: 10
|
|
14234
|
+
},
|
|
14235
|
+
containerWrapperWidth: {
|
|
14236
|
+
type: [Number, null],
|
|
14237
|
+
default: null
|
|
14238
|
+
},
|
|
14239
|
+
enableOverflow: {
|
|
14240
|
+
type: Boolean,
|
|
14241
|
+
default: false
|
|
14242
|
+
}
|
|
14243
|
+
};
|
|
14244
|
+
const multipleBaseEmits = ["select", "input-mousedown", "input-change", "input-keydown", "input-compositionstart", "input-compositionend", "input-paste"];
|
|
14245
|
+
function renderSelectionItem(item, props, {
|
|
14246
|
+
prefixCls,
|
|
14247
|
+
isNotRender,
|
|
14248
|
+
closable,
|
|
14249
|
+
onClose,
|
|
14250
|
+
values,
|
|
14251
|
+
displayRest
|
|
14252
|
+
}) {
|
|
14253
|
+
const {
|
|
14254
|
+
tagRender,
|
|
14255
|
+
removeIcon,
|
|
14256
|
+
maxTagTooltip,
|
|
14257
|
+
maxTagTooltipWidth,
|
|
14258
|
+
popoverProps,
|
|
14259
|
+
isShowTagTooltip
|
|
14260
|
+
} = props;
|
|
14261
|
+
if (isNotRender) {
|
|
14262
|
+
const content = createVNode("span", {
|
|
14263
|
+
"class": {
|
|
14264
|
+
[`${item.class}`]: item.class,
|
|
14265
|
+
[`${prefixCls}-selection-item`]: true,
|
|
14266
|
+
[`${prefixCls}-selection-item-disabled`]: item.disabled
|
|
14267
|
+
}
|
|
14268
|
+
}, [item.key === REST_TAG_KEY && (props.maxTagTextLength !== "responsive" || displayRest) || isShowTagTooltip ? createVNode(UPopover, mergeProps({
|
|
14269
|
+
"disabled": !maxTagTooltip,
|
|
14270
|
+
"trigger": "hover",
|
|
14271
|
+
"dropdown-class": `${prefixCls}-dropdown-tooltip`,
|
|
14272
|
+
"show-arrow": true,
|
|
14273
|
+
"placement": "top"
|
|
14274
|
+
}, popoverProps), {
|
|
14275
|
+
default: () => createVNode("span", {
|
|
14276
|
+
"class": `${prefixCls}-selection-item-content`,
|
|
14277
|
+
"title": item.title
|
|
14278
|
+
}, [getRender(item.displayLabel)()]),
|
|
14279
|
+
content: () => createVNode("div", {
|
|
14280
|
+
"class": `${prefixCls}-selection-tooltip`,
|
|
14281
|
+
"style": {
|
|
14282
|
+
maxWidth: `${maxTagTooltipWidth}px`
|
|
14283
|
+
}
|
|
14284
|
+
}, [values.map((tipItem) => createVNode("span", {
|
|
14285
|
+
"key": tipItem.key,
|
|
14286
|
+
"class": {
|
|
14287
|
+
[`${prefixCls}-selection-item`]: true
|
|
14288
|
+
}
|
|
14289
|
+
}, [createVNode("span", {
|
|
14290
|
+
"class": `${prefixCls}-selection-item-content`,
|
|
14291
|
+
"title": tipItem.title
|
|
14292
|
+
}, [getRender(tipItem.displayLabel)()]), closable(tipItem) && createVNode(UIcon, {
|
|
14293
|
+
"class": `${prefixCls}-selection-item-remove`,
|
|
14294
|
+
"onClick": (e) => onClose(tipItem.value, e)
|
|
14295
|
+
}, {
|
|
14296
|
+
default: () => [createVNode(URoundClose, null, null)]
|
|
14297
|
+
})]))])
|
|
14298
|
+
}) : createVNode(Fragment, null, [createVNode("span", {
|
|
14299
|
+
"class": `${prefixCls}-selection-item-content`,
|
|
14300
|
+
"title": item.title
|
|
14301
|
+
}, [getRender(item.displayLabel)()]), closable(item) && createVNode(UIcon, {
|
|
14302
|
+
"class": `${prefixCls}-selection-item-remove`,
|
|
14303
|
+
"onClick": (e) => onClose(item.value, e)
|
|
14304
|
+
}, {
|
|
14305
|
+
default: () => [removeIcon ? createVNode(resolveComponent("component"), {
|
|
14306
|
+
"is": removeIcon
|
|
14307
|
+
}, null) : createVNode(URoundClose, null, null)]
|
|
14308
|
+
})])]);
|
|
14309
|
+
return content;
|
|
14310
|
+
}
|
|
14311
|
+
return createVNode("span", {
|
|
14312
|
+
"class": item.class,
|
|
14313
|
+
"onMousedown": (e) => {
|
|
14314
|
+
e.stopPropagation();
|
|
14315
|
+
e.preventDefault();
|
|
14316
|
+
}
|
|
14317
|
+
}, [tagRender == null ? void 0 : tagRender({
|
|
14318
|
+
...item,
|
|
14319
|
+
closable: closable(item),
|
|
14320
|
+
onClose: (e) => {
|
|
14321
|
+
onClose(item.value, e);
|
|
14322
|
+
}
|
|
14323
|
+
})]);
|
|
14324
|
+
}
|
|
14325
|
+
function renderSearchInput(props, {
|
|
14326
|
+
prefixCls,
|
|
14327
|
+
inputRef,
|
|
14328
|
+
disabled,
|
|
14329
|
+
inputEditable,
|
|
14330
|
+
inputValue,
|
|
14331
|
+
inputWidth,
|
|
14332
|
+
measureRef,
|
|
14333
|
+
onInputMouseDown,
|
|
14334
|
+
onInputChange,
|
|
14335
|
+
onInputKeydown,
|
|
14336
|
+
onInputCompositionStart,
|
|
14337
|
+
onInputCompositionEnd,
|
|
14338
|
+
onInputPaste
|
|
14339
|
+
}) {
|
|
14340
|
+
return createVNode("span", {
|
|
14341
|
+
"class": `${prefixCls}-selection-search`,
|
|
14342
|
+
"style": {
|
|
14343
|
+
width: `${inputWidth}px`
|
|
14344
|
+
}
|
|
14345
|
+
}, [createVNode(SelectInput, {
|
|
14346
|
+
"input-ref": inputRef,
|
|
14347
|
+
"prefix-cls": prefixCls,
|
|
14348
|
+
"autocomplete": "off",
|
|
14349
|
+
"disabled": disabled,
|
|
14350
|
+
"editable": inputEditable,
|
|
14351
|
+
"value": inputValue,
|
|
14352
|
+
"onMousedown": onInputMouseDown,
|
|
14353
|
+
"onChange": onInputChange,
|
|
14354
|
+
"onKeydown": onInputKeydown,
|
|
14355
|
+
"onCompositionstart": onInputCompositionStart,
|
|
14356
|
+
"onCompositionend": onInputCompositionEnd,
|
|
14357
|
+
"onPaste": onInputPaste
|
|
14358
|
+
}, null), createVNode("span", {
|
|
14359
|
+
"ref": measureRef,
|
|
14360
|
+
"class": `${prefixCls}-selection-search-mirror`,
|
|
14361
|
+
"aria-hidden": true
|
|
14362
|
+
}, [inputValue, createTextVNode("\xA0")])]);
|
|
14363
|
+
}
|
|
14364
|
+
function renderPlaceholder(showPlaceholder, prefixCls, slots) {
|
|
14365
|
+
var _a;
|
|
14366
|
+
return showPlaceholder ? createVNode("div", {
|
|
14367
|
+
"class": `${prefixCls}-selection-placeholder`
|
|
14368
|
+
}, [(_a = slots.placeholder) == null ? void 0 : _a.call(slots)]) : null;
|
|
14369
|
+
}
|
|
14370
|
+
var MultipleBase = defineComponent({
|
|
14371
|
+
name: "MultipleBase",
|
|
14372
|
+
props: multipleBaseProps,
|
|
14373
|
+
emits: multipleBaseEmits,
|
|
14037
14374
|
setup(props, {
|
|
14038
|
-
emit
|
|
14375
|
+
emit,
|
|
14376
|
+
slots
|
|
14039
14377
|
}) {
|
|
14040
|
-
const
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
const inputValue = computed(() => {
|
|
14044
|
-
return props.searchValue;
|
|
14045
|
-
});
|
|
14046
|
-
const inputEditable = computed(() => {
|
|
14047
|
-
return props.filterable && props.open;
|
|
14048
|
-
});
|
|
14049
|
-
const showPlaceholder = computed(() => {
|
|
14050
|
-
return !props.values.length && !inputValue.value;
|
|
14051
|
-
});
|
|
14052
|
-
onMounted(() => {
|
|
14053
|
-
motionAppear.value = true;
|
|
14054
|
-
watch(inputValue, () => {
|
|
14055
|
-
inputWidth.value = measureRef.value.scrollWidth;
|
|
14056
|
-
}, {
|
|
14057
|
-
flush: "post"
|
|
14058
|
-
});
|
|
14059
|
-
});
|
|
14060
|
-
const isNotRender = computed(() => {
|
|
14061
|
-
return !props.tagRender;
|
|
14062
|
-
});
|
|
14063
|
-
const displayValues = computed(() => {
|
|
14378
|
+
const baseState = useMultipleBase(props, emit);
|
|
14379
|
+
return () => {
|
|
14380
|
+
let _slot;
|
|
14064
14381
|
const {
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14072
|
-
|
|
14073
|
-
|
|
14074
|
-
|
|
14075
|
-
|
|
14076
|
-
|
|
14077
|
-
|
|
14078
|
-
|
|
14079
|
-
|
|
14080
|
-
|
|
14081
|
-
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14087
|
-
|
|
14088
|
-
|
|
14089
|
-
|
|
14090
|
-
|
|
14091
|
-
};
|
|
14092
|
-
});
|
|
14093
|
-
}
|
|
14094
|
-
if (restCount > 0) {
|
|
14095
|
-
const rest = values.slice(maxTagCount);
|
|
14096
|
-
_display.push({
|
|
14097
|
-
key: REST_TAG_KEY,
|
|
14098
|
-
value: REST_TAG_KEY,
|
|
14099
|
-
displayLabel: maxTagPlaceholder(rest)
|
|
14382
|
+
displayValues,
|
|
14383
|
+
isNotRender,
|
|
14384
|
+
closable,
|
|
14385
|
+
onClose,
|
|
14386
|
+
inputValue,
|
|
14387
|
+
inputWidth,
|
|
14388
|
+
measureRef,
|
|
14389
|
+
showPlaceholder,
|
|
14390
|
+
onInputMouseDown,
|
|
14391
|
+
onInputChange,
|
|
14392
|
+
onInputKeydown,
|
|
14393
|
+
onInputCompositionStart,
|
|
14394
|
+
onInputCompositionEnd,
|
|
14395
|
+
onInputPaste,
|
|
14396
|
+
onOverflowItemResize,
|
|
14397
|
+
onSuffixResize,
|
|
14398
|
+
displayRest
|
|
14399
|
+
} = baseState;
|
|
14400
|
+
return createVNode(Fragment, null, [displayValues.value.map((item, index) => {
|
|
14401
|
+
const content = renderSelectionItem(item, props, {
|
|
14402
|
+
prefixCls: props.prefixCls,
|
|
14403
|
+
isNotRender: isNotRender.value,
|
|
14404
|
+
displayRest: displayRest.value,
|
|
14405
|
+
closable,
|
|
14406
|
+
onClose,
|
|
14407
|
+
values: props.values
|
|
14100
14408
|
});
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14114
|
-
|
|
14115
|
-
|
|
14116
|
-
|
|
14117
|
-
|
|
14118
|
-
|
|
14119
|
-
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
14123
|
-
|
|
14124
|
-
|
|
14125
|
-
|
|
14126
|
-
|
|
14127
|
-
|
|
14128
|
-
|
|
14129
|
-
|
|
14130
|
-
|
|
14131
|
-
|
|
14132
|
-
|
|
14133
|
-
|
|
14134
|
-
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14409
|
+
return props.enableOverflow ? createVNode(ResizeObserver$1, {
|
|
14410
|
+
"key": item.key,
|
|
14411
|
+
"onResize": (e) => onOverflowItemResize(e, item)
|
|
14412
|
+
}, {
|
|
14413
|
+
default: () => [createVNode("div", {
|
|
14414
|
+
"class": `${props.prefixCls}-selection-item-wrapper`,
|
|
14415
|
+
"style": {
|
|
14416
|
+
opacity: index > baseState.mergedDisplayCount.value && item.key !== REST_TAG_KEY || !displayRest.value && item.key === REST_TAG_KEY ? 0 : 1,
|
|
14417
|
+
height: index > baseState.mergedDisplayCount.value && item.key !== REST_TAG_KEY || !displayRest.value && item.key === REST_TAG_KEY ? 0 : void 0,
|
|
14418
|
+
overflowY: index > baseState.mergedDisplayCount.value && item.key !== REST_TAG_KEY || !displayRest.value && item.key === REST_TAG_KEY ? "hidden" : void 0,
|
|
14419
|
+
pointerEvents: index > baseState.mergedDisplayCount.value && item.key !== REST_TAG_KEY || !displayRest.value && item.key === REST_TAG_KEY ? "none" : void 0,
|
|
14420
|
+
position: index > baseState.mergedDisplayCount.value && item.key !== REST_TAG_KEY || !displayRest.value && item.key === REST_TAG_KEY ? "absolute" : void 0
|
|
14421
|
+
}
|
|
14422
|
+
}, [content])]
|
|
14423
|
+
}) : content;
|
|
14424
|
+
}), props.enableOverflow ? createVNode(ResizeObserver$1, {
|
|
14425
|
+
"onResize": onSuffixResize
|
|
14426
|
+
}, _isSlot$4(_slot = renderSearchInput(props, {
|
|
14427
|
+
prefixCls: props.prefixCls,
|
|
14428
|
+
inputRef: props.inputRef,
|
|
14429
|
+
disabled: props.disabled,
|
|
14430
|
+
inputEditable: baseState.inputEditable.value,
|
|
14431
|
+
inputValue: inputValue.value,
|
|
14432
|
+
inputWidth: inputWidth.value,
|
|
14433
|
+
measureRef,
|
|
14434
|
+
onInputMouseDown,
|
|
14435
|
+
onInputChange,
|
|
14436
|
+
onInputKeydown,
|
|
14437
|
+
onInputCompositionStart,
|
|
14438
|
+
onInputCompositionEnd,
|
|
14439
|
+
onInputPaste
|
|
14440
|
+
})) ? _slot : {
|
|
14441
|
+
default: () => [_slot]
|
|
14442
|
+
}) : renderSearchInput(props, {
|
|
14443
|
+
prefixCls: props.prefixCls,
|
|
14444
|
+
inputRef: props.inputRef,
|
|
14445
|
+
disabled: props.disabled,
|
|
14446
|
+
inputEditable: baseState.inputEditable.value,
|
|
14447
|
+
inputValue: inputValue.value,
|
|
14448
|
+
inputWidth: inputWidth.value,
|
|
14449
|
+
measureRef,
|
|
14450
|
+
onInputMouseDown,
|
|
14451
|
+
onInputChange,
|
|
14452
|
+
onInputKeydown,
|
|
14453
|
+
onInputCompositionStart,
|
|
14454
|
+
onInputCompositionEnd,
|
|
14455
|
+
onInputPaste
|
|
14456
|
+
}), renderPlaceholder(showPlaceholder.value, props.prefixCls, slots)]);
|
|
14146
14457
|
};
|
|
14147
14458
|
}
|
|
14148
14459
|
});
|
|
14149
14460
|
|
|
14150
|
-
const
|
|
14151
|
-
const _hoisted_2$j = ["title"];
|
|
14152
|
-
const _hoisted_3$4 = ["title"];
|
|
14153
|
-
function _sfc_render$1P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14154
|
-
const _component_Render = resolveComponent("Render");
|
|
14155
|
-
const _component_URoundClose = resolveComponent("URoundClose");
|
|
14156
|
-
const _component_UIcon = resolveComponent("UIcon");
|
|
14157
|
-
const _component_UPopover = resolveComponent("UPopover");
|
|
14158
|
-
const _component_SelectInput = resolveComponent("SelectInput");
|
|
14159
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
14160
|
-
createCommentVNode(' <transition-group :appear="motionAppear" :name="tagTransitionName"> '),
|
|
14161
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.displayValues, (item) => {
|
|
14162
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
14163
|
-
key: item.key
|
|
14164
|
-
}, [
|
|
14165
|
-
_ctx.isNotRender ? (openBlock(), createElementBlock("span", {
|
|
14166
|
-
key: 0,
|
|
14167
|
-
class: normalizeClass({
|
|
14168
|
-
[`${item.class}`]: item.class,
|
|
14169
|
-
[`${_ctx.prefixCls}-selection-item`]: true,
|
|
14170
|
-
[`${_ctx.prefixCls}-selection-item-disabled`]: item.disabled
|
|
14171
|
-
})
|
|
14172
|
-
}, [
|
|
14173
|
-
item.key === _ctx.REST_TAG_KEY || _ctx.isShowTagTooltip ? (openBlock(), createBlock(_component_UPopover, mergeProps({
|
|
14174
|
-
key: 0,
|
|
14175
|
-
disabled: !_ctx.maxTagTooltip,
|
|
14176
|
-
trigger: "hover",
|
|
14177
|
-
"show-arrow": true,
|
|
14178
|
-
placement: "top",
|
|
14179
|
-
ref_for: true
|
|
14180
|
-
}, _ctx.popoverProps), {
|
|
14181
|
-
content: withCtx(() => [
|
|
14182
|
-
createElementVNode("div", {
|
|
14183
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-tooltip`),
|
|
14184
|
-
style: normalizeStyle({ maxWidth: `${_ctx.maxTagTooltipWidth}px` })
|
|
14185
|
-
}, [
|
|
14186
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.values, (tipItem) => {
|
|
14187
|
-
return openBlock(), createElementBlock("span", {
|
|
14188
|
-
key: tipItem.key,
|
|
14189
|
-
class: normalizeClass({
|
|
14190
|
-
[`${_ctx.prefixCls}-selection-item`]: true
|
|
14191
|
-
})
|
|
14192
|
-
}, [
|
|
14193
|
-
createElementVNode("span", {
|
|
14194
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-item-content`),
|
|
14195
|
-
title: tipItem.title
|
|
14196
|
-
}, [
|
|
14197
|
-
createVNode(_component_Render, {
|
|
14198
|
-
render: _ctx.getRender(tipItem.displayLabel)
|
|
14199
|
-
}, null, 8, ["render"])
|
|
14200
|
-
], 10, _hoisted_2$j),
|
|
14201
|
-
_ctx.closable(tipItem) ? (openBlock(), createBlock(_component_UIcon, {
|
|
14202
|
-
key: 0,
|
|
14203
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-item-remove`),
|
|
14204
|
-
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
14205
|
-
}, ["stop", "prevent"])),
|
|
14206
|
-
onClick: (e) => _ctx.onClose(tipItem.value, e)
|
|
14207
|
-
}, {
|
|
14208
|
-
default: withCtx(() => [
|
|
14209
|
-
createVNode(_component_URoundClose)
|
|
14210
|
-
]),
|
|
14211
|
-
_: 2
|
|
14212
|
-
}, 1032, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
14213
|
-
], 2);
|
|
14214
|
-
}), 128))
|
|
14215
|
-
], 6)
|
|
14216
|
-
]),
|
|
14217
|
-
default: withCtx(() => [
|
|
14218
|
-
createElementVNode("span", {
|
|
14219
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-item-content`),
|
|
14220
|
-
title: item.title
|
|
14221
|
-
}, [
|
|
14222
|
-
createVNode(_component_Render, {
|
|
14223
|
-
render: _ctx.getRender(item.displayLabel)
|
|
14224
|
-
}, null, 8, ["render"])
|
|
14225
|
-
], 10, _hoisted_1$N)
|
|
14226
|
-
]),
|
|
14227
|
-
_: 2
|
|
14228
|
-
}, 1040, ["disabled"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
14229
|
-
createElementVNode("span", {
|
|
14230
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-item-content`),
|
|
14231
|
-
title: item.title
|
|
14232
|
-
}, [
|
|
14233
|
-
createCommentVNode(" {{ item.displayLabel }} "),
|
|
14234
|
-
createVNode(_component_Render, {
|
|
14235
|
-
render: _ctx.getRender(item.displayLabel)
|
|
14236
|
-
}, null, 8, ["render"])
|
|
14237
|
-
], 10, _hoisted_3$4),
|
|
14238
|
-
_ctx.closable(item) ? (openBlock(), createBlock(_component_UIcon, {
|
|
14239
|
-
key: 0,
|
|
14240
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-item-remove`),
|
|
14241
|
-
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
14242
|
-
}, ["stop", "prevent"])),
|
|
14243
|
-
onClick: (e) => _ctx.onClose(item.value, e)
|
|
14244
|
-
}, {
|
|
14245
|
-
default: withCtx(() => [
|
|
14246
|
-
_ctx.removeIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.removeIcon), { key: 0 })) : (openBlock(), createBlock(_component_URoundClose, { key: 1 }))
|
|
14247
|
-
]),
|
|
14248
|
-
_: 2
|
|
14249
|
-
}, 1032, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
14250
|
-
], 64))
|
|
14251
|
-
], 2)) : (openBlock(), createElementBlock("span", {
|
|
14252
|
-
key: 1,
|
|
14253
|
-
class: normalizeClass(item.class),
|
|
14254
|
-
onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
14255
|
-
}, ["stop", "prevent"]))
|
|
14256
|
-
}, [
|
|
14257
|
-
createVNode(_component_Render, {
|
|
14258
|
-
render: () => {
|
|
14259
|
-
var _a;
|
|
14260
|
-
return (_a = _ctx.tagRender) == null ? void 0 : _a.call(_ctx, {
|
|
14261
|
-
...item,
|
|
14262
|
-
closable: _ctx.closable(item),
|
|
14263
|
-
onClose: (e) => {
|
|
14264
|
-
_ctx.onClose(item.value, e);
|
|
14265
|
-
}
|
|
14266
|
-
});
|
|
14267
|
-
}
|
|
14268
|
-
}, null, 8, ["render"])
|
|
14269
|
-
], 34))
|
|
14270
|
-
], 64);
|
|
14271
|
-
}), 128)),
|
|
14272
|
-
createCommentVNode(" </transition-group> "),
|
|
14273
|
-
createElementVNode("span", {
|
|
14274
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-search`),
|
|
14275
|
-
style: normalizeStyle({ width: `${_ctx.inputWidth}px` })
|
|
14276
|
-
}, [
|
|
14277
|
-
createVNode(_component_SelectInput, {
|
|
14278
|
-
"input-ref": _ctx.inputRef,
|
|
14279
|
-
"prefix-cls": _ctx.prefixCls,
|
|
14280
|
-
autocomplete: "off",
|
|
14281
|
-
disabled: _ctx.disabled,
|
|
14282
|
-
editable: _ctx.inputEditable,
|
|
14283
|
-
value: _ctx.inputValue,
|
|
14284
|
-
onMousedown: _ctx.onInputMouseDown,
|
|
14285
|
-
onChange: _ctx.onInputChange,
|
|
14286
|
-
onKeydown: _ctx.onInputKeydown,
|
|
14287
|
-
onCompositionstart: _ctx.onInputCompositionStart,
|
|
14288
|
-
onCompositionend: _ctx.onInputCompositionEnd,
|
|
14289
|
-
onPaste: _ctx.onInputPaste
|
|
14290
|
-
}, null, 8, ["input-ref", "prefix-cls", "disabled", "editable", "value", "onMousedown", "onChange", "onKeydown", "onCompositionstart", "onCompositionend", "onPaste"]),
|
|
14291
|
-
createElementVNode("span", {
|
|
14292
|
-
ref: "measureRef",
|
|
14293
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-search-mirror`),
|
|
14294
|
-
"aria-hidden": ""
|
|
14295
|
-
}, toDisplayString(_ctx.inputValue) + "\xA0 ", 3)
|
|
14296
|
-
], 6),
|
|
14297
|
-
withDirectives(createElementVNode("div", {
|
|
14298
|
-
class: normalizeClass(`${_ctx.prefixCls}-selection-placeholder`)
|
|
14299
|
-
}, [
|
|
14300
|
-
renderSlot(_ctx.$slots, "placeholder")
|
|
14301
|
-
], 2), [
|
|
14302
|
-
[vShow, _ctx.showPlaceholder]
|
|
14303
|
-
])
|
|
14304
|
-
], 64);
|
|
14305
|
-
}
|
|
14306
|
-
var Multiple = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["render", _sfc_render$1P], ["__file", "Multiple.vue"]]);
|
|
14307
|
-
|
|
14461
|
+
const RESPONSIVE = "responsive";
|
|
14308
14462
|
const _sfc_main$1Q = defineComponent({
|
|
14309
14463
|
name: "Selection",
|
|
14310
14464
|
components: {
|
|
14311
14465
|
SingleSelection,
|
|
14312
|
-
|
|
14466
|
+
ResizeObserver: ResizeObserver$1,
|
|
14467
|
+
MultipleBase
|
|
14313
14468
|
},
|
|
14314
14469
|
props: {
|
|
14315
14470
|
prefixCls: {
|
|
@@ -14358,7 +14513,7 @@ const _sfc_main$1Q = defineComponent({
|
|
|
14358
14513
|
type: Function
|
|
14359
14514
|
},
|
|
14360
14515
|
maxTagTextLength: {
|
|
14361
|
-
type: Number
|
|
14516
|
+
type: [Number, String]
|
|
14362
14517
|
},
|
|
14363
14518
|
maxTagTooltip: {
|
|
14364
14519
|
type: Boolean,
|
|
@@ -14394,10 +14549,17 @@ const _sfc_main$1Q = defineComponent({
|
|
|
14394
14549
|
setup(props, { emit }) {
|
|
14395
14550
|
const inputRef = ref(null);
|
|
14396
14551
|
let compositionStatus = false;
|
|
14552
|
+
const isResponsive = computed(() => {
|
|
14553
|
+
return props.maxTagTextLength === RESPONSIVE;
|
|
14554
|
+
});
|
|
14397
14555
|
const [getInputMouseDown, setInputMouseDown] = useLock(0);
|
|
14398
14556
|
const onInputMouseDown = () => {
|
|
14399
14557
|
setInputMouseDown(true);
|
|
14400
14558
|
};
|
|
14559
|
+
const containerWrapperWidth = shallowRef(null);
|
|
14560
|
+
const onOverflowResize = ({ width }) => {
|
|
14561
|
+
containerWrapperWidth.value = width;
|
|
14562
|
+
};
|
|
14401
14563
|
let pastedText = null;
|
|
14402
14564
|
const onInputPaste = (e) => {
|
|
14403
14565
|
const { clipboardData } = e;
|
|
@@ -14464,74 +14626,87 @@ const _sfc_main$1Q = defineComponent({
|
|
|
14464
14626
|
onInputKeydown,
|
|
14465
14627
|
onInputCompositionStart,
|
|
14466
14628
|
onInputCompositionEnd,
|
|
14467
|
-
onInputPaste
|
|
14629
|
+
onInputPaste,
|
|
14630
|
+
onOverflowResize,
|
|
14631
|
+
containerWrapperWidth,
|
|
14632
|
+
isResponsive
|
|
14468
14633
|
};
|
|
14469
14634
|
}
|
|
14470
14635
|
});
|
|
14471
14636
|
function _sfc_render$1O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14472
14637
|
const _component_SingleSelection = resolveComponent("SingleSelection");
|
|
14473
|
-
const
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
|
|
14638
|
+
const _component_MultipleBase = resolveComponent("MultipleBase");
|
|
14639
|
+
const _component_ResizeObserver = resolveComponent("ResizeObserver");
|
|
14640
|
+
return openBlock(), createBlock(_component_ResizeObserver, { onResize: _ctx.onOverflowResize }, {
|
|
14641
|
+
default: withCtx(() => [
|
|
14642
|
+
createElementVNode("div", {
|
|
14643
|
+
class: normalizeClass({
|
|
14644
|
+
[`${_ctx.prefixCls}-selection`]: true,
|
|
14645
|
+
[`${_ctx.prefixCls}-selection-overflow`]: _ctx.multiple && _ctx.isResponsive
|
|
14646
|
+
}),
|
|
14647
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
14648
|
+
onMousedown: _cache[1] || (_cache[1] = (...args) => _ctx.onMousedown && _ctx.onMousedown(...args))
|
|
14649
|
+
}, [
|
|
14650
|
+
!_ctx.multiple ? (openBlock(), createBlock(_component_SingleSelection, {
|
|
14651
|
+
key: 0,
|
|
14652
|
+
"prefix-cls": _ctx.prefixCls,
|
|
14653
|
+
values: _ctx.values,
|
|
14654
|
+
open: _ctx.open,
|
|
14655
|
+
filterable: _ctx.filterable,
|
|
14656
|
+
disabled: _ctx.disabled,
|
|
14657
|
+
"input-ref": _ctx.getInputRef,
|
|
14658
|
+
"search-value": _ctx.searchValue,
|
|
14659
|
+
"allow-create": _ctx.allowCreate,
|
|
14660
|
+
"title-key": _ctx.titleKey,
|
|
14661
|
+
onInputMousedown: _ctx.onInputMouseDown,
|
|
14662
|
+
onInputChange: _ctx.onInputChange,
|
|
14663
|
+
onInputKeydown: _ctx.onInputKeydown,
|
|
14664
|
+
onInputCompositionstart: _ctx.onInputCompositionStart,
|
|
14665
|
+
onInputCompositionend: _ctx.onInputCompositionEnd,
|
|
14666
|
+
onInputPaste: _ctx.onInputPaste
|
|
14667
|
+
}, {
|
|
14668
|
+
placeholder: withCtx(() => [
|
|
14669
|
+
renderSlot(_ctx.$slots, "placeholder")
|
|
14670
|
+
]),
|
|
14671
|
+
_: 3
|
|
14672
|
+
}, 8, ["prefix-cls", "values", "open", "filterable", "disabled", "input-ref", "search-value", "allow-create", "title-key", "onInputMousedown", "onInputChange", "onInputKeydown", "onInputCompositionstart", "onInputCompositionend", "onInputPaste"])) : (openBlock(), createBlock(_component_MultipleBase, {
|
|
14673
|
+
key: 1,
|
|
14674
|
+
"prefix-cls": _ctx.prefixCls,
|
|
14675
|
+
values: _ctx.values,
|
|
14676
|
+
open: _ctx.open,
|
|
14677
|
+
"enable-overflow": _ctx.isResponsive,
|
|
14678
|
+
filterable: _ctx.filterable,
|
|
14679
|
+
disabled: _ctx.disabled,
|
|
14680
|
+
"input-ref": _ctx.getInputRef,
|
|
14681
|
+
"search-value": _ctx.searchValue,
|
|
14682
|
+
"max-tag-count": _ctx.maxTagCount,
|
|
14683
|
+
"max-tag-text-length": _ctx.maxTagTextLength,
|
|
14684
|
+
"max-tag-placeholder": _ctx.maxTagPlaceholder,
|
|
14685
|
+
"max-tag-tooltip": _ctx.maxTagTooltip,
|
|
14686
|
+
"max-tag-tooltip-width": _ctx.maxTagTooltipWidth,
|
|
14687
|
+
"is-show-tag-tooltip": _ctx.isShowTagTooltip,
|
|
14688
|
+
"popover-props": _ctx.popoverProps,
|
|
14689
|
+
"tag-render": _ctx.tagRender,
|
|
14690
|
+
"tag-transition-name": _ctx.tagTransitionName,
|
|
14691
|
+
"remove-icon": _ctx.removeIcon,
|
|
14692
|
+
"container-wrapper-width": _ctx.containerWrapperWidth,
|
|
14693
|
+
onSelect: _ctx.onSelectionSelect,
|
|
14694
|
+
onInputMousedown: _ctx.onInputMouseDown,
|
|
14695
|
+
onInputChange: _ctx.onInputChange,
|
|
14696
|
+
onInputKeydown: _ctx.onInputKeydown,
|
|
14697
|
+
onInputCompositionstart: _ctx.onInputCompositionStart,
|
|
14698
|
+
onInputCompositionend: _ctx.onInputCompositionEnd,
|
|
14699
|
+
onInputPaste: _ctx.onInputPaste
|
|
14700
|
+
}, {
|
|
14701
|
+
placeholder: withCtx(() => [
|
|
14702
|
+
renderSlot(_ctx.$slots, "placeholder")
|
|
14703
|
+
]),
|
|
14704
|
+
_: 3
|
|
14705
|
+
}, 8, ["prefix-cls", "values", "open", "enable-overflow", "filterable", "disabled", "input-ref", "search-value", "max-tag-count", "max-tag-text-length", "max-tag-placeholder", "max-tag-tooltip", "max-tag-tooltip-width", "is-show-tag-tooltip", "popover-props", "tag-render", "tag-transition-name", "remove-icon", "container-wrapper-width", "onSelect", "onInputMousedown", "onInputChange", "onInputKeydown", "onInputCompositionstart", "onInputCompositionend", "onInputPaste"]))
|
|
14706
|
+
], 34)
|
|
14707
|
+
]),
|
|
14708
|
+
_: 3
|
|
14709
|
+
}, 8, ["onResize"]);
|
|
14535
14710
|
}
|
|
14536
14711
|
var Selection = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["render", _sfc_render$1O], ["__file", "Selection.vue"]]);
|
|
14537
14712
|
|
|
@@ -15239,6 +15414,9 @@ function _sfc_render$1M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15239
15414
|
}, null, 8, ["text"])
|
|
15240
15415
|
])
|
|
15241
15416
|
]),
|
|
15417
|
+
top: withCtx(() => [
|
|
15418
|
+
renderSlot(_ctx.$slots, "top")
|
|
15419
|
+
]),
|
|
15242
15420
|
_: 3
|
|
15243
15421
|
}, 8, ["id", "prefix-cls", "open", "width", "multiple", "multiple-limit", "options", "values", "search-value", "default-active-first", "height", "item-height", "size", "select-all", "color", "direction", "title-key", "onSelect", "onScrollAtTop", "onScrollAtBottom", "onCreateSubmit"])
|
|
15244
15422
|
]),
|
|
@@ -32831,7 +33009,7 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32831
33009
|
key: index,
|
|
32832
33010
|
ref_for: true,
|
|
32833
33011
|
ref: _ctx.saveRef(`header-column-${cell._index}`)
|
|
32834
|
-
}, _ctx.getCellProps(cell), {
|
|
33012
|
+
}, { ref_for: true }, _ctx.getCellProps(cell), {
|
|
32835
33013
|
style: _ctx.getCellStyle(cell),
|
|
32836
33014
|
class: {
|
|
32837
33015
|
[String(cell.className)]: !!cell.className,
|
|
@@ -33706,9 +33884,8 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33706
33884
|
return openBlock(), createElementBlock("td", mergeProps({
|
|
33707
33885
|
key: column.key,
|
|
33708
33886
|
class: { [`${column.className}`]: !!column.className },
|
|
33709
|
-
style: _ctx.getCellStyle(column)
|
|
33710
|
-
|
|
33711
|
-
}, _ctx.tdProps(column)), [
|
|
33887
|
+
style: _ctx.getCellStyle(column)
|
|
33888
|
+
}, { ref_for: true }, _ctx.tdProps(column)), [
|
|
33712
33889
|
!!column.summaryRender ? (openBlock(), createBlock(_component_Render, {
|
|
33713
33890
|
key: 0,
|
|
33714
33891
|
render: () => {
|