@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,136 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
/** 触发器元�?/ Trigger element */
|
|
5
|
+
default?: () => any;
|
|
6
|
+
/** 标题 / Title */
|
|
7
|
+
title?: () => any;
|
|
8
|
+
/** 内容 / Content */
|
|
9
|
+
content?: () => any;
|
|
10
|
+
}> & {
|
|
11
|
+
/** 触发器元�?/ Trigger element */
|
|
12
|
+
default?: () => any;
|
|
13
|
+
/** 标题 / Title */
|
|
14
|
+
title?: () => any;
|
|
15
|
+
/** 内容 / Content */
|
|
16
|
+
content?: () => any;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
triggerRef: HTMLSpanElement;
|
|
20
|
+
popperRef: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
rootEl: any;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
|
+
readonly trigger: {
|
|
27
|
+
readonly type: import('vue').PropType<"click" | "hover" | "focus" | "manual">;
|
|
28
|
+
readonly default: "click";
|
|
29
|
+
};
|
|
30
|
+
readonly title: StringConstructor;
|
|
31
|
+
readonly content: StringConstructor;
|
|
32
|
+
readonly renderContent: import('vue').PropType<() => import('vue').VNodeChild>;
|
|
33
|
+
readonly placement: {
|
|
34
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').Placement>;
|
|
35
|
+
readonly default: "bottom";
|
|
36
|
+
};
|
|
37
|
+
readonly disabled: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: false;
|
|
40
|
+
};
|
|
41
|
+
readonly width: {
|
|
42
|
+
readonly type: import('vue').PropType<string | number>;
|
|
43
|
+
readonly default: 150;
|
|
44
|
+
};
|
|
45
|
+
readonly showAfter: {
|
|
46
|
+
readonly type: NumberConstructor;
|
|
47
|
+
readonly default: 0;
|
|
48
|
+
};
|
|
49
|
+
readonly hideAfter: {
|
|
50
|
+
readonly type: NumberConstructor;
|
|
51
|
+
readonly default: 200;
|
|
52
|
+
};
|
|
53
|
+
readonly persistent: {
|
|
54
|
+
readonly type: BooleanConstructor;
|
|
55
|
+
readonly default: false;
|
|
56
|
+
};
|
|
57
|
+
readonly visible: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly default: false;
|
|
60
|
+
};
|
|
61
|
+
readonly popperClass: {
|
|
62
|
+
readonly type: import('vue').PropType<string | any[] | Record<string, any>>;
|
|
63
|
+
readonly default: "";
|
|
64
|
+
};
|
|
65
|
+
}>, {
|
|
66
|
+
open: () => void;
|
|
67
|
+
close: (reason?: import('../../../headless/src/index.ts').OverlayCloseReason) => void;
|
|
68
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
69
|
+
hide: () => void;
|
|
70
|
+
show: () => void;
|
|
71
|
+
"update:visible": (_val: boolean) => void;
|
|
72
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
73
|
+
readonly trigger: {
|
|
74
|
+
readonly type: import('vue').PropType<"click" | "hover" | "focus" | "manual">;
|
|
75
|
+
readonly default: "click";
|
|
76
|
+
};
|
|
77
|
+
readonly title: StringConstructor;
|
|
78
|
+
readonly content: StringConstructor;
|
|
79
|
+
readonly renderContent: import('vue').PropType<() => import('vue').VNodeChild>;
|
|
80
|
+
readonly placement: {
|
|
81
|
+
readonly type: import('vue').PropType<import('../../../headless/src/index.ts').Placement>;
|
|
82
|
+
readonly default: "bottom";
|
|
83
|
+
};
|
|
84
|
+
readonly disabled: {
|
|
85
|
+
readonly type: BooleanConstructor;
|
|
86
|
+
readonly default: false;
|
|
87
|
+
};
|
|
88
|
+
readonly width: {
|
|
89
|
+
readonly type: import('vue').PropType<string | number>;
|
|
90
|
+
readonly default: 150;
|
|
91
|
+
};
|
|
92
|
+
readonly showAfter: {
|
|
93
|
+
readonly type: NumberConstructor;
|
|
94
|
+
readonly default: 0;
|
|
95
|
+
};
|
|
96
|
+
readonly hideAfter: {
|
|
97
|
+
readonly type: NumberConstructor;
|
|
98
|
+
readonly default: 200;
|
|
99
|
+
};
|
|
100
|
+
readonly persistent: {
|
|
101
|
+
readonly type: BooleanConstructor;
|
|
102
|
+
readonly default: false;
|
|
103
|
+
};
|
|
104
|
+
readonly visible: {
|
|
105
|
+
readonly type: BooleanConstructor;
|
|
106
|
+
readonly default: false;
|
|
107
|
+
};
|
|
108
|
+
readonly popperClass: {
|
|
109
|
+
readonly type: import('vue').PropType<string | any[] | Record<string, any>>;
|
|
110
|
+
readonly default: "";
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{
|
|
113
|
+
onHide?: (() => any) | undefined;
|
|
114
|
+
onShow?: (() => any) | undefined;
|
|
115
|
+
"onUpdate:visible"?: ((_val: boolean) => any) | undefined;
|
|
116
|
+
}>, {
|
|
117
|
+
readonly disabled: boolean;
|
|
118
|
+
readonly placement: import('../../../headless/src/index.ts').Placement;
|
|
119
|
+
readonly trigger: "hover" | "manual" | "click" | "focus";
|
|
120
|
+
readonly visible: boolean;
|
|
121
|
+
readonly width: string | number;
|
|
122
|
+
readonly showAfter: number;
|
|
123
|
+
readonly hideAfter: number;
|
|
124
|
+
readonly persistent: boolean;
|
|
125
|
+
readonly popperClass: string | any[] | Record<string, any>;
|
|
126
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
127
|
+
triggerRef: HTMLSpanElement;
|
|
128
|
+
popperRef: HTMLDivElement;
|
|
129
|
+
}, any>;
|
|
130
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
131
|
+
export default _default;
|
|
132
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
133
|
+
new (): {
|
|
134
|
+
$slots: S;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/Popover.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js"),e=o._sfc_main;e.install=p=>{p.component("LPopover",e)};exports.popoverEmits=o.popoverEmits;exports.popoverProps=o.popoverProps;exports.LPopover=e;exports.default=e;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../style/Popover.css';
|
|
2
|
+
import { _ as r } from "../chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs";
|
|
3
|
+
import { p as t, a as m } from "../chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs";
|
|
4
|
+
const o = r;
|
|
5
|
+
o.install = (p) => {
|
|
6
|
+
p.component("LPopover", o);
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
o as LPopover,
|
|
10
|
+
o as default,
|
|
11
|
+
t as popoverEmits,
|
|
12
|
+
m as popoverProps
|
|
13
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import { Placement } from '../../../headless/src/index.ts';
|
|
3
|
+
export declare const popoverProps: {
|
|
4
|
+
readonly trigger: {
|
|
5
|
+
readonly type: PropType<"click" | "hover" | "focus" | "manual">;
|
|
6
|
+
readonly default: "click";
|
|
7
|
+
};
|
|
8
|
+
readonly title: StringConstructor;
|
|
9
|
+
readonly content: StringConstructor;
|
|
10
|
+
readonly renderContent: PropType<() => VNodeChild>;
|
|
11
|
+
readonly placement: {
|
|
12
|
+
readonly type: PropType<Placement>;
|
|
13
|
+
readonly default: "bottom";
|
|
14
|
+
};
|
|
15
|
+
readonly disabled: {
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly default: false;
|
|
18
|
+
};
|
|
19
|
+
readonly width: {
|
|
20
|
+
readonly type: PropType<string | number>;
|
|
21
|
+
readonly default: 150;
|
|
22
|
+
};
|
|
23
|
+
readonly showAfter: {
|
|
24
|
+
readonly type: NumberConstructor;
|
|
25
|
+
readonly default: 0;
|
|
26
|
+
};
|
|
27
|
+
readonly hideAfter: {
|
|
28
|
+
readonly type: NumberConstructor;
|
|
29
|
+
readonly default: 200;
|
|
30
|
+
};
|
|
31
|
+
readonly persistent: {
|
|
32
|
+
readonly type: BooleanConstructor;
|
|
33
|
+
readonly default: false;
|
|
34
|
+
};
|
|
35
|
+
readonly visible: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
39
|
+
readonly popperClass: {
|
|
40
|
+
readonly type: PropType<string | any[] | Record<string, any>>;
|
|
41
|
+
readonly default: "";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|
|
45
|
+
export declare const popoverEmits: {
|
|
46
|
+
show: () => boolean;
|
|
47
|
+
hide: () => boolean;
|
|
48
|
+
'update:visible': (_val: boolean) => boolean;
|
|
49
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RadioProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
inputRef: HTMLInputElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLLabelElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<RadioProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
+
change: (value: any) => any;
|
|
15
|
+
"update:modelValue": (value: any) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<RadioProps> & Readonly<{
|
|
17
|
+
onChange?: ((value: any) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
border: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
inputRef: HTMLInputElement;
|
|
23
|
+
}, HTMLLabelElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RadioGroupProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<RadioGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
+
change: (value: any) => any;
|
|
13
|
+
"update:modelValue": (value: any) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
15
|
+
onChange?: ((value: any) => any) | undefined;
|
|
16
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
vertical: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { default as Radio } from './Radio.vue';
|
|
3
|
+
import { default as RadioGroup } from './RadioGroup.vue';
|
|
4
|
+
export declare const LRadio: typeof Radio & Plugin;
|
|
5
|
+
export declare const LRadioGroup: typeof RadioGroup & Plugin;
|
|
6
|
+
export * from './types';
|
|
7
|
+
export default LRadio;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require('../style/radio.css');
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("../chunks/manager-C0AUxQ1I.js");const d=require("../chunks/index-DWAWrVaT.js"),F=require("../chunks/use-signals-Bz1smiXh.js"),G=require("../chunks/use-form-item-CloIcyon.js"),S=require("../chunks/use-id-BycaM3-h.js");function q(e={}){const t=d.signal(typeof e.checked=="function"?e.checked():e.checked??!1),l=d.signal(typeof e.disabled=="function"?e.disabled():e.disabled??!1),r=d.signal(typeof e.name=="function"?e.name():e.name??""),s=d.signal(typeof e.value=="function"?e.value():e.value??""),n=d.signal(!1),i=d.signal(!1);return typeof e.checked=="function"&&d.effect(()=>{t.value=e.checked()}),typeof e.disabled=="function"&&d.effect(()=>{l.value=e.disabled()}),typeof e.name=="function"&&d.effect(()=>{r.value=e.name()}),typeof e.value=="function"&&d.effect(()=>{s.value=e.value()}),{state:{get checked(){return t.value},set checked(u){t.value=u},get disabled(){return l.value},set disabled(u){l.value=u},get focused(){return n.value},get hovered(){return i.value},get value(){return s.value},set value(u){s.value=u},get name(){return r.value},set name(u){r.value=u}},props:{get checked(){return t.value},get disabled(){return l.value},get name(){return r.value},type:"radio",onChange:u=>{var b;if(l.value)return;const f=u.target.checked;t.value=f,(b=e.onChange)==null||b.call(e,f)},onFocus:u=>{var o;n.value=!0,(o=e.onFocus)==null||o.call(e,u)},onBlur:u=>{var o;n.value=!1,(o=e.onBlur)==null||o.call(e,u)},onMouseEnter:()=>{i.value=!0},onMouseLeave:()=>{i.value=!1}},actions:{toggle:u=>{var o;l.value||(t.value=u,(o=e.onChange)==null||o.call(e,u))}}}}function x(e={}){const t=d.signal(typeof e.modelValue=="function"?e.modelValue():e.modelValue??null),l=d.signal(typeof e.disabled=="function"?e.disabled():e.disabled??!1),r=d.signal(typeof e.name=="function"?e.name():e.name??`l-radio-group-${Math.random().toString(36).slice(2,7)}`);return typeof e.modelValue=="function"&&d.effect(()=>{t.value=e.modelValue()}),typeof e.disabled=="function"&&d.effect(()=>{l.value=e.disabled()}),typeof e.name=="function"&&d.effect(()=>{r.value=e.name()}),{state:{get modelValue(){return t.value},set modelValue(n){t.value=n},get disabled(){return l.value},set disabled(n){l.value=n},get name(){return r.value},set name(n){r.value=n}},actions:{select:n=>{var i;l.value||(t.value=n,(i=e.onChange)==null||i.call(e,n))}}}}const N=Symbol("radioGroupKey"),D={class:"l-radio__input-wrapper"},I=["id","value","name","disabled","checked"],j={key:0,class:"l-radio__label"},K=a.defineComponent({name:"Radio",__name:"Radio",props:{modelValue:{},value:{},label:{},disabled:{type:Boolean},name:{},size:{},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const l=e,r=t,{formItem:s,size:n,disabled:i,inputId:g}=G.useFormItem(l),y=S.useId("radio"),V=(g==null?void 0:g.value)||y,u=a.inject(N,null),o=a.ref(null),f=a.computed(()=>!!u),b=a.computed(()=>f.value?u.modelValue.value:l.modelValue),k=a.computed(()=>(f.value?u.disabled.value:i.value)||l.disabled),R=a.computed(()=>(f.value?u.size:n.value)||"md"),m=a.computed(()=>(f.value?u.name.value:l.name)||""),C=a.computed(()=>l.value!==void 0?l.value:l.label),M=a.computed(()=>b.value===C.value),v=q({value:()=>C.value,checked:()=>M.value,disabled:()=>k.value,name:()=>m.value,onChange:p=>{if(p){const c=C.value;f.value?u.changeEvent(c):(r("update:modelValue",c),r("change",c),s==null||s.validate("change").catch(()=>{}))}}}),{checked:_,disabled:z,focused:L}=F.useController(v,{checked:()=>M.value,disabled:()=>k.value}),w=a.computed(()=>["l-radio",`l-radio--${R.value}`,{"is-checked":_.value,"is-disabled":z.value,"is-focused":L.value,"is-bordered":l.border}]),$=p=>{v.props.onChange(p)};return(p,c)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass(w.value),onMouseenter:c[2]||(c[2]=(...h)=>a.unref(v).props.onMouseEnter&&a.unref(v).props.onMouseEnter(...h)),onMouseleave:c[3]||(c[3]=(...h)=>a.unref(v).props.onMouseLeave&&a.unref(v).props.onMouseLeave(...h))},[a.createElementVNode("span",D,[a.createElementVNode("input",{ref_key:"inputRef",ref:o,id:a.unref(V),type:"radio",class:"l-radio__original",value:e.value,name:m.value,disabled:a.unref(z),checked:a.unref(_),onChange:$,onFocus:c[0]||(c[0]=(...h)=>a.unref(v).props.onFocus&&a.unref(v).props.onFocus(...h)),onBlur:c[1]||(c[1]=(...h)=>a.unref(v).props.onBlur&&a.unref(v).props.onBlur(...h))},null,40,I),c[4]||(c[4]=a.createElementVNode("span",{class:"l-radio__inner"},null,-1))]),p.$slots.default||e.label?(a.openBlock(),a.createElementBlock("span",j,[a.renderSlot(p.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])])):a.createCommentVNode("",!0)],34))}}),T=["id","disabled"],H=a.defineComponent({name:"RadioGroup",__name:"RadioGroup",props:{modelValue:{},size:{},disabled:{type:Boolean},vertical:{type:Boolean,default:!1},name:{}},emits:["update:modelValue","change"],setup(e,{emit:t}){const l=e,r=t,{formItem:s,size:n,disabled:i,inputId:g}=G.useFormItem(l),y=S.useId("radio-group"),V=(g==null?void 0:g.value)||y,u=a.computed(()=>l.name??V),o=x({modelValue:()=>l.modelValue,disabled:()=>i.value,name:()=>u.value,onChange:m=>{r("update:modelValue",m),r("change",m),s==null||s.validate("change").catch(()=>{})}}),{modelValue:f,disabled:b,name:k}=F.useController(o,{modelValue:()=>l.modelValue,disabled:()=>i.value,name:()=>u.value});a.provide(N,{modelValue:f,disabled:b,size:n.value,name:k,changeEvent:m=>o.actions.select(m)});const R=a.computed(()=>["l-radio-group",{"l-radio-group--vertical":l.vertical}]);return(m,C)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(R.value),role:"radiogroup"},[a.createElementVNode("input",{id:a.unref(V),type:"text",style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap",border:"0"},"aria-hidden":"true",tabindex:"-1",disabled:a.unref(b)},null,8,T),a.renderSlot(m.$slots,"default")],2))}}),B=K,E=H;B.install=e=>{e.component("LRadio",B)};E.install=e=>{e.component("LRadioGroup",E)};exports.LRadio=B;exports.LRadioGroup=E;exports.default=B;
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import '../style/radio.css';
|
|
2
|
+
import { defineComponent as S, inject as A, ref as J, computed as m, openBlock as M, createElementBlock as _, unref as o, normalizeClass as $, createElementVNode as z, renderSlot as x, createTextVNode as O, toDisplayString as P, createCommentVNode as Q, provide as U } from "vue";
|
|
3
|
+
import "../chunks/manager-BUdQK4AD.mjs";
|
|
4
|
+
import { s as g, e as y } from "../chunks/index-B0yEC3RG.mjs";
|
|
5
|
+
import { u as D } from "../chunks/use-signals-CE1T2jXK.mjs";
|
|
6
|
+
import { u as I } from "../chunks/use-form-item-CqDbWCiU.mjs";
|
|
7
|
+
import { u as K } from "../chunks/use-id-D3casveg.mjs";
|
|
8
|
+
function W(e = {}) {
|
|
9
|
+
const d = g(typeof e.checked == "function" ? e.checked() : e.checked ?? !1), a = g(typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1), n = g(typeof e.name == "function" ? e.name() : e.name ?? ""), s = g(typeof e.value == "function" ? e.value() : e.value ?? ""), u = g(!1), c = g(!1);
|
|
10
|
+
return typeof e.checked == "function" && y(() => {
|
|
11
|
+
d.value = e.checked();
|
|
12
|
+
}), typeof e.disabled == "function" && y(() => {
|
|
13
|
+
a.value = e.disabled();
|
|
14
|
+
}), typeof e.name == "function" && y(() => {
|
|
15
|
+
n.value = e.name();
|
|
16
|
+
}), typeof e.value == "function" && y(() => {
|
|
17
|
+
s.value = e.value();
|
|
18
|
+
}), {
|
|
19
|
+
state: {
|
|
20
|
+
get checked() {
|
|
21
|
+
return d.value;
|
|
22
|
+
},
|
|
23
|
+
set checked(l) {
|
|
24
|
+
d.value = l;
|
|
25
|
+
},
|
|
26
|
+
get disabled() {
|
|
27
|
+
return a.value;
|
|
28
|
+
},
|
|
29
|
+
set disabled(l) {
|
|
30
|
+
a.value = l;
|
|
31
|
+
},
|
|
32
|
+
get focused() {
|
|
33
|
+
return u.value;
|
|
34
|
+
},
|
|
35
|
+
get hovered() {
|
|
36
|
+
return c.value;
|
|
37
|
+
},
|
|
38
|
+
get value() {
|
|
39
|
+
return s.value;
|
|
40
|
+
},
|
|
41
|
+
set value(l) {
|
|
42
|
+
s.value = l;
|
|
43
|
+
},
|
|
44
|
+
get name() {
|
|
45
|
+
return n.value;
|
|
46
|
+
},
|
|
47
|
+
set name(l) {
|
|
48
|
+
n.value = l;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
props: {
|
|
52
|
+
get checked() {
|
|
53
|
+
return d.value;
|
|
54
|
+
},
|
|
55
|
+
get disabled() {
|
|
56
|
+
return a.value;
|
|
57
|
+
},
|
|
58
|
+
get name() {
|
|
59
|
+
return n.value;
|
|
60
|
+
},
|
|
61
|
+
type: "radio",
|
|
62
|
+
onChange: (l) => {
|
|
63
|
+
var h;
|
|
64
|
+
if (a.value) return;
|
|
65
|
+
const i = l.target.checked;
|
|
66
|
+
d.value = i, (h = e.onChange) == null || h.call(e, i);
|
|
67
|
+
},
|
|
68
|
+
onFocus: (l) => {
|
|
69
|
+
var t;
|
|
70
|
+
u.value = !0, (t = e.onFocus) == null || t.call(e, l);
|
|
71
|
+
},
|
|
72
|
+
onBlur: (l) => {
|
|
73
|
+
var t;
|
|
74
|
+
u.value = !1, (t = e.onBlur) == null || t.call(e, l);
|
|
75
|
+
},
|
|
76
|
+
onMouseEnter: () => {
|
|
77
|
+
c.value = !0;
|
|
78
|
+
},
|
|
79
|
+
onMouseLeave: () => {
|
|
80
|
+
c.value = !1;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
actions: {
|
|
84
|
+
toggle: (l) => {
|
|
85
|
+
var t;
|
|
86
|
+
a.value || (d.value = l, (t = e.onChange) == null || t.call(e, l));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function X(e = {}) {
|
|
92
|
+
const d = g(typeof e.modelValue == "function" ? e.modelValue() : e.modelValue ?? null), a = g(typeof e.disabled == "function" ? e.disabled() : e.disabled ?? !1), n = g(typeof e.name == "function" ? e.name() : e.name ?? `l-radio-group-${Math.random().toString(36).slice(2, 7)}`);
|
|
93
|
+
return typeof e.modelValue == "function" && y(() => {
|
|
94
|
+
d.value = e.modelValue();
|
|
95
|
+
}), typeof e.disabled == "function" && y(() => {
|
|
96
|
+
a.value = e.disabled();
|
|
97
|
+
}), typeof e.name == "function" && y(() => {
|
|
98
|
+
n.value = e.name();
|
|
99
|
+
}), {
|
|
100
|
+
state: {
|
|
101
|
+
get modelValue() {
|
|
102
|
+
return d.value;
|
|
103
|
+
},
|
|
104
|
+
set modelValue(u) {
|
|
105
|
+
d.value = u;
|
|
106
|
+
},
|
|
107
|
+
get disabled() {
|
|
108
|
+
return a.value;
|
|
109
|
+
},
|
|
110
|
+
set disabled(u) {
|
|
111
|
+
a.value = u;
|
|
112
|
+
},
|
|
113
|
+
get name() {
|
|
114
|
+
return n.value;
|
|
115
|
+
},
|
|
116
|
+
set name(u) {
|
|
117
|
+
n.value = u;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
actions: {
|
|
121
|
+
select: (u) => {
|
|
122
|
+
var c;
|
|
123
|
+
a.value || (d.value = u, (c = e.onChange) == null || c.call(e, u));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
const j = Symbol("radioGroupKey"), Y = { class: "l-radio__input-wrapper" }, Z = ["id", "value", "name", "disabled", "checked"], ee = {
|
|
129
|
+
key: 0,
|
|
130
|
+
class: "l-radio__label"
|
|
131
|
+
}, ae = /* @__PURE__ */ S({
|
|
132
|
+
name: "Radio",
|
|
133
|
+
__name: "Radio",
|
|
134
|
+
props: {
|
|
135
|
+
modelValue: {},
|
|
136
|
+
value: {},
|
|
137
|
+
label: {},
|
|
138
|
+
disabled: { type: Boolean },
|
|
139
|
+
name: {},
|
|
140
|
+
size: {},
|
|
141
|
+
border: { type: Boolean, default: !1 }
|
|
142
|
+
},
|
|
143
|
+
emits: ["update:modelValue", "change"],
|
|
144
|
+
setup(e, { emit: d }) {
|
|
145
|
+
const a = e, n = d, { formItem: s, size: u, disabled: c, inputId: b } = I(a), C = K("radio"), k = (b == null ? void 0 : b.value) || C, l = A(j, null), t = J(null), i = m(() => !!l), h = m(() => i.value ? l.modelValue.value : a.modelValue), B = m(() => (i.value ? l.disabled.value : c.value) || a.disabled), G = m(() => (i.value ? l.size : u.value) || "md"), f = m(() => (i.value ? l.name.value : a.name) || ""), R = m(() => a.value !== void 0 ? a.value : a.label), F = m(() => h.value === R.value), v = W({
|
|
146
|
+
value: () => R.value,
|
|
147
|
+
checked: () => F.value,
|
|
148
|
+
disabled: () => B.value,
|
|
149
|
+
name: () => f.value,
|
|
150
|
+
onChange: (V) => {
|
|
151
|
+
if (V) {
|
|
152
|
+
const r = R.value;
|
|
153
|
+
i.value ? l.changeEvent(r) : (n("update:modelValue", r), n("change", r), s == null || s.validate("change").catch(() => {
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}), {
|
|
158
|
+
checked: w,
|
|
159
|
+
disabled: E,
|
|
160
|
+
focused: H
|
|
161
|
+
} = D(v, {
|
|
162
|
+
checked: () => F.value,
|
|
163
|
+
disabled: () => B.value
|
|
164
|
+
}), T = m(() => [
|
|
165
|
+
"l-radio",
|
|
166
|
+
`l-radio--${G.value}`,
|
|
167
|
+
{
|
|
168
|
+
"is-checked": w.value,
|
|
169
|
+
"is-disabled": E.value,
|
|
170
|
+
"is-focused": H.value,
|
|
171
|
+
"is-bordered": a.border
|
|
172
|
+
}
|
|
173
|
+
]), q = (V) => {
|
|
174
|
+
v.props.onChange(V);
|
|
175
|
+
};
|
|
176
|
+
return (V, r) => (M(), _("label", {
|
|
177
|
+
class: $(T.value),
|
|
178
|
+
onMouseenter: r[2] || (r[2] = //@ts-ignore
|
|
179
|
+
(...p) => o(v).props.onMouseEnter && o(v).props.onMouseEnter(...p)),
|
|
180
|
+
onMouseleave: r[3] || (r[3] = //@ts-ignore
|
|
181
|
+
(...p) => o(v).props.onMouseLeave && o(v).props.onMouseLeave(...p))
|
|
182
|
+
}, [
|
|
183
|
+
z("span", Y, [
|
|
184
|
+
z("input", {
|
|
185
|
+
ref_key: "inputRef",
|
|
186
|
+
ref: t,
|
|
187
|
+
id: o(k),
|
|
188
|
+
type: "radio",
|
|
189
|
+
class: "l-radio__original",
|
|
190
|
+
value: e.value,
|
|
191
|
+
name: f.value,
|
|
192
|
+
disabled: o(E),
|
|
193
|
+
checked: o(w),
|
|
194
|
+
onChange: q,
|
|
195
|
+
onFocus: r[0] || (r[0] = //@ts-ignore
|
|
196
|
+
(...p) => o(v).props.onFocus && o(v).props.onFocus(...p)),
|
|
197
|
+
onBlur: r[1] || (r[1] = //@ts-ignore
|
|
198
|
+
(...p) => o(v).props.onBlur && o(v).props.onBlur(...p))
|
|
199
|
+
}, null, 40, Z),
|
|
200
|
+
r[4] || (r[4] = z("span", { class: "l-radio__inner" }, null, -1))
|
|
201
|
+
]),
|
|
202
|
+
V.$slots.default || e.label ? (M(), _("span", ee, [
|
|
203
|
+
x(V.$slots, "default", {}, () => [
|
|
204
|
+
O(P(e.label), 1)
|
|
205
|
+
])
|
|
206
|
+
])) : Q("", !0)
|
|
207
|
+
], 34));
|
|
208
|
+
}
|
|
209
|
+
}), le = ["id", "disabled"], ue = /* @__PURE__ */ S({
|
|
210
|
+
name: "RadioGroup",
|
|
211
|
+
__name: "RadioGroup",
|
|
212
|
+
props: {
|
|
213
|
+
modelValue: {},
|
|
214
|
+
size: {},
|
|
215
|
+
disabled: { type: Boolean },
|
|
216
|
+
vertical: { type: Boolean, default: !1 },
|
|
217
|
+
name: {}
|
|
218
|
+
},
|
|
219
|
+
emits: ["update:modelValue", "change"],
|
|
220
|
+
setup(e, { emit: d }) {
|
|
221
|
+
const a = e, n = d, { formItem: s, size: u, disabled: c, inputId: b } = I(a), C = K("radio-group"), k = (b == null ? void 0 : b.value) || C, l = m(() => a.name ?? k), t = X({
|
|
222
|
+
modelValue: () => a.modelValue,
|
|
223
|
+
disabled: () => c.value,
|
|
224
|
+
name: () => l.value,
|
|
225
|
+
onChange: (f) => {
|
|
226
|
+
n("update:modelValue", f), n("change", f), s == null || s.validate("change").catch(() => {
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}), { modelValue: i, disabled: h, name: B } = D(t, {
|
|
230
|
+
modelValue: () => a.modelValue,
|
|
231
|
+
disabled: () => c.value,
|
|
232
|
+
name: () => l.value
|
|
233
|
+
});
|
|
234
|
+
U(j, {
|
|
235
|
+
modelValue: i,
|
|
236
|
+
disabled: h,
|
|
237
|
+
size: u.value,
|
|
238
|
+
name: B,
|
|
239
|
+
changeEvent: (f) => t.actions.select(f)
|
|
240
|
+
});
|
|
241
|
+
const G = m(() => [
|
|
242
|
+
"l-radio-group",
|
|
243
|
+
{
|
|
244
|
+
"l-radio-group--vertical": a.vertical
|
|
245
|
+
}
|
|
246
|
+
]);
|
|
247
|
+
return (f, R) => (M(), _("div", {
|
|
248
|
+
class: $(G.value),
|
|
249
|
+
role: "radiogroup"
|
|
250
|
+
}, [
|
|
251
|
+
z("input", {
|
|
252
|
+
id: o(k),
|
|
253
|
+
type: "text",
|
|
254
|
+
style: { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", "white-space": "nowrap", border: "0" },
|
|
255
|
+
"aria-hidden": "true",
|
|
256
|
+
tabindex: "-1",
|
|
257
|
+
disabled: o(h)
|
|
258
|
+
}, null, 8, le),
|
|
259
|
+
x(f.$slots, "default")
|
|
260
|
+
], 2));
|
|
261
|
+
}
|
|
262
|
+
}), L = ae, N = ue;
|
|
263
|
+
L.install = (e) => {
|
|
264
|
+
e.component("LRadio", L);
|
|
265
|
+
};
|
|
266
|
+
N.install = (e) => {
|
|
267
|
+
e.component("LRadioGroup", N);
|
|
268
|
+
};
|
|
269
|
+
export {
|
|
270
|
+
L as LRadio,
|
|
271
|
+
N as LRadioGroup,
|
|
272
|
+
L as default
|
|
273
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type RadioSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
/** 绑定值 | Binding value */
|
|
5
|
+
modelValue?: any;
|
|
6
|
+
/** 选项的值 | Radio value */
|
|
7
|
+
value?: any;
|
|
8
|
+
/** 标签文本 | Label text */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** 是否禁用 | Whether it is disabled */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** 原生 name 属性 | Native name attribute */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** 尺寸 | Size */
|
|
15
|
+
size?: RadioSize;
|
|
16
|
+
/** 是否显示边框 | Whether to show border */
|
|
17
|
+
border?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface RadioEmits {
|
|
20
|
+
(e: 'update:modelValue', value: any): void;
|
|
21
|
+
(e: 'change', value: any): void;
|
|
22
|
+
}
|
|
23
|
+
export interface RadioGroupProps {
|
|
24
|
+
/** 绑定值 | Binding value */
|
|
25
|
+
modelValue?: any;
|
|
26
|
+
/** 尺寸 (应用于所有子 Radio) | Size (applied to all child Radios) */
|
|
27
|
+
size?: RadioSize;
|
|
28
|
+
/** 是否禁用 (应用于所有子 Radio) | Disabled (applied to all child Radios) */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/** 排列方向 | Direction */
|
|
31
|
+
vertical?: boolean;
|
|
32
|
+
/** 原生 name 属性 | Native name attribute */
|
|
33
|
+
name?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface RadioGroupEmits {
|
|
36
|
+
(e: 'update:modelValue', value: any): void;
|
|
37
|
+
(e: 'change', value: any): void;
|
|
38
|
+
}
|
|
39
|
+
export interface RadioGroupContext {
|
|
40
|
+
modelValue: Ref<any>;
|
|
41
|
+
disabled: Ref<boolean>;
|
|
42
|
+
size: RadioSize | undefined;
|
|
43
|
+
name: Ref<string>;
|
|
44
|
+
changeEvent: (val: any) => void;
|
|
45
|
+
}
|