@zscreate/zhxy-app-component 1.0.339 → 1.0.340

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -942,8 +942,10 @@ export default {
942
942
  checkboxChange(e) {
943
943
  if (this.tableKey) {
944
944
  this.models[this.tableKey][this.tableIndex][this.widget.model] = e.target.value;
945
+ this.tableValueSet(e.target.value)
945
946
  } else {
946
947
  this.models[this.widget.model] = e.target.value;
948
+ this.valueSet(e.target.value)
947
949
  }
948
950
  this.validateInit()
949
951
  },
@@ -2075,6 +2077,12 @@ export default {
2075
2077
  });
2076
2078
  this.$emit("input-change", val, this.widget.model);
2077
2079
  },
2080
+ valueSet(val) {
2081
+ this.$emit("update:models", {
2082
+ ...this.models,
2083
+ [this.widget.model]: val
2084
+ });
2085
+ },
2078
2086
  // getParentModels(){
2079
2087
  // Pubsub.subscribe('randomObserve',(msg,data) => {
2080
2088
  // // console.log('fu传递model',msg, data)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.339",
3
+ "version": "1.0.340",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",