eoss-ui 0.4.77 → 0.4.79-beta.0

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.
Files changed (46) hide show
  1. package/lib/button.js +3 -3
  2. package/lib/cascader.js +2 -2
  3. package/lib/date-picker.js +2 -2
  4. package/lib/eoss-ui.common.js +66 -3
  5. package/lib/index.js +1 -1
  6. package/lib/input-number.js +9 -9
  7. package/lib/input.js +2 -2
  8. package/lib/label.js +2 -2
  9. package/lib/layout.js +269 -0
  10. package/lib/menu.js +2 -2
  11. package/lib/nav.js +2 -2
  12. package/lib/notify.js +2 -2
  13. package/lib/page.js +9 -9
  14. package/lib/pagination.js +2 -2
  15. package/lib/player.js +2 -2
  16. package/lib/qr-code.js +2 -2
  17. package/lib/radio-group.js +2 -2
  18. package/lib/retrial-auth.js +2 -2
  19. package/lib/select-ganged.js +2 -2
  20. package/lib/select.js +2 -2
  21. package/lib/selector.js +2 -2
  22. package/lib/sizer.js +2 -2
  23. package/lib/steps.js +2 -2
  24. package/lib/switch.js +2 -2
  25. package/lib/table-form.js +2 -2
  26. package/lib/tabs-panel.js +2 -2
  27. package/lib/tabs.js +2 -2
  28. package/lib/theme-chalk/layout.css +0 -0
  29. package/lib/tips.js +9 -9
  30. package/lib/toolbar.js +2 -2
  31. package/lib/tree-group.js +2 -2
  32. package/lib/tree.js +2 -2
  33. package/lib/wujie.js +2 -2
  34. package/lib/wxlogin.js +2 -2
  35. package/package.json +2 -1
  36. package/packages/button/src/main.vue +182 -164
  37. package/packages/form/src/main.vue +10 -6
  38. package/packages/form/src/table.vue +3 -2
  39. package/packages/layout/index.js +3 -3
  40. package/packages/layout/src/item.vue +104 -0
  41. package/packages/layout/src/main.vue +13 -1419
  42. package/packages/theme-chalk/lib/layout.css +0 -0
  43. package/packages/theme-chalk/src/index.scss +1 -0
  44. package/packages/theme-chalk/src/layout.scss +44 -0
  45. package/src/index.js +4 -1
  46. package/packages/layout/src/resetPassword.vue +0 -338
package/lib/tabs-panel.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 58);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 59);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 58:
195
+ /***/ 59:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tabs.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 57);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 58);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3352,7 +3352,7 @@ module.exports = require("eoss-element");
3352
3352
 
3353
3353
  /***/ }),
3354
3354
 
3355
- /***/ 57:
3355
+ /***/ 58:
3356
3356
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3357
3357
 
3358
3358
  "use strict";
File without changes
package/lib/tips.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 59);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 60);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3352,7 +3352,14 @@ module.exports = require("eoss-element");
3352
3352
 
3353
3353
  /***/ }),
3354
3354
 
3355
- /***/ 59:
3355
+ /***/ 6:
3356
+ /***/ (function(module, exports) {
3357
+
3358
+ module.exports = require("json-bigint");
3359
+
3360
+ /***/ }),
3361
+
3362
+ /***/ 60:
3356
3363
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3357
3364
 
3358
3365
  "use strict";
@@ -3577,13 +3584,6 @@ main.install = function (Vue) {
3577
3584
 
3578
3585
  /***/ }),
3579
3586
 
3580
- /***/ 6:
3581
- /***/ (function(module, exports) {
3582
-
3583
- module.exports = require("json-bigint");
3584
-
3585
- /***/ }),
3586
-
3587
3587
  /***/ 7:
3588
3588
  /***/ (function(module, exports) {
3589
3589
 
package/lib/toolbar.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 75);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 76);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 75:
195
+ /***/ 76:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
package/lib/tree-group.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 61);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 62);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3359,7 +3359,7 @@ module.exports = require("json-bigint");
3359
3359
 
3360
3360
  /***/ }),
3361
3361
 
3362
- /***/ 61:
3362
+ /***/ 62:
3363
3363
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3364
3364
 
3365
3365
  "use strict";
package/lib/tree.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 60);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 61);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3359,7 +3359,7 @@ module.exports = require("json-bigint");
3359
3359
 
