@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"),
|
|
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
|
|
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" },
|
|
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(
|
|
12
|
-
const v =
|
|
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
|
-
}),
|
|
19
|
-
function
|
|
18
|
+
}), m = p([]), d = p([]), f = p([]), k = p([]);
|
|
19
|
+
function _() {
|
|
20
20
|
if (v.value) {
|
|
21
21
|
const s = b(v.value);
|
|
22
|
-
|
|
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
|
-
|
|
28
|
+
_();
|
|
29
29
|
}
|
|
30
|
-
),
|
|
31
|
-
t("div",
|
|
30
|
+
), _(), (s, o) => (l(), $("div", j, [
|
|
31
|
+
t("div", w, [
|
|
32
32
|
e.top ? (l(), i(n(B), {
|
|
33
33
|
key: 0,
|
|
34
|
-
value:
|
|
34
|
+
value: c.value
|
|
35
35
|
}, null, 8, ["value"])) : u("", !0)
|
|
36
36
|
]),
|
|
37
|
-
t("div",
|
|
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:
|
|
44
|
+
value: m.value
|
|
45
45
|
}, null, 8, ["list", "value"])) : u("", !0)
|
|
46
46
|
]),
|
|
47
|
-
t("div",
|
|
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",
|
|
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",
|
|
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
|
-
|
|
81
|
+
I as default
|
|
82
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
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(
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
(
|
|
15
|
-
const
|
|
16
|
-
|
|
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
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
|
|
72
|
+
Y as default
|
|
68
73
|
};
|