nubomed-ui 2.0.13 → 2.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -140,7 +140,37 @@ function normalizeComponent(
140
140
 
141
141
  /***/ }),
142
142
 
143
- /***/ 1882:
143
+ /***/ 1093:
144
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
145
+
146
+ "use strict";
147
+ __webpack_require__.r(__webpack_exports__);
148
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
149
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
150
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
151
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
152
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4417);
153
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__);
154
+ // Imports
155
+
156
+
157
+
158
+ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require__(7943), __webpack_require__.b);
159
+ var ___CSS_LOADER_URL_IMPORT_1___ = new URL(/* asset import */ __webpack_require__(8927), __webpack_require__.b);
160
+ var ___CSS_LOADER_URL_IMPORT_2___ = new URL(/* asset import */ __webpack_require__(8705), __webpack_require__.b);
161
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
162
+ var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
163
+ var ___CSS_LOADER_URL_REPLACEMENT_1___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_1___);
164
+ var ___CSS_LOADER_URL_REPLACEMENT_2___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_2___);
165
+ // Module
166
+ ___CSS_LOADER_EXPORT___.push([module.id, "@font-face{font-family:iconfont;src:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"woff2\"),url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format(\"woff\"),url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format(\"truetype\")}.iconfont{font-family:iconfont!important;font-size:1rem;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-menu-stock-compare:before{content:\"\\e6b8\"}.icon-minus:before{content:\"\\e794\"}.icon-connect:before{content:\"\\e6ef\"}.icon-connect-error:before{content:\"\\e6f0\"}.icon-menu-take-no-back:before{content:\"\\e6e9\"}.icon-sort-down:before{content:\"\\e6ec\"}.icon-menu-storeroom-recevie-copy:before{content:\"\\e710\"}.icon-caret-up-expand:before{content:\"\\e6ee\"}.icon-caret-down-expand:before{content:\"\\e6f1\"}.icon-caret-left-expand:before{content:\"\\e6f2\"}.icon-caret-right-expand:before{content:\"\\e6f3\"}.icon-loading:before{content:\"\\e6fe\"}.icon-caret-up:before{content:\"\\e6ff\"}.icon-double-arrow-left:before{content:\"\\e701\"}.icon-network-null:before{content:\"\\e609\"}.icon-double-arrow-right:before{content:\"\\e702\"}.icon-wifi-online:before{content:\"\\e60a\"}.icon-left-alignment:before{content:\"\\e703\"}.icon-network-4G:before{content:\"\\e60b\"}.icon-right-alignment:before{content:\"\\e704\"}.icon-battery-charging:before{content:\"\\e60c\"}.icon-center-alignment:before{content:\"\\e705\"}.icon-wifi-offline:before{content:\"\\e60d\"}.icon-battery-low:before{content:\"\\e60e\"}.icon-network-5G:before{content:\"\\e60f\"}.icon-battery-null:before{content:\"\\e610\"}.icon-battery-full:before{content:\"\\e611\"}.icon-man-filled:before{content:\"\\e612\"}.icon-women-filled:before{content:\"\\e613\"}.icon-male-filled:before{content:\"\\e614\"}.icon-female-filled:before{content:\"\\e615\"}.icon-children-filled:before{content:\"\\e616\"}.icon-unknown-sex-filled:before{content:\"\\e617\"}.icon-account:before{content:\"\\e618\"}.icon-unlock-filled:before{content:\"\\e619\"}.icon-password:before{content:\"\\e61a\"}.icon-voice-no-filled:before{content:\"\\e61b\"}.icon-bell-filled:before{content:\"\\e61c\"}.icon-voice-filled:before{content:\"\\e61d\"}.icon-zhiyin:before{content:\"\\e61e\"}.icon-note:before{content:\"\\e61f\"}.icon-multiple-choice:before{content:\"\\e620\"}.icon-logout:before{content:\"\\e621\"}.icon-copy:before{content:\"\\e622\"}.icon-back:before{content:\"\\e623\"}.icon-menu-checked-filled:before{content:\"\\e624\"}.icon-door-closed:before{content:\"\\e625\"}.icon-menu-inventory-filled:before{content:\"\\e626\"}.icon-door-opened:before{content:\"\\e627\"}.icon-delete-filled:before{content:\"\\e628\"}.icon-circle-close-filled:before{content:\"\\e629\"}.icon-nail-filled:before{content:\"\\e62a\"}.icon-warning-filled:before{content:\"\\e62b\"}.icon-circle-plus-filled:before{content:\"\\e62c\"}.icon-urgent:before{content:\"\\e62d\"}.icon-xiala:before{content:\"\\e62e\"}.icon-remove-filled:before{content:\"\\e62f\"}.icon-circle-check-filled:before{content:\"\\e630\"}.icon-up:before{content:\"\\e631\"}.icon-square-down:before{content:\"\\e632\"}.icon-square-left:before{content:\"\\e633\"}.icon-right:before{content:\"\\e634\"}.icon-caret-right:before{content:\"\\e635\"}.icon-caret-down:before{content:\"\\e636\"}.icon-double-caret:before{content:\"\\e638\"}.icon-import-file-filled:before{content:\"\\e639\"}.icon-export-file-filled:before{content:\"\\e63a\"}.icon-tuisun:before{content:\"\\e63b\"}.icon-tuiyao:before{content:\"\\e63c\"}.icon-print-filled:before{content:\"\\e63d\"}.icon-video:before{content:\"\\e63e\"}.icon-download-filled:before{content:\"\\e63f\"}.icon-switch-square-filled:before{content:\"\\e640\"}.icon-caps-filled:before{content:\"\\e641\"}.icon-split:before{content:\"\\e642\"}.icon-lock-filled-bottom:before{content:\"\\e643\"}.icon-checked-corner-bottom:before{content:\"\\e644\"}.icon-switch:before{content:\"\\e646\"}.icon-radio-unselected:before{content:\"\\e647\"}.icon-radio-selected:before{content:\"\\e648\"}.icon-humidity:before{content:\"\\e649\"}.icon-checkbox-checked:before{content:\"\\e64a\"}.icon-temperature:before{content:\"\\e64b\"}.icon-checkbox-null:before{content:\"\\e64c\"}.icon-checkbox-indeterminate:before{content:\"\\e64d\"}.icon-checkbox-filled:before{content:\"\\e64e\"}.icon-menu-rescue:before{content:\"\\e64f\"}.icon-menu-take-back:before{content:\"\\e650\"}.icon-menu-consume:before{content:\"\\e651\"}.icon-menu-expiry-warning:before{content:\"\\e653\"}.icon-menu-scrap:before{content:\"\\e654\"}.icon-menu-in-store:before{content:\"\\e655\"}.icon-menu-abnormal:before{content:\"\\e656\"}.icon-menu-control:before{content:\"\\e657\"}.icon-menu-inventory:before{content:\"\\e659\"}.icon-menu-video:before{content:\"\\e65a\"}.icon-menu-user-log:before{content:\"\\e65b\"}.icon-menu-face:before{content:\"\\e65c\"}.icon-menu-fingerprint:before{content:\"\\e65d\"}.icon-menu-update:before{content:\"\\e65e\"}.icon-menu-info:before{content:\"\\e65f\"}.icon-drug:before{content:\"\\e660\"}.icon-menu-phone:before{content:\"\\e661\"}.icon-menu-about:before{content:\"\\e662\"}.icon-syringe:before{content:\"\\e665\"}.icon-menu-out-stock:before{content:\"\\e666\"}.icon-rfid:before{content:\"\\e667\"}.icon-unlock:before{content:\"\\e668\"}.icon-recovery:before{content:\"\\e669\"}.icon-menu-notice-setting:before{content:\"\\e66a\"}.icon-menu-temp-hum:before{content:\"\\e66c\"}.icon-menu-uv:before{content:\"\\e66d\"}.icon-yizhuquyao:before{content:\"\\e66f\"}.icon-menu-apply:before{content:\"\\e671\"}.icon-menu-checked:before{content:\"\\e672\"}.icon-menu-take-plus:before{content:\"\\e673\"}.icon-shoushu:before{content:\"\\e674\"}.icon-menu-urgent-take:before{content:\"\\e675\"}.icon-menu-calibration:before{content:\"\\e676\"}.icon-menu-empty-bottle-recycling:before{content:\"\\e677\"}.icon-huanhui:before{content:\"\\e678\"}.icon-menu-storeroom-grant:before{content:\"\\e679\"}.icon-menu-setting:before{content:\"\\e67a\"}.icon-menu-notice:before{content:\"\\e67b\"}.icon-menu-empty-bottle-take:before{content:\"\\e67c\"}.icon-menu-return-loss:before{content:\"\\e67d\"}.icon-delete:before{content:\"\\e67e\"}.icon-print:before{content:\"\\e67f\"}.icon-import:before{content:\"\\e680\"}.icon-relate:before{content:\"\\e681\"}.icon-download:before{content:\"\\e682\"}.icon-refresh:before{content:\"\\e683\"}.icon-yaopinguanli:before{content:\"\\e684\"}.icon-menu-consumable:before{content:\"\\e685\"}.icon-stop:before{content:\"\\e686\"}.icon-menu-user:before{content:\"\\e687\"}.icon-menu-exchange:before{content:\"\\e688\"}.icon-shijian:before{content:\"\\e689\"}.icon-menu-help:before{content:\"\\e68a\"}.icon-circle-close:before{content:\"\\e68b\"}.icon-circle-plus:before{content:\"\\e68c\"}.icon-shutdown:before{content:\"\\e68d\"}.icon-menu-guide:before{content:\"\\e68e\"}.icon-eye-open:before{content:\"\\e68f\"}.icon-eye-close:before{content:\"\\e690\"}.icon-search:before{content:\"\\e691\"}.icon-exit:before{content:\"\\e694\"}.icon-calendar:before{content:\"\\e695\"}.icon-women:before{content:\"\\e696\"}.icon-man:before{content:\"\\e697\"}.icon-children:before{content:\"\\e698\"}.icon-female:before{content:\"\\e699\"}.icon-unknown-sex:before{content:\"\\e69a\"}.icon-male:before{content:\"\\e69b\"}.icon-caps:before{content:\"\\e69e\"}.icon-menu-trace-stock:before{content:\"\\e70e\"}.icon-check:before{content:\"\\e69f\"}.icon-close:before{content:\"\\e6a0\"}.icon-plus:before{content:\"\\e6a3\"}.icon-menu-anti-theft:before{content:\"\\e664\"}.icon-single-branch:before{content:\"\\e66e\"}.icon-menu-card:before{content:\"\\e6a4\"}.icon-clear-filled:before{content:\"\\e6b5\"}.icon-nail:before{content:\"\\e6b6\"}.icon-menu-back:before{content:\"\\e6b7\"}.icon-menu-take:before{content:\"\\e6bb\"}.icon-menu-system-log:before{content:\"\\e6bc\"}.icon-menu-billed:before{content:\"\\e6bd\"}.icon-menu-dull-warning:before{content:\"\\e601\"}.icon-menu-trace-operator:before{content:\"\\e602\"}.icon-menu-trace-goods:before{content:\"\\e604\"}.icon-children-blue:before{content:\"\\e6a6\"}.icon-humidity-normal:before{content:\"\\e6be\"}.icon-humidity-abnormal:before{content:\"\\e6bf\"}.icon-temperature-normal:before{content:\"\\e6c0\"}.icon-temperature-abnormal:before{content:\"\\e6c1\"}.icon-menu-allocate:before{content:\"\\e693\"}.icon-menu-unknown:before{content:\"\\e69c\"}.icon-arrow-down:before{content:\"\\e69d\"}.icon-arrow-up:before{content:\"\\e6a1\"}.icon-menu-stock:before{content:\"\\e6a2\"}.icon-arrow-left:before{content:\"\\e6cf\"}.icon-arrow-right:before{content:\"\\e6d0\"}.icon-menu-list-query:before{content:\"\\e6d1\"}.icon-menu-list-abnormal:before{content:\"\\e6d2\"}.icon-go-filled:before{content:\"\\e6d4\"}.icon-menu-revoke-billing:before{content:\"\\e652\"}.icon-menu-network-log:before{content:\"\\e658\"}.icon-menu-revoke-consume:before{content:\"\\e670\"}.icon-lock-filled:before{content:\"\\e70f\"}.icon-keyboard:before{content:\"\\e603\"}.icon-face:before{content:\"\\e6b9\"}.icon-computer:before{content:\"\\e6d7\"}.icon-checked-corner-top:before{content:\"\\e6a7\"}.icon-taocanheguanli:before{content:\"\\e6e0\"}.icon-yidong:before{content:\"\\e6e1\"}.icon-menu-recovery:before{content:\"\\e6e3\"}.icon-menu-storeroom-check:before{content:\"\\e6e4\"}.icon-menu-storeroom-receive:before{content:\"\\e6e5\"}.icon-anesthesiologist:before{content:\"\\e6e6\"}.icon-menu-book:before{content:\"\\e6e7\"}.icon-camera:before{content:\"\\e6eb\"}", ""]);
167
+ // Exports
168
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
169
+
170
+
171
+ /***/ }),
172
+
173
+ /***/ 1351:
144
174
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
145
175
 
