nubomed-ui 2.0.14 → 2.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -168,6 +168,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, "@font-face{font-family:iconfont;src:ur
168
168
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
169
169
 
170
170
 
171
+ /***/ }),
172
+
173
+ /***/ 5772:
174
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
175
+
176
+ "use strict";
177
+ __webpack_require__.r(__webpack_exports__);
178
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
179
+ /* 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__);
180
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
181
+ /* 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__);
182
+ // Imports
183
+
184
+
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()));
186
+ // Module
187
+ ___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-1d7955de]{display:inline-flex}", ""]);
188
+ // Exports
189
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
190
+
191
+
171
192
  /***/ }),
172
193
 
173
194
  /***/ 9767:
@@ -541,7 +562,7 @@ src.install = function (Vue) {
541
562
 
542
563
  /***/ }),
543
564
 
544
- /***/ 2858:
565
+ /***/ 7764:
545
566
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
546
567
 
547
568
  "use strict";
@@ -553,7 +574,7 @@ __webpack_require__.d(__webpack_exports__, {
553
574
  "default": function() { return /* binding */ components_NBHeader; }
554
575
  });
555
576
 
556
- ;// ./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
557
578
  var render = function render() {
558
579
  var _vm = this,
559
580
  _c = _vm._self._c;
@@ -567,12 +588,10 @@ var render = function render() {
567
588
  return _vm.handleBack.apply(null, arguments);
568
589
  }
569
590
  }
