y-design-ssr 0.0.22 → 0.0.25

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/libs/form.js CHANGED
@@ -2,11 +2,11 @@
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory(require("vue"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["vue"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["vue"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
5
+ define("yui-lib", ["vue"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["yui-lib"] = factory(require("vue"));
8
+ else
9
+ root["yui-lib"] = factory(root["vue"]);
10
10
  })(this, function(__WEBPACK_EXTERNAL_MODULE__4103__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
@@ -367,9 +367,9 @@ var useRelation = function useRelation(key) {
367
367
 
368
368
  "use strict";
369
369
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
370
- /* harmony export */ "n": function() { return /* binding */ TriggerTypes; },
371
370
  /* harmony export */ "$": function() { return /* binding */ commonProps; }
372
371
  /* harmony export */ });
372
+ /* unused harmony export TriggerTypes */
373
373
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9653);
374
374
  /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
375
375
 
@@ -440,798 +440,477 @@ var commonProps = {
440
440
 
441
441
  /***/ }),
442
442
 
443
- /***/ 1975:
444
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
443
+ /***/ 3466:
444
+ /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
445
445
 
446
446
  "use strict";
447
- /* unused harmony export FORM_PROVIDE */
448
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7941);
449
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__);
450
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5003);
451
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_1__);
452
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9337);
453
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_2__);
454
- /* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(2137);
455
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6156);
456
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(4699);
457
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4103);
458
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
459
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7757);
460
- /* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__);
461
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2526);
462
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_6__);
463
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1817);
464
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_7__);
465
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1539);
466
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
467
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4747);
468
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
469
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7327);
470
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__);
471
- /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(8674);
472
- /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_11__);
473
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(5827);
474
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_12__);
475
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(6992);
476
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
477
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(8783);
478
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_14__);
479
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(3948);
480
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
481
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(1249);
482
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_16__);
483
- /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(9826);
484
- /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_17__);
485
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8309);
486
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_18__);
487
- /* harmony import */ var _context_relation__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(874);
488
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(4105);
489
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(7053);
447
+
448
+ // UNUSED EXPORTS: default
449
+
450
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
451
+ var defineProperty = __webpack_require__(6156);
452
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
453
+ var es_object_assign = __webpack_require__(9601);
454
+ // EXTERNAL MODULE: external "vue"
455
+ var external_vue_ = __webpack_require__(4103);
456
+ ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
457
+ /*
458
+ * @Author: liuwentao
459
+ * @Date: 2021-05-14 17:11:37
460
+ * @LastEditors: liuwentao
461
+ * @LastEditTime: 2021-06-09 14:47:59
462
+ * @Description: locale
463
+ * @FilePath: /yui-vue/packages/locale/lang/zh-CN.ts
464
+ */
465
+ /* harmony default export */ var zh_CN = ({
466
+ 'pull-refresh': {
467
+ pulling: '下拉刷新...',
468
+ loosing: '释放刷新...',
469
+ loading: '数据加载中...',
470
+ success: '数据已更新',
471
+ failed: '数据跟新失败,请稍后再试'
472
+ },
473
+ 'form-item': {
474
+ validateMessage: '请输入正确内容'
475
+ }
476
+ });
477
+ ;// CONCATENATED MODULE: ./packages/locale/index.ts
490
478
 
491
479
 
492
480
 
481
+ /*
482
+ * @Author: liuwentao
483
+ * @Date: 2021-05-24 20:26:52
484
+ * @LastEditors: liuwentao
485
+ * @LastEditTime: 2021-05-28 11:16:19
486
+ * @Description: LOCALE
487
+ * @FilePath: /yui-vue/packages/locale/index.ts
488
+ */
493
489
 
494
490
 
491
+ var lang = (0,external_vue_.ref)('zh-CN');
492
+ var langs = (0,external_vue_.reactive)({
493
+ 'zh-CN': zh_CN
494
+ });
495
+ /* harmony default export */ var locale = ({
496
+ text: function text() {
497
+ return langs[lang.value];
498
+ },
499
+ use: function use(newLang, newConfigs) {
500
+ lang.value = newLang;
501
+ this.add((0,defineProperty/* default */.Z)({}, newLang, newConfigs));
502
+ },
503
+ add: function add() {
504
+ var newConfigs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
505
+ Object.assign(langs, newConfigs);
506
+ }
507
+ });
495
508
 
509
+ /***/ }),
496
510
 
511
+ /***/ 4105:
512
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
497
513
 
514
+ "use strict";
498
515
 
499
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
516
+ // EXPORTS
517
+ __webpack_require__.d(__webpack_exports__, {
518
+ "do": function() { return /* reexport */ createNamespace; }
519
+ });
500
520
 
501
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__/* .default */ .Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
521
+ // UNUSED EXPORTS: Direction, Horizontal, Location, Position, Size, Vertical, createLocale, isArguments, isDate, isError, isFunction, isMap, isNumber, isObject, isPromise, isRegExp, isSet, isString, isSymbol, isWeakMap, isWeakSet, parseFlexDirection, parsePercent, parseUnit
522
+
523
+ // EXTERNAL MODULE: ./packages/utils/is.ts
524
+ var is = __webpack_require__(3703);
525
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
526
+ var es_array_concat = __webpack_require__(2222);
527
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
528
+ var es_array_reduce = __webpack_require__(5827);
529
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
530
+ var es_object_keys = __webpack_require__(7941);
531
+ ;// CONCATENATED MODULE: ./packages/utils/create/bem.ts
502
532
 
503
533
 
504
534
 
505
535
 
536
+ /*
537
+ * @Description:
538
+ * @Author: ruan fei
539
+ * @Date: 2021-04-15 16:14:42
540
+ * @LastEditors: ruan fei
541
+ * @LastEditTime: 2021-05-25 19:31:14
542
+ * @FilePath: /yui-vue/packages/utils/create/bem.ts
543
+ */
506
544
 
545
+ /**
546
+ * bem helper
547
+ * --不传参默认返回block--
548
+ * b() => 'button'
549
+ * --只第一个参数传string即为element--
550
+ * b('text') => 'button__text'
551
+ * --只第一个参数传对象或数组即为block+modifiers--
552
+ * b({ disabled }) => 'button button--disabled'
553
+ * b(['disabled', 'primary']) => 'button button--disabled button--primary'
554
+ * --传两参数即为element+modifiers--
555
+ * b('text', { disabled:false, loading:true }) => 'button__text button__text--loading'
556
+ */
557
+ var getMods = function getMods(el, mods) {
558
+ // modifiers为空: 返回''
559
+ if (!mods) {
560
+ return '';
561
+ } // mods为string: 返回 el--incomings
507
562
 
508
563
 
564
+ if (typeof mods === 'string') {
565
+ return " ".concat(el, "--").concat(mods);
566
+ } // mods为数组: reduce累加modifiers每一项的getModifier处理结果
509
567
 
510
568
 
569
+ if (Array.isArray(mods)) {
570
+ return mods.reduce(function (acc, cur) {
571
+ return acc + getMods(el, cur);
572
+ }, '');
573
+ } // mods为对象: 遍历key,reduce累加modifiers每一项,判断该项是否可用,再执行getModifier处理结果
511
574
 
512
575
 
576
+ return Object.keys(mods).reduce(function (acc, cur) {
577
+ return acc + (mods[cur] ? getMods(el, cur) : '');
578
+ }, '');
579
+ };
513
580
 
