(fields)
| 432 | api.refresh(); |
| 433 | }, |
| 434 | resetFields(fields) { |
| 435 | tidyFields(fields).forEach(field => { |
| 436 | h.getCtxs(field).forEach(ctx => { |
| 437 | h.$render.clearCache(ctx); |
| 438 | ctx.rule.value = copy(ctx.defaultValue); |
| 439 | }); |
| 440 | }); |
| 441 | nextTick(() => { |
| 442 | nextTick(() => { |
| 443 | nextTick(() => { |
| 444 | api.clearValidateState(fields); |
| 445 | }); |
| 446 | }); |
| 447 | }); |
| 448 | if (fields == null) { |
| 449 | is.Function(h.options.onReset) && invoke(() => h.options.onReset(api)); |
| 450 | h.vm.emit('reset', api); |
| 451 | } |
| 452 | }, |
| 453 | method(id, name) { |
| 454 | const el = api.el(id); |
| 455 | if (!el || !el[name]) |
nothing calls this directly
no test coverage detected