Skip to content

Commit

Permalink
x-img: support seperator prop
Browse files Browse the repository at this point in the history
Resolve #2744
  • Loading branch information
lichunqiang committed May 25, 2018
1 parent b9c742e commit a7082be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/x-img/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
offset: _this.offset,
errorClass: _this.errorClass,
successClass: _this.successClass,
separator: _this.separator,
success (ele) {
_this.$emit('on-success', _this.src, ele)
},
Expand Down Expand Up @@ -72,7 +73,8 @@ export default {
delay: {
type: Number,
default: 0
}
},
separator: String
},
watch: {
src (val) {
Expand Down
10 changes: 9 additions & 1 deletion src/components/x-img/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ props:
default: 0
en: delay execute lazyload function because sometimes transition between routes will cause problems
zh-CN: 延迟执行,在存在路由过渡时立即执行可能会导致进入页面后并不会正确加载图片。该属性在 2.5.4 后已经不推荐使用,推荐使用 BusPlugin 来通知组件页面已经载入完成。
separator:
en: the separator of image src
zh-CN: 支持设置src的分隔符
changes:
next:
en:
- '[enhance] Support prop:separator #2744'
zh-CN:
- '[enhance] 支持设置separator属性 #2744'
v2.6.0:
en:
- '[fix] re-initialize when src is changed #1901'
Expand All @@ -47,4 +55,4 @@ changes:
en:
- '[feature] Support prop:delay'
zh-CN:
- '[feature] 支持延迟执行属性 delay'
- '[feature] 支持延迟执行属性 delay'

0 comments on commit a7082be

Please sign in to comment.