tlvant 0.0.22 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-sheet/index.css +1 -0
- package/es/action-sheet/index.js +177 -0
- package/es/action-sheet/index.less +112 -0
- package/es/action-sheet/style/index.js +7 -0
- package/es/action-sheet/style/less.js +7 -0
- package/es/area/index.js +321 -0
- package/es/area/style/index.js +3 -0
- package/es/area/style/less.js +3 -0
- package/es/button/index.css +1 -0
- package/es/button/index.js +171 -0
- package/es/button/index.less +238 -0
- package/es/button/style/index.js +5 -0
- package/es/button/style/less.js +5 -0
- package/es/calendar/components/Header.js +55 -0
- package/es/calendar/components/Month.js +326 -0
- package/es/calendar/index.css +1 -0
- package/es/calendar/index.js +539 -0
- package/es/calendar/index.less +210 -0
- package/es/calendar/style/index.js +9 -0
- package/es/calendar/style/less.js +9 -0
- package/es/calendar/utils.js +66 -0
- package/es/cell/index.css +1 -0
- package/es/cell/index.js +121 -0
- package/es/cell/index.less +103 -0
- package/es/cell/shared.js +24 -0
- package/es/cell/style/index.js +4 -0
- package/es/cell/style/less.js +4 -0
- package/es/cell-group/index.css +1 -0
- package/es/cell-group/index.js +34 -0
- package/es/cell-group/index.less +12 -0
- package/es/cell-group/style/index.js +2 -0
- package/es/cell-group/style/less.js +2 -0
- package/es/checkbox/index.css +1 -0
- package/es/checkbox/index.js +80 -0
- package/es/checkbox/index.less +85 -0
- package/es/checkbox/style/index.js +4 -0
- package/es/checkbox/style/less.js +4 -0
- package/es/checkbox-group/index.css +1 -0
- package/es/checkbox-group/index.js +64 -0
- package/es/checkbox-group/index.less +8 -0
- package/es/checkbox-group/style/index.js +2 -0
- package/es/checkbox-group/style/less.js +2 -0
- package/es/collapse/index.js +39 -0
- package/es/collapse/style/index.js +1 -0
- package/es/collapse/style/less.js +1 -0
- package/es/collapse-item/index.css +1 -0
- package/es/collapse-item/index.js +198 -0
- package/es/collapse-item/index.less +67 -0
- package/es/collapse-item/style/index.js +5 -0
- package/es/collapse-item/style/less.js +5 -0
- package/es/contact-card/index.css +1 -0
- package/es/contact-card/index.js +59 -0
- package/es/contact-card/index.less +42 -0
- package/es/contact-card/style/index.js +5 -0
- package/es/contact-card/style/less.js +5 -0
- package/es/contact-edit/index.css +1 -0
- package/es/contact-edit/index.js +193 -0
- package/es/contact-edit/index.less +30 -0
- package/es/contact-edit/style/index.js +14 -0
- package/es/contact-edit/style/less.js +14 -0
- package/es/contact-list/index.css +1 -0
- package/es/contact-list/index.js +119 -0
- package/es/contact-list/index.less +54 -0
- package/es/contact-list/style/index.js +10 -0
- package/es/contact-list/style/less.js +10 -0
- package/es/datetime-picker/DatePicker.js +246 -0
- package/es/datetime-picker/TimePicker.js +104 -0
- package/es/datetime-picker/index.js +29 -0
- package/es/datetime-picker/shared.js +110 -0
- package/es/datetime-picker/style/index.js +3 -0
- package/es/datetime-picker/style/less.js +3 -0
- package/es/datetime-picker/utils.js +29 -0
- package/es/demo-button/index-sfc.css +1 -0
- package/es/demo-button/index-sfc.less +9 -0
- package/es/demo-button/index.js +27 -0
- package/es/demo-button/style/index.js +1 -0
- package/es/demo-button/style/less.js +1 -0
- package/es/dialog/Dialog.js +246 -0
- package/es/dialog/index.css +1 -0
- package/es/dialog/index.js +104 -0
- package/es/dialog/index.less +153 -0
- package/es/dialog/style/index.js +10 -0
- package/es/dialog/style/less.js +10 -0
- package/es/dropdown-item/index.css +1 -0
- package/es/dropdown-item/index.js +210 -0
- package/es/dropdown-item/index.less +39 -0
- package/es/dropdown-item/style/index.js +7 -0
- package/es/dropdown-item/style/less.js +7 -0
- package/es/dropdown-menu/index.css +1 -0
- package/es/dropdown-menu/index.js +132 -0
- package/es/dropdown-menu/index.less +77 -0
- package/es/dropdown-menu/style/index.js +2 -0
- package/es/dropdown-menu/style/less.js +2 -0
- package/es/empty/Network.js +193 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +81 -0
- package/es/empty/index.less +32 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.css +1 -0
- package/es/field/index.js +623 -0
- package/es/field/index.less +172 -0
- package/es/field/style/index.js +5 -0
- package/es/field/style/less.js +5 -0
- package/es/form/index.js +200 -0
- package/es/form/style/index.js +1 -0
- package/es/form/style/less.js +1 -0
- package/es/goods-action/index.css +1 -0
- package/es/goods-action/index.js +24 -0
- package/es/goods-action/index.less +19 -0
- package/es/goods-action/style/index.js +2 -0
- package/es/goods-action/style/less.js +2 -0
- package/es/goods-action-button/index.css +1 -0
- package/es/goods-action-button/index.js +57 -0
- package/es/goods-action-button/index.less +34 -0
- package/es/goods-action-button/style/index.js +6 -0
- package/es/goods-action-button/style/less.js +6 -0
- package/es/icon/index.css +1 -0
- package/es/icon/index.js +74 -0
- package/es/icon/index.less +11 -0
- package/es/icon/local.css +1 -0
- package/es/icon/local.less +1 -0
- package/es/icon/style/index.js +3 -0
- package/es/icon/style/less.js +3 -0
- package/es/image/index.css +1 -0
- package/es/image/index.js +189 -0
- package/es/image/index.less +47 -0
- package/es/image/style/index.js +4 -0
- package/es/image/style/less.js +4 -0
- package/es/image-preview/ImagePreview.js +234 -0
- package/es/image-preview/ImagePreviewItem.js +242 -0
- package/es/image-preview/index.css +1 -0
- package/es/image-preview/index.js +86 -0
- package/es/image-preview/index.less +103 -0
- package/es/image-preview/shared.js +7 -0
- package/es/image-preview/style/index.js +10 -0
- package/es/image-preview/style/less.js +10 -0
- package/es/index-anchor/index.css +1 -0
- package/es/index-anchor/index.js +83 -0
- package/es/index-anchor/index.less +21 -0
- package/es/index-anchor/style/index.js +2 -0
- package/es/index-anchor/style/less.js +2 -0
- package/es/index-bar/index.css +1 -0
- package/es/index-bar/index.js +222 -0
- package/es/index-bar/index.less +27 -0
- package/es/index-bar/style/index.js +2 -0
- package/es/index-bar/style/less.js +2 -0
- package/es/index.js +80 -0
- package/es/info/index.css +1 -0
- package/es/info/index.js +30 -0
- package/es/info/index.less +29 -0
- package/es/info/style/index.js +2 -0
- package/es/info/style/less.js +2 -0
- package/es/lazyload/index.js +2 -0
- package/es/lazyload/style/index.js +1 -0
- package/es/lazyload/style/less.js +1 -0
- package/es/list/index.css +1 -0
- package/es/list/index.js +178 -0
- package/es/list/index.less +21 -0
- package/es/list/style/index.js +3 -0
- package/es/list/style/less.js +3 -0
- package/es/loading/index.css +1 -0
- package/es/loading/index.js +86 -0
- package/es/loading/index.less +103 -0
- package/es/loading/style/index.js +2 -0
- package/es/loading/style/less.js +2 -0
- package/es/locale/index.js +27 -0
- package/es/locale/lang/de-DE-formal.js +90 -0
- package/es/locale/lang/de-DE.js +90 -0
- package/es/locale/lang/en-US.js +90 -0
- package/es/locale/lang/es-ES.js +90 -0
- package/es/locale/lang/ja-JP.js +91 -0
- package/es/locale/lang/nb-NO.js +90 -0
- package/es/locale/lang/ro-RO.js +90 -0
- package/es/locale/lang/tr-TR.js +90 -0
- package/es/locale/lang/zh-CN.js +91 -0
- package/es/locale/lang/zh-HK.js +91 -0
- package/es/locale/lang/zh-TW.js +91 -0
- package/es/locale/style/index.js +1 -0
- package/es/locale/style/less.js +1 -0
- package/es/mixins/bind-event.js +29 -0
- package/es/mixins/checkbox.js +139 -0
- package/es/mixins/click-outside.js +33 -0
- package/es/mixins/close-on-popstate.js +38 -0
- package/es/mixins/field.js +24 -0
- package/es/mixins/popup/context.js +10 -0
- package/es/mixins/popup/index.js +208 -0
- package/es/mixins/popup/overlay.js +76 -0
- package/es/mixins/popup/type.js +0 -0
- package/es/mixins/portal.js +48 -0
- package/es/mixins/relation.js +76 -0
- package/es/mixins/slots.js +23 -0
- package/es/mixins/touch.js +58 -0
- package/es/nav-bar/index.css +1 -0
- package/es/nav-bar/index.js +124 -0
- package/es/nav-bar/index.less +77 -0
- package/es/nav-bar/style/index.js +4 -0
- package/es/nav-bar/style/less.js +4 -0
- package/es/number-keyboard/CollapseIcon.js +16 -0
- package/es/number-keyboard/DeleteIcon.js +16 -0
- package/es/number-keyboard/Key.js +121 -0
- package/es/number-keyboard/index.css +1 -0
- package/es/number-keyboard/index.js +409 -0
- package/es/number-keyboard/index.less +191 -0
- package/es/number-keyboard/style/index.js +3 -0
- package/es/number-keyboard/style/less.js +3 -0
- package/es/overlay/index.css +1 -0
- package/es/overlay/index.js +53 -0
- package/es/overlay/index.less +11 -0
- package/es/overlay/style/index.js +2 -0
- package/es/overlay/style/less.js +2 -0
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +84 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/picker/PickerColumn.js +300 -0
- package/es/picker/index.css +1 -0
- package/es/picker/index.js +383 -0
- package/es/picker/index.less +118 -0
- package/es/picker/shared.js +22 -0
- package/es/picker/style/index.js +3 -0
- package/es/picker/style/less.js +3 -0
- package/es/popover/index.css +1 -0
- package/es/popover/index.js +211 -0
- package/es/popover/index.less +270 -0
- package/es/popover/style/index.js +6 -0
- package/es/popover/style/less.js +6 -0
- package/es/popup/index.css +1 -0
- package/es/popup/index.js +111 -0
- package/es/popup/index.less +140 -0
- package/es/popup/style/index.js +5 -0
- package/es/popup/style/less.js +5 -0
- package/es/pull-refresh/index.css +1 -0
- package/es/pull-refresh/index.js +213 -0
- package/es/pull-refresh/index.less +25 -0
- package/es/pull-refresh/style/index.js +3 -0
- package/es/pull-refresh/style/less.js +3 -0
- package/es/radio/index.css +1 -0
- package/es/radio/index.js +32 -0
- package/es/radio/index.less +86 -0
- package/es/radio/style/index.js +4 -0
- package/es/radio/style/less.js +4 -0
- package/es/radio-group/index.css +1 -0
- package/es/radio-group/index.js +32 -0
- package/es/radio-group/index.less +8 -0
- package/es/radio-group/style/index.js +2 -0
- package/es/radio-group/style/less.js +2 -0
- package/es/rate/index.css +1 -0
- package/es/rate/index.js +227 -0
- package/es/rate/index.less +46 -0
- package/es/rate/style/index.js +4 -0
- package/es/rate/style/less.js +4 -0
- package/es/search/index.css +1 -0
- package/es/search/index.js +114 -0
- package/es/search/index.less +68 -0
- package/es/search/style/index.js +6 -0
- package/es/search/style/less.js +6 -0
- package/es/slider/index.css +1 -0
- package/es/slider/index.js +289 -0
- package/es/slider/index.less +94 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/style/less.js +2 -0
- package/es/step/index.css +1 -0
- package/es/step/index.js +115 -0
- package/es/step/index.less +151 -0
- package/es/step/style/index.js +4 -0
- package/es/step/style/less.js +4 -0
- package/es/stepper/index.css +1 -0
- package/es/stepper/index.js +355 -0
- package/es/stepper/index.less +129 -0
- package/es/stepper/style/index.js +2 -0
- package/es/stepper/style/less.js +2 -0
- package/es/steps/index.css +1 -0
- package/es/steps/index.js +35 -0
- package/es/steps/index.less +21 -0
- package/es/steps/style/index.js +2 -0
- package/es/steps/style/less.js +2 -0
- package/es/sticky/index.css +1 -0
- package/es/sticky/index.js +146 -0
- package/es/sticky/index.less +11 -0
- package/es/sticky/style/index.js +2 -0
- package/es/sticky/style/less.js +2 -0
- package/es/style/animation.css +1 -0
- package/es/style/animation.less +139 -0
- package/es/style/base.css +1 -0
- package/es/style/base.less +10 -0
- package/es/style/clearfix.css +1 -0
- package/es/style/clearfix.less +5 -0
- package/es/style/ellipsis.css +1 -0
- package/es/style/ellipsis.less +13 -0
- package/es/style/hairline.css +1 -0
- package/es/style/hairline.less +47 -0
- package/es/style/iconfont.css +1 -0
- package/es/style/iconfont.less +910 -0
- package/es/style/mixins/clearfix.css +0 -0
- package/es/style/mixins/clearfix.less +7 -0
- package/es/style/mixins/ellipsis.css +0 -0
- package/es/style/mixins/ellipsis.less +15 -0
- package/es/style/mixins/hairline.css +0 -0
- package/es/style/mixins/hairline.less +39 -0
- package/es/style/normalize.css +1 -0
- package/es/style/normalize.less +38 -0
- package/es/style/reset.css +1 -0
- package/es/style/reset.less +171 -0
- package/es/style/var.css +0 -0
- package/es/style/var.less +983 -0
- package/es/swipe/index.css +1 -0
- package/es/swipe/index.js +429 -0
- package/es/swipe/index.less +56 -0
- package/es/swipe/style/index.js +2 -0
- package/es/swipe/style/less.js +2 -0
- package/es/swipe-item/index.css +1 -0
- package/es/swipe-item/index.js +78 -0
- package/es/swipe-item/index.less +8 -0
- package/es/swipe-item/style/index.js +2 -0
- package/es/swipe-item/style/less.js +2 -0
- package/es/switch/index.css +1 -0
- package/es/switch/index.js +74 -0
- package/es/switch/index.less +57 -0
- package/es/switch/shared.js +19 -0
- package/es/switch/style/index.js +3 -0
- package/es/switch/style/less.js +3 -0
- package/es/tab/index.css +1 -0
- package/es/tab/index.js +102 -0
- package/es/tab/index.less +24 -0
- package/es/tab/style/index.js +2 -0
- package/es/tab/style/less.js +2 -0
- package/es/tabs/Content.js +78 -0
- package/es/tabs/Title.js +92 -0
- package/es/tabs/index.css +1 -0
- package/es/tabs/index.js +419 -0
- package/es/tabs/index.less +153 -0
- package/es/tabs/style/index.js +4 -0
- package/es/tabs/style/less.js +4 -0
- package/es/tabs/utils.js +43 -0
- package/es/tag/index.css +1 -0
- package/es/tag/index.js +74 -0
- package/es/tag/index.less +97 -0
- package/es/tag/style/index.js +4 -0
- package/es/tag/style/less.js +4 -0
- package/es/toast/Toast.js +155 -0
- package/es/toast/index.css +1 -0
- package/es/toast/index.js +189 -0
- package/es/toast/index.less +76 -0
- package/es/toast/lock-click.js +16 -0
- package/es/toast/style/index.js +7 -0
- package/es/toast/style/less.js +7 -0
- package/es/types/address-edit.d.js +11 -0
- package/es/types/area.d.js +11 -0
- package/es/types/calendar.d.js +11 -0
- package/es/types/checkbox-group.d.js +11 -0
- package/es/types/checkbox.d.js +11 -0
- package/es/types/collapse-item.d.js +11 -0
- package/es/types/component.d.js +11 -0
- package/es/types/count-down.d.js +11 -0
- package/es/types/datetime-picker.d.js +11 -0
- package/es/types/dialog.d.js +1 -0
- package/es/types/dropdown-item.d.js +11 -0
- package/es/types/field.d.js +11 -0
- package/es/types/form.d.js +11 -0
- package/es/types/image-preview.d.js +12 -0
- package/es/types/index-bar.d.js +11 -0
- package/es/types/index.d.js +590 -0
- package/es/types/jsx.d.js +0 -0
- package/es/types/lazyload.d.js +1 -0
- package/es/types/list.d.js +11 -0
- package/es/types/locale.d.js +1 -0
- package/es/types/mixins/popup.d.js +1 -0
- package/es/types/notify.d.js +2 -0
- package/es/types/picker.d.js +11 -0
- package/es/types/progress.d.js +11 -0
- package/es/types/sku.d.js +11 -0
- package/es/types/swipe-cell.d.js +11 -0
- package/es/types/swipe.d.js +11 -0
- package/es/types/tabs.d.js +11 -0
- package/es/types/toast.d.js +2 -0
- package/es/types/uploader.d.js +11 -0
- package/es/uploader/index.css +1 -0
- package/es/uploader/index.js +451 -0
- package/es/uploader/index.less +159 -0
- package/es/uploader/style/index.js +11 -0
- package/es/uploader/style/less.js +11 -0
- package/es/uploader/utils.js +57 -0
- package/es/utils/constant.js +10 -0
- package/es/utils/create/bem.js +39 -0
- package/es/utils/create/component.js +57 -0
- package/es/utils/create/i18n.js +16 -0
- package/es/utils/create/index.js +7 -0
- package/es/utils/deep-assign.js +24 -0
- package/es/utils/deep-clone.js +14 -0
- package/es/utils/dom/event.js +48 -0
- package/es/utils/dom/node.js +7 -0
- package/es/utils/dom/raf.js +36 -0
- package/es/utils/dom/reset-scroll.js +14 -0
- package/es/utils/dom/scroll.js +69 -0
- package/es/utils/dom/style.js +9 -0
- package/es/utils/format/number.js +47 -0
- package/es/utils/format/string.js +19 -0
- package/es/utils/format/unit.js +59 -0
- package/es/utils/functional.js +56 -0
- package/es/utils/index.js +29 -0
- package/es/utils/interceptor.js +22 -0
- package/es/utils/router.js +36 -0
- package/es/utils/types.js +0 -0
- package/es/utils/validate/date.js +4 -0
- package/es/utils/validate/email.js +5 -0
- package/es/utils/validate/mobile.js +4 -0
- package/es/utils/validate/number.js +11 -0
- package/es/utils/validate/system.js +9 -0
- package/es/utils/vnodes.js +36 -0
- package/lib/action-sheet/index.css +1 -0
- package/lib/action-sheet/index.js +194 -0
- package/lib/action-sheet/index.less +112 -0
- package/lib/action-sheet/style/index.js +7 -0
- package/lib/action-sheet/style/less.js +7 -0
- package/lib/area/index.js +331 -0
- package/lib/area/style/index.js +3 -0
- package/lib/area/style/less.js +3 -0
- package/lib/button/index.css +1 -0
- package/lib/button/index.js +188 -0
- package/lib/button/index.less +238 -0
- package/lib/button/style/index.js +5 -0
- package/lib/button/style/less.js +5 -0
- package/lib/calendar/components/Header.js +63 -0
- package/lib/calendar/components/Month.js +336 -0
- package/lib/calendar/index.css +1 -0
- package/lib/calendar/index.js +557 -0
- package/lib/calendar/index.less +210 -0
- package/lib/calendar/style/index.js +9 -0
- package/lib/calendar/style/less.js +9 -0
- package/lib/calendar/utils.js +91 -0
- package/lib/cell/index.css +1 -0
- package/lib/cell/index.js +137 -0
- package/lib/cell/index.less +103 -0
- package/lib/cell/shared.js +29 -0
- package/lib/cell/style/index.js +4 -0
- package/lib/cell/style/less.js +4 -0
- package/lib/cell-group/index.css +1 -0
- package/lib/cell-group/index.js +47 -0
- package/lib/cell-group/index.less +12 -0
- package/lib/cell-group/style/index.js +2 -0
- package/lib/cell-group/style/less.js +2 -0
- package/lib/checkbox/index.css +1 -0
- package/lib/checkbox/index.js +88 -0
- package/lib/checkbox/index.less +85 -0
- package/lib/checkbox/style/index.js +4 -0
- package/lib/checkbox/style/less.js +4 -0
- package/lib/checkbox-group/index.css +1 -0
- package/lib/checkbox-group/index.js +73 -0
- package/lib/checkbox-group/index.less +8 -0
- package/lib/checkbox-group/style/index.js +2 -0
- package/lib/checkbox-group/style/less.js +2 -0
- package/lib/collapse/index.js +48 -0
- package/lib/collapse/style/index.js +1 -0
- package/lib/collapse/style/less.js +1 -0
- package/lib/collapse-item/index.css +1 -0
- package/lib/collapse-item/index.js +213 -0
- package/lib/collapse-item/index.less +67 -0
- package/lib/collapse-item/style/index.js +5 -0
- package/lib/collapse-item/style/less.js +5 -0
- package/lib/contact-card/index.css +1 -0
- package/lib/contact-card/index.js +72 -0
- package/lib/contact-card/index.less +42 -0
- package/lib/contact-card/style/index.js +5 -0
- package/lib/contact-card/style/less.js +5 -0
- package/lib/contact-edit/index.css +1 -0
- package/lib/contact-edit/index.js +210 -0
- package/lib/contact-edit/index.less +30 -0
- package/lib/contact-edit/style/index.js +14 -0
- package/lib/contact-edit/style/less.js +14 -0
- package/lib/contact-list/index.css +1 -0
- package/lib/contact-list/index.js +138 -0
- package/lib/contact-list/index.less +54 -0
- package/lib/contact-list/style/index.js +10 -0
- package/lib/contact-list/style/less.js +10 -0
- package/lib/datetime-picker/DatePicker.js +261 -0
- package/lib/datetime-picker/TimePicker.js +117 -0
- package/lib/datetime-picker/index.js +41 -0
- package/lib/datetime-picker/shared.js +124 -0
- package/lib/datetime-picker/style/index.js +3 -0
- package/lib/datetime-picker/style/less.js +3 -0
- package/lib/datetime-picker/utils.js +39 -0
- package/lib/demo-button/index-sfc.css +1 -0
- package/lib/demo-button/index-sfc.less +9 -0
- package/lib/demo-button/index.js +33 -0
- package/lib/demo-button/style/index.js +1 -0
- package/lib/demo-button/style/less.js +1 -0
- package/lib/dialog/Dialog.js +261 -0
- package/lib/dialog/index.css +1 -0
- package/lib/dialog/index.js +116 -0
- package/lib/dialog/index.less +153 -0
- package/lib/dialog/style/index.js +10 -0
- package/lib/dialog/style/less.js +10 -0
- package/lib/dropdown-item/index.css +1 -0
- package/lib/dropdown-item/index.js +225 -0
- package/lib/dropdown-item/index.less +39 -0
- package/lib/dropdown-item/style/index.js +7 -0
- package/lib/dropdown-item/style/less.js +7 -0
- package/lib/dropdown-menu/index.css +1 -0
- package/lib/dropdown-menu/index.js +142 -0
- package/lib/dropdown-menu/index.less +77 -0
- package/lib/dropdown-menu/style/index.js +2 -0
- package/lib/dropdown-menu/style/less.js +2 -0
- package/lib/empty/Network.js +198 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +92 -0
- package/lib/empty/index.less +32 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.css +1 -0
- package/lib/field/index.js +639 -0
- package/lib/field/index.less +172 -0
- package/lib/field/style/index.js +5 -0
- package/lib/field/style/less.js +5 -0
- package/lib/form/index.js +208 -0
- package/lib/form/style/index.js +1 -0
- package/lib/form/style/less.js +1 -0
- package/lib/goods-action/index.css +1 -0
- package/lib/goods-action/index.js +32 -0
- package/lib/goods-action/index.less +19 -0
- package/lib/goods-action/style/index.js +2 -0
- package/lib/goods-action/style/less.js +2 -0
- package/lib/goods-action-button/index.css +1 -0
- package/lib/goods-action-button/index.js +70 -0
- package/lib/goods-action-button/index.less +34 -0
- package/lib/goods-action-button/style/index.js +6 -0
- package/lib/goods-action-button/style/less.js +6 -0
- package/lib/icon/index.css +1 -0
- package/lib/icon/index.js +87 -0
- package/lib/icon/index.less +11 -0
- package/lib/icon/local.css +1 -0
- package/lib/icon/local.less +1 -0
- package/lib/icon/style/index.js +3 -0
- package/lib/icon/style/less.js +3 -0
- package/lib/image/index.css +1 -0
- package/lib/image/index.js +199 -0
- package/lib/image/index.less +47 -0
- package/lib/image/style/index.js +4 -0
- package/lib/image/style/less.js +4 -0
- package/lib/image-preview/ImagePreview.js +250 -0
- package/lib/image-preview/ImagePreviewItem.js +256 -0
- package/lib/image-preview/index.css +1 -0
- package/lib/image-preview/index.js +96 -0
- package/lib/image-preview/index.less +103 -0
- package/lib/image-preview/shared.js +13 -0
- package/lib/image-preview/style/index.js +10 -0
- package/lib/image-preview/style/less.js +10 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.js +93 -0
- package/lib/index-anchor/index.less +21 -0
- package/lib/index-anchor/style/index.js +2 -0
- package/lib/index-anchor/style/less.js +2 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.js +235 -0
- package/lib/index-bar/index.less +27 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/style/less.js +2 -0
- package/lib/index.css +1 -0
- package/lib/index.js +262 -0
- package/lib/index.less +52 -0
- package/lib/info/index.css +1 -0
- package/lib/info/index.js +42 -0
- package/lib/info/index.less +29 -0
- package/lib/info/style/index.js +2 -0
- package/lib/info/style/less.js +2 -0
- package/lib/lazyload/index.js +11 -0
- package/lib/lazyload/style/index.js +1 -0
- package/lib/lazyload/style/less.js +1 -0
- package/lib/list/index.css +1 -0
- package/lib/list/index.js +191 -0
- package/lib/list/index.less +21 -0
- package/lib/list/style/index.js +3 -0
- package/lib/list/style/less.js +3 -0
- package/lib/loading/index.css +1 -0
- package/lib/loading/index.js +98 -0
- package/lib/loading/index.less +103 -0
- package/lib/loading/style/index.js +2 -0
- package/lib/loading/style/less.js +2 -0
- package/lib/locale/index.js +38 -0
- package/lib/locale/lang/de-DE-formal.js +95 -0
- package/lib/locale/lang/de-DE.js +95 -0
- package/lib/locale/lang/en-US.js +95 -0
- package/lib/locale/lang/es-ES.js +95 -0
- package/lib/locale/lang/ja-JP.js +96 -0
- package/lib/locale/lang/nb-NO.js +95 -0
- package/lib/locale/lang/ro-RO.js +95 -0
- package/lib/locale/lang/tr-TR.js +95 -0
- package/lib/locale/lang/zh-CN.js +96 -0
- package/lib/locale/lang/zh-HK.js +96 -0
- package/lib/locale/lang/zh-TW.js +96 -0
- package/lib/locale/style/index.js +1 -0
- package/lib/locale/style/less.js +1 -0
- package/lib/mixins/bind-event.js +36 -0
- package/lib/mixins/checkbox.js +152 -0
- package/lib/mixins/click-outside.js +41 -0
- package/lib/mixins/close-on-popstate.js +46 -0
- package/lib/mixins/field.js +29 -0
- package/lib/mixins/popup/context.js +15 -0
- package/lib/mixins/popup/index.js +224 -0
- package/lib/mixins/popup/overlay.js +95 -0
- package/lib/mixins/popup/type.js +1 -0
- package/lib/mixins/portal.js +53 -0
- package/lib/mixins/relation.js +84 -0
- package/lib/mixins/slots.js +29 -0
- package/lib/mixins/touch.js +65 -0
- package/lib/nav-bar/index.css +1 -0
- package/lib/nav-bar/index.js +135 -0
- package/lib/nav-bar/index.less +77 -0
- package/lib/nav-bar/style/index.js +4 -0
- package/lib/nav-bar/style/less.js +4 -0
- package/lib/number-keyboard/CollapseIcon.js +21 -0
- package/lib/number-keyboard/DeleteIcon.js +21 -0
- package/lib/number-keyboard/Key.js +134 -0
- package/lib/number-keyboard/index.css +1 -0
- package/lib/number-keyboard/index.js +423 -0
- package/lib/number-keyboard/index.less +191 -0
- package/lib/number-keyboard/style/index.js +3 -0
- package/lib/number-keyboard/style/less.js +3 -0
- package/lib/overlay/index.css +1 -0
- package/lib/overlay/index.js +67 -0
- package/lib/overlay/index.less +11 -0
- package/lib/overlay/style/index.js +2 -0
- package/lib/overlay/style/less.js +2 -0
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +97 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/picker/PickerColumn.js +314 -0
- package/lib/picker/index.css +1 -0
- package/lib/picker/index.js +399 -0
- package/lib/picker/index.less +118 -0
- package/lib/picker/shared.js +28 -0
- package/lib/picker/style/index.js +3 -0
- package/lib/picker/style/less.js +3 -0
- package/lib/popover/index.css +1 -0
- package/lib/popover/index.js +226 -0
- package/lib/popover/index.less +270 -0
- package/lib/popover/style/index.js +6 -0
- package/lib/popover/style/less.js +6 -0
- package/lib/popup/index.css +1 -0
- package/lib/popup/index.js +122 -0
- package/lib/popup/index.less +140 -0
- package/lib/popup/style/index.js +5 -0
- package/lib/popup/style/less.js +5 -0
- package/lib/pull-refresh/index.css +1 -0
- package/lib/pull-refresh/index.js +227 -0
- package/lib/pull-refresh/index.less +25 -0
- package/lib/pull-refresh/style/index.js +3 -0
- package/lib/pull-refresh/style/less.js +3 -0
- package/lib/radio/index.css +1 -0
- package/lib/radio/index.js +40 -0
- package/lib/radio/index.less +86 -0
- package/lib/radio/style/index.js +4 -0
- package/lib/radio/style/less.js +4 -0
- package/lib/radio-group/index.css +1 -0
- package/lib/radio-group/index.js +41 -0
- package/lib/radio-group/index.less +8 -0
- package/lib/radio-group/style/index.js +2 -0
- package/lib/radio-group/style/less.js +2 -0
- package/lib/rate/index.css +1 -0
- package/lib/rate/index.js +240 -0
- package/lib/rate/index.less +46 -0
- package/lib/rate/style/index.js +4 -0
- package/lib/rate/style/less.js +4 -0
- package/lib/search/index.css +1 -0
- package/lib/search/index.js +128 -0
- package/lib/search/index.less +68 -0
- package/lib/search/style/index.js +6 -0
- package/lib/search/style/less.js +6 -0
- package/lib/slider/index.css +1 -0
- package/lib/slider/index.js +300 -0
- package/lib/slider/index.less +94 -0
- package/lib/slider/style/index.js +2 -0
- package/lib/slider/style/less.js +2 -0
- package/lib/step/index.css +1 -0
- package/lib/step/index.js +127 -0
- package/lib/step/index.less +151 -0
- package/lib/step/style/index.js +4 -0
- package/lib/step/style/less.js +4 -0
- package/lib/stepper/index.css +1 -0
- package/lib/stepper/index.js +369 -0
- package/lib/stepper/index.less +129 -0
- package/lib/stepper/style/index.js +2 -0
- package/lib/stepper/style/less.js +2 -0
- package/lib/steps/index.css +1 -0
- package/lib/steps/index.js +43 -0
- package/lib/steps/index.less +21 -0
- package/lib/steps/style/index.js +2 -0
- package/lib/steps/style/less.js +2 -0
- package/lib/sticky/index.css +1 -0
- package/lib/sticky/index.js +157 -0
- package/lib/sticky/index.less +11 -0
- package/lib/sticky/style/index.js +2 -0
- package/lib/sticky/style/less.js +2 -0
- package/lib/style/animation.css +1 -0
- package/lib/style/animation.less +139 -0
- package/lib/style/base.css +1 -0
- package/lib/style/base.less +10 -0
- package/lib/style/clearfix.css +1 -0
- package/lib/style/clearfix.less +5 -0
- package/lib/style/ellipsis.css +1 -0
- package/lib/style/ellipsis.less +13 -0
- package/lib/style/hairline.css +1 -0
- package/lib/style/hairline.less +47 -0
- package/lib/style/iconfont.css +1 -0
- package/lib/style/iconfont.less +910 -0
- package/lib/style/mixins/clearfix.css +0 -0
- package/lib/style/mixins/clearfix.less +7 -0
- package/lib/style/mixins/ellipsis.css +0 -0
- package/lib/style/mixins/ellipsis.less +15 -0
- package/lib/style/mixins/hairline.css +0 -0
- package/lib/style/mixins/hairline.less +39 -0
- package/lib/style/normalize.css +1 -0
- package/lib/style/normalize.less +38 -0
- package/lib/style/reset.css +1 -0
- package/lib/style/reset.less +171 -0
- package/lib/style/var.css +0 -0
- package/lib/style/var.less +983 -0
- package/lib/swipe/index.css +1 -0
- package/lib/swipe/index.js +443 -0
- package/lib/swipe/index.less +56 -0
- package/lib/swipe/style/index.js +2 -0
- package/lib/swipe/style/less.js +2 -0
- package/lib/swipe-item/index.css +1 -0
- package/lib/swipe-item/index.js +89 -0
- package/lib/swipe-item/index.less +8 -0
- package/lib/swipe-item/style/index.js +2 -0
- package/lib/swipe-item/style/less.js +2 -0
- package/lib/switch/index.css +1 -0
- package/lib/switch/index.js +86 -0
- package/lib/switch/index.less +57 -0
- package/lib/switch/shared.js +25 -0
- package/lib/switch/style/index.js +3 -0
- package/lib/switch/style/less.js +3 -0
- package/lib/tab/index.css +1 -0
- package/lib/tab/index.js +114 -0
- package/lib/tab/index.less +24 -0
- package/lib/tab/style/index.js +2 -0
- package/lib/tab/style/less.js +2 -0
- package/lib/tabs/Content.js +90 -0
- package/lib/tabs/Title.js +102 -0
- package/lib/tabs/index.css +1 -0
- package/lib/tabs/index.js +441 -0
- package/lib/tabs/index.less +153 -0
- package/lib/tabs/style/index.js +4 -0
- package/lib/tabs/style/less.js +4 -0
- package/lib/tabs/utils.js +53 -0
- package/lib/tag/index.css +1 -0
- package/lib/tag/index.js +87 -0
- package/lib/tag/index.less +97 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/tag/style/less.js +4 -0
- package/lib/tlvant.js +16647 -0
- package/lib/tlvant.min.js +7 -0
- package/lib/toast/Toast.js +168 -0
- package/lib/toast/index.css +1 -0
- package/lib/toast/index.js +200 -0
- package/lib/toast/index.less +76 -0
- package/lib/toast/lock-click.js +21 -0
- package/lib/toast/style/index.js +7 -0
- package/lib/toast/style/less.js +7 -0
- package/lib/types/address-edit.d.js +22 -0
- package/lib/types/area.d.js +22 -0
- package/lib/types/calendar.d.js +22 -0
- package/lib/types/checkbox-group.d.js +22 -0
- package/lib/types/checkbox.d.js +22 -0
- package/lib/types/collapse-item.d.js +22 -0
- package/lib/types/component.d.js +22 -0
- package/lib/types/count-down.d.js +22 -0
- package/lib/types/datetime-picker.d.js +22 -0
- package/lib/types/dialog.d.js +6 -0
- package/lib/types/dropdown-item.d.js +22 -0
- package/lib/types/field.d.js +22 -0
- package/lib/types/form.d.js +22 -0
- package/lib/types/image-preview.d.js +24 -0
- package/lib/types/index-bar.d.js +22 -0
- package/lib/types/index.d.js +862 -0
- package/lib/types/jsx.d.js +1 -0
- package/lib/types/lazyload.d.js +6 -0
- package/lib/types/list.d.js +22 -0
- package/lib/types/locale.d.js +6 -0
- package/lib/types/mixins/popup.d.js +8 -0
- package/lib/types/notify.d.js +11 -0
- package/lib/types/picker.d.js +22 -0
- package/lib/types/progress.d.js +22 -0
- package/lib/types/sku.d.js +22 -0
- package/lib/types/swipe-cell.d.js +22 -0
- package/lib/types/swipe.d.js +22 -0
- package/lib/types/tabs.d.js +22 -0
- package/lib/types/toast.d.js +11 -0
- package/lib/types/uploader.d.js +22 -0
- package/lib/uploader/index.css +1 -0
- package/lib/uploader/index.js +467 -0
- package/lib/uploader/index.less +159 -0
- package/lib/uploader/style/index.js +11 -0
- package/lib/uploader/style/less.js +11 -0
- package/lib/uploader/utils.js +71 -0
- package/lib/utils/constant.js +22 -0
- package/lib/utils/create/bem.js +44 -0
- package/lib/utils/create/component.js +70 -0
- package/lib/utils/create/i18n.js +27 -0
- package/lib/utils/create/index.js +15 -0
- package/lib/utils/deep-assign.js +30 -0
- package/lib/utils/deep-clone.js +20 -0
- package/lib/utils/dom/event.js +62 -0
- package/lib/utils/dom/node.js +12 -0
- package/lib/utils/dom/raf.js +47 -0
- package/lib/utils/dom/reset-scroll.js +21 -0
- package/lib/utils/dom/scroll.js +89 -0
- package/lib/utils/dom/style.js +14 -0
- package/lib/utils/format/number.js +53 -0
- package/lib/utils/format/string.js +26 -0
- package/lib/utils/format/unit.js +68 -0
- package/lib/utils/functional.js +68 -0
- package/lib/utils/index.js +56 -0
- package/lib/utils/interceptor.js +28 -0
- package/lib/utils/router.js +46 -0
- package/lib/utils/types.js +1 -0
- package/lib/utils/validate/date.js +10 -0
- package/lib/utils/validate/email.js +10 -0
- package/lib/utils/validate/mobile.js +9 -0
- package/lib/utils/validate/number.js +18 -0
- package/lib/utils/validate/system.js +17 -0
- package/lib/utils/vnodes.js +41 -0
- package/package.json +2 -1
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
|
|
6
|
+
var _utils = require("../utils");
|
|
7
|
+
|
|
8
|
+
var _deepClone = require("../utils/deep-clone");
|
|
9
|
+
|
|
10
|
+
var _event = require("../utils/dom/event");
|
|
11
|
+
|
|
12
|
+
var _touch = require("../mixins/touch");
|
|
13
|
+
|
|
14
|
+
var _field = require("../mixins/field");
|
|
15
|
+
|
|
16
|
+
var _createNamespace = (0, _utils.createNamespace)('slider'),
|
|
17
|
+
createComponent = _createNamespace[0],
|
|
18
|
+
bem = _createNamespace[1];
|
|
19
|
+
|
|
20
|
+
var isSameValue = function isSameValue(newValue, oldValue) {
|
|
21
|
+
return JSON.stringify(newValue) === JSON.stringify(oldValue);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var _default = createComponent({
|
|
25
|
+
mixins: [_touch.TouchMixin, _field.FieldMixin],
|
|
26
|
+
props: {
|
|
27
|
+
disabled: Boolean,
|
|
28
|
+
vertical: Boolean,
|
|
29
|
+
range: Boolean,
|
|
30
|
+
barHeight: [Number, String],
|
|
31
|
+
buttonSize: [Number, String],
|
|
32
|
+
activeColor: String,
|
|
33
|
+
inactiveColor: String,
|
|
34
|
+
min: {
|
|
35
|
+
type: [Number, String],
|
|
36
|
+
default: 0
|
|
37
|
+
},
|
|
38
|
+
max: {
|
|
39
|
+
type: [Number, String],
|
|
40
|
+
default: 100
|
|
41
|
+
},
|
|
42
|
+
step: {
|
|
43
|
+
type: [Number, String],
|
|
44
|
+
default: 1
|
|
45
|
+
},
|
|
46
|
+
value: {
|
|
47
|
+
type: [Number, Array],
|
|
48
|
+
default: 0
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
data: function data() {
|
|
52
|
+
return {
|
|
53
|
+
dragStatus: ''
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
computed: {
|
|
57
|
+
scope: function scope() {
|
|
58
|
+
return this.max - this.min;
|
|
59
|
+
},
|
|
60
|
+
buttonStyle: function buttonStyle() {
|
|
61
|
+
if (this.buttonSize) {
|
|
62
|
+
var size = (0, _utils.addUnit)(this.buttonSize);
|
|
63
|
+
return {
|
|
64
|
+
width: size,
|
|
65
|
+
height: size
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
created: function created() {
|
|
71
|
+
// format initial value
|
|
72
|
+
this.updateValue(this.value);
|
|
73
|
+
},
|
|
74
|
+
mounted: function mounted() {
|
|
75
|
+
if (this.range) {
|
|
76
|
+
this.bindTouchEvent(this.$refs.wrapper0);
|
|
77
|
+
this.bindTouchEvent(this.$refs.wrapper1);
|
|
78
|
+
} else {
|
|
79
|
+
this.bindTouchEvent(this.$refs.wrapper);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
onTouchStart: function onTouchStart(event) {
|
|
84
|
+
if (this.disabled) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
this.touchStart(event);
|
|
89
|
+
this.currentValue = this.value;
|
|
90
|
+
|
|
91
|
+
if (this.range) {
|
|
92
|
+
this.startValue = this.value.map(this.format);
|
|
93
|
+
} else {
|
|
94
|
+
this.startValue = this.format(this.value);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
this.dragStatus = 'start';
|
|
98
|
+
},
|
|
99
|
+
onTouchMove: function onTouchMove(event) {
|
|
100
|
+
if (this.disabled) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (this.dragStatus === 'start') {
|
|
105
|
+
this.$emit('drag-start');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
(0, _event.preventDefault)(event, true);
|
|
109
|
+
this.touchMove(event);
|
|
110
|
+
this.dragStatus = 'draging';
|
|
111
|
+
var rect = this.$el.getBoundingClientRect();
|
|
112
|
+
var delta = this.vertical ? this.deltaY : this.deltaX;
|
|
113
|
+
var total = this.vertical ? rect.height : rect.width;
|
|
114
|
+
var diff = delta / total * this.scope;
|
|
115
|
+
|
|
116
|
+
if (this.range) {
|
|
117
|
+
this.currentValue[this.index] = this.startValue[this.index] + diff;
|
|
118
|
+
} else {
|
|
119
|
+
this.currentValue = this.startValue + diff;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
this.updateValue(this.currentValue);
|
|
123
|
+
},
|
|
124
|
+
onTouchEnd: function onTouchEnd() {
|
|
125
|
+
if (this.disabled) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (this.dragStatus === 'draging') {
|
|
130
|
+
this.updateValue(this.currentValue, true);
|
|
131
|
+
this.$emit('drag-end');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.dragStatus = '';
|
|
135
|
+
},
|
|
136
|
+
onClick: function onClick(event) {
|
|
137
|
+
event.stopPropagation();
|
|
138
|
+
if (this.disabled) return;
|
|
139
|
+
var rect = this.$el.getBoundingClientRect();
|
|
140
|
+
var delta = this.vertical ? event.clientY - rect.top : event.clientX - rect.left;
|
|
141
|
+
var total = this.vertical ? rect.height : rect.width;
|
|
142
|
+
var value = +this.min + delta / total * this.scope;
|
|
143
|
+
|
|
144
|
+
if (this.range) {
|
|
145
|
+
var _this$value = this.value,
|
|
146
|
+
left = _this$value[0],
|
|
147
|
+
right = _this$value[1];
|
|
148
|
+
var middle = (left + right) / 2;
|
|
149
|
+
|
|
150
|
+
if (value <= middle) {
|
|
151
|
+
left = value;
|
|
152
|
+
} else {
|
|
153
|
+
right = value;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
value = [left, right];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
this.startValue = this.value;
|
|
160
|
+
this.updateValue(value, true);
|
|
161
|
+
},
|
|
162
|
+
// 处理两个滑块重叠之后的情况
|
|
163
|
+
handleOverlap: function handleOverlap(value) {
|
|
164
|
+
if (value[0] > value[1]) {
|
|
165
|
+
value = (0, _deepClone.deepClone)(value);
|
|
166
|
+
return value.reverse();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return value;
|
|
170
|
+
},
|
|
171
|
+
updateValue: function updateValue(value, end) {
|
|
172
|
+
if (this.range) {
|
|
173
|
+
value = this.handleOverlap(value).map(this.format);
|
|
174
|
+
} else {
|
|
175
|
+
value = this.format(value);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!isSameValue(value, this.value)) {
|
|
179
|
+
this.$emit('input', value);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (end && !isSameValue(value, this.startValue)) {
|
|
183
|
+
this.$emit('change', value);
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
format: function format(value) {
|
|
187
|
+
return Math.round(Math.max(this.min, Math.min(value, this.max)) / this.step) * this.step;
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
render: function render() {
|
|
191
|
+
var _wrapperStyle,
|
|
192
|
+
_this = this,
|
|
193
|
+
_barStyle;
|
|
194
|
+
|
|
195
|
+
var h = arguments[0];
|
|
196
|
+
var vertical = this.vertical;
|
|
197
|
+
var mainAxis = vertical ? 'height' : 'width';
|
|
198
|
+
var crossAxis = vertical ? 'width' : 'height';
|
|
199
|
+
var wrapperStyle = (_wrapperStyle = {
|
|
200
|
+
background: this.inactiveColor
|
|
201
|
+
}, _wrapperStyle[crossAxis] = (0, _utils.addUnit)(this.barHeight), _wrapperStyle); // 计算选中条的长度百分比
|
|
202
|
+
|
|
203
|
+
var calcMainAxis = function calcMainAxis() {
|
|
204
|
+
var value = _this.value,
|
|
205
|
+
min = _this.min,
|
|
206
|
+
range = _this.range,
|
|
207
|
+
scope = _this.scope;
|
|
208
|
+
|
|
209
|
+
if (range) {
|
|
210
|
+
return (value[1] - value[0]) * 100 / scope + "%";
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return (value - min) * 100 / scope + "%";
|
|
214
|
+
}; // 计算选中条的开始位置的偏移量
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
var calcOffset = function calcOffset() {
|
|
218
|
+
var value = _this.value,
|
|
219
|
+
min = _this.min,
|
|
220
|
+
range = _this.range,
|
|
221
|
+
scope = _this.scope;
|
|
222
|
+
|
|
223
|
+
if (range) {
|
|
224
|
+
return (value[0] - min) * 100 / scope + "%";
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return null;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
var barStyle = (_barStyle = {}, _barStyle[mainAxis] = calcMainAxis(), _barStyle.left = this.vertical ? null : calcOffset(), _barStyle.top = this.vertical ? calcOffset() : null, _barStyle.background = this.activeColor, _barStyle);
|
|
231
|
+
|
|
232
|
+
if (this.dragStatus) {
|
|
233
|
+
barStyle.transition = 'none';
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
var renderButton = function renderButton(i) {
|
|
237
|
+
var map = ['left', 'right'];
|
|
238
|
+
var isNumber = typeof i === 'number';
|
|
239
|
+
|
|
240
|
+
var getClassName = function getClassName() {
|
|
241
|
+
if (isNumber) {
|
|
242
|
+
return "button-wrapper-" + map[i];
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return "button-wrapper";
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
var getRefName = function getRefName() {
|
|
249
|
+
if (isNumber) {
|
|
250
|
+
return "wrapper" + i;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return "wrapper";
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
return h("div", {
|
|
257
|
+
"ref": getRefName(),
|
|
258
|
+
"attrs": {
|
|
259
|
+
"role": "slider",
|
|
260
|
+
"tabindex": _this.disabled ? -1 : 0,
|
|
261
|
+
"aria-valuemin": _this.min,
|
|
262
|
+
"aria-valuenow": _this.value,
|
|
263
|
+
"aria-valuemax": _this.max,
|
|
264
|
+
"aria-orientation": _this.vertical ? 'vertical' : 'horizontal'
|
|
265
|
+
},
|
|
266
|
+
"class": bem(getClassName()),
|
|
267
|
+
"on": {
|
|
268
|
+
"touchstart": function touchstart() {
|
|
269
|
+
if (isNumber) {
|
|
270
|
+
// 保存当前按钮的索引
|
|
271
|
+
_this.index = i;
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"click": function click(e) {
|
|
275
|
+
return e.stopPropagation();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}, [_this.slots('button') || h("div", {
|
|
279
|
+
"class": bem('button'),
|
|
280
|
+
"style": _this.buttonStyle
|
|
281
|
+
})]);
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
return h("div", {
|
|
285
|
+
"style": wrapperStyle,
|
|
286
|
+
"class": bem({
|
|
287
|
+
disabled: this.disabled,
|
|
288
|
+
vertical: vertical
|
|
289
|
+
}),
|
|
290
|
+
"on": {
|
|
291
|
+
"click": this.onClick
|
|
292
|
+
}
|
|
293
|
+
}, [h("div", {
|
|
294
|
+
"class": bem('bar'),
|
|
295
|
+
"style": barStyle
|
|
296
|
+
}, [this.range ? [renderButton(0), renderButton(1)] : renderButton()])]);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
exports.default = _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.van-slider {
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: @slider-bar-height;
|
|
7
|
+
background-color: @slider-inactive-background-color;
|
|
8
|
+
border-radius: @border-radius-max;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
|
|
11
|
+
// use pseudo element to expand click area
|
|
12
|
+
&::before {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: -@padding-xs;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: -@padding-xs;
|
|
17
|
+
left: 0;
|
|
18
|
+
content: '';
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__bar {
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
background-color: @slider-active-background-color;
|
|
26
|
+
border-radius: inherit;
|
|
27
|
+
transition: all @animation-duration-fast;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__button {
|
|
31
|
+
width: @slider-button-width;
|
|
32
|
+
height: @slider-button-height;
|
|
33
|
+
background-color: @slider-button-background-color;
|
|
34
|
+
border-radius: @slider-button-border-radius;
|
|
35
|
+
box-shadow: @slider-button-box-shadow;
|
|
36
|
+
|
|
37
|
+
&-wrapper,
|
|
38
|
+
&-wrapper-right {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 50%;
|
|
41
|
+
right: 0;
|
|
42
|
+
transform: translate3d(50%, -50%, 0);
|
|
43
|
+
cursor: grab;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-wrapper-left {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 50%;
|
|
49
|
+
left: 0;
|
|
50
|
+
transform: translate3d(-50%, -50%, 0);
|
|
51
|
+
cursor: grab;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&--disabled {
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
opacity: @slider-disabled-opacity;
|
|
58
|
+
|
|
59
|
+
.van-slider__button-wrapper,
|
|
60
|
+
.van-slider__button-wrapper-left,
|
|
61
|
+
.van-slider__button-wrapper-right {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&--vertical {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
width: @slider-bar-height;
|
|
69
|
+
height: 100%;
|
|
70
|
+
|
|
71
|
+
.van-slider__button-wrapper,
|
|
72
|
+
.van-slider__button-wrapper-right {
|
|
73
|
+
top: auto;
|
|
74
|
+
right: 50%;
|
|
75
|
+
bottom: 0;
|
|
76
|
+
transform: translate3d(50%, 50%, 0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.van-slider__button-wrapper-left {
|
|
80
|
+
top: 0;
|
|
81
|
+
right: 50%;
|
|
82
|
+
left: auto;
|
|
83
|
+
transform: translate3d(50%, -50%, 0);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// use pseudo element to expand click area
|
|
87
|
+
&::before {
|
|
88
|
+
top: 0;
|
|
89
|
+
right: -@padding-xs;
|
|
90
|
+
bottom: 0;
|
|
91
|
+
left: -@padding-xs;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-step{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#969799;font-size:14px}.van-step__circle{display:block;width:5px;height:5px;background-color:#969799;border-radius:50%}.van-step__line{position:absolute;background-color:#ebedf0;-webkit-transition:background-color .3s;transition:background-color .3s}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;-webkit-transform:none;transform:none}.van-step--horizontal:last-child{position:absolute;right:1px;width:auto}.van-step--horizontal:last-child .van-step__title{margin-left:0;-webkit-transform:none;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:-9px;left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:30px;left:-8px;z-index:1;padding:0 8px;background-color:#fff;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:3px;font-size:12px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}@media (max-width:321px){.van-step--horizontal .van-step__title{font-size:11px}}.van-step--horizontal .van-step__line{top:30px;left:0;width:100%;height:1px}.van-step--horizontal .van-step__icon{display:block;font-size:12px}.van-step--horizontal .van-step--process{color:#323233}.van-step--vertical{display:block;float:none;padding:10px 10px 10px 0;line-height:18px}.van-step--vertical:not(:last-child)::after{border-bottom-width:1px}.van-step--vertical:first-child::before{position:absolute;top:0;left:-15px;z-index:1;width:1px;height:20px;background-color:#fff;content:''}.van-step--vertical .van-step__circle-container{position:absolute;top:19px;left:-15px;z-index:2;font-size:12px;line-height:1;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:16px;left:-15px;width:1px;height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:#323233}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:#07c160}.van-step__icon,.van-step__title{-webkit-transition:color .3s;transition:color .3s}.van-step__icon--active,.van-step__title--active{color:#07c160}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
|
|
10
|
+
var _constant = require("../utils/constant");
|
|
11
|
+
|
|
12
|
+
var _relation = require("../mixins/relation");
|
|
13
|
+
|
|
14
|
+
var _icon = _interopRequireDefault(require("../icon"));
|
|
15
|
+
|
|
16
|
+
var _createNamespace = (0, _utils.createNamespace)('step'),
|
|
17
|
+
createComponent = _createNamespace[0],
|
|
18
|
+
bem = _createNamespace[1];
|
|
19
|
+
|
|
20
|
+
var _default = createComponent({
|
|
21
|
+
mixins: [(0, _relation.ChildrenMixin)('vanSteps')],
|
|
22
|
+
computed: {
|
|
23
|
+
status: function status() {
|
|
24
|
+
if (this.index < this.parent.active) {
|
|
25
|
+
return 'finish';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (this.index === +this.parent.active) {
|
|
29
|
+
return 'process';
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
active: function active() {
|
|
33
|
+
return this.status === 'process';
|
|
34
|
+
},
|
|
35
|
+
lineStyle: function lineStyle() {
|
|
36
|
+
if (this.status === 'finish') {
|
|
37
|
+
return {
|
|
38
|
+
background: this.parent.activeColor
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return {
|
|
43
|
+
background: this.parent.inactiveColor
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
titleStyle: function titleStyle() {
|
|
47
|
+
if (this.active) {
|
|
48
|
+
return {
|
|
49
|
+
color: this.parent.activeColor
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (!this.status) {
|
|
54
|
+
return {
|
|
55
|
+
color: this.parent.inactiveColor
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
genCircle: function genCircle() {
|
|
62
|
+
var h = this.$createElement;
|
|
63
|
+
var _this$parent = this.parent,
|
|
64
|
+
activeIcon = _this$parent.activeIcon,
|
|
65
|
+
activeColor = _this$parent.activeColor,
|
|
66
|
+
inactiveIcon = _this$parent.inactiveIcon;
|
|
67
|
+
|
|
68
|
+
if (this.active) {
|
|
69
|
+
return this.slots('active-icon') || h(_icon.default, {
|
|
70
|
+
"class": bem('icon', 'active'),
|
|
71
|
+
"attrs": {
|
|
72
|
+
"name": activeIcon,
|
|
73
|
+
"color": activeColor
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var inactiveIconSlot = this.slots('inactive-icon');
|
|
79
|
+
|
|
80
|
+
if (inactiveIcon || inactiveIconSlot) {
|
|
81
|
+
return inactiveIconSlot || h(_icon.default, {
|
|
82
|
+
"class": bem('icon'),
|
|
83
|
+
"attrs": {
|
|
84
|
+
"name": inactiveIcon
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return h("i", {
|
|
90
|
+
"class": bem('circle'),
|
|
91
|
+
"style": this.lineStyle
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
onClickStep: function onClickStep() {
|
|
95
|
+
this.parent.$emit('click-step', this.index);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
render: function render() {
|
|
99
|
+
var _ref;
|
|
100
|
+
|
|
101
|
+
var h = arguments[0];
|
|
102
|
+
var status = this.status,
|
|
103
|
+
active = this.active;
|
|
104
|
+
var direction = this.parent.direction;
|
|
105
|
+
return h("div", {
|
|
106
|
+
"class": [_constant.BORDER, bem([direction, (_ref = {}, _ref[status] = status, _ref)])]
|
|
107
|
+
}, [h("div", {
|
|
108
|
+
"class": bem('title', {
|
|
109
|
+
active: active
|
|
110
|
+
}),
|
|
111
|
+
"style": this.titleStyle,
|
|
112
|
+
"on": {
|
|
113
|
+
"click": this.onClickStep
|
|
114
|
+
}
|
|
115
|
+
}, [this.slots()]), h("div", {
|
|
116
|
+
"class": bem('circle-container'),
|
|
117
|
+
"on": {
|
|
118
|
+
"click": this.onClickStep
|
|
119
|
+
}
|
|
120
|
+
}, [this.genCircle()]), h("div", {
|
|
121
|
+
"class": bem('line'),
|
|
122
|
+
"style": this.lineStyle
|
|
123
|
+
})]);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
exports.default = _default;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.van-step {
|
|
4
|
+
position: relative;
|
|
5
|
+
flex: 1;
|
|
6
|
+
color: @step-text-color;
|
|
7
|
+
font-size: @step-font-size;
|
|
8
|
+
|
|
9
|
+
&__circle {
|
|
10
|
+
display: block;
|
|
11
|
+
width: @step-circle-size;
|
|
12
|
+
height: @step-circle-size;
|
|
13
|
+
background-color: @step-circle-color;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__line {
|
|
18
|
+
position: absolute;
|
|
19
|
+
background-color: @step-line-color;
|
|
20
|
+
transition: background-color @animation-duration-base;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--horizontal {
|
|
24
|
+
float: left;
|
|
25
|
+
|
|
26
|
+
&:first-child {
|
|
27
|
+
.van-step__title {
|
|
28
|
+
margin-left: 0;
|
|
29
|
+
transform: none;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:last-child {
|
|
34
|
+
position: absolute;
|
|
35
|
+
right: 1px;
|
|
36
|
+
width: auto;
|
|
37
|
+
|
|
38
|
+
.van-step__title {
|
|
39
|
+
margin-left: 0;
|
|
40
|
+
transform: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.van-step__circle-container {
|
|
44
|
+
right: -9px;
|
|
45
|
+
left: auto;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.van-step__circle-container {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 30px;
|
|
52
|
+
left: -@padding-xs;
|
|
53
|
+
z-index: 1;
|
|
54
|
+
padding: 0 @padding-xs;
|
|
55
|
+
background-color: @white;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.van-step__title {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
margin-left: 3px;
|
|
62
|
+
font-size: @step-horizontal-title-font-size;
|
|
63
|
+
transform: translateX(-50%);
|
|
64
|
+
|
|
65
|
+
@media (max-width: 321px) {
|
|
66
|
+
font-size: @step-horizontal-title-font-size - 1px;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.van-step__line {
|
|
71
|
+
top: 30px;
|
|
72
|
+
left: 0;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 1px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.van-step__icon {
|
|
78
|
+
display: block;
|
|
79
|
+
font-size: @step-icon-size;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.van-step--process {
|
|
83
|
+
color: @step-process-text-color;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--vertical {
|
|
88
|
+
display: block;
|
|
89
|
+
float: none;
|
|
90
|
+
padding: 10px 10px 10px 0;
|
|
91
|
+
line-height: @line-height-sm;
|
|
92
|
+
|
|
93
|
+
&:not(:last-child)::after {
|
|
94
|
+
border-bottom-width: 1px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:first-child {
|
|
98
|
+
&::before {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: -15px;
|
|
102
|
+
z-index: 1;
|
|
103
|
+
width: 1px;
|
|
104
|
+
height: 20px;
|
|
105
|
+
background-color: @white;
|
|
106
|
+
content: '';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.van-step__circle-container {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 19px;
|
|
113
|
+
left: -15px;
|
|
114
|
+
z-index: 2;
|
|
115
|
+
font-size: @step-icon-size;
|
|
116
|
+
line-height: 1;
|
|
117
|
+
transform: translate(-50%, -50%);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.van-step__line {
|
|
121
|
+
top: 16px;
|
|
122
|
+
left: -15px;
|
|
123
|
+
width: 1px;
|
|
124
|
+
height: 100%;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:last-child {
|
|
129
|
+
.van-step__line {
|
|
130
|
+
width: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&--finish {
|
|
135
|
+
color: @step-finish-text-color;
|
|
136
|
+
|
|
137
|
+
.van-step__circle,
|
|
138
|
+
.van-step__line {
|
|
139
|
+
background-color: @step-finish-line-color;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__icon,
|
|
144
|
+
&__title {
|
|
145
|
+
transition: color @animation-duration-base;
|
|
146
|
+
|
|
147
|
+
&--active {
|
|
148
|
+
color: @step-active-color;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.van-stepper{font-size:0;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:28px;height:28px;margin:0;padding:0;color:#323233;vertical-align:middle;background-color:#f2f3f5;border:0;cursor:pointer}.van-stepper__minus::before,.van-stepper__plus::before{width:50%;height:1px}.van-stepper__minus::after,.van-stepper__plus::after{width:1px;height:50%}.van-stepper__minus::after,.van-stepper__minus::before,.van-stepper__plus::after,.van-stepper__plus::before{position:absolute;top:50%;left:50%;background-color:currentColor;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);content:''}.van-stepper__minus:active,.van-stepper__plus:active{background-color:#e8e8e8}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:#c8c9cc;background-color:#f7f8fa;cursor:not-allowed}.van-stepper__minus{border-radius:4px 0 0 4px}.van-stepper__minus::after{display:none}.van-stepper__plus{border-radius:0 4px 4px 0}.van-stepper__input{box-sizing:border-box;width:32px;height:28px;margin:0 2px;padding:0;color:#323233;font-size:14px;line-height:normal;text-align:center;vertical-align:middle;background-color:#f2f3f5;border:0;border-width:1px 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__minus,.van-stepper--round .van-stepper__plus{border-radius:100%}.van-stepper--round .van-stepper__minus--disabled,.van-stepper--round .van-stepper__minus--disabled:active,.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__plus--disabled:active{opacity:.3}.van-stepper--round .van-stepper__plus{color:#fff;background-color:#ff594d}.van-stepper--round .van-stepper__minus{color:#ccc;background-color:#fff;border:1px solid #ccc}
|