tlvant 0.0.21 → 0.0.22
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 -98
- 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 -383
- 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 -393
- 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 -16704
- 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,409 +0,0 @@
|
|
|
1
|
-
import { createNamespace } from '../utils';
|
|
2
|
-
import { stopPropagation } from '../utils/dom/event';
|
|
3
|
-
import { PortalMixin } from '../mixins/portal';
|
|
4
|
-
import { BindEventMixin } from '../mixins/bind-event';
|
|
5
|
-
import Key from './Key';
|
|
6
|
-
import CollapseIcon from './CollapseIcon';
|
|
7
|
-
|
|
8
|
-
var _createNamespace = createNamespace('number-keyboard'),
|
|
9
|
-
createComponent = _createNamespace[0],
|
|
10
|
-
bem = _createNamespace[1];
|
|
11
|
-
|
|
12
|
-
export default createComponent({
|
|
13
|
-
mixins: [PortalMixin(), BindEventMixin(function (bind) {
|
|
14
|
-
if (this.hideOnClickOutside) {
|
|
15
|
-
bind(document.body, 'touchstart', this.onBlur);
|
|
16
|
-
}
|
|
17
|
-
})],
|
|
18
|
-
model: {
|
|
19
|
-
event: 'update:value'
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
show: Boolean,
|
|
23
|
-
title: String,
|
|
24
|
-
zIndex: [Number, String],
|
|
25
|
-
randomKeyOrder: Boolean,
|
|
26
|
-
closeButtonText: String,
|
|
27
|
-
deleteButtonText: String,
|
|
28
|
-
closeButtonLoading: Boolean,
|
|
29
|
-
theme: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: 'default'
|
|
32
|
-
},
|
|
33
|
-
value: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ''
|
|
36
|
-
},
|
|
37
|
-
extraKey: {
|
|
38
|
-
type: [String, Array],
|
|
39
|
-
default: ''
|
|
40
|
-
},
|
|
41
|
-
maxlength: {
|
|
42
|
-
type: [Number, String],
|
|
43
|
-
default: Number.MAX_VALUE
|
|
44
|
-
},
|
|
45
|
-
transition: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: true
|
|
48
|
-
},
|
|
49
|
-
showDeleteKey: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true
|
|
52
|
-
},
|
|
53
|
-
hideOnClickOutside: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true
|
|
56
|
-
},
|
|
57
|
-
safeAreaInsetBottom: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: true
|
|
60
|
-
},
|
|
61
|
-
tielv: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
watch: {
|
|
67
|
-
show: function show(val) {
|
|
68
|
-
if (!this.transition) {
|
|
69
|
-
this.$emit(val ? 'show' : 'hide');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
computed: {
|
|
74
|
-
keys: function keys() {
|
|
75
|
-
if (this.theme === 'custom') {
|
|
76
|
-
return this.genCustomKeys();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return this.genDefaultKeys();
|
|
80
|
-
},
|
|
81
|
-
keyZero: function keyZero() {
|
|
82
|
-
return this.genZeroKeys();
|
|
83
|
-
},
|
|
84
|
-
tieLvkey: function tieLvkey() {
|
|
85
|
-
return this.genTielvKeys();
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
genBasicKeys: function genBasicKeys() {
|
|
90
|
-
var keys = [];
|
|
91
|
-
|
|
92
|
-
for (var i = 1; i <= 9; i++) {
|
|
93
|
-
keys.push({
|
|
94
|
-
text: i
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (this.randomKeyOrder) {
|
|
99
|
-
keys.sort(function () {
|
|
100
|
-
return Math.random() > 0.5 ? 1 : -1;
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return keys;
|
|
105
|
-
},
|
|
106
|
-
genZeroKeys: function genZeroKeys() {
|
|
107
|
-
var keyZero = [];
|
|
108
|
-
keyZero.push({
|
|
109
|
-
text: '0'
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
if (this.randomKeyOrder) {
|
|
113
|
-
keyZero.sort(function () {
|
|
114
|
-
return Math.random() > 0.5 ? 1 : -1;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return keyZero;
|
|
119
|
-
},
|
|
120
|
-
genTielvKeys: function genTielvKeys() {
|
|
121
|
-
var keyZero = [];
|
|
122
|
-
keyZero.push({
|
|
123
|
-
text: 'C'
|
|
124
|
-
});
|
|
125
|
-
keyZero.push({
|
|
126
|
-
text: 'D'
|
|
127
|
-
});
|
|
128
|
-
keyZero.push({
|
|
129
|
-
text: 'G'
|
|
130
|
-
});
|
|
131
|
-
keyZero.push({
|
|
132
|
-
text: 'K'
|
|
133
|
-
});
|
|
134
|
-
keyZero.push({
|
|
135
|
-
text: 'T'
|
|
136
|
-
});
|
|
137
|
-
keyZero.push({
|
|
138
|
-
text: 'Z'
|
|
139
|
-
});
|
|
140
|
-
keyZero.push({
|
|
141
|
-
text: 'Y'
|
|
142
|
-
});
|
|
143
|
-
keyZero.push({
|
|
144
|
-
text: 'L'
|
|
145
|
-
});
|
|
146
|
-
keyZero.push({
|
|
147
|
-
text: 'S'
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
if (this.randomKeyOrder) {
|
|
151
|
-
keyZero.sort(function () {
|
|
152
|
-
return Math.random() > 0.5 ? 1 : -1;
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
return keyZero;
|
|
157
|
-
},
|
|
158
|
-
genDefaultKeys: function genDefaultKeys() {
|
|
159
|
-
return [].concat(this.genBasicKeys(), [{
|
|
160
|
-
text: this.extraKey,
|
|
161
|
-
type: 'extra'
|
|
162
|
-
}, {
|
|
163
|
-
text: 0
|
|
164
|
-
}, {
|
|
165
|
-
text: this.showDeleteKey ? this.deleteButtonText : '',
|
|
166
|
-
type: this.showDeleteKey ? 'delete' : ''
|
|
167
|
-
}]);
|
|
168
|
-
},
|
|
169
|
-
genCustomKeys: function genCustomKeys() {
|
|
170
|
-
var keys = this.genBasicKeys();
|
|
171
|
-
var extraKey = this.extraKey;
|
|
172
|
-
var extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey]; // keys.push({ text: 0, wider: false });
|
|
173
|
-
|
|
174
|
-
for (var i = 1; i <= extraKeys.length; i++) {
|
|
175
|
-
keys.push({
|
|
176
|
-
text: extraKeys[i],
|
|
177
|
-
type: 'extra'
|
|
178
|
-
});
|
|
179
|
-
} // if (extraKeys.length === 1) {
|
|
180
|
-
// keys.push(
|
|
181
|
-
// { text: 0, wider: true },
|
|
182
|
-
// { text: extraKeys[0], type: 'extra' }
|
|
183
|
-
// );
|
|
184
|
-
// } else if (extraKeys.length === 2) {
|
|
185
|
-
// keys.push(
|
|
186
|
-
// { text: extraKeys[0], type: 'extra' },
|
|
187
|
-
// { text: 0 },
|
|
188
|
-
// { text: extraKeys[1], type: 'extra' }
|
|
189
|
-
// );
|
|
190
|
-
// }
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
return keys;
|
|
194
|
-
},
|
|
195
|
-
onBlur: function onBlur() {
|
|
196
|
-
this.show && this.$emit('blur');
|
|
197
|
-
},
|
|
198
|
-
onClose: function onClose() {
|
|
199
|
-
this.$emit('close');
|
|
200
|
-
this.onBlur();
|
|
201
|
-
},
|
|
202
|
-
onAnimationEnd: function onAnimationEnd() {
|
|
203
|
-
this.$emit(this.show ? 'show' : 'hide');
|
|
204
|
-
},
|
|
205
|
-
onPress: function onPress(text, type) {
|
|
206
|
-
if (text === '') {
|
|
207
|
-
if (type === 'extra') {
|
|
208
|
-
this.onBlur();
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
var value = this.value;
|
|
215
|
-
|
|
216
|
-
if (type === 'delete') {
|
|
217
|
-
this.$emit('delete');
|
|
218
|
-
this.$emit('update:value', value.slice(0, value.length - 1));
|
|
219
|
-
} else if (type === 'close') {
|
|
220
|
-
this.onClose();
|
|
221
|
-
} else if (value.length < this.maxlength) {
|
|
222
|
-
this.$emit('input', text);
|
|
223
|
-
this.$emit('update:value', value + text);
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
genTitle: function genTitle() {
|
|
227
|
-
var h = this.$createElement;
|
|
228
|
-
var title = this.title,
|
|
229
|
-
theme = this.theme,
|
|
230
|
-
closeButtonText = this.closeButtonText;
|
|
231
|
-
var titleLeft = this.slots('title-left');
|
|
232
|
-
var showClose = closeButtonText && theme === 'default';
|
|
233
|
-
var showTitle = title || showClose || titleLeft;
|
|
234
|
-
|
|
235
|
-
if (!showTitle) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
return h("div", {
|
|
240
|
-
"class": bem('header')
|
|
241
|
-
}, [titleLeft && h("span", {
|
|
242
|
-
"class": bem('title-left')
|
|
243
|
-
}, [titleLeft]), title && h("h2", {
|
|
244
|
-
"class": bem('title')
|
|
245
|
-
}, [title]), showClose && h("button", {
|
|
246
|
-
"attrs": {
|
|
247
|
-
"type": "button"
|
|
248
|
-
},
|
|
249
|
-
"class": bem('close'),
|
|
250
|
-
"on": {
|
|
251
|
-
"click": this.onClose
|
|
252
|
-
}
|
|
253
|
-
}, [closeButtonText])]);
|
|
254
|
-
},
|
|
255
|
-
genKeys: function genKeys() {
|
|
256
|
-
var _this = this;
|
|
257
|
-
|
|
258
|
-
var h = this.$createElement;
|
|
259
|
-
console.log('打印genKeys:', this.keys);
|
|
260
|
-
return this.keys.map(function (key) {
|
|
261
|
-
return h(Key, {
|
|
262
|
-
"key": key.text,
|
|
263
|
-
"attrs": {
|
|
264
|
-
"text": key.text,
|
|
265
|
-
"type": key.type,
|
|
266
|
-
"wider": key.wider,
|
|
267
|
-
"color": key.color
|
|
268
|
-
},
|
|
269
|
-
"on": {
|
|
270
|
-
"press": _this.onPress
|
|
271
|
-
}
|
|
272
|
-
}, [key.type === 'delete' && _this.slots('delete'), key.type === 'extra' && _this.slots('extra-key')]);
|
|
273
|
-
});
|
|
274
|
-
},
|
|
275
|
-
getKeyZero: function getKeyZero() {
|
|
276
|
-
var _this2 = this;
|
|
277
|
-
|
|
278
|
-
var h = this.$createElement;
|
|
279
|
-
console.log('打印:', this.keyZero);
|
|
280
|
-
return this.keyZero.map(function (key) {
|
|
281
|
-
return h(Key, {
|
|
282
|
-
"key": key.text,
|
|
283
|
-
"attrs": {
|
|
284
|
-
"text": key.text,
|
|
285
|
-
"type": key.type,
|
|
286
|
-
"wider": key.wider,
|
|
287
|
-
"color": key.color
|
|
288
|
-
},
|
|
289
|
-
"on": {
|
|
290
|
-
"press": _this2.onPress
|
|
291
|
-
}
|
|
292
|
-
}, [key.type === 'delete' && _this2.slots('delete'), key.type === 'extra' && _this2.slots('extra-key')]);
|
|
293
|
-
});
|
|
294
|
-
},
|
|
295
|
-
getTielvKey: function getTielvKey() {
|
|
296
|
-
var _this3 = this;
|
|
297
|
-
|
|
298
|
-
var h = this.$createElement;
|
|
299
|
-
return this.tieLvkey.map(function (key) {
|
|
300
|
-
return h(Key, {
|
|
301
|
-
"key": key.text,
|
|
302
|
-
"attrs": {
|
|
303
|
-
"text": key.text,
|
|
304
|
-
"type": key.type,
|
|
305
|
-
"wider": key.wider,
|
|
306
|
-
"color": key.color,
|
|
307
|
-
"isTielv": true
|
|
308
|
-
},
|
|
309
|
-
"on": {
|
|
310
|
-
"press": _this3.onPress
|
|
311
|
-
}
|
|
312
|
-
}, [key.type === 'delete' && _this3.slots('delete'), key.type === 'extra' && _this3.slots('extra-key')]);
|
|
313
|
-
});
|
|
314
|
-
},
|
|
315
|
-
genSidebar: function genSidebar() {
|
|
316
|
-
var h = this.$createElement;
|
|
317
|
-
|
|
318
|
-
if (this.theme === 'custom') {
|
|
319
|
-
return h("div", {
|
|
320
|
-
"class": bem('sidebar')
|
|
321
|
-
}, [this.showDeleteKey && h(Key, {
|
|
322
|
-
"attrs": {
|
|
323
|
-
"large": true,
|
|
324
|
-
"text": this.deleteButtonText,
|
|
325
|
-
"type": "delete"
|
|
326
|
-
},
|
|
327
|
-
"on": {
|
|
328
|
-
"press": this.onPress
|
|
329
|
-
}
|
|
330
|
-
}, [this.slots('delete')]), h("div", {
|
|
331
|
-
"class": bem('keys')
|
|
332
|
-
}, [this.getKeyZero()]), h(Key, {
|
|
333
|
-
"attrs": {
|
|
334
|
-
"large": true,
|
|
335
|
-
"type": "close",
|
|
336
|
-
"loading": this.closeButtonLoading
|
|
337
|
-
},
|
|
338
|
-
"on": {
|
|
339
|
-
"press": this.onPress
|
|
340
|
-
}
|
|
341
|
-
}, [h(CollapseIcon, {
|
|
342
|
-
"class": bem('collapse-icon')
|
|
343
|
-
})])]);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
render: function render() {
|
|
348
|
-
var h = arguments[0];
|
|
349
|
-
var Title = this.genTitle();
|
|
350
|
-
|
|
351
|
-
if (this.tielv) {
|
|
352
|
-
return h("transition", {
|
|
353
|
-
"attrs": {
|
|
354
|
-
"name": this.transition ? 'van-slide-up' : ''
|
|
355
|
-
}
|
|
356
|
-
}, [h("div", {
|
|
357
|
-
"directives": [{
|
|
358
|
-
name: "show",
|
|
359
|
-
value: this.show
|
|
360
|
-
}],
|
|
361
|
-
"style": {
|
|
362
|
-
zIndex: this.zIndex
|
|
363
|
-
},
|
|
364
|
-
"class": bem({
|
|
365
|
-
unfit: !this.safeAreaInsetBottom,
|
|
366
|
-
'with-title': Title
|
|
367
|
-
}),
|
|
368
|
-
"on": {
|
|
369
|
-
"touchstart": stopPropagation,
|
|
370
|
-
"animationend": this.onAnimationEnd,
|
|
371
|
-
"webkitAnimationEnd": this.onAnimationEnd
|
|
372
|
-
}
|
|
373
|
-
}, [Title, h("div", {
|
|
374
|
-
"class": bem('tielv')
|
|
375
|
-
}, [this.getTielvKey()]), h("div", {
|
|
376
|
-
"class": bem('body')
|
|
377
|
-
}, [h("div", {
|
|
378
|
-
"class": bem('keys')
|
|
379
|
-
}, [this.genKeys()]), this.genSidebar()])])]);
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
return h("transition", {
|
|
383
|
-
"attrs": {
|
|
384
|
-
"name": this.transition ? 'van-slide-up' : ''
|
|
385
|
-
}
|
|
386
|
-
}, [h("div", {
|
|
387
|
-
"directives": [{
|
|
388
|
-
name: "show",
|
|
389
|
-
value: this.show
|
|
390
|
-
}],
|
|
391
|
-
"style": {
|
|
392
|
-
zIndex: this.zIndex
|
|
393
|
-
},
|
|
394
|
-
"class": bem({
|
|
395
|
-
unfit: !this.safeAreaInsetBottom,
|
|
396
|
-
'with-title': Title
|
|
397
|
-
}),
|
|
398
|
-
"on": {
|
|
399
|
-
"touchstart": stopPropagation,
|
|
400
|
-
"animationend": this.onAnimationEnd,
|
|
401
|
-
"webkitAnimationEnd": this.onAnimationEnd
|
|
402
|
-
}
|
|
403
|
-
}, [Title, h("div", {
|
|
404
|
-
"class": bem('body')
|
|
405
|
-
}, [h("div", {
|
|
406
|
-
"class": bem('keys')
|
|
407
|
-
}, [this.genKeys()]), this.genSidebar()])])]);
|
|
408
|
-
}
|
|
409
|
-
});
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.van-number-keyboard {
|
|
4
|
-
position: fixed;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
z-index: @number-keyboard-z-index;
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding-bottom: 22px;
|
|
10
|
-
background-color: @number-keyboard-background-color;
|
|
11
|
-
user-select: none;
|
|
12
|
-
|
|
13
|
-
&--with-title {
|
|
14
|
-
border-radius: 20px 20px 0 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&__header {
|
|
18
|
-
position: relative;
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
box-sizing: content-box;
|
|
23
|
-
height: @number-keyboard-title-height;
|
|
24
|
-
padding-top: 6px;
|
|
25
|
-
color: @number-keyboard-title-color;
|
|
26
|
-
font-size: @number-keyboard-title-font-size;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&__title {
|
|
30
|
-
display: inline-block;
|
|
31
|
-
font-weight: normal;
|
|
32
|
-
|
|
33
|
-
&-left {
|
|
34
|
-
position: absolute;
|
|
35
|
-
left: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__body {
|
|
40
|
-
display: flex;
|
|
41
|
-
padding: 6px 0 0 6px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__keys {
|
|
45
|
-
display: flex;
|
|
46
|
-
flex: 3;
|
|
47
|
-
flex-wrap: wrap;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__tielv {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex: 3;
|
|
53
|
-
flex-wrap: wrap;
|
|
54
|
-
padding: 6px 0 0 6px;
|
|
55
|
-
margin-bottom: -7px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&__tielvaway {
|
|
59
|
-
// flex-basis: 33%;
|
|
60
|
-
// box-sizing: border-box;
|
|
61
|
-
// padding: 0 6px 6px 0;
|
|
62
|
-
// flex: 1;
|
|
63
|
-
// position: relative;
|
|
64
|
-
// -webkit-box-flex: 1;
|
|
65
|
-
display: flex;
|
|
66
|
-
-webkit-box-align: center;
|
|
67
|
-
align-items: center;
|
|
68
|
-
-webkit-box-pack: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
height: 36px;
|
|
71
|
-
font-size: 24px;
|
|
72
|
-
line-height: 1.5;
|
|
73
|
-
background-color: #fff;
|
|
74
|
-
border-radius: 8px;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&__collapse-icon {
|
|
79
|
-
width: 30px;
|
|
80
|
-
height: 24px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&__close {
|
|
84
|
-
position: absolute;
|
|
85
|
-
right: 0;
|
|
86
|
-
height: 100%;
|
|
87
|
-
padding: @number-keyboard-close-padding;
|
|
88
|
-
color: @number-keyboard-close-color;
|
|
89
|
-
font-size: @number-keyboard-close-font-size;
|
|
90
|
-
background-color: transparent;
|
|
91
|
-
border: none;
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
|
|
94
|
-
&:active {
|
|
95
|
-
opacity: @active-opacity;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&__sidebar {
|
|
100
|
-
display: flex;
|
|
101
|
-
flex: 1;
|
|
102
|
-
flex-direction: column;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&--unfit {
|
|
106
|
-
padding-bottom: 0;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.van-key {
|
|
111
|
-
display: flex;
|
|
112
|
-
align-items: center;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
height: @number-keyboard-key-height;
|
|
115
|
-
font-size: @number-keyboard-key-font-size;
|
|
116
|
-
line-height: 1.5;
|
|
117
|
-
background-color: @white;
|
|
118
|
-
border-radius: @border-radius-lg;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
|
|
121
|
-
&--large {
|
|
122
|
-
// height: 100% can't fill flex parent on legacy safari
|
|
123
|
-
// see: https://stackoverflow.com/questions/33636796
|
|
124
|
-
position: absolute;
|
|
125
|
-
top: 0;
|
|
126
|
-
right: 6px;
|
|
127
|
-
bottom: 6px;
|
|
128
|
-
left: 0;
|
|
129
|
-
height: auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&--blue,
|
|
133
|
-
&--delete {
|
|
134
|
-
font-size: @number-keyboard-delete-font-size;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&--active {
|
|
138
|
-
background-color: @number-keyboard-key-active-color;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&--blue {
|
|
142
|
-
color: @number-keyboard-button-text-color;
|
|
143
|
-
background-color: @number-keyboard-button-background-color;
|
|
144
|
-
|
|
145
|
-
&.van-key--active {
|
|
146
|
-
background-color: darken(@number-keyboard-button-background-color, 10%);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&__wrapper {
|
|
151
|
-
position: relative;
|
|
152
|
-
flex: 1;
|
|
153
|
-
flex-basis: 33%;
|
|
154
|
-
box-sizing: border-box;
|
|
155
|
-
padding: 0 6px 6px 0;
|
|
156
|
-
|
|
157
|
-
&--wider {
|
|
158
|
-
flex-basis: 66%;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&--tielvcolor {
|
|
163
|
-
color: blue;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&__tielv {
|
|
167
|
-
position: relative;
|
|
168
|
-
flex: 5;
|
|
169
|
-
flex-basis: 20%;
|
|
170
|
-
box-sizing: border-box;
|
|
171
|
-
padding: 0 6px 6px 0;
|
|
172
|
-
|
|
173
|
-
&--wider {
|
|
174
|
-
flex-basis: 66%;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&__delete-icon {
|
|
179
|
-
width: 32px;
|
|
180
|
-
height: 22px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&__collapse-icon {
|
|
184
|
-
width: 30px;
|
|
185
|
-
height: 24px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&__loading-icon {
|
|
189
|
-
color: @number-keyboard-button-text-color;
|
|
190
|
-
}
|
|
191
|
-
}
|
package/es/overlay/index.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.van-overlay{position:fixed;top:0;left:0;z-index:1;width:100%;height:100%;background-color:rgba(0,0,0,.7)}
|
package/es/overlay/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _mergeJSXProps from "@vue/babel-helper-vue-jsx-merge-props";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
// Utils
|
|
4
|
-
import { createNamespace, isDef, noop } from '../utils';
|
|
5
|
-
import { inherit } from '../utils/functional';
|
|
6
|
-
import { preventDefault } from '../utils/dom/event'; // Types
|
|
7
|
-
|
|
8
|
-
var _createNamespace = createNamespace('overlay'),
|
|
9
|
-
createComponent = _createNamespace[0],
|
|
10
|
-
bem = _createNamespace[1];
|
|
11
|
-
|
|
12
|
-
function preventTouchMove(event) {
|
|
13
|
-
preventDefault(event, true);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function Overlay(h, props, slots, ctx) {
|
|
17
|
-
var style = _extends({
|
|
18
|
-
zIndex: props.zIndex
|
|
19
|
-
}, props.customStyle);
|
|
20
|
-
|
|
21
|
-
if (isDef(props.duration)) {
|
|
22
|
-
style.animationDuration = props.duration + "s";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return h("transition", {
|
|
26
|
-
"attrs": {
|
|
27
|
-
"name": "van-fade"
|
|
28
|
-
}
|
|
29
|
-
}, [h("div", _mergeJSXProps([{
|
|
30
|
-
"directives": [{
|
|
31
|
-
name: "show",
|
|
32
|
-
value: props.show
|
|
33
|
-
}],
|
|
34
|
-
"style": style,
|
|
35
|
-
"class": [bem(), props.className],
|
|
36
|
-
"on": {
|
|
37
|
-
"touchmove": props.lockScroll ? preventTouchMove : noop
|
|
38
|
-
}
|
|
39
|
-
}, inherit(ctx, true)]), [slots.default == null ? void 0 : slots.default()])]);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
Overlay.props = {
|
|
43
|
-
show: Boolean,
|
|
44
|
-
zIndex: [Number, String],
|
|
45
|
-
duration: [Number, String],
|
|
46
|
-
className: null,
|
|
47
|
-
customStyle: Object,
|
|
48
|
-
lockScroll: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: true
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export default createComponent(Overlay);
|
package/es/overlay/index.less
DELETED
package/es/overlay/style/less.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.van-password-input{position:relative;margin:0 16px;-webkit-user-select:none;user-select:none}.van-password-input__error-info,.van-password-input__info{margin-top:16px;font-size:14px;text-align:center}.van-password-input__info{color:#969799}.van-password-input__error-info{color:#ee0a24}.van-password-input__security{display:-webkit-box;display:-webkit-flex;display:flex;width:100%;height:50px;cursor:pointer}.van-password-input__security::after{border-radius:6px}.van-password-input__security li{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:100%;font-size:20px;line-height:1.2;background-color:#fff}.van-password-input__security i{position:absolute;top:50%;left:50%;width:10px;height:10px;background-color:#000;border-radius:100%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:1px;height:40%;background-color:#323233;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-animation:1s van-cursor-flicker infinite;animation:1s van-cursor-flicker infinite}@-webkit-keyframes van-cursor-flicker{from{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes van-cursor-flicker{from{opacity:0}50%{opacity:1}100%{opacity:0}}
|