From de4f6a8ce9c01568bd90aac944a99a549b3b905a Mon Sep 17 00:00:00 2001 From: rex-zsd Date: Wed, 19 Dec 2018 16:54:07 +0800 Subject: [PATCH] [build] 0.4.10 --- dist/action-sheet/index.js | 6 +- dist/action-sheet/index.wxml | 31 ++++--- dist/area/index.js | 35 ++++---- dist/area/index.wxml | 3 +- dist/area/index.wxss | 2 +- dist/badge/index.js | 2 +- dist/badge/index.json | 5 +- dist/badge/index.wxml | 10 ++- dist/badge/index.wxss | 2 +- dist/button/index.js | 22 ----- dist/button/index.wxml | 4 +- dist/card/index.js | 2 +- dist/card/index.wxml | 17 ++-- dist/card/index.wxss | 2 +- dist/cell/index.js | 16 ---- dist/cell/index.wxml | 6 +- dist/checkbox-group/index.js | 4 +- dist/checkbox/index.js | 24 ------ dist/checkbox/index.wxml | 8 +- dist/checkbox/index.wxss | 2 +- dist/col/index.js | 11 --- dist/col/index.wxml | 4 +- dist/collapse-item/index.js | 31 ++----- dist/collapse-item/index.wxml | 4 +- dist/collapse-item/index.wxss | 2 +- dist/common/class-names.js | 29 ------- dist/common/utils.js | 6 +- dist/common/utils.wxs | 5 -- dist/dialog/dialog.js | 1 + dist/dialog/index.js | 8 +- dist/dialog/index.wxml | 2 +- dist/dialog/index.wxss | 2 +- dist/field/index.js | 15 +--- dist/field/index.wxml | 11 ++- dist/field/index.wxss | 2 +- dist/goods-action/index.js | 18 +--- dist/goods-action/index.wxml | 4 +- dist/icon/index.json | 5 +- dist/icon/index.wxml | 12 ++- dist/icon/index.wxss | 2 +- dist/info/index.js | 7 ++ dist/info/index.json | 3 + dist/info/index.wxml | 7 ++ dist/info/index.wxss | 1 + dist/mixins/basic.js | 24 +----- dist/mixins/iphonex.js | 39 +++++++++ dist/picker-column/index.js | 132 +++++++++++++++++++++++++++++ dist/picker-column/index.json | 3 + dist/picker-column/index.wxml | 31 +++++++ dist/picker-column/index.wxss | 1 + dist/picker/index.js | 155 ++++++++++++++++++++++++++++++++++ dist/picker/index.json | 7 ++ dist/picker/index.wxml | 41 +++++++++ dist/picker/index.wxss | 1 + dist/popup/index.js | 19 +---- dist/popup/index.wxml | 4 +- dist/radio/index.js | 13 --- dist/radio/index.wxml | 4 +- dist/stepper/index.js | 8 ++ dist/stepper/index.wxml | 19 +++-- dist/stepper/index.wxss | 2 +- dist/submit-bar/index.js | 14 +-- dist/submit-bar/index.wxml | 4 +- dist/switch-cell/index.js | 4 +- dist/switch-cell/index.wxml | 2 + dist/switch-cell/index.wxss | 2 +- dist/switch/index.js | 12 --- dist/switch/index.wxml | 6 +- dist/switch/index.wxss | 2 +- dist/tabbar-item/index.json | 3 +- dist/tabbar-item/index.wxml | 12 ++- dist/tabbar-item/index.wxss | 2 +- dist/tabbar/index.js | 18 +--- dist/tabbar/index.wxml | 4 +- dist/tag/index.js | 25 +++--- dist/tag/index.wxml | 4 +- dist/toast/index.wxss | 2 +- dist/tree-select/index.js | 14 +-- dist/tree-select/index.json | 3 +- dist/tree-select/index.wxml | 9 +- dist/tree-select/index.wxss | 2 +- dist/wxs/array.wxs | 5 ++ dist/wxs/bem.wxs | 38 +++++++++ dist/wxs/memoize.wxs | 54 ++++++++++++ dist/wxs/object.wxs | 13 +++ dist/wxs/utils.wxs | 12 +++ 86 files changed, 780 insertions(+), 384 deletions(-) delete mode 100644 dist/common/class-names.js delete mode 100644 dist/common/utils.wxs create mode 100644 dist/info/index.js create mode 100644 dist/info/index.json create mode 100644 dist/info/index.wxml create mode 100644 dist/info/index.wxss create mode 100644 dist/mixins/iphonex.js create mode 100644 dist/picker-column/index.js create mode 100644 dist/picker-column/index.json create mode 100644 dist/picker-column/index.wxml create mode 100644 dist/picker-column/index.wxss create mode 100644 dist/picker/index.js create mode 100644 dist/picker/index.json create mode 100644 dist/picker/index.wxml create mode 100644 dist/picker/index.wxss create mode 100644 dist/wxs/array.wxs create mode 100644 dist/wxs/bem.wxs create mode 100644 dist/wxs/memoize.wxs create mode 100644 dist/wxs/object.wxs create mode 100644 dist/wxs/utils.wxs diff --git a/dist/action-sheet/index.js b/dist/action-sheet/index.js index 534fc458..7a93bff1 100644 --- a/dist/action-sheet/index.js +++ b/dist/action-sheet/index.js @@ -1,5 +1,7 @@ import { VantComponent } from '../common/component'; +import { iphonex } from '../mixins/iphonex'; VantComponent({ + mixins: [iphonex], props: { show: Boolean, title: String, @@ -19,10 +21,6 @@ VantComponent({ closeOnClickOverlay: { type: Boolean, value: true - }, - safeAreaInsetBottom: { - type: Boolean, - value: true } }, methods: { diff --git a/dist/action-sheet/index.wxml b/dist/action-sheet/index.wxml index 2435c5c1..dd71adcb 100644 --- a/dist/action-sheet/index.wxml +++ b/dist/action-sheet/index.wxml @@ -16,20 +16,23 @@ bind:click="onClose" /> - + + + + - {{ info }} - {{ title }} + + + {{ title }} + diff --git a/dist/badge/index.wxss b/dist/badge/index.wxss index bb5f6b2d..a6f3e822 100644 --- a/dist/badge/index.wxss +++ b/dist/badge/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-badge{display:block;overflow:hidden;font-size:14px;line-height:1.4;-webkit-user-select:none;user-select:none;color:#7d7e80;word-break:break-all;box-sizing:border-box;padding:20px 12px 20px 9px;background-color:#f8f8f8;border-left:3px solid transparent}.van-badge:active{background-color:#e8e8e8}.van-badge::after{border-bottom-width:1px}.van-badge--active{font-weight:700;color:#333;border-color:#f44}.van-badge--active::after{border-right-width:1px}.van-badge--active,.van-badge--active:active{background-color:#fff}.van-badge__info{position:absolute;top:4px;right:2px;color:#fff;font-size:12px;font-weight:500;-webkit-transform:scale(.8);transform:scale(.8);text-align:center;box-sizing:border-box;padding:0 6px;min-width:18px;line-height:18px;border-radius:9px;background-color:#f44} \ No newline at end of file +@import '../common/index.wxss';.van-badge{display:block;overflow:hidden;font-size:14px;line-height:1.4;-webkit-user-select:none;user-select:none;color:#7d7e80;word-break:break-all;box-sizing:border-box;padding:20px 12px 20px 9px;background-color:#f8f8f8;border-left:3px solid transparent}.van-badge:active{background-color:#e8e8e8}.van-badge::after{border-bottom-width:1px}.van-badge--active{font-weight:700;color:#333;border-color:#f44}.van-badge--active::after{border-right-width:1px}.van-badge--active,.van-badge--active:active{background-color:#fff}.van-badge__text{position:relative} \ No newline at end of file diff --git a/dist/button/index.js b/dist/button/index.js index c98a60ac..e5b2e792 100644 --- a/dist/button/index.js +++ b/dist/button/index.js @@ -20,28 +20,6 @@ VantComponent({ value: 'normal' } }, - computed: { - classes: function classes() { - var _this$data = this.data, - type = _this$data.type, - size = _this$data.size, - block = _this$data.block, - plain = _this$data.plain, - round = _this$data.round, - square = _this$data.square, - loading = _this$data.loading, - disabled = _this$data.disabled; - return this.classNames('van-button', "van-button--" + type, "van-button--" + size, { - 'van-button--block': block, - 'van-button--round': round, - 'van-button--plain': plain, - 'van-button--square': square, - 'van-button--loading': loading, - 'van-button--disabled': disabled, - 'van-button--unclickable': disabled || loading - }); - } - }, methods: { onClick: function onClick() { if (!this.data.disabled && !this.data.loading) { diff --git a/dist/button/index.wxml b/dist/button/index.wxml index 3480f938..63817067 100644 --- a/dist/button/index.wxml +++ b/dist/button/index.wxml @@ -1,7 +1,9 @@ + +