zartui 0.1.113 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -1
- 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 -1
- 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/{style/var.css → 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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/{telemetry/index.css → 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 -1
- 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 -1
- 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/{telemetry/index.less → 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/{lib/style/var.css → 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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/{lib/telemetry/index.css → 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -0
- package/es/style/normalize.css +1 -1
- package/es/swipe/Swipe.d.ts +121 -0
- package/es/swipe/Swipe.mjs +353 -0
- package/es/swipe/index.css +1 -1
- 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/{lib/telemetry/index.less → 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- 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 -1
- package/lib/badge/index.d.ts +49 -0
- package/lib/badge/index.js +31 -74
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +2 -2
- package/lib/button/Button.d.ts +154 -0
- package/lib/button/Button.js +185 -0
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +113 -0
- package/lib/button/index.js +31 -201
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +5 -5
- 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 -1
- package/lib/cell/index.d.ts +74 -0
- package/lib/cell/index.js +33 -153
- package/lib/cell/style/index.d.ts +1 -0
- package/lib/cell/style/index.js +4 -4
- package/lib/col/Col.d.ts +38 -0
- package/lib/col/Col.js +82 -0
- package/lib/col/index.css +1 -1
- package/lib/col/index.d.ts +31 -0
- package/lib/col/index.js +31 -61
- package/lib/col/style/index.d.ts +1 -0
- package/lib/col/style/index.js +3 -2
- 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 -1
- package/lib/divider/index.d.ts +32 -0
- package/lib/divider/index.js +31 -55
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/divider/style/index.js +2 -2
- 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 -1
- package/lib/empty/index.d.ts +24 -0
- package/lib/empty/index.js +31 -117
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/empty/style/index.js +2 -2
- 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 -1
- package/lib/icon/index.d.ts +35 -0
- package/lib/icon/index.js +30 -84
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +35 -0
- package/lib/index.js +119 -332
- package/lib/list/List.d.ts +74 -0
- package/lib/list/List.js +166 -0
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +59 -0
- package/lib/list/index.js +31 -194
- package/lib/list/style/index.d.ts +1 -0
- package/lib/list/style/index.js +4 -4
- 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 -1
- package/lib/loading/index.d.ts +31 -0
- package/lib/loading/index.js +31 -164
- package/lib/loading/style/index.d.ts +1 -0
- package/lib/loading/style/index.js +2 -2
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +44 -33
- package/lib/locale/lang/en-US.d.ts +62 -0
- package/lib/locale/lang/en-US.js +64 -76
- package/lib/locale/lang/zh-CN.d.ts +62 -0
- package/lib/locale/lang/zh-CN.js +64 -109
- package/lib/locale/style/index.d.ts +1 -0
- package/lib/locale/style/index.js +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +71 -0
- package/lib/notice-bar/NoticeBar.js +190 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +56 -0
- package/lib/notice-bar/index.js +31 -295
- package/lib/notice-bar/style/index.d.ts +1 -0
- package/lib/notice-bar/style/index.js +4 -4
- 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 -1
- package/lib/number-keyboard/index.d.ts +119 -0
- package/lib/number-keyboard/index.js +31 -283
- package/lib/number-keyboard/style/index.d.ts +1 -0
- package/lib/number-keyboard/style/index.js +9 -3
- package/lib/overlay/Overlay.d.ts +51 -0
- package/lib/overlay/Overlay.js +66 -0
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +40 -0
- package/lib/overlay/index.js +31 -65
- package/lib/overlay/style/index.d.ts +1 -0
- package/lib/overlay/style/index.js +2 -2
- package/lib/password-input/PasswordInput.d.ts +63 -0
- package/lib/password-input/PasswordInput.js +97 -0
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +49 -0
- package/lib/password-input/index.js +31 -91
- package/lib/password-input/style/index.d.ts +1 -0
- package/lib/password-input/style/index.js +2 -2
- package/lib/popup/Popup.d.ts +165 -0
- package/lib/popup/Popup.js +224 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +123 -0
- package/lib/popup/index.js +31 -131
- 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 -5
- 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 -1
- package/lib/pull-refresh/index.d.ts +58 -0
- package/lib/pull-refresh/index.js +31 -235
- package/lib/pull-refresh/style/index.d.ts +1 -0
- package/lib/pull-refresh/style/index.js +3 -3
- package/lib/rate/Rate.d.ts +107 -0
- package/lib/rate/Rate.js +236 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +80 -0
- package/lib/rate/index.js +31 -238
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/rate/style/index.js +4 -4
- package/lib/row/Row.d.ts +64 -0
- package/lib/row/Row.js +110 -0
- package/lib/row/index.css +1 -1
- package/lib/row/index.d.ts +42 -0
- package/lib/row/index.js +31 -91
- package/lib/row/style/index.d.ts +1 -0
- package/lib/row/style/index.js +2 -2
- package/lib/stepper/Stepper.d.ts +181 -0
- package/lib/stepper/Stepper.js +283 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +132 -0
- package/lib/stepper/index.js +31 -365
- package/lib/stepper/style/index.d.ts +1 -0
- package/lib/stepper/style/index.js +4 -2
- package/lib/sticky/Sticky.d.ts +58 -0
- package/lib/sticky/Sticky.js +138 -0
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +45 -0
- package/lib/sticky/index.js +31 -348
- package/lib/sticky/style/index.d.ts +1 -0
- package/lib/sticky/style/index.js +2 -2
- package/lib/style/animation.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -0
- package/lib/style/normalize.css +1 -1
- package/lib/swipe/Swipe.d.ts +121 -0
- package/lib/swipe/Swipe.js +372 -0
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +90 -0
- package/lib/swipe/index.js +31 -475
- package/lib/swipe/style/index.d.ts +1 -0
- package/lib/swipe/style/index.js +2 -2
- 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 -1
- package/lib/swipe-item/index.d.ts +7 -0
- package/lib/swipe-item/index.js +31 -87
- package/lib/swipe-item/style/index.d.ts +1 -0
- package/lib/swipe-item/style/index.js +3 -2
- package/lib/switch/Switch.d.ts +58 -0
- package/lib/switch/Switch.js +104 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +46 -0
- package/lib/switch/index.js +31 -84
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.js +3 -3
- package/lib/tab/Tab.d.ts +58 -0
- package/lib/tab/Tab.js +132 -0
- package/lib/tab/index.css +1 -1
- package/lib/tab/index.d.ts +45 -0
- package/lib/tab/index.js +31 -112
- package/lib/tab/style/index.d.ts +1 -0
- package/lib/tab/style/index.js +7 -2
- 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 -1
- package/lib/tabs/index.d.ts +114 -0
- package/lib/tabs/index.js +31 -465
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tabs/style/index.js +5 -4
- 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 +37 -34
- package/lib/toast/Toast.d.ts +112 -0
- package/lib/toast/Toast.js +130 -175
- package/lib/toast/function-call.d.ts +10 -0
- package/lib/toast/function-call.js +167 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +79 -0
- package/lib/toast/index.js +39 -201
- package/lib/toast/lock-click.d.ts +1 -0
- package/lib/toast/lock-click.js +27 -12
- package/lib/toast/style/index.d.ts +1 -0
- package/lib/toast/style/index.js +7 -7
- 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 -26
- 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 +30 -19
- package/lib/utils/deep-clone.d.ts +1 -0
- package/lib/utils/deep-clone.js +29 -18
- 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 +24 -108
- package/lib/utils/interceptor.d.ts +6 -0
- package/lib/utils/interceptor.js +38 -18
- 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
- package/es/action-sheet/index.css +0 -1
- package/es/action-sheet/index.js +0 -185
- package/es/action-sheet/index.less +0 -132
- package/es/action-sheet/style/index.js +0 -7
- package/es/action-sheet/style/less.js +0 -7
- package/es/area/index.js +0 -321
- package/es/area/style/index.js +0 -7
- package/es/area/style/less.js +0 -7
- package/es/avatar/index.css +0 -1
- package/es/avatar/index.js +0 -102
- package/es/avatar/index.less +0 -40
- package/es/avatar/local.css +0 -1
- package/es/avatar/local.less +0 -1
- package/es/avatar/style/index.js +0 -2
- package/es/avatar/style/less.js +0 -2
- package/es/back-top/index.css +0 -1
- package/es/back-top/index.js +0 -206
- package/es/back-top/index.less +0 -21
- package/es/back-top/style/index.js +0 -2
- package/es/back-top/style/less.js +0 -2
- package/es/badge/index.js +0 -68
- package/es/badge/index.less +0 -38
- package/es/badge/style/index.js +0 -2
- package/es/badge/style/less.js +0 -2
- package/es/button/index.js +0 -184
- package/es/button/index.less +0 -206
- package/es/button/style/index.js +0 -5
- package/es/button/style/less.js +0 -5
- package/es/calendar/components/Header.js +0 -62
- package/es/calendar/components/Month.js +0 -339
- package/es/calendar/index.css +0 -1
- package/es/calendar/index.js +0 -542
- package/es/calendar/index.less +0 -251
- package/es/calendar/style/index.js +0 -9
- package/es/calendar/style/less.js +0 -9
- package/es/calendar/utils.js +0 -66
- package/es/cascader/index.css +0 -1
- package/es/cascader/index.js +0 -286
- package/es/cascader/index.less +0 -87
- package/es/cascader/style/index.js +0 -8
- package/es/cascader/style/less.js +0 -8
- package/es/cell/index.js +0 -137
- package/es/cell/index.less +0 -107
- package/es/cell/shared.js +0 -29
- package/es/cell/style/index.js +0 -4
- package/es/cell/style/less.js +0 -4
- package/es/cell-group/index.css +0 -1
- package/es/cell-group/index.js +0 -41
- package/es/cell-group/index.less +0 -22
- package/es/cell-group/style/index.js +0 -2
- package/es/cell-group/style/less.js +0 -2
- package/es/checkbox/index.css +0 -1
- package/es/checkbox/index.js +0 -80
- package/es/checkbox/index.less +0 -93
- package/es/checkbox/style/index.js +0 -4
- package/es/checkbox/style/less.js +0 -4
- package/es/checkbox-group/index.css +0 -1
- package/es/checkbox-group/index.js +0 -64
- package/es/checkbox-group/index.less +0 -8
- package/es/checkbox-group/style/index.js +0 -2
- package/es/checkbox-group/style/less.js +0 -2
- package/es/col/index.js +0 -55
- package/es/col/index.less +0 -20
- package/es/col/style/index.js +0 -2
- package/es/col/style/less.js +0 -2
- package/es/collapse/index.js +0 -32
- package/es/collapse/style/index.js +0 -1
- package/es/collapse/style/less.js +0 -1
- package/es/collapse-item/index.css +0 -1
- package/es/collapse-item/index.js +0 -211
- package/es/collapse-item/index.less +0 -87
- package/es/collapse-item/style/index.js +0 -5
- package/es/collapse-item/style/less.js +0 -5
- package/es/count-down/index.css +0 -1
- package/es/count-down/index.js +0 -163
- package/es/count-down/index.less +0 -8
- package/es/count-down/style/index.js +0 -2
- package/es/count-down/style/less.js +0 -2
- package/es/count-down/utils.js +0 -67
- package/es/datetime-picker/DatePicker.js +0 -315
- package/es/datetime-picker/TimePicker.js +0 -140
- package/es/datetime-picker/index.js +0 -29
- package/es/datetime-picker/shared.js +0 -162
- package/es/datetime-picker/style/index.js +0 -7
- package/es/datetime-picker/style/less.js +0 -7
- package/es/datetime-picker/utils.js +0 -29
- package/es/dialog/Dialog.js +0 -210
- package/es/dialog/index.css +0 -1
- package/es/dialog/index.js +0 -109
- package/es/dialog/index.less +0 -133
- package/es/dialog/style/index.js +0 -8
- package/es/dialog/style/less.js +0 -8
- package/es/divider/index.js +0 -45
- package/es/divider/index.less +0 -64
- package/es/divider/style/index.js +0 -2
- package/es/divider/style/less.js +0 -2
- package/es/dropdown-item/index.css +0 -1
- package/es/dropdown-item/index.js +0 -346
- package/es/dropdown-item/index.less +0 -84
- package/es/dropdown-item/style/index.js +0 -8
- package/es/dropdown-item/style/less.js +0 -8
- package/es/dropdown-menu/index.css +0 -1
- package/es/dropdown-menu/index.js +0 -139
- package/es/dropdown-menu/index.less +0 -85
- package/es/dropdown-menu/style/index.js +0 -4
- package/es/dropdown-menu/style/less.js +0 -4
- package/es/empty/Developing.js +0 -1643
- package/es/empty/Error.js +0 -484
- package/es/empty/NotFound.js +0 -645
- package/es/empty/NotRight.js +0 -395
- package/es/empty/Search.js +0 -336
- package/es/empty/index.js +0 -105
- package/es/empty/index.less +0 -40
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/less.js +0 -2
- package/es/field/ClearIcon.js +0 -23
- package/es/field/SearchIcon.js +0 -18
- package/es/field/index.css +0 -1
- package/es/field/index.js +0 -705
- package/es/field/index.less +0 -231
- package/es/field/style/index.js +0 -5
- package/es/field/style/less.js +0 -5
- package/es/fold-dialog/index.css +0 -1
- package/es/fold-dialog/index.js +0 -144
- package/es/fold-dialog/index.less +0 -26
- package/es/fold-dialog/style/index.js +0 -2
- package/es/fold-dialog/style/less.js +0 -2
- package/es/form/index.js +0 -200
- package/es/form/style/index.js +0 -1
- package/es/form/style/less.js +0 -1
- package/es/grid/index.css +0 -1
- package/es/grid/index.js +0 -50
- package/es/grid/index.less +0 -6
- package/es/grid/style/index.js +0 -2
- package/es/grid/style/less.js +0 -2
- package/es/grid-item/index.css +0 -1
- package/es/grid-item/index.js +0 -163
- package/es/grid-item/index.less +0 -79
- package/es/grid-item/style/index.js +0 -4
- package/es/grid-item/style/less.js +0 -4
- package/es/hierarchy-select/breadcrumb.js +0 -75
- package/es/hierarchy-select/hierarchySelect.js +0 -162
- package/es/hierarchy-select/index.css +0 -1
- package/es/hierarchy-select/index.js +0 -142
- package/es/hierarchy-select/index.less +0 -239
- package/es/hierarchy-select/markList.js +0 -242
- package/es/hierarchy-select/style/index.js +0 -8
- package/es/hierarchy-select/style/less.js +0 -8
- package/es/hierarchy-select/svg/SubIcon.js +0 -50
- package/es/icon/index.js +0 -74
- package/es/icon/index.less +0 -10
- package/es/icon/local.css +0 -1
- package/es/icon/local.less +0 -1
- package/es/icon/style/index.js +0 -3
- package/es/icon/style/less.js +0 -3
- package/es/image/index.css +0 -1
- package/es/image/index.js +0 -189
- package/es/image/index.less +0 -47
- package/es/image/style/index.js +0 -4
- package/es/image/style/less.js +0 -4
- package/es/image-preview/ImagePreview.js +0 -237
- package/es/image-preview/ImagePreviewItem.js +0 -242
- package/es/image-preview/index.css +0 -1
- package/es/image-preview/index.js +0 -87
- package/es/image-preview/index.less +0 -121
- package/es/image-preview/shared.js +0 -7
- package/es/image-preview/style/index.js +0 -10
- package/es/image-preview/style/less.js +0 -10
- package/es/index-anchor/index.css +0 -1
- package/es/index-anchor/index.js +0 -83
- package/es/index-anchor/index.less +0 -34
- package/es/index-anchor/style/index.js +0 -2
- package/es/index-anchor/style/less.js +0 -2
- package/es/index-bar/IndexIndicate.js +0 -41
- package/es/index-bar/index.css +0 -1
- package/es/index-bar/index.js +0 -256
- package/es/index-bar/index.less +0 -68
- package/es/index-bar/style/index.js +0 -2
- package/es/index-bar/style/less.js +0 -2
- package/es/index.js +0 -99
- package/es/info/index.css +0 -1
- package/es/info/index.js +0 -30
- package/es/info/index.less +0 -29
- package/es/info/style/index.js +0 -2
- package/es/info/style/less.js +0 -2
- package/es/lazyload/index.js +0 -2
- package/es/lazyload/style/index.js +0 -1
- package/es/lazyload/style/less.js +0 -1
- package/es/list/index.js +0 -182
- package/es/list/index.less +0 -17
- package/es/list/style/index.js +0 -4
- package/es/list/style/less.js +0 -4
- package/es/loading/index.js +0 -154
- package/es/loading/index.less +0 -117
- package/es/loading/style/index.js +0 -2
- package/es/loading/style/less.js +0 -2
- package/es/locale/index.js +0 -27
- package/es/locale/lang/de-DE-formal.js +0 -90
- package/es/locale/lang/de-DE.js +0 -90
- package/es/locale/lang/en-US.js +0 -90
- package/es/locale/lang/es-ES.js +0 -90
- package/es/locale/lang/fr-FR.js +0 -90
- package/es/locale/lang/ja-JP.js +0 -91
- package/es/locale/lang/nb-NO.js +0 -90
- package/es/locale/lang/ro-RO.js +0 -90
- package/es/locale/lang/th-TH.js +0 -91
- package/es/locale/lang/tr-TR.js +0 -90
- package/es/locale/lang/zh-CN.js +0 -123
- package/es/locale/lang/zh-HK.js +0 -91
- package/es/locale/lang/zh-TW.js +0 -91
- package/es/locale/style/index.js +0 -1
- package/es/locale/style/less.js +0 -1
- package/es/media-picker/image/DefaultAudioIcon.js +0 -133
- package/es/media-picker/image/DefaultFileIcon.js +0 -116
- package/es/media-picker/image/DefaultVideoIcon.js +0 -169
- package/es/media-picker/image/DeleteIcon.js +0 -41
- package/es/media-picker/image/PickFileIcon.js +0 -41
- package/es/media-picker/image/PickPhotoIcon.js +0 -41
- package/es/media-picker/image/TakeAudioIcon.js +0 -41
- package/es/media-picker/image/TakePhotoIcon.js +0 -41
- package/es/media-picker/image/TakeVideoIcon.js +0 -41
- package/es/media-picker/index.css +0 -1
- package/es/media-picker/index.js +0 -992
- package/es/media-picker/index.less +0 -148
- package/es/media-picker/media-util.js +0 -37
- package/es/media-picker/style/index.js +0 -12
- package/es/media-picker/style/less.js +0 -12
- package/es/media-picker/type.js +0 -24
- package/es/media-player/index.css +0 -1
- package/es/media-player/index.js +0 -149
- package/es/media-player/index.less +0 -14
- package/es/media-player/style/index.js +0 -9
- package/es/media-player/style/less.js +0 -9
- package/es/mixins/bind-event.js +0 -29
- package/es/mixins/checkbox.js +0 -166
- package/es/mixins/click-outside.js +0 -33
- package/es/mixins/close-on-popstate.js +0 -38
- package/es/mixins/field.js +0 -24
- package/es/mixins/popup/context.js +0 -18
- package/es/mixins/popup/index.js +0 -220
- package/es/mixins/popup/overlay.js +0 -77
- package/es/mixins/popup/type.js +0 -1
- package/es/mixins/portal.js +0 -48
- package/es/mixins/relation.js +0 -76
- package/es/mixins/slots.js +0 -23
- package/es/mixins/telemetry.js +0 -11
- package/es/mixins/touch.js +0 -59
- package/es/multiple-picker/MultiplePickerOptions.js +0 -167
- package/es/multiple-picker/index.css +0 -1
- package/es/multiple-picker/index.js +0 -234
- package/es/multiple-picker/index.less +0 -135
- package/es/multiple-picker/shared.js +0 -26
- package/es/multiple-picker/style/index.js +0 -7
- package/es/multiple-picker/style/less.js +0 -7
- package/es/nav-bar/index.css +0 -1
- package/es/nav-bar/index.js +0 -144
- package/es/nav-bar/index.less +0 -74
- package/es/nav-bar/style/index.js +0 -4
- package/es/nav-bar/style/less.js +0 -4
- package/es/notice-bar/CloseIcon.js +0 -34
- package/es/notice-bar/MenuIcon.js +0 -35
- package/es/notice-bar/NoticeIcon.js +0 -35
- package/es/notice-bar/OpenIcon.js +0 -37
- package/es/notice-bar/TipIcon.js +0 -35
- package/es/notice-bar/WarningIcon.js +0 -35
- package/es/notice-bar/index.js +0 -279
- package/es/notice-bar/index.less +0 -66
- package/es/notice-bar/style/index.js +0 -4
- package/es/notice-bar/style/less.js +0 -4
- package/es/number-keyboard/CollapseIcon.js +0 -16
- package/es/number-keyboard/DeleteIcon.js +0 -16
- package/es/number-keyboard/Key.js +0 -100
- package/es/number-keyboard/index.js +0 -272
- package/es/number-keyboard/index.less +0 -144
- package/es/number-keyboard/style/index.js +0 -3
- package/es/number-keyboard/style/less.js +0 -3
- package/es/overlay/index.js +0 -53
- package/es/overlay/index.less +0 -11
- package/es/overlay/style/index.js +0 -2
- package/es/overlay/style/less.js +0 -2
- package/es/password-input/index.js +0 -80
- package/es/password-input/index.less +0 -83
- package/es/password-input/style/index.js +0 -2
- package/es/password-input/style/less.js +0 -2
- package/es/pdf-viewer/index.css +0 -1
- package/es/pdf-viewer/index.js +0 -444
- package/es/pdf-viewer/index.less +0 -69
- package/es/pdf-viewer/style/index.js +0 -9
- package/es/pdf-viewer/style/less.js +0 -9
- package/es/picker/PickerColumn.js +0 -306
- package/es/picker/index.css +0 -1
- package/es/picker/index.js +0 -450
- package/es/picker/index.less +0 -155
- package/es/picker/shared.js +0 -34
- package/es/picker/style/index.js +0 -7
- package/es/picker/style/less.js +0 -7
- package/es/popover/index.css +0 -1
- package/es/popover/index.js +0 -211
- package/es/popover/index.less +0 -270
- package/es/popover/style/index.js +0 -6
- package/es/popover/style/less.js +0 -6
- package/es/popup/index.js +0 -122
- package/es/popup/index.less +0 -137
- package/es/popup/style/index.js +0 -5
- package/es/popup/style/less.js +0 -5
- package/es/pull-refresh/index.js +0 -223
- package/es/pull-refresh/index.less +0 -25
- package/es/pull-refresh/style/index.js +0 -3
- package/es/pull-refresh/style/less.js +0 -3
- package/es/radio/index.css +0 -1
- package/es/radio/index.js +0 -32
- package/es/radio/index.less +0 -104
- package/es/radio/style/index.js +0 -4
- package/es/radio/style/less.js +0 -4
- package/es/radio-group/index.css +0 -1
- package/es/radio-group/index.js +0 -32
- package/es/radio-group/index.less +0 -8
- package/es/radio-group/style/index.js +0 -2
- package/es/radio-group/style/less.js +0 -2
- package/es/rate/index.js +0 -227
- package/es/rate/index.less +0 -47
- package/es/rate/style/index.js +0 -4
- package/es/rate/style/less.js +0 -4
- package/es/row/index.js +0 -85
- package/es/row/index.less +0 -42
- package/es/row/style/index.js +0 -2
- package/es/row/style/less.js +0 -2
- package/es/search/index.css +0 -1
- package/es/search/index.js +0 -117
- package/es/search/index.less +0 -89
- package/es/search/style/index.js +0 -6
- package/es/search/style/less.js +0 -6
- package/es/signature/bezier.js +0 -82
- package/es/signature/force-landscape.js +0 -97
- package/es/signature/index.css +0 -1
- package/es/signature/index.js +0 -283
- package/es/signature/index.less +0 -50
- package/es/signature/point.js +0 -29
- package/es/signature/style/index.js +0 -9
- package/es/signature/style/less.js +0 -9
- package/es/signature/throttle.js +0 -55
- package/es/skeleton/index.css +0 -1
- package/es/skeleton/index.js +0 -132
- package/es/skeleton/index.less +0 -85
- package/es/skeleton/style/index.js +0 -2
- package/es/skeleton/style/less.js +0 -2
- package/es/slider/index.css +0 -1
- package/es/slider/index.js +0 -340
- package/es/slider/index.less +0 -108
- package/es/slider/style/index.js +0 -2
- package/es/slider/style/less.js +0 -2
- package/es/step/index.css +0 -1
- package/es/step/index.js +0 -123
- package/es/step/index.less +0 -103
- package/es/step/style/index.js +0 -4
- package/es/step/style/less.js +0 -4
- package/es/stepper/index.js +0 -353
- package/es/stepper/index.less +0 -124
- package/es/stepper/style/index.js +0 -2
- package/es/stepper/style/less.js +0 -2
- package/es/steps/index.css +0 -1
- package/es/steps/index.js +0 -36
- package/es/steps/index.less +0 -23
- package/es/steps/style/index.js +0 -2
- package/es/steps/style/less.js +0 -2
- package/es/sticky/index.js +0 -338
- package/es/sticky/index.less +0 -14
- package/es/sticky/style/index.js +0 -2
- package/es/sticky/style/less.js +0 -2
- package/es/style/animation.less +0 -139
- package/es/style/base.less +0 -11
- package/es/style/clearfix.css +0 -1
- package/es/style/clearfix.less +0 -5
- package/es/style/ellipsis.css +0 -1
- package/es/style/ellipsis.less +0 -13
- package/es/style/hairline.css +0 -1
- package/es/style/hairline.less +0 -47
- package/es/style/halfPxBorder.css +0 -1
- package/es/style/halfPxBorder.less +0 -78
- package/es/style/mixins/clearfix.less +0 -7
- package/es/style/mixins/ellipsis.less +0 -15
- package/es/style/mixins/hairline.less +0 -70
- package/es/style/normalize.less +0 -38
- package/es/style/reset.css +0 -1
- package/es/style/reset.less +0 -171
- package/es/style/var.less +0 -1039
- package/es/swipe/index.js +0 -463
- package/es/swipe/index.less +0 -72
- package/es/swipe/style/index.js +0 -2
- package/es/swipe/style/less.js +0 -2
- package/es/swipe-cell/index.css +0 -1
- package/es/swipe-cell/index.js +0 -220
- package/es/swipe-cell/index.less +0 -29
- package/es/swipe-cell/style/index.js +0 -2
- package/es/swipe-cell/style/less.js +0 -2
- package/es/swipe-item/index.js +0 -78
- package/es/swipe-item/index.less +0 -8
- package/es/swipe-item/style/index.js +0 -2
- package/es/swipe-item/style/less.js +0 -2
- package/es/switch/index.js +0 -74
- package/es/switch/index.less +0 -56
- package/es/switch/shared.js +0 -19
- package/es/switch/style/index.js +0 -3
- package/es/switch/style/less.js +0 -3
- package/es/switch-cell/index.css +0 -1
- package/es/switch-cell/index.js +0 -46
- package/es/switch-cell/index.less +0 -15
- package/es/switch-cell/style/index.js +0 -7
- package/es/switch-cell/style/less.js +0 -7
- package/es/tab/index.js +0 -102
- package/es/tab/index.less +0 -17
- package/es/tab/style/index.js +0 -2
- package/es/tab/style/less.js +0 -2
- package/es/tabbar/index.css +0 -1
- package/es/tabbar/index.js +0 -113
- package/es/tabbar/index.less +0 -22
- package/es/tabbar/style/index.js +0 -2
- package/es/tabbar/style/less.js +0 -2
- package/es/tabbar-item/index.css +0 -1
- package/es/tabbar-item/index.js +0 -116
- package/es/tabbar-item/index.less +0 -46
- package/es/tabbar-item/style/index.js +0 -4
- package/es/tabbar-item/style/less.js +0 -4
- package/es/table/index.css +0 -1
- package/es/table/index.js +0 -124
- package/es/table/index.less +0 -53
- package/es/table/style/index.js +0 -2
- package/es/table/style/less.js +0 -2
- package/es/tabs/Content.js +0 -78
- package/es/tabs/Title.js +0 -92
- package/es/tabs/index.js +0 -445
- package/es/tabs/index.less +0 -156
- package/es/tabs/style/index.js +0 -4
- package/es/tabs/style/less.js +0 -4
- package/es/tabs/utils.js +0 -43
- package/es/tag/index.css +0 -1
- package/es/tag/index.js +0 -79
- package/es/tag/index.less +0 -99
- package/es/tag/style/index.js +0 -4
- package/es/tag/style/less.js +0 -4
- package/es/telemetry/index.js +0 -53
- package/es/timeline/index.css +0 -1
- package/es/timeline/index.js +0 -210
- package/es/timeline/index.less +0 -130
- package/es/timeline/style/index.js +0 -4
- package/es/timeline/style/less.js +0 -4
- package/es/toast/Toast.js +0 -168
- package/es/toast/index.js +0 -193
- package/es/toast/index.less +0 -82
- package/es/toast/lock-click.js +0 -16
- package/es/toast/style/index.js +0 -7
- package/es/toast/style/less.js +0 -7
- package/es/toast/svg/SuccessIcon.js +0 -35
- package/es/toast/svg/WarnIcon.js +0 -34
- package/es/uploader/index.css +0 -1
- package/es/uploader/index.js +0 -559
- package/es/uploader/index.less +0 -163
- package/es/uploader/style/index.js +0 -11
- package/es/uploader/style/less.js +0 -11
- package/es/uploader/utils.js +0 -66
- package/es/utils/constant.js +0 -12
- package/es/utils/create/bem.js +0 -39
- package/es/utils/create/component.js +0 -62
- package/es/utils/create/i18n.js +0 -16
- package/es/utils/create/index.js +0 -7
- package/es/utils/deep-assign.js +0 -24
- package/es/utils/deep-clone.js +0 -22
- package/es/utils/device.js +0 -8
- package/es/utils/dom/event.js +0 -48
- package/es/utils/dom/node.js +0 -7
- package/es/utils/dom/raf.js +0 -36
- package/es/utils/dom/reset-scroll.js +0 -14
- package/es/utils/dom/scroll.js +0 -69
- package/es/utils/dom/style.js +0 -9
- package/es/utils/easings.js +0 -12
- package/es/utils/format/date-util.js +0 -690
- package/es/utils/format/number.js +0 -52
- package/es/utils/format/string.js +0 -19
- package/es/utils/format/unit.js +0 -59
- package/es/utils/functional.js +0 -56
- package/es/utils/getScroll.js +0 -27
- package/es/utils/index.js +0 -78
- package/es/utils/interceptor.js +0 -22
- package/es/utils/media/image-util.js +0 -138
- package/es/utils/raf.js +0 -58
- package/es/utils/router.js +0 -35
- package/es/utils/scrollTo.js +0 -42
- package/es/utils/types.js +0 -1
- package/es/utils/validate/date.js +0 -4
- package/es/utils/validate/email.js +0 -5
- package/es/utils/validate/mobile.js +0 -4
- package/es/utils/validate/number.js +0 -11
- package/es/utils/validate/system.js +0 -9
- package/es/utils/vnodes.js +0 -36
- package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
- package/lib/action-sheet/index.css +0 -1
- package/lib/action-sheet/index.js +0 -203
- package/lib/action-sheet/index.less +0 -132
- package/lib/action-sheet/style/index.js +0 -7
- package/lib/action-sheet/style/less.js +0 -7
- package/lib/area/index.js +0 -331
- package/lib/area/style/index.js +0 -7
- package/lib/area/style/less.js +0 -7
- package/lib/avatar/index.css +0 -1
- package/lib/avatar/index.js +0 -109
- package/lib/avatar/index.less +0 -40
- package/lib/avatar/local.css +0 -1
- package/lib/avatar/local.less +0 -1
- package/lib/avatar/style/index.js +0 -2
- package/lib/avatar/style/less.js +0 -2
- package/lib/b7cf90b4775181215df7.worker.js +0 -10
- package/lib/back-top/index.css +0 -1
- package/lib/back-top/index.js +0 -218
- package/lib/back-top/index.less +0 -21
- package/lib/back-top/style/index.js +0 -2
- package/lib/back-top/style/less.js +0 -2
- package/lib/badge/index.less +0 -38
- package/lib/badge/style/less.js +0 -2
- package/lib/button/index.less +0 -206
- package/lib/button/style/less.js +0 -5
- package/lib/calendar/components/Header.js +0 -70
- package/lib/calendar/components/Month.js +0 -349
- package/lib/calendar/index.css +0 -1
- package/lib/calendar/index.js +0 -560
- package/lib/calendar/index.less +0 -251
- package/lib/calendar/style/index.js +0 -9
- package/lib/calendar/style/less.js +0 -9
- package/lib/calendar/utils.js +0 -91
- package/lib/cascader/index.css +0 -1
- package/lib/cascader/index.js +0 -299
- package/lib/cascader/index.less +0 -87
- package/lib/cascader/style/index.js +0 -8
- package/lib/cascader/style/less.js +0 -8
- package/lib/cell/index.less +0 -107
- package/lib/cell/shared.js +0 -34
- package/lib/cell/style/less.js +0 -4
- package/lib/cell-group/index.css +0 -1
- package/lib/cell-group/index.js +0 -54
- package/lib/cell-group/index.less +0 -22
- package/lib/cell-group/style/index.js +0 -2
- package/lib/cell-group/style/less.js +0 -2
- package/lib/checkbox/index.css +0 -1
- package/lib/checkbox/index.js +0 -88
- package/lib/checkbox/index.less +0 -93
- package/lib/checkbox/style/index.js +0 -4
- package/lib/checkbox/style/less.js +0 -4
- package/lib/checkbox-group/index.css +0 -1
- package/lib/checkbox-group/index.js +0 -73
- package/lib/checkbox-group/index.less +0 -8
- package/lib/checkbox-group/style/index.js +0 -2
- package/lib/checkbox-group/style/less.js +0 -2
- package/lib/col/index.less +0 -20
- package/lib/col/style/less.js +0 -2
- package/lib/collapse/index.js +0 -40
- package/lib/collapse/style/index.js +0 -1
- package/lib/collapse/style/less.js +0 -1
- package/lib/collapse-item/index.css +0 -1
- package/lib/collapse-item/index.js +0 -226
- package/lib/collapse-item/index.less +0 -87
- package/lib/collapse-item/style/index.js +0 -5
- package/lib/collapse-item/style/less.js +0 -5
- package/lib/count-down/index.css +0 -1
- package/lib/count-down/index.js +0 -172
- package/lib/count-down/index.less +0 -8
- package/lib/count-down/style/index.js +0 -2
- package/lib/count-down/style/less.js +0 -2
- package/lib/count-down/utils.js +0 -78
- package/lib/datetime-picker/DatePicker.js +0 -331
- package/lib/datetime-picker/TimePicker.js +0 -153
- package/lib/datetime-picker/index.js +0 -41
- package/lib/datetime-picker/shared.js +0 -177
- package/lib/datetime-picker/style/index.js +0 -7
- package/lib/datetime-picker/style/less.js +0 -7
- package/lib/datetime-picker/utils.js +0 -39
- package/lib/dialog/Dialog.js +0 -223
- package/lib/dialog/index.css +0 -1
- package/lib/dialog/index.js +0 -121
- package/lib/dialog/index.less +0 -133
- package/lib/dialog/style/index.js +0 -8
- package/lib/dialog/style/less.js +0 -8
- package/lib/divider/index.less +0 -64
- package/lib/divider/style/less.js +0 -2
- package/lib/dropdown-item/index.css +0 -1
- package/lib/dropdown-item/index.js +0 -362
- package/lib/dropdown-item/index.less +0 -84
- package/lib/dropdown-item/style/index.js +0 -8
- package/lib/dropdown-item/style/less.js +0 -8
- package/lib/dropdown-menu/index.css +0 -1
- package/lib/dropdown-menu/index.js +0 -152
- package/lib/dropdown-menu/index.less +0 -85
- package/lib/dropdown-menu/style/index.js +0 -4
- package/lib/dropdown-menu/style/less.js +0 -4
- package/lib/empty/Developing.js +0 -1648
- package/lib/empty/Error.js +0 -489
- package/lib/empty/NotFound.js +0 -650
- package/lib/empty/NotRight.js +0 -400
- package/lib/empty/Search.js +0 -341
- package/lib/empty/index.less +0 -40
- package/lib/empty/style/less.js +0 -2
- package/lib/field/ClearIcon.js +0 -28
- package/lib/field/SearchIcon.js +0 -23
- package/lib/field/index.css +0 -1
- package/lib/field/index.js +0 -723
- package/lib/field/index.less +0 -231
- package/lib/field/style/index.js +0 -5
- package/lib/field/style/less.js +0 -5
- package/lib/fold-dialog/index.css +0 -1
- package/lib/fold-dialog/index.js +0 -151
- package/lib/fold-dialog/index.less +0 -26
- package/lib/fold-dialog/style/index.js +0 -2
- package/lib/fold-dialog/style/less.js +0 -2
- package/lib/form/index.js +0 -208
- package/lib/form/style/index.js +0 -1
- package/lib/form/style/less.js +0 -1
- package/lib/grid/index.css +0 -1
- package/lib/grid/index.js +0 -59
- package/lib/grid/index.less +0 -6
- package/lib/grid/style/index.js +0 -2
- package/lib/grid/style/less.js +0 -2
- package/lib/grid-item/index.css +0 -1
- package/lib/grid-item/index.js +0 -178
- package/lib/grid-item/index.less +0 -79
- package/lib/grid-item/style/index.js +0 -4
- package/lib/grid-item/style/less.js +0 -4
- package/lib/hierarchy-select/breadcrumb.js +0 -85
- package/lib/hierarchy-select/hierarchySelect.js +0 -177
- package/lib/hierarchy-select/index.css +0 -1
- package/lib/hierarchy-select/index.js +0 -155
- package/lib/hierarchy-select/index.less +0 -239
- package/lib/hierarchy-select/markList.js +0 -254
- package/lib/hierarchy-select/style/index.js +0 -8
- package/lib/hierarchy-select/style/less.js +0 -8
- package/lib/hierarchy-select/svg/SubIcon.js +0 -55
- package/lib/icon/index.less +0 -10
- package/lib/icon/local.css +0 -1
- package/lib/icon/local.less +0 -1
- package/lib/icon/style/less.js +0 -3
- package/lib/image/index.css +0 -1
- package/lib/image/index.js +0 -199
- package/lib/image/index.less +0 -47
- package/lib/image/style/index.js +0 -4
- package/lib/image/style/less.js +0 -4
- package/lib/image-preview/ImagePreview.js +0 -253
- package/lib/image-preview/ImagePreviewItem.js +0 -256
- package/lib/image-preview/index.css +0 -1
- package/lib/image-preview/index.js +0 -97
- package/lib/image-preview/index.less +0 -121
- package/lib/image-preview/shared.js +0 -13
- package/lib/image-preview/style/index.js +0 -10
- package/lib/image-preview/style/less.js +0 -10
- package/lib/index-anchor/index.css +0 -1
- package/lib/index-anchor/index.js +0 -93
- package/lib/index-anchor/index.less +0 -34
- package/lib/index-anchor/style/index.js +0 -2
- package/lib/index-anchor/style/less.js +0 -2
- package/lib/index-bar/IndexIndicate.js +0 -46
- package/lib/index-bar/index.css +0 -1
- package/lib/index-bar/index.js +0 -272
- package/lib/index-bar/index.less +0 -68
- package/lib/index-bar/style/index.js +0 -2
- package/lib/index-bar/style/less.js +0 -2
- package/lib/index.less +0 -72
- package/lib/info/index.css +0 -1
- package/lib/info/index.js +0 -42
- package/lib/info/index.less +0 -29
- package/lib/info/style/index.js +0 -2
- package/lib/info/style/less.js +0 -2
- package/lib/lazyload/index.js +0 -11
- package/lib/lazyload/style/index.js +0 -1
- package/lib/lazyload/style/less.js +0 -1
- package/lib/list/index.less +0 -17
- package/lib/list/style/less.js +0 -4
- package/lib/loading/index.less +0 -117
- package/lib/loading/style/less.js +0 -2
- package/lib/locale/lang/de-DE-formal.js +0 -95
- package/lib/locale/lang/de-DE.js +0 -95
- package/lib/locale/lang/es-ES.js +0 -95
- package/lib/locale/lang/fr-FR.js +0 -95
- package/lib/locale/lang/ja-JP.js +0 -96
- package/lib/locale/lang/nb-NO.js +0 -95
- package/lib/locale/lang/ro-RO.js +0 -95
- package/lib/locale/lang/th-TH.js +0 -96
- package/lib/locale/lang/tr-TR.js +0 -95
- package/lib/locale/lang/zh-HK.js +0 -96
- package/lib/locale/lang/zh-TW.js +0 -96
- package/lib/locale/style/less.js +0 -1
- package/lib/media-picker/image/DefaultAudioIcon.js +0 -138
- package/lib/media-picker/image/DefaultFileIcon.js +0 -121
- package/lib/media-picker/image/DefaultVideoIcon.js +0 -174
- package/lib/media-picker/image/DeleteIcon.js +0 -46
- package/lib/media-picker/image/PickFileIcon.js +0 -46
- package/lib/media-picker/image/PickPhotoIcon.js +0 -46
- package/lib/media-picker/image/TakeAudioIcon.js +0 -46
- package/lib/media-picker/image/TakePhotoIcon.js +0 -46
- package/lib/media-picker/image/TakeVideoIcon.js +0 -46
- package/lib/media-picker/index.css +0 -1
- package/lib/media-picker/index.js +0 -1028
- package/lib/media-picker/index.less +0 -148
- package/lib/media-picker/media-util.js +0 -50
- package/lib/media-picker/style/index.js +0 -12
- package/lib/media-picker/style/less.js +0 -12
- package/lib/media-picker/type.js +0 -31
- package/lib/media-player/index.css +0 -1
- package/lib/media-player/index.js +0 -161
- package/lib/media-player/index.less +0 -14
- package/lib/media-player/style/index.js +0 -9
- package/lib/media-player/style/less.js +0 -9
- package/lib/mixins/bind-event.js +0 -36
- package/lib/mixins/checkbox.js +0 -179
- package/lib/mixins/click-outside.js +0 -41
- package/lib/mixins/close-on-popstate.js +0 -46
- package/lib/mixins/field.js +0 -29
- package/lib/mixins/popup/context.js +0 -23
- package/lib/mixins/popup/index.js +0 -236
- package/lib/mixins/popup/overlay.js +0 -97
- package/lib/mixins/popup/type.js +0 -3
- package/lib/mixins/portal.js +0 -53
- package/lib/mixins/relation.js +0 -84
- package/lib/mixins/slots.js +0 -29
- package/lib/mixins/telemetry.js +0 -20
- package/lib/mixins/touch.js +0 -66
- package/lib/multiple-picker/MultiplePickerOptions.js +0 -177
- package/lib/multiple-picker/index.css +0 -1
- package/lib/multiple-picker/index.js +0 -251
- package/lib/multiple-picker/index.less +0 -135
- package/lib/multiple-picker/shared.js +0 -32
- package/lib/multiple-picker/style/index.js +0 -7
- package/lib/multiple-picker/style/less.js +0 -7
- package/lib/nav-bar/index.css +0 -1
- package/lib/nav-bar/index.js +0 -155
- package/lib/nav-bar/index.less +0 -74
- package/lib/nav-bar/style/index.js +0 -4
- package/lib/nav-bar/style/less.js +0 -4
- package/lib/notice-bar/CloseIcon.js +0 -39
- package/lib/notice-bar/MenuIcon.js +0 -40
- package/lib/notice-bar/NoticeIcon.js +0 -40
- package/lib/notice-bar/OpenIcon.js +0 -42
- package/lib/notice-bar/TipIcon.js +0 -40
- package/lib/notice-bar/WarningIcon.js +0 -40
- package/lib/notice-bar/index.less +0 -66
- package/lib/notice-bar/style/less.js +0 -4
- package/lib/number-keyboard/CollapseIcon.js +0 -21
- package/lib/number-keyboard/DeleteIcon.js +0 -21
- package/lib/number-keyboard/Key.js +0 -113
- package/lib/number-keyboard/index.less +0 -144
- package/lib/number-keyboard/style/less.js +0 -3
- package/lib/overlay/index.less +0 -11
- package/lib/overlay/style/less.js +0 -2
- package/lib/password-input/index.less +0 -83
- package/lib/password-input/style/less.js +0 -2
- package/lib/pdf-viewer/index.css +0 -1
- package/lib/pdf-viewer/index.js +0 -459
- package/lib/pdf-viewer/index.less +0 -69
- package/lib/pdf-viewer/style/index.js +0 -9
- package/lib/pdf-viewer/style/less.js +0 -9
- package/lib/picker/PickerColumn.js +0 -320
- package/lib/picker/index.css +0 -1
- package/lib/picker/index.js +0 -467
- package/lib/picker/index.less +0 -155
- package/lib/picker/shared.js +0 -40
- package/lib/picker/style/index.js +0 -7
- package/lib/picker/style/less.js +0 -7
- package/lib/popover/index.css +0 -1
- package/lib/popover/index.js +0 -226
- package/lib/popover/index.less +0 -270
- package/lib/popover/style/index.js +0 -6
- package/lib/popover/style/less.js +0 -6
- package/lib/popup/index.less +0 -137
- package/lib/popup/style/less.js +0 -5
- package/lib/pull-refresh/index.less +0 -25
- package/lib/pull-refresh/style/less.js +0 -3
- package/lib/radio/index.css +0 -1
- package/lib/radio/index.js +0 -40
- package/lib/radio/index.less +0 -104
- package/lib/radio/style/index.js +0 -4
- package/lib/radio/style/less.js +0 -4
- package/lib/radio-group/index.css +0 -1
- package/lib/radio-group/index.js +0 -41
- package/lib/radio-group/index.less +0 -8
- package/lib/radio-group/style/index.js +0 -2
- package/lib/radio-group/style/less.js +0 -2
- package/lib/rate/index.less +0 -47
- package/lib/rate/style/less.js +0 -4
- package/lib/row/index.less +0 -42
- package/lib/row/style/less.js +0 -2
- package/lib/search/index.css +0 -1
- package/lib/search/index.js +0 -131
- package/lib/search/index.less +0 -89
- package/lib/search/style/index.js +0 -6
- package/lib/search/style/less.js +0 -6
- package/lib/signature/bezier.js +0 -90
- package/lib/signature/force-landscape.js +0 -110
- package/lib/signature/index.css +0 -1
- package/lib/signature/index.js +0 -296
- package/lib/signature/index.less +0 -50
- package/lib/signature/point.js +0 -36
- package/lib/signature/style/index.js +0 -9
- package/lib/signature/style/less.js +0 -9
- package/lib/signature/throttle.js +0 -60
- package/lib/skeleton/index.css +0 -1
- package/lib/skeleton/index.js +0 -144
- package/lib/skeleton/index.less +0 -85
- package/lib/skeleton/style/index.js +0 -2
- package/lib/skeleton/style/less.js +0 -2
- package/lib/slider/index.css +0 -1
- package/lib/slider/index.js +0 -352
- package/lib/slider/index.less +0 -108
- package/lib/slider/style/index.js +0 -2
- package/lib/slider/style/less.js +0 -2
- package/lib/step/index.css +0 -1
- package/lib/step/index.js +0 -135
- package/lib/step/index.less +0 -103
- package/lib/step/style/index.js +0 -4
- package/lib/step/style/less.js +0 -4
- package/lib/stepper/index.less +0 -124
- package/lib/stepper/style/less.js +0 -2
- package/lib/steps/index.css +0 -1
- package/lib/steps/index.js +0 -44
- package/lib/steps/index.less +0 -23
- package/lib/steps/style/index.js +0 -2
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/index.less +0 -14
- package/lib/sticky/style/less.js +0 -2
- package/lib/style/animation.less +0 -139
- package/lib/style/base.less +0 -11
- package/lib/style/clearfix.css +0 -1
- package/lib/style/clearfix.less +0 -5
- package/lib/style/ellipsis.css +0 -1
- package/lib/style/ellipsis.less +0 -13
- package/lib/style/hairline.css +0 -1
- package/lib/style/hairline.less +0 -47
- package/lib/style/halfPxBorder.css +0 -1
- package/lib/style/halfPxBorder.less +0 -78
- package/lib/style/mixins/clearfix.less +0 -7
- package/lib/style/mixins/ellipsis.less +0 -15
- package/lib/style/mixins/hairline.less +0 -70
- package/lib/style/normalize.less +0 -38
- package/lib/style/reset.css +0 -1
- package/lib/style/reset.less +0 -171
- package/lib/style/var.less +0 -1039
- package/lib/swipe/index.less +0 -72
- package/lib/swipe/style/less.js +0 -2
- package/lib/swipe-cell/index.css +0 -1
- package/lib/swipe-cell/index.js +0 -232
- package/lib/swipe-cell/index.less +0 -29
- package/lib/swipe-cell/style/index.js +0 -2
- package/lib/swipe-cell/style/less.js +0 -2
- package/lib/swipe-item/index.less +0 -8
- package/lib/swipe-item/style/less.js +0 -2
- package/lib/switch/index.less +0 -56
- package/lib/switch/shared.js +0 -25
- package/lib/switch/style/less.js +0 -3
- package/lib/switch-cell/index.css +0 -1
- package/lib/switch-cell/index.js +0 -62
- package/lib/switch-cell/index.less +0 -15
- package/lib/switch-cell/style/index.js +0 -7
- package/lib/switch-cell/style/less.js +0 -7
- package/lib/tab/index.less +0 -17
- package/lib/tab/style/less.js +0 -2
- package/lib/tabbar/index.css +0 -1
- package/lib/tabbar/index.js +0 -123
- package/lib/tabbar/index.less +0 -22
- package/lib/tabbar/style/index.js +0 -2
- package/lib/tabbar/style/less.js +0 -2
- package/lib/tabbar-item/index.css +0 -1
- package/lib/tabbar-item/index.js +0 -130
- package/lib/tabbar-item/index.less +0 -46
- package/lib/tabbar-item/style/index.js +0 -4
- package/lib/tabbar-item/style/less.js +0 -4
- package/lib/table/index.css +0 -1
- package/lib/table/index.js +0 -132
- package/lib/table/index.less +0 -53
- package/lib/table/style/index.js +0 -2
- package/lib/table/style/less.js +0 -2
- package/lib/tabs/Content.js +0 -90
- package/lib/tabs/Title.js +0 -102
- package/lib/tabs/index.less +0 -156
- package/lib/tabs/style/less.js +0 -4
- package/lib/tag/index.css +0 -1
- package/lib/tag/index.js +0 -92
- package/lib/tag/index.less +0 -99
- package/lib/tag/style/index.js +0 -4
- package/lib/tag/style/less.js +0 -4
- package/lib/telemetry/index.js +0 -63
- package/lib/timeline/index.css +0 -1
- package/lib/timeline/index.js +0 -221
- package/lib/timeline/index.less +0 -130
- package/lib/timeline/style/index.js +0 -4
- package/lib/timeline/style/less.js +0 -4
- package/lib/toast/index.less +0 -82
- package/lib/toast/style/less.js +0 -7
- package/lib/toast/svg/SuccessIcon.js +0 -40
- package/lib/toast/svg/WarnIcon.js +0 -39
- package/lib/uploader/index.css +0 -1
- package/lib/uploader/index.js +0 -577
- package/lib/uploader/index.less +0 -163
- package/lib/uploader/style/index.js +0 -11
- package/lib/uploader/style/less.js +0 -11
- package/lib/uploader/utils.js +0 -81
- package/lib/utils/create/bem.js +0 -44
- package/lib/utils/create/component.js +0 -79
- package/lib/utils/create/i18n.js +0 -27
- package/lib/utils/create/index.js +0 -15
- package/lib/utils/device.js +0 -15
- package/lib/utils/dom/event.js +0 -62
- package/lib/utils/dom/node.js +0 -12
- package/lib/utils/dom/raf.js +0 -47
- package/lib/utils/dom/reset-scroll.js +0 -21
- package/lib/utils/dom/scroll.js +0 -89
- package/lib/utils/dom/style.js +0 -14
- package/lib/utils/easings.js +0 -17
- package/lib/utils/format/date-util.js +0 -787
- package/lib/utils/format/number.js +0 -60
- package/lib/utils/format/string.js +0 -26
- package/lib/utils/format/unit.js +0 -68
- package/lib/utils/functional.js +0 -68
- package/lib/utils/getScroll.js +0 -34
- package/lib/utils/media/image-util.js +0 -153
- package/lib/utils/raf.js +0 -63
- package/lib/utils/router.js +0 -45
- package/lib/utils/scrollTo.js +0 -56
- package/lib/utils/types.js +0 -3
- package/lib/utils/validate/date.js +0 -10
- package/lib/utils/validate/email.js +0 -10
- package/lib/utils/validate/mobile.js +0 -9
- package/lib/utils/validate/number.js +0 -18
- package/lib/utils/validate/system.js +0 -17
- package/lib/utils/vnodes.js +0 -41
- package/lib/zart.js +0 -84577
- package/lib/zart.min.js +0 -18
package/es/media-picker/index.js
DELETED
|
@@ -1,992 +0,0 @@
|
|
|
1
|
-
// Utils
|
|
2
|
-
import { createNamespace, isDef, isPromise, noop } from '../utils'; // Types
|
|
3
|
-
|
|
4
|
-
import { MediaAddType, MediaType, Media, MediaUploadStatus } from "./type";
|
|
5
|
-
import { checkWatermarkConfigSupported, CompressOptions, file2DataURL, ImageProcessor, ResizeOptions, WatermarkOptions } from "@egova/media"; // 单个文件最大限制,单位为M(目前限制是100M)
|
|
6
|
-
|
|
7
|
-
var FILE_SIZE_LIMIT = 100;
|
|
8
|
-
|
|
9
|
-
var _createNamespace = createNamespace('media-picker'),
|
|
10
|
-
createComponent = _createNamespace[0],
|
|
11
|
-
bem = _createNamespace[1]; // import components
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import Toast from '../toast';
|
|
15
|
-
import ImagePreview from "../image-preview"; // Images
|
|
16
|
-
|
|
17
|
-
import TakePhotoIcon from "./image/TakePhotoIcon";
|
|
18
|
-
import PickPhotoIcon from "./image/PickPhotoIcon";
|
|
19
|
-
import TakeVideoIcon from "./image/TakeVideoIcon";
|
|
20
|
-
import TakeAudioIcon from "./image/TakeAudioIcon";
|
|
21
|
-
import PickFileIcon from "./image/PickFileIcon";
|
|
22
|
-
import DeleteIcon from "./image/DeleteIcon";
|
|
23
|
-
import DefaultVideoIcon from "./image/DefaultVideoIcon";
|
|
24
|
-
import DefaultAudioIcon from "./image/DefaultAudioIcon";
|
|
25
|
-
import DefaultFileIcon from "./image/DefaultFileIcon";
|
|
26
|
-
import { getFileUniqueCode, getUniqueFileName, isAudioType, isImageType, isVideoType } from "./media-util";
|
|
27
|
-
import Icon from "../icon";
|
|
28
|
-
import Loading from "../loading";
|
|
29
|
-
export default createComponent({
|
|
30
|
-
props: {
|
|
31
|
-
disabled: Boolean,
|
|
32
|
-
title: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: '添加附件'
|
|
35
|
-
},
|
|
36
|
-
showTitle: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: false
|
|
39
|
-
},
|
|
40
|
-
mediaList: {
|
|
41
|
-
type: Array,
|
|
42
|
-
default: function _default() {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
// 图片压缩后的最大边长
|
|
47
|
-
maxImageSideLength: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 1920
|
|
50
|
-
},
|
|
51
|
-
// 单个图片文件大小限制(本单位为KB,默认最大1M)
|
|
52
|
-
maxImageFileSize: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: 1024
|
|
55
|
-
},
|
|
56
|
-
// 单个文件大小限制(本单位为KB,默认最大1M)
|
|
57
|
-
maxFileSize: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: FILE_SIZE_LIMIT * 1024
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* {
|
|
64
|
-
* maxImageSideLength,
|
|
65
|
-
* address,
|
|
66
|
-
* humanName,
|
|
67
|
-
* projectName,
|
|
68
|
-
* watermarkConfigString
|
|
69
|
-
* (http://faq.egova.com.cn:7777/redmine/projects/redmine/wiki/%E6%8B%8D%E7%85%A7%E6%B0%B4%E5%8D%B0%E9%85%8D%E7%BD%AE)
|
|
70
|
-
* }
|
|
71
|
-
*/
|
|
72
|
-
watermarkOptions: {
|
|
73
|
-
type: Object,
|
|
74
|
-
default: function _default() {
|
|
75
|
-
return null;
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
maxMediaCount: {
|
|
79
|
-
type: Number,
|
|
80
|
-
default: Number.MAX_VALUE
|
|
81
|
-
},
|
|
82
|
-
maxImageCount: {
|
|
83
|
-
type: Number,
|
|
84
|
-
default: Number.MAX_VALUE
|
|
85
|
-
},
|
|
86
|
-
maxAudioCount: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: Number.MAX_VALUE
|
|
89
|
-
},
|
|
90
|
-
maxVideoCount: {
|
|
91
|
-
type: Number,
|
|
92
|
-
default: Number.MAX_VALUE
|
|
93
|
-
},
|
|
94
|
-
maxFileCount: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: Number.MAX_VALUE
|
|
97
|
-
},
|
|
98
|
-
allowTakePhoto: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: true
|
|
101
|
-
},
|
|
102
|
-
allowPickPhoto: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: true
|
|
105
|
-
},
|
|
106
|
-
allowTakeVideo: {
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: false
|
|
109
|
-
},
|
|
110
|
-
allowPickVideo: {
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: false
|
|
113
|
-
},
|
|
114
|
-
allowTakeAudio: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: false
|
|
117
|
-
},
|
|
118
|
-
allowPickAudio: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false
|
|
121
|
-
},
|
|
122
|
-
allowPickFile: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: false
|
|
125
|
-
},
|
|
126
|
-
// 预览函数(返回true时不再执行默认行为)
|
|
127
|
-
// 参数:media,index
|
|
128
|
-
preview: Function,
|
|
129
|
-
// 点击按钮事件(返回true时不再执行默认行为)
|
|
130
|
-
// 参数:mediaType,mediaAddType
|
|
131
|
-
mediaPickAction: Function,
|
|
132
|
-
// 文件读取完成后的回调函数,获取到对应的 media 对象
|
|
133
|
-
afterRead: Function,
|
|
134
|
-
// 文件读取前的回调函数,返回 false 可终止文件读取,支持返回 Promise
|
|
135
|
-
beforeRead: Function,
|
|
136
|
-
// 文件删除前的回调函数,返回 false 可终止文件读取,支持返回 Promise
|
|
137
|
-
beforeDelete: Function
|
|
138
|
-
},
|
|
139
|
-
model: {
|
|
140
|
-
prop: 'mediaList'
|
|
141
|
-
},
|
|
142
|
-
data: function data() {
|
|
143
|
-
return {
|
|
144
|
-
videoOptionsVisible: false,
|
|
145
|
-
audioOptionsVisible: false,
|
|
146
|
-
actionVisible: false,
|
|
147
|
-
mediaPlayerVisible: false,
|
|
148
|
-
mediaTypeToPlay: '',
|
|
149
|
-
mediaUrlToPlay: ''
|
|
150
|
-
};
|
|
151
|
-
},
|
|
152
|
-
computed: {
|
|
153
|
-
imageList: function imageList() {
|
|
154
|
-
return this.mediaList.filter(function (media) {
|
|
155
|
-
return media.type === MediaType.PHOTO;
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
|
-
actionOptions: function actionOptions() {
|
|
159
|
-
var _this = this;
|
|
160
|
-
|
|
161
|
-
if (this.videoOptionsVisible) {
|
|
162
|
-
return [{
|
|
163
|
-
name: '拍摄',
|
|
164
|
-
func: function func() {
|
|
165
|
-
_this.mediaPick(MediaType.VIDEO, MediaAddType.TAKE);
|
|
166
|
-
}
|
|
167
|
-
}, {
|
|
168
|
-
name: '视频文件',
|
|
169
|
-
func: function func() {
|
|
170
|
-
_this.mediaPick(MediaType.VIDEO, MediaAddType.PICK);
|
|
171
|
-
}
|
|
172
|
-
}];
|
|
173
|
-
} else if (this.audioOptionsVisible) {
|
|
174
|
-
return [{
|
|
175
|
-
name: '录音',
|
|
176
|
-
func: function func() {
|
|
177
|
-
_this.mediaPick(MediaType.AUDIO, MediaAddType.TAKE);
|
|
178
|
-
}
|
|
179
|
-
}, {
|
|
180
|
-
name: '音频文件',
|
|
181
|
-
func: function func() {
|
|
182
|
-
_this.mediaPick(MediaType.AUDIO, MediaAddType.PICK);
|
|
183
|
-
}
|
|
184
|
-
}];
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
methods: {
|
|
189
|
-
mediaPick: function mediaPick(mediaType, mediaAddType) {
|
|
190
|
-
if (this.disabled) {
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (!this.checkFileCountBeforeAdd(mediaType)) {
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (this.mediaPickAction && this.mediaPickAction(mediaType, mediaAddType)) {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
var _this$$refs = this.$refs,
|
|
203
|
-
cameraInput = _this$$refs.cameraInput,
|
|
204
|
-
imageInput = _this$$refs.imageInput,
|
|
205
|
-
camcorderInput = _this$$refs.camcorderInput,
|
|
206
|
-
videoFileInput = _this$$refs.videoFileInput,
|
|
207
|
-
audioRecorderInput = _this$$refs.audioRecorderInput,
|
|
208
|
-
audioFileInput = _this$$refs.audioFileInput,
|
|
209
|
-
fileInput = _this$$refs.fileInput;
|
|
210
|
-
|
|
211
|
-
if (mediaType === MediaType.PHOTO) {
|
|
212
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
213
|
-
this.triggerHiddenInput(cameraInput);
|
|
214
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
215
|
-
this.triggerHiddenInput(imageInput);
|
|
216
|
-
}
|
|
217
|
-
} else if (mediaType === MediaType.VIDEO) {
|
|
218
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
219
|
-
this.triggerHiddenInput(camcorderInput);
|
|
220
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
221
|
-
this.triggerHiddenInput(videoFileInput);
|
|
222
|
-
} else if (mediaAddType === MediaAddType.TAKE_AND_PICK) {
|
|
223
|
-
this.actionVisible = true;
|
|
224
|
-
this.videoOptionsVisible = true;
|
|
225
|
-
this.audioOptionsVisible = false;
|
|
226
|
-
}
|
|
227
|
-
} else if (mediaType === MediaType.AUDIO) {
|
|
228
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
229
|
-
this.triggerHiddenInput(audioRecorderInput);
|
|
230
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
231
|
-
this.triggerHiddenInput(audioFileInput);
|
|
232
|
-
} else if (mediaAddType === MediaAddType.TAKE_AND_PICK) {
|
|
233
|
-
this.actionVisible = true;
|
|
234
|
-
this.videoOptionsVisible = false;
|
|
235
|
-
this.audioOptionsVisible = true;
|
|
236
|
-
}
|
|
237
|
-
} else if (mediaType === MediaType.FILE) {
|
|
238
|
-
this.triggerHiddenInput(fileInput);
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
triggerHiddenInput: function triggerHiddenInput(ref) {
|
|
242
|
-
if (ref && ref instanceof HTMLInputElement) {
|
|
243
|
-
ref.click();
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* 清空value,避免添加相同图片时 change 事件不触发:https://stackoverflow.com/a/54125788/1263423
|
|
249
|
-
* @param mediaType
|
|
250
|
-
* @param mediaAddType
|
|
251
|
-
*/
|
|
252
|
-
resetInput: function resetInput(mediaType, mediaAddType) {
|
|
253
|
-
var _this$$refs2 = this.$refs,
|
|
254
|
-
cameraInput = _this$$refs2.cameraInput,
|
|
255
|
-
imageInput = _this$$refs2.imageInput,
|
|
256
|
-
camcorderInput = _this$$refs2.camcorderInput,
|
|
257
|
-
videoFileInput = _this$$refs2.videoFileInput,
|
|
258
|
-
audioRecorderInput = _this$$refs2.audioRecorderInput,
|
|
259
|
-
audioFileInput = _this$$refs2.audioFileInput,
|
|
260
|
-
fileInput = _this$$refs2.fileInput;
|
|
261
|
-
|
|
262
|
-
if (mediaType === MediaType.PHOTO) {
|
|
263
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
264
|
-
cameraInput.value = '';
|
|
265
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
266
|
-
imageInput.value = '';
|
|
267
|
-
}
|
|
268
|
-
} else if (mediaType === MediaType.VIDEO) {
|
|
269
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
270
|
-
camcorderInput.value = '';
|
|
271
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
272
|
-
videoFileInput.value = '';
|
|
273
|
-
}
|
|
274
|
-
} else if (mediaType === MediaType.AUDIO) {
|
|
275
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
276
|
-
audioRecorderInput.value = '';
|
|
277
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
278
|
-
audioFileInput.value = '';
|
|
279
|
-
}
|
|
280
|
-
} else if (mediaType === MediaType.FILE) {
|
|
281
|
-
fileInput.value = '';
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
handleInputFiles: function handleInputFiles(event) {
|
|
285
|
-
var _this2 = this;
|
|
286
|
-
|
|
287
|
-
var files = event.target.files;
|
|
288
|
-
|
|
289
|
-
if (!files || files.length === 0) {
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
files = this.filterValidFiles(files);
|
|
294
|
-
|
|
295
|
-
if (files.length === 0) {
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
if (!this.checkFileCountAfterAdd(files)) {
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
if (this.beforeRead) {
|
|
304
|
-
var response = this.beforeRead(files);
|
|
305
|
-
|
|
306
|
-
if (!response) {
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (isPromise(response)) {
|
|
311
|
-
response.then(function (data) {
|
|
312
|
-
if (data) {
|
|
313
|
-
_this2.readFiles(data);
|
|
314
|
-
} else {
|
|
315
|
-
_this2.readFiles(files);
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
this.readFiles(files);
|
|
323
|
-
},
|
|
324
|
-
readFiles: function readFiles(files) {
|
|
325
|
-
var _this3 = this;
|
|
326
|
-
|
|
327
|
-
// 处理非图片
|
|
328
|
-
var notImages = files.filter(function (f) {
|
|
329
|
-
return !isImageType(f);
|
|
330
|
-
}).map(function (f) {
|
|
331
|
-
return _this3.transformNotImageFile(f);
|
|
332
|
-
});
|
|
333
|
-
var newMedias = [];
|
|
334
|
-
|
|
335
|
-
if (notImages.length > 0) {
|
|
336
|
-
newMedias = newMedias.concat(notImages);
|
|
337
|
-
} // 处理图片并合并
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
var imageFiles = files.filter(function (f) {
|
|
341
|
-
return isImageType(f);
|
|
342
|
-
});
|
|
343
|
-
var promise;
|
|
344
|
-
|
|
345
|
-
if (imageFiles.length === 0) {
|
|
346
|
-
promise = Promise.resolve();
|
|
347
|
-
} else {
|
|
348
|
-
promise = this.transformImageFiles(imageFiles);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
promise.then(function (medias) {
|
|
352
|
-
if (medias && medias.length > 0) {
|
|
353
|
-
newMedias = newMedias.concat(medias);
|
|
354
|
-
}
|
|
355
|
-
}).finally(function () {
|
|
356
|
-
_this3.$emit('input', [].concat(_this3.mediaList, newMedias));
|
|
357
|
-
|
|
358
|
-
if (_this3.afterRead) {
|
|
359
|
-
_this3.afterRead(newMedias);
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* 选择多媒体前进行数量检查
|
|
366
|
-
*/
|
|
367
|
-
checkFileCountBeforeAdd: function checkFileCountBeforeAdd(mediaType) {
|
|
368
|
-
if (this.mediaList.length === this.maxMediaCount) {
|
|
369
|
-
Toast.fail("\u5DF2\u8FBE\u5230\u6587\u4EF6\u6700\u5927\u6570\u91CF\u9650\u5236");
|
|
370
|
-
return false;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
if (mediaType === MediaType.PHOTO && this.mediaList.filter(function (media) {
|
|
374
|
-
return media.type === MediaType.PHOTO;
|
|
375
|
-
}).length > this.maxImageCount) {
|
|
376
|
-
Toast.fail("\u5DF2\u8FBE\u5230\u56FE\u7247\u6700\u5927\u6570\u91CF\u9650\u5236");
|
|
377
|
-
return false;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (mediaType === MediaType.VIDEO && this.mediaList.filter(function (media) {
|
|
381
|
-
return media.type === MediaType.VIDEO;
|
|
382
|
-
}).length > this.maxVideoCount) {
|
|
383
|
-
Toast.fail("\u5DF2\u8FBE\u5230\u89C6\u9891\u6700\u5927\u6570\u91CF\u9650\u5236");
|
|
384
|
-
return false;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
if (mediaType === MediaType.AUDIO && this.mediaList.filter(function (media) {
|
|
388
|
-
return media.type === MediaType.AUDIO;
|
|
389
|
-
}).length > this.maxAudioCount) {
|
|
390
|
-
Toast.fail("\u5DF2\u8FBE\u5230\u5F55\u97F3\u6700\u5927\u6570\u91CF\u9650\u5236");
|
|
391
|
-
return false;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
return true;
|
|
395
|
-
},
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* 选择多媒体后进行数量检查
|
|
399
|
-
*/
|
|
400
|
-
checkFileCountAfterAdd: function checkFileCountAfterAdd(files) {
|
|
401
|
-
if (this.mediaList.length + files.length > this.maxMediaCount) {
|
|
402
|
-
Toast.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxMediaCount + "\u4E2A\u6587\u4EF6");
|
|
403
|
-
return false;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (this.mediaList.filter(function (media) {
|
|
407
|
-
return media.type === MediaType.PHOTO;
|
|
408
|
-
}).length + files.filter(function (media) {
|
|
409
|
-
return isImageType(media);
|
|
410
|
-
}).length > this.maxImageCount) {
|
|
411
|
-
Toast.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxImageCount + "\u5F20\u56FE\u7247");
|
|
412
|
-
return false;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
if (this.mediaList.filter(function (media) {
|
|
416
|
-
return media.type === MediaType.VIDEO;
|
|
417
|
-
}).length + files.filter(function (media) {
|
|
418
|
-
return isVideoType(media);
|
|
419
|
-
}).length > this.maxVideoCount) {
|
|
420
|
-
Toast.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxVideoCount + "\u4E2A\u89C6\u9891");
|
|
421
|
-
return false;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
if (this.mediaList.filter(function (media) {
|
|
425
|
-
return media.type === MediaType.AUDIO;
|
|
426
|
-
}).length + files.filter(function (media) {
|
|
427
|
-
return isAudioType(media);
|
|
428
|
-
}).length > this.maxAudioCount) {
|
|
429
|
-
Toast.fail("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20" + this.maxAudioCount + "\u4E2A\u5F55\u97F3");
|
|
430
|
-
return false;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
return true;
|
|
434
|
-
},
|
|
435
|
-
filterValidFiles: function filterValidFiles(files) {
|
|
436
|
-
var validFiles = [];
|
|
437
|
-
|
|
438
|
-
for (var i = 0; i < files.length; i++) {
|
|
439
|
-
var file = files[i];
|
|
440
|
-
|
|
441
|
-
if (file.size > this.maxFileSize * 1024) {
|
|
442
|
-
Toast.fail("\u8BF7\u52FF\u6DFB\u52A0\u5927\u4E8E" + this.maxFileSize + "K\u7684\u6587\u4EF6");
|
|
443
|
-
return validFiles;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
if (this.checkFileExist(file)) {
|
|
447
|
-
Toast.fail('请勿重复添加文件');
|
|
448
|
-
return validFiles;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
validFiles.push(file);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
return validFiles;
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* 转换图片文件,压缩、加水印,返回Media格式的图片
|
|
459
|
-
* @param files 图片文件
|
|
460
|
-
* @return {Promise<[Media]>}
|
|
461
|
-
*/
|
|
462
|
-
transformImageFiles: function transformImageFiles(files) {
|
|
463
|
-
var _this4 = this;
|
|
464
|
-
|
|
465
|
-
var promisesTodo = [];
|
|
466
|
-
var resizeOptions = new ResizeOptions(this.maxImageSideLength);
|
|
467
|
-
var compressOptions = new CompressOptions(this.maxImageFileSize);
|
|
468
|
-
|
|
469
|
-
var _loop = function _loop(i) {
|
|
470
|
-
var file = files[i];
|
|
471
|
-
var watermarkEnabled = _this4.watermarkOptions && _this4.watermarkOptions.watermarkConfigString && checkWatermarkConfigSupported(_this4.watermarkOptions.watermarkConfigString);
|
|
472
|
-
var watermarkOpt = void 0;
|
|
473
|
-
|
|
474
|
-
if (watermarkEnabled) {
|
|
475
|
-
watermarkOpt = new WatermarkOptions({
|
|
476
|
-
enabled: true,
|
|
477
|
-
watermarkConfigString: watermarkEnabled ? _this4.watermarkOptions.watermarkConfigString : '',
|
|
478
|
-
context: {
|
|
479
|
-
address: _this4.watermarkOptions.address || "",
|
|
480
|
-
humanName: _this4.watermarkOptions.humanName || "",
|
|
481
|
-
projectName: _this4.watermarkOptions.projectName || "",
|
|
482
|
-
watermarkTime: new Date()
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
} else {
|
|
486
|
-
watermarkOpt = new WatermarkOptions({
|
|
487
|
-
enabled: false
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
var promise = new ImageProcessor(file, resizeOptions, watermarkOpt, compressOptions).process().then(function (f) {
|
|
492
|
-
if (!f) {
|
|
493
|
-
return Promise.resolve();
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
return file2DataURL(f).then(function (base64) {
|
|
497
|
-
var uniqueFileName = getUniqueFileName(f, 'jpg');
|
|
498
|
-
return Promise.resolve({
|
|
499
|
-
showSrc: base64,
|
|
500
|
-
type: MediaType.PHOTO,
|
|
501
|
-
file: new File([f], uniqueFileName, {
|
|
502
|
-
lastModified: f.lastModified,
|
|
503
|
-
type: f.type
|
|
504
|
-
}),
|
|
505
|
-
//需要以原始file的信息作为唯一标识
|
|
506
|
-
uniqueCode: getFileUniqueCode(file),
|
|
507
|
-
lastModified: f.lastModified,
|
|
508
|
-
fileSize: f.size,
|
|
509
|
-
deletable: true,
|
|
510
|
-
status: '',
|
|
511
|
-
message: ''
|
|
512
|
-
});
|
|
513
|
-
});
|
|
514
|
-
});
|
|
515
|
-
promisesTodo.push(promise);
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
for (var i = 0; i < files.length; i++) {
|
|
519
|
-
_loop(i);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
Toast.loading({
|
|
523
|
-
message: '处理中...',
|
|
524
|
-
forbidClick: true,
|
|
525
|
-
duration: 0
|
|
526
|
-
});
|
|
527
|
-
return Promise.all(promisesTodo).then(function (medias) {
|
|
528
|
-
return medias.filter(function (media) {
|
|
529
|
-
return !!media;
|
|
530
|
-
});
|
|
531
|
-
}).finally(function () {
|
|
532
|
-
Toast.clear();
|
|
533
|
-
});
|
|
534
|
-
},
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* 转换非图片文件
|
|
538
|
-
* @param {File} f 非图片文件
|
|
539
|
-
* @return {Media} Media格式的文件
|
|
540
|
-
*/
|
|
541
|
-
transformNotImageFile: function transformNotImageFile(f) {
|
|
542
|
-
var suffix = '';
|
|
543
|
-
var type = MediaType.FILE;
|
|
544
|
-
|
|
545
|
-
if (isAudioType(f)) {
|
|
546
|
-
type = MediaType.AUDIO;
|
|
547
|
-
suffix = 'mp3';
|
|
548
|
-
} else if (isVideoType(f)) {
|
|
549
|
-
type = MediaType.VIDEO;
|
|
550
|
-
suffix = 'mp4';
|
|
551
|
-
} else {
|
|
552
|
-
type = MediaType.FILE;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
var uniqueFileName = getUniqueFileName(f, suffix);
|
|
556
|
-
return {
|
|
557
|
-
type: type,
|
|
558
|
-
file: new File([f], uniqueFileName, {
|
|
559
|
-
lastModified: f.lastModified,
|
|
560
|
-
type: f.type
|
|
561
|
-
}),
|
|
562
|
-
uniqueCode: getFileUniqueCode(f),
|
|
563
|
-
lastModified: f.lastModified,
|
|
564
|
-
fileSize: f.size,
|
|
565
|
-
deletable: true,
|
|
566
|
-
status: '',
|
|
567
|
-
message: ''
|
|
568
|
-
};
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* 检查文件是否重复添加
|
|
573
|
-
*/
|
|
574
|
-
checkFileExist: function checkFileExist(file) {
|
|
575
|
-
return this.mediaList.some(function (media) {
|
|
576
|
-
return media.uniqueCode === getFileUniqueCode(file);
|
|
577
|
-
});
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* 点击预览
|
|
582
|
-
*/
|
|
583
|
-
previewMedia: function previewMedia(media, index) {
|
|
584
|
-
if (this.preview && this.preview(media, index)) {
|
|
585
|
-
return;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
if (media.type === MediaType.PHOTO) {
|
|
589
|
-
var imageIndex = this.imageList.indexOf(media);
|
|
590
|
-
ImagePreview({
|
|
591
|
-
images: this.imageList.map(function (image) {
|
|
592
|
-
return {
|
|
593
|
-
url: image.showSrc
|
|
594
|
-
};
|
|
595
|
-
}),
|
|
596
|
-
startPosition: imageIndex
|
|
597
|
-
});
|
|
598
|
-
} else if (media.type === MediaType.AUDIO || media.type === MediaType.VIDEO) {
|
|
599
|
-
if (!media.file && !media.url) {
|
|
600
|
-
Toast('文件参数缺失');
|
|
601
|
-
} else {
|
|
602
|
-
this.mediaTypeToPlay = media.type;
|
|
603
|
-
this.mediaUrlToPlay = media.url || (URL || webkitURL).createObjectURL(media.file); // this.mediaUrlToPlay = 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
|
|
604
|
-
|
|
605
|
-
this.mediaPlayerVisible = true;
|
|
606
|
-
}
|
|
607
|
-
} else if (media.type === MediaType.FILE) {
|
|
608
|
-
Toast('暂不支持此类文件的预览');
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
onDelete: function onDelete(media, index) {
|
|
612
|
-
var _this5 = this;
|
|
613
|
-
|
|
614
|
-
if (this.beforeDelete) {
|
|
615
|
-
var response = this.beforeDelete(media);
|
|
616
|
-
|
|
617
|
-
if (!response) {
|
|
618
|
-
return;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
if (isPromise(response)) {
|
|
622
|
-
response.then(function () {
|
|
623
|
-
_this5.deleteMedia(media, index);
|
|
624
|
-
});
|
|
625
|
-
return;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
this.deleteMedia(media, index);
|
|
630
|
-
},
|
|
631
|
-
deleteMedia: function deleteMedia(media, index) {
|
|
632
|
-
var list = this.mediaList.slice(0);
|
|
633
|
-
list.splice(index, 1);
|
|
634
|
-
this.$emit('input', list);
|
|
635
|
-
this.$emit('delete', media, index);
|
|
636
|
-
},
|
|
637
|
-
hiddenInput: function hiddenInput() {
|
|
638
|
-
var _this6 = this;
|
|
639
|
-
|
|
640
|
-
var h = this.$createElement;
|
|
641
|
-
return [h("input", {
|
|
642
|
-
"attrs": {
|
|
643
|
-
"type": 'file',
|
|
644
|
-
"accept": 'image/*',
|
|
645
|
-
"multiple": true,
|
|
646
|
-
"capture": 'environment'
|
|
647
|
-
},
|
|
648
|
-
"ref": 'cameraInput',
|
|
649
|
-
"on": {
|
|
650
|
-
"change": this.handleInputFiles,
|
|
651
|
-
"click": function click() {
|
|
652
|
-
return _this6.resetInput(MediaType.PHOTO, MediaAddType.TAKE);
|
|
653
|
-
}
|
|
654
|
-
},
|
|
655
|
-
"class": bem('hidden')
|
|
656
|
-
}), h("input", {
|
|
657
|
-
"attrs": {
|
|
658
|
-
"type": 'file',
|
|
659
|
-
"accept": 'image/*,image/exact',
|
|
660
|
-
"multiple": true
|
|
661
|
-
},
|
|
662
|
-
"ref": 'imageInput',
|
|
663
|
-
"on": {
|
|
664
|
-
"change": this.handleInputFiles,
|
|
665
|
-
"click": function click() {
|
|
666
|
-
return _this6.resetInput(MediaType.PHOTO, MediaAddType.PICK);
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
"class": bem('hidden')
|
|
670
|
-
}), h("input", {
|
|
671
|
-
"attrs": {
|
|
672
|
-
"type": 'file',
|
|
673
|
-
"accept": 'video/*',
|
|
674
|
-
"capture": 'environment'
|
|
675
|
-
},
|
|
676
|
-
"ref": 'camcorderInput',
|
|
677
|
-
"on": {
|
|
678
|
-
"change": this.handleInputFiles,
|
|
679
|
-
"click": function click() {
|
|
680
|
-
return _this6.resetInput(MediaType.VIDEO, MediaAddType.TAKE);
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
"class": bem('hidden')
|
|
684
|
-
}), h("input", {
|
|
685
|
-
"attrs": {
|
|
686
|
-
"type": 'file',
|
|
687
|
-
"accept": 'video/*'
|
|
688
|
-
},
|
|
689
|
-
"ref": 'videoFileInput',
|
|
690
|
-
"on": {
|
|
691
|
-
"change": this.handleInputFiles,
|
|
692
|
-
"click": function click() {
|
|
693
|
-
return _this6.resetInput(MediaType.VIDEO, MediaAddType.PICK);
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
"class": bem('hidden')
|
|
697
|
-
}), h("input", {
|
|
698
|
-
"attrs": {
|
|
699
|
-
"type": 'file',
|
|
700
|
-
"accept": 'audio/mpeg',
|
|
701
|
-
"capture": 'nonce'
|
|
702
|
-
},
|
|
703
|
-
"ref": 'audioRecorderInput',
|
|
704
|
-
"on": {
|
|
705
|
-
"change": this.handleInputFiles,
|
|
706
|
-
"click": function click() {
|
|
707
|
-
return _this6.resetInput(MediaType.AUDIO, MediaAddType.TAKE);
|
|
708
|
-
}
|
|
709
|
-
},
|
|
710
|
-
"class": bem('hidden')
|
|
711
|
-
}), h("input", {
|
|
712
|
-
"attrs": {
|
|
713
|
-
"type": 'file',
|
|
714
|
-
"accept": 'audio/mpeg'
|
|
715
|
-
},
|
|
716
|
-
"ref": 'audioFileInput',
|
|
717
|
-
"on": {
|
|
718
|
-
"change": this.handleInputFiles,
|
|
719
|
-
"click": function click() {
|
|
720
|
-
return _this6.resetInput(MediaType.AUDIO, MediaAddType.PICK);
|
|
721
|
-
}
|
|
722
|
-
},
|
|
723
|
-
"class": bem('hidden')
|
|
724
|
-
}), h("input", {
|
|
725
|
-
"attrs": {
|
|
726
|
-
"type": 'file',
|
|
727
|
-
"accept": '*/*'
|
|
728
|
-
},
|
|
729
|
-
"ref": 'fileInput',
|
|
730
|
-
"on": {
|
|
731
|
-
"change": this.handleInputFiles,
|
|
732
|
-
"click": function click() {
|
|
733
|
-
return _this6.resetInput(MediaType.FILE, MediaAddType.PICK);
|
|
734
|
-
}
|
|
735
|
-
},
|
|
736
|
-
"class": bem('hidden')
|
|
737
|
-
})];
|
|
738
|
-
},
|
|
739
|
-
renderIcon: function renderIcon(mediaType, mediaAddType) {
|
|
740
|
-
var _this7 = this;
|
|
741
|
-
|
|
742
|
-
var h = this.$createElement;
|
|
743
|
-
|
|
744
|
-
if (mediaType === MediaType.PHOTO) {
|
|
745
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
746
|
-
return h(TakePhotoIcon, {
|
|
747
|
-
"class": bem('button'),
|
|
748
|
-
"on": {
|
|
749
|
-
"click": function click() {
|
|
750
|
-
return _this7.mediaPick(mediaType, mediaAddType);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
755
|
-
return h(PickPhotoIcon, {
|
|
756
|
-
"class": bem('button'),
|
|
757
|
-
"on": {
|
|
758
|
-
"click": function click() {
|
|
759
|
-
return _this7.mediaPick(mediaType, mediaAddType);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
} else if (mediaType === MediaType.VIDEO) {
|
|
765
|
-
return h(TakeVideoIcon, {
|
|
766
|
-
"class": bem('button'),
|
|
767
|
-
"on": {
|
|
768
|
-
"click": function click() {
|
|
769
|
-
return _this7.mediaPick(mediaType, mediaAddType);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
} else if (mediaType === MediaType.AUDIO) {
|
|
774
|
-
return h(TakeAudioIcon, {
|
|
775
|
-
"class": bem('button'),
|
|
776
|
-
"on": {
|
|
777
|
-
"click": function click() {
|
|
778
|
-
return _this7.mediaPick(mediaType, mediaAddType);
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
});
|
|
782
|
-
} else if (mediaType === MediaType.FILE) {
|
|
783
|
-
return h(PickFileIcon, {
|
|
784
|
-
"class": bem('button'),
|
|
785
|
-
"on": {
|
|
786
|
-
"click": function click() {
|
|
787
|
-
return _this7.mediaPick(mediaType, mediaAddType);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
renderButton: function renderButton(mediaType, mediaAddType) {
|
|
794
|
-
var h = this.$createElement;
|
|
795
|
-
var label = '';
|
|
796
|
-
|
|
797
|
-
if (mediaType === MediaType.PHOTO) {
|
|
798
|
-
if (mediaAddType === MediaAddType.TAKE) {
|
|
799
|
-
label = '拍照';
|
|
800
|
-
} else if (mediaAddType === MediaAddType.PICK) {
|
|
801
|
-
label = '照片';
|
|
802
|
-
}
|
|
803
|
-
} else if (mediaType === MediaType.VIDEO) {
|
|
804
|
-
label = '摄像';
|
|
805
|
-
} else if (mediaType === MediaType.AUDIO) {
|
|
806
|
-
label = '录音';
|
|
807
|
-
} else if (mediaType === MediaType.FILE) {
|
|
808
|
-
label = '文档';
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
return h("div", {
|
|
812
|
-
"class": bem('box')
|
|
813
|
-
}, [this.renderIcon(mediaType, mediaAddType), h("div", {
|
|
814
|
-
"class": bem('label')
|
|
815
|
-
}, [label])]);
|
|
816
|
-
},
|
|
817
|
-
renderButtons: function renderButtons() {
|
|
818
|
-
var buttons = [];
|
|
819
|
-
|
|
820
|
-
if (this.allowTakePhoto) {
|
|
821
|
-
buttons.push(this.renderButton(MediaType.PHOTO, MediaAddType.TAKE));
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
if (this.allowPickPhoto) {
|
|
825
|
-
buttons.push(this.renderButton(MediaType.PHOTO, MediaAddType.PICK));
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
if (this.allowTakeVideo || this.allowPickVideo) {
|
|
829
|
-
var addType = MediaAddType.TAKE_AND_PICK;
|
|
830
|
-
|
|
831
|
-
if (!this.allowTakeVideo) {
|
|
832
|
-
addType = MediaAddType.PICK;
|
|
833
|
-
} else if (!this.allowPickVideo) {
|
|
834
|
-
addType = MediaAddType.TAKE;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
buttons.push(this.renderButton(MediaType.VIDEO, addType));
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
if (this.allowTakeAudio || this.allowPickAudio) {
|
|
841
|
-
var _addType = MediaAddType.TAKE_AND_PICK;
|
|
842
|
-
|
|
843
|
-
if (!this.allowTakeAudio) {
|
|
844
|
-
_addType = MediaAddType.PICK;
|
|
845
|
-
} else if (!this.allowPickAudio) {
|
|
846
|
-
_addType = MediaAddType.TAKE;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
buttons.push(this.renderButton(MediaType.AUDIO, _addType));
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
if (this.allowPickFile) {
|
|
853
|
-
buttons.push(this.renderButton(MediaType.FILE, MediaAddType.PICK));
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
return buttons;
|
|
857
|
-
},
|
|
858
|
-
genThumbnailMask: function genThumbnailMask(media) {
|
|
859
|
-
var h = this.$createElement;
|
|
860
|
-
var status = media.status,
|
|
861
|
-
message = media.message;
|
|
862
|
-
|
|
863
|
-
if (status === MediaUploadStatus.UPLOADING || status === MediaUploadStatus.FAILED) {
|
|
864
|
-
var MaskIcon = status === MediaUploadStatus.FAILED ? h(Icon, {
|
|
865
|
-
"attrs": {
|
|
866
|
-
"name": "close"
|
|
867
|
-
},
|
|
868
|
-
"class": bem('mask-icon')
|
|
869
|
-
}) : h(Loading, {
|
|
870
|
-
"class": bem('loading')
|
|
871
|
-
});
|
|
872
|
-
var showMessage = isDef(message) && message !== '';
|
|
873
|
-
return h("div", {
|
|
874
|
-
"class": bem('mask')
|
|
875
|
-
}, [MaskIcon, showMessage && h("div", {
|
|
876
|
-
"class": bem('mask-message')
|
|
877
|
-
}, [message])]);
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* 多媒体对应展示的缩略图
|
|
883
|
-
*/
|
|
884
|
-
renderMediaThumbnail: function renderMediaThumbnail(media) {
|
|
885
|
-
var h = this.$createElement;
|
|
886
|
-
|
|
887
|
-
if (media.showSrc) {
|
|
888
|
-
return h("zt-image", {
|
|
889
|
-
"attrs": {
|
|
890
|
-
"src": media.showSrc,
|
|
891
|
-
"fit": 'fill',
|
|
892
|
-
"radius": '4'
|
|
893
|
-
}
|
|
894
|
-
});
|
|
895
|
-
} else if (media.type === MediaType.VIDEO) {
|
|
896
|
-
return h(DefaultVideoIcon, {
|
|
897
|
-
"class": bem('thumbnail')
|
|
898
|
-
});
|
|
899
|
-
} else if (media.type === MediaType.AUDIO) {
|
|
900
|
-
return h(DefaultAudioIcon, {
|
|
901
|
-
"class": bem('thumbnail')
|
|
902
|
-
});
|
|
903
|
-
} else if (media.type === MediaType.FILE) {
|
|
904
|
-
return h(DefaultFileIcon, {
|
|
905
|
-
"class": bem('thumbnail')
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
renderMediaList: function renderMediaList() {
|
|
910
|
-
var _this8 = this;
|
|
911
|
-
|
|
912
|
-
var h = this.$createElement;
|
|
913
|
-
return this.mediaList.map(function (media, index) {
|
|
914
|
-
var showDelete = media.deletable && media.status !== MediaUploadStatus.UPLOADING;
|
|
915
|
-
var deleteIcon = showDelete && h(DeleteIcon, {
|
|
916
|
-
"class": bem('delete'),
|
|
917
|
-
"on": {
|
|
918
|
-
"click": function click(event) {
|
|
919
|
-
event.stopPropagation();
|
|
920
|
-
|
|
921
|
-
_this8.onDelete(media, index);
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
return h("zt-grid-item", {
|
|
926
|
-
"key": media.uniqueCode,
|
|
927
|
-
"on": {
|
|
928
|
-
"click": function click() {
|
|
929
|
-
return _this8.previewMedia(media, index);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
}, [_this8.renderMediaThumbnail(media), _this8.genThumbnailMask(media), deleteIcon]);
|
|
933
|
-
});
|
|
934
|
-
},
|
|
935
|
-
selectAction: function selectAction(action) {
|
|
936
|
-
this.actionVisible = false;
|
|
937
|
-
action.func && action.func();
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
render: function render() {
|
|
941
|
-
var _this9 = this;
|
|
942
|
-
|
|
943
|
-
var h = arguments[0];
|
|
944
|
-
var title = this.showTitle && h("div", {
|
|
945
|
-
"class": bem('title')
|
|
946
|
-
}, [this.title]);
|
|
947
|
-
return h("div", {
|
|
948
|
-
"class": bem()
|
|
949
|
-
}, [title, this.hiddenInput(), h("zt-media-player", {
|
|
950
|
-
"attrs": {
|
|
951
|
-
"mediaType": this.mediaTypeToPlay,
|
|
952
|
-
"mediaUrl": this.mediaUrlToPlay
|
|
953
|
-
},
|
|
954
|
-
"model": {
|
|
955
|
-
value: _this9.mediaPlayerVisible,
|
|
956
|
-
callback: function callback($$v) {
|
|
957
|
-
_this9.mediaPlayerVisible = $$v;
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}), h("zt-action-sheet", {
|
|
961
|
-
"attrs": {
|
|
962
|
-
"actions": this.actionOptions,
|
|
963
|
-
"title": '请选择',
|
|
964
|
-
"cancel-text": '取消',
|
|
965
|
-
"close-on-click-action": true
|
|
966
|
-
},
|
|
967
|
-
"on": {
|
|
968
|
-
"select": this.selectAction
|
|
969
|
-
},
|
|
970
|
-
"model": {
|
|
971
|
-
value: _this9.actionVisible,
|
|
972
|
-
callback: function callback($$v) {
|
|
973
|
-
_this9.actionVisible = $$v;
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
}), h("div", {
|
|
977
|
-
"class": bem('line')
|
|
978
|
-
}, [this.renderButtons()]), h("zt-grid", {
|
|
979
|
-
"directives": [{
|
|
980
|
-
name: "show",
|
|
981
|
-
value: this.mediaList.length
|
|
982
|
-
}],
|
|
983
|
-
"attrs": {
|
|
984
|
-
"column-num": '3',
|
|
985
|
-
"border": false,
|
|
986
|
-
"square": true,
|
|
987
|
-
"gutter": '4'
|
|
988
|
-
},
|
|
989
|
-
"class": bem('grid')
|
|
990
|
-
}, [this.renderMediaList()])]);
|
|
991
|
-
}
|
|
992
|
-
});
|