3360
3360
  /***/ }),
3361
3361
 
3362
- /***/ 60:
3362
+ /***/ 61:
3363
3363
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3364
3364
 
3365
3365
  "use strict";
package/lib/wujie.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 63);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 64);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3359,7 +3359,7 @@ module.exports = require("json-bigint");
3359
3359
 
3360
3360
  /***/ }),
3361
3361
 
3362
- /***/ 63:
3362
+ /***/ 64:
3363
3363
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3364
3364
 
3365
3365
  "use strict";
package/lib/wxlogin.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 64);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 65);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -3359,7 +3359,7 @@ module.exports = require("json-bigint");
3359
3359
 
3360
3360
  /***/ }),
3361
3361
 
3362
- /***/ 64:
3362
+ /***/ 65:
3363
3363
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3364
3364
 
3365
3365
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.77",
3
+ "version": "0.4.79-beta.0",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -54,6 +54,7 @@
54
54
  "style": "lib/theme-chalk/index.css",
55
55
  "dependencies": {
56
56
  "axios": "^0.27.2",
57
+ "interactjs": "^1.10.26",
57
58
  "json-bigint": "^1.0.0",
58
59
  "net": "^1.0.2",
59
60
  "qrcode": "^1.5.1",
@@ -26,6 +26,7 @@ export default {
26
26
  hide: Boolean,
27
27
  param: Object,
28
28
  type: String,
29
+ mold: String,
29
30
  size: String,
30
31
  open: Boolean,
31
32
  reload: Boolean,
@@ -43,197 +44,216 @@ export default {
43
44
  closed: Function,
44
45
  stop: Boolean,
45
46
  syncKeys: Object,
46
- text: String
47
+ text: String,
48
+ onClick: Function
49
+ },
50
+ computed: {
51
+ _type() {
52
+ return [
53
+ 'default',
54
+ 'primary',
55
+ 'success',
56
+ 'info',
57
+ 'warning',
58
+ 'danger'
59
+ ].includes(this.type)
60
+ ? this.type
61
+ : this.mold;
62
+ }
47
63
  },
48
64
  data() {
49
65
  return {};
50
66
  },
51
67
  methods: {
52
68
  handleClick(evt) {
53
- if (this.open && this.link) {
54
- let windows;
55
- let fields = [];
56
- let param = this.param ? this.param : {};
57
- evt.stopPropagation();
58
- evt.preventDefault();
59
- let width = util.win.top.screen.availWidth - 10;
60
- let height = util.win.top.screen.availHeight - 60;
61
- let flag = true;
62
- if (this.esForm) {
63
- let params = util.getParams({ url: this.link });
64
- let modal = this.esForm.models;
65
- let models = util.extend({}, params || {}, modal);
66
- if (this.required) {
67
- if (Array.isArray(this.required)) {
68
- this.esForm.validateField(this.required, (res) => {
69
- if (res) {
70
- flag = false;
71
- } else {
72
- flag = true;
73
- }
74
- });
75
- if (flag) {
76
- fields = this.required;
77
- this.required.forEach((item) => {
78
- param[item] = models[item];
69
+ if (this.onClick) {
70
+ this.onClick(evt);
71
+ } else {
72
+ if (this.open && this.link) {
73
+ let windows;
74
+ let fields = [];
75
+ let param = this.param ? this.param : {};
76
+ evt.stopPropagation();
77
+ evt.preventDefault();
78
+ let width = util.win.top.screen.availWidth - 10;
79
+ let height = util.win.top.screen.availHeight - 60;
80
+ let flag = true;
81
+ if (this.esForm) {
82
+ let params = util.getParams({ url: this.link });
83
+ let modal = this.esForm.models;
84
+ let models = util.extend({}, params || {}, modal);
85
+ if (this.required) {
86
+ if (Array.isArray(this.required)) {
87
+ this.esForm.validateField(this.required, (res) => {
88
+ if (res) {
89
+ flag = false;
90
+ } else {
91
+ flag = true;
92
+ }
79
93
  });
80
- }
81
- } else if (typeof this.required === 'object') {
82
- for (let i in this.required) {
83
- fields.push(this.required[i]);
84
- param[i] = models[this.required[i]];
85
- }
86
- this.esForm.validateField(fields, (res) => {
87
- if (res) {
88
- flag = false;
89
- } else {
90
- flag = true;
94
+ if (flag) {
95
+ fields = this.required;
96
+ this.required.forEach((item) => {
97
+ param[item] = models[item];
98
+ });
91
99
  }
92
- });
93
- } else {
94
- this.esForm.validateField(this.required, (res) => {
95
- if (res) {
96
- flag = false;
97
- } else {
98
- flag = true;
100
+ } else if (typeof this.required === 'object') {
101
+ for (let i in this.required) {
102
+ fields.push(this.required[i]);
103
+ param[i] = models[this.required[i]];
99
104
  }
100
- });
101
- if (flag) {
102
- fields = this.required;
103
- if (
104
- models[this.required] == null ||
105
- models[this.required] == undefined ||
106
- models[this.required] == ''
107
- ) {
108
- param[this.required] = models[this.required];
105
+ this.esForm.validateField(fields, (res) => {
106
+ if (res) {
107
+ flag = false;
108
+ } else {
109
+ flag = true;
110
+ }
111
+ });
112
+ } else {
113
+ this.esForm.validateField(this.required, (res) => {
114
+ if (res) {
115
+ flag = false;
116
+ } else {
117
+ flag = true;
118
+ }
119
+ });
120
+ if (flag) {
121
+ fields = this.required;
122
+ if (
123
+ models[this.required] == null ||
124
+ models[this.required] == undefined ||
125
+ models[this.required] == ''
126
+ ) {
127
+ param[this.required] = models[this.required];
128
+ }
109
129
  }
110
130
  }
111
131
  }
112
- }
113
- if (this.fields) {
114
- let empty = [];
115
- if (Array.isArray(this.fields)) {
116
- this.fields.forEach((item) => {
117
- if (models[item] == undefined || models[item] == '') {
118
- empty.push(item);
132
+ if (this.fields) {
133
+ let empty = [];
134
+ if (Array.isArray(this.fields)) {
135
+ this.fields.forEach((item) => {
136
+ if (models[item] == undefined || models[item] == '') {
137
+ empty.push(item);
138
+ }
139
+ param[item] = models[item];
140
+ });
141
+ } else if (typeof this.fields === 'object') {
142
+ for (let i in this.fields) {
143
+ if (
144
+ models[this.fields[i]] == undefined ||
145
+ models[this.fields[i]] == ''
146
+ ) {
147
+ empty.push(this.fields[i]);
148
+ }
149
+ param[i] = models[this.fields[i]];
119
150
  }
120
- param[item] = models[item];
121
- });
122
- } else if (typeof this.fields === 'object') {
123
- for (let i in this.fields) {
151
+ } else {
124
152
  if (
125
- models[this.fields[i]] == undefined ||
126
- models[this.fields[i]] == ''
153
+ models[this.fields] == undefined ||
154
+ models[this.fields] == ''
127
155
  ) {
128
- empty.push(this.fields[i]);
156
+ empty.push(this.fields);
129
157
  }
130
- param[i] = models[this.fields[i]];
131
- }
132
- } else {
133
- if (
134
- models[this.fields] == undefined ||
135
- models[this.fields] == ''
136
- ) {
137
- empty.push(this.fields);
138
- }
139
- param[this.fields] = models[this.fields];
140
- }
141
- if (empty.length) {
142
- let msg = [];
143
- if (this.mapFields) {
144
- empty.forEach((item) => {
145
- msg.push(this.mapFields[item]);
146
- });
147
- } else {
148
- msg = empty;
158
+ param[this.fields] = models[this.fields];
149
159
  }
150
- if (this.message) {
151
- flag = false;
152
- if (typeof this.message == 'boolean') {
153
- this.$message.error(msg.join(',') + '不能为空!');
154
- } else {
155
- let message =
156
- msg.join(',') + (this.message.message || '不能为空!');
157
- this.$message({
158
- type: 'error',
159
- ...this.message,
160
- message: message
160
+ if (empty.length) {
161
+ let msg = [];
162
+ if (this.mapFields) {
163
+ empty.forEach((item) => {
164
+ msg.push(this.mapFields[item]);
161
165
  });
162
- }
163
- }
164
- if (this.alert) {
165
- flag = false;
166
- if (typeof this.alert == 'boolean') {
167
- this.$alert(msg.join(',') + '不能为空!', '提示', {
168
- type: 'error',
169
- confirmButtonText: '确定'
170
- }).catch();
171
166
  } else {
172
- let message =
173
- msg.join(',') + (this.alert.message || '不能为空!');
174
- this.$alert(
175
- message,
176
- this.alert.titl || '提示',
177
- this.alert.config || {
167
+ msg = empty;
168
+ }
169
+ if (this.message) {
170
+ flag = false;
171
+ if (typeof this.message == 'boolean') {
172
+ this.$message.error(msg.join(',') + '不能为空!');
173
+ } else {
174
+ let message =
175
+ msg.join(',') + (this.message.message || '不能为空!');
176
+ this.$message({
177
+ type: 'error',
178
+ ...this.message,
179
+ message: message
180
+ });
181
+ }
182
+ }
183
+ if (this.alert) {
184
+ flag = false;
185
+ if (typeof this.alert == 'boolean') {
186
+ this.$alert(msg.join(',') + '不能为空!', '提示', {
178
187
  type: 'error',
179
188
  confirmButtonText: '确定'
180
- }
181
- ).catch();
189
+ }).catch();
190
+ } else {
191
+ let message =
192
+ msg.join(',') + (this.alert.message || '不能为空!');
193
+ this.$alert(
194
+ message,
195
+ this.alert.titl || '提示',
196
+ this.alert.config || {
197
+ type: 'error',
198
+ confirmButtonText: '确定'
199
+ }
200
+ ).catch();
201
+ }
182
202
  }
183
203
  }
184
204
  }
185
205
  }
186
- }
187
- if (this.btnGroup && this.syncKeys) {
188
- let data = this.btnGroup.data;
189
- if (
190
- data &&
191
- Object.keys(data).length &&
192
- Object.keys(this.syncKeys).length
193
- ) {
194
- for (let i in this.syncKeys) {
195
- param[i] = data[this.syncKeys[i]];
206
+ if (this.btnGroup && this.syncKeys) {
207
+ let data = this.btnGroup.data;
208
+ if (
209
+ data &&
210
+ Object.keys(data).length &&
211
+ Object.keys(this.syncKeys).length
212
+ ) {
213
+ for (let i in this.syncKeys) {
214
+ param[i] = data[this.syncKeys[i]];
215
+ }
196
216
  }
197
217
  }
198
- }
199
- if (flag) {
200
- if (this.specs) {
201
- if (typeof this.specs === 'boolean') {
202
- windows = util.win.top.open(
203
- util.urlJoinParams({ url: this.link, param: param }),
204
- this.name,
205
- `width=${width}px,height=${height}px,resizable=yes,status=yes,menubar=no,scrollbars=yes`
206
- );
218
+ if (flag) {
219
+ if (this.specs) {
220
+ if (typeof this.specs === 'boolean') {
221
+ windows = util.win.top.open(
222
+ util.urlJoinParams({ url: this.link, param: param }),
223
+ this.name,
224
+ `width=${width}px,height=${height}px,resizable=yes,status=yes,menubar=no,scrollbars=yes`
225
+ );
226
+ } else {
227
+ windows = util.win.top.open(
228
+ util.urlJoinParams({ url: this.link, param: param }),
229
+ this.name,
230
+ this.specs
231
+ );
232
+ }
207
233
  } else {
208
234
  windows = util.win.top.open(
209
- util.urlJoinParams({ url: this.link, param: param }),
210
- this.name,
211
- this.specs
235
+ util.urlJoinParams({ url: this.link, param: param })
212
236
  );
213
237
  }
214
- } else {
215
- windows = util.win.top.open(
216
- util.urlJoinParams({ url: this.link, param: param })
217
- );
218
238
  }
219
- }
220
- if (windows) {
221
- let times = setInterval(() => {
222
- if (windows.closed) {
223
- clearInterval(times);
224
- this.closed && this.closed(param);
225
- if (this.reload) {
226
- this.esSelect && this.esSelect.reload(null, param, true);
227
- this.esTable && this.esTable.reload(param);
239
+ if (windows) {
240
+ let times = setInterval(() => {
241
+ if (windows.closed) {
242
+ clearInterval(times);
243
+ this.closed && this.closed(param);
244
+ if (this.reload) {
245
+ this.esSelect && this.esSelect.reload(null, param, true);
246
+ this.esTable && this.esTable.reload(param);
247
+ }
228
248
  }
229
- }
230
- }, 1000);
249
+ }, 1000);
250
+ }
251
+ } else if (this.stop) {
252
+ evt.stopPropagation();
253
+ evt.preventDefault();
231
254
  }
232
- } else if (this.stop) {
233
- evt.stopPropagation();
234
- evt.preventDefault();
255
+ this.$emit('click', evt);
235
256
  }
236
- this.$emit('click', evt);
237
257
  }
238
258
  },
239
259
  render(h) {
@@ -245,7 +265,7 @@ export default {
245
265
  }
246
266
  let tag = 'el-button';
247
267
  let clas = ['es-button'];
248
- let props = { type: this.type, size: this.size };
268
+ let props = { type: this._type, size: this.size };
249
269
  let attrs = {};
250
270
  if (this.link && !this.open) {
251
271
  const link = this.param
@@ -255,7 +275,7 @@ export default {
255
275
  tag = 'a';
256
276
  clas = clas.concat([
257
277
  'el-button',
258
- this.type ? `el-button--${this.type}` : 'el-button--default',
278
+ this._type ? `el-button--${this._type}` : 'el-button--default',
259
279
  this.size ? `el-button--${this.size}` : ''
260
280
  ]);
261
281
  }
@@ -275,14 +295,12 @@ export default {
275
295
  },
276
296
  this.iconPlacement === 'start'
277
297
  ? [
278
- this.text,
279
- this.$slots.default,
280
- this.icon ? h('i', { class: this.icon }) : ''
298
+ this.icon ? h('i', { class: this.icon }) : '',
299
+ this.$slots.default || this.text
281
300
  ]
282
301
  : [
283
- this.icon ? h('i', { class: this.icon }) : '',
284
- this.text,
285
- this.$slots.default
302
+ this.$slots.default || this.text,
303
+ this.icon ? h('i', { class: this.icon }) : ''
286
304
  ]
287
305
  );
288
306
  }
@@ -609,9 +609,10 @@
609
609
  v-bind="
610
610
  handleExclAttribute({
611
611
  data: inline,
612
- attrs: ['disabled']
612
+ attrs: ['disabled', 'type']
613
613
  })
614
614
  "
615
+ @click="handleClick(inline)"
615
616
  ></es-button>
616
617
  <div
617
618
  class="es-form-inline es-form-item-inline"
@@ -1520,9 +1521,10 @@
1520
1521
  v-bind="
1521
1522
  handleExclAttribute({
1522
1523
  data: inline,
1523
- attrs: ['disabled']
1524
+ attrs: ['disabled', 'type']
1524
1525
  })
1525
1526
  "
1527
+ @click="handleClick(inline)"
1526
1528
  ></es-button>
1527
1529
  <div
1528
1530
  class="es-form-inline es-form-item-inline"
@@ -2480,9 +2482,10 @@
2480
2482
  v-bind="
2481
2483
  handleExclAttribute({
2482
2484
  data: inline,
2483
- attrs: ['disabled']
2485
+ attrs: ['disabled', 'type']
2484
2486
  })
2485
2487
  "
2488
+ @click="handleClick(inline)"
2486
2489
  ></es-button>
2487
2490
  <div
2488
2491
  class="es-form-inline es-form-item-inline"
@@ -3352,9 +3355,10 @@
3352
3355
  v-bind="
3353
3356
  handleExclAttribute({
3354
3357
  data: inline,
3355
- attrs: ['disabled']
3358
+ attrs: ['disabled', 'type']
3356
3359
  })
3357
3360
  "
3361
+ @click="handleClick(inline)"
3358
3362
  ></es-button>
3359
3363
  <div
3360
3364
  class="es-form-inline es-form-item-inline"
@@ -4530,13 +4534,13 @@ export default {
4530
4534
  if (res.validate) {
4531
4535
  this.$refs.esForm.validate(async (valid, fields, triggers) => {
4532
4536
  if (valid) {
4533
- res.event(res, this.models);
4537
+ res.event(res, this.models, index);
4534
4538
  } else {
4535
4539
  this.setScroll(valid, triggers, this.$refs.scrollbar);
4536
4540
  }
4537
4541
  });
4538
4542
  } else {
4539
- res.event(res, this.models);
4543
+ res.event(res, this.models, index);
4540
4544
  }
4541
4545
  } else if (res.type === 'step') {
4542
4546
  if (this.stepActive < index) {