zartui 0.1.112 → 3.0.2
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/README.md +6 -2
- package/es/badge/Badge.d.ts +66 -0
- package/es/badge/Badge.mjs +95 -0
- package/es/badge/index.css +1 -0
- package/es/badge/index.d.ts +49 -0
- package/es/badge/index.mjs +8 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/style/index.mjs +2 -0
- package/es/button/Button.d.ts +154 -0
- package/es/button/Button.mjs +166 -0
- package/es/button/index.css +1 -0
- package/es/button/index.d.ts +113 -0
- package/es/button/index.mjs +8 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/style/index.mjs +5 -0
- package/es/button/types.d.ts +5 -0
- package/es/button/types.mjs +0 -0
- package/es/cell/Cell.d.ts +128 -0
- package/es/cell/Cell.mjs +132 -0
- package/es/cell/index.css +1 -0
- package/es/cell/index.d.ts +74 -0
- package/es/cell/index.mjs +8 -0
- package/es/cell/style/index.d.ts +1 -0
- package/es/cell/style/index.mjs +4 -0
- package/es/col/Col.d.ts +38 -0
- package/es/col/Col.mjs +63 -0
- package/es/col/index.css +1 -0
- package/es/col/index.d.ts +31 -0
- package/es/col/index.mjs +8 -0
- package/es/col/style/index.d.ts +1 -0
- package/es/col/style/index.mjs +3 -0
- package/es/composables/on-popup-reopen.d.ts +3 -0
- package/es/composables/on-popup-reopen.mjs +16 -0
- package/es/composables/use-expose.d.ts +1 -0
- package/es/composables/use-expose.mjs +11 -0
- package/es/composables/use-height.d.ts +2 -0
- package/es/composables/use-height.mjs +20 -0
- package/es/composables/use-id.d.ts +1 -0
- package/es/composables/use-id.mjs +13 -0
- package/es/composables/use-lazy-render.d.ts +2 -0
- package/es/composables/use-lazy-render.mjs +17 -0
- package/es/composables/use-lock-scroll.d.ts +2 -0
- package/es/composables/use-lock-scroll.mjs +56 -0
- package/es/composables/use-placeholder.d.ts +3 -0
- package/es/composables/use-placeholder.mjs +14 -0
- package/es/composables/use-refs.d.ts +2 -0
- package/es/composables/use-refs.mjs +20 -0
- package/es/composables/use-route.d.ts +13 -0
- package/es/composables/use-route.mjs +29 -0
- package/es/composables/use-tab-status.d.ts +3 -0
- package/es/composables/use-tab-status.mjs +7 -0
- package/es/composables/use-touch.d.ts +16 -0
- package/es/composables/use-touch.mjs +61 -0
- package/es/composables/use-visibility-change.d.ts +2 -0
- package/es/composables/use-visibility-change.mjs +30 -0
- package/es/config-provider/ConfigProvider.d.ts +47 -0
- package/es/config-provider/ConfigProvider.mjs +64 -0
- package/es/config-provider/index.d.ts +33 -0
- package/es/config-provider/index.mjs +8 -0
- package/es/config-provider/style/index.d.ts +1 -0
- package/es/config-provider/style/index.mjs +1 -0
- package/es/divider/Divider.d.ts +40 -0
- package/es/divider/Divider.mjs +31 -0
- package/es/divider/index.css +1 -0
- package/es/divider/index.d.ts +32 -0
- package/es/divider/index.mjs +8 -0
- package/es/divider/style/index.d.ts +1 -0
- package/es/divider/style/index.mjs +2 -0
- package/es/empty/Empty.d.ts +29 -0
- package/es/empty/Empty.mjs +58 -0
- package/es/empty/Images.d.ts +4 -0
- package/es/empty/Images.mjs +2104 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.d.ts +24 -0
- package/es/empty/index.mjs +8 -0
- package/es/empty/style/index.d.ts +1 -0
- package/es/empty/style/index.mjs +2 -0
- package/es/icon/Icon.d.ts +45 -0
- package/es/icon/Icon.mjs +59 -0
- package/es/icon/config.d.ts +41 -0
- package/es/icon/config.mjs +139 -0
- package/es/icon/index.css +1 -0
- package/es/icon/index.d.ts +35 -0
- package/es/icon/index.mjs +8 -0
- package/es/icon/style/index.d.ts +1 -0
- package/es/icon/style/index.mjs +3 -0
- package/es/index.d.ts +35 -0
- package/es/index.mjs +105 -0
- package/es/list/List.d.ts +74 -0
- package/es/list/List.mjs +147 -0
- package/es/list/index.css +1 -0
- package/es/list/index.d.ts +59 -0
- package/es/list/index.mjs +8 -0
- package/es/list/style/index.d.ts +1 -0
- package/es/list/style/index.mjs +4 -0
- package/es/list/types.d.ts +7 -0
- package/es/list/types.mjs +0 -0
- package/es/loading/Loading.d.ts +39 -0
- package/es/loading/Loading.mjs +114 -0
- package/es/loading/index.css +1 -0
- package/es/loading/index.d.ts +31 -0
- package/es/loading/index.mjs +8 -0
- package/es/loading/style/index.d.ts +1 -0
- package/es/loading/style/index.mjs +2 -0
- package/es/locale/index.d.ts +7 -0
- package/es/locale/index.mjs +24 -0
- package/es/locale/lang/en-US.d.ts +62 -0
- package/es/locale/lang/en-US.mjs +64 -0
- package/es/locale/lang/zh-CN.d.ts +62 -0
- package/es/locale/lang/zh-CN.mjs +64 -0
- package/es/locale/style/index.d.ts +1 -0
- package/es/locale/style/index.mjs +1 -0
- package/es/notice-bar/NoticeBar.d.ts +71 -0
- package/es/notice-bar/NoticeBar.mjs +165 -0
- package/es/notice-bar/index.css +1 -0
- package/es/notice-bar/index.d.ts +56 -0
- package/es/notice-bar/index.mjs +8 -0
- package/es/notice-bar/style/index.d.ts +1 -0
- package/es/notice-bar/style/index.mjs +4 -0
- package/es/notice-bar/types.d.ts +7 -0
- package/es/notice-bar/types.mjs +0 -0
- package/es/notify/Notify.d.ts +134 -0
- package/es/notify/Notify.mjs +44 -0
- package/es/notify/function-call.d.ts +6 -0
- package/es/notify/function-call.mjs +68 -0
- package/es/notify/index.css +1 -0
- package/es/notify/index.d.ts +99 -0
- package/es/notify/index.mjs +18 -0
- package/es/notify/style/index.d.ts +1 -0
- package/es/notify/style/index.mjs +6 -0
- package/es/notify/types.d.ts +17 -0
- package/es/notify/types.mjs +0 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +162 -0
- package/es/number-keyboard/NumberKeyboard.mjs +243 -0
- package/es/number-keyboard/NumberKeyboardKey.d.ts +24 -0
- package/es/number-keyboard/NumberKeyboardKey.mjs +89 -0
- package/es/number-keyboard/index.css +1 -0
- package/es/number-keyboard/index.d.ts +119 -0
- package/es/number-keyboard/index.mjs +8 -0
- package/es/number-keyboard/style/index.d.ts +1 -0
- package/es/number-keyboard/style/index.mjs +9 -0
- package/es/overlay/Overlay.d.ts +51 -0
- package/es/overlay/Overlay.mjs +47 -0
- package/es/overlay/index.css +1 -0
- package/es/overlay/index.d.ts +40 -0
- package/es/overlay/index.mjs +8 -0
- package/es/overlay/style/index.d.ts +1 -0
- package/es/overlay/style/index.mjs +2 -0
- package/es/password-input/PasswordInput.d.ts +63 -0
- package/es/password-input/PasswordInput.mjs +78 -0
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.d.ts +49 -0
- package/es/password-input/index.mjs +8 -0
- package/es/password-input/style/index.d.ts +1 -0
- package/es/password-input/style/index.mjs +2 -0
- package/es/popup/Popup.d.ts +165 -0
- package/es/popup/Popup.mjs +205 -0
- package/es/popup/index.css +1 -0
- package/es/popup/index.d.ts +123 -0
- package/es/popup/index.mjs +8 -0
- package/es/popup/shared.d.ts +30 -0
- package/es/popup/shared.mjs +22 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/style/index.mjs +5 -0
- package/es/popup/types.d.ts +8 -0
- package/es/popup/types.mjs +0 -0
- package/es/pull-refresh/PullRefresh.d.ts +75 -0
- package/es/pull-refresh/PullRefresh.mjs +191 -0
- package/es/pull-refresh/index.css +1 -0
- package/es/pull-refresh/index.d.ts +58 -0
- package/es/pull-refresh/index.mjs +8 -0
- package/es/pull-refresh/style/index.d.ts +1 -0
- package/es/pull-refresh/style/index.mjs +3 -0
- package/es/rate/Rate.d.ts +107 -0
- package/es/rate/Rate.mjs +217 -0
- package/es/rate/index.css +1 -0
- package/es/rate/index.d.ts +80 -0
- package/es/rate/index.mjs +8 -0
- package/es/rate/style/index.d.ts +1 -0
- package/es/rate/style/index.mjs +4 -0
- package/es/row/Row.d.ts +64 -0
- package/es/row/Row.mjs +91 -0
- package/es/row/index.css +1 -0
- package/es/row/index.d.ts +42 -0
- package/es/row/index.mjs +8 -0
- package/es/row/style/index.d.ts +1 -0
- package/es/row/style/index.mjs +2 -0
- package/es/stepper/Stepper.d.ts +181 -0
- package/es/stepper/Stepper.mjs +258 -0
- package/es/stepper/index.css +1 -0
- package/es/stepper/index.d.ts +132 -0
- package/es/stepper/index.mjs +8 -0
- package/es/stepper/style/index.d.ts +1 -0
- package/es/stepper/style/index.mjs +4 -0
- package/es/sticky/Sticky.d.ts +58 -0
- package/es/sticky/Sticky.mjs +119 -0
- package/es/sticky/index.css +1 -0
- package/es/sticky/index.d.ts +45 -0
- package/es/sticky/index.mjs +8 -0
- package/es/sticky/style/index.d.ts +1 -0
- package/es/sticky/style/index.mjs +2 -0
- package/es/style/animation.css +1 -0
- package/es/style/base.css +1 -0
- package/es/style/css-variables.css +1 -0
- package/es/style/mixins/clearfix.css +0 -0
- package/es/style/mixins/ellipsis.css +0 -0
- package/es/style/mixins/hairline.css +0 -0
- package/es/style/normalize.css +1 -0
- package/es/swipe/Swipe.d.ts +121 -0
- package/es/swipe/Swipe.mjs +353 -0
- package/es/swipe/index.css +1 -0
- package/es/swipe/index.d.ts +90 -0
- package/es/swipe/index.mjs +8 -0
- package/es/swipe/style/index.d.ts +1 -0
- package/es/swipe/style/index.mjs +2 -0
- package/es/swipe/types.d.ts +31 -0
- package/es/swipe/types.mjs +0 -0
- package/es/swipe-item/SwipeItem.d.ts +2 -0
- package/es/swipe-item/SwipeItem.mjs +82 -0
- package/es/swipe-item/index.css +1 -0
- package/es/swipe-item/index.d.ts +7 -0
- package/es/swipe-item/index.mjs +8 -0
- package/es/swipe-item/style/index.d.ts +1 -0
- package/es/swipe-item/style/index.mjs +3 -0
- package/es/switch/Switch.d.ts +58 -0
- package/es/switch/Switch.mjs +85 -0
- package/es/switch/index.css +1 -0
- package/es/switch/index.d.ts +46 -0
- package/es/switch/index.mjs +8 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/style/index.mjs +3 -0
- package/es/tab/Tab.d.ts +58 -0
- package/es/tab/Tab.mjs +113 -0
- package/es/tab/index.css +1 -0
- package/es/tab/index.d.ts +45 -0
- package/es/tab/index.mjs +8 -0
- package/es/tab/style/index.d.ts +1 -0
- package/es/tab/style/index.mjs +7 -0
- package/es/tabs/Tabs.d.ts +154 -0
- package/es/tabs/Tabs.mjs +352 -0
- package/es/tabs/TabsContent.d.ts +43 -0
- package/es/tabs/TabsContent.mjs +64 -0
- package/es/tabs/TabsTitle.d.ts +45 -0
- package/es/tabs/TabsTitle.mjs +90 -0
- package/es/tabs/index.css +1 -0
- package/es/tabs/index.d.ts +114 -0
- package/es/tabs/index.mjs +8 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/tabs/style/index.mjs +5 -0
- package/es/tabs/types.d.ts +23 -0
- package/es/tabs/types.mjs +0 -0
- package/es/tabs/utils.d.ts +3 -0
- package/es/tabs/utils.mjs +37 -0
- package/es/toast/Toast.d.ts +112 -0
- package/es/toast/Toast.mjs +119 -0
- package/es/toast/function-call.d.ts +10 -0
- package/es/toast/function-call.mjs +142 -0
- package/es/toast/index.css +1 -0
- package/es/toast/index.d.ts +79 -0
- package/es/toast/index.mjs +26 -0
- package/es/toast/lock-click.d.ts +1 -0
- package/es/toast/lock-click.mjs +17 -0
- package/es/toast/style/index.d.ts +1 -0
- package/es/toast/style/index.mjs +7 -0
- package/es/toast/types.d.ts +36 -0
- package/es/toast/types.mjs +0 -0
- package/es/utils/basic.d.ts +18 -0
- package/es/utils/basic.mjs +32 -0
- package/es/utils/constant.d.ts +8 -0
- package/es/utils/constant.mjs +18 -0
- package/es/utils/create.d.ts +17 -0
- package/es/utils/create.mjs +50 -0
- package/es/utils/deep-assign.d.ts +3 -0
- package/es/utils/deep-assign.mjs +22 -0
- package/es/utils/deep-clone.d.ts +1 -0
- package/es/utils/deep-clone.mjs +20 -0
- package/es/utils/dom.d.ts +12 -0
- package/es/utils/dom.mjs +67 -0
- package/es/utils/format.d.ts +13 -0
- package/es/utils/format.mjs +120 -0
- package/es/utils/index.d.ts +9 -0
- package/es/utils/index.mjs +9 -0
- package/es/utils/interceptor.d.ts +6 -0
- package/es/utils/interceptor.mjs +29 -0
- package/es/utils/mount-component.d.ts +14 -0
- package/es/utils/mount-component.mjs +39 -0
- package/es/utils/props.d.ts +31 -0
- package/es/utils/props.mjs +36 -0
- package/es/utils/validate.d.ts +9 -0
- package/es/utils/validate.mjs +22 -0
- package/es/utils/with-install.d.ts +13 -0
- package/es/utils/with-install.mjs +12 -0
- package/es/vue-sfc-shim.d.ts +6 -0
- package/es/vue-tsx-shim.d.ts +16 -0
- package/lib/badge/Badge.d.ts +66 -0
- package/lib/badge/Badge.js +114 -0
- package/lib/badge/index.css +1 -0
- package/lib/badge/index.d.ts +49 -0
- package/lib/badge/index.js +33 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +2 -0
- package/lib/button/Button.d.ts +154 -0
- package/lib/button/Button.js +185 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.d.ts +113 -0
- package/lib/button/index.js +33 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/types.d.ts +5 -0
- package/lib/button/types.js +15 -0
- package/lib/cell/Cell.d.ts +128 -0
- package/lib/cell/Cell.js +151 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.d.ts +74 -0
- package/lib/cell/index.js +33 -0
- package/lib/cell/style/index.d.ts +1 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/col/Col.d.ts +38 -0
- package/lib/col/Col.js +82 -0
- package/lib/col/index.css +1 -0
- package/lib/col/index.d.ts +31 -0
- package/lib/col/index.js +33 -0
- package/lib/col/style/index.d.ts +1 -0
- package/lib/col/style/index.js +3 -0
- package/lib/composables/on-popup-reopen.d.ts +3 -0
- package/lib/composables/on-popup-reopen.js +35 -0
- package/lib/composables/use-expose.d.ts +1 -0
- package/lib/composables/use-expose.js +30 -0
- package/lib/composables/use-height.d.ts +2 -0
- package/lib/composables/use-height.js +39 -0
- package/lib/composables/use-id.d.ts +1 -0
- package/lib/composables/use-id.js +32 -0
- package/lib/composables/use-lazy-render.d.ts +2 -0
- package/lib/composables/use-lazy-render.js +36 -0
- package/lib/composables/use-lock-scroll.d.ts +2 -0
- package/lib/composables/use-lock-scroll.js +75 -0
- package/lib/composables/use-placeholder.d.ts +3 -0
- package/lib/composables/use-placeholder.js +33 -0
- package/lib/composables/use-refs.d.ts +2 -0
- package/lib/composables/use-refs.js +39 -0
- package/lib/composables/use-route.d.ts +13 -0
- package/lib/composables/use-route.js +46 -0
- package/lib/composables/use-tab-status.d.ts +3 -0
- package/lib/composables/use-tab-status.js +26 -0
- package/lib/composables/use-touch.d.ts +16 -0
- package/lib/composables/use-touch.js +80 -0
- package/lib/composables/use-visibility-change.d.ts +2 -0
- package/lib/composables/use-visibility-change.js +49 -0
- package/lib/config-provider/ConfigProvider.d.ts +47 -0
- package/lib/config-provider/ConfigProvider.js +83 -0
- package/lib/config-provider/index.d.ts +33 -0
- package/lib/config-provider/index.js +33 -0
- package/lib/config-provider/style/index.d.ts +1 -0
- package/lib/config-provider/style/index.js +1 -0
- package/lib/divider/Divider.d.ts +40 -0
- package/lib/divider/Divider.js +50 -0
- package/lib/divider/index.css +1 -0
- package/lib/divider/index.d.ts +32 -0
- package/lib/divider/index.js +33 -0
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/divider/style/index.js +2 -0
- package/lib/empty/Empty.d.ts +29 -0
- package/lib/empty/Empty.js +77 -0
- package/lib/empty/Images.d.ts +4 -0
- package/lib/empty/Images.js +2123 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.d.ts +24 -0
- package/lib/empty/index.js +33 -0
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/icon/Icon.d.ts +45 -0
- package/lib/icon/Icon.js +78 -0
- package/lib/icon/config.d.ts +41 -0
- package/lib/icon/config.js +158 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.d.ts +35 -0
- package/lib/icon/index.js +33 -0
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/index.css +1 -0
- package/lib/index.d.ts +35 -0
- package/lib/index.js +125 -0
- package/lib/list/List.d.ts +74 -0
- package/lib/list/List.js +166 -0
- package/lib/list/index.css +1 -0
- package/lib/list/index.d.ts +59 -0
- package/lib/list/index.js +33 -0
- package/lib/list/style/index.d.ts +1 -0
- package/lib/list/style/index.js +4 -0
- package/lib/list/types.d.ts +7 -0
- package/lib/list/types.js +15 -0
- package/lib/loading/Loading.d.ts +39 -0
- package/lib/loading/Loading.js +133 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.d.ts +31 -0
- package/lib/loading/index.js +33 -0
- package/lib/loading/style/index.d.ts +1 -0
- package/lib/loading/style/index.js +2 -0
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +49 -0
- package/lib/locale/lang/en-US.d.ts +62 -0
- package/lib/locale/lang/en-US.js +83 -0
- package/lib/locale/lang/zh-CN.d.ts +62 -0
- package/lib/locale/lang/zh-CN.js +83 -0
- package/lib/locale/style/index.d.ts +1 -0
- package/lib/locale/style/index.js +1 -0
- package/lib/notice-bar/NoticeBar.d.ts +71 -0
- package/lib/notice-bar/NoticeBar.js +190 -0
- package/lib/notice-bar/index.css +1 -0
- package/lib/notice-bar/index.d.ts +56 -0
- package/lib/notice-bar/index.js +33 -0
- package/lib/notice-bar/style/index.d.ts +1 -0
- package/lib/notice-bar/style/index.js +4 -0
- package/lib/notice-bar/types.d.ts +7 -0
- package/lib/notice-bar/types.js +15 -0
- package/lib/notify/Notify.d.ts +134 -0
- package/lib/notify/Notify.js +63 -0
- package/lib/notify/function-call.d.ts +6 -0
- package/lib/notify/function-call.js +93 -0
- package/lib/notify/index.css +1 -0
- package/lib/notify/index.d.ts +99 -0
- package/lib/notify/index.js +38 -0
- package/lib/notify/style/index.d.ts +1 -0
- package/lib/notify/style/index.js +6 -0
- package/lib/notify/types.d.ts +17 -0
- package/lib/notify/types.js +15 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +162 -0
- package/lib/number-keyboard/NumberKeyboard.js +268 -0
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +24 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +114 -0
- package/lib/number-keyboard/index.css +1 -0
- package/lib/number-keyboard/index.d.ts +119 -0
- package/lib/number-keyboard/index.js +33 -0
- package/lib/number-keyboard/style/index.d.ts +1 -0
- package/lib/number-keyboard/style/index.js +9 -0
- package/lib/overlay/Overlay.d.ts +51 -0
- package/lib/overlay/Overlay.js +66 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.d.ts +40 -0
- package/lib/overlay/index.js +33 -0
- package/lib/overlay/style/index.d.ts +1 -0
- package/lib/overlay/style/index.js +2 -0
- package/lib/password-input/PasswordInput.d.ts +63 -0
- package/lib/password-input/PasswordInput.js +97 -0
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.d.ts +49 -0
- package/lib/password-input/index.js +33 -0
- package/lib/password-input/style/index.d.ts +1 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/popup/Popup.d.ts +165 -0
- package/lib/popup/Popup.js +224 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.d.ts +123 -0
- package/lib/popup/index.js +33 -0
- package/lib/popup/shared.d.ts +30 -0
- package/lib/popup/shared.js +41 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/popup/style/index.js +5 -0
- package/lib/popup/types.d.ts +8 -0
- package/lib/popup/types.js +15 -0
- package/lib/pull-refresh/PullRefresh.d.ts +75 -0
- package/lib/pull-refresh/PullRefresh.js +210 -0
- package/lib/pull-refresh/index.css +1 -0
- package/lib/pull-refresh/index.d.ts +58 -0
- package/lib/pull-refresh/index.js +33 -0
- package/lib/pull-refresh/style/index.d.ts +1 -0
- package/lib/pull-refresh/style/index.js +3 -0
- package/lib/rate/Rate.d.ts +107 -0
- package/lib/rate/Rate.js +236 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.d.ts +80 -0
- package/lib/rate/index.js +33 -0
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/rate/style/index.js +4 -0
- package/lib/row/Row.d.ts +64 -0
- package/lib/row/Row.js +110 -0
- package/lib/row/index.css +1 -0
- package/lib/row/index.d.ts +42 -0
- package/lib/row/index.js +33 -0
- package/lib/row/style/index.d.ts +1 -0
- package/lib/row/style/index.js +2 -0
- package/lib/stepper/Stepper.d.ts +181 -0
- package/lib/stepper/Stepper.js +283 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.d.ts +132 -0
- package/lib/stepper/index.js +33 -0
- package/lib/stepper/style/index.d.ts +1 -0
- package/lib/stepper/style/index.js +4 -0
- package/lib/sticky/Sticky.d.ts +58 -0
- package/lib/sticky/Sticky.js +138 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.d.ts +45 -0
- package/lib/sticky/index.js +33 -0
- package/lib/sticky/style/index.d.ts +1 -0
- package/lib/sticky/style/index.js +2 -0
- package/lib/style/animation.css +1 -0
- package/lib/style/base.css +1 -0
- package/lib/style/css-variables.css +1 -0
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/normalize.css +1 -0
- package/lib/swipe/Swipe.d.ts +121 -0
- package/lib/swipe/Swipe.js +372 -0
- package/lib/swipe/index.css +1 -0
- package/lib/swipe/index.d.ts +90 -0
- package/lib/swipe/index.js +33 -0
- package/lib/swipe/style/index.d.ts +1 -0
- package/lib/swipe/style/index.js +2 -0
- package/lib/swipe/types.d.ts +31 -0
- package/lib/swipe/types.js +15 -0
- package/lib/swipe-item/SwipeItem.d.ts +2 -0
- package/lib/swipe-item/SwipeItem.js +101 -0
- package/lib/swipe-item/index.css +1 -0
- package/lib/swipe-item/index.d.ts +7 -0
- package/lib/swipe-item/index.js +33 -0
- package/lib/swipe-item/style/index.d.ts +1 -0
- package/lib/swipe-item/style/index.js +3 -0
- package/lib/switch/Switch.d.ts +58 -0
- package/lib/switch/Switch.js +104 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.d.ts +46 -0
- package/lib/switch/index.js +33 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.js +3 -0
- package/lib/tab/Tab.d.ts +58 -0
- package/lib/tab/Tab.js +132 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.d.ts +45 -0
- package/lib/tab/index.js +33 -0
- package/lib/tab/style/index.d.ts +1 -0
- package/lib/tab/style/index.js +7 -0
- package/lib/tabs/Tabs.d.ts +154 -0
- package/lib/tabs/Tabs.js +377 -0
- package/lib/tabs/TabsContent.d.ts +43 -0
- package/lib/tabs/TabsContent.js +83 -0
- package/lib/tabs/TabsTitle.d.ts +45 -0
- package/lib/tabs/TabsTitle.js +109 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.d.ts +114 -0
- package/lib/tabs/index.js +33 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tabs/style/index.js +5 -0
- package/lib/tabs/types.d.ts +23 -0
- package/lib/tabs/types.js +15 -0
- package/lib/tabs/utils.d.ts +3 -0
- package/lib/tabs/utils.js +56 -0
- package/lib/toast/Toast.d.ts +112 -0
- package/lib/toast/Toast.js +138 -0
- package/lib/toast/function-call.d.ts +10 -0
- package/lib/toast/function-call.js +167 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.d.ts +79 -0
- package/lib/toast/index.js +42 -0
- package/lib/toast/lock-click.d.ts +1 -0
- package/lib/toast/lock-click.js +36 -0
- package/lib/toast/style/index.d.ts +1 -0
- package/lib/toast/style/index.js +7 -0
- package/lib/toast/types.d.ts +36 -0
- package/lib/toast/types.js +15 -0
- package/lib/utils/basic.d.ts +18 -0
- package/lib/utils/basic.js +51 -0
- package/lib/utils/constant.d.ts +8 -0
- package/lib/utils/constant.js +37 -0
- package/lib/utils/create.d.ts +17 -0
- package/lib/utils/create.js +75 -0
- package/lib/utils/deep-assign.d.ts +3 -0
- package/lib/utils/deep-assign.js +41 -0
- package/lib/utils/deep-clone.d.ts +1 -0
- package/lib/utils/deep-clone.js +39 -0
- package/lib/utils/dom.d.ts +12 -0
- package/lib/utils/dom.js +86 -0
- package/lib/utils/format.d.ts +13 -0
- package/lib/utils/format.js +139 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/interceptor.d.ts +6 -0
- package/lib/utils/interceptor.js +48 -0
- package/lib/utils/mount-component.d.ts +14 -0
- package/lib/utils/mount-component.js +58 -0
- package/lib/utils/props.d.ts +31 -0
- package/lib/utils/props.js +55 -0
- package/lib/utils/validate.d.ts +9 -0
- package/lib/utils/validate.js +41 -0
- package/lib/utils/with-install.d.ts +13 -0
- package/lib/utils/with-install.js +31 -0
- package/lib/vue-sfc-shim.d.ts +6 -0
- package/lib/vue-tsx-shim.d.ts +16 -0
- package/lib/web-types.json +3197 -0
- package/lib/zartui.cjs.js +6740 -0
- package/lib/zartui.es.js +6740 -0
- package/lib/zartui.js +6974 -0
- package/lib/zartui.min.js +1 -0
- package/package.json +50 -61
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare type StickyPosition = 'top' | 'bottom';
|
|
3
|
+
declare const stickyProps: {
|
|
4
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
position: {
|
|
6
|
+
type: PropType<StickyPosition>;
|
|
7
|
+
default: StickyPosition;
|
|
8
|
+
};
|
|
9
|
+
container: PropType<Element>;
|
|
10
|
+
offsetTop: {
|
|
11
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
offsetBottom: {
|
|
15
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare type StickyProps = ExtractPropTypes<typeof stickyProps>;
|
|
20
|
+
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
22
|
+
position: {
|
|
23
|
+
type: PropType<StickyPosition>;
|
|
24
|
+
default: StickyPosition;
|
|
25
|
+
};
|
|
26
|
+
container: PropType<Element>;
|
|
27
|
+
offsetTop: {
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
offsetBottom: {
|
|
32
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
36
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
37
|
+
position: {
|
|
38
|
+
type: PropType<StickyPosition>;
|
|
39
|
+
default: StickyPosition;
|
|
40
|
+
};
|
|
41
|
+
container: PropType<Element>;
|
|
42
|
+
offsetTop: {
|
|
43
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
offsetBottom: {
|
|
47
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
}>> & {
|
|
51
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
position: StickyPosition;
|
|
55
|
+
offsetTop: string | number;
|
|
56
|
+
offsetBottom: string | number;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { ref, watch, computed, reactive, defineComponent } from "vue";
|
|
3
|
+
import { extend, isHidden, unitToPx, numericProp, getScrollTop, getZIndexStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
+
import { useRect, useEventListener, useScrollParent } from "@zartui/use";
|
|
5
|
+
import { useVisibilityChange } from "../composables/use-visibility-change.mjs";
|
|
6
|
+
const [name, bem] = createNamespace("sticky");
|
|
7
|
+
const stickyProps = {
|
|
8
|
+
zIndex: numericProp,
|
|
9
|
+
position: makeStringProp("top"),
|
|
10
|
+
container: Object,
|
|
11
|
+
offsetTop: makeNumericProp(0),
|
|
12
|
+
offsetBottom: makeNumericProp(0)
|
|
13
|
+
};
|
|
14
|
+
var stdin_default = defineComponent({
|
|
15
|
+
name,
|
|
16
|
+
props: stickyProps,
|
|
17
|
+
emits: ["scroll", "change"],
|
|
18
|
+
setup(props, {
|
|
19
|
+
emit,
|
|
20
|
+
slots
|
|
21
|
+
}) {
|
|
22
|
+
const root = ref();
|
|
23
|
+
const scrollParent = useScrollParent(root);
|
|
24
|
+
const state = reactive({
|
|
25
|
+
fixed: false,
|
|
26
|
+
width: 0,
|
|
27
|
+
height: 0,
|
|
28
|
+
transform: 0
|
|
29
|
+
});
|
|
30
|
+
const offset = computed(() => unitToPx(props.position === "top" ? props.offsetTop : props.offsetBottom));
|
|
31
|
+
const rootStyle = computed(() => {
|
|
32
|
+
const {
|
|
33
|
+
fixed,
|
|
34
|
+
height,
|
|
35
|
+
width
|
|
36
|
+
} = state;
|
|
37
|
+
if (fixed) {
|
|
38
|
+
return {
|
|
39
|
+
width: `${width}px`,
|
|
40
|
+
height: `${height}px`
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const stickyStyle = computed(() => {
|
|
45
|
+
if (!state.fixed) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const style = extend(getZIndexStyle(props.zIndex), {
|
|
49
|
+
width: `${state.width}px`,
|
|
50
|
+
height: `${state.height}px`,
|
|
51
|
+
[props.position]: `${offset.value}px`
|
|
52
|
+
});
|
|
53
|
+
if (state.transform) {
|
|
54
|
+
style.transform = `translate3d(0, ${state.transform}px, 0)`;
|
|
55
|
+
}
|
|
56
|
+
return style;
|
|
57
|
+
});
|
|
58
|
+
const emitScroll = (scrollTop) => emit("scroll", {
|
|
59
|
+
scrollTop,
|
|
60
|
+
isFixed: state.fixed
|
|
61
|
+
});
|
|
62
|
+
const onScroll = () => {
|
|
63
|
+
if (!root.value || isHidden(root)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const {
|
|
67
|
+
container,
|
|
68
|
+
position
|
|
69
|
+
} = props;
|
|
70
|
+
const rootRect = useRect(root);
|
|
71
|
+
const scrollTop = getScrollTop(window);
|
|
72
|
+
state.width = rootRect.width;
|
|
73
|
+
state.height = rootRect.height;
|
|
74
|
+
if (position === "top") {
|
|
75
|
+
if (container) {
|
|
76
|
+
const containerRect = useRect(container);
|
|
77
|
+
const difference = containerRect.bottom - offset.value - state.height;
|
|
78
|
+
state.fixed = offset.value > rootRect.top && containerRect.bottom > 0;
|
|
79
|
+
state.transform = difference < 0 ? difference : 0;
|
|
80
|
+
} else {
|
|
81
|
+
state.fixed = offset.value > rootRect.top;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
const {
|
|
85
|
+
clientHeight
|
|
86
|
+
} = document.documentElement;
|
|
87
|
+
if (container) {
|
|
88
|
+
const containerRect = useRect(container);
|
|
89
|
+
const difference = clientHeight - containerRect.top - offset.value - state.height;
|
|
90
|
+
state.fixed = clientHeight - offset.value < rootRect.bottom && clientHeight > containerRect.top;
|
|
91
|
+
state.transform = difference < 0 ? -difference : 0;
|
|
92
|
+
} else {
|
|
93
|
+
state.fixed = clientHeight - offset.value < rootRect.bottom;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
emitScroll(scrollTop);
|
|
97
|
+
};
|
|
98
|
+
watch(() => state.fixed, (value) => emit("change", value));
|
|
99
|
+
useEventListener("scroll", onScroll, {
|
|
100
|
+
target: scrollParent
|
|
101
|
+
});
|
|
102
|
+
useVisibilityChange(root, onScroll);
|
|
103
|
+
return () => {
|
|
104
|
+
var _a;
|
|
105
|
+
return _createVNode("div", {
|
|
106
|
+
"ref": root,
|
|
107
|
+
"style": rootStyle.value
|
|
108
|
+
}, [_createVNode("div", {
|
|
109
|
+
"class": bem({
|
|
110
|
+
fixed: state.fixed
|
|
111
|
+
}),
|
|
112
|
+
"style": stickyStyle.value
|
|
113
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
stdin_default as default
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-sticky-z-index: 99}.zt-sticky--fixed{position:fixed;z-index:var(--zt-sticky-z-index)}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const Sticky: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
3
|
+
position: {
|
|
4
|
+
type: import("vue").PropType<import("./Sticky").StickyPosition>;
|
|
5
|
+
default: import("./Sticky").StickyPosition;
|
|
6
|
+
};
|
|
7
|
+
container: import("vue").PropType<Element>;
|
|
8
|
+
offsetTop: {
|
|
9
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
offsetBottom: {
|
|
13
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change")[], "scroll" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
position: {
|
|
19
|
+
type: import("vue").PropType<import("./Sticky").StickyPosition>;
|
|
20
|
+
default: import("./Sticky").StickyPosition;
|
|
21
|
+
};
|
|
22
|
+
container: import("vue").PropType<Element>;
|
|
23
|
+
offsetTop: {
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
offsetBottom: {
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
}>> & {
|
|
32
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
position: import("./Sticky").StickyPosition;
|
|
36
|
+
offsetTop: string | number;
|
|
37
|
+
offsetBottom: string | number;
|
|
38
|
+
}>>;
|
|
39
|
+
export default Sticky;
|
|
40
|
+
export type { StickyProps, StickyPosition } from './Sticky';
|
|
41
|
+
declare module 'vue' {
|
|
42
|
+
interface GlobalComponents {
|
|
43
|
+
ZtSticky: typeof Sticky;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes zt-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes zt-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes zt-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes zt-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes zt-fade-in{0%{opacity:0}to{opacity:1}}@keyframes zt-fade-out{0%{opacity:1}to{opacity:0}}@keyframes zt-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.zt-fade-enter-active{animation:var(--zt-duration-base) zt-fade-in both var(--zt-ease-out)}.zt-fade-leave-active{animation:var(--zt-duration-base) zt-fade-out both var(--zt-ease-in)}.zt-slide-up-enter-active{animation:zt-slide-up-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-up-leave-active{animation:zt-slide-up-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-down-enter-active{animation:zt-slide-down-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-down-leave-active{animation:zt-slide-down-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-left-enter-active{animation:zt-slide-left-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-left-leave-active{animation:zt-slide-left-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-right-enter-active{animation:zt-slide-right-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-right-leave-active{animation:zt-slide-right-leave var(--zt-duration-base) both var(--zt-ease-in)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-black: #000;--zt-white: #fff;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #2d4b73ff;--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--zt-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: #2d4b73;--zt-text-color-a4: rgba(45, 75, 115, .4);--zt-text-color-a6: rgba(45, 75, 115, .6);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-line-height-xs: 14px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-3);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: #f5f5f5;--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #000;--zt-background-2: #1c1c1e;--zt-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--zt-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=zt-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes zt-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes zt-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes zt-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes zt-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes zt-fade-in{0%{opacity:0}to{opacity:1}}@keyframes zt-fade-out{0%{opacity:1}to{opacity:0}}@keyframes zt-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.zt-fade-enter-active{animation:var(--zt-duration-base) zt-fade-in both var(--zt-ease-out)}.zt-fade-leave-active{animation:var(--zt-duration-base) zt-fade-out both var(--zt-ease-in)}.zt-slide-up-enter-active{animation:zt-slide-up-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-up-leave-active{animation:zt-slide-up-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-down-enter-active{animation:zt-slide-down-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-down-leave-active{animation:zt-slide-down-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-left-enter-active{animation:zt-slide-left-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-left-leave-active{animation:zt-slide-left-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-right-enter-active{animation:zt-slide-right-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-right-leave-active{animation:zt-slide-right-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-clearfix:after{display:table;clear:both;content:""}.zt-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zt-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.zt-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.zt-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-haptics-feedback{cursor:pointer}.zt-haptics-feedback:active{opacity:var(--zt-active-opacity)}[class*=zt-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-hairline,.zt-hairline--top,.zt-hairline--left,.zt-hairline--right,.zt-hairline--bottom,.zt-hairline--surround,.zt-hairline--top-bottom{position:relative}.zt-hairline--top:after{border-top-width:var(--zt-border-width)}.zt-hairline--left:after{border-left-width:var(--zt-border-width)}.zt-hairline--right:after{border-right-width:var(--zt-border-width)}.zt-hairline--bottom:after{border-bottom-width:var(--zt-border-width)}.zt-hairline--top-bottom:after,.zt-hairline-unset--top-bottom:after{border-width:var(--zt-border-width) 0}.zt-hairline--surround:after{border-width:var(--zt-border-width)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-black: #000;--zt-white: #fff;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #2d4b73ff;--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--zt-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: #2d4b73;--zt-text-color-a4: rgba(45, 75, 115, .4);--zt-text-color-a6: rgba(45, 75, 115, .6);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-line-height-xs: 14px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-3);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: #f5f5f5;--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #000;--zt-background-2: #1c1c1e;--zt-background-3: #37363b}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--zt-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=zt-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { ExtractPropTypes, InjectionKey } from 'vue';
|
|
2
|
+
import { SwipeProvide } from './types';
|
|
3
|
+
declare const swipeProps: {
|
|
4
|
+
loop: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: true;
|
|
7
|
+
};
|
|
8
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
vertical: BooleanConstructor;
|
|
11
|
+
autoplay: {
|
|
12
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
duration: {
|
|
16
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
touchable: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: true;
|
|
22
|
+
};
|
|
23
|
+
lazyRender: BooleanConstructor;
|
|
24
|
+
initialSwipe: {
|
|
25
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
indicatorColor: StringConstructor;
|
|
29
|
+
showIndicators: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: true;
|
|
32
|
+
};
|
|
33
|
+
stopPropagation: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare type SwipeProps = ExtractPropTypes<typeof swipeProps>;
|
|
39
|
+
export declare const SWIPE_KEY: InjectionKey<SwipeProvide>;
|
|
40
|
+
declare const _default: import("vue").DefineComponent<{
|
|
41
|
+
loop: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: true;
|
|
44
|
+
};
|
|
45
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
46
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
47
|
+
vertical: BooleanConstructor;
|
|
48
|
+
autoplay: {
|
|
49
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
duration: {
|
|
53
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
touchable: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
lazyRender: BooleanConstructor;
|
|
61
|
+
initialSwipe: {
|
|
62
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
indicatorColor: StringConstructor;
|
|
66
|
+
showIndicators: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: true;
|
|
69
|
+
};
|
|
70
|
+
stopPropagation: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: true;
|
|
73
|
+
};
|
|
74
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
75
|
+
loop: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: true;
|
|
78
|
+
};
|
|
79
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
80
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
81
|
+
vertical: BooleanConstructor;
|
|
82
|
+
autoplay: {
|
|
83
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
duration: {
|
|
87
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
touchable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: true;
|
|
93
|
+
};
|
|
94
|
+
lazyRender: BooleanConstructor;
|
|
95
|
+
initialSwipe: {
|
|
96
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
97
|
+
default: number;
|
|
98
|
+
};
|
|
99
|
+
indicatorColor: StringConstructor;
|
|
100
|
+
showIndicators: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: true;
|
|
103
|
+
};
|
|
104
|
+
stopPropagation: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: true;
|
|
107
|
+
};
|
|
108
|
+
}>> & {
|
|
109
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
autoplay: string | number;
|
|
112
|
+
loop: boolean;
|
|
113
|
+
vertical: boolean;
|
|
114
|
+
duration: string | number;
|
|
115
|
+
lazyRender: boolean;
|
|
116
|
+
touchable: boolean;
|
|
117
|
+
initialSwipe: string | number;
|
|
118
|
+
showIndicators: boolean;
|
|
119
|
+
stopPropagation: boolean;
|
|
120
|
+
}>;
|
|
121
|
+
export default _default;
|