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)" + >