@fangzhongya/vue-archive 0.0.2-39 → 0.0.2-40

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"),f=require("./top.cjs"),n=require("./ftable.vue.cjs"),s=require("./index.cjs"),N={class:"compo-top"},_={class:"compo-li compo-props"},V={class:"compo-li compo-emits"},x={class:"compo-li compo-expose"},B={class:"compo-li compo-slot"},C=e.defineComponent({__name:"props",props:{value:String},emits:["change"],setup(d,{emit:k}){const r=d,u=e.ref([]),t=e.reactive({props:!0,expose:!0,emits:!0,slot:!0,top:!0}),p=e.ref([]),a=e.ref([]),i=e.ref([]),v=e.ref([]);function m(){if(r.value){const l=s.getNotesText(r.value);u.value=l.titles,p.value=l.propss,v.value=l.slots,a.value=l.emitss,i.value=l.exposes,k("change",l)}}return e.watch(()=>r.value,()=>{m()}),m(),(l,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",N,[t.top?(e.openBlock(),e.createBlock(e.unref(f.default),{key:0,value:u.value},null,8,["value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_,[e.createElementVNode("h4",{onClick:o[0]||(o[0]=c=>t.props=!t.props)}," 组件属性 "),t.props?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(s.tprops),value:p.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",V,[e.createElementVNode("h4",{onClick:o[1]||(o[1]=c=>t.emits=!t.emits)}," 组件事件 "),t.emits?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(s.temits),value:a.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",x,[e.createElementVNode("h4",{onClick:o[2]||(o[2]=c=>t.expose=!t.expose)}," 组件方法 "),t.expose?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(s.texpose),value:i.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",B,[e.createElementVNode("h4",{onClick:o[3]||(o[3]=c=>t.slot=!t.slot)},"组件插槽"),t.slot?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(s.tslot),value:v.value},null,8,["list","value"])):e.createCommentVNode("",!0)])]))}});module.exports=C;
1
+ "use strict";const e=require("vue"),_=require("./top.cjs"),n=require("./ftable.vue.cjs"),l=require("./index.cjs"),f={class:"compo"},N={class:"compo-top"},V={class:"compo-li compo-props"},x={class:"compo-li compo-emits"},B={class:"compo-li compo-expose"},C={class:"compo-li compo-slot"},E=e.defineComponent({__name:"props",props:{value:String},emits:["change"],setup(d,{emit:k}){const r=d,u=e.ref([]),t=e.reactive({props:!0,expose:!0,emits:!0,slot:!0,top:!0}),p=e.ref([]),a=e.ref([]),i=e.ref([]),v=e.ref([]);function m(){if(r.value){const s=l.getNotesText(r.value);u.value=s.titles,p.value=s.propss,v.value=s.slots,a.value=s.emitss,i.value=s.exposes,k("change",s)}}return e.watch(()=>r.value,()=>{m()}),m(),(s,o)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",N,[t.top?(e.openBlock(),e.createBlock(e.unref(_.default),{key:0,value:u.value},null,8,["value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",V,[e.createElementVNode("h4",{onClick:o[0]||(o[0]=c=>t.props=!t.props)}," 组件属性 "),t.props?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tprops),value:p.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",x,[e.createElementVNode("h4",{onClick:o[1]||(o[1]=c=>t.emits=!t.emits)}," 组件事件 "),t.emits?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.temits),value:a.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",B,[e.createElementVNode("h4",{onClick:o[2]||(o[2]=c=>t.expose=!t.expose)}," 组件方法 "),t.expose?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.texpose),value:i.value},null,8,["list","value"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",C,[e.createElementVNode("h4",{onClick:o[3]||(o[3]=c=>t.slot=!t.slot)},"组件插槽"),t.slot?(e.openBlock(),e.createBlock(n,{key:0,list:e.unref(l.tslot),value:v.value},null,8,["list","value"])):e.createCommentVNode("",!0)])]))}});module.exports=E;
@@ -1,50 +1,50 @@
1
- import { defineComponent as g, ref as p, reactive as h, watch as y, openBlock as l, createElementBlock as $, createElementVNode as t, createBlock as i, unref as n, createCommentVNode as u } from "vue";
1
+ import { defineComponent as C, ref as p, reactive as g, watch as y, openBlock as l, createElementBlock as $, createElementVNode as t, createBlock as i, unref as n, createCommentVNode as u } from "vue";
2
2
  import B from "./top.js";
3
3
  import r from "./ftable.vue.js";
