@fangzhongya/vue-archive 0.0.63 → 0.0.65

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.
@@ -1132,7 +1132,8 @@ function getUrlName(url, config2, urls, key, tdir) {
1132
1132
  if (is) {
1133
1133
  const getUrl = config2.getMatchs;
1134
1134
  if (getUrl) {
1135
- const v = getUrl(urls, "", "", config2);
1135
+ const name = getUrlsMatchi(key, config2.matchexts);
1136
+ const v = getUrl(urls, name, "component", config2);
1136
1137
  return getComponentsObj(v, config2, tdir);
1137
1138
  } else {
1138
1139
  const ms = config2.matchextss;
@@ -1222,7 +1223,6 @@ function getComponentsArr(urls, v, comRaw, com) {
1222
1223
  props2.push(value);
1223
1224
  } else {
1224
1225
  let value = getUrlName(k, v, urls, key, tdir);
1225
- console.log("value", value);
1226
1226
  if (value) {
1227
1227
  value.component = com[value.key];
1228
1228
  value.getRaw = getRawValue(comRaw, value.key);
@@ -1117,7 +1117,8 @@ function getUrlName(url, config2, urls, key, tdir) {
1117
1117
  if (is) {
1118
1118
  const getUrl = config2.getMatchs;
1119
1119
  if (getUrl) {
1120
- const v = getUrl(urls, "", "", config2);
1120
+ const name = getUrlsMatchi(key, config2.matchexts);
1121
+ const v = getUrl(urls, name, "component", config2);
1121
1122
  return getComponentsObj(v, config2, tdir);
1122
1123
  } else {
1123
1124
  const ms = config2.matchextss;
@@ -1207,7 +1208,6 @@ function getComponentsArr(urls, v, comRaw, com) {
1207
1208
  props2.push(value);
1208
1209
  } else {
1209
1210
  let value = getUrlName(k, v, urls, key, tdir);
1210
- console.log("value", value);
1211
1211
  if (value) {
1212
1212
  value.component = com[value.key];
1213
1213
  value.getRaw = getRawValue(comRaw, value.key);
@@ -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);console.log("value",i),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;
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 h=require("@fangzhongya/utils/judge/matchsStart"),x=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=h.matchsStart(t,e);return s&&r&&r.length>0?!h.matchsStart(t,r):s}function O(t,e,r){const s=x.matchsEnd(t,e);return s&&r&&r.length>0?!x.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 p(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 f(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=p(t,[n]):l=p(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=p(s,e.matchexts),o=l(r,n,"component",e);return f(o,e,a)}else{const n=e.matchextss;if(n){if(typeof n=="string"){if(t.endsWith(n))return f(s,e,a)}else if(n.test(t))return f(s,e,a)}else return f(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 o=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let M=n.indexOf(o),m=e.dir.substring(0,e.dir.indexOf(o))+n.substring(M);const b=new RegExp("^"+e.dir);let c=m.replace(b,"");if(e.comprops&&w("/"+c,e.comprops)||e.curprops&&E("/"+c,e.curprops)){let i={};i.url=m,i.comprops=e.comprops,i.curprops=e.curprops,i.value=c,i.dir=e.dir,i.cwd=e.cwd,i.suffix=q.getSuffix(n),i.tdir=l,i.key=n,i.raw="",i.getRaw=d(r,n),a.push(i)}else{let i=S(c,e,t,n,l);i&&(i.component=s[i.key],i.getRaw=d(r,i.key),u.push(i))}}),{props:a,components:u}}function d(t,e){return typeof t=="function"?t:t?t[e]:null}exports.defaultExtensions=N;exports.getAsideKey=L;exports.getComponentsArr=V;exports.getRawValue=d;exports.getUrlName=S;exports.isComprops=w;exports.isCurprops=E;exports.setAsideKey=K;
@@ -10,21 +10,21 @@ import "@fangzhongya/utils/basic/array/asyncMergeArray";
10
10
  import "@fangzhongya/utils/basic/string/firstUpper";
11
11
  import { getSuffix as g } from "@fangzhongya/utils/urls/getSuffix";
12
12
  import "@fangzhongya/utils/basic/array/replaceAfter";
13
- import { matchsStart as m } from "@fangzhongya/utils/judge/matchsStart";
14
- import { matchsEnd as d } from "@fangzhongya/utils/judge/matchsEnd";
13
+ import { matchsStart as d } from "@fangzhongya/utils/judge/matchsStart";
14
+ import { matchsEnd as h } from "@fangzhongya/utils/judge/matchsEnd";
15
15
  const Q = ["vue", "js", "ts"];
16
16
  function S(t) {
17
17
  let e = N(t.name), r = [];
18
18
  return t.alias && r.push(t.alias + "-" + e), r;
19
19
  }
20
20
  function b(t, e, r) {
21
- const s = m(t, e);
22
- return s && r && r.length > 0 ? !m(t, r) : s;
23
- }
24
- function O(t, e, r) {
25
21
  const s = d(t, e);
26
22
  return s && r && r.length > 0 ? !d(t, r) : s;
27
23
  }
24
+ function O(t, e, r) {
25
+ const s = h(t, e);
26
+ return s && r && r.length > 0 ? !h(t, r) : s;
27
+ }
28
28
  function z(t, e) {
29
29
  e.lastIndex = 0;
30
30
  const r = e.exec(t);
@@ -36,15 +36,15 @@ function A(t) {
36
36
  const e = (r) => r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
37
37
  return new RegExp(`${e(t)}$`);
38
38
  }
39
- function h(t, e) {
39
+ function c(t, e) {
40
40
  if (e && e.length > 0)
41
41
  for (const r of e)
42
42
  if (typeof r == "string") {
43
43
  if (t.endsWith(r)) {
44
44
  const s = t.replace(A(r), "");
45
45
  if (s) {
46
- const l = new RegExp("^.*/([^/]+)$");
47
- let u = s.match(l);
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 l = new RegExp("^.*/([^/]+)$");
56
- let u = s.match(l);
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 l = t.indexOf(s), u = e.dir.substring(0, e.dir.indexOf(s)) + t.substring(l), a = "";
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
- a = e.getNameValue(t, e);
67
+ l = e.getNameValue(t, e);
68
68
  else {
69
69
  const n = e.matchextss;
70
- n ? a = h(t, [n]) : a = h(t, e.matchexts);
70
+ n ? l = c(t, [n]) : l = c(t, e.matchexts);
71
71
  }
72
- if (a) {
72
+ if (l) {
73
73
  let n = {
74
74
  suffix: g(t),
75
- name: R(a),
76
- value: a,
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, l) {
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 a = e.getMatchs;
100
- if (a) {
101
- const n = a(r, "", "", e);
102
- return f(n, e, l);
99
+ const l = e.getMatchs;
100
+ if (l) {
101
+ const n = c(s, e.matchexts), o = l(r, n, "component", e);
102
+ return f(o, 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, l);
108
+ return f(s, e, a);
109
109
  } else if (n.test(t))
110
- return f(s, e, l);
110
+ return f(s, e, a);
111
111
  } else
112
- return f(s, e, l);
112
+ return f(s, e, a);
113
113
  }
114
114
  }
115
115
  }
@@ -149,21 +149,21 @@ function U(t, e) {
149
149
  return !1;
150
150
  }
151
151
  function Z(t, e, r, s) {
152
- const l = [], u = [], a = D(e.dir);
152
+ const a = [], u = [], l = D(e.dir);
153
153
  return t.forEach((n) => {
154
- const p = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
155
- let w = n.indexOf(p), c = e.dir.substring(0, e.dir.indexOf(p)) + n.substring(w);
154
+ const o = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
155
+ let w = n.indexOf(o), m = e.dir.substring(0, e.dir.indexOf(o)) + n.substring(w);
156
156
  const E = new RegExp("^" + e.dir);
157
- let o = c.replace(E, "");
158
- if (e.comprops && T("/" + o, e.comprops) || e.curprops && U("/" + o, e.curprops)) {
157
+ let p = m.replace(E, "");
158
+ if (e.comprops && T("/" + p, e.comprops) || e.curprops && U("/" + p, 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 = a, i.key = n, i.raw = "", i.getRaw = x(r, n), l.push(i);
160
+ i.url = m, i.comprops = e.comprops, i.curprops = e.curprops, i.value = p, 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, a);
163
- console.log("value", i), i && (i.component = s[i.key], i.getRaw = x(r, i.key), u.push(i));
162
+ let i = C(p, 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: l,
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.63",
4
+ "version": "0.0.65",
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.15",
23
+ "@fangzhongya/vue-components": "0.1.17",
24
24
  "@highlightjs/vue-plugin": "^2.1.0",
25
25
  "@types/node": "^24.3.0",
26
26
  "@vitejs/plugin-vue": "^6.0.1",