581
+ var createBEM = function createBEM(block) {
582
+ return function (el, mods) {
583
+ var _el = el;
584
+ var _mods = mods;
514
585
 
586
+ if (_el && typeof _el !== 'string') {
587
+ _mods = _el;
588
+ _el = '';
589
+ }
515
590
 
591
+ _el = _el ? "".concat(block, "__").concat(_el) : block;
592
+ return "".concat(_el).concat(getMods(_el, _mods));
593
+ };
594
+ };
595
+ var createGlobalBem = function createGlobalBem() {
596
+ return function (el, mods) {
597
+ if (!mods) {
598
+ return "y-".concat(el);
599
+ }
516
600
 
601
+ return "".concat(getMods("y-".concat(el), mods));
602
+ };
603
+ };
604
+ // EXTERNAL MODULE: ./packages/locale/index.ts + 1 modules
605
+ var packages_locale = __webpack_require__(3466);
606
+ ;// CONCATENATED MODULE: ./packages/utils/create/index.ts
517
607
  /*
518
- * @Author: liuwentao
519
- * @Date: 2021-05-17 14:11:54
520
- * @LastEditors: ruan fei
521
- * @LastEditTime: 2022-08-11 11:59:37
522
- * @Description: form component
523
- * @FilePath: /yui-vue/packages/form/src/form.tsx
608
+ * @Description:
609
+ * @Author: ruan fei
610
+ * @Date: 2021-04-16 15:19:38
611
+ * @LastEditors: liuwentao
612
+ * @LastEditTime: 2021-05-28 11:18:15
613
+ * @FilePath: /yui-vue/packages/utils/create/index.ts
524
614
  */
525
615
 
526
616
 
617
+ var createNamespace = function createNamespace(name) {
618
+ var prefixedName = "y-".concat(name);
619
+ return [prefixedName, createBEM(prefixedName), createGlobalBem()];
620
+ };
621
+ var createLocale = function createLocale(name) {
622
+ return locale.text()[name];
623
+ };
624
+ ;// CONCATENATED MODULE: ./packages/utils/types.ts
625
+ var Size;
527
626
 
627
+ (function (Size) {
628
+ Size["Mini"] = "mini";
629
+ Size["Small"] = "small";
630
+ Size["Middle"] = "middle";
631
+ Size["Large"] = "large";
632
+ })(Size || (Size = {}));
528
633
 
634
+ var Horizontal;
529
635
 
530
- var _createNamespace = (0,_utils__WEBPACK_IMPORTED_MODULE_20__/* .createNamespace */ .do)('form'),
531
- _createNamespace2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_22__/* .default */ .Z)(_createNamespace, 2),
532
- name = _createNamespace2[0],
533
- bem = _createNamespace2[1];
636
+ (function (Horizontal) {
637
+ Horizontal["Left"] = "left";
638
+ Horizontal["Center"] = "center";
639
+ Horizontal["Right"] = "right";
640
+ })(Horizontal || (Horizontal = {}));
534
641
 
535
- var FORM_PROVIDE = Symbol(name);
536
- /* harmony default export */ __webpack_exports__["Z"] = ((0,vue__WEBPACK_IMPORTED_MODULE_3__.defineComponent)({
537
- name: name,
538
- props: _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_21__/* .commonProps */ .$), {}, {
539
- validateFirst: {
540
- // 是否在某一项校验不通过时停止校验
541
- type: Boolean,
542
- default: false
543
- },
544
- scrollToError: {
545
- type: Boolean,
546
- default: true
547
- },
548
- validateTrigger: {
549
- type: String,
550
- default: 'onBlur'
551
- },
552
- enterable: {
553
- // 回车可以submit
554
- type: Boolean,
555
- default: true
556
- }
557
- }),
558
- emits: ['change', 'submit', 'failed'],
559
- setup: function setup(props, _ref) {
560
- var slots = _ref.slots,
561
- emit = _ref.emit,
562
- expose = _ref.expose;
642
+ var Vertical;
563
643
 
564
- var _setRelation = (0,_context_relation__WEBPACK_IMPORTED_MODULE_19__/* .setRelation */ .tG)(FORM_PROVIDE),
565
- initProvide = _setRelation.initProvide,
566
- childrens = _setRelation.childrens;
644
+ (function (Vertical) {
645
+ Vertical["Top"] = "top";
646
+ Vertical["Middle"] = "middle";
647
+ Vertical["Bottom"] = "bottom";
648
+ })(Vertical || (Vertical = {}));
567
649
 
568
- var getValues = function getValues() {
569
- var form = {};
570
- childrens.forEach(function (child) {
571
- var exposed = child.exposed;
572
- form[child.props.prop] = exposed.formValue;
573
- });
574
- return form;
575
- };
650
+ var Position;
576
651
 
577
- var validateField = function validateField(propName) {
578
- var fields = childrens.filter(function (child) {
579
- return child.props.prop === propName;
580
- });
581
- return new Promise(function (resolve, reject) {
582
- if (fields.length === 0) {
583
- reject(new Error('【YUI】form method "validateField": no field, please check your param: "propName"!'));
584
- } else {
585
- var exposed = fields[0].exposed;
586
- exposed === null || exposed === void 0 ? void 0 : exposed.validate().then(function (error) {
587
- if (error) {
588
- reject(error);
589
- } else {
590
- resolve();
591
- }
592
- });
593
- }
594
- });
595
- };
652
+ (function (Position) {
653
+ Position["Relative"] = "relative";
654
+ Position["Absolute"] = "absolute";
655
+ Position["Fixed"] = "fixed";
656
+ })(Position || (Position = {}));
596
657
 
597
- var validateOfSeq = /*#__PURE__*/function () {
598
- var _ref2 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_23__/* .default */ .Z)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee() {
599
- var errors;
600
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee$(_context) {
601
- while (1) {
602
- switch (_context.prev = _context.next) {
603
- case 0:
604
- errors = [];
605
- _context.next = 3;
606
- return childrens.reduce(function (promise, child) {
607
- return promise.then(function () {
608
- if (!errors.length) {
609
- var exposed = child.exposed;
610
- return exposed === null || exposed === void 0 ? void 0 : exposed.validate().then(function (error) {
611
- if (error) {
612
- errors.push(error);
613
- }
614
- });
615
- }
658
+ var Location;
616
659
 
617
- return null;
618
- });
619
- }, Promise.resolve());
660
+ (function (Location) {
661
+ Location["Top"] = "top";
662
+ Location["Right"] = "right";
663
+ Location["Bottom"] = "bottom";
664
+ Location["Left"] = "left";
665
+ Location["Center"] = "center";
666
+ })(Location || (Location = {}));
620
667
 
621
- case 3:
622
- if (!errors.length) {
623
- _context.next = 5;
624
- break;
625
- }
668
+ var Direction;
626
669
 
627
- throw errors;
670
+ (function (Direction) {
671
+ Direction["clockwise"] = "clockwise";
672
+ Direction["counterclockwise"] = "counterclockwise";
673
+ })(Direction || (Direction = {}));
674
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
675
+ var es_number_constructor = __webpack_require__(9653);
676
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
677
+ var es_array_includes = __webpack_require__(6699);
678
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
679
+ var es_string_includes = __webpack_require__(2023);
680
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
681
+ var es_regexp_exec = __webpack_require__(4916);
682
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
683
+ var es_string_replace = __webpack_require__(5306);
684
+ ;// CONCATENATED MODULE: ./packages/utils/parseUnit.ts
628
685
 
629
- case 5:
630
- case "end":
631
- return _context.stop();
632
- }
633
- }
634
- }, _callee);
635
- }));
636
686
 
