diff --git a/dist/area/index.js b/dist/area/index.js index 5ab503a7..7db2585d 100644 --- a/dist/area/index.js +++ b/dist/area/index.js @@ -83,7 +83,7 @@ VantComponent({ return result; } - var list = this.data.areaList[type + "_list"] || {}; + var list = this.data.areaList && this.data.areaList[type + "_list"] || {}; result = Object.keys(list).map(function (code) { return { code: code, @@ -113,7 +113,7 @@ VantComponent({ return 0; }, setValues: function setValues() { - var code = this.code || Object.keys(this.data.areaList.county_list || {})[0] || ''; + var code = this.code || this.data.areaList && Object.keys(this.data.areaList.county_list || {})[0] || ''; var province = this.getList('province'); var city = this.getList('city', code.slice(0, 2)); this.setData({ diff --git a/dist/area/index.wxml b/dist/area/index.wxml index a558ed74..0012f99d 100644 --- a/dist/area/index.wxml +++ b/dist/area/index.wxml @@ -1,5 +1,5 @@ - + 取消 {{ title }} 确定 diff --git a/dist/area/index.wxss b/dist/area/index.wxss index 071e7031..e1dbacc1 100644 --- a/dist/area/index.wxss +++ b/dist/area/index.wxss @@ -1 +1 @@ -@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;position:relative;overflow:hidden;background-color:#fff;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;height:40px;font-size:16px;line-height:40px}.van-picker__cancel,.van-picker__confirm{padding:0 15px;color:#38f}.van-picker__cancel:active,.van-picker__confirm:active{background-color:#e8e8e8}.van-picker__title{max-width:50%;text-align:center}.van-picker__columns{position:relative}.van-picker__loading{display:-webkit-flex;display:flex;z-index:4;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background-color:rgba(255,255,255,.9)}.van-picker-column{-webkit-flex:1;flex:1;overflow:hidden;font-size:16px;text-align:center}.van-picker-column__item{padding:0 5px;color:#999}.van-picker-column__item--selected{color:#000}.van-picker-column__item--disabled{opacity:.3} \ No newline at end of file +@import '../common/index.wxss';.van-picker{-webkit-text-size-adjust:100%;position:relative;overflow:hidden;background-color:#fff;-webkit-user-select:none;user-select:none}.van-picker__toolbar{display:-webkit-flex;display:flex;-webkit-justify-content:space-between;justify-content:space-between;height:44px;line-height:44px}.van-picker__cancel,.van-picker__confirm{color:#38f;padding:0 15px;font-size:14px}.van-picker__cancel:active,.van-picker__confirm:active{background-color:#e8e8e8}.van-picker__title{max-width:50%;font-size:16px;font-weight:500;text-align:center}.van-picker__columns{position:relative}.van-picker__loading{display:-webkit-flex;display:flex;z-index:4;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;background-color:rgba(255,255,255,.9)}.van-picker-column{-webkit-flex:1;flex:1;overflow:hidden;font-size:16px;text-align:center}.van-picker-column__item{padding:0 5px;color:#999}.van-picker-column__item--selected{font-weight:500;color:#333}.van-picker-column__item--disabled{opacity:.3} \ No newline at end of file diff --git a/dist/button/index.js b/dist/button/index.js index 029eee5b..de514fdc 100644 --- a/dist/button/index.js +++ b/dist/button/index.js @@ -2,10 +2,12 @@ import { VantComponent } from '../common/component'; import { button } from '../mixins/button'; import { openType } from '../mixins/open-type'; VantComponent({ + classes: ['loading-class'], mixins: [button, openType], props: { plain: Boolean, block: Boolean, + round: Boolean, square: Boolean, loading: Boolean, disabled: Boolean, @@ -23,13 +25,15 @@ VantComponent({ var _this$data = this.data, type = _this$data.type, size = _this$data.size, + block = _this$data.block, plain = _this$data.plain, - disabled = _this$data.disabled, - loading = _this$data.loading, + round = _this$data.round, square = _this$data.square, - block = _this$data.block; + loading = _this$data.loading, + disabled = _this$data.disabled; return this.classNames("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, diff --git a/dist/button/index.wxml b/dist/button/index.wxml index 8e99a568..6ee5b74a 100644 --- a/dist/button/index.wxml +++ b/dist/button/index.wxml @@ -1,8 +1,6 @@