570
- }, [_c('svg-icon', {
591
+ }, [_c('NBIcon', {
571
592
  attrs: {
572
- "icon-class": "back"
593
+ "icon": "back"
573
594
  }
574
- }), _c('span', {
575
- staticClass: "iconfont icon-back"
576
595
  }), _c('span', {
577
596
  staticClass: "nb-header__back__text"
578
597
  }, [_vm._v(_vm._s(_vm.backText))])], 1) : _vm._e(), _c('div', {
@@ -604,1156 +623,34 @@ var render = function render() {
604
623
  }, [_vm._t("title", function () {
605
624
  return [_vm._v(_vm._s(_vm.title))];
606
625
  })], 2) : _vm._e(), _c('div', {
607
- staticClass: "nb-header__right"
608
- }, [_vm._t("right")], 2), _vm.logout ? _c('div', {
609
- staticClass: "nb-header__logout",
610
- on: {
611
- "click": function ($event) {
612
- $event.stopPropagation();
613
- return _vm.handleLogout.apply(null, arguments);
614
- }
615
- }
616
- }, [_c('svg-icon', {
617
- attrs: {
618
- "icon-class": "logout"
619
- }
620
- }), _c('span', {
621
- staticClass: "nb-header__logout__text"
622
- }, [_vm._v(_vm._s(_vm.logoutText)), _vm.logoutTime > -1 ? [_vm._v("(" + _vm._s(_vm.logoutTime) + "S)")] : _vm._e()], 2)], 1) : _vm._e()]);
623
- };
624
- var staticRenderFns = [];
625
-
626
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
627
- var es_array_push = __webpack_require__(4114);
628
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
629
- var esnext_iterator_constructor = __webpack_require__(8992);
630
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
631
- var esnext_iterator_filter = __webpack_require__(4520);
632
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
633
- var esnext_iterator_for_each = __webpack_require__(3949);
634
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
635
- var esnext_iterator_map = __webpack_require__(1454);
636
- // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.reduce.js
637
- var esnext_iterator_reduce = __webpack_require__(8872);
638
- ;// ./node_modules/vuex/dist/vuex.esm.js
639
-
640
-
641
-
642
-
643
-
644
-
645
- /*!
646
- * vuex v3.6.2
647
- * (c) 2021 Evan You
648
- * @license MIT
649
- */
650
- function applyMixin(Vue) {
651
- var version = Number(Vue.version.split('.')[0]);
652
- if (version >= 2) {
653
- Vue.mixin({
654
- beforeCreate: vuexInit
655
- });
656
- } else {
657
- // override init and inject vuex init procedure
658
- // for 1.x backwards compatibility.
659
- var _init = Vue.prototype._init;
660
- Vue.prototype._init = function (options) {
661
- if (options === void 0) options = {};
662
- options.init = options.init ? [vuexInit].concat(options.init) : vuexInit;
663
- _init.call(this, options);
664
- };
665
- }
666
-
667
- /**
668
- * Vuex init hook, injected into each instances init hooks list.
669
- */
670
-
671
- function vuexInit() {
672
- var options = this.$options;
673
- // store injection
674
- if (options.store) {
675
- this.$store = typeof options.store === 'function' ? options.store() : options.store;
676
- } else if (options.parent && options.parent.$store) {
677
- this.$store = options.parent.$store;
678
- }
679
- }
680
- }
681
- var target = typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : {};
682
- var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
683
- function devtoolPlugin(store) {
684
- if (!devtoolHook) {
685
- return;
686
- }
687
- store._devtoolHook = devtoolHook;
688
- devtoolHook.emit('vuex:init', store);
689
- devtoolHook.on('vuex:travel-to-state', function (targetState) {
690
- store.replaceState(targetState);
691
- });
692
- store.subscribe(function (mutation, state) {
693
- devtoolHook.emit('vuex:mutation', mutation, state);
694
- }, {
695
- prepend: true
696
- });
697
- store.subscribeAction(function (action, state) {
698
- devtoolHook.emit('vuex:action', action, state);
699
- }, {
700
- prepend: true
701
- });
702
- }
703
-
704
- /**
705
- * Get the first item that pass the test
706
- * by second argument function
707
- *
708
- * @param {Array} list
709
- * @param {Function} f
710
- * @return {*}
711
- */
712
- function find(list, f) {
713
- return list.filter(f)[0];
714
- }
715
-
716
- /**
717
- * Deep copy the given object considering circular structure.
718
- * This function caches all nested objects and its copies.
719
- * If it detects circular structure, use cached copy to avoid infinite loop.
720
- *
721
- * @param {*} obj
722
- * @param {Array<Object>} cache
723
- * @return {*}
724
- */
725
- function deepCopy(obj, cache) {
726
- if (cache === void 0) cache = [];
727
-
728
- // just return if obj is immutable value
729
- if (obj === null || typeof obj !== 'object') {
730
- return obj;
731
- }
732
-
733
- // if obj is hit, it is in circular structure
734
- var hit = find(cache, function (c) {
735
- return c.original === obj;
736
- });
737
- if (hit) {
738
- return hit.copy;
739
- }
740
- var copy = Array.isArray(obj) ? [] : {};
741
- // put the copy into cache at first
742
- // because we want to refer it in recursive deepCopy
743
- cache.push({
744
- original: obj,
745
- copy: copy
746
- });
747
- Object.keys(obj).forEach(function (key) {
748
- copy[key] = deepCopy(obj[key], cache);
749
- });
750
- return copy;
751
- }
752
-
753
- /**
754
- * forEach for object
755
- */
756
- function forEachValue(obj, fn) {
757
- Object.keys(obj).forEach(function (key) {
758
- return fn(obj[key], key);
759
- });
760
- }
761
- function isObject(obj) {
762
- return obj !== null && typeof obj === 'object';
763
- }
764
- function isPromise(val) {
765
- return val && typeof val.then === 'function';
766
- }
767
- function assert(condition, msg) {
768
- if (!condition) {
769
- throw new Error("[vuex] " + msg);
770
- }
771
- }
772
- function partial(fn, arg) {
773
- return function () {
774
- return fn(arg);
775
- };
776
- }
777
-
778
- // Base data struct for store's module, package with some attribute and method
779
- var Module = function Module(rawModule, runtime) {
780
- this.runtime = runtime;
781
- // Store some children item
782
- this._children = Object.create(null);
783
- // Store the origin module object which passed by programmer
784
- this._rawModule = rawModule;
785
- var rawState = rawModule.state;
786
-
787
- // Store the origin module's state
788
- this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
789
- };
790
- var prototypeAccessors = {
791
- namespaced: {
792
- configurable: true
793
- }
794
- };
795
- prototypeAccessors.namespaced.get = function () {
796
- return !!this._rawModule.namespaced;
797
- };
798
- Module.prototype.addChild = function addChild(key, module) {
799
- this._children[key] = module;
800
- };
801
- Module.prototype.removeChild = function removeChild(key) {
802
- delete this._children[key];
803
- };
804
- Module.prototype.getChild = function getChild(key) {
805
- return this._children[key];
806
- };
807
- Module.prototype.hasChild = function hasChild(key) {
808
- return key in this._children;
809
- };
810
- Module.prototype.update = function update(rawModule) {
811
- this._rawModule.namespaced = rawModule.namespaced;
812
- if (rawModule.actions) {
813
- this._rawModule.actions = rawModule.actions;
814
- }
815
- if (rawModule.mutations) {
816
- this._rawModule.mutations = rawModule.mutations;
817
- }
818
- if (rawModule.getters) {
819
- this._rawModule.getters = rawModule.getters;
820
- }
821
- };
822
- Module.prototype.forEachChild = function forEachChild(fn) {
823
- forEachValue(this._children, fn);
824
- };
825
- Module.prototype.forEachGetter = function forEachGetter(fn) {
826
- if (this._rawModule.getters) {
827
- forEachValue(this._rawModule.getters, fn);
828
- }
829
- };
830
- Module.prototype.forEachAction = function forEachAction(fn) {
831
- if (this._rawModule.actions) {
832
- forEachValue(this._rawModule.actions, fn);
833
- }
834
- };
835
- Module.prototype.forEachMutation = function forEachMutation(fn) {
836
- if (this._rawModule.mutations) {
837
- forEachValue(this._rawModule.mutations, fn);
838
- }
839
- };
840
- Object.defineProperties(Module.prototype, prototypeAccessors);
841
- var ModuleCollection = function ModuleCollection(rawRootModule) {
842
- // register root module (Vuex.Store options)
843
- this.register([], rawRootModule, false);
844
- };
845
- ModuleCollection.prototype.get = function get(path) {
846
- return path.reduce(function (module, key) {
847
- return module.getChild(key);
848
- }, this.root);
849
- };
850
- ModuleCollection.prototype.getNamespace = function getNamespace(path) {
851
- var module = this.root;
852
- return path.reduce(function (namespace, key) {
853
- module = module.getChild(key);
854
- return namespace + (module.namespaced ? key + '/' : '');
855
- }, '');
856
- };
857
- ModuleCollection.prototype.update = function update$1(rawRootModule) {
858
- update([], this.root, rawRootModule);
859
- };
860
- ModuleCollection.prototype.register = function register(path, rawModule, runtime) {
861
- var this$1 = this;
862
- if (runtime === void 0) runtime = true;
863
- if (false) {}
864
- var newModule = new Module(rawModule, runtime);
865
- if (path.length === 0) {
866
- this.root = newModule;
867
- } else {
868
- var parent = this.get(path.slice(0, -1));
869
- parent.addChild(path[path.length - 1], newModule);
870
- }
871
-
872
- // register nested modules
873
- if (rawModule.modules) {
874
- forEachValue(rawModule.modules, function (rawChildModule, key) {
875
- this$1.register(path.concat(key), rawChildModule, runtime);
876
- });
877
- }
878
- };
879
- ModuleCollection.prototype.unregister = function unregister(path) {
880
- var parent = this.get(path.slice(0, -1));
881
- var key = path[path.length - 1];
882
- var child = parent.getChild(key);
883
- if (!child) {
884
- if (false) {}
885
- return;
886
- }
887
- if (!child.runtime) {
888
- return;
889
- }
890
- parent.removeChild(key);
891
- };
892
- ModuleCollection.prototype.isRegistered = function isRegistered(path) {
893
- var parent = this.get(path.slice(0, -1));
894
- var key = path[path.length - 1];
895
- if (parent) {
896
- return parent.hasChild(key);
897
- }
898
- return false;
899
- };
900
- function update(path, targetModule, newModule) {
901
- if (false) {}
902
-
903
- // update target module
904
- targetModule.update(newModule);
905
-
906
- // update nested modules
907
- if (newModule.modules) {
908
- for (var key in newModule.modules) {
909
- if (!targetModule.getChild(key)) {
910
- if (false) {}
911
- return;
912
- }
913
- update(path.concat(key), targetModule.getChild(key), newModule.modules[key]);
914
- }
915
- }
916
- }
917
- var functionAssert = {
918
- assert: function (value) {
919
- return typeof value === 'function';
920
- },
921
- expected: 'function'
922
- };
923
- var objectAssert = {
924
- assert: function (value) {
925
- return typeof value === 'function' || typeof value === 'object' && typeof value.handler === 'function';
926
- },
927
- expected: 'function or object with "handler" function'
928
- };
929
- var assertTypes = {
930
- getters: functionAssert,
931
- mutations: functionAssert,
932
- actions: objectAssert
933
- };
934
- function assertRawModule(path, rawModule) {
935
- Object.keys(assertTypes).forEach(function (key) {
936
- if (!rawModule[key]) {
937
- return;
938
- }
939
- var assertOptions = assertTypes[key];
940
- forEachValue(rawModule[key], function (value, type) {
941
- assert(assertOptions.assert(value), makeAssertionMessage(path, key, type, value, assertOptions.expected));
942
- });
943
- });
944
- }
945
- function makeAssertionMessage(path, key, type, value, expected) {
946
- var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
947
- if (path.length > 0) {
948
- buf += " in module \"" + path.join('.') + "\"";
949
- }
950
- buf += " is " + JSON.stringify(value) + ".";
951
- return buf;
952
- }
953
- var Vue; // bind on install
954
-
955
- var Store = function Store(options) {
956
- var this$1 = this;
957
- if (options === void 0) options = {};
958
-
959
- // Auto install if it is not done yet and `window` has `Vue`.
960
- // To allow users to avoid auto-installation in some cases,
961
- // this code should be placed here. See #731
962
- if (!Vue && typeof window !== 'undefined' && window.Vue) {
963
- install(window.Vue);
964
- }
965
- if (false) {}
966
- var plugins = options.plugins;
967
- if (plugins === void 0) plugins = [];
968
- var strict = options.strict;
969
- if (strict === void 0) strict = false;
970
-
971
- // store internal state
972
- this._committing = false;
973
- this._actions = Object.create(null);
974
- this._actionSubscribers = [];
975
- this._mutations = Object.create(null);
976
- this._wrappedGetters = Object.create(null);
977
- this._modules = new ModuleCollection(options);
978
- this._modulesNamespaceMap = Object.create(null);
979
- this._subscribers = [];
980
- this._watcherVM = new Vue();
981
- this._makeLocalGettersCache = Object.create(null);
982
-
983
- // bind commit and dispatch to self
984
- var store = this;
985
- var ref = this;
986
- var dispatch = ref.dispatch;
987
- var commit = ref.commit;
988
- this.dispatch = function boundDispatch(type, payload) {
989
- return dispatch.call(store, type, payload);
990
- };
991
- this.commit = function boundCommit(type, payload, options) {
992
- return commit.call(store, type, payload, options);
993
- };
994
-
995
- // strict mode
996
- this.strict = strict;
997
- var state = this._modules.root.state;
998
-
999
- // init root module.
1000
- // this also recursively registers all sub-modules
1001
- // and collects all module getters inside this._wrappedGetters
1002
- installModule(this, state, [], this._modules.root);
1003
-
1004
- // initialize the store vm, which is responsible for the reactivity
1005
- // (also registers _wrappedGetters as computed properties)
1006
- resetStoreVM(this, state);
1007
-
1008
- // apply plugins
1009
- plugins.forEach(function (plugin) {
1010
- return plugin(this$1);
1011
- });
1012
- var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
1013
- if (useDevtools) {
1014
- devtoolPlugin(this);
1015
- }
1016
- };
1017
- var prototypeAccessors$1 = {
1018
- state: {
1019
- configurable: true
1020
- }
1021
- };
1022
- prototypeAccessors$1.state.get = function () {
1023
- return this._vm._data.$$state;
1024
- };
1025
- prototypeAccessors$1.state.set = function (v) {
1026
- if (false) {}
1027
- };
1028
- Store.prototype.commit = function commit(_type, _payload, _options) {
1029
- var this$1 = this;
1030
-
1031
- // check object-style commit
1032
- var ref = unifyObjectStyle(_type, _payload, _options);
1033
- var type = ref.type;
1034
- var payload = ref.payload;
1035
- var options = ref.options;
1036
- var mutation = {
1037
- type: type,
1038
- payload: payload
1039
- };
1040
- var entry = this._mutations[type];
1041
- if (!entry) {
1042
- if (false) {}
1043
- return;
1044
- }
1045
- this._withCommit(function () {
1046
- entry.forEach(function commitIterator(handler) {
1047
- handler(payload);
1048
- });
1049
- });
1050
- this._subscribers.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
1051
- .forEach(function (sub) {
1052
- return sub(mutation, this$1.state);
1053
- });
1054
- if (false) {}
1055
- };
1056
- Store.prototype.dispatch = function dispatch(_type, _payload) {
1057
- var this$1 = this;
1058
-
1059
- // check object-style dispatch
1060
- var ref = unifyObjectStyle(_type, _payload);
1061
- var type = ref.type;
1062
- var payload = ref.payload;
1063
- var action = {
1064
- type: type,
1065
- payload: payload
1066
- };
1067
- var entry = this._actions[type];
1068
- if (!entry) {
1069
- if (false) {}
1070
- return;
1071
- }
1072
- try {
1073
- this._actionSubscribers.slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
1074
- .filter(function (sub) {
1075
- return sub.before;
1076
- }).forEach(function (sub) {
1077
- return sub.before(action, this$1.state);
1078
- });
1079
- } catch (e) {
1080
- if (false) {}
1081
- }
1082
- var result = entry.length > 1 ? Promise.all(entry.map(function (handler) {
1083
- return handler(payload);
1084
- })) : entry[0](payload);
1085
- return new Promise(function (resolve, reject) {
1086
- result.then(function (res) {
1087
- try {
1088
- this$1._actionSubscribers.filter(function (sub) {
1089
- return sub.after;
1090
- }).forEach(function (sub) {
1091
- return sub.after(action, this$1.state);
1092
- });
1093
- } catch (e) {
1094
- if (false) {}
1095
- }
1096
- resolve(res);
1097
- }, function (error) {
1098
- try {
1099
- this$1._actionSubscribers.filter(function (sub) {
1100
- return sub.error;
1101
- }).forEach(function (sub) {
1102
- return sub.error(action, this$1.state, error);
1103
- });
1104
- } catch (e) {
1105
- if (false) {}
1106
- }
1107
- reject(error);
1108
- });
1109
- });
1110
- };
1111
- Store.prototype.subscribe = function subscribe(fn, options) {
1112
- return genericSubscribe(fn, this._subscribers, options);
1113
- };
1114
- Store.prototype.subscribeAction = function subscribeAction(fn, options) {
1115
- var subs = typeof fn === 'function' ? {
1116
- before: fn
1117
- } : fn;
1118
- return genericSubscribe(subs, this._actionSubscribers, options);
1119
- };
1120
- Store.prototype.watch = function watch(getter, cb, options) {
1121
- var this$1 = this;
1122
- if (false) {}
1123
- return this._watcherVM.$watch(function () {
1124
- return getter(this$1.state, this$1.getters);
1125
- }, cb, options);
1126
- };
1127
- Store.prototype.replaceState = function replaceState(state) {
1128
- var this$1 = this;
1129
- this._withCommit(function () {
1130
- this$1._vm._data.$$state = state;
1131
- });
1132
- };
1133
- Store.prototype.registerModule = function registerModule(path, rawModule, options) {
1134
- if (options === void 0) options = {};
1135
- if (typeof path === 'string') {
1136
- path = [path];
1137
- }
1138
- if (false) {}
1139
- this._modules.register(path, rawModule);
1140
- installModule(this, this.state, path, this._modules.get(path), options.preserveState);
1141
- // reset store to update getters...
1142
- resetStoreVM(this, this.state);
1143
- };
1144
- Store.prototype.unregisterModule = function unregisterModule(path) {
1145
- var this$1 = this;
1146
- if (typeof path === 'string') {
1147
- path = [path];
1148
- }
1149
- if (false) {}
1150
- this._modules.unregister(path);
1151
- this._withCommit(function () {
1152
- var parentState = getNestedState(this$1.state, path.slice(0, -1));
1153
- Vue.delete(parentState, path[path.length - 1]);
1154
- });
1155
- resetStore(this);
1156
- };
1157
- Store.prototype.hasModule = function hasModule(path) {
1158
- if (typeof path === 'string') {
1159
- path = [path];
1160
- }
1161
- if (false) {}
1162
- return this._modules.isRegistered(path);
1163
- };
1164
- Store.prototype.hotUpdate = function hotUpdate(newOptions) {
1165
- this._modules.update(newOptions);
1166
- resetStore(this, true);
1167
- };
1168
- Store.prototype._withCommit = function _withCommit(fn) {
1169
- var committing = this._committing;
1170
- this._committing = true;
1171
- fn();
1172
- this._committing = committing;
1173
- };
1174
- Object.defineProperties(Store.prototype, prototypeAccessors$1);
1175
- function genericSubscribe(fn, subs, options) {
1176
- if (subs.indexOf(fn) < 0) {
1177
- options && options.prepend ? subs.unshift(fn) : subs.push(fn);
1178
- }
1179
- return function () {
1180
- var i = subs.indexOf(fn);
1181
- if (i > -1) {
1182
- subs.splice(i, 1);
1183
- }
1184
- };
1185
- }
1186
- function resetStore(store, hot) {
1187
- store._actions = Object.create(null);
1188
- store._mutations = Object.create(null);
1189
- store._wrappedGetters = Object.create(null);
1190
- store._modulesNamespaceMap = Object.create(null);
1191
- var state = store.state;
1192
- // init all modules
1193
- installModule(store, state, [], store._modules.root, true);
1194
- // reset vm
1195
- resetStoreVM(store, state, hot);
1196
- }
1197
- function resetStoreVM(store, state, hot) {
1198
- var oldVm = store._vm;
1199
-
1200
- // bind store public getters
1201
- store.getters = {};
1202
- // reset local getters cache
1203
- store._makeLocalGettersCache = Object.create(null);
1204
- var wrappedGetters = store._wrappedGetters;
1205
- var computed = {};
1206
- forEachValue(wrappedGetters, function (fn, key) {
1207
- // use computed to leverage its lazy-caching mechanism
1208
- // direct inline function use will lead to closure preserving oldVm.
1209
- // using partial to return function with only arguments preserved in closure environment.
1210
- computed[key] = partial(fn, store);
1211
- Object.defineProperty(store.getters, key, {
1212
- get: function () {
1213
- return store._vm[key];
1214
- },
1215
- enumerable: true // for local getters
1216
- });
1217
- });
1218
-
1219
- // use a Vue instance to store the state tree
1220
- // suppress warnings just in case the user has added
1221
- // some funky global mixins
1222
- var silent = Vue.config.silent;
1223
- Vue.config.silent = true;
1224
- store._vm = new Vue({
1225
- data: {
1226
- $$state: state
1227
- },
1228
- computed: computed
1229
- });
1230
- Vue.config.silent = silent;
1231
-
1232
- // enable strict mode for new vm
1233
- if (store.strict) {
1234
- enableStrictMode(store);
1235
- }
1236
- if (oldVm) {
1237
- if (hot) {
1238
- // dispatch changes in all subscribed watchers
1239
- // to force getter re-evaluation for hot reloading.
1240
- store._withCommit(function () {
1241
- oldVm._data.$$state = null;
1242
- });
1243
- }
1244
- Vue.nextTick(function () {
1245
- return oldVm.$destroy();
1246
- });
1247
- }
1248
- }
1249
- function installModule(store, rootState, path, module, hot) {
1250
- var isRoot = !path.length;
1251
- var namespace = store._modules.getNamespace(path);
1252
-
1253
- // register in namespace map
1254
- if (module.namespaced) {
1255
- if (store._modulesNamespaceMap[namespace] && "production" !== 'production') {}
1256
- store._modulesNamespaceMap[namespace] = module;
1257
- }
1258
-
1259
- // set state
1260
- if (!isRoot && !hot) {
1261
- var parentState = getNestedState(rootState, path.slice(0, -1));
1262
- var moduleName = path[path.length - 1];
1263
- store._withCommit(function () {
1264
- if (false) {}
1265
- Vue.set(parentState, moduleName, module.state);
1266
- });
1267
- }
1268
- var local = module.context = makeLocalContext(store, namespace, path);
1269
- module.forEachMutation(function (mutation, key) {
1270
- var namespacedType = namespace + key;
1271
- registerMutation(store, namespacedType, mutation, local);
1272
- });
1273
- module.forEachAction(function (action, key) {
1274
- var type = action.root ? key : namespace + key;
1275
- var handler = action.handler || action;
1276
- registerAction(store, type, handler, local);
1277
- });
1278
- module.forEachGetter(function (getter, key) {
1279
- var namespacedType = namespace + key;
1280
- registerGetter(store, namespacedType, getter, local);
1281
- });
1282
- module.forEachChild(function (child, key) {
1283
- installModule(store, rootState, path.concat(key), child, hot);
1284
- });
1285
- }
1286
-
1287
- /**
1288
- * make localized dispatch, commit, getters and state
1289
- * if there is no namespace, just use root ones
1290
- */
1291
- function makeLocalContext(store, namespace, path) {
1292
- var noNamespace = namespace === '';
1293
- var local = {
1294
- dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
1295
- var args = unifyObjectStyle(_type, _payload, _options);
1296
- var payload = args.payload;
1297
- var options = args.options;
1298
- var type = args.type;
1299
- if (!options || !options.root) {
1300
- type = namespace + type;
1301
- if (false) {}
1302
- }
1303
- return store.dispatch(type, payload);
1304
- },
1305
- commit: noNamespace ? store.commit : function (_type, _payload, _options) {
1306
- var args = unifyObjectStyle(_type, _payload, _options);
1307
- var payload = args.payload;
1308
- var options = args.options;
1309
- var type = args.type;
1310
- if (!options || !options.root) {
1311
- type = namespace + type;
1312
- if (false) {}
1313
- }
1314
- store.commit(type, payload, options);
1315
- }
1316
- };
1317
-
1318
- // getters and state object must be gotten lazily
1319
- // because they will be changed by vm update
1320
- Object.defineProperties(local, {
1321
- getters: {
1322
- get: noNamespace ? function () {
1323
- return store.getters;
1324
- } : function () {
1325
- return makeLocalGetters(store, namespace);
1326
- }
1327
- },
1328
- state: {
1329
- get: function () {
1330
- return getNestedState(store.state, path);
1331
- }
1332
- }
1333
- });
1334
- return local;
1335
- }
1336
- function makeLocalGetters(store, namespace) {
1337
- if (!store._makeLocalGettersCache[namespace]) {
1338
- var gettersProxy = {};
1339
- var splitPos = namespace.length;
1340
- Object.keys(store.getters).forEach(function (type) {
1341
- // skip if the target getter is not match this namespace
1342
- if (type.slice(0, splitPos) !== namespace) {
1343
- return;
1344
- }
1345
-
1346
- // extract local getter type
1347
- var localType = type.slice(splitPos);
1348
-
1349
- // Add a port to the getters proxy.
1350
- // Define as getter property because
1351
- // we do not want to evaluate the getters in this time.
1352
- Object.defineProperty(gettersProxy, localType, {
1353
- get: function () {
1354
- return store.getters[type];
1355
- },
1356
- enumerable: true
1357
- });
1358
- });
1359
- store._makeLocalGettersCache[namespace] = gettersProxy;
1360
- }
1361
- return store._makeLocalGettersCache[namespace];
1362
- }
1363
- function registerMutation(store, type, handler, local) {
1364
- var entry = store._mutations[type] || (store._mutations[type] = []);
1365
- entry.push(function wrappedMutationHandler(payload) {
1366
- handler.call(store, local.state, payload);
1367
- });
1368
- }
1369
- function registerAction(store, type, handler, local) {
1370
- var entry = store._actions[type] || (store._actions[type] = []);
1371
- entry.push(function wrappedActionHandler(payload) {
1372
- var res = handler.call(store, {
1373
- dispatch: local.dispatch,
1374
- commit: local.commit,
1375
- getters: local.getters,
1376
- state: local.state,
1377
- rootGetters: store.getters,
1378
- rootState: store.state
1379
- }, payload);
1380
- if (!isPromise(res)) {
1381
- res = Promise.resolve(res);
1382
- }
1383
- if (store._devtoolHook) {
1384
- return res.catch(function (err) {
1385
- store._devtoolHook.emit('vuex:error', err);
1386
- throw err;
1387
- });
1388
- } else {
1389
- return res;
1390
- }
1391
- });
1392
- }
1393
- function registerGetter(store, type, rawGetter, local) {
1394
- if (store._wrappedGetters[type]) {
1395
- if (false) {}
1396
- return;
1397
- }
1398
- store._wrappedGetters[type] = function wrappedGetter(store) {
1399
- return rawGetter(local.state,
1400
- // local state
1401
- local.getters,
1402
- // local getters
1403
- store.state,
1404
- // root state
1405
- store.getters // root getters
1406
- );
1407
- };
1408
- }
1409
- function enableStrictMode(store) {
1410
- store._vm.$watch(function () {
1411
- return this._data.$$state;
1412
- }, function () {
1413
- if (false) {}
1414
- }, {
1415
- deep: true,
1416
- sync: true
1417
- });
1418
- }
1419
- function getNestedState(state, path) {
1420
- return path.reduce(function (state, key) {
1421
- return state[key];
1422
- }, state);
1423
- }
1424
- function unifyObjectStyle(type, payload, options) {
1425
- if (isObject(type) && type.type) {
1426
- options = payload;
1427
- payload = type;
1428
- type = type.type;
1429
- }
1430
- if (false) {}
1431
- return {
1432
- type: type,
1433
- payload: payload,
1434
- options: options
1435
- };
1436
- }
1437
- function install(_Vue) {
1438
- if (Vue && _Vue === Vue) {
1439
- if (false) {}
1440
- return;
1441
- }
1442
- Vue = _Vue;
1443
- applyMixin(Vue);
1444
- }
1445
-
1446
- /**
1447
- * Reduce the code which written in Vue.js for getting the state.
1448
- * @param {String} [namespace] - Module's namespace
1449
- * @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.
1450
- * @param {Object}
1451
- */
1452
- var mapState = normalizeNamespace(function (namespace, states) {
1453
- var res = {};
1454
- if (false) {}
1455
- normalizeMap(states).forEach(function (ref) {
1456
- var key = ref.key;
1457
- var val = ref.val;
1458
- res[key] = function mappedState() {
1459
- var state = this.$store.state;
1460
- var getters = this.$store.getters;
1461
- if (namespace) {
1462
- var module = getModuleByNamespace(this.$store, 'mapState', namespace);
1463
- if (!module) {
1464
- return;
1465
- }
1466
- state = module.context.state;
1467
- getters = module.context.getters;
1468
- }
1469
- return typeof val === 'function' ? val.call(this, state, getters) : state[val];
1470
- };
1471
- // mark vuex getter for devtools
1472
- res[key].vuex = true;
1473
- });
1474
- return res;
1475
- });
1476
-
1477
- /**
1478
- * Reduce the code which written in Vue.js for committing the mutation
1479
- * @param {String} [namespace] - Module's namespace
1480
- * @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.
1481
- * @return {Object}
1482
- */
1483
- var mapMutations = normalizeNamespace(function (namespace, mutations) {
1484
- var res = {};
1485
- if (false) {}
1486
- normalizeMap(mutations).forEach(function (ref) {
1487
- var key = ref.key;
1488
- var val = ref.val;
1489
- res[key] = function mappedMutation() {
1490
- var args = [],
1491
- len = arguments.length;
1492
- while (len--) args[len] = arguments[len];
1493
-
1494
- // Get the commit method from store
1495
- var commit = this.$store.commit;
1496
- if (namespace) {
1497
- var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
1498
- if (!module) {
1499
- return;
1500
- }
1501
- commit = module.context.commit;
1502
- }
1503
- return typeof val === 'function' ? val.apply(this, [commit].concat(args)) : commit.apply(this.$store, [val].concat(args));
1504
- };
1505
- });
1506
- return res;
1507
- });
1508
-
1509
- /**
1510
- * Reduce the code which written in Vue.js for getting the getters
1511
- * @param {String} [namespace] - Module's namespace
1512
- * @param {Object|Array} getters
1513
- * @return {Object}
1514
- */
1515
- var mapGetters = normalizeNamespace(function (namespace, getters) {
1516
- var res = {};
1517
- if (false) {}
1518
- normalizeMap(getters).forEach(function (ref) {
1519
- var key = ref.key;
1520
- var val = ref.val;
1521
-
1522
- // The namespace has been mutated by normalizeNamespace
1523
- val = namespace + val;
1524
- res[key] = function mappedGetter() {
1525
- if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
1526
- return;
1527
- }
1528
- if (false) {}
1529
- return this.$store.getters[val];
1530
- };
1531
- // mark vuex getter for devtools
1532
- res[key].vuex = true;
1533
- });
1534
- return res;
1535
- });
1536
-
1537
- /**
1538
- * Reduce the code which written in Vue.js for dispatch the action
1539
- * @param {String} [namespace] - Module's namespace
1540
- * @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.
1541
- * @return {Object}
1542
- */
1543
- var mapActions = normalizeNamespace(function (namespace, actions) {
1544
- var res = {};
1545
- if (false) {}
1546
- normalizeMap(actions).forEach(function (ref) {
1547
- var key = ref.key;
1548
- var val = ref.val;
1549
- res[key] = function mappedAction() {
1550
- var args = [],
1551
- len = arguments.length;
1552
- while (len--) args[len] = arguments[len];
1553
-
1554
- // get dispatch function from store
1555
- var dispatch = this.$store.dispatch;
1556
- if (namespace) {
1557
- var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
1558
- if (!module) {
1559
- return;
1560
- }
1561
- dispatch = module.context.dispatch;
1562
- }
1563
- return typeof val === 'function' ? val.apply(this, [dispatch].concat(args)) : dispatch.apply(this.$store, [val].concat(args));
1564
- };
1565
- });
1566
- return res;
1567
- });
1568
-
1569
- /**
1570
- * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
1571
- * @param {String} namespace
1572
- * @return {Object}
1573
- */
1574
- var createNamespacedHelpers = function (namespace) {
1575
- return {
1576
- mapState: mapState.bind(null, namespace),
1577
- mapGetters: mapGetters.bind(null, namespace),
1578
- mapMutations: mapMutations.bind(null, namespace),
1579
- mapActions: mapActions.bind(null, namespace)
1580
- };
1581
- };
1582
-
1583
- /**
1584
- * Normalize the map
1585
- * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
1586
- * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
1587
- * @param {Array|Object} map
1588
- * @return {Object}
1589
- */
1590
- function normalizeMap(map) {
1591
- if (!isValidMap(map)) {
1592
- return [];
1593
- }
1594
- return Array.isArray(map) ? map.map(function (key) {
1595
- return {
1596
- key: key,
1597
- val: key
1598
- };
1599
- }) : Object.keys(map).map(function (key) {
1600
- return {
1601
- key: key,
1602
- val: map[key]
1603
- };
1604
- });
1605
- }
1606
-
1607
- /**
1608
- * Validate whether given map is valid or not
1609
- * @param {*} map
1610
- * @return {Boolean}
1611
- */
1612
- function isValidMap(map) {
1613
- return Array.isArray(map) || isObject(map);
1614
- }
1615
-
1616
- /**
1617
- * 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.
1618
- * @param {Function} fn
1619
- * @return {Function}
1620
- */
1621
- function normalizeNamespace(fn) {
1622
- return function (namespace, map) {
1623
- if (typeof namespace !== 'string') {
1624
- map = namespace;
1625
- namespace = '';
1626
- } else if (namespace.charAt(namespace.length - 1) !== '/') {
1627
- namespace += '/';
1628
- }
1629
- return fn(namespace, map);
1630
- };
1631
- }
1632
-
1633
- /**
1634
- * Search a special module from store by namespace. if module not exist, print error message.
1635
- * @param {Object} store
1636
- * @param {String} helper
1637
- * @param {String} namespace
1638
- * @return {Object}
1639
- */
1640
- function getModuleByNamespace(store, helper, namespace) {
1641
- var module = store._modulesNamespaceMap[namespace];
1642
- if (false) {}
1643
- return module;
1644
- }
1645
-
1646
- // Credits: borrowed code from fcomb/redux-logger
1647
-
1648
- function createLogger(ref) {
1649
- if (ref === void 0) ref = {};
1650
- var collapsed = ref.collapsed;
1651
- if (collapsed === void 0) collapsed = true;
1652
- var filter = ref.filter;
1653
- if (filter === void 0) filter = function (mutation, stateBefore, stateAfter) {
1654
- return true;
1655
- };
1656
- var transformer = ref.transformer;
1657
- if (transformer === void 0) transformer = function (state) {
1658
- return state;
1659
- };
1660
- var mutationTransformer = ref.mutationTransformer;
1661
- if (mutationTransformer === void 0) mutationTransformer = function (mut) {
1662
- return mut;
1663
- };
1664
- var actionFilter = ref.actionFilter;
1665
- if (actionFilter === void 0) actionFilter = function (action, state) {
1666
- return true;
1667
- };
1668
- var actionTransformer = ref.actionTransformer;
1669
- if (actionTransformer === void 0) actionTransformer = function (act) {
1670
- return act;
1671
- };
1672
- var logMutations = ref.logMutations;
1673
- if (logMutations === void 0) logMutations = true;
1674
- var logActions = ref.logActions;
1675
- if (logActions === void 0) logActions = true;
1676
- var logger = ref.logger;
1677
- if (logger === void 0) logger = console;
1678
- return function (store) {
1679
- var prevState = deepCopy(store.state);
1680
- if (typeof logger === 'undefined') {
1681
- return;
1682
- }
1683
- if (logMutations) {
1684
- store.subscribe(function (mutation, state) {
1685
- var nextState = deepCopy(state);
1686
- if (filter(mutation, prevState, nextState)) {
1687
- var formattedTime = getFormattedTime();
1688
- var formattedMutation = mutationTransformer(mutation);
1689
- var message = "mutation " + mutation.type + formattedTime;
1690
- startMessage(logger, message, collapsed);
1691
- logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
1692
- logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
1693
- logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
1694
- endMessage(logger);
1695
- }
1696
- prevState = nextState;
1697
- });
1698
- }
1699
- if (logActions) {
1700
- store.subscribeAction(function (action, state) {
1701
- if (actionFilter(action, state)) {
1702
- var formattedTime = getFormattedTime();
1703
- var formattedAction = actionTransformer(action);
1704
- var message = "action " + action.type + formattedTime;
1705
- startMessage(logger, message, collapsed);
1706
- logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
1707
- endMessage(logger);
1708
- }
1709
- });
1710
- }
1711
- };
1712
- }
1713
- function startMessage(logger, message, collapsed) {
1714
- var startMessage = collapsed ? logger.groupCollapsed : logger.group;
1715
-
1716
- // render
1717
- try {
1718
- startMessage.call(logger, message);
1719
- } catch (e) {
1720
- logger.log(message);
1721
- }
1722
- }
1723
- function endMessage(logger) {
1724
- try {
1725
- logger.groupEnd();
1726
- } catch (e) {
1727
- logger.log('—— log end ——');
1728
- }
1729
- }
1730
- function getFormattedTime() {
1731
- var time = new Date();
1732
- return " @ " + pad(time.getHours(), 2) + ":" + pad(time.getMinutes(), 2) + ":" + pad(time.getSeconds(), 2) + "." + pad(time.getMilliseconds(), 3);
1733
- }
1734
- function repeat(str, times) {
1735
- return new Array(times + 1).join(str);
1736
- }
1737
- function pad(num, maxLength) {
1738
- return repeat('0', maxLength - num.toString().length) + num;
1739
- }
1740
- var index = {
1741
- Store: Store,
1742
- install: install,
1743
- version: '3.6.2',
1744
- mapState: mapState,
1745
- mapMutations: mapMutations,
1746
- mapGetters: mapGetters,
1747
- mapActions: mapActions,
1748
- createNamespacedHelpers: createNamespacedHelpers,
1749
- createLogger: createLogger
626
+ staticClass: "nb-header__right"
627
+ }, [_vm._t("right")], 2), _vm.logout ? _c('div', {
628
+ staticClass: "nb-header__logout",
629
+ on: {
630
+ "click": function ($event) {
631
+ $event.stopPropagation();
632
+ return _vm.handleLogout.apply(null, arguments);
633
+ }
634
+ }
635
+ }, [_c('NBIcon', {
636
+ attrs: {
637
+ "icon": "logout"
638
+ }
639
+ }), _c('span', {
640
+ staticClass: "nb-header__logout__text"
641
+ }, [_vm._v(_vm._s(_vm.logoutText)), _vm.logoutTime > -1 ? [_vm._v("(" + _vm._s(_vm.logoutTime) + "S)")] : _vm._e()], 2)], 1) : _vm._e()]);
1750
642
  };