637
- return function validateOfSeq() {
638
- return _ref2.apply(this, arguments);
639
- };
640
- }();
641
687
 
642
- var validateOfAll = /*#__PURE__*/function () {
643
- var _ref3 = (0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_23__/* .default */ .Z)( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee2() {
644
- var errors, errs;
645
- return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee2$(_context2) {
646
- while (1) {
647
- switch (_context2.prev = _context2.next) {
648
- case 0:
649
- _context2.next = 2;
650
- return Promise.all(childrens.map(function (child) {
651
- var exposed = child.exposed;
652
- return exposed.validate();
653
- }));
654
688
 
655
- case 2:
656
- errors = _context2.sent;
657
- errs = errors.filter(function (error) {
658
- return error;
659
- });
660
689
 
661
- if (!errs.length) {
662
- _context2.next = 6;
663
- break;
664
- }
690
+ var parseUnit = function parseUnit(val) {
691
+ if (isNaN(Number(val)) && typeof val === 'string') {
692
+ return val;
693
+ }
665
694
 
666
- throw errs;
695
+ return "".concat(val, "px");
696
+ };
697
+ /*
698
+ * @Description: 处理百分比
699
+ */
667
700
 
668
- case 6:
669
- case "end":
670
- return _context2.stop();
671
- }
672
- }
673
- }, _callee2);
674
- }));
701
+ var parsePercent = function parsePercent(val, baseNumber) {
702
+ if (typeof val === 'string' && val.includes('%')) {
703
+ if (!val.includes('%')) return Number(val);
704
+ return baseNumber * Number(val.replace(/%/g, '')) / 100;
705
+ }
675
706
 
676
- return function validateOfAll() {
677
- return _ref3.apply(this, arguments);
678
- };
679
- }();
707
+ return Number(val);
708
+ };
709
+ ;// CONCATENATED MODULE: ./packages/utils/index.ts
680
710
 
681
- var validate = function validate(propName) {
682
- if (propName) {
683
- return validateField(propName);
684
- } // 是否在某一项校验不通过时停止校验
685
711
 
686
712
 
687
- return props.validateFirst ? validateOfSeq() : validateOfAll();
688
- }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
689
713
 
690
714
 
691
- var scrollToField = function scrollToField(propName, options) {
692
- var currentChild = childrens.find(function (child) {
693
- return child.props.prop === propName;
694
- });
695
- var $el = currentChild === null || currentChild === void 0 ? void 0 : currentChild.vnode.el;
696
- $el.scrollIntoView(options);
697
- };
698
715
 
699
- var submit = function submit() {
700
- var values = getValues();
701
- validate().then(function () {
702
- emit('submit', values);
703
- }).catch(function (errors) {
704
- emit('failed', {
705
- values: values,
706
- errors: errors
707
- });
716
+ /***/ }),
708
717
 
709
- if (Array.isArray(errors) && props.scrollToError) {
710
- scrollToField(errors === null || errors === void 0 ? void 0 : errors[0].name);
711
- }
712
- });
713
- };
718
+ /***/ 3703:
719
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
714
720
 
715
- var onSubmit = function onSubmit(event) {
716
- event.preventDefault();
717
- submit();
718
- };
721
+ "use strict";
722
+ /* unused harmony exports isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError, isSymbol, isMap, isWeakMap, isSet, isWeakSet, isObject, isPromise */
723
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1539);
724
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);
719
725
 
720
- var change = function change() {
721
- emit('change', getValues());
722
- };
723
- /*
724
- * 重置 error Status
725
- * @param name {String} prop 名字
726
- * */
727
726
 
727
+ var tagTester = function tagTester(name) {
728
+ return function (obj) {
729
+ return Object.prototype.toString.call(obj) === "[object ".concat(name, "]");
730
+ };
731
+ };
728
732
 
729
- var resetValidation = function resetValidation(propName) {
730
- childrens.forEach(function (children) {
731
- if (!propName || children.props.prop === propName) {
732
- var _exposed$resetValidat;
733
+ var isArguments = tagTester('Arguments');
734
+ var isFunction = tagTester('Function');
735
+ var isString = tagTester('String');
736
+ var isNumber = tagTester('Number');
737
+ var isDate = tagTester('Date');
738
+ var isRegExp = tagTester('RegExp');
739
+ var isError = tagTester('Error');
740
+ var isSymbol = tagTester('Symbol');
741
+ var isMap = tagTester('Map');
742
+ var isWeakMap = tagTester('WeakMap');
743
+ var isSet = tagTester('Set');
744
+ var isWeakSet = tagTester('WeakSet');
745
+ var isObject = tagTester('Object');
746
+ var isPromise = tagTester('Promise');
733
747
 
734
- var exposed = children.exposed;
735
- (_exposed$resetValidat = exposed.resetValidation) === null || _exposed$resetValidat === void 0 ? void 0 : _exposed$resetValidat.call(exposed);
736
- }
737
- });
738
- };
748
+ /***/ }),
739
749
 
740
- initProvide({
741
- props: props,
742
- change: change
743
- });
744
- expose({
745
- submit: submit,
746
- scrollToField: scrollToField,
747
- validate: validate,
748
- change: change,
749
- resetValidation: resetValidation
750
- });
751
- return function () {
752
- var _slots$default;
750
+ /***/ 3099:
751
+ /***/ (function(module) {
752
+
753
+ module.exports = function (it) {
754
+ if (typeof it != 'function') {
755
+ throw TypeError(String(it) + ' is not a function');
756
+ } return it;
757
+ };
753
758
 
754
- return (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("form", {
755
- "onSubmit": onSubmit,
756
- "class": [bem()]
757
- }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
758
- };
759
- }
760
- }));
761
759
 