146
176
  "use strict";
@@ -154,7 +184,7 @@ __webpack_require__.r(__webpack_exports__);
154
184
 
155
185
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
156
186
  // Module
157
- ___CSS_LOADER_EXPORT___.push([module.id, ".svg-icon[data-v-5346430d]{width:1em;height:1em;vertical-align:-.25em!important;fill:currentColor;overflow:hidden}.svg-external-icon[data-v-5346430d]{background-color:currentColor;-webkit-mask-size:cover!important;mask-size:cover!important;display:inline-block}", ""]);
187
+ ___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-de41916a]{display:inline-flex}", ""]);
158
188
  // Exports
159
189
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
160
190
 
@@ -274,6 +304,39 @@ module.exports = function (cssWithMappingToString) {
274
304
 
275
305
  /***/ }),
276
306
 
307
+ /***/ 4417:
308
+ /***/ (function(module) {
309
+
310
+ "use strict";
311
+
312
+
313
+ module.exports = function (url, options) {
314
+ if (!options) {
315
+ options = {};
316
+ }
317
+ if (!url) {
318
+ return url;
319
+ }
320
+ url = String(url.__esModule ? url.default : url);
321
+
322
+ // If url is already wrapped in quotes, remove them
323
+ if (/^['"].*['"]$/.test(url)) {
324
+ url = url.slice(1, -1);
325
+ }
326
+ if (options.hash) {
327
+ url += options.hash;
328
+ }
329
+
330
+ // Should url be wrapped?
331
+ // See https://drafts.csswg.org/css-values-3/#urls
332
+ if (/["'() \t\n]|(%20)/.test(url) || options.needQuotes) {
333
+ return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, "\\n"), "\"");
334
+ }
335
+ return url;
336
+ };
337
+
338
+ /***/ }),
339
+
277
340
  /***/ 1601:
278
341
  /***/ (function(module) {
279
342
 
@@ -499,7 +562,7 @@ src.install = function (Vue) {
499
562
 
500
563
  /***/ }),
501
564
 
502
- /***/ 2858:
565
+ /***/ 7764:
503
566
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
504
567
 
505
568
  "use strict";
@@ -511,7 +574,7 @@ __webpack_require__.d(__webpack_exports__, {
511
574
  "default": function() { return /* binding */ components_NBHeader; }
512
575
  });
513
576
 
514
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBHeader/index.vue?vue&type=template&id=2ba0f541&scoped=true
577
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBHeader/index.vue?vue&type=template&id=40023fcc&scoped=true
515
578
  var render = function render() {
516
579
  var _vm = this,
517
580
  _c = _vm._self._c;
@@ -525,12 +588,10 @@ var render = function render() {
525
588
  return _vm.handleBack.apply(null, arguments);
526
589
  }
527
590
  }
528
- }, [_c('svg-icon', {
591
+ }, [_c('NBIcon', {
529
592
  attrs: {
530
- "icon-class": "back"
593
+ "icon": "back"
531
594
  }
532
- }), _c('span', {
533
- staticClass: "iconfont icon-back"
534
595
  }), _c('span', {
535
596
  staticClass: "nb-header__back__text"
536
597
  }, [_vm._v(_vm._s(_vm.backText))])], 1) : _vm._e(), _c('div', {
@@ -571,9 +632,9 @@ var render = function render() {
571
632
  return _vm.handleLogout.apply(null, arguments);
572
633
  }
573
634
  }
574
- }, [_c('svg-icon', {
635
+ }, [_c('NBIcon', {
575
636
  attrs: {
576
- "icon-class": "logout"
637
+ "icon": "logout"
577
638
  }
578
639
  }), _c('span', {
579
640
  staticClass: "nb-header__logout__text"
@@ -581,1137 +642,15 @@ var render = function render() {
581
642
  };
582
643
  var staticRenderFns = [];
583
644
 
584
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
585
- var es_array_push = __webpack_require__(4114);
586
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
587
- var esnext_iterator_constructor = __webpack_require__(8992);
588
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
589
- var esnext_iterator_filter = __webpack_require__(4520);
590
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
591
- var esnext_iterator_for_each = __webpack_require__(3949);
592
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
593
- var esnext_iterator_map = __webpack_require__(1454);
594
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.reduce.js
595
- var esnext_iterator_reduce = __webpack_require__(8872);
596
- ;// ./node_modules/vuex/dist/vuex.esm.js
597
-
598
-
599
-
600
-
601
-
602
-
603
- /*!
604
- * vuex v3.6.2
605
- * (c) 2021 Evan You
606
- * @license MIT
607
- */
608
- function applyMixin(Vue) {
609
- var version = Number(Vue.version.split('.')[0]);
610
- if (version >= 2) {
611
- Vue.mixin({
612
- beforeCreate: vuexInit
613
- });
614
- } else {
615
- // override init and inject vuex init procedure
616
- // for 1.x backwards compatibility.
617
- var _init = Vue.prototype._init;
618
- Vue.prototype._init = function (options) {
619
- if (options === void 0) options = {};
620
- options.init = options.init ? [vuexInit].concat(options.init) : vuexInit;
621
- _init.call(this, options);
622
- };
623
- }
624
-
625
- /**
626
- * Vuex init hook, injected into each instances init hooks list.
627
- */
628
-
629
- function vuexInit() {
630
- var options = this.$options;
631
- // store injection
632
- if (options.store) {
633
- this.$store = typeof options.store === 'function' ? options.store() : options.store;
634
- } else if (options.parent && options.parent.$store) {
635
- this.$store = options.parent.$store;
636
- }
637
- }
638
- }
639
- var target = typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : {};
640
- var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
641
- function devtoolPlugin(store) {
642
- if (!devtoolHook) {
643
- return;
644
- }
645
- store._devtoolHook = devtoolHook;
646
- devtoolHook.emit('vuex:init', store);
647
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
648
- store.replaceState(targetState);
649
- });
650
- store.subscribe(function (mutation, state) {
651
- devtoolHook.emit('vuex:mutation', mutation, state);
652
- }, {
653
- prepend: true
654
- });
655
- store.subscribeAction(function (action, state) {
656
- devtoolHook.emit('vuex:action', action, state);
657
- }, {
658
- prepend: true
659
- });
660
- }
661
-
662
- /**
663
- * Get the first item that pass the test
664
- * by second argument function
665
- *
666
- * @param {Array} list
667
- * @param {Function} f
668
- * @return {*}
669
- */
670
- function find(list, f) {
671
- return list.filter(f)[0];
672
- }
673
-
674
- /**
675
- * Deep copy the given object considering circular structure.
676
- * This function caches all nested objects and its copies.
677
- * If it detects circular structure, use cached copy to avoid infinite loop.
678
- *
679
- * @param {*} obj
680
- * @param {Array<Object>} cache
681
- * @return {*}
682
- */
683
- function deepCopy(obj, cache) {
684
- if (cache === void 0) cache = [];
685
-
686
- // just return if obj is immutable value
687
- if (obj === null || typeof obj !== 'object') {
688
- return obj;
689
- }
690
-
691
- // if obj is hit, it is in circular structure
692
- var hit = find(cache, function (c) {
693
- return c.original === obj;
694
- });
695
- if (hit) {
696
- return hit.copy;
697
- }
698
- var copy = Array.isArray(obj) ? [] : {};
699
- // put the copy into cache at first
700
- // because we want to refer it in recursive deepCopy
701
- cache.push({
702
- original: obj,
703
- copy: copy
704
- });
705
- Object.keys(obj).forEach(function (key) {
706
- copy[key] = deepCopy(obj[key], cache);
707
- });
708
- return copy;
709
- }
710
-
711
- /**
712
- * forEach for object
713
- */
714
- function forEachValue(obj, fn) {
715
- Object.keys(obj).forEach(function (key) {
716
- return fn(obj[key], key);
717
- });
718
- }
719
- function isObject(obj) {
720
- return obj !== null && typeof obj === 'object';
721
- }
722
- function isPromise(val) {
723
- return val && typeof val.then === 'function';
724
- }
725
- function assert(condition, msg) {
726
- if (!condition) {
727
- throw new Error("[vuex] " + msg);
728
- }
729
- }
730
- function partial(fn, arg) {
731
- return function () {
732
- return fn(arg);
733
- };
734
- }
735
-
736
- // Base data struct for store's module, package with some attribute and method
737
- var Module = function Module(rawModule, runtime) {
738
- this.runtime = runtime;
739
- // Store some children item
740
- this._children = Object.create(null);
741
- // Store the origin module object which passed by programmer
742
- this._rawModule = rawModule;
743
- var rawState = rawModule.state;
744
-
745
- // Store the origin module's state
746
- this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
747
- };
748
- var prototypeAccessors = {
749
- namespaced: {
750
- configurable: true
751
- }
752
- };
753
- prototypeAccessors.namespaced.get = function () {
754
- return !!this._rawModule.namespaced;
755
- };
756
- Module.prototype.addChild = function addChild(key, module) {
757
- this._children[key] = module;
758
- };
759
- Module.prototype.removeChild = function removeChild(key) {
760
- delete this._children[key];
761
- };
762
- Module.prototype.getChild = function getChild(key) {
763
- return this._children[key];
764
- };
765
- Module.prototype.hasChild = function hasChild(key) {
766
- return key in this._children;
767
- };
768
- Module.prototype.update = function update(rawModule) {
769
- this._rawModule.namespaced = rawModule.namespaced;
770
- if (rawModule.actions) {
771
- this._rawModule.actions = rawModule.actions;
772
- }
773
- if (rawModule.mutations) {
774
- this._rawModule.mutations = rawModule.mutations;
775
- }
776
- if (rawModule.getters) {
777
- this._rawModule.getters = rawModule.getters;
778
- }
779
- };
780
- Module.prototype.forEachChild = function forEachChild(fn) {
781
- forEachValue(this._children, fn);
782
- };
783
- Module.prototype.forEachGetter = function forEachGetter(fn) {
784
- if (this._rawModule.getters) {
785
- forEachValue(this._rawModule.getters, fn);
786
- }
787
- };
788
- Module.prototype.forEachAction = function forEachAction(fn) {
789
- if (this._rawModule.actions) {
790
- forEachValue(this._rawModule.actions, fn);
791
- }
792
- };
793
- Module.prototype.forEachMutation = function forEachMutation(fn) {
794
- if (this._rawModule.mutations) {
795
- forEachValue(this._rawModule.mutations, fn);
796
- }
797
- };
798
- Object.defineProperties(Module.prototype, prototypeAccessors);
799
- var ModuleCollection = function ModuleCollection(rawRootModule) {
800
- // register root module (Vuex.Store options)
801
- this.register([], rawRootModule, false);
802
- };
803
- ModuleCollection.prototype.get = function get(path) {
804
- return path.reduce(function (module, key) {
805
- return module.getChild(key);
806
- }, this.root);
807
- };
808
- ModuleCollection.prototype.getNamespace = function getNamespace(path) {
809
- var module = this.root;
810
- return path.reduce(function (namespace, key) {
811
- module = module.getChild(key);
812
- return namespace + (module.namespaced ? key + '/' : '');
813
- }, '');
814
- };
815
- ModuleCollection.prototype.update = function update$1(rawRootModule) {
816
- update([], this.root, rawRootModule);
817
- };
818
- ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
819
- var this$1 = this;
820
- if (runtime === void 0) runtime = true;
821
- if (false) {}
822
- var newModule = new Module(rawModule, runtime);
823
- if (path.length === 0) {
824
- this.root = newModule;
825
- } else {
826
- var parent = this.get(path.slice(0, -1));
827
- parent.addChild(path[path.length - 1], newModule);
828
- }
829
-
830
- // register nested modules
831
- if (rawModule.modules) {
832
- forEachValue(rawModule.modules, function (rawChildModule, key) {
833
- this$1.register(path.concat(key), rawChildModule, runtime);
834
- });
835
- }
836
- };
837
- ModuleCollection.prototype.unregister = function unregister(path) {
838
- var parent = this.get(path.slice(0, -1));
839
- var key = path[path.length - 1];
840
- var child = parent.getChild(key);
841
- if (!child) {
842
- if (false) {}
843
- return;
844
- }
845
- if (!child.runtime) {
846
- return;
847
- }
848
- parent.removeChild(key);
849
- };
850
- ModuleCollection.prototype.isRegistered = function isRegistered(path) {
851
- var parent = this.get(path.slice(0, -1));
852
- var key = path[path.length - 1];
853
- if (parent) {
854
- return parent.hasChild(key);
855
- }
856
- return false;
857
- };
858
- function update(path, targetModule, newModule) {
859
- if (false) {}
860
-
861
- // update target module
862
- targetModule.update(newModule);
863
-
864
- // update nested modules
865
- if (newModule.modules) {
866
- for (var key in newModule.modules) {
867
- if (!targetModule.getChild(key)) {
868
- if (false) {}
869
- return;
870
- }
871
- update(path.concat(key), targetModule.getChild(key), newModule.modules[key]);
872
- }
873
- }
874
- }
875
- var functionAssert = {
876
- assert: function (value) {
877
- return typeof value === 'function';
878
- },
879
- expected: 'function'
880
- };
881
- var objectAssert = {
882
- assert: function (value) {
883
- return typeof value === 'function' || typeof value === 'object' && typeof value.handler === 'function';
884
- },
885
- expected: 'function or object with "handler" function'
886
- };
887
- var assertTypes = {
888
- getters: functionAssert,
889
- mutations: functionAssert,
890
- actions: objectAssert
891
- };
892
- function assertRawModule(path, rawModule) {
893
- Object.keys(assertTypes).forEach(function (key) {
894
- if (!rawModule[key]) {
895
- return;
896
- }
897
- var assertOptions = assertTypes[key];
898
- forEachValue(rawModule[key], function (value, type) {
899
- assert(assertOptions.assert(value), makeAssertionMessage(path, key, type, value, assertOptions.expected));
900
- });
901
- });
902
- }
903
- function makeAssertionMessage(path, key, type, value, expected) {
904
- var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
905
- if (path.length > 0) {
906
- buf += " in module \"" + path.join('.') + "\"";
907
- }
908
- buf += " is " + JSON.stringify(value) + ".";
909
- return buf;
910
- }
911
- var Vue; // bind on install
912
-
913
- var Store = function Store(options) {
914
- var this$1 = this;
915
- if (options === void 0) options = {};
916
-
917
- // Auto install if it is not done yet and `window` has `Vue`.
918
- // To allow users to avoid auto-installation in some cases,
919
- // this code should be placed here. See #731
920
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
921
- install(window.Vue);
922
- }
923
- if (false) {}
924
- var plugins = options.plugins;
925
- if (plugins === void 0) plugins = [];
926
- var strict = options.strict;
927
- if (strict === void 0) strict = false;
928
-
929
- // store internal state
930
- this._committing = false;
931
- this._actions = Object.create(null);
932
- this._actionSubscribers = [];
933
- this._mutations = Object.create(null);
934
- this._wrappedGetters = Object.create(null);
935
- this._modules = new ModuleCollection(options);
936
- this._modulesNamespaceMap = Object.create(null);
937
- this._subscribers = [];
938
- this._watcherVM = new Vue();
939
- this._makeLocalGettersCache = Object.create(null);
940
-
941
- // bind commit and dispatch to self
942
- var store = this;
943
- var ref = this;
944
- var dispatch = ref.dispatch;
945
- var commit = ref.commit;
946
- this.dispatch = function boundDispatch(type, payload) {
947
- return dispatch.call(store, type, payload);
948
- };
949
- this.commit = function boundCommit(type, payload, options) {
950
- return commit.call(store, type, payload, options);
951
- };
952
-
953
- // strict mode
954
- this.strict = strict;
955
- var state = this._modules.root.state;
956
-
957
- // init root module.
958
- // this also recursively registers all sub-modules
959
- // and collects all module getters inside this._wrappedGetters
960
- installModule(this, state, [], this._modules.root);
961
-
962
- // initialize the store vm, which is responsible for the reactivity
963
- // (also registers _wrappedGetters as computed properties)
964
- resetStoreVM(this, state);
965
-
966
- // apply plugins
967
- plugins.forEach(function (plugin) {
968
- return plugin(this$1);
969
- });
970
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
971
- if (useDevtools) {
972
- devtoolPlugin(this);
973
- }
974
- };
975
- var prototypeAccessors$1 = {
976
- state: {
977
- configurable: true
978
- }
979
- };
980
- prototypeAccessors$1.state.get = function () {
981
- return this._vm._data.$$state;
982
- };
983
- prototypeAccessors$1.state.set = function (v) {
984
- if (false) {}
985
- };
986
- Store.prototype.commit = function commit(_type, _payload, _options) {
987
- var this$1 = this;
988
-
989
- // check object-style commit
990
- var ref = unifyObjectStyle(_type, _payload, _options);
991
- var type = ref.type;
992
- var payload = ref.payload;
993
- var options = ref.options;
994
- var mutation = {
995
- type: type,
996
- payload: payload
997
- };
998
- var entry = this._mutations[type];
999
- if (!entry) {
1000
- if (false) {}
1001
- return;
1002
- }
1003
- this._withCommit(function () {
1004
- entry.forEach(function commitIterator(handler) {
1005
- handler(payload);
1006
- });
1007
- });
1008
- this._subscribers.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
1009
- .forEach(function (sub) {
1010
- return sub(mutation, this$1.state);
1011
- });
1012
- if (false) {}
1013
- };
1014
- Store.prototype.dispatch = function dispatch(_type, _payload) {
1015
- var this$1 = this;
1016
-
1017
- // check object-style dispatch
1018
- var ref = unifyObjectStyle(_type, _payload);
1019
- var type = ref.type;
1020
- var payload = ref.payload;
1021
- var action = {
1022
- type: type,
1023
- payload: payload
1024
- };
1025
- var entry = this._actions[type];
1026
- if (!entry) {
1027
- if (false) {}
1028
- return;
1029
- }
1030
- try {
1031
- this._actionSubscribers.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
1032
- .filter(function (sub) {
1033
- return sub.before;
1034
- }).forEach(function (sub) {
1035
- return sub.before(action, this$1.state);
1036
- });
1037
- } catch (e) {
1038
- if (false) {}
1039
- }
1040
- var result = entry.length > 1 ? Promise.all(entry.map(function (handler) {
1041
- return handler(payload);
1042
- })) : entry[0](payload);
1043
- return new Promise(function (resolve, reject) {
1044
- result.then(function (res) {
1045
- try {
1046
- this$1._actionSubscribers.filter(function (sub) {
1047
- return sub.after;
1048
- }).forEach(function (sub) {
1049
- return sub.after(action, this$1.state);
1050
- });
1051
- } catch (e) {
1052
- if (false) {}
1053
- }
1054
- resolve(res);
1055
- }, function (error) {
1056
- try {
1057
- this$1._actionSubscribers.filter(function (sub) {
1058
- return sub.error;
1059
- }).forEach(function (sub) {
1060
- return sub.error(action, this$1.state, error);
1061
- });
1062
- } catch (e) {
1063
- if (false) {}
1064
- }
1065
- reject(error);
1066
- });
1067
- });
1068
- };
1069
- Store.prototype.subscribe = function subscribe(fn, options) {
1070
- return genericSubscribe(fn, this._subscribers, options);
1071
- };
1072
- Store.prototype.subscribeAction = function subscribeAction(fn, options) {
1073
- var subs = typeof fn === 'function' ? {
1074
- before: fn
1075
- } : fn;
1076
- return genericSubscribe(subs, this._actionSubscribers, options);
1077
- };
1078
- Store.prototype.watch = function watch(getter, cb, options) {
1079
- var this$1 = this;
1080
- if (false) {}
1081
- return this._watcherVM.$watch(function () {
1082
- return getter(this$1.state, this$1.getters);
1083
- }, cb, options);
1084
- };
1085
- Store.prototype.replaceState = function replaceState(state) {
1086
- var this$1 = this;
1087
- this._withCommit(function () {
1088
- this$1._vm._data.$$state = state;
1089
- });
1090
- };
1091
- Store.prototype.registerModule = function registerModule(path, rawModule, options) {
1092
- if (options === void 0) options = {};
1093
- if (typeof path === 'string') {
1094
- path = [path];
1095
- }
1096
- if (false) {}
1097
- this._modules.register(path, rawModule);
1098
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
1099
- // reset store to update getters...
1100
- resetStoreVM(this, this.state);
1101
- };
1102
- Store.prototype.unregisterModule = function unregisterModule(path) {
1103
- var this$1 = this;
1104
- if (typeof path === 'string') {
1105
- path = [path];
1106
- }
1107
- if (false) {}
1108
- this._modules.unregister(path);
1109
- this._withCommit(function () {
1110
- var parentState = getNestedState(this$1.state, path.slice(0, -1));
1111
- Vue.delete(parentState, path[path.length - 1]);
1112
- });
1113
- resetStore(this);
1114
- };
1115
- Store.prototype.hasModule = function hasModule(path) {
1116
- if (typeof path === 'string') {
1117
- path = [path];
1118
- }
1119
- if (false) {}
1120
- return this._modules.isRegistered(path);
1121
- };
1122
- Store.prototype.hotUpdate = function hotUpdate(newOptions) {
1123
- this._modules.update(newOptions);
1124
- resetStore(this, true);
1125
- };
1126
- Store.prototype._withCommit = function _withCommit(fn) {
1127
- var committing = this._committing;
1128
- this._committing = true;
1129
- fn();
1130
- this._committing = committing;
1131
- };
1132
- Object.defineProperties(Store.prototype, prototypeAccessors$1);
1133
- function genericSubscribe(fn, subs, options) {
1134
- if (subs.indexOf(fn) < 0) {
1135
- options && options.prepend ? subs.unshift(fn) : subs.push(fn);
1136
- }
1137
- return function () {
1138
- var i = subs.indexOf(fn);
1139
- if (i > -1) {
1140
- subs.splice(i, 1);
1141
- }
1142
- };
1143
- }
1144
- function resetStore(store, hot) {
1145
- store._actions = Object.create(null);
1146
- store._mutations = Object.create(null);
1147
- store._wrappedGetters = Object.create(null);
1148
- store._modulesNamespaceMap = Object.create(null);
1149
- var state = store.state;
1150
- // init all modules
1151
- installModule(store, state, [], store._modules.root, true);
1152
- // reset vm
1153
- resetStoreVM(store, state, hot);
1154
- }
1155
- function resetStoreVM(store, state, hot) {
1156
- var oldVm = store._vm;
1157
-
1158
- // bind store public getters
1159
- store.getters = {};
1160
- // reset local getters cache
1161
- store._makeLocalGettersCache = Object.create(null);
1162
- var wrappedGetters = store._wrappedGetters;
1163
- var computed = {};
1164
- forEachValue(wrappedGetters, function (fn, key) {
1165
- // use computed to leverage its lazy-caching mechanism
1166
- // direct inline function use will lead to closure preserving oldVm.
1167
- // using partial to return function with only arguments preserved in closure environment.
1168
- computed[key] = partial(fn, store);
1169
- Object.defineProperty(store.getters, key, {
1170
- get: function () {
1171
- return store._vm[key];
1172
- },
1173
- enumerable: true // for local getters
1174
- });
1175
- });
1176
-
1177
- // use a Vue instance to store the state tree
1178
- // suppress warnings just in case the user has added
1179
- // some funky global mixins
1180
- var silent = Vue.config.silent;
1181
- Vue.config.silent = true;
1182
- store._vm = new Vue({
1183
- data: {
1184
- $$state: state
1185
- },
1186
- computed: computed
1187
- });
1188
- Vue.config.silent = silent;
1189
-
1190
- // enable strict mode for new vm
1191
- if (store.strict) {
1192
- enableStrictMode(store);
1193
- }
1194
- if (oldVm) {
1195
- if (hot) {
1196
- // dispatch changes in all subscribed watchers
1197
- // to force getter re-evaluation for hot reloading.
1198
- store._withCommit(function () {
1199
- oldVm._data.$$state = null;
1200
- });
1201
- }
1202
- Vue.nextTick(function () {
1203
- return oldVm.$destroy();
1204
- });
1205
- }
1206
- }
1207
- function installModule(store, rootState, path, module, hot) {
1208
- var isRoot = !path.length;
1209
- var namespace = store._modules.getNamespace(path);
1210
-
1211
- // register in namespace map
1212
- if (module.namespaced) {
1213
- if (store._modulesNamespaceMap[namespace] && "production" !== 'production') {}
1214
- store._modulesNamespaceMap[namespace] = module;
1215
- }
1216
-
1217
- // set state
1218
- if (!isRoot && !hot) {
1219
- var parentState = getNestedState(rootState, path.slice(0, -1));
1220
- var moduleName = path[path.length - 1];
1221
- store._withCommit(function () {
1222
- if (false) {}
1223
- Vue.set(parentState, moduleName, module.state);
1224
- });
1225
- }
1226
- var local = module.context = makeLocalContext(store, namespace, path);
1227
- module.forEachMutation(function (mutation, key) {
1228
- var namespacedType = namespace + key;
1229
- registerMutation(store, namespacedType, mutation, local);
1230
- });
1231
- module.forEachAction(function (action, key) {
1232
- var type = action.root ? key : namespace + key;
1233
- var handler = action.handler || action;
1234
- registerAction(store, type, handler, local);
1235
- });
1236
- module.forEachGetter(function (getter, key) {
1237
- var namespacedType = namespace + key;
1238
- registerGetter(store, namespacedType, getter, local);
1239
- });
1240
- module.forEachChild(function (child, key) {
1241
- installModule(store, rootState, path.concat(key), child, hot);
1242
- });
1243
- }
1244
-
1245
- /**
1246
- * make localized dispatch, commit, getters and state
1247
- * if there is no namespace, just use root ones
1248
- */
1249
- function makeLocalContext(store, namespace, path) {
1250
- var noNamespace = namespace === '';
1251
- var local = {
1252
- dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
1253
- var args = unifyObjectStyle(_type, _payload, _options);
1254
- var payload = args.payload;
1255
- var options = args.options;
1256
- var type = args.type;
1257
- if (!options || !options.root) {
1258
- type = namespace + type;
1259
- if (false) {}
1260
- }
1261
- return store.dispatch(type, payload);
1262
- },
1263
- commit: noNamespace ? store.commit : function (_type, _payload, _options) {
1264
- var args = unifyObjectStyle(_type, _payload, _options);
1265
- var payload = args.payload;
1266
- var options = args.options;
1267
- var type = args.type;
1268
- if (!options || !options.root) {
1269
- type = namespace + type;
1270
- if (false) {}
1271
- }
1272
- store.commit(type, payload, options);
1273
- }
1274
- };
1275
-
1276
- // getters and state object must be gotten lazily
1277
- // because they will be changed by vm update
1278
- Object.defineProperties(local, {
1279
- getters: {
1280
- get: noNamespace ? function () {
1281
- return store.getters;
1282
- } : function () {
1283
- return makeLocalGetters(store, namespace);
1284
- }
1285
- },
1286
- state: {
1287
- get: function () {
1288
- return getNestedState(store.state, path);
1289
- }
1290
- }
1291
- });
1292
- return local;
1293
- }
1294
- function makeLocalGetters(store, namespace) {
1295
- if (!store._makeLocalGettersCache[namespace]) {
1296
- var gettersProxy = {};
1297
- var splitPos = namespace.length;
1298
- Object.keys(store.getters).forEach(function (type) {
1299
- // skip if the target getter is not match this namespace
1300
- if (type.slice(0, splitPos) !== namespace) {
1301
- return;
1302
- }
1303
-
1304
- // extract local getter type
1305
- var localType = type.slice(splitPos);
1306
-
1307
- // Add a port to the getters proxy.
1308
- // Define as getter property because
1309
- // we do not want to evaluate the getters in this time.
1310
- Object.defineProperty(gettersProxy, localType, {
1311
- get: function () {
1312
- return store.getters[type];
1313
- },
1314
- enumerable: true
1315
- });
1316
- });
1317
- store._makeLocalGettersCache[namespace] = gettersProxy;
1318
- }
1319
- return store._makeLocalGettersCache[namespace];
1320
- }
1321
- function registerMutation(store, type, handler, local) {
1322
- var entry = store._mutations[type] || (store._mutations[type] = []);
1323
- entry.push(function wrappedMutationHandler(payload) {
1324
- handler.call(store, local.state, payload);
1325
- });
1326
- }
1327
- function registerAction(store, type, handler, local) {
1328
- var entry = store._actions[type] || (store._actions[type] = []);
1329
- entry.push(function wrappedActionHandler(payload) {
1330
- var res = handler.call(store, {
1331
- dispatch: local.dispatch,
1332
- commit: local.commit,
1333
- getters: local.getters,
1334
- state: local.state,
1335
- rootGetters: store.getters,
1336
- rootState: store.state
1337
- }, payload);
1338
- if (!isPromise(res)) {
1339
- res = Promise.resolve(res);
1340
- }
1341
- if (store._devtoolHook) {
1342
- return res.catch(function (err) {
1343
- store._devtoolHook.emit('vuex:error', err);
1344
- throw err;
1345
- });
1346
- } else {
1347
- return res;
1348
- }
1349
- });
1350
- }
1351
- function registerGetter(store, type, rawGetter, local) {
1352
- if (store._wrappedGetters[type]) {
1353
- if (false) {}
1354
- return;
1355
- }
1356
- store._wrappedGetters[type] = function wrappedGetter(store) {
1357
- return rawGetter(local.state,
1358
- // local state
1359
- local.getters,
1360
- // local getters
1361
- store.state,
1362
- // root state
1363
- store.getters // root getters
1364
- );
1365
- };
1366
- }
1367
- function enableStrictMode(store) {
1368
- store._vm.$watch(function () {
1369
- return this._data.$$state;
1370
- }, function () {
1371
- if (false) {}
1372
- }, {
1373
- deep: true,
1374
- sync: true
1375
- });
1376
- }
1377
- function getNestedState(state, path) {
1378
- return path.reduce(function (state, key) {
1379
- return state[key];
1380
- }, state);
1381
- }
1382
- function unifyObjectStyle(type, payload, options) {
1383
- if (isObject(type) && type.type) {
1384
- options = payload;
1385
- payload = type;
1386
- type = type.type;
1387
- }
1388
- if (false) {}
1389
- return {
1390
- type: type,
1391
- payload: payload,
1392
- options: options
1393
- };
1394
- }
1395
- function install(_Vue) {
1396
- if (Vue && _Vue === Vue) {
1397
- if (false) {}
1398
- return;
1399
- }
1400
- Vue = _Vue;
1401
- applyMixin(Vue);
1402
- }
1403
-
1404
- /**
1405
- * Reduce the code which written in Vue.js for getting the state.
1406
- * @param {String} [namespace] - Module's namespace
1407
- * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
1408
- * @param {Object}
1409
- */
1410
- var mapState = normalizeNamespace(function (namespace, states) {
1411
- var res = {};
1412
- if (false) {}
1413
- normalizeMap(states).forEach(function (ref) {
1414
- var key = ref.key;
1415
- var val = ref.val;
1416
- res[key] = function mappedState() {
1417
- var state = this.$store.state;
1418
- var getters = this.$store.getters;
1419
- if (namespace) {
1420
- var module = getModuleByNamespace(this.$store, 'mapState', namespace);
1421
- if (!module) {
1422
- return;
1423
- }
1424
- state = module.context.state;
1425
- getters = module.context.getters;
1426
- }
1427
- return typeof val === 'function' ? val.call(this, state, getters) : state[val];
1428
- };
1429
- // mark vuex getter for devtools
1430
- res[key].vuex = true;
1431
- });
1432
- return res;
1433
- });
1434
-
1435
- /**
1436
- * Reduce the code which written in Vue.js for committing the mutation
1437
- * @param {String} [namespace] - Module's namespace
1438
- * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
1439
- * @return {Object}
1440
- */
1441
- var mapMutations = normalizeNamespace(function (namespace, mutations) {
1442
- var res = {};
1443
- if (false) {}
1444
- normalizeMap(mutations).forEach(function (ref) {
1445
- var key = ref.key;
1446
- var val = ref.val;
1447
- res[key] = function mappedMutation() {
1448
- var args = [],
1449
- len = arguments.length;
1450
- while (len--) args[len] = arguments[len];
1451
-
1452
- // Get the commit method from store
1453
- var commit = this.$store.commit;
1454
- if (namespace) {
1455
- var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
1456
- if (!module) {
1457
- return;
1458
- }
1459
- commit = module.context.commit;
1460
- }
1461
- return typeof val === 'function' ? val.apply(this, [commit].concat(args)) : commit.apply(this.$store, [val].concat(args));
1462
- };
1463
- });
1464
- return res;
1465
- });
1466
-
1467
- /**
1468
- * Reduce the code which written in Vue.js for getting the getters
1469
- * @param {String} [namespace] - Module's namespace
1470
- * @param {Object|Array} getters
1471
- * @return {Object}
1472
- */
1473
- var mapGetters = normalizeNamespace(function (namespace, getters) {
1474
- var res = {};
1475
- if (false) {}
1476
- normalizeMap(getters).forEach(function (ref) {
1477
- var key = ref.key;
1478
- var val = ref.val;
1479
-
1480
- // The namespace has been mutated by normalizeNamespace
1481
- val = namespace + val;
1482
- res[key] = function mappedGetter() {
1483
- if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
1484
- return;
1485
- }
1486
- if (false) {}
1487
- return this.$store.getters[val];
1488
- };
1489
- // mark vuex getter for devtools
1490
- res[key].vuex = true;
1491
- });
1492
- return res;
1493
- });
1494
-
1495
- /**
1496
- * Reduce the code which written in Vue.js for dispatch the action
1497
- * @param {String} [namespace] - Module's namespace
1498
- * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
1499
- * @return {Object}
1500
- */
1501
- var mapActions = normalizeNamespace(function (namespace, actions) {
1502
- var res = {};
1503
- if (false) {}
1504
- normalizeMap(actions).forEach(function (ref) {
1505
- var key = ref.key;
1506
- var val = ref.val;
1507
- res[key] = function mappedAction() {
1508
- var args = [],
1509
- len = arguments.length;
1510
- while (len--) args[len] = arguments[len];
1511
-
1512
- // get dispatch function from store
1513
- var dispatch = this.$store.dispatch;
1514
- if (namespace) {
1515
- var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
1516
- if (!module) {
1517
- return;
1518
- }
1519
- dispatch = module.context.dispatch;
1520
- }
1521
- return typeof val === 'function' ? val.apply(this, [dispatch].concat(args)) : dispatch.apply(this.$store, [val].concat(args));
1522
- };
1523
- });
1524
- return res;
1525
- });
1526
-
1527
- /**
1528
- * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
1529
- * @param {String} namespace
1530
- * @return {Object}
1531
- */
1532
- var createNamespacedHelpers = function (namespace) {
1533
- return {
1534
- mapState: mapState.bind(null, namespace),
1535
- mapGetters: mapGetters.bind(null, namespace),
1536
- mapMutations: mapMutations.bind(null, namespace),
1537
- mapActions: mapActions.bind(null, namespace)
1538
- };
1539
- };
1540
-
1541
- /**
1542
- * Normalize the map
1543
- * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
1544
- * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
1545
- * @param {Array|Object} map
1546
- * @return {Object}
1547
- */
1548
- function normalizeMap(map) {
1549
- if (!isValidMap(map)) {
1550
- return [];
1551
- }
1552
- return Array.isArray(map) ? map.map(function (key) {
1553
- return {
1554
- key: key,
1555
- val: key
1556
- };
1557
- }) : Object.keys(map).map(function (key) {
1558
- return {
1559
- key: key,
1560
- val: map[key]
1561
- };
1562
- });
1563
- }
1564
-
1565
- /**
1566
- * Validate whether given map is valid or not
1567
- * @param {*} map
1568
- * @return {Boolean}
1569
- */
1570
- function isValidMap(map) {
1571
- return Array.isArray(map) || isObject(map);
1572
- }
1573
-
1574
- /**
1575
- * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
1576
- * @param {Function} fn
1577
- * @return {Function}
1578
- */
1579
- function normalizeNamespace(fn) {
1580
- return function (namespace, map) {
1581
- if (typeof namespace !== 'string') {
1582
- map = namespace;
1583
- namespace = '';
1584
- } else if (namespace.charAt(namespace.length - 1) !== '/') {
1585
- namespace += '/';
1586
- }
1587
- return fn(namespace, map);
1588
- };
1589
- }
1590
-
1591
- /**
1592
- * Search a special module from store by namespace. if module not exist, print error message.
1593
- * @param {Object} store
1594
- * @param {String} helper
1595
- * @param {String} namespace
1596
- * @return {Object}
1597
- */
1598
- function getModuleByNamespace(store, helper, namespace) {
1599
- var module = store._modulesNamespaceMap[namespace];
1600
- if (false) {}
1601
- return module;
1602
- }
1603
-
1604
- // Credits: borrowed code from fcomb/redux-logger
1605
-
1606
- function createLogger(ref) {
1607
- if (ref === void 0) ref = {};
1608
- var collapsed = ref.collapsed;
1609
- if (collapsed === void 0) collapsed = true;
1610
- var filter = ref.filter;
1611
- if (filter === void 0) filter = function (mutation, stateBefore, stateAfter) {
1612
- return true;
1613
- };
1614
- var transformer = ref.transformer;
1615
- if (transformer === void 0) transformer = function (state) {
1616
- return state;
1617
- };
1618
- var mutationTransformer = ref.mutationTransformer;
1619
- if (mutationTransformer === void 0) mutationTransformer = function (mut) {
1620
- return mut;
1621
- };
1622
- var actionFilter = ref.actionFilter;
1623
- if (actionFilter === void 0) actionFilter = function (action, state) {
1624
- return true;
1625
- };
1626
- var actionTransformer = ref.actionTransformer;
1627
- if (actionTransformer === void 0) actionTransformer = function (act) {
1628
- return act;
1629
- };
1630
- var logMutations = ref.logMutations;
1631
- if (logMutations === void 0) logMutations = true;
1632
- var logActions = ref.logActions;
1633
- if (logActions === void 0) logActions = true;
1634
- var logger = ref.logger;
1635
- if (logger === void 0) logger = console;
1636
- return function (store) {
1637
- var prevState = deepCopy(store.state);
1638
- if (typeof logger === 'undefined') {
1639
- return;
1640
- }
1641
- if (logMutations) {
1642
- store.subscribe(function (mutation, state) {
1643
- var nextState = deepCopy(state);
1644
- if (filter(mutation, prevState, nextState)) {
1645
- var formattedTime = getFormattedTime();
1646
- var formattedMutation = mutationTransformer(mutation);
1647
- var message = "mutation " + mutation.type + formattedTime;
1648
- startMessage(logger, message, collapsed);
1649
- logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
1650
- logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
1651
- logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
1652
- endMessage(logger);
1653
- }
1654
- prevState = nextState;
1655
- });
1656
- }
1657
- if (logActions) {
1658
- store.subscribeAction(function (action, state) {
1659
- if (actionFilter(action, state)) {
1660
- var formattedTime = getFormattedTime();
1661
- var formattedAction = actionTransformer(action);
1662
- var message = "action " + action.type + formattedTime;
1663
- startMessage(logger, message, collapsed);
1664
- logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
1665
- endMessage(logger);
1666
- }
1667
- });
1668
- }
1669
- };
1670
- }
1671
- function startMessage(logger, message, collapsed) {
1672
- var startMessage = collapsed ? logger.groupCollapsed : logger.group;
1673
-
1674
- // render
1675
- try {
1676
- startMessage.call(logger, message);
1677
- } catch (e) {
1678
- logger.log(message);
1679
- }
1680
- }
1681
- function endMessage(logger) {
1682
- try {
1683
- logger.groupEnd();
1684
- } catch (e) {
1685
- logger.log('—— log end ——');
1686
- }
1687
- }
1688
- function getFormattedTime() {
1689
- var time = new Date();
1690
- return " @ " + pad(time.getHours(), 2) + ":" + pad(time.getMinutes(), 2) + ":" + pad(time.getSeconds(), 2) + "." + pad(time.getMilliseconds(), 3);
1691
- }
1692
- function repeat(str, times) {
1693
- return new Array(times + 1).join(str);
1694
- }
1695
- function pad(num, maxLength) {
1696
- return repeat('0', maxLength - num.toString().length) + num;
1697
- }
1698
- var index = {
1699
- Store: Store,
1700
- install: install,
1701
- version: '3.6.2',
1702
- mapState: mapState,
1703
- mapMutations: mapMutations,
1704
- mapGetters: mapGetters,
1705
- mapActions: mapActions,
1706
- createNamespacedHelpers: createNamespacedHelpers,
1707
- createLogger: createLogger
1708
- };
1709
- /* harmony default export */ var vuex_esm = ((/* unused pure expression or super */ null && (index)));
1710
-
645
+ // EXTERNAL MODULE: ./packages/components/NBIcon/index.js + 5 modules
646
+ var NBIcon = __webpack_require__(8896);
1711
647
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBHeader/index.vue?vue&type=script&lang=js
1712
648
 