1751
- /* harmony default export */ var vuex_esm = ((/* unused pure expression or super */ null && (index)));
643
+ var staticRenderFns = [];
1752
644
 
645
+ // EXTERNAL MODULE: ./packages/components/NBIcon/index.js + 5 modules
646
+ var NBIcon = __webpack_require__(5963);
1753
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
1754
648
 
1755
649
  /* harmony default export */ var NBHeadervue_type_script_lang_js = ({
1756
650
  name: 'NBHeader',
651
+ components: {
652
+ NBIcon: NBIcon["default"]
653
+ },
1757
654
  props: {
1758
655
  // 是否显示返回
1759
656
  back: {
@@ -1818,13 +715,7 @@ var index = {
1818
715
  data() {
1819
716
  return {};
1820
717
  },
1821
- computed: {
1822
- ...mapGetters([])
1823
- },
1824
- watch: {},
1825
- created() {},
1826
- mounted() {},
1827
- beforeDestroy() {},
718
+ computed: {},
1828
719
  methods: {
1829
720
  // 返回
1830
721
  handleBack() {
@@ -1875,7 +766,7 @@ var component = (0,componentNormalizer/* default */.A)(
1875
766
  staticRenderFns,
1876
767
  false,
1877
768
  null,
1878
- "2ba0f541",
769
+ "40023fcc",
1879
770
  null
1880
771
 
1881
772
  )
@@ -1898,6 +789,85 @@ NBHeader.install = function (Vue) {
1898
789
 
1899
790
  /***/ }),
1900
791
 
792
+ /***/ 5963:
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=1d7955de&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
+ // iconfont图标
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=1d7955de&prod&lang=scss&scoped=true
828
+ var srcvue_type_style_index_0_id_1d7955de_prod_lang_scss_scoped_true = __webpack_require__(9722);
829
+ ;// ./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=1d7955de&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
+ "1d7955de",
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
+
1901
871
  /***/ 7791:
1902
872
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1903
873
 
@@ -2121,6 +1091,22 @@ var update = add("5a1800c6", content, true, {"sourceMap":false,"shadowMode":fals
2121
1091
 
2122
1092
  /***/ }),
2123
1093
 
1094
+ /***/ 9722:
1095
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1096
+
1097
+ // style-loader: Adds some css to the DOM by adding a <style> tag
1098
+
1099
+ // load the styles
1100
+ var content = __webpack_require__(5772);
1101
+ if(content.__esModule) content = content.default;
1102
+ if(typeof content === 'string') content = [[module.id, content, '']];
1103
+ if(content.locals) module.exports = content.locals;
1104
+ // add the styles to the DOM
1105
+ var add = (__webpack_require__(8459)/* ["default"] */ .A)
1106
+ var update = add("1485bda7", content, true, {"sourceMap":false,"shadowMode":false});
1107
+
1108
+ /***/ }),
1109
+
2124
1110
  /***/ 2897:
2125
1111
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2126
1112
 
@@ -2414,7 +1400,8 @@ function applyToTag (styleElement, obj) {
2414
1400
  var map = {
2415
1401
  "./NBBottomActionBar/index.js": 1893,
2416
1402
  "./NBEmpty/index.js": 1196,
2417
- "./NBHeader/index.js": 2858,
1403
+ "./NBHeader/index.js": 7764,
1404
+ "./NBIcon/index.js": 5963,
2418
1405
  "./NBPagination/index.js": 7791,
2419
1406
  "./NBTag/index.js": 3705
2420
1407
  };
@@ -2651,26 +1638,6 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2651
1638
  };
2652
1639
 
2653
1640
 
2654
- /***/ }),
2655
-
2656
- /***/ 6319:
2657
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2658
-
2659
- "use strict";
2660
-
2661
- var anObject = __webpack_require__(8551);
2662
- var iteratorClose = __webpack_require__(9539);
2663
-
2664
- // call something on iterator step with safe closing on error
2665
- module.exports = function (iterator, fn, value, ENTRIES) {
2666
- try {
2667
- return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
2668
- } catch (error) {
2669
- iteratorClose(iterator, 'throw', error);
2670
- }
2671
- };
2672
-
2673
-
2674
1641
  /***/ }),
