@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,41 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const otpInputProps: {
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: StringConstructor;
|
|
5
|
+
readonly default: "";
|
|
6
|
+
};
|
|
7
|
+
readonly length: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: 6;
|
|
10
|
+
};
|
|
11
|
+
readonly disabled: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
14
|
+
};
|
|
15
|
+
readonly password: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly size: {
|
|
20
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
21
|
+
};
|
|
22
|
+
readonly placeholder: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly type: {
|
|
27
|
+
readonly type: PropType<"text" | "number" | "password">;
|
|
28
|
+
readonly default: "text";
|
|
29
|
+
};
|
|
30
|
+
readonly autofocus: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export type OTPInputProps = ExtractPropTypes<typeof otpInputProps>;
|
|
36
|
+
export declare const otpInputEmits: {
|
|
37
|
+
'update:modelValue': (_val: string) => boolean;
|
|
38
|
+
change: (_val: string) => boolean;
|
|
39
|
+
complete: (_val: string) => boolean;
|
|
40
|
+
};
|
|
41
|
+
export type OTPInputEmits = typeof otpInputEmits;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: import('vue').PropType<number | undefined>;
|
|
4
|
+
readonly default: undefined;
|
|
5
|
+
};
|
|
6
|
+
readonly defaultValue: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 1;
|
|
9
|
+
};
|
|
10
|
+
readonly total: {
|
|
11
|
+
readonly type: NumberConstructor;
|
|
12
|
+
readonly default: 0;
|
|
13
|
+
};
|
|
14
|
+
readonly pageSize: {
|
|
15
|
+
readonly type: NumberConstructor;
|
|
16
|
+
readonly default: 10;
|
|
17
|
+
};
|
|
18
|
+
readonly pagerCount: {
|
|
19
|
+
readonly type: NumberConstructor;
|
|
20
|
+
readonly default: 7;
|
|
21
|
+
};
|
|
22
|
+
readonly disabled: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
};
|
|
26
|
+
readonly showTotal: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly prevText: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "Prev";
|
|
33
|
+
};
|
|
34
|
+
readonly nextText: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "Next";
|
|
37
|
+
};
|
|
38
|
+
readonly size: {
|
|
39
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
40
|
+
readonly default: "md";
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
change: (_page: number) => void;
|
|
44
|
+
"update:modelValue": (_page: number) => void;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
readonly modelValue: {
|
|
47
|
+
readonly type: import('vue').PropType<number | undefined>;
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly defaultValue: {
|
|
51
|
+
readonly type: NumberConstructor;
|
|
52
|
+
readonly default: 1;
|
|
53
|
+
};
|
|
54
|
+
readonly total: {
|
|
55
|
+
readonly type: NumberConstructor;
|
|
56
|
+
readonly default: 0;
|
|
57
|
+
};
|
|
58
|
+
readonly pageSize: {
|
|
59
|
+
readonly type: NumberConstructor;
|
|
60
|
+
readonly default: 10;
|
|
61
|
+
};
|
|
62
|
+
readonly pagerCount: {
|
|
63
|
+
readonly type: NumberConstructor;
|
|
64
|
+
readonly default: 7;
|
|
65
|
+
};
|
|
66
|
+
readonly disabled: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly showTotal: {
|
|
71
|
+
readonly type: BooleanConstructor;
|
|
72
|
+
readonly default: false;
|
|
73
|
+
};
|
|
74
|
+
readonly prevText: {
|
|
75
|
+
readonly type: StringConstructor;
|
|
76
|
+
readonly default: "Prev";
|
|
77
|
+
};
|
|
78
|
+
readonly nextText: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: "Next";
|
|
81
|
+
};
|
|
82
|
+
readonly size: {
|
|
83
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
84
|
+
readonly default: "md";
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onChange?: ((_page: number) => any) | undefined;
|
|
88
|
+
"onUpdate:modelValue"?: ((_page: number) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
readonly size: "sm" | "md" | "lg";
|
|
91
|
+
readonly disabled: boolean;
|
|
92
|
+
readonly modelValue: number | undefined;
|
|
93
|
+
readonly defaultValue: number;
|
|
94
|
+
readonly total: number;
|
|
95
|
+
readonly pageSize: number;
|
|
96
|
+
readonly pagerCount: number;
|
|
97
|
+
readonly showTotal: boolean;
|
|
98
|
+
readonly prevText: string;
|
|
99
|
+
readonly nextText: string;
|
|
100
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
|
|
101
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const LPagination: import('../utils/install').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly modelValue: {
|
|
3
|
+
readonly type: import('vue').PropType<number | undefined>;
|
|
4
|
+
readonly default: undefined;
|
|
5
|
+
};
|
|
6
|
+
readonly defaultValue: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 1;
|
|
9
|
+
};
|
|
10
|
+
readonly total: {
|
|
11
|
+
readonly type: NumberConstructor;
|
|
12
|
+
readonly default: 0;
|
|
13
|
+
};
|
|
14
|
+
readonly pageSize: {
|
|
15
|
+
readonly type: NumberConstructor;
|
|
16
|
+
readonly default: 10;
|
|
17
|
+
};
|
|
18
|
+
readonly pagerCount: {
|
|
19
|
+
readonly type: NumberConstructor;
|
|
20
|
+
readonly default: 7;
|
|
21
|
+
};
|
|
22
|
+
readonly disabled: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: false;
|
|
25
|
+
};
|
|
26
|
+
readonly showTotal: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
readonly prevText: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: "Prev";
|
|
33
|
+
};
|
|
34
|
+
readonly nextText: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "Next";
|
|
37
|
+
};
|
|
38
|
+
readonly size: {
|
|
39
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
40
|
+
readonly default: "md";
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
change: (_page: number) => void;
|
|
44
|
+
"update:modelValue": (_page: number) => void;
|
|
45
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
readonly modelValue: {
|
|
47
|
+
readonly type: import('vue').PropType<number | undefined>;
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly defaultValue: {
|
|
51
|
+
readonly type: NumberConstructor;
|
|
52
|
+
readonly default: 1;
|
|
53
|
+
};
|
|
54
|
+
readonly total: {
|
|
55
|
+
readonly type: NumberConstructor;
|
|
56
|
+
readonly default: 0;
|
|
57
|
+
};
|
|
58
|
+
readonly pageSize: {
|
|
59
|
+
readonly type: NumberConstructor;
|
|
60
|
+
readonly default: 10;
|
|
61
|
+
};
|
|
62
|
+
readonly pagerCount: {
|
|
63
|
+
readonly type: NumberConstructor;
|
|
64
|
+
readonly default: 7;
|
|
65
|
+
};
|
|
66
|
+
readonly disabled: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly showTotal: {
|
|
71
|
+
readonly type: BooleanConstructor;
|
|
72
|
+
readonly default: false;
|
|
73
|
+
};
|
|
74
|
+
readonly prevText: {
|
|
75
|
+
readonly type: StringConstructor;
|
|
76
|
+
readonly default: "Prev";
|
|
77
|
+
};
|
|
78
|
+
readonly nextText: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: "Next";
|
|
81
|
+
};
|
|
82
|
+
readonly size: {
|
|
83
|
+
readonly type: import('vue').PropType<"sm" | "md" | "lg">;
|
|
84
|
+
readonly default: "md";
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onChange?: ((_page: number) => any) | undefined;
|
|
88
|
+
"onUpdate:modelValue"?: ((_page: number) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
readonly size: "sm" | "md" | "lg";
|
|
91
|
+
readonly disabled: boolean;
|
|
92
|
+
readonly modelValue: number | undefined;
|
|
93
|
+
readonly defaultValue: number;
|
|
94
|
+
readonly total: number;
|
|
95
|
+
readonly pageSize: number;
|
|
96
|
+
readonly pagerCount: number;
|
|
97
|
+
readonly showTotal: boolean;
|
|
98
|
+
readonly prevText: string;
|
|
99
|
+
readonly nextText: string;
|
|
100
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>>;
|
|
101
|
+
export * from './types';
|
|
102
|
+
export default LPagination;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/pagination.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("../chunks/install-gnn2dOg9.js"),t=require("vue"),B=require("../chunks/use-signals-Bz1smiXh.js");require("../chunks/manager-C0AUxQ1I.js");const s=require("../chunks/index-DWAWrVaT.js"),y=(e,a)=>{if(!Number.isFinite(e))return a;const n=Math.floor(e);return n>0?n:a},p=e=>Number.isFinite(e)?Math.max(0,Math.floor(e)):0,_=e=>{const a=Math.max(5,y(e,7));return a%2===0?a-1:a},N=(e,a)=>Math.max(1,Math.ceil(e/a)),P=(e,a)=>Math.min(Math.max(y(e,1),1),a),b=(e,a)=>Array.from({length:a-e+1},(n,u)=>e+u),V=(e,a,n)=>{if(a<=n)return b(1,a);if(e<=n-3)return[...b(1,n-2),"ellipsis",a];if(e>=a-(n-4))return[1,"ellipsis",...b(a-(n-3),a)];const u=n-4,o=e-Math.floor(u/2),r=e+Math.floor(u/2);return[1,"ellipsis",...b(o,r),"ellipsis",a]},x=(e={})=>{const a=s.signal(typeof e.total=="function"?p(e.total()):p(e.total??0)),n=s.signal(typeof e.pageSize=="function"?e.pageSize():e.pageSize??10),u=s.signal(typeof e.pagerCount=="function"?e.pagerCount():e.pagerCount??7),o=s.signal(typeof e.disabled=="function"?e.disabled():e.disabled??!1),r=s.signal(typeof e.value=="function"?e.value():e.value??e.defaultValue??1),c=()=>N(p(a.value),y(n.value,10));if(s.effect(()=>{r.value=P(r.value,c())}),typeof e.value=="function"){const l=e.value;s.effect(()=>{r.value=P(l()??1,c())})}if(typeof e.total=="function"){const l=e.total;s.effect(()=>{a.value=p(l()??0)})}if(typeof e.pageSize=="function"){const l=e.pageSize;s.effect(()=>{n.value=l()??10})}if(typeof e.pagerCount=="function"){const l=e.pagerCount;s.effect(()=>{u.value=l()??7})}if(typeof e.disabled=="function"){const l=e.disabled;s.effect(()=>{o.value=l()??!1})}const g=l=>{var v;if(o.value)return;const f=P(l,c());f!==r.value&&(r.value=f,(v=e.onChange)==null||v.call(e,f))};return{state:{get currentPage(){return r.value},set currentPage(l){g(l)},get total(){return a.value},set total(l){a.value=p(l)},get pageSize(){return n.value},set pageSize(l){n.value=y(l,10)},get pagerCount(){return u.value},set pagerCount(l){u.value=_(l)},get disabled(){return o.value},set disabled(l){o.value=l},get pageCount(){return c()},get canPrev(){return r.value>1},get canNext(){return r.value<c()},get pages(){return V(r.value,c(),_(u.value))}},actions:{setPage:g,prev:()=>{g(r.value-1)},next:()=>{g(r.value+1)}},props:{role:"navigation","aria-label":"分页"},getItemProps:l=>({"aria-label":`第 ${l} 页`,"aria-current":l===r.value?"page":void 0})}},h={modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:1},total:{type:Number,default:0},pageSize:{type:Number,default:10},pagerCount:{type:Number,default:7},disabled:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},prevText:{type:String,default:"Prev"},nextText:{type:String,default:"Next"},size:{type:String,default:"md"}},S={"update:modelValue":e=>!0,change:e=>!0},M={key:0,class:"l-pagination__total"},T={class:"l-pagination__controls"},E=["disabled","aria-label"],$=["disabled","onClick"],q={key:1,class:"l-pagination__ellipsis","aria-hidden":"true"},D=["disabled","aria-label"],F=t.defineComponent({name:"Pagination",__name:"Pagination",props:h,emits:S,setup(e,{emit:a}){const n=e,u=a,o=x({value:n.modelValue!==void 0?()=>n.modelValue??1:void 0,defaultValue:n.defaultValue,total:()=>n.total,pageSize:()=>n.pageSize,pagerCount:()=>n.pagerCount,disabled:()=>n.disabled,onChange:i=>{u("update:modelValue",i),u("change",i)}}),{canNext:r,canPrev:c,currentPage:g,pages:l}=B.useController(o),f=t.computed(()=>["l-pagination",`l-pagination--${n.size}`,{"is-disabled":n.disabled}]),v=i=>i!=="ellipsis";return(i,m)=>(t.openBlock(),t.createElementBlock("nav",t.mergeProps({class:f.value},t.unref(o).props),[i.showTotal?(t.openBlock(),t.createElementBlock("div",M," 共 "+t.toDisplayString(i.total)+" 条 ",1)):t.createCommentVNode("",!0),t.createElementVNode("div",T,[t.createElementVNode("button",{type:"button",class:"l-pagination__prev",disabled:i.disabled||!t.unref(c),"aria-label":i.prevText||"上一页",onClick:m[0]||(m[0]=d=>t.unref(o).actions.prev())},t.toDisplayString(i.prevText||"<"),9,E),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(l),(d,C)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${d}-${C}`},[v(d)?(t.openBlock(),t.createElementBlock("button",t.mergeProps({key:0,type:"button",class:["l-pagination__page",{"is-active":d===t.unref(g)}],disabled:i.disabled},{ref_for:!0},t.unref(o).getItemProps(d),{onClick:I=>t.unref(o).actions.setPage(d)}),t.toDisplayString(d),17,$)):(t.openBlock(),t.createElementBlock("span",q," ... "))],64))),128)),t.createElementVNode("button",{type:"button",class:"l-pagination__next",disabled:i.disabled||!t.unref(r),"aria-label":i.nextText||"下一页",onClick:m[1]||(m[1]=d=>t.unref(o).actions.next())},t.toDisplayString(i.nextText||">"),9,D)])],16))}}),z=k.withInstall(F);exports.LPagination=z;exports.default=z;exports.paginationEmits=S;exports.paginationProps=h;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import '../style/pagination.css';
|
|
2
|
+
import { w as M } from "../chunks/install-DJNxamQ0.mjs";
|
|
3
|
+
import { defineComponent as $, computed as k, openBlock as c, createElementBlock as f, mergeProps as x, unref as u, toDisplayString as h, createCommentVNode as w, createElementVNode as C, Fragment as N, renderList as B } from "vue";
|
|
4
|
+
import { u as I } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
5
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
6
|
+
import { s as m, e as p } from "../chunks/index-B0yEC3RG.mjs";
|
|
7
|
+
const z = (e, t) => {
|
|
8
|
+
if (!Number.isFinite(e)) return t;
|
|
9
|
+
const l = Math.floor(e);
|
|
10
|
+
return l > 0 ? l : t;
|
|
11
|
+
}, b = (e) => Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0, V = (e) => {
|
|
12
|
+
const t = Math.max(5, z(e, 7));
|
|
13
|
+
return t % 2 === 0 ? t - 1 : t;
|
|
14
|
+
}, E = (e, t) => Math.max(1, Math.ceil(e / t)), S = (e, t) => Math.min(Math.max(z(e, 1), 1), t), _ = (e, t) => Array.from({ length: t - e + 1 }, (l, o) => e + o), F = (e, t, l) => {
|
|
15
|
+
if (t <= l)
|
|
16
|
+
return _(1, t);
|
|
17
|
+
if (e <= l - 3)
|
|
18
|
+
return [..._(1, l - 2), "ellipsis", t];
|
|
19
|
+
if (e >= t - (l - 4))
|
|
20
|
+
return [1, "ellipsis", ..._(t - (l - 3), t)];
|
|
21
|
+
const o = l - 4, i = e - Math.floor(o / 2), n = e + Math.floor(o / 2);
|
|
22
|
+
return [1, "ellipsis", ..._(i, n), "ellipsis", t];
|
|
23
|
+
}, D = (e = {}) => {
|
|
24
|
+
const t = m(
|
|
25
|
+
typeof e.total == "function" ? b(e.total()) : b(e.total ?? 0)
|
|
26
|
+
), l = m(
|
|
27
|
+
typeof e.pageSize == "function" ? e.pageSize() : e.pageSize ?? 10
|
|
28
|
+
), o = m(
|
|
29
|
+
typeof e.pagerCount == "function" ? e.pagerCount() : e.pagerCount ?? 7
|
|
30
|
+
), i = m(
|
|
31
|
+
typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1
|
|
32
|
+
), n = m(
|
|
33
|
+
typeof e.value == "function" ? e.value() : e.value ?? e.defaultValue ?? 1
|
|
34
|
+
), s = () => E(
|
|
35
|
+
b(t.value),
|
|
36
|
+
z(l.value, 10)
|
|
37
|
+
);
|
|
38
|
+
if (p(() => {
|
|
39
|
+
n.value = S(n.value, s());
|
|
40
|
+
}), typeof e.value == "function") {
|
|
41
|
+
const a = e.value;
|
|
42
|
+
p(() => {
|
|
43
|
+
n.value = S(a() ?? 1, s());
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
if (typeof e.total == "function") {
|
|
47
|
+
const a = e.total;
|
|
48
|
+
p(() => {
|
|
49
|
+
t.value = b(a() ?? 0);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
if (typeof e.pageSize == "function") {
|
|
53
|
+
const a = e.pageSize;
|
|
54
|
+
p(() => {
|
|
55
|
+
l.value = a() ?? 10;
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (typeof e.pagerCount == "function") {
|
|
59
|
+
const a = e.pagerCount;
|
|
60
|
+
p(() => {
|
|
61
|
+
o.value = a() ?? 7;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (typeof e.disabled == "function") {
|
|
65
|
+
const a = e.disabled;
|
|
66
|
+
p(() => {
|
|
67
|
+
i.value = a() ?? !1;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
const g = (a) => {
|
|
71
|
+
var y;
|
|
72
|
+
if (i.value) return;
|
|
73
|
+
const v = S(a, s());
|
|
74
|
+
v !== n.value && (n.value = v, (y = e.onChange) == null || y.call(e, v));
|
|
75
|
+
};
|
|
76
|
+
return {
|
|
77
|
+
state: {
|
|
78
|
+
get currentPage() {
|
|
79
|
+
return n.value;
|
|
80
|
+
},
|
|
81
|
+
set currentPage(a) {
|
|
82
|
+
g(a);
|
|
83
|
+
},
|
|
84
|
+
get total() {
|
|
85
|
+
return t.value;
|
|
86
|
+
},
|
|
87
|
+
set total(a) {
|
|
88
|
+
t.value = b(a);
|
|
89
|
+
},
|
|
90
|
+
get pageSize() {
|
|
91
|
+
return l.value;
|
|
92
|
+
},
|
|
93
|
+
set pageSize(a) {
|
|
94
|
+
l.value = z(a, 10);
|
|
95
|
+
},
|
|
96
|
+
get pagerCount() {
|
|
97
|
+
return o.value;
|
|
98
|
+
},
|
|
99
|
+
set pagerCount(a) {
|
|
100
|
+
o.value = V(a);
|
|
101
|
+
},
|
|
102
|
+
get disabled() {
|
|
103
|
+
return i.value;
|
|
104
|
+
},
|
|
105
|
+
set disabled(a) {
|
|
106
|
+
i.value = a;
|
|
107
|
+
},
|
|
108
|
+
get pageCount() {
|
|
109
|
+
return s();
|
|
110
|
+
},
|
|
111
|
+
get canPrev() {
|
|
112
|
+
return n.value > 1;
|
|
113
|
+
},
|
|
114
|
+
get canNext() {
|
|
115
|
+
return n.value < s();
|
|
116
|
+
},
|
|
117
|
+
get pages() {
|
|
118
|
+
return F(
|
|
119
|
+
n.value,
|
|
120
|
+
s(),
|
|
121
|
+
V(o.value)
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
actions: {
|
|
126
|
+
setPage: g,
|
|
127
|
+
prev: () => {
|
|
128
|
+
g(n.value - 1);
|
|
129
|
+
},
|
|
130
|
+
next: () => {
|
|
131
|
+
g(n.value + 1);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
props: {
|
|
135
|
+
role: "navigation",
|
|
136
|
+
"aria-label": "分页"
|
|
137
|
+
},
|
|
138
|
+
getItemProps: (a) => ({
|
|
139
|
+
"aria-label": `第 ${a} 页`,
|
|
140
|
+
"aria-current": a === n.value ? "page" : void 0
|
|
141
|
+
})
|
|
142
|
+
};
|
|
143
|
+
}, L = {
|
|
144
|
+
modelValue: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
148
|
+
defaultValue: {
|
|
149
|
+
type: Number,
|
|
150
|
+
default: 1
|
|
151
|
+
},
|
|
152
|
+
total: {
|
|
153
|
+
type: Number,
|
|
154
|
+
default: 0
|
|
155
|
+
},
|
|
156
|
+
pageSize: {
|
|
157
|
+
type: Number,
|
|
158
|
+
default: 10
|
|
159
|
+
},
|
|
160
|
+
pagerCount: {
|
|
161
|
+
type: Number,
|
|
162
|
+
default: 7
|
|
163
|
+
},
|
|
164
|
+
disabled: {
|
|
165
|
+
type: Boolean,
|
|
166
|
+
default: !1
|
|
167
|
+
},
|
|
168
|
+
showTotal: {
|
|
169
|
+
type: Boolean,
|
|
170
|
+
default: !1
|
|
171
|
+
},
|
|
172
|
+
prevText: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: "Prev"
|
|
175
|
+
},
|
|
176
|
+
nextText: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: "Next"
|
|
179
|
+
},
|
|
180
|
+
size: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: "md"
|
|
183
|
+
}
|
|
184
|
+
}, A = {
|
|
185
|
+
"update:modelValue": (e) => !0,
|
|
186
|
+
change: (e) => !0
|
|
187
|
+
}, R = {
|
|
188
|
+
key: 0,
|
|
189
|
+
class: "l-pagination__total"
|
|
190
|
+
}, j = { class: "l-pagination__controls" }, q = ["disabled", "aria-label"], G = ["disabled", "onClick"], H = {
|
|
191
|
+
key: 1,
|
|
192
|
+
class: "l-pagination__ellipsis",
|
|
193
|
+
"aria-hidden": "true"
|
|
194
|
+
}, J = ["disabled", "aria-label"], K = /* @__PURE__ */ $({
|
|
195
|
+
name: "Pagination",
|
|
196
|
+
__name: "Pagination",
|
|
197
|
+
props: L,
|
|
198
|
+
emits: A,
|
|
199
|
+
setup(e, { emit: t }) {
|
|
200
|
+
const l = e, o = t, i = D({
|
|
201
|
+
value: l.modelValue !== void 0 ? () => l.modelValue ?? 1 : void 0,
|
|
202
|
+
defaultValue: l.defaultValue,
|
|
203
|
+
total: () => l.total,
|
|
204
|
+
pageSize: () => l.pageSize,
|
|
205
|
+
pagerCount: () => l.pagerCount,
|
|
206
|
+
disabled: () => l.disabled,
|
|
207
|
+
onChange: (r) => {
|
|
208
|
+
o("update:modelValue", r), o("change", r);
|
|
209
|
+
}
|
|
210
|
+
}), {
|
|
211
|
+
canNext: n,
|
|
212
|
+
canPrev: s,
|
|
213
|
+
currentPage: g,
|
|
214
|
+
pages: a
|
|
215
|
+
} = I(i), v = k(() => [
|
|
216
|
+
"l-pagination",
|
|
217
|
+
`l-pagination--${l.size}`,
|
|
218
|
+
{
|
|
219
|
+
"is-disabled": l.disabled
|
|
220
|
+
}
|
|
221
|
+
]), y = (r) => r !== "ellipsis";
|
|
222
|
+
return (r, P) => (c(), f("nav", x({ class: v.value }, u(i).props), [
|
|
223
|
+
r.showTotal ? (c(), f("div", R, " 共 " + h(r.total) + " 条 ", 1)) : w("", !0),
|
|
224
|
+
C("div", j, [
|
|
225
|
+
C("button", {
|
|
226
|
+
type: "button",
|
|
227
|
+
class: "l-pagination__prev",
|
|
228
|
+
disabled: r.disabled || !u(s),
|
|
229
|
+
"aria-label": r.prevText || "上一页",
|
|
230
|
+
onClick: P[0] || (P[0] = (d) => u(i).actions.prev())
|
|
231
|
+
}, h(r.prevText || "<"), 9, q),
|
|
232
|
+
(c(!0), f(N, null, B(u(a), (d, T) => (c(), f(N, {
|
|
233
|
+
key: `${d}-${T}`
|
|
234
|
+
}, [
|
|
235
|
+
y(d) ? (c(), f("button", x({
|
|
236
|
+
key: 0,
|
|
237
|
+
type: "button",
|
|
238
|
+
class: ["l-pagination__page", { "is-active": d === u(g) }],
|
|
239
|
+
disabled: r.disabled
|
|
240
|
+
}, { ref_for: !0 }, u(i).getItemProps(d), {
|
|
241
|
+
onClick: (O) => u(i).actions.setPage(d)
|
|
242
|
+
}), h(d), 17, G)) : (c(), f("span", H, " ... "))
|
|
243
|
+
], 64))), 128)),
|
|
244
|
+
C("button", {
|
|
245
|
+
type: "button",
|
|
246
|
+
class: "l-pagination__next",
|
|
247
|
+
disabled: r.disabled || !u(n),
|
|
248
|
+
"aria-label": r.nextText || "下一页",
|
|
249
|
+
onClick: P[1] || (P[1] = (d) => u(i).actions.next())
|
|
250
|
+
}, h(r.nextText || ">"), 9, J)
|
|
251
|
+
])
|
|
252
|
+
], 16));
|
|
253
|
+
}
|
|
254
|
+
}), Z = M(K);
|
|
255
|
+
export {
|
|
256
|
+
Z as LPagination,
|
|
257
|
+
Z as default,
|
|
258
|
+
A as paginationEmits,
|
|
259
|
+
L as paginationProps
|
|
260
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare const paginationProps: {
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: PropType<number | undefined>;
|
|
5
|
+
readonly default: undefined;
|
|
6
|
+
};
|
|
7
|
+
readonly defaultValue: {
|
|
8
|
+
readonly type: NumberConstructor;
|
|
9
|
+
readonly default: 1;
|
|
10
|
+
};
|
|
11
|
+
readonly total: {
|
|
12
|
+
readonly type: NumberConstructor;
|
|
13
|
+
readonly default: 0;
|
|
14
|
+
};
|
|
15
|
+
readonly pageSize: {
|
|
16
|
+
readonly type: NumberConstructor;
|
|
17
|
+
readonly default: 10;
|
|
18
|
+
};
|
|
19
|
+
readonly pagerCount: {
|
|
20
|
+
readonly type: NumberConstructor;
|
|
21
|
+
readonly default: 7;
|
|
22
|
+
};
|
|
23
|
+
readonly disabled: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: false;
|
|
26
|
+
};
|
|
27
|
+
readonly showTotal: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: false;
|
|
30
|
+
};
|
|
31
|
+
readonly prevText: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "Prev";
|
|
34
|
+
};
|
|
35
|
+
readonly nextText: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "Next";
|
|
38
|
+
};
|
|
39
|
+
readonly size: {
|
|
40
|
+
readonly type: PropType<"sm" | "md" | "lg">;
|
|
41
|
+
readonly default: "md";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const paginationEmits: {
|
|
45
|
+
readonly 'update:modelValue': (_page: number) => boolean;
|
|
46
|
+
readonly change: (_page: number) => boolean;
|
|
47
|
+
};
|
|
48
|
+
export type PaginationProps = ExtractPropTypes<typeof paginationProps>;
|