1713
649
  /* harmony default export */ var NBHeadervue_type_script_lang_js = ({
1714
650
  name: 'NBHeader',
651
+ components: {
652
+ NBIcon: NBIcon["default"]
653
+ },
1715
654
  props: {
1716
655
  // 是否显示返回
1717
656
  back: {
@@ -1776,13 +715,7 @@ var index = {
1776
715
  data() {
1777
716
  return {};
1778
717
  },
1779
- computed: {
1780
- ...mapGetters([])
1781
- },
1782
- watch: {},
1783
- created() {},
1784
- mounted() {},
1785
- beforeDestroy() {},
718
+ computed: {},
1786
719
  methods: {
1787
720
  // 返回
1788
721
  handleBack() {
@@ -1833,7 +766,7 @@ var component = (0,componentNormalizer/* default */.A)(
1833
766
  staticRenderFns,
1834
767
  false,
1835
768
  null,
1836
- "2ba0f541",
769
+ "40023fcc",
1837
770
  null
1838
771
 
1839
772
  )
@@ -1856,6 +789,85 @@ NBHeader.install = function (Vue) {
1856
789
 
1857
790
  /***/ }),
1858
791
 
792
+ /***/ 8896:
793
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
794
+
795
+ "use strict";
796
+ // ESM COMPAT FLAG
797
+ __webpack_require__.r(__webpack_exports__);
798
+
799
+ // EXPORTS
800
+ __webpack_require__.d(__webpack_exports__, {
801
+ "default": function() { return /* binding */ NBIcon; }
802
+ });
803
+
804
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=template&id=de41916a&scoped=true
805
+ var render = function render() {
806
+ var _vm = this,
807
+ _c = _vm._self._c;
808
+ return _vm.icon ? _c('span', {
809
+ class: `nb-icon iconfont icon-${_vm.icon}`
810
+ }) : _vm._e();
811
+ };
812
+ var staticRenderFns = [];
813
+
814
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=script&lang=js
815
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
816
+ name: 'NBIcon',
817
+ props: {
818
+ // 类型,success/info/warning/danger,默认主题色状态
819
+ icon: {
820
+ type: String,
821
+ default: ''
822
+ }
823
+ }
824
+ });
825
+ ;// ./packages/components/NBIcon/src/index.vue?vue&type=script&lang=js
826
+ /* harmony default export */ var NBIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
827
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=de41916a&prod&lang=scss&scoped=true
828
+ var srcvue_type_style_index_0_id_de41916a_prod_lang_scss_scoped_true = __webpack_require__(6821);
829
+ ;// ./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=de41916a&prod&lang=scss&scoped=true
830
+
831
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
832
+ var componentNormalizer = __webpack_require__(1656);
833
+ ;// ./packages/components/NBIcon/src/index.vue
834
+
835
+
836
+
837
+ ;
838
+
839
+
840
+ /* normalize component */
841
+
842
+ var component = (0,componentNormalizer/* default */.A)(
843
+ NBIcon_srcvue_type_script_lang_js,
844
+ render,
845
+ staticRenderFns,
846
+ false,
847
+ null,
848
+ "de41916a",
849
+ null
850
+
851
+ )
852
+
853
+ /* harmony default export */ var src = (component.exports);
854
+ ;// ./packages/components/NBIcon/index.js
855
+ /*
856
+ * @Author: chenghuan.dong
857
+ * @Date: 2024-11-11 13:46:33
858
+ * @LastEditTime: 2024-11-12 11:29:51
859
+ * @LastEditors: chenghuan.dong
860
+ * @Description:
861
+ * @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
862
+ */
863
+
864
+ src.install = function (Vue) {
865
+ Vue.component('nb-icon', src);
866
+ };
867
+ /* harmony default export */ var NBIcon = (src);
868
+
869
+ /***/ }),
870
+
1859
871
  /***/ 7791:
1860
872
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1861
873
 
@@ -1971,99 +983,14 @@ var component = (0,componentNormalizer/* default */.A)(
1971
983
  /* harmony default export */ var NBPagination = (component.exports);
1972
984
  ;// ./packages/components/NBPagination/index.js
1973
985
 
1974
- NBPagination.install = function (Vue) {
1975
- Vue.component('nb-pagination', NBPagination);
1976
- };
1977
- /* harmony default export */ var components_NBPagination = (NBPagination);
1978
-
1979
- /***/ }),
1980
-
1981
- /***/ 3705:
1982
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1983
-
1984
- "use strict";
1985
- // ESM COMPAT FLAG
1986
- __webpack_require__.r(__webpack_exports__);
1987
-
1988
- // EXPORTS
1989
- __webpack_require__.d(__webpack_exports__, {
1990
- "default": function() { return /* binding */ NBTag; }
1991
- });
1992
-
1993
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTag/src/index.vue?vue&type=template&id=6665f146
1994
- var render = function render() {
1995
- var _vm = this,
1996
- _c = _vm._self._c;
1997
- return _c('span', {
1998
- staticClass: "nb-tag",
1999
- class: `nb-tag--${_vm.size} nb-tag--${_vm.type} ${_vm.fill ? `nb-tag--fill` : ''}`
2000
- }, [_vm._t("default")], 2);
2001
- };
2002
- var staticRenderFns = [];
2003
-
2004
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTag/src/index.vue?vue&type=script&lang=js
2005
- /* harmony default export */ var srcvue_type_script_lang_js = ({
2006
- name: 'NBTag',
2007
- props: {
2008
- // 类型,success/info/warning/danger,默认主题色状态
2009
- type: {
2010
- type: String,
2011
- default: ''
2012
- },
2013
- // 尺寸,large-大标签(高度36),默认小标签(高度32)
2014
- size: {
2015
- type: String,
2016
- default: ''
2017
- },
2018
- // 是否填充
2019
- fill: {
2020
- type: Boolean,
2021
- default: false
2022
- }
2023
- }
2024
- });
2025
- ;// ./packages/components/NBTag/src/index.vue?vue&type=script&lang=js
2026
- /* harmony default export */ var NBTag_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2027
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2028
- var componentNormalizer = __webpack_require__(1656);
2029
- ;// ./packages/components/NBTag/src/index.vue
2030
-
2031
-
2032
-
2033
-
2034
-
2035
- /* normalize component */
2036
- ;
2037
- var component = (0,componentNormalizer/* default */.A)(
2038
- NBTag_srcvue_type_script_lang_js,
2039
- render,
2040
- staticRenderFns,
2041
- false,
2042
- null,
2043
- null,
2044
- null
2045
-
2046
- )
2047
-
2048
- /* harmony default export */ var src = (component.exports);
2049
- ;// ./packages/components/NBTag/index.js
2050
- /*
2051
- * @Author: chenghuan.dong
2052
- * @Date: 2024-11-11 13:46:33
2053
- * @LastEditTime: 2024-11-11 16:27:27
2054
- * @LastEditors: chenghuan.dong
2055
- * @Description:
2056
- * @FilePath: \nubomed-ui\packages\components\NBTag\index.js
2057
- */
2058
-
2059
- src.install = function (Vue) {
2060
- Vue.component('nb-tag', src);
986
+ NBPagination.install = function (Vue) {
987
+ Vue.component('nb-pagination', NBPagination);
2061
988
  };
2062
- /* harmony default export */ var NBTag = (src);
989
+ /* harmony default export */ var components_NBPagination = (NBPagination);
2063
990
 
2064
991
  /***/ }),