4
4
  import { tprops as N, temits as E, texpose as T, tslot as V, getNotesText as b } from "./index.js";
5
- const j = { class: "compo-top" }, w = { class: "compo-li compo-props" }, D = { class: "compo-li compo-emits" }, S = { class: "compo-li compo-expose" }, q = { class: "compo-li compo-slot" }, H = /* @__PURE__ */ g({
5
+ const j = { class: "compo" }, w = { class: "compo-top" }, D = { class: "compo-li compo-props" }, S = { class: "compo-li compo-emits" }, q = { class: "compo-li compo-expose" }, z = { class: "compo-li compo-slot" }, I = /* @__PURE__ */ C({
6
6
  __name: "props",
7
7
  props: {
8
8
  value: String
9
9
  },
10
10
  emits: ["change"],
11
- setup(_, { emit: C }) {
12
- const v = _, m = p([]), e = h({
11
+ setup(x, { emit: h }) {
12
+ const v = x, c = p([]), e = g({
13
13
  props: !0,
14
14
  expose: !0,
15
15
  emits: !0,
16
16
  slot: !0,
17
17
  top: !0
18
- }), c = p([]), d = p([]), f = p([]), k = p([]);
19
- function x() {
18
+ }), m = p([]), d = p([]), f = p([]), k = p([]);
19
+ function _() {
20
20
  if (v.value) {
21
21
  const s = b(v.value);
22
- m.value = s.titles, c.value = s.propss, k.value = s.slots, d.value = s.emitss, f.value = s.exposes, C("change", s);
22
+ c.value = s.titles, m.value = s.propss, k.value = s.slots, d.value = s.emitss, f.value = s.exposes, h("change", s);
23
23
  }
24
24
  }
25
25
  return y(
26
26
  () => v.value,
27
27
  () => {
28
- x();
28
+ _();
29
29
  }
30
- ), x(), (s, o) => (l(), $("div", null, [
31
- t("div", j, [
30
+ ), _(), (s, o) => (l(), $("div", j, [
31
+ t("div", w, [
32
32
  e.top ? (l(), i(n(B), {
33
33
  key: 0,
34
- value: m.value
34
+ value: c.value
35
35
  }, null, 8, ["value"])) : u("", !0)
36
36
  ]),
37
- t("div", w, [
37
+ t("div", D, [
38
38
  t("h4", {
39
39
  onClick: o[0] || (o[0] = (a) => e.props = !e.props)
40
40
  }, " 组件属性 "),
41
41
  e.props ? (l(), i(r, {
42
42
  key: 0,
43
43
  list: n(N),
44
- value: c.value
44
+ value: m.value
45
45
  }, null, 8, ["list", "value"])) : u("", !0)
46
46
  ]),
47
- t("div", D, [
47
+ t("div", S, [
48
48
  t("h4", {
49
49
  onClick: o[1] || (o[1] = (a) => e.emits = !e.emits)
50
50
  }, " 组件事件 "),
@@ -54,7 +54,7 @@ const j = { class: "compo-top" }, w = { class: "compo-li compo-props" }, D = { c
54
54
  value: d.value
55
55
  }, null, 8, ["list", "value"])) : u("", !0)
56
56
  ]),
57
- t("div", S, [
57
+ t("div", q, [
58
58
  t("h4", {
59
59
  onClick: o[2] || (o[2] = (a) => e.expose = !e.expose)
60
60
  }, " 组件方法 "),
@@ -64,7 +64,7 @@ const j = { class: "compo-top" }, w = { class: "compo-li compo-props" }, D = { c
64
64
  value: f.value
65
65
  }, null, 8, ["list", "value"])) : u("", !0)
66
66
  ]),
67
- t("div", q, [
67
+ t("div", z, [
68
68
  t("h4", {
69
69
  onClick: o[3] || (o[3] = (a) => e.slot = !e.slot)
70
70
  }, "组件插槽"),
@@ -78,5 +78,5 @@ const j = { class: "compo-top" }, w = { class: "compo-li compo-props" }, D = { c
78
78
  }
79
79
  });
80
80
  export {
81
- H as default
81
+ I as default
82
82
  };
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),u=require("../../components/compo/props.vue.cjs"),v=require("../../components/header/index.vue.cjs"),d=require("../../utils/glob.cjs"),m={class:"__document-index"},p={class:"index-aside"},h={class:"index-aside-div"},x={class:"choice aside"},E=["onClick"],N={class:"aside-li-name"},V={class:"aside-li-name-name"},k={class:"aside-li-name-aliass"},f={class:"index-body"},g={class:"index-div"},y={class:"index-header"},B={class:"index-main"},C={class:"index-main-div"},b=e.defineComponent({__name:"index",setup(q){const o=e.ref(d.getComponentPropsObjs()),s=e.ref(o.value[0]),c=e.ref("");function r(n){s.value=n,a()}function a(){d.getPropsRaws([s.value]).then(n=>{const i=n[0];c.value=i.raw})}return a(),(n,i)=>{const _=e.resolveComponent("Boxurl");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",p,[e.createElementVNode("div",h,[e.createElementVNode("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(t,w)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",{on:t.key==((l=e.unref(s))==null?void 0:l.key)}]),onClick:D=>r(t)},[e.createVNode(_,{value:t},{default:e.withCtx(()=>[e.createElementVNode("div",N,[e.createElementVNode("div",V,e.toDisplayString(t.value),1),e.createElementVNode("div",k,[e.createElementVNode("span",null,e.toDisplayString(t.key),1)])])]),_:2},1032,["value"])],10,E)}),256))])])]),e.createElementVNode("div",f,[e.createElementVNode("div",g,[e.createElementVNode("div",y,[e.createVNode(v)]),e.createElementVNode("div",B,[e.createElementVNode("div",C,[e.createVNode(u,{value:c.value},null,8,["value"])])])])])])}}});module.exports=b;
1
+ "use strict";const e=require("vue"),v=require("../../components/boxurl/index.vue.cjs"),m=require("../../components/compo/props.vue.cjs"),p=require("../../components/header/index.vue.cjs"),h=require("../../config.cjs"),x=require("../../utils/common.cjs"),d=require("../../utils/glob.cjs"),f={class:"__document-index"},k={class:"index-aside"},E={class:"index-aside-div"},N={class:"choice aside"},V=["onClick"],g={class:"aside-li-name"},C={class:"aside-li-name-name"},y={class:"index-body"},q={class:"index-div"},B={class:"index-header"},b={class:"index-main"},j={class:"index-main-div"},w=e.defineComponent({__name:"index",setup(D){const c=h.getConfig("components").map(t=>t.comprops),_=Object.values(d.getComponentPropsObjs()).filter(t=>{for(let s=0;s<c.length;s++){const n=c[s]||"";if(n&&x.isComprops(t.key,n))return!0}}),i=e.ref(_),o=e.ref(i.value[0]),a=e.ref("");function u(t){o.value=t,l()}function l(){d.getPropsRaws([o.value]).then(t=>{const s=t[0];a.value=s.raw})}return l(),(t,s)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",k,[e.createElementVNode("div",E,[e.createElementVNode("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(n,O)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",{on:n.key==((r=e.unref(o))==null?void 0:r.key)}]),onClick:P=>u(n)},[e.createVNode(v,{value:n},{default:e.withCtx(()=>[e.createElementVNode("div",g,[e.createElementVNode("div",C,e.toDisplayString(n.value),1)])]),_:2},1032,["value"])],10,V)}),256))])])]),e.createElementVNode("div",y,[e.createElementVNode("div",q,[e.createElementVNode("div",B,[e.createVNode(p)]),e.createElementVNode("div",b,[e.createElementVNode("div",j,[e.createVNode(m,{value:a.value},null,8,["value"])])])])])]))}});module.exports=w;
@@ -1,68 +1,73 @@
1
- import { defineComponent as p, ref as i, resolveComponent as x, openBlock as t, createElementBlock as a, createElementVNode as e, Fragment as f, renderList as k, normalizeClass as C, unref as y, createVNode as d, withCtx as g, toDisplayString as u } from "vue";
2
- import B from "../../components/compo/props.vue.js";
3
- import b from "../../components/header/index.vue.js";
4
- import { getComponentPropsObjs as w, getPropsRaws as j } from "../../utils/glob.js";
5
- const D = { class: "__document-index" }, E = { class: "index-aside" }, N = { class: "index-aside-div" }, P = { class: "choice aside" }, V = ["onClick"], $ = { class: "aside-li-name" }, z = { class: "aside-li-name-name" }, F = { class: "aside-li-name-aliass" }, H = { class: "index-body" }, L = { class: "index-div" }, O = { class: "index-header" }, R = { class: "index-main" }, S = { class: "index-main-div" }, Q = /* @__PURE__ */ p({
1
+ import { defineComponent as f, ref as n, openBlock as a, createElementBlock as c, createElementVNode as e, Fragment as h, renderList as x, normalizeClass as k, unref as C, createVNode as d, withCtx as g, toDisplayString as y } from "vue";
2
+ import b from "../../components/boxurl/index.vue.js";
3
+ import j from "../../components/compo/props.vue.js";
4
+ import w from "../../components/header/index.vue.js";
5
+ import { getConfig as $ } from "../../config.js";
6
+ import { isComprops as B } from "../../utils/common.js";
7
+ import { getComponentPropsObjs as D, getPropsRaws as E } from "../../utils/glob.js";
8
+ const N = { class: "__document-index" }, O = { class: "index-aside" }, P = { class: "index-aside-div" }, V = { class: "choice aside" }, z = ["onClick"], F = { class: "aside-li-name" }, H = { class: "aside-li-name-name" }, L = { class: "index-body" }, R = { class: "index-div" }, S = { class: "index-header" }, q = { class: "index-main" }, A = { class: "index-main-div" }, Y = /* @__PURE__ */ f({
6
9
  __name: "index",
7
- setup(q) {
8
- const c = i(w()), n = i(c.value[0]), l = i("");
9
- function m(o) {
10
- n.value = o, _();
10
+ setup(G) {
11
+ const l = $("components").map((s) => s.comprops), u = Object.values(D()).filter(
12
+ (s) => {
13
+ for (let t = 0; t < l.length; t++) {
14
+ const o = l[t] || "";
15
+ if (o && B(s.key, o))
16
+ return !0;
17
+ }
18
+ }
19
+ ), r = n(u), i = n(r.value[0]), _ = n("");
20
+ function p(s) {
21
+ i.value = s, m();
11
22
  }
12
- function _() {
13
- j([n.value]).then(
14
- (o) => {
15
- const r = o[0];
16
- l.value = r.raw;
23
+ function m() {
24
+ E([i.value]).then(
25
+ (s) => {
26
+ const t = s[0];
27
+ _.value = t.raw;
17
28
  }
18
29
  );
19
30
  }
20
- return _(), (o, r) => {
21
- const h = x("Boxurl");
22
- return t(), a("div", D, [
23
- e("div", E, [
24
- e("div", N, [
25
- e("div", P, [
26
- (t(!0), a(f, null, k(c.value, (s, A) => {
27
- var v;
28
- return t(), a("div", {
29
- class: C(["aside-li", {
30
- on: s.key == ((v = y(n)) == null ? void 0 : v.key)
31
- }]),
32
- onClick: (G) => m(s)
33
- }, [
34
- d(h, { value: s }, {
35
- default: g(() => [
36
- e("div", $, [
37
- e("div", z, u(s.value), 1),
38
- e("div", F, [
39
- e("span", null, u(s.key), 1)
40
- ])
41
- ])
42
- ]),
43
- _: 2
44
- }, 1032, ["value"])
45
- ], 10, V);
46
- }), 256))
47
- ])
31
+ return m(), (s, t) => (a(), c("div", N, [
32
+ e("div", O, [
33
+ e("div", P, [
34
+ e("div", V, [
35
+ (a(!0), c(h, null, x(r.value, (o, I) => {
36
+ var v;
37
+ return a(), c("div", {
38
+ class: k(["aside-li", {
39
+ on: o.key == ((v = C(i)) == null ? void 0 : v.key)
40
+ }]),
41
+ onClick: (J) => p(o)
42
+ }, [
43
+ d(b, { value: o }, {
44
+ default: g(() => [
45
+ e("div", F, [
46
+ e("div", H, y(o.value), 1)
47
+ ])
48
+ ]),
49
+ _: 2
50
+ }, 1032, ["value"])
51
+ ], 10, z);
52
+ }), 256))
48
53
  ])
49
- ]),
50
- e("div", H, [
51
- e("div", L, [
52
- e("div", O, [
53
- d(b)
54
- ]),
55
- e("div", R, [
56
- e("div", S, [
57
- d(B, { value: l.value }, null, 8, ["value"])
58
- ])
54
+ ])
55
+ ]),
56
+ e("div", L, [
57
+ e("div", R, [
58
+ e("div", S, [
59
+ d(w)
60
+ ]),
61
+ e("div", q, [
62
+ e("div", A, [
63
+ d(j, { value: _.value }, null, 8, ["value"])
59
64
  ])
60
65
  ])
61
66
  ])
62
- ]);
63
- };
67
+ ])
68
+ ]));
64
69
  }
65
70
  });
66
71
  export {
67
- Q as default
72
+ Y as default
68
73
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.2-39",
4
+ "version": "0.0.2-40",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",