2675
1642
 
2676
1643
  /***/ 2195:
@@ -2768,20 +1735,6 @@ module.exports = !fails(function () {
2768
1735
  });
2769
1736
 
2770
1737
 
2771
- /***/ }),
2772
-
2773
- /***/ 2529:
2774
- /***/ (function(module) {
2775
-
2776
- "use strict";
2777
-
2778
- // `CreateIterResultObject` abstract operation
2779
- // https://tc39.es/ecma262/#sec-createiterresultobject
2780
- module.exports = function (value, done) {
2781
- return { value: value, done: done };
2782
- };
2783
-
2784
-
2785
1738
  /***/ }),
2786
1739
 
2787
1740
  /***/ 6699:
@@ -2888,21 +1841,6 @@ module.exports = function (O, key, value, options) {
2888
1841
  };
2889
1842
 
2890
1843
 
2891
- /***/ }),
2892
-
2893
- /***/ 6279:
2894
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2895
-
2896
- "use strict";
2897
-
2898
- var defineBuiltIn = __webpack_require__(6840);
2899
-
2900
- module.exports = function (target, src, options) {
2901
- for (var key in src) defineBuiltIn(target, key, src[key], options);
2902
- return target;
2903
- };
2904
-
2905
-
2906
1844
  /***/ }),