2065
992
 
2066
- /***/ 1295:
993
+ /***/ 3705:
2067
994
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2068
995
 
2069
996
  "use strict";
@@ -2072,128 +999,111 @@ __webpack_require__.r(__webpack_exports__);
2072
999
 
2073
1000
  // EXPORTS
2074
1001
  __webpack_require__.d(__webpack_exports__, {
2075
- "default": function() { return /* binding */ SvgIcon; }
1002
+ "default": function() { return /* binding */ NBTag; }
2076
1003
  });
2077
1004
 
2078
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/SvgIcon/src/index.vue?vue&type=template&id=5346430d&scoped=true
1005
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTag/src/index.vue?vue&type=template&id=6665f146
2079
1006
  var render = function render() {
2080
1007
  var _vm = this,
2081
1008
  _c = _vm._self._c;
2082
- return _vm.isExternal ? _c('div', _vm._g({
2083
- staticClass: "svg-external-icon svg-icon",
2084
- style: _vm.styleExternalIcon
2085
- }, _vm.$listeners)) : _c('svg', _vm._g({
2086
- class: _vm.svgClass,
2087
- attrs: {
2088
- "aria-hidden": "true"
2089
- }
2090
- }, _vm.$listeners), [_c('use', {
2091
- attrs: {
2092
- "href": _vm.iconName
2093
- }
2094
- })]);
1009
+ return _c('span', {
1010
+ staticClass: "nb-tag",
1011
+ class: `nb-tag--${_vm.size} nb-tag--${_vm.type} ${_vm.fill ? `nb-tag--fill` : ''}`
1012
+ }, [_vm._t("default")], 2);
2095
1013
  };
