WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2020-12-01 c4c9a03d3ba029b613d64a6514c132d28636d1c5
forms/form/CForm.vue
@@ -40,7 +40,7 @@
                        Taro.showToast({
                            title: validation.msg,
                            icon: 'none',
                            mask: true,
                            mask: false,
                            duration: 2000,
                        });
                        return;
@@ -54,7 +54,11 @@
    mounted() {
        this.formData.$handleChange = (evt = []) => {
            Object.keys(evt).forEach((key) => {
                if (typeof this.formData[key] === 'undefined') {
                    this.$set(this.formData, key, evt[key]);
                } else {
                this.formData[key] = evt[key];
                }
            });
            this.onChange && this.onChange(evt);
        };