762
760
  /***/ }),
763
761
 
764
- /***/ 3466:
765
- /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
762
+ /***/ 6077:
763
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
766
764
 
767
- "use strict";
765
+ var isObject = __webpack_require__(111);
768
766
 
769
- // UNUSED EXPORTS: default
767
+ module.exports = function (it) {
768
+ if (!isObject(it) && it !== null) {
769
+ throw TypeError("Can't set " + String(it) + ' as a prototype');
770
+ } return it;
771
+ };
770
772
 
771
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
772
- var defineProperty = __webpack_require__(6156);
773
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
774
- var es_object_assign = __webpack_require__(9601);
775
- // EXTERNAL MODULE: external "vue"
776
- var external_vue_ = __webpack_require__(4103);
777
- ;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
778
- /*
779
- * @Author: liuwentao
780
- * @Date: 2021-05-14 17:11:37
781
- * @LastEditors: liuwentao
782
- * @LastEditTime: 2021-06-09 14:47:59
783
- * @Description: locale
784
- * @FilePath: /yui-vue/packages/locale/lang/zh-CN.ts
785
- */
786
- /* harmony default export */ var zh_CN = ({
787
- 'pull-refresh': {
788
- pulling: '下拉刷新...',
789
- loosing: '释放刷新...',
790
- loading: '数据加载中...',
791
- success: '数据已更新',
792
- failed: '数据跟新失败,请稍后再试'
793
- },
794
- 'form-item': {
795
- validateMessage: '请输入正确内容'
796
- }
797
- });
798
- ;// CONCATENATED MODULE: ./packages/locale/index.ts
799
773
 
774
+ /***/ }),
800
775
 
776
+ /***/ 1223:
777
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
801
778
 
802
- /*
803
- * @Author: liuwentao
804
- * @Date: 2021-05-24 20:26:52
805
- * @LastEditors: liuwentao
806
- * @LastEditTime: 2021-05-28 11:16:19
807
- * @Description: LOCALE
808
- * @FilePath: /yui-vue/packages/locale/index.ts
809
- */
779
+ var wellKnownSymbol = __webpack_require__(5112);
780
+ var create = __webpack_require__(30);
781
+ var definePropertyModule = __webpack_require__(3070);
810
782
 
783
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
784
+ var ArrayPrototype = Array.prototype;
811
785
 
812
- var lang = (0,external_vue_.ref)('zh-CN');
813
- var langs = (0,external_vue_.reactive)({
814
- 'zh-CN': zh_CN
815
- });
816
- /* harmony default export */ var locale = ({
817
- text: function text() {
818
- return langs[lang.value];
819
- },
820
- use: function use(newLang, newConfigs) {
821
- lang.value = newLang;
822
- this.add((0,defineProperty/* default */.Z)({}, newLang, newConfigs));
823
- },
824
- add: function add() {
825
- var newConfigs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
826
- Object.assign(langs, newConfigs);
827
- }
828
- });
829
-
830
- /***/ }),
831
-
832
- /***/ 4105:
833
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
834
-
835
- "use strict";
836
-
837
- // EXPORTS
838
- __webpack_require__.d(__webpack_exports__, {
839
- "do": function() { return /* reexport */ createNamespace; }
840
- });
841
-
842
- // UNUSED EXPORTS: Direction, Horizontal, Location, Position, Size, Vertical, createLocale, isArguments, isDate, isError, isFunction, isMap, isNumber, isObject, isPromise, isRegExp, isSet, isString, isSymbol, isWeakMap, isWeakSet, parseFlexDirection, parsePercent, parseUnit
843
-
844
- // EXTERNAL MODULE: ./packages/utils/is.ts
845
- var is = __webpack_require__(3703);
846
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
847
- var es_array_concat = __webpack_require__(2222);
848
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
849
- var es_array_reduce = __webpack_require__(5827);
850
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
851
- var es_object_keys = __webpack_require__(7941);
852
- ;// CONCATENATED MODULE: ./packages/utils/create/bem.ts
786
+ // Array.prototype[@@unscopables]
787
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
788
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
789
+ definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
790
+ configurable: true,
791
+ value: create(null)
792
+ });
793
+ }
853
794
 
795
+ // add a key to Array.prototype[@@unscopables]
796
+ module.exports = function (key) {
797
+ ArrayPrototype[UNSCOPABLES][key] = true;
798
+ };
854
799
 
855
800
 
801
+ /***/ }),
856
802
 
857
- /*
858
- * @Description:
859
- * @Author: ruan fei
860
- * @Date: 2021-04-15 16:14:42
861
- * @LastEditors: ruan fei
862
- * @LastEditTime: 2021-05-25 19:31:14
863
- * @FilePath: /yui-vue/packages/utils/create/bem.ts
864
- */
803
+ /***/ 1530:
804
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
865
805
 
866
- /**
867
- * bem helper
868
- * --不传参默认返回block--
869
- * b() => 'button'
870
- * --只第一个参数传string即为element--
871
- * b('text') => 'button__text'
872
- * --只第一个参数传对象或数组即为block+modifiers--
873
- * b({ disabled }) => 'button button--disabled'
874
- * b(['disabled', 'primary']) => 'button button--disabled button--primary'
875
- * --传两参数即为element+modifiers--
876
- * b('text', { disabled:false, loading:true }) => 'button__text button__text--loading'
877
- */
878
- var getMods = function getMods(el, mods) {
879
- // modifiers为空: 返回''
880
- if (!mods) {
881
- return '';
882
- } // mods为string: 返回 el--incomings
806
+ "use strict";
883
807
 
808
+ var charAt = __webpack_require__(8710).charAt;
884
809
 
885
- if (typeof mods === 'string') {
886
- return " ".concat(el, "--").concat(mods);
887
- } // mods为数组: reduce累加modifiers每一项的getModifier处理结果
810
+ // `AdvanceStringIndex` abstract operation
811
+ // https://tc39.es/ecma262/#sec-advancestringindex
812
+ module.exports = function (S, index, unicode) {
813
+ return index + (unicode ? charAt(S, index).length : 1);
814
+ };
888
815
 
889
816
 
890
- if (Array.isArray(mods)) {
891
- return mods.reduce(function (acc, cur) {
892
- return acc + getMods(el, cur);
893
- }, '');
894
- } // mods为对象: 遍历key,reduce累加modifiers每一项,判断该项是否可用,再执行getModifier处理结果
817
+ /***/ }),
895
818
 
