@fangzhongya/vue-archive 0.0.3-22 → 0.0.3-24

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.
@@ -66878,13 +66878,22 @@ function gettests(obj, arr, n) {
66878
66878
  setMd(obj, arr);
66879
66879
  });
66880
66880
  } else {
66881
+ arr.push(`### \u793A\u4F8B1`);
66882
+ const dom = setHtml(
66883
+ "div",
66884
+ {
66885
+ class: "compo-top"
66886
+ },
66887
+ []
66888
+ );
66889
+ arr.push(...setDom(dom));
66881
66890
  const name = "cs";
66882
66891
  let key = configObj.example.dir + "/" + getLevelUrl(configObj.example.level, obj) + "/" + obj.value + "/" + name + "/index.vue";
66883
66892
  key = key.replace(/\/\//g, "/").replace(/\/\//g, "/");
66884
66893
  arr.push(
66885
66894
  ...setTestUrl(obj, {
66886
66895
  key,
66887
- name
66896
+ value: name
66888
66897
  })
66889
66898
  );
66890
66899
  setVue(getName(obj), n, _path.join.call(void 0, configObj.dir, key));
@@ -66901,12 +66910,16 @@ function getFFParam(str) {
66901
66910
  return [];
66902
66911
  }
66903
66912
  function getObjValue(d) {
66904
- return new Function(
66905
- "",
66906
- `{
66907
- return ${d}
66908
- }`
66909
- )();
66913
+ try {
66914
+ return new Function(
66915
+ "",
66916
+ `{
66917
+ return ${d}
66918
+ }`
66919
+ )();
66920
+ } catch (error) {
66921
+ return "" + d;
66922
+ }
66910
66923
  }
66911
66924
  function getDefaultValue(obj) {
66912
66925
  const vo = getSpecType(obj).zdtype;
@@ -66998,7 +67011,7 @@ function setTestUrl(obj, test) {
66998
67011
  if (configObj.setTest) {
66999
67012
  arr.push(...configObj.setTest(url, test, obj));
67000
67013
  } else {
67001
- arr.push(`:::preview ${test.name} || `);
67014
+ arr.push(`:::preview ${test.value} || `);
67002
67015
  arr.push(`demo-preview=${url}`);
67003
67016
  arr.push(`:::`);
67004
67017
  }
@@ -66878,13 +66878,22 @@ function gettests(obj, arr, n) {
66878
66878
  setMd(obj, arr);
66879
66879
  });
66880
66880
  } else {
66881
+ arr.push(`### \u793A\u4F8B1`);
66882
+ const dom = setHtml(
66883
+ "div",
66884
+ {
66885
+ class: "compo-top"
66886
+ },
66887
+ []
66888
+ );
66889
+ arr.push(...setDom(dom));
66881
66890
  const name = "cs";
66882
66891
  let key = configObj.example.dir + "/" + getLevelUrl(configObj.example.level, obj) + "/" + obj.value + "/" + name + "/index.vue";
66883
66892
  key = key.replace(/\/\//g, "/").replace(/\/\//g, "/");
66884
66893
  arr.push(
66885
66894
  ...setTestUrl(obj, {
66886
66895
  key,
66887
- name
66896
+ value: name
66888
66897
  })
66889
66898
  );
66890
66899
  setVue(getName(obj), n, join4(configObj.dir, key));
@@ -66901,12 +66910,16 @@ function getFFParam(str) {
66901
66910
  return [];
66902
66911
  }
66903
66912
  function getObjValue(d) {
66904
- return new Function(
66905
- "",
66906
- `{
66907
- return ${d}
66908
- }`
66909
- )();
66913
+ try {
66914
+ return new Function(
66915
+ "",
66916
+ `{
66917
+ return ${d}
66918
+ }`
66919
+ )();
66920
+ } catch (error) {
66921
+ return "" + d;
66922
+ }
66910
66923
  }
66911
66924
  function getDefaultValue(obj) {
66912
66925
  const vo = getSpecType(obj).zdtype;
@@ -66998,7 +67011,7 @@ function setTestUrl(obj, test) {
66998
67011
  if (configObj.setTest) {
66999
67012
  arr.push(...configObj.setTest(url, test, obj));
67000
67013
  } else {
67001
- arr.push(`:::preview ${test.name} || `);
67014
+ arr.push(`:::preview ${test.value} || `);
67002
67015
  arr.push(`demo-preview=${url}`);
67003
67016
  arr.push(`:::`);
67004
67017
  }
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-22",
4
+ "version": "0.0.3-24",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",