diff --git a/src/components/x-img/index.vue b/src/components/x-img/index.vue index ff4424efd..5a725f022 100755 --- a/src/components/x-img/index.vue +++ b/src/components/x-img/index.vue @@ -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) }, @@ -72,7 +73,8 @@ export default { delay: { type: Number, default: 0 - } + }, + separator: String }, watch: { src (val) { diff --git a/src/components/x-img/metas.yml b/src/components/x-img/metas.yml index 1e1a86308..96f6c6d8e 100644 --- a/src/components/x-img/metas.yml +++ b/src/components/x-img/metas.yml @@ -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' @@ -47,4 +55,4 @@ changes: en: - '[feature] Support prop:delay' zh-CN: - - '[feature] 支持延迟执行属性 delay' \ No newline at end of file + - '[feature] 支持延迟执行属性 delay'