@v2coding/ui 0.1.36 → 0.1.37

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.
@@ -2452,12 +2452,39 @@ var FieldMixin = {
2452
2452
  this.$emit('ready');
2453
2453
  },
2454
2454
  emitChange: function emitChange() {
2455
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2456
- args[_key] = arguments[_key];
2457
- }
2455
+ var _arguments = arguments,
2456
+ _this2 = this;
2457
+
2458
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2459
+ var _len, args, _key;
2460
+
2461
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2462
+ while (1) {
2463
+ switch (_context.prev = _context.next) {
2464
+ case 0:
2465
+ for (_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2466
+ args[_key] = _arguments[_key];
2467
+ }
2468
+
2469
+ _this2.$emit.apply(_this2, ['input'].concat(args));
2458
2470
 
2459
- this.$emit.apply(this, ['input'].concat(args));
2460
- this.$emit.apply(this, ['change'].concat(args));
2471
+ _this2.$emit.apply(_this2, ['change'].concat(args));
2472
+
2473
+ _context.next = 5;
2474
+ return _this2.$nextTick();
2475
+
2476
+ case 5:
2477
+ if (_this2.$parent.$options.componentName === 'ElFormItem') {
2478
+ _this2.$parent.validate('change');
2479
+ }
2480
+
2481
+ case 6:
2482
+ case "end":
2483
+ return _context.stop();
2484
+ }
2485
+ }
2486
+ }, _callee);
2487
+ }))();
2461
2488
  },
2462
2489
  onChange: function onChange(val) {
2463
2490
  this.emitChange(val);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v2coding/ui",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "",
5
5
 
6
6
  "main": "dist/v2coding-ui.ssr.js",