@fangzhongya/vue-archive 0.0.90 → 0.0.92

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.
@@ -1 +1 @@
1
- "use strict";const e=require("vue");;/* empty css */const t={class:"__document"},n=e.defineComponent({__name:"index",setup(c){return(r,s)=>{const o=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock("div",t,[e.createVNode(o)])}}});module.exports=n;
1
+ "use strict";const e=require("vue");;/* empty css */const t=require("vue-router"),r={class:"__document"},n=e.defineComponent({__name:"index",setup(o){return(c,s)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(e.unref(t.RouterView))]))}});module.exports=n;
@@ -1,16 +1,14 @@
1
- import { defineComponent as o, resolveComponent as t, createElementBlock as n, openBlock as c, createVNode as r } from "vue";
1
+ import { defineComponent as e, createElementBlock as o, openBlock as t, createVNode as r, unref as n } from "vue";
2
2
  /* empty css */
3
- const _ = { class: "__document" }, d = /* @__PURE__ */ o({
3
+ import { RouterView as c } from "vue-router";
4
+ const _ = { class: "__document" }, u = /* @__PURE__ */ e({
4
5
  __name: "index",
5
- setup(s) {
6
- return (m, p) => {
7
- const e = t("RouterView");
8
- return c(), n("div", _, [
9
- r(e)
10
- ]);
11
- };
6
+ setup(m) {
7
+ return (i, p) => (t(), o("div", _, [
8
+ r(n(c))
9
+ ]));
12
10
  }
13
11
  });
14
12
  export {
15
- d as default
13
+ u as default
16
14
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.default=o;exports.defineConfig=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const n=require("./router/index.cjs"),t=require("./config.cjs");function u(e){return t.userConfig(e)}const o={install:function(e,i){n.init(i),e.use(i)}};exports.init=n.init;exports.default=o;exports.defineConfig=u;
@@ -1,7 +1,9 @@
1
+ import { init } from './router/index';
1
2
  import { Config } from './config';
2
3
  import { App } from '../vue/dist/vue.esm-bundler.js';
3
4
  import { Router } from 'vue-router';
4
5
  export declare function defineConfig(config: Config): Config;
6
+ export { init };
5
7
  declare const _default: {
6
8
  install: (app: App, router: Router) => void;
7
9
  };
@@ -11,5 +11,6 @@ const s = {
11
11
  };
12
12
  export {
13
13
  s as default,
14
- m as defineConfig
14
+ m as defineConfig,
15
+ o as init
15
16
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../../components/compo/info.vue.cjs"),v=require("../../components/choice/index.vue.cjs"),p=require("../../components/test/index.vue.cjs"),g=require("../../components/compo/index.vue.cjs"),m=require("../../utils/glob.cjs"),N=require("vue-router"),y=require("../../router/index.cjs"),V={class:"__document-com __document-single"},f={class:"single-top-li"},h={class:"single-top-li-span"},E={class:"single-top-li-span"},q={class:"single-top-li"},k={class:"single-top-li-span"},x={class:"single-test"},S={class:"single-compo"},w=e.defineComponent({__name:"index",setup(C){const i=N.useRoute(),a=y.getPageParams(i),n=e.ref({}),s=e.ref(),o=e.ref(!1);function u(t){return t.comkey}function c(t){return(t.id||"").split("/")[0]||""}function r(){o.value=!o.value}function _(t){n.value=t,s.value=m.getTestNameObj(i.query.id+"",a.key,t.key)[0]}return(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(v,{"get-name":c,"get-key":u,onChange:_},{default:e.withCtx(()=>[e.createVNode(d,{value:n.value},null,8,["value"]),e.createElementVNode("div",{class:"single-top",onClick:r},[e.createElementVNode("div",f,[e.createElementVNode("div",h,e.toDisplayString(s.value?.name),1),e.createElementVNode("div",E,e.toDisplayString(s.value?.value),1)]),e.createElementVNode("div",q,[l[0]||(l[0]=e.createElementVNode("div",{class:"single-top-li-span"},"文件路径",-1)),e.createElementVNode("div",k,e.toDisplayString(s.value?.key),1)])]),e.createElementVNode("div",x,[e.createVNode(p,{value:s.value},null,8,["value"])]),e.withDirectives(e.createElementVNode("div",S,[e.createVNode(g,{value:n.value},null,8,["value"])],512),[[e.vShow,o.value]])]),_:1})]))}});module.exports=w;
1
+ "use strict";const e=require("vue"),d=require("../../components/compo/info.vue.cjs"),p=require("../../components/choice/index.vue.cjs"),v=require("../../components/test/index.vue.cjs"),g=require("../../utils/glob.cjs"),m=require("vue-router"),y=require("../../router/index.cjs"),N={class:"__document-com __document-single"},f={class:"single-top-li"},V={class:"single-top-li-span"},h={class:"single-top-li-span"},E={class:"single-top-li"},k={class:"single-top-li-span"},q={class:"single-test"},x=e.defineComponent({__name:"index",setup(C){const o=m.useRoute(),a=y.getPageParams(o),l=e.ref({}),s=e.ref(),i=e.ref(!1);function c(t){return t.comkey}function r(t){return(t.id||"").split("/")[0]||""}function u(){i.value=!i.value}function _(t){l.value=t,s.value=g.getTestNameObj(o.query.id+"",a.key,t.key)[0]}return(t,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(p,{"get-name":r,"get-key":c,onChange:_},{default:e.withCtx(()=>[e.createVNode(d,{value:l.value},null,8,["value"]),e.createElementVNode("div",{class:"single-top",onClick:u},[e.createElementVNode("div",f,[e.createElementVNode("div",V,e.toDisplayString(s.value?.name),1),e.createElementVNode("div",h,e.toDisplayString(s.value?.value),1)]),e.createElementVNode("div",E,[n[0]||(n[0]=e.createElementVNode("div",{class:"single-top-li-span"},"文件路径",-1)),e.createElementVNode("div",k,e.toDisplayString(s.value?.key),1)])]),e.createElementVNode("div",q,[e.createVNode(v,{value:s.value},null,8,["value"])])]),_:1})]))}});module.exports=x;
@@ -1,59 +1,53 @@
1
- import { defineComponent as d, ref as a, createElementBlock as f, openBlock as g, createVNode as o, withCtx as h, createElementVNode as e, withDirectives as k, toDisplayString as c, vShow as y } from "vue";
2
- import w from "../../components/compo/info.vue.js";
3
- import x from "../../components/choice/index.vue.js";
4
- import C from "../../components/test/index.vue.js";
5
- import N from "../../components/compo/index.vue.js";
6
- import { getTestNameObj as $ } from "../../utils/glob.js";
7
- import { useRoute as S } from "vue-router";
8
- import { getPageParams as B } from "../../router/index.js";
9
- const D = { class: "__document-com __document-single" }, E = { class: "single-top-li" }, P = { class: "single-top-li-span" }, V = { class: "single-top-li-span" }, b = { class: "single-top-li" }, j = { class: "single-top-li-span" }, q = { class: "single-test" }, K = { class: "single-compo" }, L = /* @__PURE__ */ d({
1
+ import { defineComponent as v, ref as n, createElementBlock as f, openBlock as g, createVNode as i, withCtx as h, createElementVNode as e, toDisplayString as l } from "vue";
2
+ import k from "../../components/compo/info.vue.js";
3
+ import y from "../../components/choice/index.vue.js";
4
+ import x from "../../components/test/index.vue.js";
5
+ import { getTestNameObj as C } from "../../utils/glob.js";
6
+ import { useRoute as N } from "vue-router";
7
+ import { getPageParams as $ } from "../../router/index.js";
8
+ const w = { class: "__document-com __document-single" }, B = { class: "single-top-li" }, E = { class: "single-top-li-span" }, P = { class: "single-top-li-span" }, S = { class: "single-top-li" }, V = { class: "single-top-li-span" }, b = { class: "single-test" }, F = /* @__PURE__ */ v({
10
9
  __name: "index",
11
- setup(O) {
12
- const u = S(), m = B(u), n = a({}), s = a(), i = a(!1);
13
- function r(t) {
10
+ setup(j) {
11
+ const a = N(), m = $(a), c = n({}), s = n(), r = n(!1);
12
+ function u(t) {
14
13
  return t.comkey;
15
14
  }
16
15
  function _(t) {
17
16
  return (t.id || "").split("/")[0] || "";
18
17
  }
19
- function v() {
20
- i.value = !i.value;
18
+ function p() {
19
+ r.value = !r.value;
21
20
  }
22
- function p(t) {
23
- n.value = t, s.value = $(
24
- u.query.id + "",
21
+ function d(t) {
22
+ c.value = t, s.value = C(
23
+ a.query.id + "",
25
24
  m.key,
26
25
  t.key
27
26
  )[0];
28
27
  }
29
- return (t, l) => (g(), f("div", D, [
30
- o(x, {
28
+ return (t, o) => (g(), f("div", w, [
29
+ i(y, {
31
30
  "get-name": _,
32
- "get-key": r,
33
- onChange: p
31
+ "get-key": u,
32
+ onChange: d
34
33
  }, {
35
34
  default: h(() => [
36
- o(w, { value: n.value }, null, 8, ["value"]),
35
+ i(k, { value: c.value }, null, 8, ["value"]),
37
36
  e("div", {
38
37
  class: "single-top",
39
- onClick: v
38
+ onClick: p
40
39
  }, [
41
- e("div", E, [
42
- e("div", P, c(s.value?.name), 1),
43
- e("div", V, c(s.value?.value), 1)
40
+ e("div", B, [
41
+ e("div", E, l(s.value?.name), 1),
42
+ e("div", P, l(s.value?.value), 1)
44
43
  ]),
45
- e("div", b, [
46
- l[0] || (l[0] = e("div", { class: "single-top-li-span" }, "文件路径", -1)),
47
- e("div", j, c(s.value?.key), 1)
44
+ e("div", S, [
45
+ o[0] || (o[0] = e("div", { class: "single-top-li-span" }, "文件路径", -1)),
46
+ e("div", V, l(s.value?.key), 1)
48
47
  ])
49
48
  ]),
50
- e("div", q, [
51
- o(C, { value: s.value }, null, 8, ["value"])
52
- ]),
53
- k(e("div", K, [
54
- o(N, { value: n.value }, null, 8, ["value"])
55
- ], 512), [
56
- [y, i.value]
49
+ e("div", b, [
50
+ i(x, { value: s.value }, null, 8, ["value"])
57
51
  ])
58
52
  ]),
59
53
  _: 1
@@ -62,5 +56,5 @@ const D = { class: "__document-com __document-single" }, E = { class: "single-to
62
56
  }
63
57
  });
64
58
  export {
65
- L as default
59
+ F as default
66
60
  };
@@ -1,6 +1,6 @@
1
1
  import { getConfig as A } from "../config.js";
2
2
  import { getVueTexts as H } from "@fangzhongya/utils/html/getVueText";
3
- import { getRawValue as R, isComprops as K, isCurprops as S, defaultExtensions as E, getComponentsArr as q } from "./common.js";
3
+ import { getRawValue as R, isComprops as K, isCurprops as S, getComponentsArr as q, defaultExtensions as E } from "./common.js";
4
4
  import { mergeObject as D } from "@fangzhongya/utils/basic/object/mergeObject";
5
5
  import "@fangzhongya/utils/basic/array/toggleArray";
6
6
  import { humpToLine as C } from "@fangzhongya/utils/name/humpToLine";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.90",
4
+ "version": "0.0.92",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",