819
+ /***/ 5787:
820
+ /***/ (function(module) {
896
821
 
897
- return Object.keys(mods).reduce(function (acc, cur) {
898
- return acc + (mods[cur] ? getMods(el, cur) : '');
899
- }, '');
822
+ module.exports = function (it, Constructor, name) {
823
+ if (!(it instanceof Constructor)) {
824
+ throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
825
+ } return it;
900
826
  };
901
827
 
902
- var createBEM = function createBEM(block) {
903
- return function (el, mods) {
904
- var _el = el;
905
- var _mods = mods;
906
828
 
907
- if (_el && typeof _el !== 'string') {
908
- _mods = _el;
909
- _el = '';
910
- }
829
+ /***/ }),
911
830
 
912
- _el = _el ? "".concat(block, "__").concat(_el) : block;
913
- return "".concat(_el).concat(getMods(_el, _mods));
914
- };
915
- };
916
- var createGlobalBem = function createGlobalBem() {
917
- return function (el, mods) {
918
- if (!mods) {
919
- return "y-".concat(el);
920
- }
831
+ /***/ 9670:
832
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
921
833
 
922
- return "".concat(getMods("y-".concat(el), mods));
923
- };
834
+ var isObject = __webpack_require__(111);
835
+
836
+ module.exports = function (it) {
837
+ if (!isObject(it)) {
838
+ throw TypeError(String(it) + ' is not an object');
839
+ } return it;
924
840
  };
925
- // EXTERNAL MODULE: ./packages/locale/index.ts + 1 modules
926
- var packages_locale = __webpack_require__(3466);
927
- ;// CONCATENATED MODULE: ./packages/utils/create/index.ts
928
- /*
929
- * @Description:
930
- * @Author: ruan fei
931
- * @Date: 2021-04-16 15:19:38
932
- * @LastEditors: liuwentao
933
- * @LastEditTime: 2021-05-28 11:18:15
934
- * @FilePath: /yui-vue/packages/utils/create/index.ts
935
- */
936
841
 
937
842
 
938
- var createNamespace = function createNamespace(name) {
939
- var prefixedName = "y-".concat(name);
940
- return [prefixedName, createBEM(prefixedName), createGlobalBem()];
941
- };
942
- var createLocale = function createLocale(name) {
943
- return locale.text()[name];
944
- };
945
- ;// CONCATENATED MODULE: ./packages/utils/types.ts
946
- var Size;
843
+ /***/ }),
947
844
 
948
- (function (Size) {
949
- Size["Mini"] = "mini";
950
- Size["Small"] = "small";
951
- Size["Middle"] = "middle";
952
- Size["Large"] = "large";
953
- })(Size || (Size = {}));
845
+ /***/ 8533:
846
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
954
847
 
955
- var Horizontal;
848
+ "use strict";
956
849
 
957
- (function (Horizontal) {
958
- Horizontal["Left"] = "left";
959
- Horizontal["Center"] = "center";
960
- Horizontal["Right"] = "right";
961
- })(Horizontal || (Horizontal = {}));
850
+ var $forEach = __webpack_require__(2092).forEach;
851
+ var arrayMethodIsStrict = __webpack_require__(9341);
962
852
 
963
- var Vertical;
853
+ var STRICT_METHOD = arrayMethodIsStrict('forEach');
964
854
 
965
- (function (Vertical) {
966
- Vertical["Top"] = "top";
967
- Vertical["Middle"] = "middle";
968
- Vertical["Bottom"] = "bottom";
969
- })(Vertical || (Vertical = {}));
855
+ // `Array.prototype.forEach` method implementation
856
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
857
+ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
858
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
859
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
860
+ } : [].forEach;
970
861
 
971
- var Position;
972
862
 
973
- (function (Position) {
974
- Position["Relative"] = "relative";
975
- Position["Absolute"] = "absolute";
976
- Position["Fixed"] = "fixed";
977
- })(Position || (Position = {}));
863
+ /***/ }),
978
864
 
979
- var Location;
865
+ /***/ 1318:
866
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
980
867
 
981
- (function (Location) {
982
- Location["Top"] = "top";
983
- Location["Right"] = "right";
984
- Location["Bottom"] = "bottom";
985
- Location["Left"] = "left";
986
- Location["Center"] = "center";
987
- })(Location || (Location = {}));
868
+ var toIndexedObject = __webpack_require__(5656);
869
+ var toLength = __webpack_require__(7466);
870
+ var toAbsoluteIndex = __webpack_require__(1400);
988
871
 
989
- var Direction;
872
+ // `Array.prototype.{ indexOf, includes }` methods implementation
873
+ var createMethod = function (IS_INCLUDES) {
874
+ return function ($this, el, fromIndex) {
875
+ var O = toIndexedObject($this);
876
+ var length = toLength(O.length);
877
+ var index = toAbsoluteIndex(fromIndex, length);
878
+ var value;
879
+ // Array#includes uses SameValueZero equality algorithm
880
+ // eslint-disable-next-line no-self-compare -- NaN check
881
+ if (IS_INCLUDES && el != el) while (length > index) {
882
+ value = O[index++];
883
+ // eslint-disable-next-line no-self-compare -- NaN check
884
+ if (value != value) return true;
885
+ // Array#indexOf ignores holes, Array#includes - not
886
+ } else for (;length > index; index++) {
887
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
888
+ } return !IS_INCLUDES && -1;
889
+ };
890
+ };
990
891
 
991
- (function (Direction) {
992
- Direction["clockwise"] = "clockwise";
993
- Direction["counterclockwise"] = "counterclockwise";
994
- })(Direction || (Direction = {}));
995
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
996
- var es_number_constructor = __webpack_require__(9653);
997
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
998
- var es_array_includes = __webpack_require__(6699);
999
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
1000
- var es_string_includes = __webpack_require__(2023);
1001
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
1002
- var es_regexp_exec = __webpack_require__(4916);
1003
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
1004
- var es_string_replace = __webpack_require__(5306);
1005
- ;// CONCATENATED MODULE: ./packages/utils/parseUnit.ts
892
+ module.exports = {
893
+ // `Array.prototype.includes` method
894
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
895
+ includes: createMethod(true),
896
+ // `Array.prototype.indexOf` method
897
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
898
+ indexOf: createMethod(false)
899
+ };
1006
900
 
1007
901
 
902
+ /***/ }),
1008
903
 
904
+ /***/ 2092:
905
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1009
906
 
907
+ var bind = __webpack_require__(9974);
908
+ var IndexedObject = __webpack_require__(8361);
909
+ var toObject = __webpack_require__(7908);
910
+ var toLength = __webpack_require__(7466);
911
+ var arraySpeciesCreate = __webpack_require__(5417);
1010
912
 
