cr anchor & avatar
parent
8de01cf07e
commit
ae5a5878d5
|
@ -21,8 +21,10 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
href(val, oldVal) {
|
href(val, oldVal) {
|
||||||
this.antAnchor.unregisterLink(oldVal);
|
this.$nextTick(() => {
|
||||||
this.antAnchor.registerLink(val);
|
this.antAnchor.unregisterLink(oldVal);
|
||||||
|
this.antAnchor.registerLink(val);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
prefixCls: {
|
prefixCls: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'ant-avatar',
|
default: undefined,
|
||||||
},
|
},
|
||||||
shape: {
|
shape: {
|
||||||
validator: val => ['circle', 'square'].includes(val),
|
validator: val => ['circle', 'square'].includes(val),
|
||||||
|
@ -36,8 +36,12 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
src() {
|
src() {
|
||||||
this.isImgExist = true;
|
this.$nextTick(() => {
|
||||||
this.scale = 1;
|
this.isImgExist = true;
|
||||||
|
this.scale = 1;
|
||||||
|
// force uodate for position
|
||||||
|
this.$forceUpdate();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
Loading…
Reference in New Issue