@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,250 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
export declare const LCarousel: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
readonly modelValue: {
|
|
5
|
+
readonly type: NumberConstructor;
|
|
6
|
+
readonly default: 0;
|
|
7
|
+
};
|
|
8
|
+
readonly interval: {
|
|
9
|
+
readonly type: NumberConstructor;
|
|
10
|
+
readonly default: 3000;
|
|
11
|
+
};
|
|
12
|
+
readonly autoplay: {
|
|
13
|
+
readonly type: BooleanConstructor;
|
|
14
|
+
readonly default: false;
|
|
15
|
+
};
|
|
16
|
+
readonly direction: {
|
|
17
|
+
readonly type: import('vue').PropType<import('./types').CarouselDirection>;
|
|
18
|
+
readonly default: "horizontal";
|
|
19
|
+
};
|
|
20
|
+
readonly loop: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: true;
|
|
23
|
+
};
|
|
24
|
+
readonly indicatorType: {
|
|
25
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorType>;
|
|
26
|
+
readonly default: "dot";
|
|
27
|
+
};
|
|
28
|
+
readonly indicatorPosition: {
|
|
29
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorPosition>;
|
|
30
|
+
readonly default: "inside";
|
|
31
|
+
};
|
|
32
|
+
readonly arrow: {
|
|
33
|
+
readonly type: import('vue').PropType<import('./types').CarouselArrow>;
|
|
34
|
+
readonly default: "hover";
|
|
35
|
+
};
|
|
36
|
+
readonly animation: {
|
|
37
|
+
readonly type: import('vue').PropType<import('./types').CarouselAnimation>;
|
|
38
|
+
readonly default: "slide";
|
|
39
|
+
};
|
|
40
|
+
readonly trigger: {
|
|
41
|
+
readonly type: import('vue').PropType<import('./types').CarouselTrigger>;
|
|
42
|
+
readonly default: "hover";
|
|
43
|
+
};
|
|
44
|
+
readonly height: {
|
|
45
|
+
readonly type: StringConstructor;
|
|
46
|
+
readonly default: "300px";
|
|
47
|
+
};
|
|
48
|
+
readonly pauseOnHover: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: true;
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{
|
|
53
|
+
onChange?: ((index: number, prevIndex: number) => any) | undefined;
|
|
54
|
+
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
|
|
55
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
56
|
+
change: (index: number, prevIndex: number) => any;
|
|
57
|
+
"update:modelValue": (index: number) => any;
|
|
58
|
+
}, import('vue').PublicProps, {
|
|
59
|
+
readonly trigger: import('./types').CarouselTrigger;
|
|
60
|
+
readonly direction: import('./types').CarouselDirection;
|
|
61
|
+
readonly modelValue: number;
|
|
62
|
+
readonly animation: import('./types').CarouselAnimation;
|
|
63
|
+
readonly height: string;
|
|
64
|
+
readonly interval: number;
|
|
65
|
+
readonly autoplay: boolean;
|
|
66
|
+
readonly loop: boolean;
|
|
67
|
+
readonly indicatorType: import('./types').CarouselIndicatorType;
|
|
68
|
+
readonly indicatorPosition: import('./types').CarouselIndicatorPosition;
|
|
69
|
+
readonly arrow: import('./types').CarouselArrow;
|
|
70
|
+
readonly pauseOnHover: boolean;
|
|
71
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
72
|
+
P: {};
|
|
73
|
+
B: {};
|
|
74
|
+
D: {};
|
|
75
|
+
C: {};
|
|
76
|
+
M: {};
|
|
77
|
+
Defaults: {};
|
|
78
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
79
|
+
readonly modelValue: {
|
|
80
|
+
readonly type: NumberConstructor;
|
|
81
|
+
readonly default: 0;
|
|
82
|
+
};
|
|
83
|
+
readonly interval: {
|
|
84
|
+
readonly type: NumberConstructor;
|
|
85
|
+
readonly default: 3000;
|
|
86
|
+
};
|
|
87
|
+
readonly autoplay: {
|
|
88
|
+
readonly type: BooleanConstructor;
|
|
89
|
+
readonly default: false;
|
|
90
|
+
};
|
|
91
|
+
readonly direction: {
|
|
92
|
+
readonly type: import('vue').PropType<import('./types').CarouselDirection>;
|
|
93
|
+
readonly default: "horizontal";
|
|
94
|
+
};
|
|
95
|
+
readonly loop: {
|
|
96
|
+
readonly type: BooleanConstructor;
|
|
97
|
+
readonly default: true;
|
|
98
|
+
};
|
|
99
|
+
readonly indicatorType: {
|
|
100
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorType>;
|
|
101
|
+
readonly default: "dot";
|
|
102
|
+
};
|
|
103
|
+
readonly indicatorPosition: {
|
|
104
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorPosition>;
|
|
105
|
+
readonly default: "inside";
|
|
106
|
+
};
|
|
107
|
+
readonly arrow: {
|
|
108
|
+
readonly type: import('vue').PropType<import('./types').CarouselArrow>;
|
|
109
|
+
readonly default: "hover";
|
|
110
|
+
};
|
|
111
|
+
readonly animation: {
|
|
112
|
+
readonly type: import('vue').PropType<import('./types').CarouselAnimation>;
|
|
113
|
+
readonly default: "slide";
|
|
114
|
+
};
|
|
115
|
+
readonly trigger: {
|
|
116
|
+
readonly type: import('vue').PropType<import('./types').CarouselTrigger>;
|
|
117
|
+
readonly default: "hover";
|
|
118
|
+
};
|
|
119
|
+
readonly height: {
|
|
120
|
+
readonly type: StringConstructor;
|
|
121
|
+
readonly default: "300px";
|
|
122
|
+
};
|
|
123
|
+
readonly pauseOnHover: {
|
|
124
|
+
readonly type: BooleanConstructor;
|
|
125
|
+
readonly default: true;
|
|
126
|
+
};
|
|
127
|
+
}>> & Readonly<{
|
|
128
|
+
onChange?: ((index: number, prevIndex: number) => any) | undefined;
|
|
129
|
+
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
|
|
130
|
+
}>, {}, {}, {}, {}, {
|
|
131
|
+
readonly trigger: import('./types').CarouselTrigger;
|
|
132
|
+
readonly direction: import('./types').CarouselDirection;
|
|
133
|
+
readonly modelValue: number;
|
|
134
|
+
readonly animation: import('./types').CarouselAnimation;
|
|
135
|
+
readonly height: string;
|
|
136
|
+
readonly interval: number;
|
|
137
|
+
readonly autoplay: boolean;
|
|
138
|
+
readonly loop: boolean;
|
|
139
|
+
readonly indicatorType: import('./types').CarouselIndicatorType;
|
|
140
|
+
readonly indicatorPosition: import('./types').CarouselIndicatorPosition;
|
|
141
|
+
readonly arrow: import('./types').CarouselArrow;
|
|
142
|
+
readonly pauseOnHover: boolean;
|
|
143
|
+
}>;
|
|
144
|
+
__isFragment?: never;
|
|
145
|
+
__isTeleport?: never;
|
|
146
|
+
__isSuspense?: never;
|
|
147
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
148
|
+
readonly modelValue: {
|
|
149
|
+
readonly type: NumberConstructor;
|
|
150
|
+
readonly default: 0;
|
|
151
|
+
};
|
|
152
|
+
readonly interval: {
|
|
153
|
+
readonly type: NumberConstructor;
|
|
154
|
+
readonly default: 3000;
|
|
155
|
+
};
|
|
156
|
+
readonly autoplay: {
|
|
157
|
+
readonly type: BooleanConstructor;
|
|
158
|
+
readonly default: false;
|
|
159
|
+
};
|
|
160
|
+
readonly direction: {
|
|
161
|
+
readonly type: import('vue').PropType<import('./types').CarouselDirection>;
|
|
162
|
+
readonly default: "horizontal";
|
|
163
|
+
};
|
|
164
|
+
readonly loop: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly default: true;
|
|
167
|
+
};
|
|
168
|
+
readonly indicatorType: {
|
|
169
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorType>;
|
|
170
|
+
readonly default: "dot";
|
|
171
|
+
};
|
|
172
|
+
readonly indicatorPosition: {
|
|
173
|
+
readonly type: import('vue').PropType<import('./types').CarouselIndicatorPosition>;
|
|
174
|
+
readonly default: "inside";
|
|
175
|
+
};
|
|
176
|
+
readonly arrow: {
|
|
177
|
+
readonly type: import('vue').PropType<import('./types').CarouselArrow>;
|
|
178
|
+
readonly default: "hover";
|
|
179
|
+
};
|
|
180
|
+
readonly animation: {
|
|
181
|
+
readonly type: import('vue').PropType<import('./types').CarouselAnimation>;
|
|
182
|
+
readonly default: "slide";
|
|
183
|
+
};
|
|
184
|
+
readonly trigger: {
|
|
185
|
+
readonly type: import('vue').PropType<import('./types').CarouselTrigger>;
|
|
186
|
+
readonly default: "hover";
|
|
187
|
+
};
|
|
188
|
+
readonly height: {
|
|
189
|
+
readonly type: StringConstructor;
|
|
190
|
+
readonly default: "300px";
|
|
191
|
+
};
|
|
192
|
+
readonly pauseOnHover: {
|
|
193
|
+
readonly type: BooleanConstructor;
|
|
194
|
+
readonly default: true;
|
|
195
|
+
};
|
|
196
|
+
}>> & Readonly<{
|
|
197
|
+
onChange?: ((index: number, prevIndex: number) => any) | undefined;
|
|
198
|
+
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
|
|
199
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
200
|
+
change: (index: number, prevIndex: number) => any;
|
|
201
|
+
"update:modelValue": (index: number) => any;
|
|
202
|
+
}, string, {
|
|
203
|
+
readonly trigger: import('./types').CarouselTrigger;
|
|
204
|
+
readonly direction: import('./types').CarouselDirection;
|
|
205
|
+
readonly modelValue: number;
|
|
206
|
+
readonly animation: import('./types').CarouselAnimation;
|
|
207
|
+
readonly height: string;
|
|
208
|
+
readonly interval: number;
|
|
209
|
+
readonly autoplay: boolean;
|
|
210
|
+
readonly loop: boolean;
|
|
211
|
+
readonly indicatorType: import('./types').CarouselIndicatorType;
|
|
212
|
+
readonly indicatorPosition: import('./types').CarouselIndicatorPosition;
|
|
213
|
+
readonly arrow: import('./types').CarouselArrow;
|
|
214
|
+
readonly pauseOnHover: boolean;
|
|
215
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
216
|
+
$slots: {
|
|
217
|
+
default?(_: {}): any;
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
export declare const LCarouselItem: {
|
|
221
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
222
|
+
readonly name: StringConstructor;
|
|
223
|
+
readonly label: StringConstructor;
|
|
224
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
225
|
+
P: {};
|
|
226
|
+
B: {};
|
|
227
|
+
D: {};
|
|
228
|
+
C: {};
|
|
229
|
+
M: {};
|
|
230
|
+
Defaults: {};
|
|
231
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
232
|
+
readonly name: StringConstructor;
|
|
233
|
+
readonly label: StringConstructor;
|
|
234
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
235
|
+
__isFragment?: never;
|
|
236
|
+
__isTeleport?: never;
|
|
237
|
+
__isSuspense?: never;
|
|
238
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
239
|
+
readonly name: StringConstructor;
|
|
240
|
+
readonly label: StringConstructor;
|
|
241
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
242
|
+
$slots: {
|
|
243
|
+
default?(_: {}): any;
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
declare const _default: {
|
|
247
|
+
install(app: App): void;
|
|
248
|
+
};
|
|
249
|
+
export default _default;
|
|
250
|
+
export * from './types';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/carousel.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const s=require("../chunks/index-DWAWrVaT.js"),b=require("../chunks/use-signals-Bz1smiXh.js");function w(o={}){const c=s.signal(typeof o.initialIndex=="function"?o.initialIndex():o.initialIndex??0),t=s.signal(typeof o.loop=="function"?o.loop():o.loop??!0),i=s.signal(typeof o.autoplay=="function"?o.autoplay():o.autoplay??!1),l=s.signal(typeof o.interval=="function"?o.interval():o.interval??3e3),u=s.signal(typeof o.itemCount=="function"?o.itemCount():o.itemCount??0),n=s.signal(!1),p=s.signal(i.value);let v=null;typeof o.initialIndex=="function"&&s.effect(()=>{c.value=o.initialIndex()}),typeof o.loop=="function"&&s.effect(()=>{t.value=o.loop()}),typeof o.autoplay=="function"&&s.effect(()=>{i.value=o.autoplay(),p.value=i.value}),typeof o.interval=="function"&&s.effect(()=>{l.value=o.interval()}),typeof o.itemCount=="function"&&s.effect(()=>{u.value=o.itemCount()});const g=a=>{var f;if(u.value<=0)return;let r=a;a>=u.value?r=t.value?0:u.value-1:a<0&&(r=t.value?u.value-1:0),r!==c.value&&(c.value=r,(f=o.onIndexChange)==null||f.call(o,r))},y=()=>g(c.value+1),m=()=>g(c.value-1),C=()=>{d(),!(!i.value||n.value)&&(p.value=!0,v=setInterval(()=>{y()},l.value))},d=()=>{v&&(clearInterval(v),v=null),p.value=!1};return s.effect(()=>{i.value&&!n.value?C():d()}),{state:{get activeIndex(){return c.value},set activeIndex(a){g(a)},get itemCount(){return u.value},set itemCount(a){u.value=a},get isHovering(){return n.value},get isPlaying(){return p.value},get autoplay(){return i.value},get loop(){return t.value}},props:{onMouseEnter:()=>{n.value=!0},onMouseLeave:()=>{n.value=!1},role:"region","aria-roledescription":"carousel"},actions:{next:y,prev:m,goTo:g,play:()=>{i.value=!0},pause:()=>{i.value=!1}},getPrevButtonProps:()=>({"aria-label":"上一张"}),getNextButtonProps:()=>({"aria-label":"下一张"}),getIndicatorProps:a=>({role:"tab","aria-label":`切换到第 ${a+1} 张`,"aria-selected":c.value===a})}}const _={modelValue:{type:Number,default:0},interval:{type:Number,default:3e3},autoplay:{type:Boolean,default:!1},direction:{type:String,default:"horizontal"},loop:{type:Boolean,default:!0},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"inside"},arrow:{type:String,default:"hover"},animation:{type:String,default:"slide"},trigger:{type:String,default:"hover"},height:{type:String,default:"300px"},pauseOnHover:{type:Boolean,default:!0}},E={name:String,label:String},I=Symbol("CAROUSEL_CONTEXT_KEY"),P={class:"l-carousel__viewport"},L=["onClick","onMouseenter"],T={key:0},M=e.defineComponent({name:"Carousel",__name:"Carousel",props:_,emits:["update:modelValue","change"],setup(o,{emit:c}){const t=o,i=c,l=w({initialIndex:()=>t.modelValue,loop:()=>t.loop,autoplay:()=>t.autoplay,interval:()=>t.interval,onIndexChange:a=>{i("update:modelValue",a)}}),{activeIndex:u}=b.useController(l,{loop:()=>t.loop,autoplay:()=>t.autoplay,interval:()=>t.interval}),n=e.reactive([]),p=e.reactive({activeIndex:u,direction:e.computed(()=>t.direction),animation:e.computed(()=>t.animation),items:n,addItem:a=>{n.push(a),l.state.itemCount=n.length},removeItem:a=>{const r=n.findIndex(f=>f.uid===a);r!==-1&&(n.splice(r,1),l.state.itemCount=n.length)},setActive:a=>{l.actions.goTo(a)}});e.provide(I,p),e.watch(()=>t.modelValue,a=>{a!==l.state.activeIndex&&l.actions.goTo(a)});const v=()=>{t.pauseOnHover&&l.props.onMouseEnter()},g=()=>{t.pauseOnHover&&l.props.onMouseLeave()},y=a=>{l.actions.goTo(a)},m=a=>{t.trigger==="hover"&&l.actions.goTo(a)},C=e.computed(()=>({height:t.height})),d=e.computed(()=>["l-carousel",`l-carousel--${t.direction}`,{"l-carousel--outside":t.indicatorPosition==="outside"}]);return(a,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:d.value},e.unref(l).props,{tabindex:"0",onKeydown:[r[2]||(r[2]=e.withKeys(f=>e.unref(l).actions.prev(),["left"])),r[3]||(r[3]=e.withKeys(f=>e.unref(l).actions.next(),["right"]))],onMouseenter:v,onMouseleave:g}),[e.createElementVNode("div",{class:"l-carousel__container",style:e.normalizeStyle(C.value)},[a.arrow!=="never"?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:0,class:["l-carousel__arrow l-carousel__arrow--left",{"is-hover":a.arrow==="hover"}]},e.unref(l).getPrevButtonProps(),{onClick:r[0]||(r[0]=f=>e.unref(l).actions.prev())}),[...r[4]||(r[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"24",height:"24"},[e.createElementVNode("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})],-1)])],16)):e.createCommentVNode("",!0),e.createElementVNode("div",P,[e.renderSlot(a.$slots,"default")]),a.arrow!=="never"?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,class:["l-carousel__arrow l-carousel__arrow--right",{"is-hover":a.arrow==="hover"}]},e.unref(l).getNextButtonProps(),{onClick:r[1]||(r[1]=f=>e.unref(l).actions.next())}),[...r[5]||(r[5]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"24",height:"24"},[e.createElementVNode("path",{fill:"currentColor",d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})],-1)])],16)):e.createCommentVNode("",!0)],4),a.indicatorType!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(["l-carousel__indicators",[`l-carousel__indicators--${a.direction}`,`l-carousel__indicators--${a.indicatorType}`]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,(f,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:e.normalizeClass(["l-carousel__indicator",{"is-active":h===e.unref(u)}]),onClick:S=>y(h),onMouseenter:S=>m(h)},[e.createElementVNode("button",e.mergeProps({class:"l-carousel__indicator-button"},{ref_for:!0},e.unref(l).getIndicatorProps(h)),[a.indicatorType==="number"?(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString(h+1),1)):e.createCommentVNode("",!0)],16)],42,L))),128))],2)):e.createCommentVNode("",!0)],16))}}),N=["aria-label","aria-hidden"],$=e.defineComponent({name:"CarouselItem",__name:"CarouselItem",props:E,setup(o){const c=o,t=e.inject(I),i=e.getCurrentInstance();t||console.warn("LCarouselItem must be used within LCarousel");const l=e.reactive({uid:(i==null?void 0:i.uid)||Math.random(),name:c.name,label:c.label,active:!1,translate:0,scale:1,ready:!1});e.onMounted(()=>{t==null||t.addItem(l),setTimeout(()=>{l.ready=!0},0)}),e.onBeforeUnmount(()=>{t==null||t.removeItem(l.uid)});const u=e.computed(()=>(t==null?void 0:t.items.findIndex(m=>m.uid===l.uid))??-1),n=e.computed(()=>u.value===(t==null?void 0:t.activeIndex)),p=e.computed(()=>(t==null?void 0:t.direction)==="vertical"),v=e.computed(()=>(t==null?void 0:t.animation)==="fade"),g=e.computed(()=>{if(v.value)return{};const m=u.value,C=(t==null?void 0:t.activeIndex)??0,d=(t==null?void 0:t.items.length)??0;if(d<=1)return{};let a=m-C;Math.abs(a)>d/2&&(a>0?a-=d:a+=d);const r=a*100;return{transform:p.value?`translateY(${r}%)`:`translateX(${r}%)`,zIndex:n.value?2:1,opacity:Math.abs(a)>1&&!n.value?0:1}}),y=e.computed(()=>["l-carousel-item",{"is-active":n.value,"is-fade":v.value,"is-ready":l.ready}]);return(m,C)=>{var d;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(y.value),style:e.normalizeStyle(g.value),role:"group","aria-roledescription":"slide","aria-label":`${u.value+1} / ${(d=e.unref(t))==null?void 0:d.items.length}`,"aria-hidden":!n.value},[e.renderSlot(m.$slots,"default")],14,N)),[[e.vShow,v.value?n.value:!0]])}}}),k=M,B=$,V={install(o){o.component("LCarousel",k),o.component("LCarouselItem",B)}};exports.CAROUSEL_CONTEXT_KEY=I;exports.LCarousel=k;exports.LCarouselItem=B;exports.carouselItemProps=E;exports.carouselProps=_;exports.default=V;
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import '../style/carousel.css';
|
|
2
|
+
import { defineComponent as k, reactive as M, computed as d, provide as O, watch as z, openBlock as g, createElementBlock as C, mergeProps as $, unref as v, withKeys as T, createElementVNode as h, normalizeStyle as B, createCommentVNode as L, renderSlot as E, normalizeClass as P, Fragment as H, renderList as A, toDisplayString as K, inject as x, getCurrentInstance as U, onMounted as X, onBeforeUnmount as Y, withDirectives as D, vShow as F } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as I, e as S } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as R } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
function j(a = {}) {
|
|
7
|
+
const u = I(typeof a.initialIndex == "function" ? a.initialIndex() : a.initialIndex ?? 0), e = I(typeof a.loop == "function" ? a.loop() : a.loop ?? !0), n = I(typeof a.autoplay == "function" ? a.autoplay() : a.autoplay ?? !1), l = I(typeof a.interval == "function" ? a.interval() : a.interval ?? 3e3), i = I(typeof a.itemCount == "function" ? a.itemCount() : a.itemCount ?? 0), r = I(!1), p = I(n.value);
|
|
8
|
+
let c = null;
|
|
9
|
+
typeof a.initialIndex == "function" && S(() => {
|
|
10
|
+
u.value = a.initialIndex();
|
|
11
|
+
}), typeof a.loop == "function" && S(() => {
|
|
12
|
+
e.value = a.loop();
|
|
13
|
+
}), typeof a.autoplay == "function" && S(() => {
|
|
14
|
+
n.value = a.autoplay(), p.value = n.value;
|
|
15
|
+
}), typeof a.interval == "function" && S(() => {
|
|
16
|
+
l.value = a.interval();
|
|
17
|
+
}), typeof a.itemCount == "function" && S(() => {
|
|
18
|
+
i.value = a.itemCount();
|
|
19
|
+
});
|
|
20
|
+
const y = (t) => {
|
|
21
|
+
var m;
|
|
22
|
+
if (i.value <= 0) return;
|
|
23
|
+
let o = t;
|
|
24
|
+
t >= i.value ? o = e.value ? 0 : i.value - 1 : t < 0 && (o = e.value ? i.value - 1 : 0), o !== u.value && (u.value = o, (m = a.onIndexChange) == null || m.call(a, o));
|
|
25
|
+
}, _ = () => y(u.value + 1), f = () => y(u.value - 1), b = () => {
|
|
26
|
+
s(), !(!n.value || r.value) && (p.value = !0, c = setInterval(() => {
|
|
27
|
+
_();
|
|
28
|
+
}, l.value));
|
|
29
|
+
}, s = () => {
|
|
30
|
+
c && (clearInterval(c), c = null), p.value = !1;
|
|
31
|
+
};
|
|
32
|
+
return S(() => {
|
|
33
|
+
n.value && !r.value ? b() : s();
|
|
34
|
+
}), {
|
|
35
|
+
state: {
|
|
36
|
+
get activeIndex() {
|
|
37
|
+
return u.value;
|
|
38
|
+
},
|
|
39
|
+
set activeIndex(t) {
|
|
40
|
+
y(t);
|
|
41
|
+
},
|
|
42
|
+
get itemCount() {
|
|
43
|
+
return i.value;
|
|
44
|
+
},
|
|
45
|
+
set itemCount(t) {
|
|
46
|
+
i.value = t;
|
|
47
|
+
},
|
|
48
|
+
get isHovering() {
|
|
49
|
+
return r.value;
|
|
50
|
+
},
|
|
51
|
+
get isPlaying() {
|
|
52
|
+
return p.value;
|
|
53
|
+
},
|
|
54
|
+
get autoplay() {
|
|
55
|
+
return n.value;
|
|
56
|
+
},
|
|
57
|
+
get loop() {
|
|
58
|
+
return e.value;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
props: {
|
|
62
|
+
onMouseEnter: () => {
|
|
63
|
+
r.value = !0;
|
|
64
|
+
},
|
|
65
|
+
onMouseLeave: () => {
|
|
66
|
+
r.value = !1;
|
|
67
|
+
},
|
|
68
|
+
role: "region",
|
|
69
|
+
"aria-roledescription": "carousel"
|
|
70
|
+
},
|
|
71
|
+
actions: {
|
|
72
|
+
next: _,
|
|
73
|
+
prev: f,
|
|
74
|
+
goTo: y,
|
|
75
|
+
play: () => {
|
|
76
|
+
n.value = !0;
|
|
77
|
+
},
|
|
78
|
+
pause: () => {
|
|
79
|
+
n.value = !1;
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
getPrevButtonProps: () => ({
|
|
83
|
+
"aria-label": "上一张"
|
|
84
|
+
}),
|
|
85
|
+
getNextButtonProps: () => ({
|
|
86
|
+
"aria-label": "下一张"
|
|
87
|
+
}),
|
|
88
|
+
getIndicatorProps: (t) => ({
|
|
89
|
+
role: "tab",
|
|
90
|
+
"aria-label": `切换到第 ${t + 1} 张`,
|
|
91
|
+
"aria-selected": u.value === t
|
|
92
|
+
})
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
const q = {
|
|
96
|
+
/** 当前展示的索引 / Current active index */
|
|
97
|
+
modelValue: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 0
|
|
100
|
+
},
|
|
101
|
+
/** 幻灯片切换时间间隔 / Autoplay interval (ms) */
|
|
102
|
+
interval: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: 3e3
|
|
105
|
+
},
|
|
106
|
+
/** 是否自动播放 / Whether to autoplay */
|
|
107
|
+
autoplay: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
/** 轮播方向 / Carousel direction */
|
|
112
|
+
direction: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: "horizontal"
|
|
115
|
+
},
|
|
116
|
+
/** 是否循环播放 / Whether to loop */
|
|
117
|
+
loop: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: !0
|
|
120
|
+
},
|
|
121
|
+
/** 指示器类型 / Indicator type */
|
|
122
|
+
indicatorType: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: "dot"
|
|
125
|
+
},
|
|
126
|
+
/** 指示器位置 / Indicator position */
|
|
127
|
+
indicatorPosition: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: "inside"
|
|
130
|
+
},
|
|
131
|
+
/** 切换箭头的显示时机 / Arrow display timing */
|
|
132
|
+
arrow: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: "hover"
|
|
135
|
+
},
|
|
136
|
+
/** 切换动画模式 / Transition animation mode */
|
|
137
|
+
animation: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "slide"
|
|
140
|
+
},
|
|
141
|
+
/** 指示器的触发方式 / Indicator trigger mode */
|
|
142
|
+
trigger: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: "hover"
|
|
145
|
+
},
|
|
146
|
+
/** 轮播图高度 / Carousel height */
|
|
147
|
+
height: {
|
|
148
|
+
type: String,
|
|
149
|
+
default: "300px"
|
|
150
|
+
},
|
|
151
|
+
/** 是否在鼠标悬停时暂停自动播放 / Pause autoplay on hover */
|
|
152
|
+
pauseOnHover: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !0
|
|
155
|
+
}
|
|
156
|
+
}, G = {
|
|
157
|
+
/** 项名称 / Item name */
|
|
158
|
+
name: String,
|
|
159
|
+
/** 标签(用于自定义指示器) / Label for indicators */
|
|
160
|
+
label: String
|
|
161
|
+
}, N = Symbol("CAROUSEL_CONTEXT_KEY"), J = { class: "l-carousel__viewport" }, Q = ["onClick", "onMouseenter"], W = { key: 0 }, Z = /* @__PURE__ */ k({
|
|
162
|
+
name: "Carousel",
|
|
163
|
+
__name: "Carousel",
|
|
164
|
+
props: q,
|
|
165
|
+
emits: ["update:modelValue", "change"],
|
|
166
|
+
setup(a, { emit: u }) {
|
|
167
|
+
const e = a, n = u, l = j({
|
|
168
|
+
initialIndex: () => e.modelValue,
|
|
169
|
+
loop: () => e.loop,
|
|
170
|
+
autoplay: () => e.autoplay,
|
|
171
|
+
interval: () => e.interval,
|
|
172
|
+
onIndexChange: (t) => {
|
|
173
|
+
n("update:modelValue", t);
|
|
174
|
+
}
|
|
175
|
+
}), { activeIndex: i } = R(l, {
|
|
176
|
+
loop: () => e.loop,
|
|
177
|
+
autoplay: () => e.autoplay,
|
|
178
|
+
interval: () => e.interval
|
|
179
|
+
}), r = M([]), p = M({
|
|
180
|
+
activeIndex: i,
|
|
181
|
+
direction: d(() => e.direction),
|
|
182
|
+
animation: d(() => e.animation),
|
|
183
|
+
items: r,
|
|
184
|
+
addItem: (t) => {
|
|
185
|
+
r.push(t), l.state.itemCount = r.length;
|
|
186
|
+
},
|
|
187
|
+
removeItem: (t) => {
|
|
188
|
+
const o = r.findIndex((m) => m.uid === t);
|
|
189
|
+
o !== -1 && (r.splice(o, 1), l.state.itemCount = r.length);
|
|
190
|
+
},
|
|
191
|
+
setActive: (t) => {
|
|
192
|
+
l.actions.goTo(t);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
O(N, p), z(() => e.modelValue, (t) => {
|
|
196
|
+
t !== l.state.activeIndex && l.actions.goTo(t);
|
|
197
|
+
});
|
|
198
|
+
const c = () => {
|
|
199
|
+
e.pauseOnHover && l.props.onMouseEnter();
|
|
200
|
+
}, y = () => {
|
|
201
|
+
e.pauseOnHover && l.props.onMouseLeave();
|
|
202
|
+
}, _ = (t) => {
|
|
203
|
+
l.actions.goTo(t);
|
|
204
|
+
}, f = (t) => {
|
|
205
|
+
e.trigger === "hover" && l.actions.goTo(t);
|
|
206
|
+
}, b = d(() => ({
|
|
207
|
+
height: e.height
|
|
208
|
+
})), s = d(() => [
|
|
209
|
+
"l-carousel",
|
|
210
|
+
`l-carousel--${e.direction}`,
|
|
211
|
+
{
|
|
212
|
+
"l-carousel--outside": e.indicatorPosition === "outside"
|
|
213
|
+
}
|
|
214
|
+
]);
|
|
215
|
+
return (t, o) => (g(), C("div", $({ class: s.value }, v(l).props, {
|
|
216
|
+
tabindex: "0",
|
|
217
|
+
onKeydown: [
|
|
218
|
+
o[2] || (o[2] = T((m) => v(l).actions.prev(), ["left"])),
|
|
219
|
+
o[3] || (o[3] = T((m) => v(l).actions.next(), ["right"]))
|
|
220
|
+
],
|
|
221
|
+
onMouseenter: c,
|
|
222
|
+
onMouseleave: y
|
|
223
|
+
}), [
|
|
224
|
+
h("div", {
|
|
225
|
+
class: "l-carousel__container",
|
|
226
|
+
style: B(b.value)
|
|
227
|
+
}, [
|
|
228
|
+
t.arrow !== "never" ? (g(), C("button", $({
|
|
229
|
+
key: 0,
|
|
230
|
+
class: ["l-carousel__arrow l-carousel__arrow--left", { "is-hover": t.arrow === "hover" }]
|
|
231
|
+
}, v(l).getPrevButtonProps(), {
|
|
232
|
+
onClick: o[0] || (o[0] = (m) => v(l).actions.prev())
|
|
233
|
+
}), [...o[4] || (o[4] = [
|
|
234
|
+
h("svg", {
|
|
235
|
+
viewBox: "0 0 24 24",
|
|
236
|
+
width: "24",
|
|
237
|
+
height: "24"
|
|
238
|
+
}, [
|
|
239
|
+
h("path", {
|
|
240
|
+
fill: "currentColor",
|
|
241
|
+
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
242
|
+
})
|
|
243
|
+
], -1)
|
|
244
|
+
])], 16)) : L("", !0),
|
|
245
|
+
h("div", J, [
|
|
246
|
+
E(t.$slots, "default")
|
|
247
|
+
]),
|
|
248
|
+
t.arrow !== "never" ? (g(), C("button", $({
|
|
249
|
+
key: 1,
|
|
250
|
+
class: ["l-carousel__arrow l-carousel__arrow--right", { "is-hover": t.arrow === "hover" }]
|
|
251
|
+
}, v(l).getNextButtonProps(), {
|
|
252
|
+
onClick: o[1] || (o[1] = (m) => v(l).actions.next())
|
|
253
|
+
}), [...o[5] || (o[5] = [
|
|
254
|
+
h("svg", {
|
|
255
|
+
viewBox: "0 0 24 24",
|
|
256
|
+
width: "24",
|
|
257
|
+
height: "24"
|
|
258
|
+
}, [
|
|
259
|
+
h("path", {
|
|
260
|
+
fill: "currentColor",
|
|
261
|
+
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
262
|
+
})
|
|
263
|
+
], -1)
|
|
264
|
+
])], 16)) : L("", !0)
|
|
265
|
+
], 4),
|
|
266
|
+
t.indicatorType !== "none" ? (g(), C("ul", {
|
|
267
|
+
key: 0,
|
|
268
|
+
class: P(["l-carousel__indicators", [`l-carousel__indicators--${t.direction}`, `l-carousel__indicators--${t.indicatorType}`]])
|
|
269
|
+
}, [
|
|
270
|
+
(g(!0), C(H, null, A(r, (m, w) => (g(), C("li", {
|
|
271
|
+
key: w,
|
|
272
|
+
class: P(["l-carousel__indicator", { "is-active": w === v(i) }]),
|
|
273
|
+
onClick: (V) => _(w),
|
|
274
|
+
onMouseenter: (V) => f(w)
|
|
275
|
+
}, [
|
|
276
|
+
h("button", $({ class: "l-carousel__indicator-button" }, { ref_for: !0 }, v(l).getIndicatorProps(w)), [
|
|
277
|
+
t.indicatorType === "number" ? (g(), C("span", W, K(w + 1), 1)) : L("", !0)
|
|
278
|
+
], 16)
|
|
279
|
+
], 42, Q))), 128))
|
|
280
|
+
], 2)) : L("", !0)
|
|
281
|
+
], 16));
|
|
282
|
+
}
|
|
283
|
+
}), ee = ["aria-label", "aria-hidden"], te = /* @__PURE__ */ k({
|
|
284
|
+
name: "CarouselItem",
|
|
285
|
+
__name: "CarouselItem",
|
|
286
|
+
props: G,
|
|
287
|
+
setup(a) {
|
|
288
|
+
const u = a, e = x(N), n = U();
|
|
289
|
+
e || console.warn("LCarouselItem must be used within LCarousel");
|
|
290
|
+
const l = M({
|
|
291
|
+
uid: (n == null ? void 0 : n.uid) || Math.random(),
|
|
292
|
+
name: u.name,
|
|
293
|
+
label: u.label,
|
|
294
|
+
active: !1,
|
|
295
|
+
translate: 0,
|
|
296
|
+
scale: 1,
|
|
297
|
+
ready: !1
|
|
298
|
+
});
|
|
299
|
+
X(() => {
|
|
300
|
+
e == null || e.addItem(l), setTimeout(() => {
|
|
301
|
+
l.ready = !0;
|
|
302
|
+
}, 0);
|
|
303
|
+
}), Y(() => {
|
|
304
|
+
e == null || e.removeItem(l.uid);
|
|
305
|
+
});
|
|
306
|
+
const i = d(() => (e == null ? void 0 : e.items.findIndex((f) => f.uid === l.uid)) ?? -1), r = d(() => i.value === (e == null ? void 0 : e.activeIndex)), p = d(() => (e == null ? void 0 : e.direction) === "vertical"), c = d(() => (e == null ? void 0 : e.animation) === "fade"), y = d(() => {
|
|
307
|
+
if (c.value) return {};
|
|
308
|
+
const f = i.value, b = (e == null ? void 0 : e.activeIndex) ?? 0, s = (e == null ? void 0 : e.items.length) ?? 0;
|
|
309
|
+
if (s <= 1) return {};
|
|
310
|
+
let t = f - b;
|
|
311
|
+
Math.abs(t) > s / 2 && (t > 0 ? t -= s : t += s);
|
|
312
|
+
const o = t * 100;
|
|
313
|
+
return {
|
|
314
|
+
transform: p.value ? `translateY(${o}%)` : `translateX(${o}%)`,
|
|
315
|
+
zIndex: r.value ? 2 : 1,
|
|
316
|
+
opacity: Math.abs(t) > 1 && !r.value ? 0 : 1
|
|
317
|
+
};
|
|
318
|
+
}), _ = d(() => [
|
|
319
|
+
"l-carousel-item",
|
|
320
|
+
{
|
|
321
|
+
"is-active": r.value,
|
|
322
|
+
"is-fade": c.value,
|
|
323
|
+
"is-ready": l.ready
|
|
324
|
+
}
|
|
325
|
+
]);
|
|
326
|
+
return (f, b) => {
|
|
327
|
+
var s;
|
|
328
|
+
return D((g(), C("div", {
|
|
329
|
+
class: P(_.value),
|
|
330
|
+
style: B(y.value),
|
|
331
|
+
role: "group",
|
|
332
|
+
"aria-roledescription": "slide",
|
|
333
|
+
"aria-label": `${i.value + 1} / ${(s = v(e)) == null ? void 0 : s.items.length}`,
|
|
334
|
+
"aria-hidden": !r.value
|
|
335
|
+
}, [
|
|
336
|
+
E(f.$slots, "default")
|
|
337
|
+
], 14, ee)), [
|
|
338
|
+
[F, c.value ? r.value : !0]
|
|
339
|
+
]);
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
}), ae = Z, le = te, ue = {
|
|
343
|
+
install(a) {
|
|
344
|
+
a.component("LCarousel", ae), a.component("LCarouselItem", le);
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
export {
|
|
348
|
+
N as CAROUSEL_CONTEXT_KEY,
|
|
349
|
+
ae as LCarousel,
|
|
350
|
+
le as LCarouselItem,
|
|
351
|
+
G as carouselItemProps,
|
|
352
|
+
q as carouselProps,
|
|
353
|
+
ue as default
|
|
354
|
+
};
|