2907
1845
 
2908
1846
  /***/ 9433:
@@ -3810,122 +2748,6 @@ module.exports = function (iterator, kind, value) {
3810
2748
  };
3811
2749
 
3812
2750
 
3813
- /***/ }),
3814
-
3815
- /***/ 9462:
3816
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3817
-
3818
- "use strict";
3819
-
3820
- var call = __webpack_require__(9565);
3821
- var create = __webpack_require__(2360);
3822
- var createNonEnumerableProperty = __webpack_require__(6699);
3823
- var defineBuiltIns = __webpack_require__(6279);
3824
- var wellKnownSymbol = __webpack_require__(8227);
3825
- var InternalStateModule = __webpack_require__(1181);
3826
- var getMethod = __webpack_require__(5966);
3827
- var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
3828
- var createIterResultObject = __webpack_require__(2529);
3829
- var iteratorClose = __webpack_require__(9539);
3830
-
3831
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3832
- var ITERATOR_HELPER = 'IteratorHelper';
3833
- var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
3834
- var setInternalState = InternalStateModule.set;
3835
-
3836
- var createIteratorProxyPrototype = function (IS_ITERATOR) {
3837
- var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
3838
-
3839
- return defineBuiltIns(create(IteratorPrototype), {
3840
- next: function next() {
3841
- var state = getInternalState(this);
3842
- // for simplification:
3843
- // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
3844
- // for `%IteratorHelperPrototype%.next` - just a value
3845
- if (IS_ITERATOR) return state.nextHandler();
3846
- try {
3847
- var result = state.done ? undefined : state.nextHandler();
3848
- return createIterResultObject(result, state.done);
3849
- } catch (error) {
3850
- state.done = true;
3851
- throw error;
3852
- }
3853
- },
3854
- 'return': function () {
3855
- var state = getInternalState(this);
3856
- var iterator = state.iterator;
3857
- state.done = true;
3858
- if (IS_ITERATOR) {
3859
- var returnMethod = getMethod(iterator, 'return');
3860
- return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
3861
- }
3862
- if (state.inner) try {
3863
- iteratorClose(state.inner.iterator, 'normal');
3864
- } catch (error) {
3865
- return iteratorClose(iterator, 'throw', error);
3866
- }
3867
- if (iterator) iteratorClose(iterator, 'normal');
3868
- return createIterResultObject(undefined, true);
3869
- }
3870
- });
3871
- };
3872
-
3873
- var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
3874
- var IteratorHelperPrototype = createIteratorProxyPrototype(false);
3875
-
3876
- createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
3877
-
3878
- module.exports = function (nextHandler, IS_ITERATOR) {
3879
- var IteratorProxy = function Iterator(record, state) {
3880
- if (state) {
3881
- state.iterator = record.iterator;
3882
- state.next = record.next;
3883
- } else state = record;
3884
- state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
3885
- state.nextHandler = nextHandler;
3886
- state.counter = 0;
3887
- state.done = false;
3888
- setInternalState(this, state);
3889
- };
3890
-
3891
- IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
3892
-
3893
- return IteratorProxy;
3894
- };
3895
-
3896
-
3897
- /***/ }),
3898
-
3899
- /***/ 713:
3900
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3901
-
3902
- "use strict";
3903
-
3904
- var call = __webpack_require__(9565);
3905
- var aCallable = __webpack_require__(9306);
3906
- var anObject = __webpack_require__(8551);
3907
- var getIteratorDirect = __webpack_require__(1767);
3908
- var createIteratorProxy = __webpack_require__(9462);
3909
- var callWithSafeIterationClosing = __webpack_require__(6319);
3910
-
3911
- var IteratorProxy = createIteratorProxy(function () {
3912
- var iterator = this.iterator;
3913
- var result = anObject(call(this.next, iterator));
3914
- var done = this.done = !!result.done;
3915
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
3916
- });
3917
-
3918
- // `Iterator.prototype.map` method
3919
- // https://github.com/tc39/proposal-iterator-helpers
3920
- module.exports = function map(mapper) {
3921
- anObject(this);
3922
- aCallable(mapper);
3923
- return new IteratorProxy(getIteratorDirect(this), {
3924
- mapper: mapper
3925
- });
3926
- };
3927
-
3928
-
3929
2751
  /***/ }),
