@fangzhongya/vue-archive 0.0.3-13 → 0.0.3-15

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.
@@ -66511,7 +66511,7 @@ ${vueFormat(v, " ")}
66511
66511
  function getFunctionBody(v, key, propsText) {
66512
66512
  const text = propsText ? propsText[key] : "";
66513
66513
  if (text) {
66514
- return "function" + text;
66514
+ return "function " + text;
66515
66515
  } else {
66516
66516
  return funstr(v.toString());
66517
66517
  }
@@ -66522,7 +66522,7 @@ function funstr(v) {
66522
66522
  let body = `{
66523
66523
  ${vueFormat(getFunBody(st.body), " ")}
66524
66524
  }`;
66525
- return `function${st.param}${body}`;
66525
+ return `function ${st.param} ${body}`;
66526
66526
  } else {
66527
66527
  return "undefined";
66528
66528
  }
@@ -66687,7 +66687,7 @@ function getDefaultValue(obj) {
66687
66687
  fb.body
66688
66688
  );
66689
66689
  }
66690
- return new Function();
66690
+ return new Function("", "{}");
66691
66691
  } else if (vo == "array") {
66692
66692
  return getObjValue(d || "[]");
66693
66693
  } else if (vo == "object") {
@@ -66511,7 +66511,7 @@ ${vueFormat(v, " ")}
66511
66511
  function getFunctionBody(v, key, propsText) {
66512
66512
  const text = propsText ? propsText[key] : "";
66513
66513
  if (text) {
66514
- return "function" + text;
66514
+ return "function " + text;
66515
66515
  } else {
66516
66516
  return funstr(v.toString());
66517
66517
  }
@@ -66522,7 +66522,7 @@ function funstr(v) {
66522
66522
  let body = `{
66523
66523
  ${vueFormat(getFunBody(st.body), " ")}
66524
66524
  }`;
66525
- return `function${st.param}${body}`;
66525
+ return `function ${st.param} ${body}`;
66526
66526
  } else {
66527
66527
  return "undefined";
66528
66528
  }
@@ -66687,7 +66687,7 @@ function getDefaultValue(obj) {
66687
66687
  fb.body
66688
66688
  );
66689
66689
  }
66690
- return new Function();
66690
+ return new Function("", "{}");
66691
66691
  } else if (vo == "array") {
66692
66692
  return getObjValue(d || "[]");
66693
66693
  } else if (vo == "object") {
@@ -13,6 +13,6 @@ ${i.join(`
13
13
  <\/script>
14
14
  `}function O(n={}){const t=[];return Object.keys(n).forEach(e=>{const r=n[e];if(r){const o=` <template #${e}="scope">
15
15
  ${h.vueFormat(r," ")}
16
- </template>`;t.push(o)}}),t&&t.length>0&&t.unshift(""),t}function J(n,t,e){const r=e?e[t]:"";return r?"function"+r:y(n.toString())}function y(n){const t=h.getFunctionFormat(h.prettierFormat(n));if(t){let e=`{
16
+ </template>`;t.push(o)}}),t&&t.length>0&&t.unshift(""),t}function J(n,t,e){const r=e?e[t]:"";return r?"function "+r:y(n.toString())}function y(n){const t=h.getFunctionFormat(h.prettierFormat(n));if(t){let e=`{
17
17
  ${h.vueFormat(h.getFunBody(t.body)," ")}
18
- }`;return`function${t.param}${e}`}else return"undefined"}function E(n){const t=n.trim();return/^\(/.test(t)?y(t):JSON.stringify(n)}function S(n,t,e){const r=e?e[t]:"";return r||(typeof n=="string"?E(n+""):JSON.stringify(n))}function T(n){let t=q(n.type),e="any";t.length==1&&(e=t[0].split("<")[0]);const r=e;let o=(n.selectable||"").trim(),i=[];return o&&e!="boolean"&&(o.split(",").forEach(l=>{if(l){let g=l.split(":");i.push({label:l,prop:g[0].trim()})}}),e=="function"?e="function":e=="array"?e="choice":e="select"),{arr:i,zdtype:r,type:e,dataType:t}}function q(n){let t=[];return(n||"").trim().toLowerCase().split(",").forEach(r=>{r=r.trim(),r&&t.push(r)}),[...new Set(t)].sort()}exports.getHmtl=F;exports.getSpecType=T;exports.setValStringify=S;
18
+ }`;return`function ${t.param} ${e}`}else return"undefined"}function E(n){const t=n.trim();return/^\(/.test(t)?y(t):JSON.stringify(n)}function S(n,t,e){const r=e?e[t]:"";return r||(typeof n=="string"?E(n+""):JSON.stringify(n))}function T(n){let t=q(n.type),e="any";t.length==1&&(e=t[0].split("<")[0]);const r=e;let o=(n.selectable||"").trim(),i=[];return o&&e!="boolean"&&(o.split(",").forEach(l=>{if(l){let g=l.split(":");i.push({label:l,prop:g[0].trim()})}}),e=="function"?e="function":e=="array"?e="choice":e="select"),{arr:i,zdtype:r,type:e,dataType:t}}function q(n){let t=[];return(n||"").trim().toLowerCase().split(",").forEach(r=>{r=r.trim(),r&&t.push(r)}),[...new Set(t)].sort()}exports.getHmtl=F;exports.getSpecType=T;exports.setValStringify=S;
@@ -75,7 +75,7 @@ ${d(r, " ")}
75
75
  }
76
76
  function w(n, t, e) {
77
77
  const r = e ? e[t] : "";
78
- return r ? "function" + r : $(n.toString());
78
+ return r ? "function " + r : $(n.toString());
79
79
  }
80
80
  function $(n) {
81
81
  const t = j(F(n));
@@ -83,7 +83,7 @@ function $(n) {
83
83
  let e = `{
84
84
  ${d(E(t.body), " ")}
85
85
  }`;
86
- return `function${t.param}${e}`;
86
+ return `function ${t.param} ${e}`;
87
87
  } else
88
88
  return "undefined";
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.3-13",
4
+ "version": "0.0.3-15",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",