2096
1014
  var staticRenderFns = [];
2097
1015
 
2098
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/SvgIcon/src/index.vue?vue&type=script&lang=js
1016
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTag/src/index.vue?vue&type=script&lang=js
2099
1017
  /* harmony default export */ var srcvue_type_script_lang_js = ({
2100
- name: 'SvgIcon',
1018
+ name: 'NBTag',
2101
1019
  props: {
2102
- iconClass: {
1020
+ // 类型,success/info/warning/danger,默认主题色状态
1021
+ type: {
2103
1022
  type: String,
2104
- required: true
1023
+ default: ''
2105
1024
  },
2106
- className: {
1025
+ // 尺寸,large-大标签(高度36),默认小标签(高度32)
1026
+ size: {
2107
1027
  type: String,
2108
1028
  default: ''
2109
- }
2110
- },
2111
- computed: {
2112
- isExternal() {
2113
- return this.validateIsExternal(this.iconClass);
2114
1029
  },
2115
- iconName() {
2116
- return `#icon-${this.iconClass}`;
2117
- },
2118
- svgClass() {
2119
- if (this.className) {
2120
- return 'svg-icon ' + this.className;
2121
- } else {
2122
- return 'svg-icon';
2123
- }
2124
- },
2125
- styleExternalIcon() {
2126
- return {
2127
- mask: `url(${this.iconClass}) no-repeat 50% 50%`,
2128
- '-webkit-mask': `url(${this.iconClass}) no-repeat 50% 50%`
2129
- };
2130
- }
2131
- },
2132
- methods: {
2133
- validateIsExternal(path) {
2134
- return /^(https?:|mailto:|tel:)/.test(path);
1030
+ // 是否填充
1031
+ fill: {
1032
+ type: Boolean,
1033
+ default: false
2135
1034
  }
2136
1035
  }
2137
1036
  });
2138
- ;// ./packages/components/SvgIcon/src/index.vue?vue&type=script&lang=js
2139
- /* harmony default export */ var SvgIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2140
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/SvgIcon/src/index.vue?vue&type=style&index=0&id=5346430d&prod&scoped=true&lang=css
2141
- var srcvue_type_style_index_0_id_5346430d_prod_scoped_true_lang_css = __webpack_require__(2983);
2142
- ;// ./packages/components/SvgIcon/src/index.vue?vue&type=style&index=0&id=5346430d&prod&scoped=true&lang=css
2143
-
1037
+ ;// ./packages/components/NBTag/src/index.vue?vue&type=script&lang=js
1038
+ /* harmony default export */ var NBTag_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2144
1039
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2145
1040
  var componentNormalizer = __webpack_require__(1656);
2146
- ;// ./packages/components/SvgIcon/src/index.vue
1041
+ ;// ./packages/components/NBTag/src/index.vue
2147
1042
 
2148
1043
 
2149
1044
 
2150
- ;
2151
1045
 
2152
1046
 
2153
1047
  /* normalize component */
2154
-
1048
+ ;
2155
1049
  var component = (0,componentNormalizer/* default */.A)(
2156
- SvgIcon_srcvue_type_script_lang_js,
1050
+ NBTag_srcvue_type_script_lang_js,
2157
1051
  render,
2158
1052
  staticRenderFns,
2159
1053
  false,
2160
1054
  null,
2161
- "5346430d",
1055
+ null,
2162
1056
  null
2163
1057
 
2164
1058
  )
2165
1059
 
2166
1060
  /* harmony default export */ var src = (component.exports);
2167
- ;// ./packages/components/SvgIcon/index.js
1061
+ ;// ./packages/components/NBTag/index.js
2168
1062
  /*
2169
1063
  * @Author: chenghuan.dong
2170
- * @Date: 2024-11-11 13:05:35
2171
- * @LastEditTime: 2024-11-11 13:05:51
1064
+ * @Date: 2024-11-11 13:46:33
1065
+ * @LastEditTime: 2024-11-11 16:27:27
2172
1066
  * @LastEditors: chenghuan.dong
2173
- * @Description:
2174
- * @FilePath: \nubomed-ui\packages\components\SvgIcon\index.js
1067
+ * @Description:
1068
+ * @FilePath: \nubomed-ui\packages\components\NBTag\index.js
2175
1069
  */
2176
1070
 
2177
1071
  src.install = function (Vue) {
2178
- Vue.component(src.name, src);
1072
+ Vue.component('nb-tag', src);
2179
1073
  };
2180
- /* harmony default export */ var SvgIcon = (src);
1074
+ /* harmony default export */ var NBTag = (src);
1075
+
1076
+ /***/ }),
1077
+
1078
+ /***/ 1970:
1079
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1080
+
1081
+ // style-loader: Adds some css to the DOM by adding a <style> tag
1082
+
1083
+ // load the styles
1084
+ var content = __webpack_require__(1093);
1085
+ if(content.__esModule) content = content.default;
1086
+ if(typeof content === 'string') content = [[module.id, content, '']];
1087
+ if(content.locals) module.exports = content.locals;
1088
+ // add the styles to the DOM
1089
+ var add = (__webpack_require__(8459)/* ["default"] */ .A)
1090
+ var update = add("5a1800c6", content, true, {"sourceMap":false,"shadowMode":false});
2181
1091
 
2182
1092
  /***/ }),