1011
- var parseUnit = function parseUnit(val) {
1012
- if (isNaN(Number(val)) && typeof val === 'string') {
1013
- return val;
1014
- }
1015
-
1016
- return "".concat(val, "px");
1017
- };
1018
- /*
1019
- * @Description: 处理百分比
1020
- */
1021
-
1022
- var parsePercent = function parsePercent(val, baseNumber) {
1023
- if (typeof val === 'string' && val.includes('%')) {
1024
- if (!val.includes('%')) return Number(val);
1025
- return baseNumber * Number(val.replace(/%/g, '')) / 100;
1026
- }
1027
-
1028
- return Number(val);
1029
- };
1030
- ;// CONCATENATED MODULE: ./packages/utils/index.ts
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- /***/ }),
1038
-
1039
- /***/ 3703:
1040
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1041
-
1042
- "use strict";
1043
- /* unused harmony exports isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError, isSymbol, isMap, isWeakMap, isSet, isWeakSet, isObject, isPromise */
1044
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1539);
1045
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);
1046
-
1047
-
1048
- var tagTester = function tagTester(name) {
1049
- return function (obj) {
1050
- return Object.prototype.toString.call(obj) === "[object ".concat(name, "]");
1051
- };
1052
- };
1053
-
1054
- var isArguments = tagTester('Arguments');
1055
- var isFunction = tagTester('Function');
1056
- var isString = tagTester('String');
1057
- var isNumber = tagTester('Number');
1058
- var isDate = tagTester('Date');
1059
- var isRegExp = tagTester('RegExp');
1060
- var isError = tagTester('Error');
1061
- var isSymbol = tagTester('Symbol');
1062
- var isMap = tagTester('Map');
1063
- var isWeakMap = tagTester('WeakMap');
1064
- var isSet = tagTester('Set');
1065
- var isWeakSet = tagTester('WeakSet');
1066
- var isObject = tagTester('Object');
1067
- var isPromise = tagTester('Promise');
1068
-
1069
- /***/ }),
1070
-
1071
- /***/ 3099:
1072
- /***/ (function(module) {
1073
-
1074
- module.exports = function (it) {
1075
- if (typeof it != 'function') {
1076
- throw TypeError(String(it) + ' is not a function');
1077
- } return it;
1078
- };
1079
-
1080
-
1081
- /***/ }),
1082
-
1083
- /***/ 6077:
1084
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1085
-
1086
- var isObject = __webpack_require__(111);
1087
-
1088
- module.exports = function (it) {
1089
- if (!isObject(it) && it !== null) {
1090
- throw TypeError("Can't set " + String(it) + ' as a prototype');
1091
- } return it;
1092
- };
1093
-
1094
-
1095
- /***/ }),
1096
-
1097
- /***/ 1223:
1098
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1099
-
1100
- var wellKnownSymbol = __webpack_require__(5112);
1101
- var create = __webpack_require__(30);
1102
- var definePropertyModule = __webpack_require__(3070);
1103
-
1104
- var UNSCOPABLES = wellKnownSymbol('unscopables');
1105
- var ArrayPrototype = Array.prototype;
1106
-
1107
- // Array.prototype[@@unscopables]
1108
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1109
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1110
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
1111
- configurable: true,
1112
- value: create(null)
1113
- });
1114
- }
1115
-
1116
- // add a key to Array.prototype[@@unscopables]
1117
- module.exports = function (key) {
1118
- ArrayPrototype[UNSCOPABLES][key] = true;
1119
- };
1120
-
1121
-
1122
- /***/ }),
1123
-
1124
- /***/ 1530:
1125
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1126
-
1127
- "use strict";
1128
-
1129
- var charAt = __webpack_require__(8710).charAt;
1130
-
1131
- // `AdvanceStringIndex` abstract operation
1132
- // https://tc39.es/ecma262/#sec-advancestringindex
1133
- module.exports = function (S, index, unicode) {
1134
- return index + (unicode ? charAt(S, index).length : 1);
1135
- };
1136
-
1137
-
1138
- /***/ }),
1139
-
1140
- /***/ 5787:
1141
- /***/ (function(module) {
1142
-
1143
- module.exports = function (it, Constructor, name) {
1144
- if (!(it instanceof Constructor)) {
1145
- throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
1146
- } return it;
1147
- };
1148
-
1149
-
1150
- /***/ }),
1151
-
1152
- /***/ 9670:
1153
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1154
-
1155
- var isObject = __webpack_require__(111);
1156
-
1157
- module.exports = function (it) {
1158
- if (!isObject(it)) {
1159
- throw TypeError(String(it) + ' is not an object');
1160
- } return it;
1161
- };
1162
-
1163
-
1164
- /***/ }),
1165
-
1166
- /***/ 8533:
1167
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1168
-
1169
- "use strict";
1170
-
1171
- var $forEach = __webpack_require__(2092).forEach;
1172
- var arrayMethodIsStrict = __webpack_require__(9341);
1173
-
1174
- var STRICT_METHOD = arrayMethodIsStrict('forEach');
1175
-
1176
- // `Array.prototype.forEach` method implementation
1177
- // https://tc39.es/ecma262/#sec-array.prototype.foreach
1178
- module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
1179
- return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1180
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1181
- } : [].forEach;
1182
-
1183
-
1184
- /***/ }),
1185
-
1186
- /***/ 1318:
1187
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1188
-
1189
- var toIndexedObject = __webpack_require__(5656);
1190
- var toLength = __webpack_require__(7466);
1191
- var toAbsoluteIndex = __webpack_require__(1400);
1192
-
1193
- // `Array.prototype.{ indexOf, includes }` methods implementation
1194
- var createMethod = function (IS_INCLUDES) {
1195
- return function ($this, el, fromIndex) {
1196
- var O = toIndexedObject($this);
1197
- var length = toLength(O.length);
1198
- var index = toAbsoluteIndex(fromIndex, length);
1199
- var value;
1200
- // Array#includes uses SameValueZero equality algorithm
1201
- // eslint-disable-next-line no-self-compare -- NaN check
1202
- if (IS_INCLUDES && el != el) while (length > index) {
1203
- value = O[index++];
1204
- // eslint-disable-next-line no-self-compare -- NaN check
1205
- if (value != value) return true;
1206
- // Array#indexOf ignores holes, Array#includes - not
1207
- } else for (;length > index; index++) {
1208
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1209
- } return !IS_INCLUDES && -1;
1210
- };
1211
- };
1212
-
1213
- module.exports = {
1214
- // `Array.prototype.includes` method
1215
- // https://tc39.es/ecma262/#sec-array.prototype.includes
1216
- includes: createMethod(true),
1217
- // `Array.prototype.indexOf` method
1218
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
1219
- indexOf: createMethod(false)
1220
- };
1221
-
1222
-
1223
- /***/ }),
1224
-
1225
- /***/ 2092:
1226
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1227
-
1228
- var bind = __webpack_require__(9974);
1229
- var IndexedObject = __webpack_require__(8361);
1230
- var toObject = __webpack_require__(7908);
1231
- var toLength = __webpack_require__(7466);
1232
- var arraySpeciesCreate = __webpack_require__(5417);
1233
-
1234
- var push = [].push;
913
+ var push = [].push;
1235
914
 
1236
915
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
1237
916
  var createMethod = function (TYPE) {
@@ -6588,50 +6267,361 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__4103__;
6588
6267
  /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
6589
6268
  /******/ }();
