tianheng-ui 0.0.53 → 0.0.54

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tianheng-ui",
3
3
  "description": "A Vue.js project",
4
- "version": "0.0.53",
4
+ "version": "0.0.54",
5
5
  "author": "shu lang <403732931@qq.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -126,7 +126,7 @@ export default {
126
126
  selectType: {
127
127
  type: String,
128
128
  default: () => {
129
- return "";
129
+ return "single";
130
130
  }
131
131
  },
132
132
  // 行双击事件
@@ -81,16 +81,11 @@ export default {
81
81
  default: () => {
82
82
  return [];
83
83
  }
84
- },
85
- params: {
86
- type: Object,
87
- default: () => {
88
- return {};
89
- }
90
84
  }
91
85
  },
92
86
  data() {
93
87
  return {
88
+ params: {},
94
89
  datePickerTypes: [
95
90
  "year",
96
91
  "month",
@@ -104,6 +99,23 @@ export default {
104
99
  ]
105
100
  };
106
101
  },
102
+ watch: {
103
+ options: {
104
+ handler(newVal, oldVal) {
105
+ if (newVal && newVal.length) {
106
+ newVal.map(item => {
107
+ this.$set(
108
+ this.params,
109
+ item.options.prop,
110
+ item.options.defaultValue
111
+ );
112
+ });
113
+ }
114
+ },
115
+ deep: true,
116
+ immediate: true
117
+ }
118
+ },
107
119
  methods: {
108
120
  doSearch() {
109
121
  this.$emit("on-search", this.params);