2183
1093
 
2184
- /***/ 2983:
1094
+ /***/ 6821:
2185
1095
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2186
1096
 
2187
1097
  // style-loader: Adds some css to the DOM by adding a <style> tag
2188
1098
 
2189
1099
  // load the styles
2190
- var content = __webpack_require__(1882);
1100
+ var content = __webpack_require__(1351);
2191
1101
  if(content.__esModule) content = content.default;
2192
1102
  if(typeof content === 'string') content = [[module.id, content, '']];
2193
1103
  if(content.locals) module.exports = content.locals;
2194
1104
  // add the styles to the DOM
2195
1105
  var add = (__webpack_require__(8459)/* ["default"] */ .A)
2196
- var update = add("6a922d00", content, true, {"sourceMap":false,"shadowMode":false});
1106
+ var update = add("211e6e92", content, true, {"sourceMap":false,"shadowMode":false});
2197
1107
 
2198
1108
  /***/ }),
2199
1109
 
@@ -2490,10 +1400,10 @@ function applyToTag (styleElement, obj) {
2490
1400
  var map = {
2491
1401
  "./NBBottomActionBar/index.js": 1893,
2492
1402
  "./NBEmpty/index.js": 1196,
2493
- "./NBHeader/index.js": 2858,
1403
+ "./NBHeader/index.js": 7764,
1404
+ "./NBIcon/index.js": 8896,
2494
1405
  "./NBPagination/index.js": 7791,
2495
- "./NBTag/index.js": 3705,
2496
- "./SvgIcon/index.js": 1295
1406
+ "./NBTag/index.js": 3705
2497
1407
  };
2498
1408
 
2499
1409
 
@@ -2574,6 +1484,30 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAAD8
2574
1484
 
2575
1485
  /***/ }),
2576
1486
 
1487
+ /***/ 8705:
1488
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1489
+
1490
+ "use strict";
1491
+ module.exports = __webpack_require__.p + "fonts/iconfont.a99a4236.ttf";
1492
+
1493
+ /***/ }),
1494
+
1495
+ /***/ 7943:
1496
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1497
+
1498
+ "use strict";
1499
+ module.exports = __webpack_require__.p + "fonts/iconfont.0c3a9555.woff2";
1500
+
1501
+ /***/ }),
1502
+
1503
+ /***/ 8927:
1504
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1505
+
1506
+ "use strict";
1507
+ module.exports = __webpack_require__.p + "fonts/iconfont.c068c01a.woff";
1508
+
1509
+ /***/ }),
1510
+
2577
1511
  /***/ 9306:
2578
1512
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2579
1513
 
@@ -2704,26 +1638,6 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2704
1638
  };
2705
1639
 
2706
1640
 
2707
- /***/ }),
2708
-
2709
- /***/ 6319:
2710
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2711
-
2712
- "use strict";
2713
-
2714
- var anObject = __webpack_require__(8551);
2715
- var iteratorClose = __webpack_require__(9539);
2716
-
2717
- // call something on iterator step with safe closing on error
2718
- module.exports = function (iterator, fn, value, ENTRIES) {
2719
- try {
2720
- return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
2721
- } catch (error) {
2722
- iteratorClose(iterator, 'throw', error);
2723
- }
2724
- };
2725
-
2726
-
2727
1641
  /***/ }),
2728
1642
 
2729
1643
  /***/ 2195:
@@ -2821,20 +1735,6 @@ module.exports = !fails(function () {
2821
1735
  });
2822
1736
 
2823
1737
 
2824
- /***/ }),
2825
-
2826
- /***/ 2529:
2827
- /***/ (function(module) {
2828
-
2829
- "use strict";
2830
-
2831
- // `CreateIterResultObject` abstract operation
2832
- // https://tc39.es/ecma262/#sec-createiterresultobject
2833
- module.exports = function (value, done) {
2834
- return { value: value, done: done };
2835
- };
2836
-
2837
-
2838
1738
  /***/ }),
2839
1739
 
2840
1740
  /***/ 6699:
@@ -2941,21 +1841,6 @@ module.exports = function (O, key, value, options) {
2941
1841
  };
2942
1842
 
2943
1843
 
2944
- /***/ }),
2945
-
2946
- /***/ 6279:
2947
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2948
-
2949
- "use strict";
2950
-
2951
- var defineBuiltIn = __webpack_require__(6840);
2952
-
2953
- module.exports = function (target, src, options) {
2954
- for (var key in src) defineBuiltIn(target, key, src[key], options);
2955
- return target;
2956
- };
2957
-
2958
-
2959
1844
  /***/ }),
2960
1845
 
2961
1846
  /***/ 9433:
@@ -3863,122 +2748,6 @@ module.exports = function (iterator, kind, value) {
3863
2748
  };
3864
2749
 
3865
2750
 