6590
6269
  /******/
6591
- /******/ /* webpack/runtime/make namespace object */
6592
- /******/ !function() {
6593
- /******/ // define __esModule on exports
6594
- /******/ __webpack_require__.r = function(exports) {
6595
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
6596
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6597
- /******/ }
6598
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
6599
- /******/ };
6600
- /******/ }();
6601
- /******/
6602
6270
  /************************************************************************/
6603
6271
  var __webpack_exports__ = {};
6604
6272
  // This entry need to be wrapped in an IIFE because it need to be in strict mode.
6605
6273
  !function() {
6606
6274
  "use strict";
6607
- __webpack_require__.r(__webpack_exports__);
6608
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6609
- /* harmony export */ "TriggerTypes": function() { return /* reexport safe */ _src_constants__WEBPACK_IMPORTED_MODULE_2__.n; },
6610
- /* harmony export */ "commonProps": function() { return /* reexport safe */ _src_constants__WEBPACK_IMPORTED_MODULE_2__.$; }
6611
- /* harmony export */ });
6612
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8309);
6613
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
6614
- /* harmony import */ var _src_form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1975);
6615
- /* harmony import */ var _src_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7053);
6275
+
6276
+ // EXPORTS
6277
+ __webpack_require__.d(__webpack_exports__, {
6278
+ "default": function() { return /* reexport */ src_form; }
6279
+ });
6280
+
6281
+ // UNUSED EXPORTS: FORM_PROVIDE, TriggerTypes, commonProps
6282
+
6283
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
6284
+ var es_function_name = __webpack_require__(8309);
6285
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
6286
+ var es_object_keys = __webpack_require__(7941);
6287
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
6288
+ var es_object_get_own_property_descriptor = __webpack_require__(5003);
6289
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
6290
+ var es_object_get_own_property_descriptors = __webpack_require__(9337);
6291
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
6292
+ var asyncToGenerator = __webpack_require__(2137);
6293
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
6294
+ var defineProperty = __webpack_require__(6156);
6295
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
6296
+ var slicedToArray = __webpack_require__(4699);
6297
+ // EXTERNAL MODULE: external "vue"
6298
+ var external_vue_ = __webpack_require__(4103);
6299
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
6300
+ var regenerator = __webpack_require__(7757);
6301
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
6302
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
6303
+ var es_symbol = __webpack_require__(2526);
6304
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
6305
+ var es_symbol_description = __webpack_require__(1817);
6306
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
6307
+ var es_object_to_string = __webpack_require__(1539);
6308
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
6309
+ var web_dom_collections_for_each = __webpack_require__(4747);
6310
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
6311
+ var es_array_filter = __webpack_require__(7327);
6312
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
6313
+ var es_promise = __webpack_require__(8674);
6314
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
6315
+ var es_array_reduce = __webpack_require__(5827);
6316
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
6317
+ var es_array_iterator = __webpack_require__(6992);
6318
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
6319
+ var es_string_iterator = __webpack_require__(8783);
6320
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
6321
+ var web_dom_collections_iterator = __webpack_require__(3948);
6322
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
6323
+ var es_array_map = __webpack_require__(1249);
6324
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
6325
+ var es_array_find = __webpack_require__(9826);
6326
+ // EXTERNAL MODULE: ./packages/context/relation/index.ts + 2 modules
6327
+ var relation = __webpack_require__(874);
6328
+ // EXTERNAL MODULE: ./packages/utils/index.ts + 4 modules
6329
+ var utils = __webpack_require__(4105);
6330
+ // EXTERNAL MODULE: ./packages/form/src/constants.ts
6331
+ var constants = __webpack_require__(7053);
6332
+ ;// CONCATENATED MODULE: ./packages/form/src/form.tsx
6333
+
6334
+
6335
+
6336
+
6337
+
6338
+
6339
+
6340
+
6341
+
6342
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
6343
+
6344
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0,defineProperty/* default */.Z)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
6345
+
6346
+
6347
+
6348
+
6349
+
6350
+
6351
+
6352
+
6353
+
6354
+
6355
+
6356
+
6357
+
6358
+
6359
+
6360
+ /*
6361
+ * @Author: liuwentao
6362
+ * @Date: 2021-05-17 14:11:54
6363
+ * @LastEditors: ruan fei
6364
+ * @LastEditTime: 2022-08-11 11:59:37
6365
+ * @Description: form component
6366
+ * @FilePath: /yui-vue/packages/form/src/form.tsx
6367
+ */
6368
+
6369
+
6370
+
6371
+
6372
+
6373
+ var _createNamespace = (0,utils/* createNamespace */.do)('form'),
6374
+ _createNamespace2 = (0,slicedToArray/* default */.Z)(_createNamespace, 2),
6375
+ form_name = _createNamespace2[0],
6376
+ bem = _createNamespace2[1];
6377
+
6378
+ var FORM_PROVIDE = Symbol(form_name);
6379
+ /* harmony default export */ var src_form = ((0,external_vue_.defineComponent)({
6380
+ name: form_name,
6381
+ props: _objectSpread(_objectSpread({}, constants/* commonProps */.$), {}, {
6382
+ validateFirst: {
6383
+ // 是否在某一项校验不通过时停止校验
6384
+ type: Boolean,
6385
+ default: false
6386
+ },
6387
+ scrollToError: {
6388
+ type: Boolean,
6389
+ default: true
6390
+ },
6391
+ validateTrigger: {
6392
+ type: String,
6393
+ default: 'onBlur'
6394
+ },
6395
+ enterable: {
6396
+ // 回车可以submit
6397
+ type: Boolean,
6398
+ default: true
6399
+ }
6400
+ }),
6401
+ emits: ['change', 'submit', 'failed'],
6402
+ setup: function setup(props, _ref) {
6403
+ var slots = _ref.slots,
6404
+ emit = _ref.emit,
6405
+ expose = _ref.expose;
6406
+
6407
+ var _setRelation = (0,relation/* setRelation */.tG)(FORM_PROVIDE),
6408
+ initProvide = _setRelation.initProvide,
6409
+ childrens = _setRelation.childrens;
6410
+
6411
+ var getValues = function getValues() {
6412
+ var form = {};
6413
+ childrens.forEach(function (child) {
6414
+ var exposed = child.exposed;
6415
+ form[child.props.prop] = exposed.formValue;
6416
+ });
6417
+ return form;
6418
+ };
6419
+
6420
+ var validateField = function validateField(propName) {
6421
+ var fields = childrens.filter(function (child) {
6422
+ return child.props.prop === propName;
6423
+ });
6424
+ return new Promise(function (resolve, reject) {
6425
+ if (fields.length === 0) {
6426
+ reject(new Error('【YUI】form method "validateField": no field, please check your param: "propName"!'));
6427
+ } else {
6428
+ var exposed = fields[0].exposed;
6429
+ exposed === null || exposed === void 0 ? void 0 : exposed.validate().then(function (error) {
6430
+ if (error) {
6431
+ reject(error);
6432
+ } else {
6433
+ resolve();
6434
+ }
6435
+ });
6436
+ }
6437
+ });
6438
+ };
6439
+
6440
+ var validateOfSeq = /*#__PURE__*/function () {
6441
+ var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
6442
+ var errors;
6443
+ return regenerator_default().wrap(function _callee$(_context) {
6444
+ while (1) {
6445
+ switch (_context.prev = _context.next) {
6446
+ case 0:
6447
+ errors = [];
6448
+ _context.next = 3;
6449
+ return childrens.reduce(function (promise, child) {
6450
+ return promise.then(function () {
6451
+ if (!errors.length) {
6452
+ var exposed = child.exposed;
6453
+ return exposed === null || exposed === void 0 ? void 0 : exposed.validate().then(function (error) {
6454
+ if (error) {
6455
+ errors.push(error);
6456
+ }
6457
+ });
6458
+ }
6459
+
6460
+ return null;
6461
+ });
6462
+ }, Promise.resolve());
6463
+
6464
+ case 3:
6465
+ if (!errors.length) {
6466
+ _context.next = 5;
6467
+ break;
6468
+ }
6469
+
6470
+ throw errors;
6471
+
6472
+ case 5:
6473
+ case "end":
6474
+ return _context.stop();
6475
+ }
6476
+ }
6477
+ }, _callee);
6478
+ }));
6479
+
6480
+ return function validateOfSeq() {
6481
+ return _ref2.apply(this, arguments);
6482
+ };
6483
+ }();
6484
+
6485
+ var validateOfAll = /*#__PURE__*/function () {
6486
+ var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
6487
+ var errors, errs;
6488
+ return regenerator_default().wrap(function _callee2$(_context2) {
6489
+ while (1) {
6490
+ switch (_context2.prev = _context2.next) {
6491
+ case 0:
6492
+ _context2.next = 2;
6493
+ return Promise.all(childrens.map(function (child) {
6494
+ var exposed = child.exposed;
6495
+ return exposed.validate();
6496
+ }));
6497
+
6498
+ case 2:
6499
+ errors = _context2.sent;
6500
+ errs = errors.filter(function (error) {
6501
+ return error;
6502
+ });
6503
+
6504
+ if (!errs.length) {
6505
+ _context2.next = 6;
6506
+ break;
6507
+ }
6508
+
6509
+ throw errs;
6510
+
6511
+ case 6:
6512
+ case "end":
6513
+ return _context2.stop();
6514
+ }
6515
+ }
6516
+ }, _callee2);
6517
+ }));
6518
+
6519
+ return function validateOfAll() {
6520
+ return _ref3.apply(this, arguments);
6521
+ };
6522
+ }();
6523
+
6524
+ var validate = function validate(propName) {
6525
+ if (propName) {
6526
+ return validateField(propName);
6527
+ } // 是否在某一项校验不通过时停止校验
6528
+
6529
+
6530
+ return props.validateFirst ? validateOfSeq() : validateOfAll();
6531
+ }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
6532
+
6533
+
6534
+ var scrollToField = function scrollToField(propName, options) {
6535
+ var currentChild = childrens.find(function (child) {
6536
+ return child.props.prop === propName;
6537
+ });
6538
+ var $el = currentChild === null || currentChild === void 0 ? void 0 : currentChild.vnode.el;
6539
+ $el.scrollIntoView(options);
6540
+ };
6541
+
6542
+ var submit = function submit() {
6543
+ var values = getValues();
6544
+ validate().then(function () {
6545
+ emit('submit', values);
6546
+ }).catch(function (errors) {
6547
+ emit('failed', {
6548
+ values: values,
6549
+ errors: errors
6550
+ });
6551
+
6552
+ if (Array.isArray(errors) && props.scrollToError) {
6553
+ scrollToField(errors === null || errors === void 0 ? void 0 : errors[0].name);
6554
+ }
6555
+ });
6556
+ };
6557
+
6558
+ var onSubmit = function onSubmit(event) {
6559
+ event.preventDefault();
6560
+ submit();
6561
+ };
6562
+
6563
+ var change = function change() {
6564
+ emit('change', getValues());
6565
+ };
6566
+ /*
6567
+ * 重置 error Status
6568
+ * @param name {String} prop 名字
6569
+ * */
6570
+
6571
+
6572
+ var resetValidation = function resetValidation(propName) {
6573
+ childrens.forEach(function (children) {
6574
+ if (!propName || children.props.prop === propName) {
6575
+ var _exposed$resetValidat;
6576
+
6577
+ var exposed = children.exposed;
6578
+ (_exposed$resetValidat = exposed.resetValidation) === null || _exposed$resetValidat === void 0 ? void 0 : _exposed$resetValidat.call(exposed);
6579
+ }
6580
+ });
6581
+ };
6582
+
6583
+ initProvide({
6584
+ props: props,
6585
+ change: change
6586
+ });
6587
+ expose({
6588
+ submit: submit,
6589
+ scrollToField: scrollToField,
6590
+ validate: validate,
6591
+ change: change,
6592
+ resetValidation: resetValidation
6593
+ });
6594
+ return function () {
6595
+ var _slots$default;
6596
+
6597
+ return (0,external_vue_.createVNode)("form", {
6598
+ "onSubmit": onSubmit,
6599
+ "class": [bem()]
6600
+ }, [(_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)]);
6601
+ };
6602
+ }
6603
+ }));
6604
+ ;// CONCATENATED MODULE: ./packages/form/index.ts
6616
6605
 
