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,85 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent } from "vue";
|
|
3
|
+
import { addUnit, numericProp, unknownProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
+
import { useCustomFieldValue } from "@zartui/use";
|
|
5
|
+
import { Loading } from "../loading/index.mjs";
|
|
6
|
+
const [name, bem] = createNamespace("switch");
|
|
7
|
+
const switchProps = {
|
|
8
|
+
size: numericProp,
|
|
9
|
+
loading: Boolean,
|
|
10
|
+
disabled: Boolean,
|
|
11
|
+
modelValue: unknownProp,
|
|
12
|
+
activeColor: String,
|
|
13
|
+
inactiveColor: String,
|
|
14
|
+
activeValue: {
|
|
15
|
+
type: unknownProp,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
inactiveValue: {
|
|
19
|
+
type: unknownProp,
|
|
20
|
+
default: false
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var stdin_default = defineComponent({
|
|
24
|
+
name,
|
|
25
|
+
props: switchProps,
|
|
26
|
+
emits: ["change", "update:modelValue"],
|
|
27
|
+
setup(props, {
|
|
28
|
+
emit,
|
|
29
|
+
slots
|
|
30
|
+
}) {
|
|
31
|
+
const isChecked = () => props.modelValue === props.activeValue;
|
|
32
|
+
const onClick = () => {
|
|
33
|
+
if (!props.disabled && !props.loading) {
|
|
34
|
+
const newValue = isChecked() ? props.inactiveValue : props.activeValue;
|
|
35
|
+
emit("update:modelValue", newValue);
|
|
36
|
+
emit("change", newValue);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const renderLoading = () => {
|
|
40
|
+
if (props.loading) {
|
|
41
|
+
const color = isChecked() ? props.activeColor : props.inactiveColor;
|
|
42
|
+
return _createVNode(Loading, {
|
|
43
|
+
"class": bem("loading"),
|
|
44
|
+
"color": color
|
|
45
|
+
}, null);
|
|
46
|
+
}
|
|
47
|
+
if (slots.node) {
|
|
48
|
+
return slots.node();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
useCustomFieldValue(() => props.modelValue);
|
|
52
|
+
return () => {
|
|
53
|
+
var _a;
|
|
54
|
+
const {
|
|
55
|
+
size,
|
|
56
|
+
loading,
|
|
57
|
+
disabled,
|
|
58
|
+
activeColor,
|
|
59
|
+
inactiveColor
|
|
60
|
+
} = props;
|
|
61
|
+
const checked = isChecked();
|
|
62
|
+
const style = {
|
|
63
|
+
fontSize: addUnit(size),
|
|
64
|
+
backgroundColor: checked ? activeColor : inactiveColor
|
|
65
|
+
};
|
|
66
|
+
return _createVNode("div", {
|
|
67
|
+
"role": "switch",
|
|
68
|
+
"class": bem({
|
|
69
|
+
on: checked,
|
|
70
|
+
loading,
|
|
71
|
+
disabled
|
|
72
|
+
}),
|
|
73
|
+
"style": style,
|
|
74
|
+
"tabindex": disabled ? void 0 : 0,
|
|
75
|
+
"aria-checked": checked,
|
|
76
|
+
"onClick": onClick
|
|
77
|
+
}, [_createVNode("div", {
|
|
78
|
+
"class": bem("node")
|
|
79
|
+
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
stdin_default as default
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-background: var(--zt-white);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-background: rgba(120, 120, 128, .16);--zt-switch-on-background: var(--zt-primary-color);--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}.zt-theme-dark{--zt-switch-background: rgba(120, 120, 128, .32)}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration);box-shadow:var(--zt-switch-shadow)}.zt-switch__node{position:absolute;top:2px;left:2px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background:var(--zt-switch-node-background);border-radius:100%;box-shadow:var(--zt-switch-node-shadow);transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background)}.zt-switch--on .zt-switch__node{transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const Switch: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
3
|
+
loading: BooleanConstructor;
|
|
4
|
+
disabled: BooleanConstructor;
|
|
5
|
+
modelValue: import("vue").PropType<unknown>;
|
|
6
|
+
activeColor: StringConstructor;
|
|
7
|
+
inactiveColor: StringConstructor;
|
|
8
|
+
activeValue: {
|
|
9
|
+
type: import("vue").PropType<unknown>;
|
|
10
|
+
default: unknown;
|
|
11
|
+
};
|
|
12
|
+
inactiveValue: {
|
|
13
|
+
type: import("vue").PropType<unknown>;
|
|
14
|
+
default: unknown;
|
|
15
|
+
};
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
size: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
loading: BooleanConstructor;
|
|
19
|
+
disabled: BooleanConstructor;
|
|
20
|
+
modelValue: import("vue").PropType<unknown>;
|
|
21
|
+
activeColor: StringConstructor;
|
|
22
|
+
inactiveColor: StringConstructor;
|
|
23
|
+
activeValue: {
|
|
24
|
+
type: import("vue").PropType<unknown>;
|
|
25
|
+
default: unknown;
|
|
26
|
+
};
|
|
27
|
+
inactiveValue: {
|
|
28
|
+
type: import("vue").PropType<unknown>;
|
|
29
|
+
default: unknown;
|
|
30
|
+
};
|
|
31
|
+
}>> & {
|
|
32
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
loading: boolean;
|
|
37
|
+
activeValue: unknown;
|
|
38
|
+
inactiveValue: unknown;
|
|
39
|
+
}>>;
|
|
40
|
+
export default Switch;
|
|
41
|
+
export type { SwitchProps } from './Switch';
|
|
42
|
+
declare module 'vue' {
|
|
43
|
+
interface GlobalComponents {
|
|
44
|
+
ZtSwitch: typeof Switch;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/tab/Tab.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const tabProps: {
|
|
3
|
+
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
4
|
+
url: StringConstructor;
|
|
5
|
+
replace: BooleanConstructor;
|
|
6
|
+
} & {
|
|
7
|
+
dot: BooleanConstructor;
|
|
8
|
+
name: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
title: StringConstructor;
|
|
11
|
+
disabled: BooleanConstructor;
|
|
12
|
+
titleClass: PropType<unknown>;
|
|
13
|
+
titleStyle: PropType<string | CSSProperties>;
|
|
14
|
+
showZeroBadge: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare type TabProps = ExtractPropTypes<typeof tabProps>;
|
|
20
|
+
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
22
|
+
url: StringConstructor;
|
|
23
|
+
replace: BooleanConstructor;
|
|
24
|
+
} & {
|
|
25
|
+
dot: BooleanConstructor;
|
|
26
|
+
name: (NumberConstructor | StringConstructor)[];
|
|
27
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
28
|
+
title: StringConstructor;
|
|
29
|
+
disabled: BooleanConstructor;
|
|
30
|
+
titleClass: PropType<unknown>;
|
|
31
|
+
titleStyle: PropType<string | CSSProperties>;
|
|
32
|
+
showZeroBadge: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: true;
|
|
35
|
+
};
|
|
36
|
+
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
37
|
+
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
38
|
+
url: StringConstructor;
|
|
39
|
+
replace: BooleanConstructor;
|
|
40
|
+
} & {
|
|
41
|
+
dot: BooleanConstructor;
|
|
42
|
+
name: (NumberConstructor | StringConstructor)[];
|
|
43
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
44
|
+
title: StringConstructor;
|
|
45
|
+
disabled: BooleanConstructor;
|
|
46
|
+
titleClass: PropType<unknown>;
|
|
47
|
+
titleStyle: PropType<string | CSSProperties>;
|
|
48
|
+
showZeroBadge: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: true;
|
|
51
|
+
};
|
|
52
|
+
}>>, {
|
|
53
|
+
replace: boolean;
|
|
54
|
+
dot: boolean;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
showZeroBadge: boolean;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
package/es/tab/Tab.mjs
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { ref, watch, provide, computed, nextTick, defineComponent } from "vue";
|
|
3
|
+
import { extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
+
import { TABS_KEY } from "../tabs/Tabs.mjs";
|
|
5
|
+
import { useParent } from "@zartui/use";
|
|
6
|
+
import { useId } from "../composables/use-id.mjs";
|
|
7
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
|
8
|
+
import { routeProps } from "../composables/use-route.mjs";
|
|
9
|
+
import { TAB_STATUS_KEY } from "../composables/use-tab-status.mjs";
|
|
10
|
+
import { SwipeItem } from "../swipe-item/index.mjs";
|
|
11
|
+
const [name, bem] = createNamespace("tab");
|
|
12
|
+
const tabProps = extend({}, routeProps, {
|
|
13
|
+
dot: Boolean,
|
|
14
|
+
name: numericProp,
|
|
15
|
+
badge: numericProp,
|
|
16
|
+
title: String,
|
|
17
|
+
disabled: Boolean,
|
|
18
|
+
titleClass: unknownProp,
|
|
19
|
+
titleStyle: [String, Object],
|
|
20
|
+
showZeroBadge: truthProp
|
|
21
|
+
});
|
|
22
|
+
var stdin_default = defineComponent({
|
|
23
|
+
name,
|
|
24
|
+
props: tabProps,
|
|
25
|
+
setup(props, {
|
|
26
|
+
slots
|
|
27
|
+
}) {
|
|
28
|
+
const id = useId();
|
|
29
|
+
const inited = ref(false);
|
|
30
|
+
const {
|
|
31
|
+
parent,
|
|
32
|
+
index
|
|
33
|
+
} = useParent(TABS_KEY);
|
|
34
|
+
if (!parent) {
|
|
35
|
+
if (process.env.NODE_ENV !== "production") {
|
|
36
|
+
console.error("[Vant] <Tab> must be a child component of <Tabs>.");
|
|
37
|
+
}
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const getName = () => {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = props.name) != null ? _a : index.value;
|
|
43
|
+
};
|
|
44
|
+
const init = () => {
|
|
45
|
+
inited.value = true;
|
|
46
|
+
if (parent.props.lazyRender) {
|
|
47
|
+
nextTick(() => {
|
|
48
|
+
parent.onRendered(getName(), props.title);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const active = computed(() => {
|
|
53
|
+
const isActive = getName() === parent.currentName.value;
|
|
54
|
+
if (isActive && !inited.value) {
|
|
55
|
+
init();
|
|
56
|
+
}
|
|
57
|
+
return isActive;
|
|
58
|
+
});
|
|
59
|
+
watch(() => props.title, () => {
|
|
60
|
+
parent.setLine();
|
|
61
|
+
parent.scrollIntoView();
|
|
62
|
+
});
|
|
63
|
+
provide(TAB_STATUS_KEY, active);
|
|
64
|
+
return () => {
|
|
65
|
+
var _a;
|
|
66
|
+
const label = `${parent.id}-${index.value}`;
|
|
67
|
+
const {
|
|
68
|
+
animated,
|
|
69
|
+
swipeable,
|
|
70
|
+
scrollspy,
|
|
71
|
+
lazyRender
|
|
72
|
+
} = parent.props;
|
|
73
|
+
if (!slots.default && !animated) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const show = scrollspy || active.value;
|
|
77
|
+
if (animated || swipeable) {
|
|
78
|
+
return _createVNode(SwipeItem, {
|
|
79
|
+
"id": id,
|
|
80
|
+
"role": "tabpanel",
|
|
81
|
+
"class": bem("panel-wrapper", {
|
|
82
|
+
inactive: !active.value
|
|
83
|
+
}),
|
|
84
|
+
"tabindex": active.value ? 0 : -1,
|
|
85
|
+
"aria-hidden": !active.value,
|
|
86
|
+
"aria-labelledby": label
|
|
87
|
+
}, {
|
|
88
|
+
default: () => {
|
|
89
|
+
var _a2;
|
|
90
|
+
return [_createVNode("div", {
|
|
91
|
+
"class": bem("panel")
|
|
92
|
+
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)])];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const shouldRender = inited.value || scrollspy || !lazyRender;
|
|
97
|
+
const Content = shouldRender ? (_a = slots.default) == null ? void 0 : _a.call(slots) : null;
|
|
98
|
+
useExpose({
|
|
99
|
+
id
|
|
100
|
+
});
|
|
101
|
+
return _withDirectives(_createVNode("div", {
|
|
102
|
+
"id": id,
|
|
103
|
+
"role": "tabpanel",
|
|
104
|
+
"class": bem("panel"),
|
|
105
|
+
"tabindex": show ? 0 : -1,
|
|
106
|
+
"aria-labelledby": label
|
|
107
|
+
}, [Content]), [[_vShow, show]]);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
stdin_default as default
|
|
113
|
+
};
|
package/es/tab/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zt-tab__panel,.zt-tab__panel-wrapper{flex-shrink:0;box-sizing:border-box;width:100%}.zt-tab__panel-wrapper--inactive{height:0;overflow:visible}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
3
|
+
url: StringConstructor;
|
|
4
|
+
replace: BooleanConstructor;
|
|
5
|
+
} & {
|
|
6
|
+
dot: BooleanConstructor;
|
|
7
|
+
name: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
title: StringConstructor;
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
titleClass: import("vue").PropType<unknown>;
|
|
12
|
+
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
13
|
+
showZeroBadge: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: true;
|
|
16
|
+
};
|
|
17
|
+
}, (() => JSX.Element | undefined) | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
19
|
+
url: StringConstructor;
|
|
20
|
+
replace: BooleanConstructor;
|
|
21
|
+
} & {
|
|
22
|
+
dot: BooleanConstructor;
|
|
23
|
+
name: (NumberConstructor | StringConstructor)[];
|
|
24
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
title: StringConstructor;
|
|
26
|
+
disabled: BooleanConstructor;
|
|
27
|
+
titleClass: import("vue").PropType<unknown>;
|
|
28
|
+
titleStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
29
|
+
showZeroBadge: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: true;
|
|
32
|
+
};
|
|
33
|
+
}>>, {
|
|
34
|
+
replace: boolean;
|
|
35
|
+
dot: boolean;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
showZeroBadge: boolean;
|
|
38
|
+
}>>;
|
|
39
|
+
export default Tab;
|
|
40
|
+
export type { TabProps } from './Tab';
|
|
41
|
+
declare module 'vue' {
|
|
42
|
+
interface GlobalComponents {
|
|
43
|
+
ZtTab: typeof Tab;
|
|
44
|
+
}
|
|
45
|
+
}
|
package/es/tab/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { PropType, InjectionKey, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { Interceptor } from '../utils';
|
|
3
|
+
import type { TabsProvide, TabsType } from './types';
|
|
4
|
+
declare const tabsProps: {
|
|
5
|
+
type: {
|
|
6
|
+
type: PropType<TabsType>;
|
|
7
|
+
default: TabsType;
|
|
8
|
+
};
|
|
9
|
+
color: StringConstructor;
|
|
10
|
+
border: BooleanConstructor;
|
|
11
|
+
sticky: BooleanConstructor;
|
|
12
|
+
shrink: BooleanConstructor;
|
|
13
|
+
active: {
|
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
duration: {
|
|
18
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
animated: BooleanConstructor;
|
|
22
|
+
ellipsis: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: true;
|
|
25
|
+
};
|
|
26
|
+
swipeable: BooleanConstructor;
|
|
27
|
+
scrollspy: BooleanConstructor;
|
|
28
|
+
offsetTop: {
|
|
29
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
background: StringConstructor;
|
|
33
|
+
lazyRender: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: true;
|
|
36
|
+
};
|
|
37
|
+
lineWidth: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
lineHeight: (NumberConstructor | StringConstructor)[];
|
|
39
|
+
beforeChange: PropType<Interceptor>;
|
|
40
|
+
swipeThreshold: {
|
|
41
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
titleActiveColor: StringConstructor;
|
|
45
|
+
titleInactiveColor: StringConstructor;
|
|
46
|
+
};
|
|
47
|
+
export declare type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
|
48
|
+
export declare const TABS_KEY: InjectionKey<TabsProvide>;
|
|
49
|
+
declare const _default: import("vue").DefineComponent<{
|
|
50
|
+
type: {
|
|
51
|
+
type: PropType<TabsType>;
|
|
52
|
+
default: TabsType;
|
|
53
|
+
};
|
|
54
|
+
color: StringConstructor;
|
|
55
|
+
border: BooleanConstructor;
|
|
56
|
+
sticky: BooleanConstructor;
|
|
57
|
+
shrink: BooleanConstructor;
|
|
58
|
+
active: {
|
|
59
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
duration: {
|
|
63
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
animated: BooleanConstructor;
|
|
67
|
+
ellipsis: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: true;
|
|
70
|
+
};
|
|
71
|
+
swipeable: BooleanConstructor;
|
|
72
|
+
scrollspy: BooleanConstructor;
|
|
73
|
+
offsetTop: {
|
|
74
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
background: StringConstructor;
|
|
78
|
+
lazyRender: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: true;
|
|
81
|
+
};
|
|
82
|
+
lineWidth: (NumberConstructor | StringConstructor)[];
|
|
83
|
+
lineHeight: (NumberConstructor | StringConstructor)[];
|
|
84
|
+
beforeChange: PropType<Interceptor>;
|
|
85
|
+
swipeThreshold: {
|
|
86
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
titleActiveColor: StringConstructor;
|
|
90
|
+
titleInactiveColor: StringConstructor;
|
|
91
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "change" | "rendered" | "clickTab" | "update:active")[], "scroll" | "change" | "rendered" | "clickTab" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
92
|
+
type: {
|
|
93
|
+
type: PropType<TabsType>;
|
|
94
|
+
default: TabsType;
|
|
95
|
+
};
|
|
96
|
+
color: StringConstructor;
|
|
97
|
+
border: BooleanConstructor;
|
|
98
|
+
sticky: BooleanConstructor;
|
|
99
|
+
shrink: BooleanConstructor;
|
|
100
|
+
active: {
|
|
101
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
duration: {
|
|
105
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
animated: BooleanConstructor;
|
|
109
|
+
ellipsis: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: true;
|
|
112
|
+
};
|
|
113
|
+
swipeable: BooleanConstructor;
|
|
114
|
+
scrollspy: BooleanConstructor;
|
|
115
|
+
offsetTop: {
|
|
116
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
119
|
+
background: StringConstructor;
|
|
120
|
+
lazyRender: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: true;
|
|
123
|
+
};
|
|
124
|
+
lineWidth: (NumberConstructor | StringConstructor)[];
|
|
125
|
+
lineHeight: (NumberConstructor | StringConstructor)[];
|
|
126
|
+
beforeChange: PropType<Interceptor>;
|
|
127
|
+
swipeThreshold: {
|
|
128
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
129
|
+
default: number;
|
|
130
|
+
};
|
|
131
|
+
titleActiveColor: StringConstructor;
|
|
132
|
+
titleInactiveColor: StringConstructor;
|
|
133
|
+
}>> & {
|
|
134
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
onRendered?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
"onUpdate:active"?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
type: TabsType;
|
|
141
|
+
ellipsis: boolean;
|
|
142
|
+
sticky: boolean;
|
|
143
|
+
border: boolean;
|
|
144
|
+
active: string | number;
|
|
145
|
+
duration: string | number;
|
|
146
|
+
lazyRender: boolean;
|
|
147
|
+
offsetTop: string | number;
|
|
148
|
+
shrink: boolean;
|
|
149
|
+
animated: boolean;
|
|
150
|
+
swipeable: boolean;
|
|
151
|
+
scrollspy: boolean;
|
|
152
|
+
swipeThreshold: string | number;
|
|
153
|
+
}>;
|
|
154
|
+
export default _default;
|