3930
2752
 
3931
2753
  /***/ 7657:
@@ -4983,49 +3805,6 @@ $({ global: true, constructor: true, forced: FORCED }, {
4983
3805
  });
4984
3806
 
4985
3807
 
4986
- /***/ }),
4987
-
4988
- /***/ 2489:
4989
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4990
-
4991
- "use strict";
4992
-
4993
- var $ = __webpack_require__(6518);
4994
- var call = __webpack_require__(9565);
4995
- var aCallable = __webpack_require__(9306);
4996
- var anObject = __webpack_require__(8551);
4997
- var getIteratorDirect = __webpack_require__(1767);
4998
- var createIteratorProxy = __webpack_require__(9462);
4999
- var callWithSafeIterationClosing = __webpack_require__(6319);
5000
- var IS_PURE = __webpack_require__(6395);
5001
-
5002
- var IteratorProxy = createIteratorProxy(function () {
5003
- var iterator = this.iterator;
5004
- var predicate = this.predicate;
5005
- var next = this.next;
5006
- var result, done, value;
5007
- while (true) {
5008
- result = anObject(call(next, iterator));
5009
- done = this.done = !!result.done;
5010
- if (done) return;
5011
- value = result.value;
5012
- if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
5013
- }
5014
- });
5015
-
5016
- // `Iterator.prototype.filter` method
5017
- // https://tc39.es/ecma262/#sec-iterator.prototype.filter
5018
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
5019
- filter: function filter(predicate) {
5020
- anObject(this);
5021
- aCallable(predicate);
5022
- return new IteratorProxy(getIteratorDirect(this), {
5023
- predicate: predicate
5024
- });
5025
- }
5026
- });
5027
-
5028
-
5029
3808
  /***/ }),