6617
6606
 
6618
6607
  /*
6619
6608
  * @Author: liuwentao
6620
6609
  * @Date: 2021-05-21 10:08:09
6621
6610
  * @LastEditors: ruan fei
6622
- * @LastEditTime: 2022-08-10 14:26:05
6611
+ * @LastEditTime: 2022-08-11 16:07:39
6623
6612
  * @Description: form enter
6624
6613
  * @FilePath: /yui-vue/packages/form/index.ts
6625
6614
  */
6626
6615
 
6627
6616
 
6628
- _src_form__WEBPACK_IMPORTED_MODULE_1__/* .default.install */ .Z.install = function (Vue) {
6629
- Vue.component(_src_form__WEBPACK_IMPORTED_MODULE_1__/* .default.name */ .Z.name, _src_form__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z);
6617
+ src_form.install = function (Vue) {
6618
+ Vue.component(src_form.name, src_form);
6630
6619
  };
6631
6620
 
6632
- /* harmony default export */ __webpack_exports__["default"] = (_src_form__WEBPACK_IMPORTED_MODULE_1__/* .default */ .Z);
6621
+
6633
6622
 
6634
6623
  }();
6624
+ __webpack_exports__ = __webpack_exports__.default;
6635
6625
  /******/ return __webpack_exports__;
6636
6626
  /******/ })()
6637
6627
  ;