@fangzhongya/vue-archive 0.0.62 → 0.0.64
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/dist/node/index.cjs +0 -1
- package/dist/node/index.js +0 -1
- package/dist/packages/components/use/code.d.ts +25 -17
- package/dist/packages/components/use/retrie/array/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/boolean/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/choice/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/function/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/number/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/object/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/other/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/select/index.d.ts +2 -2
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.js +23 -23
- package/package.json +2 -2
package/dist/node/index.cjs
CHANGED
|
@@ -1222,7 +1222,6 @@ function getComponentsArr(urls, v, comRaw, com) {
|
|
|
1222
1222
|
props2.push(value);
|
|
1223
1223
|
} else {
|
|
1224
1224
|
let value = getUrlName(k, v, urls, key, tdir);
|
|
1225
|
-
console.log("value", value);
|
|
1226
1225
|
if (value) {
|
|
1227
1226
|
value.component = com[value.key];
|
|
1228
1227
|
value.getRaw = getRawValue(comRaw, value.key);
|
package/dist/node/index.js
CHANGED
|
@@ -1207,7 +1207,6 @@ function getComponentsArr(urls, v, comRaw, com) {
|
|
|
1207
1207
|
props2.push(value);
|
|
1208
1208
|
} else {
|
|
1209
1209
|
let value = getUrlName(k, v, urls, key, tdir);
|
|
1210
|
-
console.log("value", value);
|
|
1211
1210
|
if (value) {
|
|
1212
1211
|
value.component = com[value.key];
|
|
1213
1212
|
value.getRaw = getRawValue(comRaw, value.key);
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
name: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
html: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default(): string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
refresh: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
html: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default(): string;
|
|
19
|
+
};
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
html: string;
|
|
24
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
+
export default _default;
|
|
@@ -4,14 +4,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: null;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
-
value: (...args: any[]) => void;
|
|
8
7
|
error: (...args: any[]) => void;
|
|
8
|
+
value: (...args: any[]) => void;
|
|
9
9
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: null;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
15
14
|
onError?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -12,8 +12,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
12
12
|
default(): {};
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
-
value: (...args: any[]) => void;
|
|
16
15
|
error: (...args: any[]) => void;
|
|
16
|
+
value: (...args: any[]) => void;
|
|
17
17
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
18
18
|
modelValue: {
|
|
19
19
|
type: null;
|
|
@@ -27,8 +27,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
27
27
|
default(): {};
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{
|
|
30
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
31
30
|
onError?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
config: Record<string, any>;
|
|
34
34
|
disabled: boolean;
|
|
@@ -18,8 +18,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
|
-
value: (...args: any[]) => void;
|
|
22
21
|
change: (...args: any[]) => void;
|
|
22
|
+
value: (...args: any[]) => void;
|
|
23
23
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
24
24
|
modelValue: {
|
|
25
25
|
type: null;
|
|
@@ -39,8 +39,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}>> & Readonly<{
|
|
42
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
43
42
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
config: Record<string, any>;
|
|
46
46
|
disabled: boolean;
|
|
@@ -14,8 +14,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
-
value: (...args: any[]) => void;
|
|
18
17
|
error: (...args: any[]) => void;
|
|
18
|
+
value: (...args: any[]) => void;
|
|
19
19
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: null;
|
|
@@ -31,8 +31,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}>> & Readonly<{
|
|
34
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
35
34
|
onError?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
config: Record<string, any>;
|
|
38
38
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -4,14 +4,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: null;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
-
value: (...args: any[]) => void;
|
|
8
7
|
error: (...args: any[]) => void;
|
|
8
|
+
value: (...args: any[]) => void;
|
|
9
9
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: null;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
15
14
|
onError?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -4,14 +4,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: null;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
-
value: (...args: any[]) => void;
|
|
8
7
|
error: (...args: any[]) => void;
|
|
8
|
+
value: (...args: any[]) => void;
|
|
9
9
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: null;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
15
14
|
onError?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -33,8 +33,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
-
value: (...args: any[]) => void;
|
|
37
36
|
error: (...args: any[]) => void;
|
|
37
|
+
value: (...args: any[]) => void;
|
|
38
38
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
39
39
|
modelValue: {
|
|
40
40
|
type: null;
|
|
@@ -69,8 +69,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
}>> & Readonly<{
|
|
72
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
73
72
|
onError?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
75
|
config: Record<string, any>;
|
|
76
76
|
disabled: boolean;
|
|
@@ -19,8 +19,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
|
-
value: (...args: any[]) => void;
|
|
23
22
|
change: (...args: any[]) => void;
|
|
23
|
+
value: (...args: any[]) => void;
|
|
24
24
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
25
|
modelValue: {
|
|
26
26
|
type: null;
|
|
@@ -41,8 +41,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
}>> & Readonly<{
|
|
44
|
-
onValue?: ((...args: any[]) => any) | undefined;
|
|
45
44
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
onValue?: ((...args: any[]) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
config: Record<string, any>;
|
|
48
48
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./storage.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const A=require("@fangzhongya/utils/name/humpToLine"),C=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const q=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const m=require("@fangzhongya/utils/judge/matchsStart"),h=require("@fangzhongya/utils/judge/matchsEnd"),N=["vue","js","ts"];function R(t){let e=A.humpToLine(t.name),r=[];return t.alias&&r.push(t.alias+"-"+e),r}function $(t,e,r){const s=m.matchsStart(t,e);return s&&r&&r.length>0?!m.matchsStart(t,r):s}function O(t,e,r){const s=h.matchsEnd(t,e);return s&&r&&r.length>0?!h.matchsEnd(t,r):s}function T(t,e){e.lastIndex=0;const r=e.exec(t);if(!r)return"";const s=r.index;return t.substring(0,s)}function z(t){const e=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`${e(t)}$`)}function x(t,e){if(e&&e.length>0)for(const r of e)if(typeof r=="string"){if(t.endsWith(r)){const s=t.replace(z(r),"");if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}}else{const s=T(t,r);if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}return""}function c(t,e,r){const s=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let a=t.indexOf(s),u=e.dir.substring(0,e.dir.indexOf(s))+t.substring(a),l="";if(e.getNameValue)l=e.getNameValue(t,e);else{const n=e.matchextss;n?l=x(t,[n]):l=x(t,e.matchexts)}if(l){let n={suffix:q.getSuffix(t),name:C.lineToLargeHump(l),value:l,adir:"",alias:e.alias,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0,url:u,comprops:e.comprops,curprops:e.curprops,dir:e.dir,cwd:e.cwd,tdir:r,key:t};return n.aliasNames=R(n),n}}function S(t,e,r,s,a){if($(t,e.matchs,e.nomatchs)){let u=!1;if(e.isMatch?u=e.isMatch(t,"",[],e):u=O(t,e.matchexts,e.nomatchexts),u){const l=e.getMatchs;if(l){const n=l(r,"","",e);return c(n,e,a)}else{const n=e.matchextss;if(n){if(typeof n=="string"){if(t.endsWith(n))return c(s,e,a)}else if(n.test(t))return c(s,e,a)}else return c(s,e,a)}}}}function K(t){g.setSession("aside.key",t)}function L(){return g.getSession("aside.key")}function U(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function w(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.includes(s))return!0}else if(s.test(t))return!0}return!1}function E(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.endsWith(s))return!0}else if(s.test(t))return!0}return!1}function V(t,e,r,s){const a=[],u=[],l=U(e.dir);return t.forEach(n=>{const p=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let M=n.indexOf(p),d=e.dir.substring(0,e.dir.indexOf(p))+n.substring(M);const b=new RegExp("^"+e.dir);let o=d.replace(b,"");if(e.comprops&&w("/"+o,e.comprops)||e.curprops&&E("/"+o,e.curprops)){let i={};i.url=d,i.comprops=e.comprops,i.curprops=e.curprops,i.value=o,i.dir=e.dir,i.cwd=e.cwd,i.suffix=q.getSuffix(n),i.tdir=l,i.key=n,i.raw="",i.getRaw=f(r,n),a.push(i)}else{let i=S(o,e,t,n,l);
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./storage.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const A=require("@fangzhongya/utils/name/humpToLine"),C=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const q=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const m=require("@fangzhongya/utils/judge/matchsStart"),h=require("@fangzhongya/utils/judge/matchsEnd"),N=["vue","js","ts"];function R(t){let e=A.humpToLine(t.name),r=[];return t.alias&&r.push(t.alias+"-"+e),r}function $(t,e,r){const s=m.matchsStart(t,e);return s&&r&&r.length>0?!m.matchsStart(t,r):s}function O(t,e,r){const s=h.matchsEnd(t,e);return s&&r&&r.length>0?!h.matchsEnd(t,r):s}function T(t,e){e.lastIndex=0;const r=e.exec(t);if(!r)return"";const s=r.index;return t.substring(0,s)}function z(t){const e=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`${e(t)}$`)}function x(t,e){if(e&&e.length>0)for(const r of e)if(typeof r=="string"){if(t.endsWith(r)){const s=t.replace(z(r),"");if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}}else{const s=T(t,r);if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}return""}function c(t,e,r){const s=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let a=t.indexOf(s),u=e.dir.substring(0,e.dir.indexOf(s))+t.substring(a),l="";if(e.getNameValue)l=e.getNameValue(t,e);else{const n=e.matchextss;n?l=x(t,[n]):l=x(t,e.matchexts)}if(l){let n={suffix:q.getSuffix(t),name:C.lineToLargeHump(l),value:l,adir:"",alias:e.alias,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0,url:u,comprops:e.comprops,curprops:e.curprops,dir:e.dir,cwd:e.cwd,tdir:r,key:t};return n.aliasNames=R(n),n}}function S(t,e,r,s,a){if($(t,e.matchs,e.nomatchs)){let u=!1;if(e.isMatch?u=e.isMatch(t,"",[],e):u=O(t,e.matchexts,e.nomatchexts),u){const l=e.getMatchs;if(l){const n=l(r,"","",e);return c(n,e,a)}else{const n=e.matchextss;if(n){if(typeof n=="string"){if(t.endsWith(n))return c(s,e,a)}else if(n.test(t))return c(s,e,a)}else return c(s,e,a)}}}}function K(t){g.setSession("aside.key",t)}function L(){return g.getSession("aside.key")}function U(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function w(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.includes(s))return!0}else if(s.test(t))return!0}return!1}function E(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.endsWith(s))return!0}else if(s.test(t))return!0}return!1}function V(t,e,r,s){const a=[],u=[],l=U(e.dir);return t.forEach(n=>{const p=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let M=n.indexOf(p),d=e.dir.substring(0,e.dir.indexOf(p))+n.substring(M);const b=new RegExp("^"+e.dir);let o=d.replace(b,"");if(e.comprops&&w("/"+o,e.comprops)||e.curprops&&E("/"+o,e.curprops)){let i={};i.url=d,i.comprops=e.comprops,i.curprops=e.curprops,i.value=o,i.dir=e.dir,i.cwd=e.cwd,i.suffix=q.getSuffix(n),i.tdir=l,i.key=n,i.raw="",i.getRaw=f(r,n),a.push(i)}else{let i=S(o,e,t,n,l);i&&(i.component=s[i.key],i.getRaw=f(r,i.key),u.push(i))}}),{props:a,components:u}}function f(t,e){return typeof t=="function"?t:t?t[e]:null}exports.defaultExtensions=N;exports.getAsideKey=L;exports.getComponentsArr=V;exports.getRawValue=f;exports.getUrlName=S;exports.isComprops=w;exports.isCurprops=E;exports.setAsideKey=K;
|
|
@@ -43,8 +43,8 @@ function h(t, e) {
|
|
|
43
43
|
if (t.endsWith(r)) {
|
|
44
44
|
const s = t.replace(A(r), "");
|
|
45
45
|
if (s) {
|
|
46
|
-
const
|
|
47
|
-
let u = s.match(
|
|
46
|
+
const a = new RegExp("^.*/([^/]+)$");
|
|
47
|
+
let u = s.match(a);
|
|
48
48
|
if (u)
|
|
49
49
|
return u[1];
|
|
50
50
|
}
|
|
@@ -52,8 +52,8 @@ function h(t, e) {
|
|
|
52
52
|
} else {
|
|
53
53
|
const s = z(t, r);
|
|
54
54
|
if (s) {
|
|
55
|
-
const
|
|
56
|
-
let u = s.match(
|
|
55
|
+
const a = new RegExp("^.*/([^/]+)$");
|
|
56
|
+
let u = s.match(a);
|
|
57
57
|
if (u)
|
|
58
58
|
return u[1];
|
|
59
59
|
}
|
|
@@ -62,18 +62,18 @@ function h(t, e) {
|
|
|
62
62
|
}
|
|
63
63
|
function f(t, e, r) {
|
|
64
64
|
const s = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
65
|
-
let
|
|
65
|
+
let a = t.indexOf(s), u = e.dir.substring(0, e.dir.indexOf(s)) + t.substring(a), l = "";
|
|
66
66
|
if (e.getNameValue)
|
|
67
|
-
|
|
67
|
+
l = e.getNameValue(t, e);
|
|
68
68
|
else {
|
|
69
69
|
const n = e.matchextss;
|
|
70
|
-
n ?
|
|
70
|
+
n ? l = h(t, [n]) : l = h(t, e.matchexts);
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
72
|
+
if (l) {
|
|
73
73
|
let n = {
|
|
74
74
|
suffix: g(t),
|
|
75
|
-
name: R(
|
|
76
|
-
value:
|
|
75
|
+
name: R(l),
|
|
76
|
+
value: l,
|
|
77
77
|
adir: "",
|
|
78
78
|
alias: e.alias,
|
|
79
79
|
aliasNames: [],
|
|
@@ -92,24 +92,24 @@ function f(t, e, r) {
|
|
|
92
92
|
return n.aliasNames = S(n), n;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function C(t, e, r, s,
|
|
95
|
+
function C(t, e, r, s, a) {
|
|
96
96
|
if (b(t, e.matchs, e.nomatchs)) {
|
|
97
97
|
let u = !1;
|
|
98
98
|
if (e.isMatch ? u = e.isMatch(t, "", [], e) : u = O(t, e.matchexts, e.nomatchexts), u) {
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
const n =
|
|
102
|
-
return f(n, e,
|
|
99
|
+
const l = e.getMatchs;
|
|
100
|
+
if (l) {
|
|
101
|
+
const n = l(r, "", "", e);
|
|
102
|
+
return f(n, e, a);
|
|
103
103
|
} else {
|
|
104
104
|
const n = e.matchextss;
|
|
105
105
|
if (n) {
|
|
106
106
|
if (typeof n == "string") {
|
|
107
107
|
if (t.endsWith(n))
|
|
108
|
-
return f(s, e,
|
|
108
|
+
return f(s, e, a);
|
|
109
109
|
} else if (n.test(t))
|
|
110
|
-
return f(s, e,
|
|
110
|
+
return f(s, e, a);
|
|
111
111
|
} else
|
|
112
|
-
return f(s, e,
|
|
112
|
+
return f(s, e, a);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -149,7 +149,7 @@ function U(t, e) {
|
|
|
149
149
|
return !1;
|
|
150
150
|
}
|
|
151
151
|
function Z(t, e, r, s) {
|
|
152
|
-
const
|
|
152
|
+
const a = [], u = [], l = D(e.dir);
|
|
153
153
|
return t.forEach((n) => {
|
|
154
154
|
const p = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
155
155
|
let w = n.indexOf(p), c = e.dir.substring(0, e.dir.indexOf(p)) + n.substring(w);
|
|
@@ -157,13 +157,13 @@ function Z(t, e, r, s) {
|
|
|
157
157
|
let o = c.replace(E, "");
|
|
158
158
|
if (e.comprops && T("/" + o, e.comprops) || e.curprops && U("/" + o, e.curprops)) {
|
|
159
159
|
let i = {};
|
|
160
|
-
i.url = c, i.comprops = e.comprops, i.curprops = e.curprops, i.value = o, i.dir = e.dir, i.cwd = e.cwd, i.suffix = g(n), i.tdir =
|
|
160
|
+
i.url = c, i.comprops = e.comprops, i.curprops = e.curprops, i.value = o, i.dir = e.dir, i.cwd = e.cwd, i.suffix = g(n), i.tdir = l, i.key = n, i.raw = "", i.getRaw = x(r, n), a.push(i);
|
|
161
161
|
} else {
|
|
162
|
-
let i = C(o, e, t, n,
|
|
163
|
-
|
|
162
|
+
let i = C(o, e, t, n, l);
|
|
163
|
+
i && (i.component = s[i.key], i.getRaw = x(r, i.key), u.push(i));
|
|
164
164
|
}
|
|
165
165
|
}), {
|
|
166
|
-
props:
|
|
166
|
+
props: a,
|
|
167
167
|
components: u
|
|
168
168
|
};
|
|
169
169
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/vue-archive",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.64",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "vue 组件注释生成文档",
|
|
7
7
|
"author": "fangzhongya ",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@fangzhongya/create": "0.2.34",
|
|
22
22
|
"@fangzhongya/utils": "0.0.28",
|
|
23
|
-
"@fangzhongya/vue-components": "0.1.
|
|
23
|
+
"@fangzhongya/vue-components": "0.1.16",
|
|
24
24
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
25
25
|
"@types/node": "^24.3.0",
|
|
26
26
|
"@vitejs/plugin-vue": "^6.0.1",
|