gant-core 0.1.48 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/index.js +42 -29
- package/lib/cli/index.js.map +1 -1
- package/lib/cli/template/types.d.txt +1 -0
- package/lib/index.d.ts +10 -2
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -4689,6 +4689,38 @@ function isUndefined$1(value) {
|
|
|
4689
4689
|
return value === undefined;
|
|
4690
4690
|
}
|
|
4691
4691
|
|
|
4692
|
+
/**
|
|
4693
|
+
* Creates an object composed of keys generated from the results of running
|
|
4694
|
+
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
4695
|
+
* each key is the last element responsible for generating the key. The
|
|
4696
|
+
* iteratee is invoked with one argument: (value).
|
|
4697
|
+
*
|
|
4698
|
+
* @static
|
|
4699
|
+
* @memberOf _
|
|
4700
|
+
* @since 4.0.0
|
|
4701
|
+
* @category Collection
|
|
4702
|
+
* @param {Array|Object} collection The collection to iterate over.
|
|
4703
|
+
* @param {Function} [iteratee=_.identity] The iteratee to transform keys.
|
|
4704
|
+
* @returns {Object} Returns the composed aggregate object.
|
|
4705
|
+
* @example
|
|
4706
|
+
*
|
|
4707
|
+
* var array = [
|
|
4708
|
+
* { 'dir': 'left', 'code': 97 },
|
|
4709
|
+
* { 'dir': 'right', 'code': 100 }
|
|
4710
|
+
* ];
|
|
4711
|
+
*
|
|
4712
|
+
* _.keyBy(array, function(o) {
|
|
4713
|
+
* return String.fromCharCode(o.code);
|
|
4714
|
+
* });
|
|
4715
|
+
* // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
|
|
4716
|
+
*
|
|
4717
|
+
* _.keyBy(array, 'dir');
|
|
4718
|
+
* // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
|
|
4719
|
+
*/
|
|
4720
|
+
var keyBy = createAggregator(function(result, value, key) {
|
|
4721
|
+
baseAssignValue$3(result, key, value);
|
|
4722
|
+
});
|
|
4723
|
+
|
|
4692
4724
|
/**
|
|
4693
4725
|
* Creates an object with the same keys as `object` and values generated
|
|
4694
4726
|
* by running each own enumerable string keyed property of `object` thru
|
|
@@ -5004,33 +5036,6 @@ var union = baseRest$2(function(arrays) {
|
|
|
5004
5036
|
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
|
|
5005
5037
|
});
|
|
5006
5038
|
|
|
5007
|
-
/**
|
|
5008
|
-
* This method is like `_.uniq` except that it accepts `iteratee` which is
|
|
5009
|
-
* invoked for each element in `array` to generate the criterion by which
|
|
5010
|
-
* uniqueness is computed. The order of result values is determined by the
|
|
5011
|
-
* order they occur in the array. The iteratee is invoked with one argument:
|
|
5012
|
-
* (value).
|
|
5013
|
-
*
|
|
5014
|
-
* @static
|
|
5015
|
-
* @memberOf _
|
|
5016
|
-
* @since 4.0.0
|
|
5017
|
-
* @category Array
|
|
5018
|
-
* @param {Array} array The array to inspect.
|
|
5019
|
-
* @param {Function} [iteratee=_.identity] The iteratee invoked per element.
|
|
5020
|
-
* @returns {Array} Returns the new duplicate free array.
|
|
5021
|
-
* @example
|
|
5022
|
-
*
|
|
5023
|
-
* _.uniqBy([2.1, 1.2, 2.3], Math.floor);
|
|
5024
|
-
* // => [2.1, 1.2]
|
|
5025
|
-
*
|
|
5026
|
-
* // The `_.property` iteratee shorthand.
|
|
5027
|
-
* _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
|
|
5028
|
-
* // => [{ 'x': 1 }, { 'x': 2 }]
|
|
5029
|
-
*/
|
|
5030
|
-
function uniqBy(array, iteratee) {
|
|
5031
|
-
return (array && array.length) ? baseUniq(array, baseIteratee$3(iteratee)) : [];
|
|
5032
|
-
}
|
|
5033
|
-
|
|
5034
5039
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5035
5040
|
|
|
5036
5041
|
function getDefaultExportFromCjs (x) {
|
|
@@ -6018,6 +6023,11 @@ const defaultConfig = {
|
|
|
6018
6023
|
showTime: false,
|
|
6019
6024
|
status: "none",
|
|
6020
6025
|
},
|
|
6026
|
+
SYSMGMT_CONFIG: {
|
|
6027
|
+
accountConfig: {
|
|
6028
|
+
genderCodeType: 'FW_USER_GENDER',
|
|
6029
|
+
}
|
|
6030
|
+
}
|
|
6021
6031
|
},
|
|
6022
6032
|
};
|
|
6023
6033
|
const defineConfig = (config = defaultConfig) => {
|
|
@@ -6140,7 +6150,10 @@ const generateRoutes = (rootPath, _routes, mpas) => {
|
|
|
6140
6150
|
const routesPath = path$6.resolve(rootPath, 'routes');
|
|
6141
6151
|
generateDir(routesPath);
|
|
6142
6152
|
let routes = Array.isArray(_routes) ? _routes : [_routes];
|
|
6143
|
-
|
|
6153
|
+
// 使用 _.keyBy 先按 path 创建一个映射
|
|
6154
|
+
const keyedRoutes = keyBy(routes, 'path');
|
|
6155
|
+
// 从映射中提取值,这将保留最后出现的每个 path 的对象
|
|
6156
|
+
routes = values(keyedRoutes);
|
|
6144
6157
|
const routesMaps = {};
|
|
6145
6158
|
let index = 0;
|
|
6146
6159
|
function mapRoutes(routes, parentId = 'root', mpaKey) {
|
|
@@ -66823,7 +66836,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
66823
66836
|
};
|
|
66824
66837
|
|
|
66825
66838
|
var name = "gant-core";
|
|
66826
|
-
var version = "0.1.
|
|
66839
|
+
var version = "0.1.49";
|
|
66827
66840
|
var description = "";
|
|
66828
66841
|
var main = "lib/index.js";
|
|
66829
66842
|
var bin = {
|