tlvant 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.en.md +36 -36
- package/README.md +40 -40
- package/package.json +98 -99
- package/es/action-sheet/index.css +0 -1
- package/es/action-sheet/index.js +0 -177
- package/es/action-sheet/index.less +0 -112
- 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 -3
- package/es/area/style/less.js +0 -3
- package/es/button/index.css +0 -1
- package/es/button/index.js +0 -171
- package/es/button/index.less +0 -238
- package/es/button/style/index.js +0 -5
- package/es/button/style/less.js +0 -5
- package/es/calendar/components/Header.js +0 -55
- package/es/calendar/components/Month.js +0 -326
- package/es/calendar/index.css +0 -1
- package/es/calendar/index.js +0 -539
- package/es/calendar/index.less +0 -210
- 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/cell/index.css +0 -1
- package/es/cell/index.js +0 -121
- package/es/cell/index.less +0 -103
- package/es/cell/shared.js +0 -24
- 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 -34
- package/es/cell-group/index.less +0 -12
- 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 -85
- 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/collapse/index.js +0 -39
- 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 -198
- package/es/collapse-item/index.less +0 -67
- package/es/collapse-item/style/index.js +0 -5
- package/es/collapse-item/style/less.js +0 -5
- package/es/contact-card/index.css +0 -1
- package/es/contact-card/index.js +0 -59
- package/es/contact-card/index.less +0 -42
- package/es/contact-card/style/index.js +0 -5
- package/es/contact-card/style/less.js +0 -5
- package/es/contact-edit/index.css +0 -1
- package/es/contact-edit/index.js +0 -193
- package/es/contact-edit/index.less +0 -30
- package/es/contact-edit/style/index.js +0 -14
- package/es/contact-edit/style/less.js +0 -14
- package/es/contact-list/index.css +0 -1
- package/es/contact-list/index.js +0 -119
- package/es/contact-list/index.less +0 -54
- package/es/contact-list/style/index.js +0 -10
- package/es/contact-list/style/less.js +0 -10
- package/es/datetime-picker/DatePicker.js +0 -246
- package/es/datetime-picker/TimePicker.js +0 -104
- package/es/datetime-picker/index.js +0 -29
- package/es/datetime-picker/shared.js +0 -110
- package/es/datetime-picker/style/index.js +0 -3
- package/es/datetime-picker/style/less.js +0 -3
- package/es/datetime-picker/utils.js +0 -29
- package/es/demo-button/index-sfc.css +0 -1
- package/es/demo-button/index-sfc.less +0 -9
- package/es/demo-button/index.js +0 -27
- package/es/demo-button/style/index.js +0 -1
- package/es/demo-button/style/less.js +0 -1
- package/es/dialog/Dialog.js +0 -246
- package/es/dialog/index.css +0 -1
- package/es/dialog/index.js +0 -104
- package/es/dialog/index.less +0 -153
- package/es/dialog/style/index.js +0 -10
- package/es/dialog/style/less.js +0 -10
- package/es/dropdown-item/index.css +0 -1
- package/es/dropdown-item/index.js +0 -210
- package/es/dropdown-item/index.less +0 -39
- package/es/dropdown-item/style/index.js +0 -7
- package/es/dropdown-item/style/less.js +0 -7
- package/es/dropdown-menu/index.css +0 -1
- package/es/dropdown-menu/index.js +0 -132
- package/es/dropdown-menu/index.less +0 -77
- package/es/dropdown-menu/style/index.js +0 -2
- package/es/dropdown-menu/style/less.js +0 -2
- package/es/empty/Network.js +0 -193
- package/es/empty/index.css +0 -1
- package/es/empty/index.js +0 -81
- package/es/empty/index.less +0 -32
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/less.js +0 -2
- package/es/field/index.css +0 -1
- package/es/field/index.js +0 -623
- package/es/field/index.less +0 -172
- package/es/field/style/index.js +0 -5
- package/es/field/style/less.js +0 -5
- 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/goods-action/index.css +0 -1
- package/es/goods-action/index.js +0 -24
- package/es/goods-action/index.less +0 -19
- package/es/goods-action/style/index.js +0 -2
- package/es/goods-action/style/less.js +0 -2
- package/es/goods-action-button/index.css +0 -1
- package/es/goods-action-button/index.js +0 -57
- package/es/goods-action-button/index.less +0 -34
- package/es/goods-action-button/style/index.js +0 -6
- package/es/goods-action-button/style/less.js +0 -6
- package/es/icon/index.css +0 -1
- package/es/icon/index.js +0 -74
- package/es/icon/index.less +0 -11
- 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 -234
- package/es/image-preview/ImagePreviewItem.js +0 -242
- package/es/image-preview/index.css +0 -1
- package/es/image-preview/index.js +0 -86
- package/es/image-preview/index.less +0 -103
- 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 -21
- package/es/index-anchor/style/index.js +0 -2
- package/es/index-anchor/style/less.js +0 -2
- package/es/index-bar/index.css +0 -1
- package/es/index-bar/index.js +0 -222
- package/es/index-bar/index.less +0 -27
- package/es/index-bar/style/index.js +0 -2
- package/es/index-bar/style/less.js +0 -2
- package/es/index.js +0 -80
- 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.css +0 -1
- package/es/list/index.js +0 -178
- package/es/list/index.less +0 -21
- package/es/list/style/index.js +0 -3
- package/es/list/style/less.js +0 -3
- package/es/loading/index.css +0 -1
- package/es/loading/index.js +0 -86
- package/es/loading/index.less +0 -103
- 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/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/tr-TR.js +0 -90
- package/es/locale/lang/zh-CN.js +0 -91
- 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/mixins/bind-event.js +0 -29
- package/es/mixins/checkbox.js +0 -139
- 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 -10
- package/es/mixins/popup/index.js +0 -208
- package/es/mixins/popup/overlay.js +0 -76
- package/es/mixins/popup/type.js +0 -0
- package/es/mixins/portal.js +0 -48
- package/es/mixins/relation.js +0 -76
- package/es/mixins/slots.js +0 -23
- package/es/mixins/touch.js +0 -58
- package/es/nav-bar/index.css +0 -1
- package/es/nav-bar/index.js +0 -124
- package/es/nav-bar/index.less +0 -77
- package/es/nav-bar/style/index.js +0 -4
- package/es/nav-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 -121
- package/es/number-keyboard/index.css +0 -1
- package/es/number-keyboard/index.js +0 -409
- package/es/number-keyboard/index.less +0 -191
- package/es/number-keyboard/style/index.js +0 -3
- package/es/number-keyboard/style/less.js +0 -3
- package/es/overlay/index.css +0 -1
- 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.css +0 -1
- package/es/password-input/index.js +0 -84
- 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/picker/PickerColumn.js +0 -300
- package/es/picker/index.css +0 -1
- package/es/picker/index.js +0 -383
- package/es/picker/index.less +0 -118
- package/es/picker/shared.js +0 -22
- package/es/picker/style/index.js +0 -3
- package/es/picker/style/less.js +0 -3
- 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.css +0 -1
- package/es/popup/index.js +0 -111
- package/es/popup/index.less +0 -140
- package/es/popup/style/index.js +0 -5
- package/es/popup/style/less.js +0 -5
- package/es/pull-refresh/index.css +0 -1
- package/es/pull-refresh/index.js +0 -213
- 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 -86
- 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.css +0 -1
- package/es/rate/index.js +0 -227
- package/es/rate/index.less +0 -46
- package/es/rate/style/index.js +0 -4
- package/es/rate/style/less.js +0 -4
- package/es/search/index.css +0 -1
- package/es/search/index.js +0 -114
- package/es/search/index.less +0 -68
- package/es/search/style/index.js +0 -6
- package/es/search/style/less.js +0 -6
- package/es/slider/index.css +0 -1
- package/es/slider/index.js +0 -289
- package/es/slider/index.less +0 -94
- 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 -115
- package/es/step/index.less +0 -151
- package/es/step/style/index.js +0 -4
- package/es/step/style/less.js +0 -4
- package/es/stepper/index.css +0 -1
- package/es/stepper/index.js +0 -355
- package/es/stepper/index.less +0 -129
- 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 -35
- package/es/steps/index.less +0 -21
- package/es/steps/style/index.js +0 -2
- package/es/steps/style/less.js +0 -2
- package/es/sticky/index.css +0 -1
- package/es/sticky/index.js +0 -146
- package/es/sticky/index.less +0 -11
- package/es/sticky/style/index.js +0 -2
- package/es/sticky/style/less.js +0 -2
- package/es/style/animation.css +0 -1
- package/es/style/animation.less +0 -139
- package/es/style/base.css +0 -1
- package/es/style/base.less +0 -10
- 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/iconfont.css +0 -1
- package/es/style/iconfont.less +0 -910
- package/es/style/mixins/clearfix.css +0 -0
- package/es/style/mixins/clearfix.less +0 -7
- package/es/style/mixins/ellipsis.css +0 -0
- package/es/style/mixins/ellipsis.less +0 -15
- package/es/style/mixins/hairline.css +0 -0
- package/es/style/mixins/hairline.less +0 -39
- package/es/style/normalize.css +0 -1
- 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.css +0 -0
- package/es/style/var.less +0 -983
- package/es/swipe/index.css +0 -1
- package/es/swipe/index.js +0 -429
- package/es/swipe/index.less +0 -56
- package/es/swipe/style/index.js +0 -2
- package/es/swipe/style/less.js +0 -2
- package/es/swipe-item/index.css +0 -1
- 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.css +0 -1
- package/es/switch/index.js +0 -74
- package/es/switch/index.less +0 -57
- 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/tab/index.css +0 -1
- package/es/tab/index.js +0 -102
- package/es/tab/index.less +0 -24
- package/es/tab/style/index.js +0 -2
- package/es/tab/style/less.js +0 -2
- package/es/tabs/Content.js +0 -78
- package/es/tabs/Title.js +0 -92
- package/es/tabs/index.css +0 -1
- package/es/tabs/index.js +0 -419
- package/es/tabs/index.less +0 -153
- 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 -74
- package/es/tag/index.less +0 -97
- package/es/tag/style/index.js +0 -4
- package/es/tag/style/less.js +0 -4
- package/es/toast/Toast.js +0 -155
- package/es/toast/index.css +0 -1
- package/es/toast/index.js +0 -189
- package/es/toast/index.less +0 -76
- 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/types/address-edit.d.js +0 -11
- package/es/types/area.d.js +0 -11
- package/es/types/calendar.d.js +0 -11
- package/es/types/checkbox-group.d.js +0 -11
- package/es/types/checkbox.d.js +0 -11
- package/es/types/collapse-item.d.js +0 -11
- package/es/types/component.d.js +0 -11
- package/es/types/count-down.d.js +0 -11
- package/es/types/datetime-picker.d.js +0 -11
- package/es/types/dialog.d.js +0 -1
- package/es/types/dropdown-item.d.js +0 -11
- package/es/types/field.d.js +0 -11
- package/es/types/form.d.js +0 -11
- package/es/types/image-preview.d.js +0 -12
- package/es/types/index-bar.d.js +0 -11
- package/es/types/index.d.js +0 -590
- package/es/types/jsx.d.js +0 -0
- package/es/types/lazyload.d.js +0 -1
- package/es/types/list.d.js +0 -11
- package/es/types/locale.d.js +0 -1
- package/es/types/mixins/popup.d.js +0 -1
- package/es/types/notify.d.js +0 -2
- package/es/types/picker.d.js +0 -11
- package/es/types/progress.d.js +0 -11
- package/es/types/sku.d.js +0 -11
- package/es/types/swipe-cell.d.js +0 -11
- package/es/types/swipe.d.js +0 -11
- package/es/types/tabs.d.js +0 -11
- package/es/types/toast.d.js +0 -2
- package/es/types/uploader.d.js +0 -11
- package/es/uploader/index.css +0 -1
- package/es/uploader/index.js +0 -451
- package/es/uploader/index.less +0 -159
- package/es/uploader/style/index.js +0 -11
- package/es/uploader/style/less.js +0 -11
- package/es/uploader/utils.js +0 -57
- package/es/utils/constant.js +0 -10
- package/es/utils/create/bem.js +0 -39
- package/es/utils/create/component.js +0 -57
- 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 -14
- 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/format/number.js +0 -47
- 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/index.js +0 -29
- package/es/utils/interceptor.js +0 -22
- package/es/utils/router.js +0 -36
- package/es/utils/types.js +0 -0
- 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/action-sheet/index.css +0 -1
- package/lib/action-sheet/index.js +0 -194
- package/lib/action-sheet/index.less +0 -112
- 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 -3
- package/lib/area/style/less.js +0 -3
- package/lib/button/index.css +0 -1
- package/lib/button/index.js +0 -188
- package/lib/button/index.less +0 -238
- package/lib/button/style/index.js +0 -5
- package/lib/button/style/less.js +0 -5
- package/lib/calendar/components/Header.js +0 -63
- package/lib/calendar/components/Month.js +0 -336
- package/lib/calendar/index.css +0 -1
- package/lib/calendar/index.js +0 -557
- package/lib/calendar/index.less +0 -210
- 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/cell/index.css +0 -1
- package/lib/cell/index.js +0 -137
- package/lib/cell/index.less +0 -103
- package/lib/cell/shared.js +0 -29
- package/lib/cell/style/index.js +0 -4
- package/lib/cell/style/less.js +0 -4
- package/lib/cell-group/index.css +0 -1
- package/lib/cell-group/index.js +0 -47
- package/lib/cell-group/index.less +0 -12
- 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 -85
- 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/collapse/index.js +0 -48
- 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 -213
- package/lib/collapse-item/index.less +0 -67
- package/lib/collapse-item/style/index.js +0 -5
- package/lib/collapse-item/style/less.js +0 -5
- package/lib/contact-card/index.css +0 -1
- package/lib/contact-card/index.js +0 -72
- package/lib/contact-card/index.less +0 -42
- package/lib/contact-card/style/index.js +0 -5
- package/lib/contact-card/style/less.js +0 -5
- package/lib/contact-edit/index.css +0 -1
- package/lib/contact-edit/index.js +0 -210
- package/lib/contact-edit/index.less +0 -30
- package/lib/contact-edit/style/index.js +0 -14
- package/lib/contact-edit/style/less.js +0 -14
- package/lib/contact-list/index.css +0 -1
- package/lib/contact-list/index.js +0 -138
- package/lib/contact-list/index.less +0 -54
- package/lib/contact-list/style/index.js +0 -10
- package/lib/contact-list/style/less.js +0 -10
- package/lib/datetime-picker/DatePicker.js +0 -261
- package/lib/datetime-picker/TimePicker.js +0 -117
- package/lib/datetime-picker/index.js +0 -41
- package/lib/datetime-picker/shared.js +0 -124
- package/lib/datetime-picker/style/index.js +0 -3
- package/lib/datetime-picker/style/less.js +0 -3
- package/lib/datetime-picker/utils.js +0 -39
- package/lib/demo-button/index-sfc.css +0 -1
- package/lib/demo-button/index-sfc.less +0 -9
- package/lib/demo-button/index.js +0 -33
- package/lib/demo-button/style/index.js +0 -1
- package/lib/demo-button/style/less.js +0 -1
- package/lib/dialog/Dialog.js +0 -261
- package/lib/dialog/index.css +0 -1
- package/lib/dialog/index.js +0 -116
- package/lib/dialog/index.less +0 -153
- package/lib/dialog/style/index.js +0 -10
- package/lib/dialog/style/less.js +0 -10
- package/lib/dropdown-item/index.css +0 -1
- package/lib/dropdown-item/index.js +0 -225
- package/lib/dropdown-item/index.less +0 -39
- package/lib/dropdown-item/style/index.js +0 -7
- package/lib/dropdown-item/style/less.js +0 -7
- package/lib/dropdown-menu/index.css +0 -1
- package/lib/dropdown-menu/index.js +0 -142
- package/lib/dropdown-menu/index.less +0 -77
- package/lib/dropdown-menu/style/index.js +0 -2
- package/lib/dropdown-menu/style/less.js +0 -2
- package/lib/empty/Network.js +0 -198
- package/lib/empty/index.css +0 -1
- package/lib/empty/index.js +0 -92
- package/lib/empty/index.less +0 -32
- package/lib/empty/style/index.js +0 -2
- package/lib/empty/style/less.js +0 -2
- package/lib/field/index.css +0 -1
- package/lib/field/index.js +0 -639
- package/lib/field/index.less +0 -172
- package/lib/field/style/index.js +0 -5
- package/lib/field/style/less.js +0 -5
- 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/goods-action/index.css +0 -1
- package/lib/goods-action/index.js +0 -32
- package/lib/goods-action/index.less +0 -19
- package/lib/goods-action/style/index.js +0 -2
- package/lib/goods-action/style/less.js +0 -2
- package/lib/goods-action-button/index.css +0 -1
- package/lib/goods-action-button/index.js +0 -70
- package/lib/goods-action-button/index.less +0 -34
- package/lib/goods-action-button/style/index.js +0 -6
- package/lib/goods-action-button/style/less.js +0 -6
- package/lib/icon/index.css +0 -1
- package/lib/icon/index.js +0 -87
- package/lib/icon/index.less +0 -11
- package/lib/icon/local.css +0 -1
- package/lib/icon/local.less +0 -1
- package/lib/icon/style/index.js +0 -3
- 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 -250
- package/lib/image-preview/ImagePreviewItem.js +0 -256
- package/lib/image-preview/index.css +0 -1
- package/lib/image-preview/index.js +0 -96
- package/lib/image-preview/index.less +0 -103
- 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 -21
- package/lib/index-anchor/style/index.js +0 -2
- package/lib/index-anchor/style/less.js +0 -2
- package/lib/index-bar/index.css +0 -1
- package/lib/index-bar/index.js +0 -235
- package/lib/index-bar/index.less +0 -27
- package/lib/index-bar/style/index.js +0 -2
- package/lib/index-bar/style/less.js +0 -2
- package/lib/index.css +0 -1
- package/lib/index.js +0 -262
- package/lib/index.less +0 -52
- 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.css +0 -1
- package/lib/list/index.js +0 -191
- package/lib/list/index.less +0 -21
- package/lib/list/style/index.js +0 -3
- package/lib/list/style/less.js +0 -3
- package/lib/loading/index.css +0 -1
- package/lib/loading/index.js +0 -98
- package/lib/loading/index.less +0 -103
- package/lib/loading/style/index.js +0 -2
- package/lib/loading/style/less.js +0 -2
- package/lib/locale/index.js +0 -38
- package/lib/locale/lang/de-DE-formal.js +0 -95
- package/lib/locale/lang/de-DE.js +0 -95
- package/lib/locale/lang/en-US.js +0 -95
- package/lib/locale/lang/es-ES.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/tr-TR.js +0 -95
- package/lib/locale/lang/zh-CN.js +0 -96
- package/lib/locale/lang/zh-HK.js +0 -96
- package/lib/locale/lang/zh-TW.js +0 -96
- package/lib/locale/style/index.js +0 -1
- package/lib/locale/style/less.js +0 -1
- package/lib/mixins/bind-event.js +0 -36
- package/lib/mixins/checkbox.js +0 -152
- 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 -15
- package/lib/mixins/popup/index.js +0 -224
- package/lib/mixins/popup/overlay.js +0 -95
- package/lib/mixins/popup/type.js +0 -1
- package/lib/mixins/portal.js +0 -53
- package/lib/mixins/relation.js +0 -84
- package/lib/mixins/slots.js +0 -29
- package/lib/mixins/touch.js +0 -65
- package/lib/nav-bar/index.css +0 -1
- package/lib/nav-bar/index.js +0 -135
- package/lib/nav-bar/index.less +0 -77
- package/lib/nav-bar/style/index.js +0 -4
- package/lib/nav-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 -134
- package/lib/number-keyboard/index.css +0 -1
- package/lib/number-keyboard/index.js +0 -423
- package/lib/number-keyboard/index.less +0 -191
- package/lib/number-keyboard/style/index.js +0 -3
- package/lib/number-keyboard/style/less.js +0 -3
- package/lib/overlay/index.css +0 -1
- package/lib/overlay/index.js +0 -67
- package/lib/overlay/index.less +0 -11
- package/lib/overlay/style/index.js +0 -2
- package/lib/overlay/style/less.js +0 -2
- package/lib/password-input/index.css +0 -1
- package/lib/password-input/index.js +0 -97
- package/lib/password-input/index.less +0 -83
- package/lib/password-input/style/index.js +0 -2
- package/lib/password-input/style/less.js +0 -2
- package/lib/picker/PickerColumn.js +0 -314
- package/lib/picker/index.css +0 -1
- package/lib/picker/index.js +0 -399
- package/lib/picker/index.less +0 -118
- package/lib/picker/shared.js +0 -28
- package/lib/picker/style/index.js +0 -3
- package/lib/picker/style/less.js +0 -3
- 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.css +0 -1
- package/lib/popup/index.js +0 -122
- package/lib/popup/index.less +0 -140
- package/lib/popup/style/index.js +0 -5
- package/lib/popup/style/less.js +0 -5
- package/lib/pull-refresh/index.css +0 -1
- package/lib/pull-refresh/index.js +0 -227
- package/lib/pull-refresh/index.less +0 -25
- package/lib/pull-refresh/style/index.js +0 -3
- 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 -86
- 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.css +0 -1
- package/lib/rate/index.js +0 -240
- package/lib/rate/index.less +0 -46
- package/lib/rate/style/index.js +0 -4
- package/lib/rate/style/less.js +0 -4
- package/lib/search/index.css +0 -1
- package/lib/search/index.js +0 -128
- package/lib/search/index.less +0 -68
- package/lib/search/style/index.js +0 -6
- package/lib/search/style/less.js +0 -6
- package/lib/slider/index.css +0 -1
- package/lib/slider/index.js +0 -300
- package/lib/slider/index.less +0 -94
- 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 -127
- package/lib/step/index.less +0 -151
- package/lib/step/style/index.js +0 -4
- package/lib/step/style/less.js +0 -4
- package/lib/stepper/index.css +0 -1
- package/lib/stepper/index.js +0 -369
- package/lib/stepper/index.less +0 -129
- package/lib/stepper/style/index.js +0 -2
- package/lib/stepper/style/less.js +0 -2
- package/lib/steps/index.css +0 -1
- package/lib/steps/index.js +0 -43
- package/lib/steps/index.less +0 -21
- package/lib/steps/style/index.js +0 -2
- package/lib/steps/style/less.js +0 -2
- package/lib/sticky/index.css +0 -1
- package/lib/sticky/index.js +0 -157
- package/lib/sticky/index.less +0 -11
- package/lib/sticky/style/index.js +0 -2
- package/lib/sticky/style/less.js +0 -2
- package/lib/style/animation.css +0 -1
- package/lib/style/animation.less +0 -139
- package/lib/style/base.css +0 -1
- package/lib/style/base.less +0 -10
- 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/iconfont.css +0 -1
- package/lib/style/iconfont.less +0 -910
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/clearfix.less +0 -7
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/ellipsis.less +0 -15
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/mixins/hairline.less +0 -39
- package/lib/style/normalize.css +0 -1
- 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.css +0 -0
- package/lib/style/var.less +0 -983
- package/lib/swipe/index.css +0 -1
- package/lib/swipe/index.js +0 -443
- package/lib/swipe/index.less +0 -56
- package/lib/swipe/style/index.js +0 -2
- package/lib/swipe/style/less.js +0 -2
- package/lib/swipe-item/index.css +0 -1
- package/lib/swipe-item/index.js +0 -89
- package/lib/swipe-item/index.less +0 -8
- package/lib/swipe-item/style/index.js +0 -2
- package/lib/swipe-item/style/less.js +0 -2
- package/lib/switch/index.css +0 -1
- package/lib/switch/index.js +0 -86
- package/lib/switch/index.less +0 -57
- package/lib/switch/shared.js +0 -25
- package/lib/switch/style/index.js +0 -3
- package/lib/switch/style/less.js +0 -3
- package/lib/tab/index.css +0 -1
- package/lib/tab/index.js +0 -114
- package/lib/tab/index.less +0 -24
- package/lib/tab/style/index.js +0 -2
- package/lib/tab/style/less.js +0 -2
- package/lib/tabs/Content.js +0 -90
- package/lib/tabs/Title.js +0 -102
- package/lib/tabs/index.css +0 -1
- package/lib/tabs/index.js +0 -441
- package/lib/tabs/index.less +0 -153
- package/lib/tabs/style/index.js +0 -4
- package/lib/tabs/style/less.js +0 -4
- package/lib/tabs/utils.js +0 -53
- package/lib/tag/index.css +0 -1
- package/lib/tag/index.js +0 -87
- package/lib/tag/index.less +0 -97
- package/lib/tag/style/index.js +0 -4
- package/lib/tag/style/less.js +0 -4
- package/lib/tlvant.js +0 -16647
- package/lib/tlvant.min.js +0 -7
- package/lib/toast/Toast.js +0 -168
- package/lib/toast/index.css +0 -1
- package/lib/toast/index.js +0 -200
- package/lib/toast/index.less +0 -76
- package/lib/toast/lock-click.js +0 -21
- package/lib/toast/style/index.js +0 -7
- package/lib/toast/style/less.js +0 -7
- package/lib/types/address-edit.d.js +0 -22
- package/lib/types/area.d.js +0 -22
- package/lib/types/calendar.d.js +0 -22
- package/lib/types/checkbox-group.d.js +0 -22
- package/lib/types/checkbox.d.js +0 -22
- package/lib/types/collapse-item.d.js +0 -22
- package/lib/types/component.d.js +0 -22
- package/lib/types/count-down.d.js +0 -22
- package/lib/types/datetime-picker.d.js +0 -22
- package/lib/types/dialog.d.js +0 -6
- package/lib/types/dropdown-item.d.js +0 -22
- package/lib/types/field.d.js +0 -22
- package/lib/types/form.d.js +0 -22
- package/lib/types/image-preview.d.js +0 -24
- package/lib/types/index-bar.d.js +0 -22
- package/lib/types/index.d.js +0 -862
- package/lib/types/jsx.d.js +0 -1
- package/lib/types/lazyload.d.js +0 -6
- package/lib/types/list.d.js +0 -22
- package/lib/types/locale.d.js +0 -6
- package/lib/types/mixins/popup.d.js +0 -8
- package/lib/types/notify.d.js +0 -11
- package/lib/types/picker.d.js +0 -22
- package/lib/types/progress.d.js +0 -22
- package/lib/types/sku.d.js +0 -22
- package/lib/types/swipe-cell.d.js +0 -22
- package/lib/types/swipe.d.js +0 -22
- package/lib/types/tabs.d.js +0 -22
- package/lib/types/toast.d.js +0 -11
- package/lib/types/uploader.d.js +0 -22
- package/lib/uploader/index.css +0 -1
- package/lib/uploader/index.js +0 -467
- package/lib/uploader/index.less +0 -159
- package/lib/uploader/style/index.js +0 -11
- package/lib/uploader/style/less.js +0 -11
- package/lib/uploader/utils.js +0 -71
- package/lib/utils/constant.js +0 -22
- package/lib/utils/create/bem.js +0 -44
- package/lib/utils/create/component.js +0 -70
- package/lib/utils/create/i18n.js +0 -27
- package/lib/utils/create/index.js +0 -15
- package/lib/utils/deep-assign.js +0 -30
- package/lib/utils/deep-clone.js +0 -20
- 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/format/number.js +0 -53
- 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/index.js +0 -56
- package/lib/utils/interceptor.js +0 -28
- package/lib/utils/router.js +0 -46
- package/lib/utils/types.js +0 -1
- 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
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
}
|
package/es/mixins/popup/type.js
DELETED
|
File without changes
|
package/es/mixins/portal.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
}
|
package/es/mixins/relation.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
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
|
-
}
|
package/es/mixins/slots.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
};
|
package/es/mixins/touch.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
};
|
package/es/nav-bar/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|
package/es/nav-bar/index.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
});
|
package/es/nav-bar/index.less
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
}
|
package/es/nav-bar/style/less.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
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}
|