5030
3809
 
5031
3810
  /***/ 7588:
@@ -5054,64 +3833,6 @@ $({ target: 'Iterator', proto: true, real: true }, {
5054
3833
  });
5055
3834
 
5056
3835
 
5057
- /***/ }),
5058
-
5059
- /***/ 1701:
5060
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5061
-
5062
- "use strict";
5063
-
5064
- var $ = __webpack_require__(6518);
5065
- var map = __webpack_require__(713);
5066
- var IS_PURE = __webpack_require__(6395);
5067
-
5068
- // `Iterator.prototype.map` method
5069
- // https://tc39.es/ecma262/#sec-iterator.prototype.map
5070
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
5071
- map: map
5072
- });
5073
-
5074
-
5075
- /***/ }),
5076
-
5077
- /***/ 8237:
5078
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5079
-
5080
- "use strict";
5081
-
5082
- var $ = __webpack_require__(6518);
5083
- var iterate = __webpack_require__(2652);
5084
- var aCallable = __webpack_require__(9306);
5085
- var anObject = __webpack_require__(8551);
5086
- var getIteratorDirect = __webpack_require__(1767);
5087
-
5088
- var $TypeError = TypeError;
5089
-
5090
- // `Iterator.prototype.reduce` method
5091
- // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
5092
- $({ target: 'Iterator', proto: true, real: true }, {
5093
- reduce: function reduce(reducer /* , initialValue */) {
5094
- anObject(this);
5095
- aCallable(reducer);
5096
- var record = getIteratorDirect(this);
5097
- var noInitial = arguments.length < 2;
5098
- var accumulator = noInitial ? undefined : arguments[1];
5099
- var counter = 0;
5100
- iterate(record, function (value) {
5101
- if (noInitial) {
5102
- noInitial = false;
5103
- accumulator = value;
5104
- } else {
5105
- accumulator = reducer(accumulator, value, counter);
5106
- }
5107
- counter++;
5108
- }, { IS_RECORD: true });
5109
- if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');
5110
- return accumulator;
5111
- }
5112
- });
5113
-
5114
-
5115
3836
  /***/ }),
