mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
28 lines
422 B
JavaScript
28 lines
422 B
JavaScript
export default {
|
|
props: {
|
|
field: Object
|
|
},
|
|
watch: {
|
|
editField: {
|
|
handler() {
|
|
if (this.validField) {
|
|
this.$emit('syncField', this.editField);
|
|
}
|
|
},
|
|
deep: true
|
|
},
|
|
validField() {
|
|
this.$emit('validChanged');
|
|
}
|
|
},
|
|
computed: {
|
|
validField() {
|
|
return true;
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
editField: { ...this.field }
|
|
};
|
|
}
|
|
};
|