@routa/ui-vue 0.1.0
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/LICENSE +21 -0
- package/README.md +52 -0
- package/base.css +1 -0
- package/dist/autocomplete/AutoComplete.vue.d.ts +336 -0
- package/dist/autocomplete/index.d.ts +298 -0
- package/dist/autocomplete/index.js +4 -0
- package/dist/autocomplete/index.mjs +321 -0
- package/dist/autocomplete/types.d.ts +58 -0
- package/dist/avatar/Avatar.vue.d.ts +36 -0
- package/dist/avatar/AvatarGroup.vue.d.ts +7 -0
- package/dist/avatar/index.d.ts +7 -0
- package/dist/avatar/index.js +3 -0
- package/dist/avatar/index.mjs +192 -0
- package/dist/avatar/types.d.ts +111 -0
- package/dist/badge/Badge.vue.d.ts +25 -0
- package/dist/badge/index.d.ts +5 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/index.mjs +72 -0
- package/dist/badge/types.d.ts +86 -0
- package/dist/breadcrumb/Breadcrumb.vue.d.ts +38 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +48 -0
- package/dist/breadcrumb/index.d.ts +7 -0
- package/dist/breadcrumb/index.js +2 -0
- package/dist/breadcrumb/index.mjs +87 -0
- package/dist/breadcrumb/types.d.ts +28 -0
- package/dist/button/Button.vue.d.ts +27 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +2 -0
- package/dist/button/index.mjs +10 -0
- package/dist/button/types.d.ts +14 -0
- package/dist/card/Card.vue.d.ts +49 -0
- package/dist/card/index.d.ts +72 -0
- package/dist/card/index.js +2 -0
- package/dist/card/index.mjs +60 -0
- package/dist/card/types.d.ts +16 -0
- package/dist/carousel/Carousel.vue.d.ts +134 -0
- package/dist/carousel/CarouselItem.vue.d.ts +23 -0
- package/dist/carousel/index.d.ts +250 -0
- package/dist/carousel/index.js +2 -0
- package/dist/carousel/index.mjs +354 -0
- package/dist/carousel/types.d.ts +97 -0
- package/dist/cascader/Cascader.vue.d.ts +109 -0
- package/dist/cascader/CascaderPanel.vue.d.ts +55 -0
- package/dist/cascader/index.d.ts +110 -0
- package/dist/cascader/index.js +5 -0
- package/dist/cascader/index.mjs +370 -0
- package/dist/cascader/types.d.ts +54 -0
- package/dist/checkbox/Checkbox.vue.d.ts +99 -0
- package/dist/checkbox/CheckboxGroup.vue.d.ts +59 -0
- package/dist/checkbox/constants.d.ts +2 -0
- package/dist/checkbox/index.d.ts +9 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.mjs +70 -0
- package/dist/checkbox/types.d.ts +64 -0
- package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-BthtEkGw.mjs +170 -0
- package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-Do1NtIFC.js +1 -0
- package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-DxecbRJE.js +1 -0
- package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs +289 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs +57 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js +1 -0
- package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js +1 -0
- package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs +391 -0
- package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs +176 -0
- package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js +1 -0
- package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-CtBz7Ha9.js +1 -0
- package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-kKvR0Hz3.mjs +124 -0
- package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js +1 -0
- package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BxuIhLsF.mjs +170 -0
- package/dist/chunks/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/chunks/auto-update-6n8Xn1EH.js +1 -0
- package/dist/chunks/auto-update-Dw-2qIsQ.mjs +59 -0
- package/dist/chunks/color-BBpRjg5d.mjs +32 -0
- package/dist/chunks/color-m1q_rZ68.js +1 -0
- package/dist/chunks/context-BEsW77hb.js +1 -0
- package/dist/chunks/context-BlK-PJ3n.mjs +5 -0
- package/dist/chunks/controller-37WpkEdZ.js +1 -0
- package/dist/chunks/controller-3cWaJJMW.mjs +318 -0
- package/dist/chunks/controller-BQhkT8pi.mjs +95 -0
- package/dist/chunks/controller-BnNZOOMj.js +1 -0
- package/dist/chunks/controller-CV-a983I.js +1 -0
- package/dist/chunks/controller-D1BTHmfO.js +1 -0
- package/dist/chunks/controller-DZp6lWY1.mjs +96 -0
- package/dist/chunks/controller-DdEBnv9V.mjs +82 -0
- package/dist/chunks/id-CfLxBW9l.js +1 -0
- package/dist/chunks/id-VS2potoV.mjs +7 -0
- package/dist/chunks/index-B0yEC3RG.mjs +136 -0
- package/dist/chunks/index-B4GP5rXr.mjs +170 -0
- package/dist/chunks/index-DWAWrVaT.js +1 -0
- package/dist/chunks/index-RYR-1S7A.js +1 -0
- package/dist/chunks/install-DJNxamQ0.mjs +10 -0
- package/dist/chunks/install-gnn2dOg9.js +1 -0
- package/dist/chunks/manager-BUdQK4AD.mjs +156 -0
- package/dist/chunks/manager-C-VTKQvg.mjs +85 -0
- package/dist/chunks/manager-C0AUxQ1I.js +2 -0
- package/dist/chunks/manager-d-AJMlyO.js +1 -0
- package/dist/chunks/modal-BiivqQQz.mjs +86 -0
- package/dist/chunks/modal-CRbFkVcm.js +1 -0
- package/dist/chunks/responsive-BYScjISa.js +1 -0
- package/dist/chunks/responsive-jCVnPx1a.mjs +49 -0
- package/dist/chunks/style-C-58-Hx4.mjs +7 -0
- package/dist/chunks/style-CjCLKeeU.js +1 -0
- package/dist/chunks/types-CXAGM03M.mjs +92 -0
- package/dist/chunks/types-DS78vyi2.js +1 -0
- package/dist/chunks/use-form-item-CloIcyon.js +1 -0
- package/dist/chunks/use-form-item-CqDbWCiU.mjs +16 -0
- package/dist/chunks/use-id-BycaM3-h.js +1 -0
- package/dist/chunks/use-id-D3casveg.mjs +9 -0
- package/dist/chunks/use-signals-Bz1smiXh.js +1 -0
- package/dist/chunks/use-signals-CE1T2jXK.mjs +50 -0
- package/dist/chunks/useCanvasRenderer-BPTNzGy0.mjs +87 -0
- package/dist/chunks/useCanvasRenderer-D77k3JCQ.js +1 -0
- package/dist/chunks/useResizeObserver-Cki4q_CI.mjs +60 -0
- package/dist/chunks/useResizeObserver-DMkB1OF3.js +1 -0
- package/dist/chunks/z-index-CNZLw1v7.js +1 -0
- package/dist/chunks/z-index-D9ecXoNe.mjs +14 -0
- package/dist/collapse/Collapse.vue.d.ts +30 -0
- package/dist/collapse/CollapseItem.vue.d.ts +20 -0
- package/dist/collapse/index.d.ts +8 -0
- package/dist/collapse/index.js +3 -0
- package/dist/collapse/index.mjs +144 -0
- package/dist/collapse/types.d.ts +54 -0
- package/dist/color-picker/AlphaSlider.vue.d.ts +38 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +57 -0
- package/dist/color-picker/HueSlider.vue.d.ts +28 -0
- package/dist/color-picker/SaturationPanel.vue.d.ts +46 -0
- package/dist/color-picker/index.d.ts +56 -0
- package/dist/color-picker/index.js +6 -0
- package/dist/color-picker/index.mjs +481 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +64 -0
- package/dist/config-provider/context.d.ts +888 -0
- package/dist/config-provider/index.d.ts +97 -0
- package/dist/config-provider/index.js +1 -0
- package/dist/config-provider/index.mjs +396 -0
- package/dist/config-provider/resolver.d.ts +2 -0
- package/dist/config-provider/runtime.d.ts +5 -0
- package/dist/config-provider/teleport.d.ts +6 -0
- package/dist/config-provider/types.d.ts +131 -0
- package/dist/context-menu/ContextMenu.vue.d.ts +87 -0
- package/dist/context-menu/index.d.ts +5 -0
- package/dist/context-menu/index.js +3 -0
- package/dist/context-menu/index.mjs +215 -0
- package/dist/context-menu/types.d.ts +34 -0
- package/dist/date-picker/Calendar.vue.d.ts +22 -0
- package/dist/date-picker/DatePicker.vue.d.ts +31 -0
- package/dist/date-picker/DateRangePicker.vue.d.ts +26 -0
- package/dist/date-picker/DateTimePicker.vue.d.ts +27 -0
- package/dist/date-picker/DateTimeRangePicker.vue.d.ts +27 -0
- package/dist/date-picker/index.d.ts +13 -0
- package/dist/date-picker/index.js +6 -0
- package/dist/date-picker/index.mjs +1229 -0
- package/dist/date-picker/utils.d.ts +3 -0
- package/dist/dialog/Dialog.vue.d.ts +97 -0
- package/dist/dialog/index.d.ts +5 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.mjs +161 -0
- package/dist/dialog/types.d.ts +38 -0
- package/dist/divider/Divider.vue.d.ts +74 -0
- package/dist/divider/index.d.ts +5 -0
- package/dist/divider/index.js +2 -0
- package/dist/divider/index.mjs +96 -0
- package/dist/divider/types.d.ts +57 -0
- package/dist/drawer/Drawer.vue.d.ts +106 -0
- package/dist/drawer/index.d.ts +5 -0
- package/dist/drawer/index.js +2 -0
- package/dist/drawer/index.mjs +168 -0
- package/dist/drawer/types.d.ts +42 -0
- package/dist/dropdown/Dropdown.vue.d.ts +109 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +60 -0
- package/dist/dropdown/index.d.ts +7 -0
- package/dist/dropdown/index.js +3 -0
- package/dist/dropdown/index.mjs +310 -0
- package/dist/dropdown/types.d.ts +87 -0
- package/dist/empty/Empty.vue.d.ts +47 -0
- package/dist/empty/index.d.ts +70 -0
- package/dist/empty/index.js +2 -0
- package/dist/empty/index.mjs +50 -0
- package/dist/empty/types.d.ts +16 -0
- package/dist/feedback-runtime/manager.d.ts +109 -0
- package/dist/feedback-runtime/mount.d.ts +5 -0
- package/dist/feedback-runtime/types.d.ts +27 -0
- package/dist/form/Form.vue.d.ts +37 -0
- package/dist/form/FormItem.vue.d.ts +32 -0
- package/dist/form/FormSchemaFields.vue.d.ts +7 -0
- package/dist/form/context.d.ts +33 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.js +2 -0
- package/dist/form/index.mjs +389 -0
- package/dist/grid/Col.vue.d.ts +101 -0
- package/dist/grid/Row.vue.d.ts +56 -0
- package/dist/grid/index.d.ts +7 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/index.mjs +182 -0
- package/dist/grid/responsive.d.ts +9 -0
- package/dist/grid/types.d.ts +85 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/index.mjs +9 -0
- package/dist/hooks/use-form-item.d.ts +13 -0
- package/dist/hooks/use-id.d.ts +5 -0
- package/dist/hooks/useCanvasRenderer.d.ts +10 -0
- package/dist/hooks/useImageLoader.d.ts +20 -0
- package/dist/hooks/useResizeObserver.d.ts +17 -0
- package/dist/icon/Icon.vue.d.ts +20 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon/index.mjs +10 -0
- package/dist/icon/types.d.ts +45 -0
- package/dist/image/Image.vue.d.ts +38 -0
- package/dist/image/index.d.ts +5 -0
- package/dist/image/index.js +2 -0
- package/dist/image/index.mjs +128 -0
- package/dist/image/types.d.ts +10 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +362 -0
- package/dist/input/Input.vue.d.ts +47 -0
- package/dist/input/index.d.ts +5 -0
- package/dist/input/index.js +2 -0
- package/dist/input/index.mjs +10 -0
- package/dist/input/types.d.ts +51 -0
- package/dist/input-number/InputNumber.vue.d.ts +119 -0
- package/dist/input-number/index.d.ts +5 -0
- package/dist/input-number/index.js +2 -0
- package/dist/input-number/index.mjs +312 -0
- package/dist/input-number/types.d.ts +58 -0
- package/dist/layout/Content.vue.d.ts +29 -0
- package/dist/layout/Footer.vue.d.ts +29 -0
- package/dist/layout/Header.vue.d.ts +29 -0
- package/dist/layout/Layout.vue.d.ts +32 -0
- package/dist/layout/Sider.vue.d.ts +59 -0
- package/dist/layout/index.d.ts +13 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/index.mjs +154 -0
- package/dist/layout/types.d.ts +51 -0
- package/dist/layout-system/responsive.d.ts +4 -0
- package/dist/layout-system/types.d.ts +3 -0
- package/dist/loading/Loading.vue.d.ts +57 -0
- package/dist/loading/LoadingMask.vue.d.ts +8 -0
- package/dist/loading/directive.d.ts +5 -0
- package/dist/loading/index.d.ts +7 -0
- package/dist/loading/index.js +2 -0
- package/dist/loading/index.mjs +275 -0
- package/dist/loading/types.d.ts +23 -0
- package/dist/mentions/Mentions.vue.d.ts +337 -0
- package/dist/mentions/index.d.ts +296 -0
- package/dist/mentions/index.js +5 -0
- package/dist/mentions/index.mjs +357 -0
- package/dist/mentions/types.d.ts +55 -0
- package/dist/menu/Menu.vue.d.ts +120 -0
- package/dist/menu/MenuDivider.vue.d.ts +2 -0
- package/dist/menu/MenuGroup.vue.d.ts +29 -0
- package/dist/menu/MenuItem.vue.d.ts +48 -0
- package/dist/menu/MenuNodeRenderer.vue.d.ts +6 -0
- package/dist/menu/SubMenu.vue.d.ts +57 -0
- package/dist/menu/index.d.ts +13 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.mjs +772 -0
- package/dist/menu/types.d.ts +126 -0
- package/dist/message/MessageHost.vue.d.ts +15 -0
- package/dist/message/MessageItem.vue.d.ts +15 -0
- package/dist/message/index.d.ts +10 -0
- package/dist/message/index.js +2 -0
- package/dist/message/index.mjs +199 -0
- package/dist/message/runtime.d.ts +149 -0
- package/dist/message/types.d.ts +12 -0
- package/dist/notification/NotificationHost.vue.d.ts +15 -0
- package/dist/notification/NotificationItem.vue.d.ts +15 -0
- package/dist/notification/index.d.ts +10 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.mjs +207 -0
- package/dist/notification/runtime.d.ts +155 -0
- package/dist/notification/types.d.ts +12 -0
- package/dist/otp-input/OTPInput.vue.d.ts +84 -0
- package/dist/otp-input/index.d.ts +5 -0
- package/dist/otp-input/index.js +2 -0
- package/dist/otp-input/index.mjs +216 -0
- package/dist/otp-input/types.d.ts +41 -0
- package/dist/pagination/Pagination.vue.d.ts +101 -0
- package/dist/pagination/index.d.ts +102 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/index.mjs +260 -0
- package/dist/pagination/types.d.ts +48 -0
- package/dist/popover/Popover.vue.d.ts +136 -0
- package/dist/popover/index.d.ts +5 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.mjs +13 -0
- package/dist/popover/types.d.ts +49 -0
- package/dist/radio/Radio.vue.d.ts +30 -0
- package/dist/radio/RadioGroup.vue.d.ts +26 -0
- package/dist/radio/constants.d.ts +3 -0
- package/dist/radio/index.d.ts +7 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.mjs +273 -0
- package/dist/radio/types.d.ts +45 -0
- package/dist/rate/Rate.vue.d.ts +139 -0
- package/dist/rate/index.d.ts +140 -0
- package/dist/rate/index.js +3 -0
- package/dist/rate/index.mjs +276 -0
- package/dist/rate/types.d.ts +66 -0
- package/dist/rich-text/RichText.vue.d.ts +25 -0
- package/dist/rich-text/index.d.ts +17 -0
- package/dist/rich-text/index.js +2 -0
- package/dist/rich-text/index.mjs +312 -0
- package/dist/scrollbar/Scrollbar.vue.d.ts +37 -0
- package/dist/scrollbar/index.d.ts +5 -0
- package/dist/scrollbar/index.js +2 -0
- package/dist/scrollbar/index.mjs +10 -0
- package/dist/scrollbar/types.d.ts +17 -0
- package/dist/select/Option.vue.d.ts +45 -0
- package/dist/select/Select.vue.d.ts +136 -0
- package/dist/select/index.d.ts +9 -0
- package/dist/select/index.js +3 -0
- package/dist/select/index.mjs +656 -0
- package/dist/select/types.d.ts +92 -0
- package/dist/slider/Slider.vue.d.ts +123 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.mjs +326 -0
- package/dist/slider/types.d.ts +57 -0
- package/dist/space/Space.vue.d.ts +75 -0
- package/dist/space/index.d.ts +5 -0
- package/dist/space/index.js +2 -0
- package/dist/space/index.mjs +104 -0
- package/dist/space/types.d.ts +34 -0
- package/dist/splitter/Splitter.vue.d.ts +52 -0
- package/dist/splitter/SplitterPane.vue.d.ts +38 -0
- package/dist/splitter/index.d.ts +7 -0
- package/dist/splitter/index.js +2 -0
- package/dist/splitter/index.mjs +252 -0
- package/dist/splitter/types.d.ts +41 -0
- package/dist/splitter/utils.d.ts +6 -0
- package/dist/style/Button.css +1 -0
- package/dist/style/Checkbox.css +1 -0
- package/dist/style/Icon.css +1 -0
- package/dist/style/Input.css +1 -0
- package/dist/style/Popover.css +1 -0
- package/dist/style/Scrollbar.css +1 -0
- package/dist/style/TimePanel.css +1 -0
- package/dist/style/autocomplete.css +1 -0
- package/dist/style/avatar.css +1 -0
- package/dist/style/badge.css +1 -0
- package/dist/style/base.css +1 -0
- package/dist/style/breadcrumb.css +1 -0
- package/dist/style/card.css +1 -0
- package/dist/style/carousel.css +1 -0
- package/dist/style/cascader.css +1 -0
- package/dist/style/collapse.css +1 -0
- package/dist/style/color-picker.css +1 -0
- package/dist/style/context-menu.css +1 -0
- package/dist/style/date-picker.css +1 -0
- package/dist/style/dialog.css +1 -0
- package/dist/style/divider.css +1 -0
- package/dist/style/drawer.css +1 -0
- package/dist/style/empty.css +1 -0
- package/dist/style/form.css +1 -0
- package/dist/style/grid.css +1 -0
- package/dist/style/image.css +1 -0
- package/dist/style/index.css +1 -0
- package/dist/style/input-number.css +1 -0
- package/dist/style/layout.css +1 -0
- package/dist/style/loading.css +1 -0
- package/dist/style/mentions.css +1 -0
- package/dist/style/menu.css +1 -0
- package/dist/style/message.css +1 -0
- package/dist/style/notification.css +1 -0
- package/dist/style/otp-input.css +1 -0
- package/dist/style/pagination.css +1 -0
- package/dist/style/radio.css +1 -0
- package/dist/style/rate.css +1 -0
- package/dist/style/rich-text.css +1 -0
- package/dist/style/select.css +1 -0
- package/dist/style/slider.css +1 -0
- package/dist/style/space.css +1 -0
- package/dist/style/splitter.css +1 -0
- package/dist/style/switch.css +1 -0
- package/dist/style/table.css +1 -0
- package/dist/style/tabs.css +1 -0
- package/dist/style/tag.css +1 -0
- package/dist/style/tooltip.css +1 -0
- package/dist/style/transfer.css +1 -0
- package/dist/style/tree-select.css +1 -0
- package/dist/style/tree.css +1 -0
- package/dist/style/upload.css +1 -0
- package/dist/style/watermark.css +1 -0
- package/dist/switch/Switch.vue.d.ts +95 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.mjs +285 -0
- package/dist/switch/types.d.ts +81 -0
- package/dist/table/Table.vue.d.ts +102 -0
- package/dist/table/index.d.ts +5 -0
- package/dist/table/index.js +2 -0
- package/dist/table/index.mjs +263 -0
- package/dist/table/types.d.ts +64 -0
- package/dist/tabs/TabPane.vue.d.ts +55 -0
- package/dist/tabs/Tabs.vue.d.ts +92 -0
- package/dist/tabs/index.d.ts +7 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.mjs +266 -0
- package/dist/tabs/types.d.ts +78 -0
- package/dist/tag/Tag.vue.d.ts +38 -0
- package/dist/tag/index.d.ts +5 -0
- package/dist/tag/index.js +2 -0
- package/dist/tag/index.mjs +123 -0
- package/dist/tag/types.d.ts +83 -0
- package/dist/time-picker/TimePanel.vue.d.ts +19 -0
- package/dist/time-picker/TimePicker.vue.d.ts +15 -0
- package/dist/time-picker/index.d.ts +6 -0
- package/dist/time-picker/index.js +4 -0
- package/dist/time-picker/index.mjs +91 -0
- package/dist/tooltip/Tooltip.vue.d.ts +99 -0
- package/dist/tooltip/index.d.ts +5 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.mjs +186 -0
- package/dist/tooltip/types.d.ts +37 -0
- package/dist/transfer/Transfer.vue.d.ts +104 -0
- package/dist/transfer/TransferPanel.vue.d.ts +90 -0
- package/dist/transfer/index.d.ts +167 -0
- package/dist/transfer/index.js +7 -0
- package/dist/transfer/index.mjs +343 -0
- package/dist/tree/Tree.vue.d.ts +237 -0
- package/dist/tree/TreeRow.vue.d.ts +24 -0
- package/dist/tree/TreeView.vue.d.ts +24 -0
- package/dist/tree/context.d.ts +3 -0
- package/dist/tree/index.d.ts +431 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.mjs +548 -0
- package/dist/tree/types.d.ts +127 -0
- package/dist/tree/use-tree-foundation.d.ts +37 -0
- package/dist/tree-select/TreeNode.vue.d.ts +7 -0
- package/dist/tree-select/TreeSelect.vue.d.ts +210 -0
- package/dist/tree-select/index.d.ts +7 -0
- package/dist/tree-select/index.js +3 -0
- package/dist/tree-select/index.mjs +799 -0
- package/dist/tree-select/types.d.ts +111 -0
- package/dist/upload/Upload.vue.d.ts +50 -0
- package/dist/upload/index.d.ts +67 -0
- package/dist/upload/index.js +3 -0
- package/dist/upload/index.mjs +271 -0
- package/dist/utils/install.d.ts +3 -0
- package/dist/utils/style.d.ts +1 -0
- package/dist/watermark/Watermark.vue.d.ts +98 -0
- package/dist/watermark/index.d.ts +5 -0
- package/dist/watermark/index.js +2 -0
- package/dist/watermark/index.mjs +183 -0
- package/dist/watermark/types.d.ts +85 -0
- package/package.json +69 -0
- package/src/autocomplete/style/index.css +80 -0
- package/src/avatar/style/index.css +105 -0
- package/src/badge/style/index.css +232 -0
- package/src/base.css +4 -0
- package/src/breadcrumb/style/index.css +75 -0
- package/src/button/style/index.css +242 -0
- package/src/card/style/index.css +60 -0
- package/src/carousel/style/index.css +195 -0
- package/src/cascader/style/index.css +153 -0
- package/src/checkbox/style/index.css +165 -0
- package/src/collapse/style/index.css +166 -0
- package/src/color-picker/style/index.css +132 -0
- package/src/context-menu/style/index.css +21 -0
- package/src/date-picker/style/index.css +372 -0
- package/src/dialog/style/index.css +141 -0
- package/src/divider/style/index.css +112 -0
- package/src/drawer/style/index.css +211 -0
- package/src/dropdown/style/index.css +118 -0
- package/src/empty/style/index.css +87 -0
- package/src/form/style/index.css +148 -0
- package/src/grid/style/index.css +16 -0
- package/src/icon/style/index.css +28 -0
- package/src/image/style/index.css +114 -0
- package/src/input/style/index.css +217 -0
- package/src/input-number/style/index.css +166 -0
- package/src/layout/style/index.css +37 -0
- package/src/loading/style/index.css +58 -0
- package/src/mentions/style/index.css +83 -0
- package/src/menu/style/index.css +300 -0
- package/src/message/style/index.css +109 -0
- package/src/notification/style/index.css +116 -0
- package/src/otp-input/style/index.css +96 -0
- package/src/pagination/style/index.css +96 -0
- package/src/popover/style/index.css +47 -0
- package/src/radio/style/index.css +185 -0
- package/src/rate/style/index.css +89 -0
- package/src/rich-text/style/index.css +154 -0
- package/src/scrollbar/style/index.css +57 -0
- package/src/select/style/index.css +262 -0
- package/src/slider/style/index.css +181 -0
- package/src/space/style/index.css +31 -0
- package/src/splitter/style/index.css +76 -0
- package/src/style.css +1 -0
- package/src/styles/reset.css +29 -0
- package/src/switch/style/index.css +164 -0
- package/src/table/style/index.css +108 -0
- package/src/tabs/style/index.css +270 -0
- package/src/tag/style/index.css +207 -0
- package/src/time-picker/style/index.css +135 -0
- package/src/tooltip/style/index.css +50 -0
- package/src/transfer/style/index.css +181 -0
- package/src/tree/style/index.css +246 -0
- package/src/tree-select/style/index.css +346 -0
- package/src/upload/style/index.css +166 -0
- package/src/watermark/style/index.css +15 -0
- package/style.css +1 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
|
+
export type CarouselDirection = 'horizontal' | 'vertical';
|
|
3
|
+
export type CarouselTrigger = 'click' | 'hover';
|
|
4
|
+
export type CarouselIndicatorType = 'dot' | 'bar' | 'number' | 'none';
|
|
5
|
+
export type CarouselIndicatorPosition = 'inside' | 'outside';
|
|
6
|
+
export type CarouselArrow = 'always' | 'hover' | 'never';
|
|
7
|
+
export type CarouselAnimation = 'slide' | 'fade';
|
|
8
|
+
export declare const carouselProps: {
|
|
9
|
+
/** 当前展示的索引 / Current active index */
|
|
10
|
+
readonly modelValue: {
|
|
11
|
+
readonly type: NumberConstructor;
|
|
12
|
+
readonly default: 0;
|
|
13
|
+
};
|
|
14
|
+
/** 幻灯片切换时间间隔 / Autoplay interval (ms) */
|
|
15
|
+
readonly interval: {
|
|
16
|
+
readonly type: NumberConstructor;
|
|
17
|
+
readonly default: 3000;
|
|
18
|
+
};
|
|
19
|
+
/** 是否自动播放 / Whether to autoplay */
|
|
20
|
+
readonly autoplay: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
};
|
|
24
|
+
/** 轮播方向 / Carousel direction */
|
|
25
|
+
readonly direction: {
|
|
26
|
+
readonly type: PropType<CarouselDirection>;
|
|
27
|
+
readonly default: "horizontal";
|
|
28
|
+
};
|
|
29
|
+
/** 是否循环播放 / Whether to loop */
|
|
30
|
+
readonly loop: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: true;
|
|
33
|
+
};
|
|
34
|
+
/** 指示器类型 / Indicator type */
|
|
35
|
+
readonly indicatorType: {
|
|
36
|
+
readonly type: PropType<CarouselIndicatorType>;
|
|
37
|
+
readonly default: "dot";
|
|
38
|
+
};
|
|
39
|
+
/** 指示器位置 / Indicator position */
|
|
40
|
+
readonly indicatorPosition: {
|
|
41
|
+
readonly type: PropType<CarouselIndicatorPosition>;
|
|
42
|
+
readonly default: "inside";
|
|
43
|
+
};
|
|
44
|
+
/** 切换箭头的显示时机 / Arrow display timing */
|
|
45
|
+
readonly arrow: {
|
|
46
|
+
readonly type: PropType<CarouselArrow>;
|
|
47
|
+
readonly default: "hover";
|
|
48
|
+
};
|
|
49
|
+
/** 切换动画模式 / Transition animation mode */
|
|
50
|
+
readonly animation: {
|
|
51
|
+
readonly type: PropType<CarouselAnimation>;
|
|
52
|
+
readonly default: "slide";
|
|
53
|
+
};
|
|
54
|
+
/** 指示器的触发方式 / Indicator trigger mode */
|
|
55
|
+
readonly trigger: {
|
|
56
|
+
readonly type: PropType<CarouselTrigger>;
|
|
57
|
+
readonly default: "hover";
|
|
58
|
+
};
|
|
59
|
+
/** 轮播图高度 / Carousel height */
|
|
60
|
+
readonly height: {
|
|
61
|
+
readonly type: StringConstructor;
|
|
62
|
+
readonly default: "300px";
|
|
63
|
+
};
|
|
64
|
+
/** 是否在鼠标悬停时暂停自动播放 / Pause autoplay on hover */
|
|
65
|
+
readonly pauseOnHover: {
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly default: true;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export type CarouselProps = ExtractPropTypes<typeof carouselProps>;
|
|
71
|
+
export interface CarouselEmits {
|
|
72
|
+
(e: 'update:modelValue', index: number): void;
|
|
73
|
+
(e: 'change', index: number, prevIndex: number): void;
|
|
74
|
+
}
|
|
75
|
+
export declare const carouselItemProps: {
|
|
76
|
+
/** 项名称 / Item name */
|
|
77
|
+
readonly name: StringConstructor;
|
|
78
|
+
/** 标签(用于自定义指示器) / Label for indicators */
|
|
79
|
+
readonly label: StringConstructor;
|
|
80
|
+
};
|
|
81
|
+
export type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>;
|
|
82
|
+
export interface CarouselSlots {
|
|
83
|
+
default?: () => VNode[];
|
|
84
|
+
}
|
|
85
|
+
export interface CarouselItemSlots {
|
|
86
|
+
default?: () => VNode[];
|
|
87
|
+
}
|
|
88
|
+
export declare const CAROUSEL_CONTEXT_KEY: unique symbol;
|
|
89
|
+
export interface CarouselContext {
|
|
90
|
+
activeIndex: number;
|
|
91
|
+
direction: CarouselDirection;
|
|
92
|
+
animation: CarouselAnimation;
|
|
93
|
+
items: any[];
|
|
94
|
+
addItem: (item: any) => void;
|
|
95
|
+
removeItem: (uid: number) => void;
|
|
96
|
+
setActive: (index: number) => void;
|
|
97
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
4
|
+
readonly default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
readonly options: {
|
|
7
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').CascaderOption[]>;
|
|
8
|
+
readonly default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
readonly placeholder: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "请选择";
|
|
13
|
+
};
|
|
14
|
+
readonly disabled: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly clearable: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly expandTrigger: {
|
|
23
|
+
readonly type: import('vue').PropType<"click" | "hover">;
|
|
24
|
+
readonly default: "click";
|
|
25
|
+
};
|
|
26
|
+
readonly checkStrictly: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly separator: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: " / ";
|
|
33
|
+
};
|
|
34
|
+
readonly size: {
|
|
35
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
36
|
+
readonly default: "md";
|
|
37
|
+
};
|
|
38
|
+
readonly teleported: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly default: true;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
focus: (event: FocusEvent) => void;
|
|
44
|
+
blur: (event: FocusEvent) => void;
|
|
45
|
+
change: (value: (string | number)[], _options: import('../../../headless/src/index.ts').CascaderOption[]) => void;
|
|
46
|
+
clear: () => void;
|
|
47
|
+
"update:modelValue": (value: (string | number)[]) => void;
|
|
48
|
+
"expand-change": (path: (string | number)[]) => void;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
|
+
readonly modelValue: {
|
|
51
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
52
|
+
readonly default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
readonly options: {
|
|
55
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').CascaderOption[]>;
|
|
56
|
+
readonly default: () => never[];
|
|
57
|
+
};
|
|
58
|
+
readonly placeholder: {
|
|
59
|
+
readonly type: StringConstructor;
|
|
60
|
+
readonly default: "请选择";
|
|
61
|
+
};
|
|
62
|
+
readonly disabled: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly default: false;
|
|
65
|
+
};
|
|
66
|
+
readonly clearable: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly expandTrigger: {
|
|
71
|
+
readonly type: import('vue').PropType<"click" | "hover">;
|
|
72
|
+
readonly default: "click";
|
|
73
|
+
};
|
|
74
|
+
readonly checkStrictly: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly default: false;
|
|
77
|
+
};
|
|
78
|
+
readonly separator: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: " / ";
|
|
81
|
+
};
|
|
82
|
+
readonly size: {
|
|
83
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
84
|
+
readonly default: "md";
|
|
85
|
+
};
|
|
86
|
+
readonly teleported: {
|
|
87
|
+
readonly type: BooleanConstructor;
|
|
88
|
+
readonly default: true;
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{
|
|
91
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
92
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
93
|
+
onChange?: ((value: (string | number)[], _options: import('../../../headless/src/index.ts').CascaderOption[]) => any) | undefined;
|
|
94
|
+
onClear?: (() => any) | undefined;
|
|
95
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
96
|
+
"onExpand-change"?: ((path: (string | number)[]) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
readonly size: "sm" | "md" | "lg";
|
|
99
|
+
readonly disabled: boolean;
|
|
100
|
+
readonly modelValue: (string | number)[];
|
|
101
|
+
readonly checkStrictly: boolean;
|
|
102
|
+
readonly separator: string;
|
|
103
|
+
readonly placeholder: string;
|
|
104
|
+
readonly clearable: boolean;
|
|
105
|
+
readonly expandTrigger: "hover" | "click";
|
|
106
|
+
readonly options: import('../../../headless/src/index.ts').CascaderOption[];
|
|
107
|
+
readonly teleported: boolean;
|
|
108
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
109
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CascaderOption } from '../../../headless/src/index.ts';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
menus: {
|
|
5
|
+
type: PropType<CascaderOption[][]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
activePath: {
|
|
9
|
+
type: PropType<(string | number)[]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
selectedPath: {
|
|
13
|
+
type: PropType<(string | number)[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
focusedPath: {
|
|
17
|
+
type: PropType<(string | number)[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
expandTrigger: {
|
|
21
|
+
type: PropType<"click" | "hover">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
select: (path: (string | number)[]) => any;
|
|
26
|
+
expand: (path: (string | number)[], isLeaf: boolean) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
menus: {
|
|
29
|
+
type: PropType<CascaderOption[][]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
activePath: {
|
|
33
|
+
type: PropType<(string | number)[]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
selectedPath: {
|
|
37
|
+
type: PropType<(string | number)[]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
focusedPath: {
|
|
41
|
+
type: PropType<(string | number)[]>;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
expandTrigger: {
|
|
45
|
+
type: PropType<"click" | "hover">;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{
|
|
49
|
+
onSelect?: ((path: (string | number)[]) => any) | undefined;
|
|
50
|
+
onExpand?: ((path: (string | number)[], isLeaf: boolean) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
focusedPath: (string | number)[];
|
|
53
|
+
expandTrigger: "hover" | "click";
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const LCascader: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
4
|
+
readonly default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
readonly options: {
|
|
7
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').CascaderOption[]>;
|
|
8
|
+
readonly default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
readonly placeholder: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "请选择";
|
|
13
|
+
};
|
|
14
|
+
readonly disabled: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly clearable: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly default: false;
|
|
21
|
+
};
|
|
22
|
+
readonly expandTrigger: {
|
|
23
|
+
readonly type: import('vue').PropType<"click" | "hover">;
|
|
24
|
+
readonly default: "click";
|
|
25
|
+
};
|
|
26
|
+
readonly checkStrictly: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly separator: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: " / ";
|
|
33
|
+
};
|
|
34
|
+
readonly size: {
|
|
35
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
36
|
+
readonly default: "md";
|
|
37
|
+
};
|
|
38
|
+
readonly teleported: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly default: true;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
focus: (event: FocusEvent) => void;
|
|
44
|
+
blur: (event: FocusEvent) => void;
|
|
45
|
+
change: (value: (string | number)[], _options: import('../../../headless/src/index.ts').CascaderOption[]) => void;
|
|
46
|
+
clear: () => void;
|
|
47
|
+
"update:modelValue": (value: (string | number)[]) => void;
|
|
48
|
+
"expand-change": (path: (string | number)[]) => void;
|
|
49
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
50
|
+
readonly modelValue: {
|
|
51
|
+
readonly type: import('vue').PropType<(string | number)[]>;
|
|
52
|
+
readonly default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
readonly options: {
|
|
55
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').CascaderOption[]>;
|
|
56
|
+
readonly default: () => never[];
|
|
57
|
+
};
|
|
58
|
+
readonly placeholder: {
|
|
59
|
+
readonly type: StringConstructor;
|
|
60
|
+
readonly default: "请选择";
|
|
61
|
+
};
|
|
62
|
+
readonly disabled: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly default: false;
|
|
65
|
+
};
|
|
66
|
+
readonly clearable: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly expandTrigger: {
|
|
71
|
+
readonly type: import('vue').PropType<"click" | "hover">;
|
|
72
|
+
readonly default: "click";
|
|
73
|
+
};
|
|
74
|
+
readonly checkStrictly: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly default: false;
|
|
77
|
+
};
|
|
78
|
+
readonly separator: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: " / ";
|
|
81
|
+
};
|
|
82
|
+
readonly size: {
|
|
83
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
84
|
+
readonly default: "md";
|
|
85
|
+
};
|
|
86
|
+
readonly teleported: {
|
|
87
|
+
readonly type: BooleanConstructor;
|
|
88
|
+
readonly default: true;
|
|
89
|
+
};
|
|
90
|
+
}>> & Readonly<{
|
|
91
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
92
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
93
|
+
onChange?: ((value: (string | number)[], _options: import('../../../headless/src/index.ts').CascaderOption[]) => any) | undefined;
|
|
94
|
+
onClear?: (() => any) | undefined;
|
|
95
|
+
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
96
|
+
"onExpand-change"?: ((path: (string | number)[]) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
readonly size: "sm" | "md" | "lg";
|
|
99
|
+
readonly disabled: boolean;
|
|
100
|
+
readonly modelValue: (string | number)[];
|
|
101
|
+
readonly checkStrictly: boolean;
|
|
102
|
+
readonly separator: string;
|
|
103
|
+
readonly placeholder: string;
|
|
104
|
+
readonly clearable: boolean;
|
|
105
|
+
readonly expandTrigger: "hover" | "click";
|
|
106
|
+
readonly options: import('../../../headless/src/index.ts').CascaderOption[];
|
|
107
|
+
readonly teleported: boolean;
|
|
108
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>>;
|
|
109
|
+
export default LCascader;
|
|
110
|
+
export * from './types';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
require('../style/cascader.css');
|
|
2
|
+
require('../style/Input.css');
|
|
3
|
+
require('../style/Popover.css');
|
|
4
|
+
require('../style/Icon.css');
|
|
5
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const V=require("../chunks/install-gnn2dOg9.js"),e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const S=require("../chunks/index-DWAWrVaT.js"),q=require("../chunks/use-signals-Bz1smiXh.js"),N=require("../chunks/use-form-item-CloIcyon.js"),z=require("../chunks/use-id-BycaM3-h.js"),M=require("../chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js"),T=require("../chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js"),E=require("../chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js");function D(c){const b=S.signal(c.value??[]),l=S.signal(c.value??[]),o=S.signal([]),x=()=>typeof c.disabled=="function"?c.disabled():c.disabled??!1,g=S.signal(x());typeof c.disabled=="function"&&S.effect(()=>{g.value=x()});const C=S.computed(()=>{const t=[c.options];let a=c.options;for(const n of l.value){const r=a.find(k=>k.value===n);if(r&&r.children&&r.children.length>0)t.push(r.children),a=r.children;else break}return t}),P=(t,a)=>{g.value||(l.value=t,(c.checkStrictly||a)&&w(t))},w=t=>{var r;if(g.value)return;b.value=t;const a=[];let n=c.options;for(const k of t){const v=n.find(_=>_.value===k);v&&(a.push(v),n=v.children||[])}(r=c.onChange)==null||r.call(c,t,a)};return{state:{get value(){return b.value},set value(t){b.value=t},get activePath(){return l.value},get focusedPath(){return o.value},get menus(){return C.value},get disabled(){return g.value},set disabled(t){g.value=t}},actions:{expandNode:P,selectPath:w,syncActivePath:()=>{l.value=[...b.value]},moveFocus:t=>{if(g.value)return;const a=C.value;if(a.length===0)return;if(o.value.length===0){const f=a[0],p=f.findIndex(h=>!h.disabled);p>-1&&(o.value=[f[p].value]);return}const n=[...o.value],r=n.length-1,k=n[r],v=a[r];if(!v)return;const _=v.findIndex(f=>f.value===k);if(_!==-1)switch(t){case"down":case"up":{const f=t==="down"?1:-1,p=v.length;let h=(_+f+p)%p;for(;v[h].disabled&&h!==_;)h=(h+f+p)%p;v[h].disabled||(n[r]=v[h].value,o.value=n);break}case"right":{const f=v[_];if(f.children&&f.children.length>0){l.value=n;const p=f.children,h=p.findIndex(B=>!B.disabled);h>-1&&(o.value=[...n,p[h].value])}break}case"left":{r>0&&(o.value=n.slice(0,r));break}}},setFocusedPath:t=>{o.value=t}}}}const O={class:"l-cascader-panel"},$=["aria-haspopup","aria-expanded","onClick","onMouseenter"],H={class:"l-cascader-node__label"},j=e.defineComponent({__name:"CascaderPanel",props:{menus:{type:Array,required:!0},activePath:{type:Array,required:!0},selectedPath:{type:Array,required:!0},focusedPath:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"}},emits:["expand","select"],setup(c,{emit:b}){const l=c,o=b,x=(i,d)=>{const t=[...l.activePath.slice(0,d),i.value],a=!i.children||i.children.length===0;(l.expandTrigger==="click"||a)&&o("expand",t,a)},g=(i,d)=>{if(l.expandTrigger==="hover"){const t=[...l.activePath.slice(0,d),i.value];!i.children||i.children.length===0||o("expand",t,!1)}},C=(i,d)=>l.activePath[d]===i.value,P=(i,d)=>l.selectedPath[d]===i.value,w=(i,d)=>l.focusedPath[d]===i.value&&d===l.focusedPath.length-1;return(i,d)=>(e.openBlock(),e.createElementBlock("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.menus,(t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"l-cascader-menu",role:"menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createElementBlock("div",{key:n.value,class:e.normalizeClass(["l-cascader-node",{"is-active":C(n,a),"is-selected":P(n,a),"is-disabled":n.disabled,"is-focused":w(n,a)}]),role:"menuitem","aria-haspopup":n.children&&n.children.length>0?"menu":void 0,"aria-expanded":C(n,a),onClick:r=>x(n,a),onMouseenter:r=>g(n,a)},[e.createElementVNode("span",H,e.toDisplayString(n.label),1),n.children&&n.children.length>0?(e.openBlock(),e.createBlock(E._sfc_main,{key:0,name:"lucide:chevron-right",class:"l-cascader-node__icon"})):P(n,a)&&a===c.selectedPath.length-1?(e.openBlock(),e.createBlock(E._sfc_main,{key:1,name:"lucide:check",class:"l-cascader-node__check-icon"})):e.createCommentVNode("",!0)],42,$))),128))]))),128))]))}}),I={modelValue:{type:Array,default:()=>[]},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},separator:{type:String,default:" / "},size:{type:String,default:"md"},teleported:{type:Boolean,default:!0}},F={"update:modelValue":c=>Array.isArray(c),change:(c,b)=>Array.isArray(c),"expand-change":c=>Array.isArray(c),blur:c=>c instanceof FocusEvent,focus:c=>c instanceof FocusEvent,clear:()=>!0},K={class:"l-cascader__dropdown"},U=e.defineComponent({name:"LCascader",__name:"Cascader",props:I,emits:F,setup(c,{emit:b}){const l=c,o=b,{formItem:x,size:g,disabled:C,inputId:P}=N.useFormItem(),w=e.computed(()=>l.disabled||C.value),i=z.useId("cascader"),d=e.computed(()=>l.id||(P==null?void 0:P.value)||i),t=e.ref(!1),a=D({options:l.options,value:l.modelValue,expandTrigger:l.expandTrigger,checkStrictly:l.checkStrictly,disabled:()=>w.value,onChange:(s,u)=>{o("update:modelValue",s),o("change",s,u),x==null||x.validate("change").catch(()=>{}),l.checkStrictly||(t.value=!1)}}),{value:n,activePath:r,focusedPath:k,menus:v,disabled:_}=q.useController(a,{value:()=>l.modelValue,disabled:()=>w.value}),f=s=>{let u=l.options,m;for(const y of s){if(m=u.find(A=>A.value===y),!m)return;u=m.children||[]}return m},p=s=>{if(_.value)return;let u=!0;switch(s.key){case"ArrowUp":a.actions.moveFocus("up");break;case"ArrowDown":a.actions.moveFocus("down");break;case"ArrowRight":a.actions.moveFocus("right");break;case"ArrowLeft":a.actions.moveFocus("left");break;case"Enter":if(k.value.length>0){const m=[...k.value],y=f(m),A=!(y!=null&&y.children)||y.children.length===0;!l.checkStrictly&&!A?(a.actions.moveFocus("right"),o("expand-change",m)):(a.actions.selectPath(m),l.checkStrictly||(t.value=!1))}break;case"Escape":t.value=!1;break;default:u=!1}u&&s.preventDefault()},h=e.computed(()=>{if(n.value.length===0)return"";const s=[];let u=l.options;for(const m of n.value){const y=u.find(A=>A.value===m);y&&(s.push(y.label),u=y.children||[])}return s.join(l.separator)}),B=(s,u)=>{a.actions.expandNode(s,u),o("expand-change",s)};return(s,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["l-cascader",[`l-cascader--${s.size||e.unref(g)}`,{"is-disabled":e.unref(_),"is-active":t.value}]])},[e.createVNode(T._sfc_main,{visible:t.value,"onUpdate:visible":u[0]||(u[0]=m=>t.value=m),trigger:"click",placement:"bottom-start",disabled:e.unref(_),width:"auto","popper-class":"l-cascader__popper l-cascader__popover",onShow:e.unref(a).actions.syncActivePath,onHide:e.unref(a).actions.syncActivePath},{content:e.withCtx(()=>[e.createElementVNode("div",K,[e.createVNode(j,{menus:e.unref(v),"active-path":e.unref(r),"selected-path":e.unref(n),"focused-path":e.unref(k),"expand-trigger":s.expandTrigger,onExpand:B,onSelect:e.unref(a).actions.selectPath},null,8,["menus","active-path","selected-path","focused-path","expand-trigger","onSelect"])])]),default:e.withCtx(()=>[e.createVNode(M._sfc_main,{id:d.value,readonly:"","model-value":h.value,placeholder:s.placeholder,disabled:e.unref(_),size:s.size||e.unref(g),class:"l-cascader__trigger",onKeydown:p},{suffix:e.withCtx(()=>[e.createVNode(E._sfc_main,{name:"lucide:chevron-down",class:e.normalizeClass(["l-cascader__icon",{"is-reverse":t.value}])},null,8,["class"])]),_:1},8,["id","model-value","placeholder","disabled","size"])]),_:1},8,["visible","disabled","onShow","onHide"])],2))}}),L=V.withInstall(U);exports.LCascader=L;exports.cascaderEmits=F;exports.cascaderProps=I;exports.default=L;
|