5116
3837
 
5117
3838
  /***/ 8992:
@@ -5123,17 +3844,6 @@ $({ target: 'Iterator', proto: true, real: true }, {
5123
3844
  __webpack_require__(8111);
5124
3845
 
5125
3846
 
5126
- /***/ }),
5127
-
5128
- /***/ 4520:
5129
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5130
-
5131
- "use strict";
5132
-
5133
- // TODO: Remove from `core-js@4`
5134
- __webpack_require__(2489);
5135
-
5136
-
5137
3847
  /***/ }),
5138
3848
 
5139
3849
  /***/ 3949:
@@ -5145,28 +3855,6 @@ __webpack_require__(2489);
5145
3855
  __webpack_require__(7588);
5146
3856
 
5147
3857
 
5148
- /***/ }),
5149
-
5150
- /***/ 1454:
5151
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5152
-
5153
- "use strict";
5154
-
5155
- // TODO: Remove from `core-js@4`
5156
- __webpack_require__(1701);
5157
-
5158
-
5159
- /***/ }),
5160
-
5161
- /***/ 8872:
5162
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5163
-
5164
- "use strict";
5165
-
5166
- // TODO: Remove from `core-js@4`
5167
- __webpack_require__(8237);
5168
-
5169
-
5170
3858
  /***/ })
5171
3859
 
5172
3860
  /******/ });
@@ -5456,19 +4144,13 @@ const i18n = function (fn) {
5456
4144
  * @FilePath: \nubomed-ui\packages\index.js
5457
4145
  */
5458
4146
 
5459
- // import SvgIcon from './components/SvgIcon'
5460
- // import NBTag from './components/NBTag/index.js'
5461
- // import NBEmpty from './components/NBEmpty/index.js'
5462
- // import NBPagination from './components/NBPagination/index.js'
5463
- // import NBBottomActionBar from './components/NBBottomActionBar/index.js'
5464
-
5465
- // const components = [SvgIcon, NBTag, NBEmpty, NBPagination, NBBottomActionBar]
4147
+ // 使用iconfont图标
5466
4148
 
5467
4149
 
4150
+ // 获取所有组件
5468
4151
  const components = [];
5469
4152
  const req = __webpack_require__(2162);
5470
4153
  req.keys().forEach(v => {
5471
- console.log(req(v).default);
5472
4154
  components.push(req(v).default);
5473
4155
  });
5474
4156