3866
- /***/ }),
3867
-
3868
- /***/ 9462:
3869
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3870
-
3871
- "use strict";
3872
-
3873
- var call = __webpack_require__(9565);
3874
- var create = __webpack_require__(2360);
3875
- var createNonEnumerableProperty = __webpack_require__(6699);
3876
- var defineBuiltIns = __webpack_require__(6279);
3877
- var wellKnownSymbol = __webpack_require__(8227);
3878
- var InternalStateModule = __webpack_require__(1181);
3879
- var getMethod = __webpack_require__(5966);
3880
- var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
3881
- var createIterResultObject = __webpack_require__(2529);
3882
- var iteratorClose = __webpack_require__(9539);
3883
-
3884
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3885
- var ITERATOR_HELPER = 'IteratorHelper';
3886
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
3887
- var setInternalState = InternalStateModule.set;
3888
-
3889
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
3890
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
3891
-
3892
- return defineBuiltIns(create(IteratorPrototype), {
3893
- next: function next() {
3894
- var state = getInternalState(this);
3895
- // for simplification:
3896
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
3897
- // for `%IteratorHelperPrototype%.next` - just a value
3898
- if (IS_ITERATOR) return state.nextHandler();
3899
- try {
3900
- var result = state.done ? undefined : state.nextHandler();
3901
- return createIterResultObject(result, state.done);
3902
- } catch (error) {
3903
- state.done = true;
3904
- throw error;
3905
- }
3906
- },
3907
- 'return': function () {
3908
- var state = getInternalState(this);
3909
- var iterator = state.iterator;
3910
- state.done = true;
3911
- if (IS_ITERATOR) {
3912
- var returnMethod = getMethod(iterator, 'return');
3913
- return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
3914
- }
3915
- if (state.inner) try {
3916
- iteratorClose(state.inner.iterator, 'normal');
3917
- } catch (error) {
3918
- return iteratorClose(iterator, 'throw', error);
3919
- }
3920
- if (iterator) iteratorClose(iterator, 'normal');
3921
- return createIterResultObject(undefined, true);
3922
- }
3923
- });
3924
- };
3925
-
3926
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
3927
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
3928
-
3929
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
3930
-
3931
- module.exports = function (nextHandler, IS_ITERATOR) {
3932
- var IteratorProxy = function Iterator(record, state) {
3933
- if (state) {
3934
- state.iterator = record.iterator;
3935
- state.next = record.next;
3936
- } else state = record;
3937
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
3938
- state.nextHandler = nextHandler;
3939
- state.counter = 0;
3940
- state.done = false;
3941
- setInternalState(this, state);
3942
- };
3943
-
3944
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
3945
-
3946
- return IteratorProxy;
3947
- };
3948
-
3949
-
3950
- /***/ }),
3951
-
3952
- /***/ 713:
3953
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3954
-
3955
- "use strict";
3956
-
3957
- var call = __webpack_require__(9565);
3958
- var aCallable = __webpack_require__(9306);
3959
- var anObject = __webpack_require__(8551);
3960
- var getIteratorDirect = __webpack_require__(1767);
3961
- var createIteratorProxy = __webpack_require__(9462);
3962
- var callWithSafeIterationClosing = __webpack_require__(6319);
3963
-
3964
- var IteratorProxy = createIteratorProxy(function () {
3965
- var iterator = this.iterator;
3966
- var result = anObject(call(this.next, iterator));
3967
- var done = this.done = !!result.done;
3968
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
3969
- });
3970
-
3971
- // `Iterator.prototype.map` method
3972
- // https://github.com/tc39/proposal-iterator-helpers
3973
- module.exports = function map(mapper) {
3974
- anObject(this);
3975
- aCallable(mapper);
3976
- return new IteratorProxy(getIteratorDirect(this), {
3977
- mapper: mapper
3978
- });
3979
- };
3980
-
3981
-
3982
2751
  /***/ }),
3983
2752
 
3984
2753
  /***/ 7657:
@@ -5036,49 +3805,6 @@ $({ global: true, constructor: true, forced: FORCED }, {
5036
3805
  });
5037
3806
 
5038
3807
 
5039
- /***/ }),
5040
-
5041
- /***/ 2489:
5042
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5043
-
5044
- "use strict";
5045
-
5046
- var $ = __webpack_require__(6518);
5047
- var call = __webpack_require__(9565);
5048
- var aCallable = __webpack_require__(9306);
5049
- var anObject = __webpack_require__(8551);
5050
- var getIteratorDirect = __webpack_require__(1767);
5051
- var createIteratorProxy = __webpack_require__(9462);
5052
- var callWithSafeIterationClosing = __webpack_require__(6319);
5053
- var IS_PURE = __webpack_require__(6395);
5054
-
5055
- var IteratorProxy = createIteratorProxy(function () {
5056
- var iterator = this.iterator;
5057
- var predicate = this.predicate;
5058
- var next = this.next;
5059
- var result, done, value;
5060
- while (true) {
5061
- result = anObject(call(next, iterator));
5062
- done = this.done = !!result.done;
5063
- if (done) return;
5064
- value = result.value;
5065
- if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
5066
- }
5067
- });
5068
-
5069
- // `Iterator.prototype.filter` method
5070
- // https://tc39.es/ecma262/#sec-iterator.prototype.filter
5071
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
5072
- filter: function filter(predicate) {
5073
- anObject(this);
5074
- aCallable(predicate);
5075
- return new IteratorProxy(getIteratorDirect(this), {
5076
- predicate: predicate
5077
- });
5078
- }
5079
- });
5080
-
5081
-
5082
3808
  /***/ }),
5083
3809
 
5084
3810
  /***/ 7588:
@@ -5107,64 +3833,6 @@ $({ target: 'Iterator', proto: true, real: true }, {
5107
3833
  });
5108
3834
 
5109
3835
 
5110
- /***/ }),
5111
-
5112
- /***/ 1701:
5113
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5114
-
5115
- "use strict";
5116
-
5117
- var $ = __webpack_require__(6518);
5118
- var map = __webpack_require__(713);
5119
- var IS_PURE = __webpack_require__(6395);
5120
-
5121
- // `Iterator.prototype.map` method
5122
- // https://tc39.es/ecma262/#sec-iterator.prototype.map
5123
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
5124
- map: map
5125
- });
5126
-
5127
-
5128
- /***/ }),
5129
-
5130
- /***/ 8237:
5131
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5132
-
5133
- "use strict";
5134
-
5135
- var $ = __webpack_require__(6518);
5136
- var iterate = __webpack_require__(2652);
5137
- var aCallable = __webpack_require__(9306);
5138
- var anObject = __webpack_require__(8551);
5139
- var getIteratorDirect = __webpack_require__(1767);
5140
-
5141
- var $TypeError = TypeError;
5142
-
5143
- // `Iterator.prototype.reduce` method
5144
- // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
5145
- $({ target: 'Iterator', proto: true, real: true }, {
5146
- reduce: function reduce(reducer /* , initialValue */) {
5147
- anObject(this);
5148
- aCallable(reducer);
5149
- var record = getIteratorDirect(this);
5150
- var noInitial = arguments.length < 2;
5151
- var accumulator = noInitial ? undefined : arguments[1];
5152
- var counter = 0;
5153
- iterate(record, function (value) {
5154
- if (noInitial) {
5155
- noInitial = false;
5156
- accumulator = value;
5157
- } else {
5158
- accumulator = reducer(accumulator, value, counter);
5159
- }
5160
- counter++;
5161
- }, { IS_RECORD: true });
5162
- if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');
5163
- return accumulator;
5164
- }
5165
- });
5166
-
5167
-
5168
3836
  /***/ }),
5169
3837
 
5170
3838
  /***/ 8992:
@@ -5176,17 +3844,6 @@ $({ target: 'Iterator', proto: true, real: true }, {
5176
3844
  __webpack_require__(8111);
5177
3845
 
5178
3846
 
5179
- /***/ }),
5180
-
5181
- /***/ 4520:
5182
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5183
-
5184
- "use strict";
5185
-
5186
- // TODO: Remove from `core-js@4`
5187
- __webpack_require__(2489);
5188
-
5189
-
5190
3847
  /***/ }),
5191
3848
 
5192
3849
  /***/ 3949:
@@ -5198,28 +3855,6 @@ __webpack_require__(2489);
5198
3855
  __webpack_require__(7588);
5199
3856
 
5200
3857
 
5201
- /***/ }),
5202
-
5203
- /***/ 1454:
5204
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5205
-
5206
- "use strict";
5207
-
5208
- // TODO: Remove from `core-js@4`
5209
- __webpack_require__(1701);
5210
-
5211
-
5212
- /***/ }),
5213
-
5214
- /***/ 8872:
5215
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5216
-
5217
- "use strict";
5218
-
5219
- // TODO: Remove from `core-js@4`
5220
- __webpack_require__(8237);
5221
-
5222
-
5223
3858
  /***/ })
5224
3859
 
5225
3860
  /******/ });
@@ -5248,6 +3883,9 @@ __webpack_require__(8237);
5248
3883
  /******/ return module.exports;
5249
3884
  /******/ }
5250
3885
  /******/
3886
+ /******/ // expose the modules object (__webpack_modules__)
3887
+ /******/ __webpack_require__.m = __webpack_modules__;
3888
+ /******/
5251
3889
  /************************************************************************/
5252
3890
  /******/ /* webpack/runtime/compat get default export */
5253
3891
  /******/ !function() {
@@ -5306,6 +3944,32 @@ __webpack_require__(8237);
5306
3944
  /******/ __webpack_require__.p = "";
5307
3945
  /******/ }();
5308
3946
  /******/
3947
+ /******/ /* webpack/runtime/jsonp chunk loading */
3948
+ /******/ !function() {
3949
+ /******/ __webpack_require__.b = document.baseURI || self.location.href;
3950
+ /******/
3951
+ /******/ // object to store loaded and loading chunks
3952
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
3953
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
3954
+ /******/ var installedChunks = {
3955
+ /******/ 657: 0
3956
+ /******/ };
3957
+ /******/
3958
+ /******/ // no chunk on demand loading
3959
+ /******/
3960
+ /******/ // no prefetching
3961
+ /******/
3962
+ /******/ // no preloaded
3963
+ /******/
3964
+ /******/ // no HMR
3965
+ /******/
3966
+ /******/ // no HMR manifest
3967
+ /******/
3968
+ /******/ // no on chunks loaded
3969
+ /******/
3970
+ /******/ // no jsonp function
3971
+ /******/ }();
3972
+ /******/
5309
3973
  /************************************************************************/
5310
3974
  var __webpack_exports__ = {};
5311
3975
  // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
@@ -5342,6 +4006,8 @@ var es_array_push = __webpack_require__(4114);
5342
4006
  var esnext_iterator_constructor = __webpack_require__(8992);
5343
4007
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
5344
4008
  var esnext_iterator_for_each = __webpack_require__(3949);
4009
+ // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
4010
+ var iconfont = __webpack_require__(1970);
5345
4011
  ;// ./locale/lang/zh-CN.js
5346
4012
  /*
5347
4013
  * @Author: chenghuan.dong
@@ -5472,24 +4138,19 @@ const i18n = function (fn) {
5472
4138
  /*
5473
4139
  * @Author: chenghuan.dong
5474
4140
  * @Date: 2024-11-08 17:23:47
5475
- * @LastEditTime: 2024-11-11 20:59:49
4141
+ * @LastEditTime: 2024-11-12 11:14:23
5476
4142
  * @LastEditors: chenghuan.dong
5477
4143
  * @Description: 主index.js导出全部组件
5478
4144
  * @FilePath: \nubomed-ui\packages\index.js
5479
4145
  */
5480
4146
 
5481
- // import SvgIcon from './components/SvgIcon'
5482
- // import NBTag from './components/NBTag/index.js'
5483
- // import NBEmpty from './components/NBEmpty/index.js'
5484
- // import NBPagination from './components/NBPagination/index.js'
5485
- // import NBBottomActionBar from './components/NBBottomActionBar/index.js'
4147
+ // 使用iconfont图标
5486
4148
 
5487
- // const components = [SvgIcon, NBTag, NBEmpty, NBPagination, NBBottomActionBar]
5488
4149
 
4150
+ // 获取所有组件
5489
4151
  const components = [];
5490
4152
  const req = __webpack_require__(2162);
5491
4153
  req.keys().forEach(v => {
5492
- console.log(req(v).default);
5493
4154
  components.push(req(v).default);
5494
4155
  });
5495
4156