@fangzhongya/vue-archive 0.0.3-19 → 0.0.3-20
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"),m=require("../../components/boxurl/index.vue.cjs"),p=require("../../components/compo/props.vue.cjs"),h=require("../../components/header/index.vue.cjs"),x=require("../../config.cjs"),f=require("../../utils/common.cjs"),d=require("../../utils/glob.cjs"),g={class:"__document-index"},E={class:"index-aside"},N={class:"index-aside-div"},k={class:"choice aside"},V=["onClick"],C={class:"aside-li-name"},y={class:"aside-li-name-name"},q={class:"index-body"},B={class:"index-div"},w={class:"index-header"},b={class:"index-main"},D={class:"index-main-div"},O=e.defineComponent({__name:"index",setup(P){const c=x.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&&f.isComprops(t.key,n))return!0}});function u(t){const
|
|
1
|
+
"use strict";const e=require("vue"),m=require("../../components/boxurl/index.vue.cjs"),p=require("../../components/compo/props.vue.cjs"),h=require("../../components/header/index.vue.cjs"),x=require("../../config.cjs"),f=require("../../utils/common.cjs"),d=require("../../utils/glob.cjs"),g={class:"__document-index"},E={class:"index-aside"},N={class:"index-aside-div"},k={class:"choice aside"},V=["onClick"],C={class:"aside-li-name"},y={class:"aside-li-name-name"},q={class:"index-body"},B={class:"index-div"},w={class:"index-header"},b={class:"index-main"},D={class:"index-main-div"},O=e.defineComponent({__name:"index",setup(P){const c=x.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&&f.isComprops(t.key,n))return!0}});function u(t){const n=new RegExp(t.comprops+"(.+)$").exec("/"+t.value);return n?n[1]:t.value}const i=e.ref(_),o=e.ref(i.value[0]),r=e.ref("");function v(t){o.value=t,a()}function a(){d.getPropsRaws([o.value]).then(t=>{const s=t[0];r.value=s.raw})}return a(),(t,s)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(n,R)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",{on:n.key==((l=e.unref(o))==null?void 0:l.key)}]),onClick:$=>v(n)},[e.createVNode(m,{value:n},{default:e.withCtx(()=>[e.createElementVNode("div",C,[e.createElementVNode("div",y,e.toDisplayString(u(n)),1)])]),_:2},1032,["value"])],10,V)}),256))])])]),e.createElementVNode("div",q,[e.createElementVNode("div",B,[e.createElementVNode("div",w,[e.createVNode(h)]),e.createElementVNode("div",b,[e.createElementVNode("div",D,[e.createVNode(p,{value:r.value},null,8,["value"])])])])])]))}});module.exports=O;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, ref as i, openBlock as c, createElementBlock as a, createElementVNode as
|
|
1
|
+
import { defineComponent as h, ref as i, openBlock as c, createElementBlock as a, createElementVNode as t, Fragment as x, renderList as g, normalizeClass as k, unref as C, createVNode as d, withCtx as y, toDisplayString as w } from "vue";
|
|
2
2
|
import $ from "../../components/boxurl/index.vue.js";
|
|
3
3
|
import E from "../../components/compo/props.vue.js";
|
|
4
4
|
import N from "../../components/header/index.vue.js";
|
|
@@ -8,38 +8,36 @@ import { getComponentPropsObjs as D, getPropsRaws as O } from "../../utils/glob.
|
|
|
8
8
|
const P = { class: "__document-index" }, R = { class: "index-aside" }, V = { class: "index-aside-div" }, j = { class: "choice aside" }, z = ["onClick"], F = { class: "aside-li-name" }, H = { class: "aside-li-name-name" }, L = { class: "index-body" }, S = { class: "index-div" }, q = { class: "index-header" }, A = { class: "index-main" }, G = { class: "index-main-div" }, Z = /* @__PURE__ */ h({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(I) {
|
|
11
|
-
const
|
|
11
|
+
const r = b("components").map((e) => e.comprops), v = Object.values(D()).filter(
|
|
12
12
|
(e) => {
|
|
13
|
-
for (let
|
|
14
|
-
const s =
|
|
13
|
+
for (let o = 0; o < r.length; o++) {
|
|
14
|
+
const s = r[o] || "";
|
|
15
15
|
if (s && B(e.key, s))
|
|
16
16
|
return !0;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
function p(e) {
|
|
21
|
-
const
|
|
22
|
-
console.log(t);
|
|
23
|
-
const s = t.exec("/" + e.value);
|
|
21
|
+
const s = new RegExp(e.comprops + "(.+)$").exec("/" + e.value);
|
|
24
22
|
return s ? s[1] : e.value;
|
|
25
23
|
}
|
|
26
|
-
const
|
|
24
|
+
const l = i(v), n = i(l.value[0]), _ = i("");
|
|
27
25
|
function f(e) {
|
|
28
26
|
n.value = e, m();
|
|
29
27
|
}
|
|
30
28
|
function m() {
|
|
31
29
|
O([n.value]).then(
|
|
32
30
|
(e) => {
|
|
33
|
-
const
|
|
34
|
-
_.value =
|
|
31
|
+
const o = e[0];
|
|
32
|
+
_.value = o.raw;
|
|
35
33
|
}
|
|
36
34
|
);
|
|
37
35
|
}
|
|
38
|
-
return m(), (e,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
(c(!0), a(x, null, g(
|
|
36
|
+
return m(), (e, o) => (c(), a("div", P, [
|
|
37
|
+
t("div", R, [
|
|
38
|
+
t("div", V, [
|
|
39
|
+
t("div", j, [
|
|
40
|
+
(c(!0), a(x, null, g(l.value, (s, J) => {
|
|
43
41
|
var u;
|
|
44
42
|
return c(), a("div", {
|
|
45
43
|
class: k(["aside-li", {
|
|
@@ -49,8 +47,8 @@ const P = { class: "__document-index" }, R = { class: "index-aside" }, V = { cla
|
|
|
49
47
|
}, [
|
|
50
48
|
d($, { value: s }, {
|
|
51
49
|
default: y(() => [
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
t("div", F, [
|
|
51
|
+
t("div", H, w(p(s)), 1)
|
|
54
52
|
])
|
|
55
53
|
]),
|
|
56
54
|
_: 2
|
|
@@ -60,13 +58,13 @@ const P = { class: "__document-index" }, R = { class: "index-aside" }, V = { cla
|
|
|
60
58
|
])
|
|
61
59
|
])
|
|
62
60
|
]),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
t("div", L, [
|
|
62
|
+
t("div", S, [
|
|
63
|
+
t("div", q, [
|
|
66
64
|
d(N)
|
|
67
65
|
]),
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
t("div", A, [
|
|
67
|
+
t("div", G, [
|
|
70
68
|
d(E, { value: _.value }, null, 8, ["value"])
|
|
71
69
|
])
|
|
72
70
|
])
|