提交 632dab6b 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc---修复编辑器是数据选择和地址框,值变更,不会触发表单值校验bug

上级 58aada83
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit"
}, },
"dependencies": { "dependencies": {
"async-validator": "^3.2.3",
"axios": "^0.19.0", "axios": "^0.19.0",
"codemirror": "^5.48.2", "codemirror": "^5.48.2",
"core-js": "^2.6.5", "core-js": "^2.6.5",
......
...@@ -169,6 +169,20 @@ export default class AppPicker extends Vue { ...@@ -169,6 +169,20 @@ export default class AppPicker extends Vue {
} }
} }
/**
* 当前值变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof AppPicker
*/
@Watch('curvalue')
public onCurValueChange(newVal: any, oldVal: any) {
if (this.name) {
this.$emit('formitemvaluechange', { name: this.name, value: newVal });
}
}
/** /**
* vue 生命周期 * vue 生命周期
* *
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册