@antdv-next/mobile 0.0.0-stage → 0.1.1
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 +102 -2
- package/README.zh-CN.md +89 -0
- package/dist/_base/BaseBadge.js +4 -0
- package/dist/_base/BaseBadge.vue.d.ts +28 -0
- package/dist/_base/BaseBadge.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/_base/Portal.js +4 -0
- package/dist/_base/Portal.vue.d.ts +61 -0
- package/dist/_base/Portal.vue_vue_type_script_lang.js +67 -0
- package/dist/_base/Spinner.js +4 -0
- package/dist/_base/Spinner.vue.d.ts +4 -0
- package/dist/_base/Spinner.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/_base/compact.d.ts +58 -0
- package/dist/_base/compact.js +57 -0
- package/dist/_base/index.d.ts +9 -0
- package/dist/_base/style/badge.css +34 -0
- package/dist/_util/RenderNode.d.ts +32 -0
- package/dist/_util/RenderNode.js +39 -0
- package/dist/_util/hooks/index.d.ts +8 -0
- package/dist/_util/hooks/useClickAway.d.ts +14 -0
- package/dist/_util/hooks/useClickAway.js +27 -0
- package/dist/_util/hooks/useControlled.d.ts +18 -0
- package/dist/_util/hooks/useControlled.js +36 -0
- package/dist/_util/hooks/useDraggable.d.ts +50 -0
- package/dist/_util/hooks/useDraggable.js +176 -0
- package/dist/_util/hooks/useEventListener.d.ts +11 -0
- package/dist/_util/hooks/useEventListener.js +29 -0
- package/dist/_util/hooks/useLockScroll.d.ts +8 -0
- package/dist/_util/hooks/useLockScroll.js +46 -0
- package/dist/_util/hooks/useTouch.d.ts +19 -0
- package/dist/_util/hooks/useTouch.js +63 -0
- package/dist/_util/hooks/useVirtualRange.d.ts +40 -0
- package/dist/_util/hooks/useVirtualRange.js +68 -0
- package/dist/_util/hooks/useZIndex.d.ts +3 -0
- package/dist/_util/hooks/useZIndex.js +11 -0
- package/dist/_util/index.d.ts +36 -0
- package/dist/_util/index.js +103 -0
- package/dist/_util/mount.d.ts +13 -0
- package/dist/_util/mount.js +46 -0
- package/dist/_util/type.d.ts +17 -0
- package/dist/_util/vnode.d.ts +11 -0
- package/dist/_util/vnode.js +35 -0
- package/dist/_util/withInstall.d.ts +7 -0
- package/dist/_util/withInstall.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/defineProperty.js +11 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/toPrimitive.js +13 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/toPropertyKey.js +8 -0
- package/dist/_virtual/_@oxc-project_runtime@0.156.0/helpers/esm/typeof.js +10 -0
- package/dist/_virtual/_rolldown/runtime.js +12 -0
- package/dist/action-bar/ActionBar.js +4 -0
- package/dist/action-bar/ActionBar.vue.d.ts +21 -0
- package/dist/action-bar/ActionBar.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/action-bar/ActionBarButton.js +4 -0
- package/dist/action-bar/ActionBarButton.vue.d.ts +27 -0
- package/dist/action-bar/ActionBarButton.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/action-bar/ActionBarIcon.js +4 -0
- package/dist/action-bar/ActionBarIcon.vue.d.ts +26 -0
- package/dist/action-bar/ActionBarIcon.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/action-bar/index.d.ts +256 -0
- package/dist/action-bar/index.js +12 -0
- package/dist/action-bar/interface.d.ts +92 -0
- package/dist/action-bar/style/index.css +192 -0
- package/dist/action-sheet/ActionSheet.js +4 -0
- package/dist/action-sheet/ActionSheet.vue.d.ts +46 -0
- package/dist/action-sheet/ActionSheet.vue_vue_type_script_setup_true_lang.js +236 -0
- package/dist/action-sheet/index.d.ts +113 -0
- package/dist/action-sheet/index.js +6 -0
- package/dist/action-sheet/interface.d.ts +109 -0
- package/dist/action-sheet/show.d.ts +3 -0
- package/dist/action-sheet/show.js +32 -0
- package/dist/action-sheet/style/index.css +153 -0
- package/dist/affix/Affix.js +4 -0
- package/dist/affix/Affix.vue.d.ts +21 -0
- package/dist/affix/Affix.vue_vue_type_script_setup_true_lang.js +176 -0
- package/dist/affix/index.d.ts +33 -0
- package/dist/affix/index.js +5 -0
- package/dist/affix/interface.d.ts +33 -0
- package/dist/affix/style/index.css +11 -0
- package/dist/alert/Alert.js +4 -0
- package/dist/alert/Alert.vue.d.ts +24 -0
- package/dist/alert/Alert.vue_vue_type_script_setup_true_lang.js +193 -0
- package/dist/alert/index.d.ts +47 -0
- package/dist/alert/index.js +5 -0
- package/dist/alert/interface.d.ts +67 -0
- package/dist/alert/style/index.css +164 -0
- package/dist/app/App.js +4 -0
- package/dist/app/App.vue.d.ts +15 -0
- package/dist/app/App.vue_vue_type_script_setup_true_lang.js +148 -0
- package/dist/app/context.d.ts +8 -0
- package/dist/app/context.js +24 -0
- package/dist/app/index.d.ts +26 -0
- package/dist/app/index.js +6 -0
- package/dist/app/interface.d.ts +31 -0
- package/dist/app/style/index.css +12 -0
- package/dist/app/useApp.d.ts +3 -0
- package/dist/app/useApp.js +7 -0
- package/dist/avatar/Avatar.js +4 -0
- package/dist/avatar/Avatar.vue.d.ts +20 -0
- package/dist/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/avatar/AvatarGroup.js +4 -0
- package/dist/avatar/AvatarGroup.vue.d.ts +13 -0
- package/dist/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/avatar/context.d.ts +7 -0
- package/dist/avatar/context.js +3 -0
- package/dist/avatar/index.d.ts +67 -0
- package/dist/avatar/index.js +7 -0
- package/dist/avatar/interface.d.ts +61 -0
- package/dist/avatar/style/index.css +94 -0
- package/dist/badge/Badge.js +4 -0
- package/dist/badge/Badge.vue.d.ts +21 -0
- package/dist/badge/Badge.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/badge/Ribbon.js +4 -0
- package/dist/badge/Ribbon.vue.d.ts +15 -0
- package/dist/badge/Ribbon.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/badge/index.d.ts +84 -0
- package/dist/badge/index.js +7 -0
- package/dist/badge/interface.d.ts +66 -0
- package/dist/badge/style/index.css +305 -0
- package/dist/badge/util.d.ts +2 -0
- package/dist/badge/util.js +20 -0
- package/dist/barrage/Barrage.js +4 -0
- package/dist/barrage/Barrage.vue.d.ts +27 -0
- package/dist/barrage/Barrage.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/barrage/index.d.ts +55 -0
- package/dist/barrage/index.js +5 -0
- package/dist/barrage/interface.d.ts +54 -0
- package/dist/barrage/style/index.css +90 -0
- package/dist/border-beam/BeamHost.d.ts +22 -0
- package/dist/border-beam/BeamHost.js +26 -0
- package/dist/border-beam/BorderBeam.js +4 -0
- package/dist/border-beam/BorderBeam.vue.d.ts +13 -0
- package/dist/border-beam/BorderBeam.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/border-beam/index.d.ts +17 -0
- package/dist/border-beam/index.js +5 -0
- package/dist/border-beam/interface.d.ts +43 -0
- package/dist/border-beam/style/index.css +95 -0
- package/dist/border-beam/useBorderSize.d.ts +10 -0
- package/dist/border-beam/useBorderSize.js +56 -0
- package/dist/border-beam/util.d.ts +10 -0
- package/dist/border-beam/util.js +30 -0
- package/dist/button/Button.js +4 -0
- package/dist/button/Button.vue.d.ts +26 -0
- package/dist/button/Button.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/button/index.d.ts +54 -0
- package/dist/button/index.js +5 -0
- package/dist/button/interface.d.ts +49 -0
- package/dist/button/style/index.css +246 -0
- package/dist/calendar/Calendar.js +4 -0
- package/dist/calendar/Calendar.vue.d.ts +78 -0
- package/dist/calendar/Calendar.vue_vue_type_script_setup_true_lang.js +621 -0
- package/dist/calendar/index.d.ts +189 -0
- package/dist/calendar/index.js +5 -0
- package/dist/calendar/interface.d.ts +151 -0
- package/dist/calendar/style/index.css +255 -0
- package/dist/card/Card.js +4 -0
- package/dist/card/Card.vue.d.ts +17 -0
- package/dist/card/Card.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/card/CardMeta.js +4 -0
- package/dist/card/CardMeta.vue.d.ts +13 -0
- package/dist/card/CardMeta.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/card/index.d.ts +60 -0
- package/dist/card/index.js +7 -0
- package/dist/card/interface.d.ts +84 -0
- package/dist/card/style/index.css +209 -0
- package/dist/carousel/Carousel.js +4 -0
- package/dist/carousel/Carousel.vue.d.ts +51 -0
- package/dist/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +410 -0
- package/dist/carousel/index.d.ts +113 -0
- package/dist/carousel/index.js +5 -0
- package/dist/carousel/interface.d.ts +80 -0
- package/dist/carousel/style/index.css +198 -0
- package/dist/cascader/Cascader.js +4 -0
- package/dist/cascader/Cascader.vue.d.ts +55 -0
- package/dist/cascader/Cascader.vue_vue_type_script_setup_true_lang.js +318 -0
- package/dist/cascader/CascaderView.js +4 -0
- package/dist/cascader/CascaderView.vue.d.ts +38 -0
- package/dist/cascader/CascaderView.vue_vue_type_script_setup_true_lang.js +270 -0
- package/dist/cascader/index.d.ts +290 -0
- package/dist/cascader/index.js +7 -0
- package/dist/cascader/interface.d.ts +116 -0
- package/dist/cascader/style/index.css +119 -0
- package/dist/cascader/util.d.ts +6 -0
- package/dist/cascader/util.js +29 -0
- package/dist/checkbox/Checkbox.js +4 -0
- package/dist/checkbox/Checkbox.vue.d.ts +42 -0
- package/dist/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +262 -0
- package/dist/checkbox/CheckboxGroup.js +4 -0
- package/dist/checkbox/CheckboxGroup.vue.d.ts +23 -0
- package/dist/checkbox/CheckboxGroup.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/checkbox/context.d.ts +19 -0
- package/dist/checkbox/context.js +7 -0
- package/dist/checkbox/index.d.ts +183 -0
- package/dist/checkbox/index.js +7 -0
- package/dist/checkbox/interface.d.ts +129 -0
- package/dist/checkbox/style/index.css +197 -0
- package/dist/collapse/Collapse.js +4 -0
- package/dist/collapse/Collapse.vue.d.ts +25 -0
- package/dist/collapse/Collapse.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/collapse/CollapsePanel.js +4 -0
- package/dist/collapse/CollapsePanel.vue.d.ts +22 -0
- package/dist/collapse/CollapsePanel.vue_vue_type_script_setup_true_lang.js +149 -0
- package/dist/collapse/context.d.ts +14 -0
- package/dist/collapse/context.js +3 -0
- package/dist/collapse/index.d.ts +133 -0
- package/dist/collapse/index.js +7 -0
- package/dist/collapse/interface.d.ts +95 -0
- package/dist/collapse/style/index.css +206 -0
- package/dist/collapse-transition/CollapseTransition.js +4 -0
- package/dist/collapse-transition/CollapseTransition.vue.d.ts +23 -0
- package/dist/collapse-transition/CollapseTransition.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/collapse-transition/index.d.ts +45 -0
- package/dist/collapse-transition/index.js +5 -0
- package/dist/collapse-transition/interface.d.ts +29 -0
- package/dist/collapse-transition/style/index.css +25 -0
- package/dist/color-picker/ColorBlock.js +4 -0
- package/dist/color-picker/ColorBlock.vue.d.ts +12 -0
- package/dist/color-picker/ColorBlock.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/color-picker/ColorInput.js +4 -0
- package/dist/color-picker/ColorInput.vue.d.ts +3 -0
- package/dist/color-picker/ColorInput.vue_vue_type_script_setup_true_lang.js +162 -0
- package/dist/color-picker/ColorPalette.js +4 -0
- package/dist/color-picker/ColorPalette.vue.d.ts +3 -0
- package/dist/color-picker/ColorPalette.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/color-picker/ColorPicker.js +4 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +50 -0
- package/dist/color-picker/ColorPicker.vue_vue_type_script_setup_true_lang.js +291 -0
- package/dist/color-picker/ColorPickerPanel.js +4 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +32 -0
- package/dist/color-picker/ColorPickerPanel.vue_vue_type_script_setup_true_lang.js +120 -0
- package/dist/color-picker/ColorSlider.js +4 -0
- package/dist/color-picker/ColorSlider.vue.d.ts +19 -0
- package/dist/color-picker/ColorSlider.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/color-picker/PanelBody.js +4 -0
- package/dist/color-picker/PanelBody.vue.d.ts +42 -0
- package/dist/color-picker/PanelBody.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/color-picker/PanelContent.js +4 -0
- package/dist/color-picker/PanelContent.vue.d.ts +3 -0
- package/dist/color-picker/PanelContent.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/color-picker/PanelPicker.js +4 -0
- package/dist/color-picker/PanelPicker.vue.d.ts +3 -0
- package/dist/color-picker/PanelPicker.vue_vue_type_script_setup_true_lang.js +102 -0
- package/dist/color-picker/PanelPresets.js +4 -0
- package/dist/color-picker/PanelPresets.vue.d.ts +3 -0
- package/dist/color-picker/PanelPresets.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/color-picker/color.d.ts +71 -0
- package/dist/color-picker/color.js +337 -0
- package/dist/color-picker/context.d.ts +27 -0
- package/dist/color-picker/context.js +12 -0
- package/dist/color-picker/index.d.ts +251 -0
- package/dist/color-picker/index.js +8 -0
- package/dist/color-picker/interface.d.ts +182 -0
- package/dist/color-picker/style/index.css +406 -0
- package/dist/color-picker/useColorDrag.d.ts +18 -0
- package/dist/color-picker/useColorDrag.js +70 -0
- package/dist/components.d.ts +178 -0
- package/dist/components.js +218 -0
- package/dist/config-provider/ConfigProvider.js +4 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +14 -0
- package/dist/config-provider/ConfigProvider.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/config-provider/context.d.ts +54 -0
- package/dist/config-provider/context.js +52 -0
- package/dist/config-provider/index.d.ts +28 -0
- package/dist/config-provider/index.js +8 -0
- package/dist/date-picker/DatePicker.js +4 -0
- package/dist/date-picker/DatePicker.vue.d.ts +49 -0
- package/dist/date-picker/DatePicker.vue_vue_type_script_setup_true_lang.js +297 -0
- package/dist/date-picker/DatePickerView.js +4 -0
- package/dist/date-picker/DatePickerView.vue.d.ts +17 -0
- package/dist/date-picker/DatePickerView.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/date-picker/RangePicker.js +4 -0
- package/dist/date-picker/RangePicker.vue.d.ts +54 -0
- package/dist/date-picker/RangePicker.vue_vue_type_script_setup_true_lang.js +461 -0
- package/dist/date-picker/index.d.ts +394 -0
- package/dist/date-picker/index.js +13 -0
- package/dist/date-picker/interface.d.ts +176 -0
- package/dist/date-picker/style/index.css +93 -0
- package/dist/date-picker/util.d.ts +39 -0
- package/dist/date-picker/util.js +264 -0
- package/dist/descriptions/Descriptions.js +4 -0
- package/dist/descriptions/Descriptions.vue.d.ts +18 -0
- package/dist/descriptions/Descriptions.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/descriptions/index.d.ts +32 -0
- package/dist/descriptions/index.js +5 -0
- package/dist/descriptions/interface.d.ts +72 -0
- package/dist/descriptions/style/index.css +151 -0
- package/dist/divider/Divider.js +4 -0
- package/dist/divider/Divider.vue.d.ts +18 -0
- package/dist/divider/Divider.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/divider/index.d.ts +32 -0
- package/dist/divider/index.js +5 -0
- package/dist/divider/interface.d.ts +38 -0
- package/dist/divider/style/index.css +96 -0
- package/dist/draggable/Draggable.js +4 -0
- package/dist/draggable/Draggable.vue.d.ts +35 -0
- package/dist/draggable/Draggable.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/draggable/index.d.ts +74 -0
- package/dist/draggable/index.js +5 -0
- package/dist/draggable/interface.d.ts +48 -0
- package/dist/draggable/style/index.css +37 -0
- package/dist/drawer/Drawer.js +4 -0
- package/dist/drawer/Drawer.vue.d.ts +52 -0
- package/dist/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +385 -0
- package/dist/drawer/index.d.ts +127 -0
- package/dist/drawer/index.js +5 -0
- package/dist/drawer/interface.d.ts +87 -0
- package/dist/drawer/style/index.css +183 -0
- package/dist/dropdown/Dropdown.js +4 -0
- package/dist/dropdown/Dropdown.vue.d.ts +29 -0
- package/dist/dropdown/Dropdown.vue_vue_type_script_setup_true_lang.js +205 -0
- package/dist/dropdown/DropdownItem.js +4 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +45 -0
- package/dist/dropdown/DropdownItem.vue_vue_type_script_setup_true_lang.js +287 -0
- package/dist/dropdown/context.d.ts +31 -0
- package/dist/dropdown/context.js +3 -0
- package/dist/dropdown/index.d.ts +270 -0
- package/dist/dropdown/index.js +7 -0
- package/dist/dropdown/interface.d.ts +109 -0
- package/dist/dropdown/style/index.css +227 -0
- package/dist/empty/DefaultImage.js +4 -0
- package/dist/empty/DefaultImage.vue.d.ts +3 -0
- package/dist/empty/DefaultImage.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/empty/Empty.js +4 -0
- package/dist/empty/Empty.vue.d.ts +20 -0
- package/dist/empty/Empty.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/empty/SimpleImage.js +4 -0
- package/dist/empty/SimpleImage.vue.d.ts +3 -0
- package/dist/empty/SimpleImage.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/empty/images.d.ts +8 -0
- package/dist/empty/images.js +9 -0
- package/dist/empty/index.d.ts +45 -0
- package/dist/empty/index.js +9 -0
- package/dist/empty/interface.d.ts +29 -0
- package/dist/empty/style/index.css +101 -0
- package/dist/flex/Flex.js +4 -0
- package/dist/flex/Flex.vue.d.ts +17 -0
- package/dist/flex/Flex.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/flex/index.d.ts +29 -0
- package/dist/flex/index.js +5 -0
- package/dist/flex/interface.d.ts +23 -0
- package/dist/flex/style/index.css +31 -0
- package/dist/float-button/BackTop.js +4 -0
- package/dist/float-button/BackTop.vue.d.ts +27 -0
- package/dist/float-button/BackTop.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/float-button/FloatButton.js +4 -0
- package/dist/float-button/FloatButton.vue.d.ts +38 -0
- package/dist/float-button/FloatButton.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/float-button/FloatButtonGroup.js +4 -0
- package/dist/float-button/FloatButtonGroup.vue.d.ts +36 -0
- package/dist/float-button/FloatButtonGroup.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/float-button/context.d.ts +6 -0
- package/dist/float-button/context.js +3 -0
- package/dist/float-button/index.d.ts +359 -0
- package/dist/float-button/index.js +12 -0
- package/dist/float-button/interface.d.ts +138 -0
- package/dist/float-button/style/index.css +234 -0
- package/dist/floating-panel/FloatingPanel.js +4 -0
- package/dist/floating-panel/FloatingPanel.vue.d.ts +34 -0
- package/dist/floating-panel/FloatingPanel.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/floating-panel/index.d.ts +72 -0
- package/dist/floating-panel/index.js +5 -0
- package/dist/floating-panel/interface.d.ts +48 -0
- package/dist/floating-panel/style/index.css +92 -0
- package/dist/form/Form.js +4 -0
- package/dist/form/Form.vue.d.ts +41 -0
- package/dist/form/Form.vue_vue_type_script_setup_true_lang.js +367 -0
- package/dist/form/FormItem.js +4 -0
- package/dist/form/FormItem.vue.d.ts +34 -0
- package/dist/form/FormItem.vue_vue_type_script_setup_true_lang.js +471 -0
- package/dist/form/context.d.ts +32 -0
- package/dist/form/context.js +34 -0
- package/dist/form/index.d.ts +247 -0
- package/dist/form/index.js +7 -0
- package/dist/form/interface.d.ts +242 -0
- package/dist/form/internal.d.ts +46 -0
- package/dist/form/internal.js +9 -0
- package/dist/form/style/index.css +256 -0
- package/dist/form/utils.d.ts +23 -0
- package/dist/form/utils.js +218 -0
- package/dist/grid/Col.js +4 -0
- package/dist/grid/Col.vue.d.ts +13 -0
- package/dist/grid/Col.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/grid/Grid.js +4 -0
- package/dist/grid/Grid.vue.d.ts +23 -0
- package/dist/grid/Grid.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/grid/GridItem.js +4 -0
- package/dist/grid/GridItem.vue.d.ts +26 -0
- package/dist/grid/GridItem.vue_vue_type_script_setup_true_lang.js +137 -0
- package/dist/grid/Row.js +4 -0
- package/dist/grid/Row.vue.d.ts +16 -0
- package/dist/grid/Row.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/grid/context.d.ts +9 -0
- package/dist/grid/context.js +4 -0
- package/dist/grid/index.d.ts +188 -0
- package/dist/grid/index.js +11 -0
- package/dist/grid/interface.d.ts +135 -0
- package/dist/grid/style/grid.css +172 -0
- package/dist/grid/style/index.css +75 -0
- package/dist/highlight/Highlight.js +4 -0
- package/dist/highlight/Highlight.vue.d.ts +19 -0
- package/dist/highlight/Highlight.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/highlight/index.d.ts +36 -0
- package/dist/highlight/index.js +6 -0
- package/dist/highlight/interface.d.ts +50 -0
- package/dist/highlight/style/index.css +30 -0
- package/dist/highlight/utils.d.ts +7 -0
- package/dist/highlight/utils.js +60 -0
- package/dist/hooks/browser.d.ts +23 -0
- package/dist/hooks/browser.js +86 -0
- package/dist/hooks/dom.d.ts +81 -0
- package/dist/hooks/dom.js +243 -0
- package/dist/hooks/fn.d.ts +23 -0
- package/dist/hooks/fn.js +86 -0
- package/dist/hooks/gesture.d.ts +33 -0
- package/dist/hooks/gesture.js +113 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/request.d.ts +79 -0
- package/dist/hooks/request.js +166 -0
- package/dist/hooks/shared.d.ts +7 -0
- package/dist/hooks/shared.js +16 -0
- package/dist/hooks/state.d.ts +20 -0
- package/dist/hooks/state.js +21 -0
- package/dist/hooks/timer.d.ts +79 -0
- package/dist/hooks/timer.js +215 -0
- package/dist/image/Image.js +4 -0
- package/dist/image/Image.vue.d.ts +31 -0
- package/dist/image/Image.vue_vue_type_script_setup_true_lang.js +232 -0
- package/dist/image/ImagePreviewGroup.js +4 -0
- package/dist/image/ImagePreviewGroup.vue.d.ts +23 -0
- package/dist/image/ImagePreviewGroup.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/image/context.d.ts +12 -0
- package/dist/image/context.js +7 -0
- package/dist/image/index.d.ts +159 -0
- package/dist/image/index.js +7 -0
- package/dist/image/interface.d.ts +99 -0
- package/dist/image/style/index.css +65 -0
- package/dist/image-preview/ImagePreview.js +4 -0
- package/dist/image-preview/ImagePreview.vue.d.ts +49 -0
- package/dist/image-preview/ImagePreview.vue_vue_type_script_setup_true_lang.js +297 -0
- package/dist/image-preview/ImagePreviewItem.js +4 -0
- package/dist/image-preview/ImagePreviewItem.vue.d.ts +38 -0
- package/dist/image-preview/ImagePreviewItem.vue_vue_type_script_setup_true_lang.js +261 -0
- package/dist/image-preview/index.d.ts +120 -0
- package/dist/image-preview/index.js +51 -0
- package/dist/image-preview/interface.d.ts +104 -0
- package/dist/image-preview/style/index.css +147 -0
- package/dist/index-bar/IndexBar.js +4 -0
- package/dist/index-bar/IndexBar.vue.d.ts +23 -0
- package/dist/index-bar/IndexBar.vue_vue_type_script_setup_true_lang.js +189 -0
- package/dist/index-bar/IndexBarAnchor.js +4 -0
- package/dist/index-bar/IndexBarAnchor.vue.d.ts +13 -0
- package/dist/index-bar/IndexBarAnchor.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/index-bar/context.d.ts +14 -0
- package/dist/index-bar/context.js +3 -0
- package/dist/index-bar/index.d.ts +73 -0
- package/dist/index-bar/index.js +7 -0
- package/dist/index-bar/interface.d.ts +46 -0
- package/dist/index-bar/style/index.css +120 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +126 -0
- package/dist/infinite-scroll/InfiniteScroll.js +4 -0
- package/dist/infinite-scroll/InfiniteScroll.vue.d.ts +42 -0
- package/dist/infinite-scroll/InfiniteScroll.vue_vue_type_script_setup_true_lang.js +211 -0
- package/dist/infinite-scroll/index.d.ts +97 -0
- package/dist/infinite-scroll/index.js +5 -0
- package/dist/infinite-scroll/interface.d.ts +53 -0
- package/dist/infinite-scroll/style/index.css +54 -0
- package/dist/input/Input.js +4 -0
- package/dist/input/Input.vue.d.ts +50 -0
- package/dist/input/Input.vue_vue_type_script_setup_true_lang.js +230 -0
- package/dist/input/InputOTP.js +4 -0
- package/dist/input/InputOTP.vue.d.ts +33 -0
- package/dist/input/InputOTP.vue_vue_type_script_setup_true_lang.js +208 -0
- package/dist/input/InputPassword.js +4 -0
- package/dist/input/InputPassword.vue.d.ts +51 -0
- package/dist/input/InputPassword.vue_vue_type_script_setup_true_lang.js +219 -0
- package/dist/input/InputSearch.js +4 -0
- package/dist/input/InputSearch.vue.d.ts +63 -0
- package/dist/input/InputSearch.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/input/TextArea.js +4 -0
- package/dist/input/TextArea.vue.d.ts +51 -0
- package/dist/input/TextArea.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/input/index.d.ts +1033 -0
- package/dist/input/index.js +18 -0
- package/dist/input/interface.d.ts +352 -0
- package/dist/input/style/index.css +575 -0
- package/dist/input/useInput.d.ts +46 -0
- package/dist/input/useInput.js +133 -0
- package/dist/input-number/InputNumber.js +4 -0
- package/dist/input-number/InputNumber.vue.d.ts +45 -0
- package/dist/input-number/InputNumber.vue_vue_type_script_setup_true_lang.js +424 -0
- package/dist/input-number/index.d.ts +105 -0
- package/dist/input-number/index.js +5 -0
- package/dist/input-number/interface.d.ts +98 -0
- package/dist/input-number/style/index.css +232 -0
- package/dist/list/List.js +4 -0
- package/dist/list/List.vue.d.ts +33 -0
- package/dist/list/List.vue_vue_type_script_setup_true_lang.js +182 -0
- package/dist/list/ListItem.js +4 -0
- package/dist/list/ListItem.vue.d.ts +36 -0
- package/dist/list/ListItem.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/list/index.d.ts +232 -0
- package/dist/list/index.js +7 -0
- package/dist/list/interface.d.ts +117 -0
- package/dist/list/style/index.css +230 -0
- package/dist/listy/Listy.js +4 -0
- package/dist/listy/Listy.vue.d.ts +28 -0
- package/dist/listy/Listy.vue_vue_type_script_setup_true_lang.js +219 -0
- package/dist/listy/ListyStickyHeader.js +4 -0
- package/dist/listy/ListyStickyHeader.vue.d.ts +22 -0
- package/dist/listy/ListyStickyHeader.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/listy/index.d.ts +56 -0
- package/dist/listy/index.js +5 -0
- package/dist/listy/interface.d.ts +84 -0
- package/dist/listy/style/index.css +91 -0
- package/dist/listy/util.d.ts +56 -0
- package/dist/listy/util.js +85 -0
- package/dist/loading-bar/LoadingBar.js +4 -0
- package/dist/loading-bar/LoadingBar.vue.d.ts +14 -0
- package/dist/loading-bar/LoadingBar.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/loading-bar/api.d.ts +3 -0
- package/dist/loading-bar/api.js +110 -0
- package/dist/loading-bar/index.d.ts +3 -0
- package/dist/loading-bar/index.js +4 -0
- package/dist/loading-bar/interface.d.ts +42 -0
- package/dist/loading-bar/style/index.css +54 -0
- package/dist/locale/en_US.d.ts +3 -0
- package/dist/locale/en_US.js +195 -0
- package/dist/locale/index.d.ts +12 -0
- package/dist/locale/index.js +24 -0
- package/dist/locale/interface.d.ts +185 -0
- package/dist/locale/zh_CN.d.ts +3 -0
- package/dist/locale/zh_CN.js +195 -0
- package/dist/mask/Mask.js +4 -0
- package/dist/mask/Mask.vue.d.ts +28 -0
- package/dist/mask/Mask.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/mask/index.d.ts +58 -0
- package/dist/mask/index.js +5 -0
- package/dist/mask/interface.d.ts +24 -0
- package/dist/mask/style/index.css +10 -0
- package/dist/masonry/Masonry.js +4 -0
- package/dist/masonry/Masonry.vue.d.ts +25 -0
- package/dist/masonry/Masonry.vue_vue_type_script_setup_true_lang.js +245 -0
- package/dist/masonry/index.d.ts +45 -0
- package/dist/masonry/index.js +5 -0
- package/dist/masonry/interface.d.ts +61 -0
- package/dist/masonry/layout.d.ts +27 -0
- package/dist/masonry/layout.js +39 -0
- package/dist/masonry/style/index.css +63 -0
- package/dist/message/Message.js +4 -0
- package/dist/message/Message.vue.d.ts +10 -0
- package/dist/message/Message.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/message/api.d.ts +3 -0
- package/dist/message/api.js +157 -0
- package/dist/message/index.d.ts +3 -0
- package/dist/message/index.js +4 -0
- package/dist/message/interface.d.ts +68 -0
- package/dist/message/style/index.css +105 -0
- package/dist/modal/Modal.js +4 -0
- package/dist/modal/Modal.vue.d.ts +60 -0
- package/dist/modal/Modal.vue_vue_type_script_setup_true_lang.js +362 -0
- package/dist/modal/confirm.d.ts +9 -0
- package/dist/modal/confirm.js +202 -0
- package/dist/modal/index.d.ts +152 -0
- package/dist/modal/index.js +12 -0
- package/dist/modal/interface.d.ts +165 -0
- package/dist/modal/style/index.css +198 -0
- package/dist/nav-bar/NavBar.js +4 -0
- package/dist/nav-bar/NavBar.vue.d.ts +40 -0
- package/dist/nav-bar/NavBar.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/nav-bar/index.d.ts +96 -0
- package/dist/nav-bar/index.js +5 -0
- package/dist/nav-bar/interface.d.ts +57 -0
- package/dist/nav-bar/style/index.css +140 -0
- package/dist/notice-bar/NoticeBar.js +4 -0
- package/dist/notice-bar/NoticeBar.vue.d.ts +31 -0
- package/dist/notice-bar/NoticeBar.vue_vue_type_script_setup_true_lang.js +221 -0
- package/dist/notice-bar/index.d.ts +67 -0
- package/dist/notice-bar/index.js +5 -0
- package/dist/notice-bar/interface.d.ts +59 -0
- package/dist/notice-bar/style/index.css +171 -0
- package/dist/notification/Notification.js +4 -0
- package/dist/notification/Notification.vue.d.ts +45 -0
- package/dist/notification/Notification.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/notification/NotificationHolder.js +4 -0
- package/dist/notification/NotificationHolder.vue.d.ts +15 -0
- package/dist/notification/NotificationHolder.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/notification/api.d.ts +3 -0
- package/dist/notification/api.js +160 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.js +4 -0
- package/dist/notification/interface.d.ts +178 -0
- package/dist/notification/style/index.css +295 -0
- package/dist/number-keyboard/NumberKeyboard.js +4 -0
- package/dist/number-keyboard/NumberKeyboard.vue.d.ts +44 -0
- package/dist/number-keyboard/NumberKeyboard.vue_vue_type_script_setup_true_lang.js +398 -0
- package/dist/number-keyboard/index.d.ts +101 -0
- package/dist/number-keyboard/index.js +5 -0
- package/dist/number-keyboard/interface.d.ts +72 -0
- package/dist/number-keyboard/style/index.css +169 -0
- package/dist/pagination/Pagination.js +4 -0
- package/dist/pagination/Pagination.vue.d.ts +34 -0
- package/dist/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +220 -0
- package/dist/pagination/index.d.ts +74 -0
- package/dist/pagination/index.js +5 -0
- package/dist/pagination/interface.d.ts +49 -0
- package/dist/pagination/style/index.css +137 -0
- package/dist/picker/Picker.js +4 -0
- package/dist/picker/Picker.vue.d.ts +50 -0
- package/dist/picker/Picker.vue_vue_type_script_setup_true_lang.js +286 -0
- package/dist/picker/PickerPopup.js +4 -0
- package/dist/picker/PickerPopup.vue.d.ts +49 -0
- package/dist/picker/PickerPopup.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/picker/PickerTrigger.js +4 -0
- package/dist/picker/PickerTrigger.vue.d.ts +45 -0
- package/dist/picker/PickerTrigger.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/picker/index.d.ts +119 -0
- package/dist/picker/index.js +5 -0
- package/dist/picker/interface.d.ts +102 -0
- package/dist/picker/style/index.css +238 -0
- package/dist/picker/usePickerField.d.ts +20 -0
- package/dist/picker/usePickerField.js +39 -0
- package/dist/picker-view/PickerView.js +4 -0
- package/dist/picker-view/PickerView.vue.d.ts +27 -0
- package/dist/picker-view/PickerView.vue_vue_type_script_setup_true_lang.js +118 -0
- package/dist/picker-view/PickerViewColumn.js +4 -0
- package/dist/picker-view/PickerViewColumn.vue.d.ts +37 -0
- package/dist/picker-view/PickerViewColumn.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/picker-view/index.d.ts +56 -0
- package/dist/picker-view/index.js +5 -0
- package/dist/picker-view/interface.d.ts +69 -0
- package/dist/picker-view/style/index.css +111 -0
- package/dist/picker-view/util.d.ts +23 -0
- package/dist/picker-view/util.js +55 -0
- package/dist/popover/Popover.js +4 -0
- package/dist/popover/Popover.vue.d.ts +38 -0
- package/dist/popover/Popover.vue_vue_type_script_setup_true_lang.js +311 -0
- package/dist/popover/index.d.ts +88 -0
- package/dist/popover/index.js +5 -0
- package/dist/popover/interface.d.ts +72 -0
- package/dist/popover/position.d.ts +47 -0
- package/dist/popover/position.js +72 -0
- package/dist/popover/style/index.css +217 -0
- package/dist/popup/Popup.js +4 -0
- package/dist/popup/Popup.vue.d.ts +39 -0
- package/dist/popup/Popup.vue_vue_type_script_setup_true_lang.js +206 -0
- package/dist/popup/index.d.ts +87 -0
- package/dist/popup/index.js +5 -0
- package/dist/popup/interface.d.ts +57 -0
- package/dist/popup/style/index.css +121 -0
- package/dist/progress/Progress.js +4 -0
- package/dist/progress/Progress.vue.d.ts +18 -0
- package/dist/progress/Progress.vue_vue_type_script_setup_true_lang.js +356 -0
- package/dist/progress/index.d.ts +32 -0
- package/dist/progress/index.js +5 -0
- package/dist/progress/interface.d.ts +86 -0
- package/dist/progress/style/index.css +269 -0
- package/dist/pull-to-refresh/PullToRefresh.js +4 -0
- package/dist/pull-to-refresh/PullToRefresh.vue.d.ts +45 -0
- package/dist/pull-to-refresh/PullToRefresh.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/pull-to-refresh/index.d.ts +106 -0
- package/dist/pull-to-refresh/index.js +5 -0
- package/dist/pull-to-refresh/interface.d.ts +57 -0
- package/dist/pull-to-refresh/style/index.css +52 -0
- package/dist/qrcode/QRCode.js +4 -0
- package/dist/qrcode/QRCode.vue.d.ts +31 -0
- package/dist/qrcode/QRCode.vue_vue_type_script_setup_true_lang.js +351 -0
- package/dist/qrcode/encoder.d.ts +47 -0
- package/dist/qrcode/encoder.js +786 -0
- package/dist/qrcode/index.d.ts +65 -0
- package/dist/qrcode/index.js +6 -0
- package/dist/qrcode/interface.d.ts +73 -0
- package/dist/qrcode/style/index.css +76 -0
- package/dist/radio/Radio.js +4 -0
- package/dist/radio/Radio.vue.d.ts +38 -0
- package/dist/radio/Radio.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/radio/RadioButton.js +4 -0
- package/dist/radio/RadioButton.vue.d.ts +32 -0
- package/dist/radio/RadioButton.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/radio/RadioGroup.js +4 -0
- package/dist/radio/RadioGroup.vue.d.ts +24 -0
- package/dist/radio/RadioGroup.vue_vue_type_script_setup_true_lang.js +147 -0
- package/dist/radio/context.d.ts +18 -0
- package/dist/radio/context.js +7 -0
- package/dist/radio/index.d.ts +321 -0
- package/dist/radio/index.js +12 -0
- package/dist/radio/interface.d.ts +142 -0
- package/dist/radio/style/index.css +328 -0
- package/dist/rate/Rate.js +4 -0
- package/dist/rate/Rate.vue.d.ts +34 -0
- package/dist/rate/Rate.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/rate/index.d.ts +74 -0
- package/dist/rate/index.js +5 -0
- package/dist/rate/interface.d.ts +51 -0
- package/dist/rate/style/index.css +88 -0
- package/dist/result/ExceptionImage.js +4 -0
- package/dist/result/ExceptionImage.vue.d.ts +6 -0
- package/dist/result/ExceptionImage.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/result/Result.js +4 -0
- package/dist/result/Result.vue.d.ts +18 -0
- package/dist/result/Result.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/result/index.d.ts +32 -0
- package/dist/result/index.js +5 -0
- package/dist/result/interface.d.ts +41 -0
- package/dist/result/style/index.css +138 -0
- package/dist/rolling-text/RollingText.js +4 -0
- package/dist/rolling-text/RollingText.vue.d.ts +22 -0
- package/dist/rolling-text/RollingText.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/rolling-text/index.d.ts +17 -0
- package/dist/rolling-text/index.js +5 -0
- package/dist/rolling-text/interface.d.ts +42 -0
- package/dist/rolling-text/style/index.css +86 -0
- package/dist/rolling-text/utils.d.ts +18 -0
- package/dist/rolling-text/utils.js +74 -0
- package/dist/safe-area/SafeArea.js +4 -0
- package/dist/safe-area/SafeArea.vue.d.ts +15 -0
- package/dist/safe-area/SafeArea.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/safe-area/index.d.ts +23 -0
- package/dist/safe-area/index.js +5 -0
- package/dist/safe-area/interface.d.ts +9 -0
- package/dist/safe-area/style/index.css +18 -0
- package/dist/segmented/Segmented.js +4 -0
- package/dist/segmented/Segmented.vue.d.ts +25 -0
- package/dist/segmented/Segmented.vue_vue_type_script_setup_true_lang.js +165 -0
- package/dist/segmented/index.d.ts +50 -0
- package/dist/segmented/index.js +5 -0
- package/dist/segmented/interface.d.ts +50 -0
- package/dist/segmented/style/index.css +159 -0
- package/dist/select/Select.js +4 -0
- package/dist/select/Select.vue.d.ts +66 -0
- package/dist/select/Select.vue_vue_type_script_setup_true_lang.js +582 -0
- package/dist/select/index.d.ts +165 -0
- package/dist/select/index.js +5 -0
- package/dist/select/interface.d.ts +95 -0
- package/dist/select/style/index.css +167 -0
- package/dist/selector/Selector.js +4 -0
- package/dist/selector/Selector.vue.d.ts +24 -0
- package/dist/selector/Selector.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/selector/index.d.ts +47 -0
- package/dist/selector/index.js +5 -0
- package/dist/selector/interface.d.ts +68 -0
- package/dist/selector/style/index.css +120 -0
- package/dist/share-sheet/ShareSheet.js +4 -0
- package/dist/share-sheet/ShareSheet.vue.d.ts +49 -0
- package/dist/share-sheet/ShareSheet.vue_vue_type_script_setup_true_lang.js +278 -0
- package/dist/share-sheet/index.d.ts +118 -0
- package/dist/share-sheet/index.js +5 -0
- package/dist/share-sheet/interface.d.ts +98 -0
- package/dist/share-sheet/style/index.css +213 -0
- package/dist/shimmer-text/ShimmerText.js +4 -0
- package/dist/shimmer-text/ShimmerText.vue.d.ts +19 -0
- package/dist/shimmer-text/ShimmerText.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/shimmer-text/index.d.ts +35 -0
- package/dist/shimmer-text/index.js +5 -0
- package/dist/shimmer-text/interface.d.ts +28 -0
- package/dist/shimmer-text/style/index.css +56 -0
- package/dist/side-bar/SideBar.js +4 -0
- package/dist/side-bar/SideBar.vue.d.ts +22 -0
- package/dist/side-bar/SideBar.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/side-bar/index.d.ts +38 -0
- package/dist/side-bar/index.js +5 -0
- package/dist/side-bar/interface.d.ts +44 -0
- package/dist/side-bar/style/index.css +132 -0
- package/dist/signature/Signature.js +4 -0
- package/dist/signature/Signature.vue.d.ts +45 -0
- package/dist/signature/Signature.vue_vue_type_script_setup_true_lang.js +423 -0
- package/dist/signature/index.d.ts +107 -0
- package/dist/signature/index.js +5 -0
- package/dist/signature/interface.d.ts +80 -0
- package/dist/signature/style/index.css +75 -0
- package/dist/skeleton/Skeleton.js +4 -0
- package/dist/skeleton/Skeleton.vue.d.ts +18 -0
- package/dist/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/skeleton/SkeletonAvatar.js +4 -0
- package/dist/skeleton/SkeletonAvatar.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonAvatar.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/skeleton/SkeletonButton.js +4 -0
- package/dist/skeleton/SkeletonButton.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonButton.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/skeleton/SkeletonImage.js +4 -0
- package/dist/skeleton/SkeletonImage.vue.d.ts +6 -0
- package/dist/skeleton/SkeletonImage.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/skeleton/SkeletonInput.js +4 -0
- package/dist/skeleton/SkeletonInput.vue.d.ts +6 -0
- package/dist/skeleton/SkeletonInput.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/skeleton/index.d.ts +49 -0
- package/dist/skeleton/index.js +18 -0
- package/dist/skeleton/interface.d.ts +90 -0
- package/dist/skeleton/style/index.css +222 -0
- package/dist/slider/Slider.js +4 -0
- package/dist/slider/Slider.vue.d.ts +36 -0
- package/dist/slider/Slider.vue_vue_type_script_setup_true_lang.js +455 -0
- package/dist/slider/index.d.ts +80 -0
- package/dist/slider/index.js +5 -0
- package/dist/slider/interface.d.ts +80 -0
- package/dist/slider/style/index.css +253 -0
- package/dist/space/Space.js +4 -0
- package/dist/space/Space.vue.d.ts +18 -0
- package/dist/space/Space.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/space/SpaceAddon.js +4 -0
- package/dist/space/SpaceAddon.vue.d.ts +16 -0
- package/dist/space/SpaceAddon.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/space/SpaceCompact.js +4 -0
- package/dist/space/SpaceCompact.vue.d.ts +16 -0
- package/dist/space/SpaceCompact.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/space/index.d.ts +131 -0
- package/dist/space/index.js +13 -0
- package/dist/space/interface.d.ts +63 -0
- package/dist/space/style/compact.css +289 -0
- package/dist/space/style/index.css +83 -0
- package/dist/spin/Spin.js +4 -0
- package/dist/spin/Spin.vue.d.ts +16 -0
- package/dist/spin/Spin.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/spin/SpinIndicator.js +4 -0
- package/dist/spin/SpinIndicator.vue.d.ts +7 -0
- package/dist/spin/SpinIndicator.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/spin/index.d.ts +26 -0
- package/dist/spin/index.js +5 -0
- package/dist/spin/interface.d.ts +43 -0
- package/dist/spin/style/index.css +148 -0
- package/dist/statistic/Statistic.js +4 -0
- package/dist/statistic/Statistic.vue.d.ts +23 -0
- package/dist/statistic/Statistic.vue_vue_type_script_setup_true_lang.js +139 -0
- package/dist/statistic/StatisticTimer.js +4 -0
- package/dist/statistic/StatisticTimer.vue.d.ts +22 -0
- package/dist/statistic/StatisticTimer.vue_vue_type_script_setup_true_lang.js +141 -0
- package/dist/statistic/index.d.ts +136 -0
- package/dist/statistic/index.js +7 -0
- package/dist/statistic/interface.d.ts +110 -0
- package/dist/statistic/style/index.css +62 -0
- package/dist/statistic/utils.d.ts +12 -0
- package/dist/statistic/utils.js +61 -0
- package/dist/steps/Steps.js +4 -0
- package/dist/steps/Steps.vue.d.ts +25 -0
- package/dist/steps/Steps.vue_vue_type_script_setup_true_lang.js +148 -0
- package/dist/steps/index.d.ts +50 -0
- package/dist/steps/index.js +5 -0
- package/dist/steps/interface.d.ts +78 -0
- package/dist/steps/style/index.css +282 -0
- package/dist/style/index.css +433 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/style/index2.js +6 -0
- package/dist/style.css +14366 -0
- package/dist/swipe-action/SwipeAction.js +4 -0
- package/dist/swipe-action/SwipeAction.vue.d.ts +31 -0
- package/dist/swipe-action/SwipeAction.vue_vue_type_script_setup_true_lang.js +246 -0
- package/dist/swipe-action/index.d.ts +61 -0
- package/dist/swipe-action/index.js +5 -0
- package/dist/swipe-action/interface.d.ts +57 -0
- package/dist/swipe-action/style/index.css +100 -0
- package/dist/switch/Switch.js +4 -0
- package/dist/switch/Switch.vue.d.ts +46 -0
- package/dist/switch/Switch.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/switch/index.d.ts +109 -0
- package/dist/switch/index.js +5 -0
- package/dist/switch/interface.d.ts +62 -0
- package/dist/switch/style/index.css +173 -0
- package/dist/tab-bar/TabBar.js +4 -0
- package/dist/tab-bar/TabBar.vue.d.ts +26 -0
- package/dist/tab-bar/TabBar.vue_vue_type_script_setup_true_lang.js +143 -0
- package/dist/tab-bar/index.d.ts +50 -0
- package/dist/tab-bar/index.js +5 -0
- package/dist/tab-bar/interface.d.ts +60 -0
- package/dist/tab-bar/style/index.css +140 -0
- package/dist/tabs/Tabs.js +4 -0
- package/dist/tabs/Tabs.vue.d.ts +32 -0
- package/dist/tabs/Tabs.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/tabs/index.d.ts +67 -0
- package/dist/tabs/index.js +5 -0
- package/dist/tabs/interface.d.ts +86 -0
- package/dist/tabs/style/index.css +252 -0
- package/dist/tag/CheckableTag.js +4 -0
- package/dist/tag/CheckableTag.vue.d.ts +26 -0
- package/dist/tag/CheckableTag.vue_vue_type_script_setup_true_lang.js +108 -0
- package/dist/tag/Tag.js +4 -0
- package/dist/tag/Tag.vue.d.ts +22 -0
- package/dist/tag/Tag.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/tag/index.d.ts +143 -0
- package/dist/tag/index.js +7 -0
- package/dist/tag/interface.d.ts +75 -0
- package/dist/tag/style/index.css +250 -0
- package/dist/theme/index.d.ts +25 -0
- package/dist/theme/index.js +22 -0
- package/dist/theme/interface.d.ts +145 -0
- package/dist/theme/util.d.ts +25 -0
- package/dist/theme/util.js +135 -0
- package/dist/time-picker/TimePicker.js +4 -0
- package/dist/time-picker/TimePicker.vue.d.ts +50 -0
- package/dist/time-picker/TimePicker.vue_vue_type_script_setup_true_lang.js +270 -0
- package/dist/time-picker/index.d.ts +119 -0
- package/dist/time-picker/index.js +5 -0
- package/dist/time-picker/interface.d.ts +55 -0
- package/dist/time-picker/style/index.css +4 -0
- package/dist/timeline/Timeline.js +4 -0
- package/dist/timeline/Timeline.vue.d.ts +15 -0
- package/dist/timeline/Timeline.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/timeline/index.d.ts +23 -0
- package/dist/timeline/index.js +5 -0
- package/dist/timeline/interface.d.ts +73 -0
- package/dist/timeline/style/index.css +159 -0
- package/dist/toast/Toast.js +4 -0
- package/dist/toast/Toast.vue.d.ts +22 -0
- package/dist/toast/Toast.vue_vue_type_script_setup_true_lang.js +113 -0
- package/dist/toast/api.d.ts +3 -0
- package/dist/toast/api.js +148 -0
- package/dist/toast/index.d.ts +3 -0
- package/dist/toast/index.js +4 -0
- package/dist/toast/interface.d.ts +58 -0
- package/dist/toast/style/index.css +83 -0
- package/dist/tour/Tour.js +4 -0
- package/dist/tour/Tour.vue.d.ts +43 -0
- package/dist/tour/Tour.vue_vue_type_script_setup_true_lang.js +596 -0
- package/dist/tour/TourActions.js +4 -0
- package/dist/tour/TourActions.vue.d.ts +27 -0
- package/dist/tour/TourActions.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/tour/index.d.ts +101 -0
- package/dist/tour/index.js +5 -0
- package/dist/tour/interface.d.ts +169 -0
- package/dist/tour/position.d.ts +42 -0
- package/dist/tour/position.js +66 -0
- package/dist/tour/style/index.css +293 -0
- package/dist/tree/Tree.js +4 -0
- package/dist/tree/Tree.vue.d.ts +62 -0
- package/dist/tree/Tree.vue_vue_type_script_setup_true_lang.js +460 -0
- package/dist/tree/TreeNode.js +4 -0
- package/dist/tree/TreeNode.vue.d.ts +7 -0
- package/dist/tree/TreeNode.vue_vue_type_script_setup_true_lang.js +255 -0
- package/dist/tree/context.d.ts +34 -0
- package/dist/tree/context.js +9 -0
- package/dist/tree/index.d.ts +145 -0
- package/dist/tree/index.js +5 -0
- package/dist/tree/interface.d.ts +214 -0
- package/dist/tree/style/index.css +226 -0
- package/dist/tree/util.d.ts +79 -0
- package/dist/tree/util.js +212 -0
- package/dist/typography/Decorate.d.ts +9 -0
- package/dist/typography/Decorate.js +14 -0
- package/dist/typography/Typography.js +4 -0
- package/dist/typography/Typography.vue.d.ts +15 -0
- package/dist/typography/Typography.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/typography/TypographyBase.js +4 -0
- package/dist/typography/TypographyBase.vue.d.ts +29 -0
- package/dist/typography/TypographyBase.vue_vue_type_script_setup_true_lang.js +228 -0
- package/dist/typography/TypographyParagraph.js +4 -0
- package/dist/typography/TypographyParagraph.vue.d.ts +22 -0
- package/dist/typography/TypographyParagraph.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/typography/TypographyText.js +4 -0
- package/dist/typography/TypographyText.vue.d.ts +22 -0
- package/dist/typography/TypographyText.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/typography/TypographyTitle.js +4 -0
- package/dist/typography/TypographyTitle.vue.d.ts +23 -0
- package/dist/typography/TypographyTitle.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/typography/copy.d.ts +2 -0
- package/dist/typography/copy.js +25 -0
- package/dist/typography/index.d.ts +294 -0
- package/dist/typography/index.js +15 -0
- package/dist/typography/interface.d.ts +78 -0
- package/dist/typography/style/index.css +249 -0
- package/dist/upload/Upload.js +4 -0
- package/dist/upload/Upload.vue.d.ts +45 -0
- package/dist/upload/Upload.vue_vue_type_script_setup_true_lang.js +503 -0
- package/dist/upload/index.d.ts +97 -0
- package/dist/upload/index.js +6 -0
- package/dist/upload/interface.d.ts +160 -0
- package/dist/upload/request.d.ts +3 -0
- package/dist/upload/request.js +50 -0
- package/dist/upload/style/index.css +224 -0
- package/dist/upload/utils.d.ts +5 -0
- package/dist/upload/utils.js +19 -0
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +3 -0
- package/dist/virtual-list/VirtualList.js +4 -0
- package/dist/virtual-list/VirtualList.vue.d.ts +34 -0
- package/dist/virtual-list/VirtualList.vue_vue_type_script_setup_true_lang.js +275 -0
- package/dist/virtual-list/index.d.ts +70 -0
- package/dist/virtual-list/index.js +5 -0
- package/dist/virtual-list/interface.d.ts +68 -0
- package/dist/virtual-list/style/index.css +23 -0
- package/dist/watermark/Watermark.js +4 -0
- package/dist/watermark/Watermark.vue.d.ts +25 -0
- package/dist/watermark/Watermark.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/watermark/index.d.ts +45 -0
- package/dist/watermark/index.js +5 -0
- package/dist/watermark/interface.d.ts +38 -0
- package/dist/watermark/style/index.css +18 -0
- package/dist/watermark/utils.d.ts +21 -0
- package/dist/watermark/utils.js +133 -0
- package/global.d.ts +100 -0
- package/package.json +75 -3
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { clamp, doubleRaf, inBrowser, preventDefault } from "../_util/index.js";
|
|
2
|
+
import { useEventListener } from "../_util/hooks/useEventListener.js";
|
|
3
|
+
import { useTouch } from "../_util/hooks/useTouch.js";
|
|
4
|
+
import RenderNode_default from "../_util/RenderNode.js";
|
|
5
|
+
import { useConfig } from "../config-provider/context.js";
|
|
6
|
+
import "../style/index2.js";
|
|
7
|
+
import './style/index.css';/* empty css */
|
|
8
|
+
import { Comment, Fragment, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onDeactivated, onMounted, onUpdated, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch } from "vue";
|
|
9
|
+
// src/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var _hoisted_1 = ["aria-hidden"];
|
|
11
|
+
var _hoisted_2 = ["onClick"];
|
|
12
|
+
var Carousel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
13
|
+
name: "AmCarousel",
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
__name: "Carousel",
|
|
16
|
+
props: {
|
|
17
|
+
autoplay: {
|
|
18
|
+
type: [Boolean, Object],
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
autoplaySpeed: { default: 3e3 },
|
|
22
|
+
dots: {
|
|
23
|
+
type: [Boolean, Object],
|
|
24
|
+
default: true
|
|
25
|
+
},
|
|
26
|
+
dotPlacement: {},
|
|
27
|
+
dotPosition: {},
|
|
28
|
+
infinite: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: true
|
|
31
|
+
},
|
|
32
|
+
speed: { default: 300 },
|
|
33
|
+
initialSlide: { default: 0 },
|
|
34
|
+
vertical: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: void 0
|
|
37
|
+
},
|
|
38
|
+
draggable: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
allowTouchMove: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: true
|
|
45
|
+
},
|
|
46
|
+
effect: { default: "scrollx" },
|
|
47
|
+
slideSize: { default: 100 },
|
|
48
|
+
trackOffset: { default: 0 },
|
|
49
|
+
stuckAtBoundary: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: true
|
|
52
|
+
},
|
|
53
|
+
indicator: {
|
|
54
|
+
type: [
|
|
55
|
+
Object,
|
|
56
|
+
String,
|
|
57
|
+
Number,
|
|
58
|
+
Boolean,
|
|
59
|
+
null,
|
|
60
|
+
Array,
|
|
61
|
+
Function
|
|
62
|
+
],
|
|
63
|
+
default: void 0
|
|
64
|
+
},
|
|
65
|
+
stopPropagation: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: false
|
|
68
|
+
},
|
|
69
|
+
rootClass: {},
|
|
70
|
+
classes: {},
|
|
71
|
+
styles: {}
|
|
72
|
+
},
|
|
73
|
+
emits: ["beforeChange", "afterChange"],
|
|
74
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75
|
+
const props = __props;
|
|
76
|
+
const emit = __emit;
|
|
77
|
+
const slots = useSlots();
|
|
78
|
+
const config = useConfig();
|
|
79
|
+
const touch = useTouch();
|
|
80
|
+
const rootRef = ref();
|
|
81
|
+
const count = ref(0);
|
|
82
|
+
/** number of slides produced by the last render (synced into `count` after each patch) */
|
|
83
|
+
let renderedCount = 0;
|
|
84
|
+
const state = reactive({
|
|
85
|
+
/** size of the carousel along the sliding axis in px (only used to convert finger distance) */
|
|
86
|
+
rootSize: 0,
|
|
87
|
+
/** index of the active slide, `-1` and `count` are the transient positions of the infinite loop */
|
|
88
|
+
active: props.initialSlide,
|
|
89
|
+
/** track offset in percent of the carousel size */
|
|
90
|
+
offset: 0,
|
|
91
|
+
/** offsets (in percent of a slide) that move the first / last slide to the other end of the track */
|
|
92
|
+
firstOffset: 0,
|
|
93
|
+
lastOffset: 0,
|
|
94
|
+
/** transitions are disabled while following the finger or correcting the position */
|
|
95
|
+
swiping: false
|
|
96
|
+
});
|
|
97
|
+
const placement = computed(() => {
|
|
98
|
+
const value = props.dotPlacement ?? props.dotPosition ?? "bottom";
|
|
99
|
+
if (value === "left") return "start";
|
|
100
|
+
if (value === "right") return "end";
|
|
101
|
+
return value;
|
|
102
|
+
});
|
|
103
|
+
const isVertical = computed(() => props.vertical ?? (placement.value === "start" || placement.value === "end"));
|
|
104
|
+
const isFade = computed(() => props.effect === "fade");
|
|
105
|
+
const isRtl = computed(() => config.direction.value === "rtl" && !isVertical.value);
|
|
106
|
+
const loop = computed(() => props.infinite && count.value > 1);
|
|
107
|
+
const touchable = computed(() => props.draggable && props.allowTouchMove && count.value > 1);
|
|
108
|
+
/** offset of the track when the last slide touches the end of the carousel */
|
|
109
|
+
const minOffset = computed(() => 100 - count.value * props.slideSize);
|
|
110
|
+
const maxIndex = computed(() => {
|
|
111
|
+
if (loop.value || isFade.value || !props.stuckAtBoundary || props.slideSize >= 100) return Math.max(count.value - 1, 0);
|
|
112
|
+
return clamp(Math.ceil(Math.abs(Math.min(minOffset.value, 0)) / props.slideSize), 0, Math.max(count.value - 1, 0));
|
|
113
|
+
});
|
|
114
|
+
const current = computed(() => {
|
|
115
|
+
if (!count.value) return 0;
|
|
116
|
+
return clamp((state.active + count.value) % count.value, 0, count.value - 1);
|
|
117
|
+
});
|
|
118
|
+
const showDotProgress = computed(() => typeof props.autoplay === "object" && !!props.autoplay?.dotDuration);
|
|
119
|
+
function flatten(children, out = []) {
|
|
120
|
+
if (Array.isArray(children)) children.forEach((child) => flatten(child, out));
|
|
121
|
+
else if (typeof children === "string" || typeof children === "number") {
|
|
122
|
+
if (String(children).trim()) out.push(createTextVNode(String(children)));
|
|
123
|
+
} else if (children && typeof children === "object") {
|
|
124
|
+
const vnode = children;
|
|
125
|
+
if (vnode.type === Fragment) flatten(vnode.children, out);
|
|
126
|
+
else if (vnode.type === Text ? String(vnode.children).trim() : vnode.type !== Comment) out.push(vnode);
|
|
127
|
+
}
|
|
128
|
+
return out;
|
|
129
|
+
}
|
|
130
|
+
function renderSlides() {
|
|
131
|
+
const nodes = flatten(slots.default?.());
|
|
132
|
+
renderedCount = nodes.length;
|
|
133
|
+
return nodes;
|
|
134
|
+
}
|
|
135
|
+
function getTargetActive(pace) {
|
|
136
|
+
if (!pace) return state.active;
|
|
137
|
+
if (isFade.value) return loop.value ? (current.value + pace % count.value + count.value) % count.value : clamp(current.value + pace, 0, maxIndex.value);
|
|
138
|
+
if (loop.value) return clamp(state.active + pace, -1, count.value);
|
|
139
|
+
return clamp(state.active + pace, 0, maxIndex.value);
|
|
140
|
+
}
|
|
141
|
+
function getTargetOffset(active, drag = 0) {
|
|
142
|
+
let offset = props.trackOffset - active * props.slideSize + drag;
|
|
143
|
+
if (!loop.value) {
|
|
144
|
+
const lower = props.stuckAtBoundary ? Math.min(minOffset.value, 0) : props.trackOffset - (count.value - 1) * props.slideSize;
|
|
145
|
+
const upper = props.stuckAtBoundary ? 0 : props.trackOffset;
|
|
146
|
+
offset = clamp(offset, lower, upper);
|
|
147
|
+
}
|
|
148
|
+
return offset;
|
|
149
|
+
}
|
|
150
|
+
function move(pace = 0, drag = 0) {
|
|
151
|
+
const active = getTargetActive(pace);
|
|
152
|
+
state.active = active;
|
|
153
|
+
if (isFade.value || count.value <= 1) {
|
|
154
|
+
state.offset = 0;
|
|
155
|
+
state.firstOffset = 0;
|
|
156
|
+
state.lastOffset = 0;
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const offset = getTargetOffset(active, drag);
|
|
160
|
+
if (loop.value) {
|
|
161
|
+
state.firstOffset = offset < minOffset.value ? count.value * 100 : 0;
|
|
162
|
+
state.lastOffset = offset > 0 ? -count.value * 100 : 0;
|
|
163
|
+
} else {
|
|
164
|
+
state.firstOffset = 0;
|
|
165
|
+
state.lastOffset = 0;
|
|
166
|
+
}
|
|
167
|
+
state.offset = offset;
|
|
168
|
+
}
|
|
169
|
+
/** Brings a transient loop position (`-1` / `count`) back into range without animation. */
|
|
170
|
+
function correctPosition() {
|
|
171
|
+
if (isFade.value || !loop.value) return false;
|
|
172
|
+
if (state.active <= -1 || state.active >= count.value) {
|
|
173
|
+
state.swiping = true;
|
|
174
|
+
move(state.active <= -1 ? count.value : -count.value);
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
let afterChangeTimer;
|
|
180
|
+
function run(pace, animate) {
|
|
181
|
+
const prev = current.value;
|
|
182
|
+
const target = getTargetActive(pace);
|
|
183
|
+
const next = count.value ? (target + count.value) % count.value : 0;
|
|
184
|
+
const changed = next !== prev;
|
|
185
|
+
if (changed) emit("beforeChange", prev, next);
|
|
186
|
+
state.swiping = !animate;
|
|
187
|
+
move(pace);
|
|
188
|
+
if (!changed) return;
|
|
189
|
+
clearTimeout(afterChangeTimer);
|
|
190
|
+
if (animate && props.speed > 0) afterChangeTimer = setTimeout(() => emit("afterChange", current.value), props.speed);
|
|
191
|
+
else emit("afterChange", next);
|
|
192
|
+
}
|
|
193
|
+
function change(pace, animate = true) {
|
|
194
|
+
if (count.value <= 1) return;
|
|
195
|
+
if (correctPosition() && animate) doubleRaf(() => run(pace, true));
|
|
196
|
+
else run(pace, animate);
|
|
197
|
+
}
|
|
198
|
+
function goTo(slide, dontAnimate = false) {
|
|
199
|
+
if (count.value <= 1) return;
|
|
200
|
+
const corrected = correctPosition();
|
|
201
|
+
const pace = clamp(Math.round(slide), 0, count.value - 1) - current.value;
|
|
202
|
+
const start = () => run(pace, !dontAnimate);
|
|
203
|
+
if (corrected && !dontAnimate && pace) doubleRaf(start);
|
|
204
|
+
else start();
|
|
205
|
+
startAutoplay();
|
|
206
|
+
}
|
|
207
|
+
function next() {
|
|
208
|
+
if (loop.value || current.value < maxIndex.value) change(1);
|
|
209
|
+
startAutoplay();
|
|
210
|
+
}
|
|
211
|
+
function prev() {
|
|
212
|
+
if (loop.value || current.value > 0) change(-1);
|
|
213
|
+
startAutoplay();
|
|
214
|
+
}
|
|
215
|
+
let autoplayTimer;
|
|
216
|
+
let touching = false;
|
|
217
|
+
function stopAutoplay() {
|
|
218
|
+
clearTimeout(autoplayTimer);
|
|
219
|
+
autoplayTimer = void 0;
|
|
220
|
+
}
|
|
221
|
+
function startAutoplay() {
|
|
222
|
+
stopAutoplay();
|
|
223
|
+
if (!inBrowser || !props.autoplay || count.value <= 1 || touching || document.hidden) return;
|
|
224
|
+
autoplayTimer = setTimeout(() => {
|
|
225
|
+
if (!loop.value && current.value >= maxIndex.value) change(-current.value);
|
|
226
|
+
else change(1);
|
|
227
|
+
startAutoplay();
|
|
228
|
+
}, Math.max(props.autoplaySpeed, 0));
|
|
229
|
+
}
|
|
230
|
+
function resize() {
|
|
231
|
+
const root = rootRef.value;
|
|
232
|
+
if (!root) return;
|
|
233
|
+
state.rootSize = isVertical.value ? root.offsetHeight : root.offsetWidth;
|
|
234
|
+
}
|
|
235
|
+
function reset(active = current.value) {
|
|
236
|
+
count.value = renderedCount;
|
|
237
|
+
state.active = clamp(active, 0, Math.max(isFade.value ? count.value - 1 : maxIndex.value, 0));
|
|
238
|
+
state.swiping = true;
|
|
239
|
+
resize();
|
|
240
|
+
move();
|
|
241
|
+
startAutoplay();
|
|
242
|
+
}
|
|
243
|
+
let resizeObserver;
|
|
244
|
+
onMounted(() => {
|
|
245
|
+
reset(props.initialSlide);
|
|
246
|
+
if (typeof ResizeObserver !== "undefined" && rootRef.value) {
|
|
247
|
+
resizeObserver = new ResizeObserver(resize);
|
|
248
|
+
resizeObserver.observe(rootRef.value);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
onUpdated(() => {
|
|
252
|
+
if (renderedCount !== count.value) reset();
|
|
253
|
+
});
|
|
254
|
+
onActivated(() => {
|
|
255
|
+
resize();
|
|
256
|
+
startAutoplay();
|
|
257
|
+
});
|
|
258
|
+
onDeactivated(stopAutoplay);
|
|
259
|
+
onBeforeUnmount(() => {
|
|
260
|
+
stopAutoplay();
|
|
261
|
+
clearTimeout(afterChangeTimer);
|
|
262
|
+
resizeObserver?.disconnect();
|
|
263
|
+
});
|
|
264
|
+
useEventListener("resize", resize);
|
|
265
|
+
useEventListener("orientationchange", resize);
|
|
266
|
+
useEventListener("visibilitychange", () => document.hidden ? stopAutoplay() : startAutoplay(), { target: inBrowser ? document : void 0 });
|
|
267
|
+
watch(() => [props.autoplay, props.autoplaySpeed], startAutoplay, { deep: true });
|
|
268
|
+
watch(() => [
|
|
269
|
+
props.slideSize,
|
|
270
|
+
props.trackOffset,
|
|
271
|
+
props.infinite,
|
|
272
|
+
props.stuckAtBoundary,
|
|
273
|
+
props.effect,
|
|
274
|
+
isVertical.value
|
|
275
|
+
], () => reset());
|
|
276
|
+
let touchStartTime = 0;
|
|
277
|
+
let dragging = false;
|
|
278
|
+
const delta = computed(() => isVertical.value ? touch.deltaY.value : touch.deltaX.value * (isRtl.value ? -1 : 1));
|
|
279
|
+
const isCorrectDirection = () => isVertical.value ? touch.isVertical() : touch.isHorizontal();
|
|
280
|
+
function onTouchStart(event) {
|
|
281
|
+
if (!touchable.value) return;
|
|
282
|
+
touch.start(event);
|
|
283
|
+
touchStartTime = Date.now();
|
|
284
|
+
touching = true;
|
|
285
|
+
dragging = true;
|
|
286
|
+
stopAutoplay();
|
|
287
|
+
resize();
|
|
288
|
+
if (!isFade.value) {
|
|
289
|
+
correctPosition();
|
|
290
|
+
state.swiping = true;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function onTouchMove(event) {
|
|
294
|
+
if (!touchable.value || !dragging) return;
|
|
295
|
+
touch.move(event);
|
|
296
|
+
if (!isCorrectDirection()) return;
|
|
297
|
+
if (!(!loop.value && (current.value === 0 && delta.value > 0 || current.value >= maxIndex.value && delta.value < 0))) preventDefault(event, props.stopPropagation);
|
|
298
|
+
if (!isFade.value && state.rootSize) {
|
|
299
|
+
const max = loop.value ? props.slideSize : Number.POSITIVE_INFINITY;
|
|
300
|
+
move(0, clamp(delta.value / state.rootSize * 100, -max, max));
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function onTouchEnd() {
|
|
304
|
+
if (!dragging) return;
|
|
305
|
+
dragging = false;
|
|
306
|
+
touching = false;
|
|
307
|
+
const distance = delta.value;
|
|
308
|
+
const size = state.rootSize * props.slideSize / 100;
|
|
309
|
+
const velocity = distance / Math.max(Date.now() - touchStartTime, 1);
|
|
310
|
+
if ((Math.abs(velocity) > .25 || size > 0 && Math.abs(distance) > size / 2) && isCorrectDirection() && distance) {
|
|
311
|
+
let pace = distance > 0 ? -1 : 1;
|
|
312
|
+
if (!loop.value && !isFade.value && size > 0) pace = -Math[distance > 0 ? "ceil" : "floor"](distance / size);
|
|
313
|
+
run(pace, true);
|
|
314
|
+
} else {
|
|
315
|
+
state.swiping = false;
|
|
316
|
+
move();
|
|
317
|
+
}
|
|
318
|
+
startAutoplay();
|
|
319
|
+
}
|
|
320
|
+
const sign = computed(() => isRtl.value ? -1 : 1);
|
|
321
|
+
const translate = (value) => isVertical.value ? `translate3d(0, ${value}%, 0)` : `translate3d(${value * sign.value}%, 0, 0)`;
|
|
322
|
+
const duration = computed(() => `${state.swiping ? 0 : props.speed}ms`);
|
|
323
|
+
const trackStyle = computed(() => [isFade.value ? void 0 : {
|
|
324
|
+
transform: translate(state.offset),
|
|
325
|
+
transitionDuration: duration.value
|
|
326
|
+
}, props.styles?.track]);
|
|
327
|
+
function slideStyle(index) {
|
|
328
|
+
const size = `${props.slideSize}%`;
|
|
329
|
+
if (isFade.value) return [{
|
|
330
|
+
opacity: index === current.value ? 1 : 0,
|
|
331
|
+
transitionDuration: duration.value,
|
|
332
|
+
zIndex: index === current.value ? 1 : 0
|
|
333
|
+
}, props.styles?.slide];
|
|
334
|
+
let offset = 0;
|
|
335
|
+
if (index === 0) offset = state.firstOffset;
|
|
336
|
+
else if (index === count.value - 1) offset = state.lastOffset;
|
|
337
|
+
return [
|
|
338
|
+
isVertical.value ? { height: size } : { width: size },
|
|
339
|
+
offset ? { transform: translate(offset) } : void 0,
|
|
340
|
+
props.styles?.slide
|
|
341
|
+
];
|
|
342
|
+
}
|
|
343
|
+
const classNames = computed(() => [
|
|
344
|
+
"am-carousel",
|
|
345
|
+
{
|
|
346
|
+
"am-carousel-vertical": isVertical.value,
|
|
347
|
+
"am-carousel-fade": isFade.value,
|
|
348
|
+
"am-carousel-rtl": isRtl.value
|
|
349
|
+
},
|
|
350
|
+
props.rootClass,
|
|
351
|
+
props.classes?.root
|
|
352
|
+
]);
|
|
353
|
+
const indicatorInfo = computed(() => ({
|
|
354
|
+
current: current.value,
|
|
355
|
+
total: count.value
|
|
356
|
+
}));
|
|
357
|
+
__expose({
|
|
358
|
+
goTo,
|
|
359
|
+
next,
|
|
360
|
+
prev,
|
|
361
|
+
resize
|
|
362
|
+
});
|
|
363
|
+
return (_ctx, _cache) => {
|
|
364
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
365
|
+
ref_key: "rootRef",
|
|
366
|
+
ref: rootRef
|
|
367
|
+
}, _ctx.$attrs, {
|
|
368
|
+
class: classNames.value,
|
|
369
|
+
style: __props.styles?.root,
|
|
370
|
+
onTouchstart: onTouchStart,
|
|
371
|
+
onTouchmove: onTouchMove,
|
|
372
|
+
onTouchend: onTouchEnd,
|
|
373
|
+
onTouchcancel: onTouchEnd
|
|
374
|
+
}), [createElementVNode("div", {
|
|
375
|
+
class: normalizeClass(["am-carousel-track", __props.classes?.track]),
|
|
376
|
+
style: normalizeStyle(trackStyle.value)
|
|
377
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(renderSlides(), (node, index) => {
|
|
378
|
+
return openBlock(), createElementBlock("div", {
|
|
379
|
+
key: node.key ?? index,
|
|
380
|
+
class: normalizeClass(["am-carousel-slide", [{ "am-carousel-slide-active": index === current.value }, __props.classes?.slide]]),
|
|
381
|
+
style: normalizeStyle(slideStyle(index)),
|
|
382
|
+
"aria-hidden": index !== current.value || void 0
|
|
383
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(node)))], 14, _hoisted_1);
|
|
384
|
+
}), 128))], 6), renderSlot(_ctx.$slots, "indicator", normalizeProps(guardReactiveProps(indicatorInfo.value)), () => [__props.indicator !== void 0 ? (openBlock(), createBlock(unref(RenderNode_default), {
|
|
385
|
+
key: 0,
|
|
386
|
+
node: __props.indicator,
|
|
387
|
+
params: indicatorInfo.value
|
|
388
|
+
}, null, 8, ["node", "params"])) : __props.dots && count.value > 1 ? (openBlock(), createElementBlock("ul", {
|
|
389
|
+
key: 1,
|
|
390
|
+
class: normalizeClass(["am-carousel-dots", [
|
|
391
|
+
`am-carousel-dots-${placement.value}`,
|
|
392
|
+
typeof __props.dots === "object" ? __props.dots.class : void 0,
|
|
393
|
+
__props.classes?.dots
|
|
394
|
+
]]),
|
|
395
|
+
style: normalizeStyle(__props.styles?.dots)
|
|
396
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(count.value, (index) => {
|
|
397
|
+
return openBlock(), createElementBlock("li", {
|
|
398
|
+
key: index,
|
|
399
|
+
class: normalizeClass(["am-carousel-dot", [{
|
|
400
|
+
"am-carousel-dot-active": index - 1 === current.value,
|
|
401
|
+
"am-carousel-dot-progress": showDotProgress.value && index - 1 === current.value
|
|
402
|
+
}, __props.classes?.dot]]),
|
|
403
|
+
style: normalizeStyle([showDotProgress.value ? { "--am-carousel-dot-duration": `${__props.autoplaySpeed}ms` } : void 0, __props.styles?.dot]),
|
|
404
|
+
onClick: ($event) => goTo(index - 1)
|
|
405
|
+
}, null, 14, _hoisted_2);
|
|
406
|
+
}), 128))], 6)) : createCommentVNode("", true)])], 16);
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
export { Carousel_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export type * from './interface';
|
|
2
|
+
declare const Carousel: import("../_util/withInstall").WithInstall<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./interface").CarouselProps> & Readonly<{
|
|
4
|
+
onBeforeChange?: ((current: number, next: number) => any) | undefined;
|
|
5
|
+
onAfterChange?: ((current: number) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
8
|
+
next: () => void;
|
|
9
|
+
prev: () => void;
|
|
10
|
+
resize: () => void;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
beforeChange: (current: number, next: number) => any;
|
|
13
|
+
afterChange: (current: number) => any;
|
|
14
|
+
}, import("vue").PublicProps, {
|
|
15
|
+
infinite: boolean;
|
|
16
|
+
vertical: boolean;
|
|
17
|
+
draggable: boolean;
|
|
18
|
+
indicator: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}> | import("vue").VNodeArrayChildren | ((ctx: import("./interface").CarouselIndicatorInfo) => import("vue").VNodeChild) | null;
|
|
21
|
+
autoplay: boolean | {
|
|
22
|
+
dotDuration?: boolean;
|
|
23
|
+
};
|
|
24
|
+
autoplaySpeed: number;
|
|
25
|
+
dots: boolean | {
|
|
26
|
+
class?: string;
|
|
27
|
+
};
|
|
28
|
+
speed: number;
|
|
29
|
+
initialSlide: number;
|
|
30
|
+
allowTouchMove: boolean;
|
|
31
|
+
effect: import("./interface").CarouselEffect;
|
|
32
|
+
slideSize: number;
|
|
33
|
+
trackOffset: number;
|
|
34
|
+
stuckAtBoundary: boolean;
|
|
35
|
+
stopPropagation: boolean;
|
|
36
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<import("./interface").CarouselProps> & Readonly<{
|
|
44
|
+
onBeforeChange?: ((current: number, next: number) => any) | undefined;
|
|
45
|
+
onAfterChange?: ((current: number) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
48
|
+
next: () => void;
|
|
49
|
+
prev: () => void;
|
|
50
|
+
resize: () => void;
|
|
51
|
+
}, {}, {}, {}, {
|
|
52
|
+
infinite: boolean;
|
|
53
|
+
vertical: boolean;
|
|
54
|
+
draggable: boolean;
|
|
55
|
+
indicator: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}> | import("vue").VNodeArrayChildren | ((ctx: import("./interface").CarouselIndicatorInfo) => import("vue").VNodeChild) | null;
|
|
58
|
+
autoplay: boolean | {
|
|
59
|
+
dotDuration?: boolean;
|
|
60
|
+
};
|
|
61
|
+
autoplaySpeed: number;
|
|
62
|
+
dots: boolean | {
|
|
63
|
+
class?: string;
|
|
64
|
+
};
|
|
65
|
+
speed: number;
|
|
66
|
+
initialSlide: number;
|
|
67
|
+
allowTouchMove: boolean;
|
|
68
|
+
effect: import("./interface").CarouselEffect;
|
|
69
|
+
slideSize: number;
|
|
70
|
+
trackOffset: number;
|
|
71
|
+
stuckAtBoundary: boolean;
|
|
72
|
+
stopPropagation: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
__isFragment?: never;
|
|
75
|
+
__isTeleport?: never;
|
|
76
|
+
__isSuspense?: never;
|
|
77
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./interface").CarouselProps> & Readonly<{
|
|
78
|
+
onBeforeChange?: ((current: number, next: number) => any) | undefined;
|
|
79
|
+
onAfterChange?: ((current: number) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
82
|
+
next: () => void;
|
|
83
|
+
prev: () => void;
|
|
84
|
+
resize: () => void;
|
|
85
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
beforeChange: (current: number, next: number) => any;
|
|
87
|
+
afterChange: (current: number) => any;
|
|
88
|
+
}, string, {
|
|
89
|
+
infinite: boolean;
|
|
90
|
+
vertical: boolean;
|
|
91
|
+
draggable: boolean;
|
|
92
|
+
indicator: string | number | boolean | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}> | import("vue").VNodeArrayChildren | ((ctx: import("./interface").CarouselIndicatorInfo) => import("vue").VNodeChild) | null;
|
|
95
|
+
autoplay: boolean | {
|
|
96
|
+
dotDuration?: boolean;
|
|
97
|
+
};
|
|
98
|
+
autoplaySpeed: number;
|
|
99
|
+
dots: boolean | {
|
|
100
|
+
class?: string;
|
|
101
|
+
};
|
|
102
|
+
speed: number;
|
|
103
|
+
initialSlide: number;
|
|
104
|
+
allowTouchMove: boolean;
|
|
105
|
+
effect: import("./interface").CarouselEffect;
|
|
106
|
+
slideSize: number;
|
|
107
|
+
trackOffset: number;
|
|
108
|
+
stuckAtBoundary: boolean;
|
|
109
|
+
stopPropagation: boolean;
|
|
110
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
111
|
+
$slots: import("./interface").CarouselSlots;
|
|
112
|
+
}), object>;
|
|
113
|
+
export default Carousel;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { RenderNodeFn } from '../_util/type';
|
|
3
|
+
export type CarouselEffect = 'scrollx' | 'fade';
|
|
4
|
+
export type CarouselDotPlacement = 'top' | 'bottom' | 'start' | 'end';
|
|
5
|
+
export interface CarouselIndicatorInfo {
|
|
6
|
+
/** index of the current slide */
|
|
7
|
+
current: number;
|
|
8
|
+
/** number of slides */
|
|
9
|
+
total: number;
|
|
10
|
+
}
|
|
11
|
+
export interface CarouselSemanticClassNames {
|
|
12
|
+
root?: string;
|
|
13
|
+
track?: string;
|
|
14
|
+
slide?: string;
|
|
15
|
+
dots?: string;
|
|
16
|
+
dot?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CarouselSemanticStyles {
|
|
19
|
+
root?: CSSProperties;
|
|
20
|
+
track?: CSSProperties;
|
|
21
|
+
slide?: CSSProperties;
|
|
22
|
+
dots?: CSSProperties;
|
|
23
|
+
dot?: CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
export interface CarouselProps {
|
|
26
|
+
/** Auto switch. `{ dotDuration: true }` also shows the progress on the active dot. */
|
|
27
|
+
autoplay?: boolean | {
|
|
28
|
+
dotDuration?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** Interval of autoplay in ms */
|
|
31
|
+
autoplaySpeed?: number;
|
|
32
|
+
/** Show the indicator dots. `{ class }` adds a class to the dots container. */
|
|
33
|
+
dots?: boolean | {
|
|
34
|
+
class?: string;
|
|
35
|
+
};
|
|
36
|
+
dotPlacement?: CarouselDotPlacement;
|
|
37
|
+
/** @deprecated use `dotPlacement` */
|
|
38
|
+
dotPosition?: CarouselDotPlacement | 'left' | 'right';
|
|
39
|
+
/** Seamless loop */
|
|
40
|
+
infinite?: boolean;
|
|
41
|
+
/** Duration of the switch animation in ms */
|
|
42
|
+
speed?: number;
|
|
43
|
+
initialSlide?: number;
|
|
44
|
+
/** Slide vertically. Defaults to `true` when `dotPlacement` is `start` / `end` (same as PC). */
|
|
45
|
+
vertical?: boolean;
|
|
46
|
+
/** Follow the finger and switch by swiping */
|
|
47
|
+
draggable?: boolean;
|
|
48
|
+
/** Temporarily enable / disable the touch gesture (e.g. while an inner element handles it) */
|
|
49
|
+
allowTouchMove?: boolean;
|
|
50
|
+
effect?: CarouselEffect;
|
|
51
|
+
/** Size of one slide in percent of the carousel (use < 100 for peeking cards) */
|
|
52
|
+
slideSize?: number;
|
|
53
|
+
/** Offset of the track in percent of the carousel */
|
|
54
|
+
trackOffset?: number;
|
|
55
|
+
/** Without `infinite`: keep the first / last slide attached to the edge instead of applying `trackOffset` */
|
|
56
|
+
stuckAtBoundary?: boolean;
|
|
57
|
+
/** Custom indicator, replaces the dots. The same-named slot wins. */
|
|
58
|
+
indicator?: RenderNodeFn<CarouselIndicatorInfo>;
|
|
59
|
+
/** Stop the propagation of touch events handled by the carousel (nested carousels) */
|
|
60
|
+
stopPropagation?: boolean;
|
|
61
|
+
rootClass?: string;
|
|
62
|
+
classes?: CarouselSemanticClassNames;
|
|
63
|
+
styles?: CarouselSemanticStyles;
|
|
64
|
+
}
|
|
65
|
+
export interface CarouselEmits {
|
|
66
|
+
beforeChange: [current: number, next: number];
|
|
67
|
+
afterChange: [current: number];
|
|
68
|
+
}
|
|
69
|
+
export interface CarouselSlots {
|
|
70
|
+
/** every direct child is a slide */
|
|
71
|
+
default?: () => any;
|
|
72
|
+
indicator?: (info: CarouselIndicatorInfo) => any;
|
|
73
|
+
}
|
|
74
|
+
export interface CarouselRef {
|
|
75
|
+
goTo: (slide: number, dontAnimate?: boolean) => void;
|
|
76
|
+
next: () => void;
|
|
77
|
+
prev: () => void;
|
|
78
|
+
/** re-measure the carousel (it is done automatically on resize) */
|
|
79
|
+
resize: () => void;
|
|
80
|
+
}
|