From ffa3fddfae124dcd0de2b849ed072b9c799cf653 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 16 Nov 2017 03:12:13 -0600 Subject: [PATCH] [bugfix] remove unnecessary props (#323) * fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [bugfix] Search box-sizing wrong * [Doc] update vant-demo respo * [Doc] translate theme & demo pages * [Doc] add Internationalization document * [bugfix] remove unnecessary props --- docs/demos/views/field.vue | 2 +- docs/demos/views/toast.vue | 4 +- docs/markdown/en-US/layout.md | 2 - docs/markdown/zh-CN/layout.md | 2 - package.json | 2 +- packages/actionsheet/index.vue | 18 +++++--- packages/address-edit/theme.md | 55 ------------------------ packages/area/index.vue | 31 ++++++------- packages/badge/index.vue | 17 ++------ packages/button/index.js | 9 +--- packages/card/index.vue | 2 +- packages/cell-swipe/index.vue | 8 ++-- packages/checkbox/index.vue | 5 +-- packages/col/index.vue | 24 ++++------- packages/contact-card/index.vue | 8 +--- packages/datetime-picker/index.vue | 9 +--- packages/dialog/dialog.vue | 14 ++---- packages/field/index.vue | 7 +-- packages/goods-action-big-btn/index.vue | 7 +-- packages/goods-action-mini-btn/index.vue | 10 +---- packages/icon/index.vue | 6 +-- packages/image-preview/image-preview.vue | 3 -- packages/loading/index.vue | 11 ++--- packages/notice-bar/index.vue | 10 +---- packages/panel/index.vue | 6 +-- packages/radio/index.vue | 2 +- packages/row/index.vue | 6 +-- packages/search/index.vue | 5 +-- packages/sku/containers/SkuContainer.vue | 5 +-- packages/step/index.vue | 23 ++++------ packages/steps/index.vue | 20 +++------ packages/submit-bar/index.vue | 2 +- packages/swipe/index.vue | 5 +-- packages/switch-cell/index.vue | 2 +- packages/switch/index.vue | 2 +- packages/tag/index.vue | 9 +--- packages/toast/index.js | 2 +- packages/toast/toast.vue | 19 ++------ packages/uploader/index.vue | 8 +--- packages/vant-css/src/tag.css | 32 +++++--------- test/unit/specs/deep-assign.spec.js | 2 +- yarn.lock | 6 +-- 42 files changed, 116 insertions(+), 306 deletions(-) delete mode 100644 packages/address-edit/theme.md diff --git a/docs/demos/views/field.vue b/docs/demos/views/field.vue index f0c78ea46..87057b8f1 100644 --- a/docs/demos/views/field.vue +++ b/docs/demos/views/field.vue @@ -14,7 +14,7 @@ icon="clear" :placeholder="$t('usernamePlaceholder')" required - @clickIcon="username = ''" + @click-icon="username = ''" > diff --git a/docs/demos/views/toast.vue b/docs/demos/views/toast.vue index 61d58208f..236cb98f8 100644 --- a/docs/demos/views/toast.vue +++ b/docs/demos/views/toast.vue @@ -67,14 +67,14 @@ export default { const toast = Toast.loading({ duration: 0, forbidClick: true, - message: this.$t('text4')(3) + message: this.$t('text4', 3) }); let second = 3; const timer = setInterval(() => { second--; if (second) { - toast.message = this.$t('text4')(second); + toast.message = this.$t('text4', second); } else { clearInterval(timer); Toast.clear(); diff --git a/docs/markdown/en-US/layout.md b/docs/markdown/en-US/layout.md index 0a65a42f4..9ff9c2b05 100644 --- a/docs/markdown/en-US/layout.md +++ b/docs/markdown/en-US/layout.md @@ -56,11 +56,9 @@ Set grid spacing using `gutter` attribute. The default value is 0 | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | gutter | grid spacing(px) | `String | Number` | - | - | -| prefix | className prefix | `String` | `van` | - | #### Column | Attribute | Description | Type | Default | Accepted Values | |-----------|-----------|-----------|-------------|-------------| | span | number of column the grid spans | `String | Number` | - | - | | offset | number of spacing on the left side of the grid | `String | Number` | - | - | -| prefix | className prefix | `String` | `van` | - | diff --git a/docs/markdown/zh-CN/layout.md b/docs/markdown/zh-CN/layout.md index c9a01eb4a..de7a665d2 100644 --- a/docs/markdown/zh-CN/layout.md +++ b/docs/markdown/zh-CN/layout.md @@ -52,11 +52,9 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置 | 参数 | 说明 | 类型 | 默认值 | 可选值 | |-----------|-----------|-----------|-------------|-------------| | gutter | 列元素之间的间距(单位为px) | `String | Number` | - | - | -| prefix | className 前缀 | `String` | `van` | - | #### Column | 参数 | 说明 | 类型 | 默认值 | 可选值 | |-----------|-----------|-----------|-------------|-------------| | span | 列元素宽度 | `String | Number` | - | - | | offset | 列元素偏移距离 | `String | Number` | - | - | -| prefix | className 前缀 | `String` | `van` | - | diff --git a/package.json b/package.json index 81e4253f3..d64c2611e 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "style-loader": "^0.19.0", "uppercamelcase": "^3.0.0", "url-loader": "^0.6.2", - "vant-doc": "0.3.17", + "vant-doc": "0.3.18", "vue": "^2.5.3", "vue-loader": "^13.5.0", "vue-markdown-loader": "^2.2.3", diff --git a/packages/actionsheet/index.vue b/packages/actionsheet/index.vue index dff11f5da..753bfb55a 100644 --- a/packages/actionsheet/index.vue +++ b/packages/actionsheet/index.vue @@ -10,7 +10,8 @@ v-for="(item, index) in actions" :key="index" :class="['van-actionsheet__item', 'van-hairline--top', item.className, { 'van-actionsheet__item--loading': item.loading }]" - @click.stop="onClickItem(item)"> + @click.stop="onClickItem(item)" + >