haiwei-ui 1.3.5 → 1.3.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "haiwei-ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "HaiWei前端组件库",
5
5
  "author": "Eric",
6
6
  "license": "ISC",
@@ -159,7 +159,8 @@ export default {
159
159
  if (this.$listeners['before-submit']) {
160
160
  try {
161
161
  // 执行 before-submit 钩子并等待结果
162
- const result = await this.$emit('before-submit', this.model)
162
+ // 注意:这里不传递model参数,父组件应该直接修改this.model
163
+ const result = await this.$emit('before-submit')
163
164
 
164
165
  // 如果返回false,停止提交
165
166
  if (result === false) {
@@ -174,6 +175,7 @@ export default {
174
175
  }
175
176
  }
176
177
 
178
+ console.log('test',this.model)
177
179
  // 继续原有提交逻辑
178
180
  this.$refs.form.submit()
179
181
  },