tlvant 0.0.22 → 0.0.24
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/es/action-sheet/index.css +1 -0
- package/es/action-sheet/index.js +177 -0
- package/es/action-sheet/index.less +112 -0
- package/es/action-sheet/style/index.js +7 -0
- package/es/action-sheet/style/less.js +7 -0
- package/es/area/index.js +321 -0
- package/es/area/style/index.js +3 -0
- package/es/area/style/less.js +3 -0
- package/es/button/index.css +1 -0
- package/es/button/index.js +171 -0
- package/es/button/index.less +238 -0
- package/es/button/style/index.js +5 -0
- package/es/button/style/less.js +5 -0
- package/es/calendar/components/Header.js +55 -0
- package/es/calendar/components/Month.js +326 -0
- package/es/calendar/index.css +1 -0
- package/es/calendar/index.js +539 -0
- package/es/calendar/index.less +210 -0
- package/es/calendar/style/index.js +9 -0
- package/es/calendar/style/less.js +9 -0
- package/es/calendar/utils.js +66 -0
- package/es/cell/index.css +1 -0
- package/es/cell/index.js +121 -0
- package/es/cell/index.less +103 -0
- package/es/cell/shared.js +24 -0
- package/es/cell/style/index.js +4 -0
- package/es/cell/style/less.js +4 -0
- package/es/cell-group/index.css +1 -0
- package/es/cell-group/index.js +34 -0
- package/es/cell-group/index.less +12 -0
- package/es/cell-group/style/index.js +2 -0
- package/es/cell-group/style/less.js +2 -0
- package/es/checkbox/index.css +1 -0
- package/es/checkbox/index.js +80 -0
- package/es/checkbox/index.less +85 -0
- package/es/checkbox/style/index.js +4 -0
- package/es/checkbox/style/less.js +4 -0
- package/es/checkbox-group/index.css +1 -0
- package/es/checkbox-group/index.js +64 -0
- package/es/checkbox-group/index.less +8 -0
- package/es/checkbox-group/style/index.js +2 -0
- package/es/checkbox-group/style/less.js +2 -0
- package/es/collapse/index.js +39 -0
- package/es/collapse/style/index.js +1 -0
- package/es/collapse/style/less.js +1 -0
- package/es/collapse-item/index.css +1 -0
- package/es/collapse-item/index.js +198 -0
- package/es/collapse-item/index.less +67 -0
- package/es/collapse-item/style/index.js +5 -0
- package/es/collapse-item/style/less.js +5 -0
- package/es/contact-card/index.css +1 -0
- package/es/contact-card/index.js +59 -0
- package/es/contact-card/index.less +42 -0
- package/es/contact-card/style/index.js +5 -0
- package/es/contact-card/style/less.js +5 -0
- package/es/contact-edit/index.css +1 -0
- package/es/contact-edit/index.js +193 -0
- package/es/contact-edit/index.less +30 -0
- package/es/contact-edit/style/index.js +14 -0
- package/es/contact-edit/style/less.js +14 -0
- package/es/contact-list/index.css +1 -0
- package/es/contact-list/index.js +119 -0
- package/es/contact-list/index.less +54 -0
- package/es/contact-list/style/index.js +10 -0
- package/es/contact-list/style/less.js +10 -0
- package/es/datetime-picker/DatePicker.js +246 -0
- package/es/datetime-picker/TimePicker.js +104 -0
- package/es/datetime-picker/index.js +29 -0
- package/es/datetime-picker/shared.js +110 -0
- package/es/datetime-picker/style/index.js +3 -0
- package/es/datetime-picker/style/less.js +3 -0
- package/es/datetime-picker/utils.js +29 -0
- package/es/demo-button/index-sfc.css +1 -0
- package/es/demo-button/index-sfc.less +9 -0
- package/es/demo-button/index.js +27 -0
- package/es/demo-button/style/index.js +1 -0
- package/es/demo-button/style/less.js +1 -0
- package/es/dialog/Dialog.js +246 -0
- package/es/dialog/index.css +1 -0
- package/es/dialog/index.js +104 -0
- package/es/dialog/index.less +153 -0
- package/es/dialog/style/index.js +10 -0
- package/es/dialog/style/less.js +10 -0
- package/es/dropdown-item/index.css +1 -0
- package/es/dropdown-item/index.js +210 -0
- package/es/dropdown-item/index.less +39 -0
- package/es/dropdown-item/style/index.js +7 -0
- package/es/dropdown-item/style/less.js +7 -0
- package/es/dropdown-menu/index.css +1 -0
- package/es/dropdown-menu/index.js +132 -0
- package/es/dropdown-menu/index.less +77 -0
- package/es/dropdown-menu/style/index.js +2 -0
- package/es/dropdown-menu/style/less.js +2 -0
- package/es/empty/Network.js +193 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +81 -0
- package/es/empty/index.less +32 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.css +1 -0
- package/es/field/index.js +623 -0
- package/es/field/index.less +172 -0
- package/es/field/style/index.js +5 -0
- package/es/field/style/less.js +5 -0
- package/es/form/index.js +200 -0
- package/es/form/style/index.js +1 -0
- package/es/form/style/less.js +1 -0
- package/es/goods-action/index.css +1 -0
- package/es/goods-action/index.js +24 -0
- package/es/goods-action/index.less +19 -0
- package/es/goods-action/style/index.js +2 -0
- package/es/goods-action/style/less.js +2 -0
- package/es/goods-action-button/index.css +1 -0
- package/es/goods-action-button/index.js +57 -0
- package/es/goods-action-button/index.less +34 -0
- package/es/goods-action-button/style/index.js +6 -0
- package/es/goods-action-button/style/less.js +6 -0
- package/es/icon/index.css +1 -0
- package/es/icon/index.js +74 -0
- package/es/icon/index.less +11 -0
- package/es/icon/local.css +1 -0
- package/es/icon/local.less +1 -0
- package/es/icon/style/index.js +3 -0
- package/es/icon/style/less.js +3 -0
- package/es/image/index.css +1 -0
- package/es/image/index.js +189 -0
- package/es/image/index.less +47 -0
- package/es/image/style/index.js +4 -0
- package/es/image/style/less.js +4 -0
- package/es/image-preview/ImagePreview.js +234 -0
- package/es/image-preview/ImagePreviewItem.js +242 -0
- package/es/image-preview/index.css +1 -0
- package/es/image-preview/index.js +86 -0
- package/es/image-preview/index.less +103 -0
- package/es/image-preview/shared.js +7 -0
- package/es/image-preview/style/index.js +10 -0
- package/es/image-preview/style/less.js +10 -0
- package/es/index-anchor/index.css +1 -0
- package/es/index-anchor/index.js +83 -0
- package/es/index-anchor/index.less +21 -0
- package/es/index-anchor/style/index.js +2 -0
- package/es/index-anchor/style/less.js +2 -0
- package/es/index-bar/index.css +1 -0
- package/es/index-bar/index.js +222 -0
- package/es/index-bar/index.less +27 -0
- package/es/index-bar/style/index.js +2 -0
- package/es/index-bar/style/less.js +2 -0
- package/es/index.js +80 -0
- package/es/info/index.css +1 -0
- package/es/info/index.js +30 -0
- package/es/info/index.less +29 -0
- package/es/info/style/index.js +2 -0
- package/es/info/style/less.js +2 -0
- package/es/lazyload/index.js +2 -0
- package/es/lazyload/style/index.js +1 -0
- package/es/lazyload/style/less.js +1 -0
- package/es/list/index.css +1 -0
- package/es/list/index.js +178 -0
- package/es/list/index.less +21 -0
- package/es/list/style/index.js +3 -0
- package/es/list/style/less.js +3 -0
- package/es/loading/index.css +1 -0
- package/es/loading/index.js +86 -0
- package/es/loading/index.less +103 -0
- package/es/loading/style/index.js +2 -0
- package/es/loading/style/less.js +2 -0
- package/es/locale/index.js +27 -0
- package/es/locale/lang/de-DE-formal.js +90 -0
- package/es/locale/lang/de-DE.js +90 -0
- package/es/locale/lang/en-US.js +90 -0
- package/es/locale/lang/es-ES.js +90 -0
- package/es/locale/lang/ja-JP.js +91 -0
- package/es/locale/lang/nb-NO.js +90 -0
- package/es/locale/lang/ro-RO.js +90 -0
- package/es/locale/lang/tr-TR.js +90 -0
- package/es/locale/lang/zh-CN.js +91 -0
- package/es/locale/lang/zh-HK.js +91 -0
- package/es/locale/lang/zh-TW.js +91 -0
- package/es/locale/style/index.js +1 -0
- package/es/locale/style/less.js +1 -0
- package/es/mixins/bind-event.js +29 -0
- package/es/mixins/checkbox.js +139 -0
- package/es/mixins/click-outside.js +33 -0
- package/es/mixins/close-on-popstate.js +38 -0
- package/es/mixins/field.js +24 -0
- package/es/mixins/popup/context.js +10 -0
- package/es/mixins/popup/index.js +208 -0
- package/es/mixins/popup/overlay.js +76 -0
- package/es/mixins/popup/type.js +0 -0
- package/es/mixins/portal.js +48 -0
- package/es/mixins/relation.js +76 -0
- package/es/mixins/slots.js +23 -0
- package/es/mixins/touch.js +58 -0
- package/es/nav-bar/index.css +1 -0
- package/es/nav-bar/index.js +124 -0
- package/es/nav-bar/index.less +77 -0
- package/es/nav-bar/style/index.js +4 -0
- package/es/nav-bar/style/less.js +4 -0
- package/es/number-keyboard/CollapseIcon.js +16 -0
- package/es/number-keyboard/DeleteIcon.js +16 -0
- package/es/number-keyboard/Key.js +121 -0
- package/es/number-keyboard/index.css +1 -0
- package/es/number-keyboard/index.js +409 -0
- package/es/number-keyboard/index.less +191 -0
- package/es/number-keyboard/style/index.js +3 -0
- package/es/number-keyboard/style/less.js +3 -0
- package/es/overlay/index.css +1 -0
- package/es/overlay/index.js +53 -0
- package/es/overlay/index.less +11 -0
- package/es/overlay/style/index.js +2 -0
- package/es/overlay/style/less.js +2 -0
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +84 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/picker/PickerColumn.js +300 -0
- package/es/picker/index.css +1 -0
- package/es/picker/index.js +383 -0
- package/es/picker/index.less +118 -0
- package/es/picker/shared.js +22 -0
- package/es/picker/style/index.js +3 -0
- package/es/picker/style/less.js +3 -0
- package/es/popover/index.css +1 -0
- package/es/popover/index.js +211 -0
- package/es/popover/index.less +270 -0
- package/es/popover/style/index.js +6 -0
- package/es/popover/style/less.js +6 -0
- package/es/popup/index.css +1 -0
- package/es/popup/index.js +111 -0
- package/es/popup/index.less +140 -0
- package/es/popup/style/index.js +5 -0
- package/es/popup/style/less.js +5 -0
- package/es/pull-refresh/index.css +1 -0
- package/es/pull-refresh/index.js +213 -0
- package/es/pull-refresh/index.less +25 -0
- package/es/pull-refresh/style/index.js +3 -0
- package/es/pull-refresh/style/less.js +3 -0
- package/es/radio/index.css +1 -0
- package/es/radio/index.js +32 -0
- package/es/radio/index.less +86 -0
- package/es/radio/style/index.js +4 -0
- package/es/radio/style/less.js +4 -0
- package/es/radio-group/index.css +1 -0
- package/es/radio-group/index.js +32 -0
- package/es/radio-group/index.less +8 -0
- package/es/radio-group/style/index.js +2 -0
- package/es/radio-group/style/less.js +2 -0
- package/es/rate/index.css +1 -0
- package/es/rate/index.js +227 -0
- package/es/rate/index.less +46 -0
- package/es/rate/style/index.js +4 -0
- package/es/rate/style/less.js +4 -0
- package/es/search/index.css +1 -0
- package/es/search/index.js +114 -0
- package/es/search/index.less +68 -0
- package/es/search/style/index.js +6 -0
- package/es/search/style/less.js +6 -0
- package/es/slider/index.css +1 -0
- package/es/slider/index.js +289 -0
- package/es/slider/index.less +94 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/style/less.js +2 -0
- package/es/step/index.css +1 -0
- package/es/step/index.js +115 -0
- package/es/step/index.less +151 -0
- package/es/step/style/index.js +4 -0
- package/es/step/style/less.js +4 -0
- package/es/stepper/index.css +1 -0
- package/es/stepper/index.js +355 -0
- package/es/stepper/index.less +129 -0
- package/es/stepper/style/index.js +2 -0
- package/es/stepper/style/less.js +2 -0
- package/es/steps/index.css +1 -0
- package/es/steps/index.js +35 -0
- package/es/steps/index.less +21 -0
- package/es/steps/style/index.js +2 -0
- package/es/steps/style/less.js +2 -0
- package/es/sticky/index.css +1 -0
- package/es/sticky/index.js +146 -0
- package/es/sticky/index.less +11 -0
- package/es/sticky/style/index.js +2 -0
- package/es/sticky/style/less.js +2 -0
- package/es/style/animation.css +1 -0
- package/es/style/animation.less +139 -0
- package/es/style/base.css +1 -0
- package/es/style/base.less +10 -0
- package/es/style/clearfix.css +1 -0
- package/es/style/clearfix.less +5 -0
- package/es/style/ellipsis.css +1 -0
- package/es/style/ellipsis.less +13 -0
- package/es/style/hairline.css +1 -0
- package/es/style/hairline.less +47 -0
- package/es/style/iconfont.css +1 -0
- package/es/style/iconfont.less +910 -0
- package/es/style/mixins/clearfix.css +0 -0
- package/es/style/mixins/clearfix.less +7 -0
- package/es/style/mixins/ellipsis.css +0 -0
- package/es/style/mixins/ellipsis.less +15 -0
- package/es/style/mixins/hairline.css +0 -0
- package/es/style/mixins/hairline.less +39 -0
- package/es/style/normalize.css +1 -0
- package/es/style/normalize.less +38 -0
- package/es/style/reset.css +1 -0
- package/es/style/reset.less +171 -0
- package/es/style/var.css +0 -0
- package/es/style/var.less +983 -0
- package/es/swipe/index.css +1 -0
- package/es/swipe/index.js +429 -0
- package/es/swipe/index.less +56 -0
- package/es/swipe/style/index.js +2 -0
- package/es/swipe/style/less.js +2 -0
- package/es/swipe-item/index.css +1 -0
- package/es/swipe-item/index.js +78 -0
- package/es/swipe-item/index.less +8 -0
- package/es/swipe-item/style/index.js +2 -0
- package/es/swipe-item/style/less.js +2 -0
- package/es/switch/index.css +1 -0
- package/es/switch/index.js +74 -0
- package/es/switch/index.less +57 -0
- package/es/switch/shared.js +19 -0
- package/es/switch/style/index.js +3 -0
- package/es/switch/style/less.js +3 -0
- package/es/tab/index.css +1 -0
- package/es/tab/index.js +102 -0
- package/es/tab/index.less +24 -0
- package/es/tab/style/index.js +2 -0
- package/es/tab/style/less.js +2 -0
- package/es/tabs/Content.js +78 -0
- package/es/tabs/Title.js +92 -0
- package/es/tabs/index.css +1 -0
- package/es/tabs/index.js +419 -0
- package/es/tabs/index.less +153 -0
- package/es/tabs/style/index.js +4 -0
- package/es/tabs/style/less.js +4 -0
- package/es/tabs/utils.js +43 -0
- package/es/tag/index.css +1 -0
- package/es/tag/index.js +74 -0
- package/es/tag/index.less +97 -0
- package/es/tag/style/index.js +4 -0
- package/es/tag/style/less.js +4 -0
- package/es/toast/Toast.js +155 -0
- package/es/toast/index.css +1 -0
- package/es/toast/index.js +189 -0
- package/es/toast/index.less +76 -0
- package/es/toast/lock-click.js +16 -0
- package/es/toast/style/index.js +7 -0
- package/es/toast/style/less.js +7 -0
- package/es/types/address-edit.d.js +11 -0
- package/es/types/area.d.js +11 -0
- package/es/types/calendar.d.js +11 -0
- package/es/types/checkbox-group.d.js +11 -0
- package/es/types/checkbox.d.js +11 -0
- package/es/types/collapse-item.d.js +11 -0
- package/es/types/component.d.js +11 -0
- package/es/types/count-down.d.js +11 -0
- package/es/types/datetime-picker.d.js +11 -0
- package/es/types/dialog.d.js +1 -0
- package/es/types/dropdown-item.d.js +11 -0
- package/es/types/field.d.js +11 -0
- package/es/types/form.d.js +11 -0
- package/es/types/image-preview.d.js +12 -0
- package/es/types/index-bar.d.js +11 -0
- package/es/types/index.d.js +590 -0
- package/es/types/jsx.d.js +0 -0
- package/es/types/lazyload.d.js +1 -0
- package/es/types/list.d.js +11 -0
- package/es/types/locale.d.js +1 -0
- package/es/types/mixins/popup.d.js +1 -0
- package/es/types/notify.d.js +2 -0
- package/es/types/picker.d.js +11 -0
- package/es/types/progress.d.js +11 -0
- package/es/types/sku.d.js +11 -0
- package/es/types/swipe-cell.d.js +11 -0
- package/es/types/swipe.d.js +11 -0
- package/es/types/tabs.d.js +11 -0
- package/es/types/toast.d.js +2 -0
- package/es/types/uploader.d.js +11 -0
- package/es/uploader/index.css +1 -0
- package/es/uploader/index.js +451 -0
- package/es/uploader/index.less +159 -0
- package/es/uploader/style/index.js +11 -0
- package/es/uploader/style/less.js +11 -0
- package/es/uploader/utils.js +57 -0
- package/es/utils/constant.js +10 -0
- package/es/utils/create/bem.js +39 -0
- package/es/utils/create/component.js +57 -0
- package/es/utils/create/i18n.js +16 -0
- package/es/utils/create/index.js +7 -0
- package/es/utils/deep-assign.js +24 -0
- package/es/utils/deep-clone.js +14 -0
- package/es/utils/dom/event.js +48 -0
- package/es/utils/dom/node.js +7 -0
- package/es/utils/dom/raf.js +36 -0
- package/es/utils/dom/reset-scroll.js +14 -0
- package/es/utils/dom/scroll.js +69 -0
- package/es/utils/dom/style.js +9 -0
- package/es/utils/format/number.js +47 -0
- package/es/utils/format/string.js +19 -0
- package/es/utils/format/unit.js +59 -0
- package/es/utils/functional.js +56 -0
- package/es/utils/index.js +29 -0
- package/es/utils/interceptor.js +22 -0
- package/es/utils/router.js +36 -0
- package/es/utils/types.js +0 -0
- package/es/utils/validate/date.js +4 -0
- package/es/utils/validate/email.js +5 -0
- package/es/utils/validate/mobile.js +4 -0
- package/es/utils/validate/number.js +11 -0
- package/es/utils/validate/system.js +9 -0
- package/es/utils/vnodes.js +36 -0
- package/lib/action-sheet/index.css +1 -0
- package/lib/action-sheet/index.js +194 -0
- package/lib/action-sheet/index.less +112 -0
- package/lib/action-sheet/style/index.js +7 -0
- package/lib/action-sheet/style/less.js +7 -0
- package/lib/area/index.js +331 -0
- package/lib/area/style/index.js +3 -0
- package/lib/area/style/less.js +3 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.js +188 -0
- package/lib/button/index.less +238 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/style/less.js +5 -0
- package/lib/calendar/components/Header.js +63 -0
- package/lib/calendar/components/Month.js +336 -0
- package/lib/calendar/index.css +1 -0
- package/lib/calendar/index.js +557 -0
- package/lib/calendar/index.less +210 -0
- package/lib/calendar/style/index.js +9 -0
- package/lib/calendar/style/less.js +9 -0
- package/lib/calendar/utils.js +91 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.js +137 -0
- package/lib/cell/index.less +103 -0
- package/lib/cell/shared.js +29 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/cell/style/less.js +4 -0
- package/lib/cell-group/index.css +1 -0
- package/lib/cell-group/index.js +47 -0
- package/lib/cell-group/index.less +12 -0
- package/lib/cell-group/style/index.js +2 -0
- package/lib/cell-group/style/less.js +2 -0
- package/lib/checkbox/index.css +1 -0
- package/lib/checkbox/index.js +88 -0
- package/lib/checkbox/index.less +85 -0
- package/lib/checkbox/style/index.js +4 -0
- package/lib/checkbox/style/less.js +4 -0
- package/lib/checkbox-group/index.css +1 -0
- package/lib/checkbox-group/index.js +73 -0
- package/lib/checkbox-group/index.less +8 -0
- package/lib/checkbox-group/style/index.js +2 -0
- package/lib/checkbox-group/style/less.js +2 -0
- package/lib/collapse/index.js +48 -0
- package/lib/collapse/style/index.js +1 -0
- package/lib/collapse/style/less.js +1 -0
- package/lib/collapse-item/index.css +1 -0
- package/lib/collapse-item/index.js +213 -0
- package/lib/collapse-item/index.less +67 -0
- package/lib/collapse-item/style/index.js +5 -0
- package/lib/collapse-item/style/less.js +5 -0
- package/lib/contact-card/index.css +1 -0
- package/lib/contact-card/index.js +72 -0
- package/lib/contact-card/index.less +42 -0
- package/lib/contact-card/style/index.js +5 -0
- package/lib/contact-card/style/less.js +5 -0
- package/lib/contact-edit/index.css +1 -0
- package/lib/contact-edit/index.js +210 -0
- package/lib/contact-edit/index.less +30 -0
- package/lib/contact-edit/style/index.js +14 -0
- package/lib/contact-edit/style/less.js +14 -0
- package/lib/contact-list/index.css +1 -0
- package/lib/contact-list/index.js +138 -0
- package/lib/contact-list/index.less +54 -0
- package/lib/contact-list/style/index.js +10 -0
- package/lib/contact-list/style/less.js +10 -0
- package/lib/datetime-picker/DatePicker.js +261 -0
- package/lib/datetime-picker/TimePicker.js +117 -0
- package/lib/datetime-picker/index.js +41 -0
- package/lib/datetime-picker/shared.js +124 -0
- package/lib/datetime-picker/style/index.js +3 -0
- package/lib/datetime-picker/style/less.js +3 -0
- package/lib/datetime-picker/utils.js +39 -0
- package/lib/demo-button/index-sfc.css +1 -0
- package/lib/demo-button/index-sfc.less +9 -0
- package/lib/demo-button/index.js +33 -0
- package/lib/demo-button/style/index.js +1 -0
- package/lib/demo-button/style/less.js +1 -0
- package/lib/dialog/Dialog.js +261 -0
- package/lib/dialog/index.css +1 -0
- package/lib/dialog/index.js +116 -0
- package/lib/dialog/index.less +153 -0
- package/lib/dialog/style/index.js +10 -0
- package/lib/dialog/style/less.js +10 -0
- package/lib/dropdown-item/index.css +1 -0
- package/lib/dropdown-item/index.js +225 -0
- package/lib/dropdown-item/index.less +39 -0
- package/lib/dropdown-item/style/index.js +7 -0
- package/lib/dropdown-item/style/less.js +7 -0
- package/lib/dropdown-menu/index.css +1 -0
- package/lib/dropdown-menu/index.js +142 -0
- package/lib/dropdown-menu/index.less +77 -0
- package/lib/dropdown-menu/style/index.js +2 -0
- package/lib/dropdown-menu/style/less.js +2 -0
- package/lib/empty/Network.js +198 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +92 -0
- package/lib/empty/index.less +32 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.css +1 -0
- package/lib/field/index.js +639 -0
- package/lib/field/index.less +172 -0
- package/lib/field/style/index.js +5 -0
- package/lib/field/style/less.js +5 -0
- package/lib/form/index.js +208 -0
- package/lib/form/style/index.js +1 -0
- package/lib/form/style/less.js +1 -0
- package/lib/goods-action/index.css +1 -0
- package/lib/goods-action/index.js +32 -0
- package/lib/goods-action/index.less +19 -0
- package/lib/goods-action/style/index.js +2 -0
- package/lib/goods-action/style/less.js +2 -0
- package/lib/goods-action-button/index.css +1 -0
- package/lib/goods-action-button/index.js +70 -0
- package/lib/goods-action-button/index.less +34 -0
- package/lib/goods-action-button/style/index.js +6 -0
- package/lib/goods-action-button/style/less.js +6 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.js +87 -0
- package/lib/icon/index.less +11 -0
- package/lib/icon/local.css +1 -0
- package/lib/icon/local.less +1 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/icon/style/less.js +3 -0
- package/lib/image/index.css +1 -0
- package/lib/image/index.js +199 -0
- package/lib/image/index.less +47 -0
- package/lib/image/style/index.js +4 -0
- package/lib/image/style/less.js +4 -0
- package/lib/image-preview/ImagePreview.js +250 -0
- package/lib/image-preview/ImagePreviewItem.js +256 -0
- package/lib/image-preview/index.css +1 -0
- package/lib/image-preview/index.js +96 -0
- package/lib/image-preview/index.less +103 -0
- package/lib/image-preview/shared.js +13 -0
- package/lib/image-preview/style/index.js +10 -0
- package/lib/image-preview/style/less.js +10 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.js +93 -0
- package/lib/index-anchor/index.less +21 -0
- package/lib/index-anchor/style/index.js +2 -0
- package/lib/index-anchor/style/less.js +2 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.js +235 -0
- package/lib/index-bar/index.less +27 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/style/less.js +2 -0
- package/lib/index.css +1 -0
- package/lib/index.js +262 -0
- package/lib/index.less +52 -0
- package/lib/info/index.css +1 -0
- package/lib/info/index.js +42 -0
- package/lib/info/index.less +29 -0
- package/lib/info/style/index.js +2 -0
- package/lib/info/style/less.js +2 -0
- package/lib/lazyload/index.js +11 -0
- package/lib/lazyload/style/index.js +1 -0
- package/lib/lazyload/style/less.js +1 -0
- package/lib/list/index.css +1 -0
- package/lib/list/index.js +191 -0
- package/lib/list/index.less +21 -0
- package/lib/list/style/index.js +3 -0
- package/lib/list/style/less.js +3 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.js +98 -0
- package/lib/loading/index.less +103 -0
- package/lib/loading/style/index.js +2 -0
- package/lib/loading/style/less.js +2 -0
- package/lib/locale/index.js +38 -0
- package/lib/locale/lang/de-DE-formal.js +95 -0
- package/lib/locale/lang/de-DE.js +95 -0
- package/lib/locale/lang/en-US.js +95 -0
- package/lib/locale/lang/es-ES.js +95 -0
- package/lib/locale/lang/ja-JP.js +96 -0
- package/lib/locale/lang/nb-NO.js +95 -0
- package/lib/locale/lang/ro-RO.js +95 -0
- package/lib/locale/lang/tr-TR.js +95 -0
- package/lib/locale/lang/zh-CN.js +96 -0
- package/lib/locale/lang/zh-HK.js +96 -0
- package/lib/locale/lang/zh-TW.js +96 -0
- package/lib/locale/style/index.js +1 -0
- package/lib/locale/style/less.js +1 -0
- package/lib/mixins/bind-event.js +36 -0
- package/lib/mixins/checkbox.js +152 -0
- package/lib/mixins/click-outside.js +41 -0
- package/lib/mixins/close-on-popstate.js +46 -0
- package/lib/mixins/field.js +29 -0
- package/lib/mixins/popup/context.js +15 -0
- package/lib/mixins/popup/index.js +224 -0
- package/lib/mixins/popup/overlay.js +95 -0
- package/lib/mixins/popup/type.js +1 -0
- package/lib/mixins/portal.js +53 -0
- package/lib/mixins/relation.js +84 -0
- package/lib/mixins/slots.js +29 -0
- package/lib/mixins/touch.js +65 -0
- package/lib/nav-bar/index.css +1 -0
- package/lib/nav-bar/index.js +135 -0
- package/lib/nav-bar/index.less +77 -0
- package/lib/nav-bar/style/index.js +4 -0
- package/lib/nav-bar/style/less.js +4 -0
- package/lib/number-keyboard/CollapseIcon.js +21 -0
- package/lib/number-keyboard/DeleteIcon.js +21 -0
- package/lib/number-keyboard/Key.js +134 -0
- package/lib/number-keyboard/index.css +1 -0
- package/lib/number-keyboard/index.js +423 -0
- package/lib/number-keyboard/index.less +191 -0
- package/lib/number-keyboard/style/index.js +3 -0
- package/lib/number-keyboard/style/less.js +3 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.js +67 -0
- package/lib/overlay/index.less +11 -0
- package/lib/overlay/style/index.js +2 -0
- package/lib/overlay/style/less.js +2 -0
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +97 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/picker/PickerColumn.js +314 -0
- package/lib/picker/index.css +1 -0
- package/lib/picker/index.js +399 -0
- package/lib/picker/index.less +118 -0
- package/lib/picker/shared.js +28 -0
- package/lib/picker/style/index.js +3 -0
- package/lib/picker/style/less.js +3 -0
- package/lib/popover/index.css +1 -0
- package/lib/popover/index.js +226 -0
- package/lib/popover/index.less +270 -0
- package/lib/popover/style/index.js +6 -0
- package/lib/popover/style/less.js +6 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.js +122 -0
- package/lib/popup/index.less +140 -0
- package/lib/popup/style/index.js +5 -0
- package/lib/popup/style/less.js +5 -0
- package/lib/pull-refresh/index.css +1 -0
- package/lib/pull-refresh/index.js +227 -0
- package/lib/pull-refresh/index.less +25 -0
- package/lib/pull-refresh/style/index.js +3 -0
- package/lib/pull-refresh/style/less.js +3 -0
- package/lib/radio/index.css +1 -0
- package/lib/radio/index.js +40 -0
- package/lib/radio/index.less +86 -0
- package/lib/radio/style/index.js +4 -0
- package/lib/radio/style/less.js +4 -0
- package/lib/radio-group/index.css +1 -0
- package/lib/radio-group/index.js +41 -0
- package/lib/radio-group/index.less +8 -0
- package/lib/radio-group/style/index.js +2 -0
- package/lib/radio-group/style/less.js +2 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.js +240 -0
- package/lib/rate/index.less +46 -0
- package/lib/rate/style/index.js +4 -0
- package/lib/rate/style/less.js +4 -0
- package/lib/search/index.css +1 -0
- package/lib/search/index.js +128 -0
- package/lib/search/index.less +68 -0
- package/lib/search/style/index.js +6 -0
- package/lib/search/style/less.js +6 -0
- package/lib/slider/index.css +1 -0
- package/lib/slider/index.js +300 -0
- package/lib/slider/index.less +94 -0
- package/lib/slider/style/index.js +2 -0
- package/lib/slider/style/less.js +2 -0
- package/lib/step/index.css +1 -0
- package/lib/step/index.js +127 -0
- package/lib/step/index.less +151 -0
- package/lib/step/style/index.js +4 -0
- package/lib/step/style/less.js +4 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.js +369 -0
- package/lib/stepper/index.less +129 -0
- package/lib/stepper/style/index.js +2 -0
- package/lib/stepper/style/less.js +2 -0
- package/lib/steps/index.css +1 -0
- package/lib/steps/index.js +43 -0
- package/lib/steps/index.less +21 -0
- package/lib/steps/style/index.js +2 -0
- package/lib/steps/style/less.js +2 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.js +157 -0
- package/lib/sticky/index.less +11 -0
- package/lib/sticky/style/index.js +2 -0
- package/lib/sticky/style/less.js +2 -0
- package/lib/style/animation.css +1 -0
- package/lib/style/animation.less +139 -0
- package/lib/style/base.css +1 -0
- package/lib/style/base.less +10 -0
- package/lib/style/clearfix.css +1 -0
- package/lib/style/clearfix.less +5 -0
- package/lib/style/ellipsis.css +1 -0
- package/lib/style/ellipsis.less +13 -0
- package/lib/style/hairline.css +1 -0
- package/lib/style/hairline.less +47 -0
- package/lib/style/iconfont.css +1 -0
- package/lib/style/iconfont.less +910 -0
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/clearfix.less +7 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/ellipsis.less +15 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/mixins/hairline.less +39 -0
- package/lib/style/normalize.css +1 -0
- package/lib/style/normalize.less +38 -0
- package/lib/style/reset.css +1 -0
- package/lib/style/reset.less +171 -0
- package/lib/style/var.css +0 -0
- package/lib/style/var.less +983 -0
- package/lib/swipe/index.css +1 -0
- package/lib/swipe/index.js +443 -0
- package/lib/swipe/index.less +56 -0
- package/lib/swipe/style/index.js +2 -0
- package/lib/swipe/style/less.js +2 -0
- package/lib/swipe-item/index.css +1 -0
- package/lib/swipe-item/index.js +89 -0
- package/lib/swipe-item/index.less +8 -0
- package/lib/swipe-item/style/index.js +2 -0
- package/lib/swipe-item/style/less.js +2 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.js +86 -0
- package/lib/switch/index.less +57 -0
- package/lib/switch/shared.js +25 -0
- package/lib/switch/style/index.js +3 -0
- package/lib/switch/style/less.js +3 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.js +114 -0
- package/lib/tab/index.less +24 -0
- package/lib/tab/style/index.js +2 -0
- package/lib/tab/style/less.js +2 -0
- package/lib/tabs/Content.js +90 -0
- package/lib/tabs/Title.js +102 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.js +441 -0
- package/lib/tabs/index.less +153 -0
- package/lib/tabs/style/index.js +4 -0
- package/lib/tabs/style/less.js +4 -0
- package/lib/tabs/utils.js +53 -0
- package/lib/tag/index.css +1 -0
- package/lib/tag/index.js +87 -0
- package/lib/tag/index.less +97 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/tag/style/less.js +4 -0
- package/lib/tlvant.js +16647 -0
- package/lib/tlvant.min.js +7 -0
- package/lib/toast/Toast.js +168 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.js +200 -0
- package/lib/toast/index.less +76 -0
- package/lib/toast/lock-click.js +21 -0
- package/lib/toast/style/index.js +7 -0
- package/lib/toast/style/less.js +7 -0
- package/lib/types/address-edit.d.js +22 -0
- package/lib/types/area.d.js +22 -0
- package/lib/types/calendar.d.js +22 -0
- package/lib/types/checkbox-group.d.js +22 -0
- package/lib/types/checkbox.d.js +22 -0
- package/lib/types/collapse-item.d.js +22 -0
- package/lib/types/component.d.js +22 -0
- package/lib/types/count-down.d.js +22 -0
- package/lib/types/datetime-picker.d.js +22 -0
- package/lib/types/dialog.d.js +6 -0
- package/lib/types/dropdown-item.d.js +22 -0
- package/lib/types/field.d.js +22 -0
- package/lib/types/form.d.js +22 -0
- package/lib/types/image-preview.d.js +24 -0
- package/lib/types/index-bar.d.js +22 -0
- package/lib/types/index.d.js +862 -0
- package/lib/types/jsx.d.js +1 -0
- package/lib/types/lazyload.d.js +6 -0
- package/lib/types/list.d.js +22 -0
- package/lib/types/locale.d.js +6 -0
- package/lib/types/mixins/popup.d.js +8 -0
- package/lib/types/notify.d.js +11 -0
- package/lib/types/picker.d.js +22 -0
- package/lib/types/progress.d.js +22 -0
- package/lib/types/sku.d.js +22 -0
- package/lib/types/swipe-cell.d.js +22 -0
- package/lib/types/swipe.d.js +22 -0
- package/lib/types/tabs.d.js +22 -0
- package/lib/types/toast.d.js +11 -0
- package/lib/types/uploader.d.js +22 -0
- package/lib/uploader/index.css +1 -0
- package/lib/uploader/index.js +467 -0
- package/lib/uploader/index.less +159 -0
- package/lib/uploader/style/index.js +11 -0
- package/lib/uploader/style/less.js +11 -0
- package/lib/uploader/utils.js +71 -0
- package/lib/utils/constant.js +22 -0
- package/lib/utils/create/bem.js +44 -0
- package/lib/utils/create/component.js +70 -0
- package/lib/utils/create/i18n.js +27 -0
- package/lib/utils/create/index.js +15 -0
- package/lib/utils/deep-assign.js +30 -0
- package/lib/utils/deep-clone.js +20 -0
- package/lib/utils/dom/event.js +62 -0
- package/lib/utils/dom/node.js +12 -0
- package/lib/utils/dom/raf.js +47 -0
- package/lib/utils/dom/reset-scroll.js +21 -0
- package/lib/utils/dom/scroll.js +89 -0
- package/lib/utils/dom/style.js +14 -0
- package/lib/utils/format/number.js +53 -0
- package/lib/utils/format/string.js +26 -0
- package/lib/utils/format/unit.js +68 -0
- package/lib/utils/functional.js +68 -0
- package/lib/utils/index.js +56 -0
- package/lib/utils/interceptor.js +28 -0
- package/lib/utils/router.js +46 -0
- package/lib/utils/types.js +1 -0
- package/lib/utils/validate/date.js +10 -0
- package/lib/utils/validate/email.js +10 -0
- package/lib/utils/validate/mobile.js +9 -0
- package/lib/utils/validate/number.js +18 -0
- package/lib/utils/validate/system.js +17 -0
- package/lib/utils/vnodes.js +41 -0
- package/package.json +2 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import Overlay from '../../overlay';
|
|
3
|
+
import { context } from './context';
|
|
4
|
+
import { mount } from '../../utils/functional';
|
|
5
|
+
import { removeNode } from '../../utils/dom/node';
|
|
6
|
+
var defaultConfig = {
|
|
7
|
+
className: '',
|
|
8
|
+
customStyle: {}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
function mountOverlay(vm) {
|
|
12
|
+
return mount(Overlay, {
|
|
13
|
+
on: {
|
|
14
|
+
// close popup when overlay clicked & closeOnClickOverlay is true
|
|
15
|
+
click: function click() {
|
|
16
|
+
vm.$emit('click-overlay');
|
|
17
|
+
|
|
18
|
+
if (vm.closeOnClickOverlay) {
|
|
19
|
+
if (vm.onClickOverlay) {
|
|
20
|
+
vm.onClickOverlay();
|
|
21
|
+
} else {
|
|
22
|
+
vm.close();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function updateOverlay(vm) {
|
|
31
|
+
var item = context.find(vm);
|
|
32
|
+
|
|
33
|
+
if (item) {
|
|
34
|
+
var el = vm.$el;
|
|
35
|
+
var config = item.config,
|
|
36
|
+
overlay = item.overlay;
|
|
37
|
+
|
|
38
|
+
if (el && el.parentNode) {
|
|
39
|
+
el.parentNode.insertBefore(overlay.$el, el);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
_extends(overlay, defaultConfig, config, {
|
|
43
|
+
show: true
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export function openOverlay(vm, config) {
|
|
48
|
+
var item = context.find(vm);
|
|
49
|
+
|
|
50
|
+
if (item) {
|
|
51
|
+
item.config = config;
|
|
52
|
+
} else {
|
|
53
|
+
var overlay = mountOverlay(vm);
|
|
54
|
+
context.stack.push({
|
|
55
|
+
vm: vm,
|
|
56
|
+
config: config,
|
|
57
|
+
overlay: overlay
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
updateOverlay(vm);
|
|
62
|
+
}
|
|
63
|
+
export function closeOverlay(vm) {
|
|
64
|
+
var item = context.find(vm);
|
|
65
|
+
|
|
66
|
+
if (item) {
|
|
67
|
+
item.overlay.show = false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export function removeOverlay(vm) {
|
|
71
|
+
var item = context.find(vm);
|
|
72
|
+
|
|
73
|
+
if (item) {
|
|
74
|
+
removeNode(item.overlay.$el);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function getElement(selector) {
|
|
2
|
+
if (typeof selector === 'string') {
|
|
3
|
+
return document.querySelector(selector);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
return selector();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function PortalMixin(_temp) {
|
|
10
|
+
var _ref = _temp === void 0 ? {} : _temp,
|
|
11
|
+
ref = _ref.ref,
|
|
12
|
+
afterPortal = _ref.afterPortal;
|
|
13
|
+
|
|
14
|
+
return {
|
|
15
|
+
props: {
|
|
16
|
+
getContainer: [String, Function]
|
|
17
|
+
},
|
|
18
|
+
watch: {
|
|
19
|
+
getContainer: 'portal'
|
|
20
|
+
},
|
|
21
|
+
mounted: function mounted() {
|
|
22
|
+
if (this.getContainer) {
|
|
23
|
+
this.portal();
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
portal: function portal() {
|
|
28
|
+
var getContainer = this.getContainer;
|
|
29
|
+
var el = ref ? this.$refs[ref] : this.$el;
|
|
30
|
+
var container;
|
|
31
|
+
|
|
32
|
+
if (getContainer) {
|
|
33
|
+
container = getElement(getContainer);
|
|
34
|
+
} else if (this.$parent) {
|
|
35
|
+
container = this.$parent.$el;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (container && container !== el.parentNode) {
|
|
39
|
+
container.appendChild(el);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (afterPortal) {
|
|
43
|
+
afterPortal.call(this);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { sortChildren } from '../utils/vnodes';
|
|
2
|
+
export function ChildrenMixin(_parent, options) {
|
|
3
|
+
var _inject, _computed;
|
|
4
|
+
|
|
5
|
+
if (options === void 0) {
|
|
6
|
+
options = {};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
var indexKey = options.indexKey || 'index';
|
|
10
|
+
return {
|
|
11
|
+
inject: (_inject = {}, _inject[_parent] = {
|
|
12
|
+
default: null
|
|
13
|
+
}, _inject),
|
|
14
|
+
computed: (_computed = {
|
|
15
|
+
parent: function parent() {
|
|
16
|
+
if (this.disableBindRelation) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return this[_parent];
|
|
21
|
+
}
|
|
22
|
+
}, _computed[indexKey] = function () {
|
|
23
|
+
this.bindRelation();
|
|
24
|
+
|
|
25
|
+
if (this.parent) {
|
|
26
|
+
return this.parent.children.indexOf(this);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return null;
|
|
30
|
+
}, _computed),
|
|
31
|
+
watch: {
|
|
32
|
+
disableBindRelation: function disableBindRelation(val) {
|
|
33
|
+
if (!val) {
|
|
34
|
+
this.bindRelation();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
mounted: function mounted() {
|
|
39
|
+
this.bindRelation();
|
|
40
|
+
},
|
|
41
|
+
beforeDestroy: function beforeDestroy() {
|
|
42
|
+
var _this = this;
|
|
43
|
+
|
|
44
|
+
if (this.parent) {
|
|
45
|
+
this.parent.children = this.parent.children.filter(function (item) {
|
|
46
|
+
return item !== _this;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
bindRelation: function bindRelation() {
|
|
52
|
+
if (!this.parent || this.parent.children.indexOf(this) !== -1) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
var children = [].concat(this.parent.children, [this]);
|
|
57
|
+
sortChildren(children, this.parent);
|
|
58
|
+
this.parent.children = children;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function ParentMixin(parent) {
|
|
64
|
+
return {
|
|
65
|
+
provide: function provide() {
|
|
66
|
+
var _ref;
|
|
67
|
+
|
|
68
|
+
return _ref = {}, _ref[parent] = this, _ref;
|
|
69
|
+
},
|
|
70
|
+
data: function data() {
|
|
71
|
+
return {
|
|
72
|
+
children: []
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use scopedSlots in Vue 2.6+
|
|
3
|
+
* downgrade to slots in lower version
|
|
4
|
+
*/
|
|
5
|
+
export var SlotsMixin = {
|
|
6
|
+
methods: {
|
|
7
|
+
slots: function slots(name, props) {
|
|
8
|
+
if (name === void 0) {
|
|
9
|
+
name = 'default';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
var $slots = this.$slots,
|
|
13
|
+
$scopedSlots = this.$scopedSlots;
|
|
14
|
+
var scopedSlot = $scopedSlots[name];
|
|
15
|
+
|
|
16
|
+
if (scopedSlot) {
|
|
17
|
+
return scopedSlot(props);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return $slots[name];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { on } from '../utils/dom/event';
|
|
2
|
+
var MIN_DISTANCE = 10;
|
|
3
|
+
|
|
4
|
+
function getDirection(x, y) {
|
|
5
|
+
if (x > y && x > MIN_DISTANCE) {
|
|
6
|
+
return 'horizontal';
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (y > x && y > MIN_DISTANCE) {
|
|
10
|
+
return 'vertical';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export var TouchMixin = {
|
|
17
|
+
data: function data() {
|
|
18
|
+
return {
|
|
19
|
+
direction: ''
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
touchStart: function touchStart(event) {
|
|
24
|
+
this.resetTouchStatus();
|
|
25
|
+
this.startX = event.touches[0].clientX;
|
|
26
|
+
this.startY = event.touches[0].clientY;
|
|
27
|
+
},
|
|
28
|
+
touchMove: function touchMove(event) {
|
|
29
|
+
var touch = event.touches[0];
|
|
30
|
+
this.deltaX = touch.clientX - this.startX;
|
|
31
|
+
this.deltaY = touch.clientY - this.startY;
|
|
32
|
+
this.offsetX = Math.abs(this.deltaX);
|
|
33
|
+
this.offsetY = Math.abs(this.deltaY);
|
|
34
|
+
this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
|
|
35
|
+
},
|
|
36
|
+
resetTouchStatus: function resetTouchStatus() {
|
|
37
|
+
this.direction = '';
|
|
38
|
+
this.deltaX = 0;
|
|
39
|
+
this.deltaY = 0;
|
|
40
|
+
this.offsetX = 0;
|
|
41
|
+
this.offsetY = 0;
|
|
42
|
+
},
|
|
43
|
+
// avoid Vue 2.6 event bubble issues by manually binding events
|
|
44
|
+
// https://github.com/youzan/vant/issues/3015
|
|
45
|
+
bindTouchEvent: function bindTouchEvent(el) {
|
|
46
|
+
var onTouchStart = this.onTouchStart,
|
|
47
|
+
onTouchMove = this.onTouchMove,
|
|
48
|
+
onTouchEnd = this.onTouchEnd;
|
|
49
|
+
on(el, 'touchstart', onTouchStart);
|
|
50
|
+
on(el, 'touchmove', onTouchMove);
|
|
51
|
+
|
|
52
|
+
if (onTouchEnd) {
|
|
53
|
+
on(el, 'touchend', onTouchEnd);
|
|
54
|
+
on(el, 'touchcancel', onTouchEnd);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-nav-bar{position:relative;z-index:1;line-height:22px;text-align:center;background-color:#3b99fc;-webkit-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-nav-bar__left{color:#ff594d}.van-nav-bar__content{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:46px}.van-nav-bar__arrow{margin-right:4px;font-size:16px}.van-nav-bar__title{max-width:60%;margin:0 auto;color:#fff;font-weight:550;font-size:16px}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 16px;font-size:14px;cursor:pointer}.van-nav-bar__left:active,.van-nav-bar__right:active{opacity:.7}.van-nav-bar__left{left:0}.van-nav-bar__left .van-icon{color:#fff}.van-nav-bar__right{right:0}.van-nav-bar__text{color:#333}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Utils
|
|
2
|
+
import { createNamespace } from '../utils';
|
|
3
|
+
import { BORDER_BOTTOM } from '../utils/constant'; // Components
|
|
4
|
+
|
|
5
|
+
import Icon from '../icon';
|
|
6
|
+
|
|
7
|
+
var _createNamespace = createNamespace('nav-bar'),
|
|
8
|
+
createComponent = _createNamespace[0],
|
|
9
|
+
bem = _createNamespace[1];
|
|
10
|
+
|
|
11
|
+
export default createComponent({
|
|
12
|
+
props: {
|
|
13
|
+
title: String,
|
|
14
|
+
fixed: Boolean,
|
|
15
|
+
zIndex: [Number, String],
|
|
16
|
+
leftText: String,
|
|
17
|
+
rightText: String,
|
|
18
|
+
leftArrow: Boolean,
|
|
19
|
+
placeholder: Boolean,
|
|
20
|
+
safeAreaInsetTop: Boolean,
|
|
21
|
+
border: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
data: function data() {
|
|
27
|
+
return {
|
|
28
|
+
height: null
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
mounted: function mounted() {
|
|
32
|
+
if (this.placeholder && this.fixed) {
|
|
33
|
+
this.height = this.$refs.navBar.getBoundingClientRect().height;
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
genLeft: function genLeft() {
|
|
38
|
+
var h = this.$createElement;
|
|
39
|
+
var leftSlot = this.slots('left');
|
|
40
|
+
|
|
41
|
+
if (leftSlot) {
|
|
42
|
+
return leftSlot;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return [this.leftArrow && h(Icon, {
|
|
46
|
+
"class": bem('arrow'),
|
|
47
|
+
"attrs": {
|
|
48
|
+
"name": "arrow-left"
|
|
49
|
+
}
|
|
50
|
+
}), this.leftText && h("span", {
|
|
51
|
+
"class": bem('text')
|
|
52
|
+
}, [this.leftText])];
|
|
53
|
+
},
|
|
54
|
+
genRight: function genRight() {
|
|
55
|
+
var h = this.$createElement;
|
|
56
|
+
var rightSlot = this.slots('right');
|
|
57
|
+
|
|
58
|
+
if (rightSlot) {
|
|
59
|
+
return rightSlot;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (this.rightText) {
|
|
63
|
+
return h("span", {
|
|
64
|
+
"class": bem('text')
|
|
65
|
+
}, [this.rightText]);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
genNavBar: function genNavBar() {
|
|
69
|
+
var _ref;
|
|
70
|
+
|
|
71
|
+
var h = this.$createElement;
|
|
72
|
+
return h("div", {
|
|
73
|
+
"ref": "navBar",
|
|
74
|
+
"style": {
|
|
75
|
+
zIndex: this.zIndex
|
|
76
|
+
},
|
|
77
|
+
"class": [bem({
|
|
78
|
+
fixed: this.fixed,
|
|
79
|
+
'safe-area-inset-top': this.safeAreaInsetTop
|
|
80
|
+
}), (_ref = {}, _ref[BORDER_BOTTOM] = this.border, _ref)]
|
|
81
|
+
}, [h("div", {
|
|
82
|
+
"class": bem('content')
|
|
83
|
+
}, [this.hasLeft() && h("div", {
|
|
84
|
+
"class": bem('left'),
|
|
85
|
+
"on": {
|
|
86
|
+
"click": this.onClickLeft
|
|
87
|
+
}
|
|
88
|
+
}, [this.genLeft()]), h("div", {
|
|
89
|
+
"class": [bem('title'), 'van-ellipsis']
|
|
90
|
+
}, [this.slots('title') || this.title]), this.hasRight() && h("div", {
|
|
91
|
+
"class": bem('right'),
|
|
92
|
+
"on": {
|
|
93
|
+
"click": this.onClickRight
|
|
94
|
+
}
|
|
95
|
+
}, [this.genRight()])])]);
|
|
96
|
+
},
|
|
97
|
+
hasLeft: function hasLeft() {
|
|
98
|
+
return this.leftArrow || this.leftText || this.slots('left');
|
|
99
|
+
},
|
|
100
|
+
hasRight: function hasRight() {
|
|
101
|
+
return this.rightText || this.slots('right');
|
|
102
|
+
},
|
|
103
|
+
onClickLeft: function onClickLeft(event) {
|
|
104
|
+
this.$emit('click-left', event);
|
|
105
|
+
},
|
|
106
|
+
onClickRight: function onClickRight(event) {
|
|
107
|
+
this.$emit('click-right', event);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
render: function render() {
|
|
111
|
+
var h = arguments[0];
|
|
112
|
+
|
|
113
|
+
if (this.placeholder && this.fixed) {
|
|
114
|
+
return h("div", {
|
|
115
|
+
"class": bem('placeholder'),
|
|
116
|
+
"style": {
|
|
117
|
+
height: this.height + "px"
|
|
118
|
+
}
|
|
119
|
+
}, [this.genNavBar()]);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return this.genNavBar();
|
|
123
|
+
}
|
|
124
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.van-nav-bar {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: @nav-bar-z-index;
|
|
6
|
+
line-height: @line-height-lg;
|
|
7
|
+
text-align: center;
|
|
8
|
+
background-color: @nav-bar-background-color;
|
|
9
|
+
user-select: none;
|
|
10
|
+
|
|
11
|
+
&--fixed {
|
|
12
|
+
position: fixed;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--safe-area-inset-top {
|
|
19
|
+
padding-top: constant(safe-area-inset-top);
|
|
20
|
+
padding-top: env(safe-area-inset-top);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.van-nav-bar__left {
|
|
24
|
+
color: @tl-FF594D;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__content {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
height: @nav-bar-height;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__arrow {
|
|
35
|
+
margin-right: @padding-base;
|
|
36
|
+
font-size: @nav-bar-arrow-size;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__title {
|
|
40
|
+
max-width: 60%;
|
|
41
|
+
margin: 0 auto;
|
|
42
|
+
color: @white;
|
|
43
|
+
font-weight: @font-weight;
|
|
44
|
+
font-size: @nav-bar-title-font-size;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__left,
|
|
48
|
+
&__right {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
padding: 0 @padding-md;
|
|
55
|
+
font-size: @font-size-md;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
|
|
58
|
+
&:active {
|
|
59
|
+
opacity: @active-opacity;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__left {
|
|
64
|
+
left: 0;
|
|
65
|
+
.van-icon {
|
|
66
|
+
color: @white;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__right {
|
|
71
|
+
right: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__text {
|
|
75
|
+
color: @tl-333333;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
render: function render() {
|
|
3
|
+
var h = arguments[0];
|
|
4
|
+
return h("svg", {
|
|
5
|
+
"attrs": {
|
|
6
|
+
"viewBox": "0 0 30 24",
|
|
7
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
8
|
+
}
|
|
9
|
+
}, [h("path", {
|
|
10
|
+
"attrs": {
|
|
11
|
+
"d": "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
|
|
12
|
+
"fill": "currentColor"
|
|
13
|
+
}
|
|
14
|
+
})]);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
render: function render() {
|
|
3
|
+
var h = arguments[0];
|
|
4
|
+
return h("svg", {
|
|
5
|
+
"attrs": {
|
|
6
|
+
"viewBox": "0 0 32 22",
|
|
7
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
8
|
+
}
|
|
9
|
+
}, [h("path", {
|
|
10
|
+
"attrs": {
|
|
11
|
+
"d": "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
|
|
12
|
+
"fill": "currentColor"
|
|
13
|
+
}
|
|
14
|
+
})]);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { createNamespace } from '../utils';
|
|
2
|
+
import { TouchMixin } from '../mixins/touch';
|
|
3
|
+
import Loading from '../loading';
|
|
4
|
+
import DeleteIcon from './DeleteIcon';
|
|
5
|
+
import CollapseIcon from './CollapseIcon';
|
|
6
|
+
|
|
7
|
+
var _createNamespace = createNamespace('key'),
|
|
8
|
+
createComponent = _createNamespace[0],
|
|
9
|
+
bem = _createNamespace[1];
|
|
10
|
+
|
|
11
|
+
export default createComponent({
|
|
12
|
+
mixins: [TouchMixin],
|
|
13
|
+
props: {
|
|
14
|
+
type: String,
|
|
15
|
+
text: [Number, String],
|
|
16
|
+
color: String,
|
|
17
|
+
wider: Boolean,
|
|
18
|
+
large: Boolean,
|
|
19
|
+
loading: Boolean,
|
|
20
|
+
isTielv: Boolean
|
|
21
|
+
},
|
|
22
|
+
data: function data() {
|
|
23
|
+
return {
|
|
24
|
+
active: false
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
mounted: function mounted() {
|
|
28
|
+
this.bindTouchEvent(this.$el);
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
onTouchStart: function onTouchStart(event) {
|
|
32
|
+
// compatible with Vue 2.6 event bubble bug
|
|
33
|
+
event.stopPropagation();
|
|
34
|
+
this.touchStart(event);
|
|
35
|
+
this.active = true;
|
|
36
|
+
},
|
|
37
|
+
onTouchMove: function onTouchMove(event) {
|
|
38
|
+
this.touchMove(event);
|
|
39
|
+
|
|
40
|
+
if (this.direction) {
|
|
41
|
+
this.active = false;
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
onTouchEnd: function onTouchEnd(event) {
|
|
45
|
+
if (this.active) {
|
|
46
|
+
// eliminate tap delay on safari
|
|
47
|
+
// see: https://github.com/youzan/vant/issues/6836
|
|
48
|
+
if (!this.slots('default')) {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
this.active = false;
|
|
53
|
+
this.$emit('press', this.text, this.type);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
genContent: function genContent() {
|
|
57
|
+
var h = this.$createElement;
|
|
58
|
+
var isExtra = this.type === 'extra';
|
|
59
|
+
var isDelete = this.type === 'delete';
|
|
60
|
+
var text = this.slots('default') || this.text;
|
|
61
|
+
|
|
62
|
+
if (this.loading) {
|
|
63
|
+
return h(Loading, {
|
|
64
|
+
"class": bem('loading-icon')
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (isDelete) {
|
|
69
|
+
return text || h(DeleteIcon, {
|
|
70
|
+
"class": bem('delete-icon')
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (isExtra) {
|
|
75
|
+
return text || h(CollapseIcon, {
|
|
76
|
+
"class": bem('collapse-icon')
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return text;
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
render: function render() {
|
|
84
|
+
var h = arguments[0];
|
|
85
|
+
|
|
86
|
+
if (this.isTielv) {
|
|
87
|
+
return h("div", {
|
|
88
|
+
"class": bem('tielv', {
|
|
89
|
+
wider: this.wider
|
|
90
|
+
})
|
|
91
|
+
}, [h("div", {
|
|
92
|
+
"attrs": {
|
|
93
|
+
"role": "button",
|
|
94
|
+
"tabindex": "0"
|
|
95
|
+
},
|
|
96
|
+
"class": bem([this.color, {
|
|
97
|
+
large: this.large,
|
|
98
|
+
active: this.active,
|
|
99
|
+
delete: this.type === 'delete',
|
|
100
|
+
tielvcolor: this.isTielv
|
|
101
|
+
}])
|
|
102
|
+
}, [this.genContent()])]);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return h("div", {
|
|
106
|
+
"class": bem('wrapper', {
|
|
107
|
+
wider: this.wider
|
|
108
|
+
})
|
|
109
|
+
}, [h("div", {
|
|
110
|
+
"attrs": {
|
|
111
|
+
"role": "button",
|
|
112
|
+
"tabindex": "0"
|
|
113
|
+
},
|
|
114
|
+
"class": bem([this.color, {
|
|
115
|
+
large: this.large,
|
|
116
|
+
active: this.active,
|
|
117
|
+
delete: this.type === 'delete'
|
|
118
|
+
}])
|
|
119
|
+
}, [this.genContent()])]);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:100%;padding-bottom:22px;background-color:#f2f3f5;-webkit-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:20px 20px 0 0}.van-number-keyboard__header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;height:34px;padding-top:6px;color:#646566;font-size:16px}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:-webkit-box;display:-webkit-flex;display:flex;padding:6px 0 0 6px}.van-number-keyboard__keys{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-number-keyboard__tielv{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap;padding:6px 0 0 6px;margin-bottom:-7px}.van-number-keyboard__tielvaway{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:36px;font-size:24px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.van-number-keyboard__collapse-icon{width:30px;height:24px}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:0 16px;color:#576b95;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-number-keyboard__close:active{opacity:.7}.van-number-keyboard__sidebar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:36px;font-size:24px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.van-key--large{position:absolute;top:0;right:6px;bottom:6px;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:16px}.van-key--active{background-color:#ebedf0}.van-key--blue{color:#fff;background-color:#1989fa}.van-key--blue.van-key--active{background-color:#0570db}.van-key__wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-flex-basis:33%;flex-basis:33%;box-sizing:border-box;padding:0 6px 6px 0}.van-key__wrapper--wider{-webkit-flex-basis:66%;flex-basis:66%}.van-key--tielvcolor{color:#00f}.van-key__tielv{position:relative;-webkit-box-flex:5;-webkit-flex:5;flex:5;-webkit-flex-basis:20%;flex-basis:20%;box-sizing:border-box;padding:0 6px 6px 0}.van-key__tielv--wider{-webkit-flex-basis:66%;flex-basis:66%}.van-key__delete-icon{width:32px;height:22px}.van-key__collapse-icon{width:30px;height:24px}.van-key__loading-icon{color:#fff}
|