@fangzhongya/vue-archive 0.0.3-21 → 0.0.3-23
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.
package/dist/node/index.cjs
CHANGED
|
@@ -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));
|
|
@@ -66998,7 +67007,7 @@ function setTestUrl(obj, test) {
|
|
|
66998
67007
|
if (configObj.setTest) {
|
|
66999
67008
|
arr.push(...configObj.setTest(url, test, obj));
|
|
67000
67009
|
} else {
|
|
67001
|
-
arr.push(`:::preview ${test.
|
|
67010
|
+
arr.push(`:::preview ${test.value} || `);
|
|
67002
67011
|
arr.push(`demo-preview=${url}`);
|
|
67003
67012
|
arr.push(`:::`);
|
|
67004
67013
|
}
|
package/dist/node/index.js
CHANGED
|
@@ -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));
|
|
@@ -66998,7 +67007,7 @@ function setTestUrl(obj, test) {
|
|
|
66998
67007
|
if (configObj.setTest) {
|
|
66999
67008
|
arr.push(...configObj.setTest(url, test, obj));
|
|
67000
67009
|
} else {
|
|
67001
|
-
arr.push(`:::preview ${test.
|
|
67010
|
+
arr.push(`:::preview ${test.value} || `);
|
|
67002
67011
|
arr.push(`demo-preview=${url}`);
|
|
67003
67012
|
arr.push(`:::`);
|
|
67004
67013
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../components/boxurl/index.vue.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),_=require("../../components/boxurl/index.vue.cjs"),v=require("../../components/compo/props.vue.cjs"),h=require("../../components/header/index.vue.cjs"),f=require("../../config.cjs"),N=require("../../utils/common.cjs"),u=require("../../utils/glob.cjs"),x={class:"__document-index"},E={class:"index-aside"},V={class:"index-aside-div"},g={class:"choice aside"},k=["onClick"],y={class:"aside-li-name"},C={class:"aside-li-name-name"},q={class:"index-body"},B={class:"index-div"},w={class:"index-header"},D={class:"index-main"},b={class:"index-main-top"},S={class:"aside-li-name"},O={class:"aside-li-name-name"},P={class:"compo-info-name-li"},R=e.createElementVNode("span",{class:"compo-info-name-li-span"}," 文件路径 ",-1),$={class:"compo-info-name-li-span"},j={class:"index-main-div"},z=e.defineComponent({__name:"index",setup(F){const c=f.getConfig("components").map(n=>n.comprops),m=Object.values(u.getComponentPropsObjs()).filter(n=>{for(let s=0;s<c.length;s++){const t=c[s]||"";if(t&&N.isComprops(n.key,t))return!0}});function i(n){const t=new RegExp(n.comprops+"(.+)$").exec("/"+n.value);return t?t[1]:n.value}const a=e.ref(m),o=e.ref(a.value[0]),l=e.ref("");function p(n){o.value=n,r()}function r(){u.getPropsRaws([o.value]).then(n=>{const s=n[0];l.value=s.raw})}return r(),(n,s)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",E,[e.createElementVNode("div",V,[e.createElementVNode("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,L)=>{var d;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["aside-li",{on:t.key==((d=e.unref(o))==null?void 0:d.key)}]),onClick:A=>p(t)},[e.createVNode(_,{value:t},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createElementVNode("div",C,e.toDisplayString(i(t)),1)])]),_:2},1032,["value"])],10,k)}),256))])])]),e.createElementVNode("div",q,[e.createElementVNode("div",B,[e.createElementVNode("div",w,[e.createVNode(h)]),e.createElementVNode("div",D,[e.createElementVNode("div",b,[e.createVNode(_,{value:e.unref(o)},{default:e.withCtx(()=>{var t;return[e.createElementVNode("div",S,[e.createElementVNode("h2",O,e.toDisplayString(i(e.unref(o))),1)]),e.createElementVNode("div",P,[R,e.createElementVNode("span",$,e.toDisplayString((t=e.unref(o))==null?void 0:t.key),1)])]}),_:1},8,["value"])]),e.createElementVNode("div",j,[e.createVNode(v,{value:l.value},null,8,["value"])])])])])]))}});module.exports=z;
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as C, ref as
|
|
1
|
+
import { defineComponent as C, ref as c, openBlock as d, createElementBlock as l, createElementVNode as e, Fragment as y, renderList as w, normalizeClass as $, unref as i, createVNode as a, withCtx as h, toDisplayString as r } from "vue";
|
|
2
2
|
import x 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";
|
|
5
5
|
import { getConfig as b } from "../../config.js";
|
|
6
6
|
import { isComprops as B } from "../../utils/common.js";
|
|
7
7
|
import { getComponentPropsObjs as D, getPropsRaws as O } from "../../utils/glob.js";
|
|
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-top" }, I = { class: "aside-li-name" }, J = { class: "aside-li-name-name" }, K = { class: "index-main-div" },
|
|
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-top" }, I = { class: "aside-li-name" }, J = { class: "aside-li-name-name" }, K = { class: "compo-info-name-li" }, M = /* @__PURE__ */ e("span", { class: "compo-info-name-li-span" }, " 文件路径 ", -1), Q = { class: "compo-info-name-li-span" }, T = { class: "index-main-div" }, ie = /* @__PURE__ */ C({
|
|
9
9
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
(
|
|
13
|
-
for (let
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
10
|
+
setup(U) {
|
|
11
|
+
const _ = b("components").map((o) => o.comprops), g = Object.values(D()).filter(
|
|
12
|
+
(o) => {
|
|
13
|
+
for (let n = 0; n < _.length; n++) {
|
|
14
|
+
const s = _[n] || "";
|
|
15
|
+
if (s && B(o.key, s))
|
|
16
16
|
return !0;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
return
|
|
20
|
+
function m(o) {
|
|
21
|
+
const s = new RegExp(o.comprops + "(.+)$").exec("/" + o.value);
|
|
22
|
+
return s ? s[1] : o.value;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
function k(
|
|
26
|
-
|
|
24
|
+
const p = c(g), t = c(p.value[0]), u = c("");
|
|
25
|
+
function k(o) {
|
|
26
|
+
t.value = o, v();
|
|
27
27
|
}
|
|
28
28
|
function v() {
|
|
29
|
-
O([
|
|
30
|
-
(
|
|
31
|
-
const
|
|
32
|
-
u.value =
|
|
29
|
+
O([t.value]).then(
|
|
30
|
+
(o) => {
|
|
31
|
+
const n = o[0];
|
|
32
|
+
u.value = n.raw;
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
return v(), (
|
|
36
|
+
return v(), (o, n) => (d(), l("div", P, [
|
|
37
37
|
e("div", R, [
|
|
38
38
|
e("div", V, [
|
|
39
39
|
e("div", j, [
|
|
40
|
-
(
|
|
41
|
-
var
|
|
42
|
-
return
|
|
40
|
+
(d(!0), l(y, null, w(p.value, (s, W) => {
|
|
41
|
+
var f;
|
|
42
|
+
return d(), l("div", {
|
|
43
43
|
class: $(["aside-li", {
|
|
44
|
-
on:
|
|
44
|
+
on: s.key == ((f = i(t)) == null ? void 0 : f.key)
|
|
45
45
|
}]),
|
|
46
|
-
onClick: (
|
|
46
|
+
onClick: (X) => k(s)
|
|
47
47
|
}, [
|
|
48
|
-
|
|
49
|
-
default:
|
|
48
|
+
a(x, { value: s }, {
|
|
49
|
+
default: h(() => [
|
|
50
50
|
e("div", F, [
|
|
51
|
-
e("div", H,
|
|
51
|
+
e("div", H, r(m(s)), 1)
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
54
|
_: 2
|
|
@@ -61,21 +61,28 @@ const P = { class: "__document-index" }, R = { class: "index-aside" }, V = { cla
|
|
|
61
61
|
e("div", L, [
|
|
62
62
|
e("div", S, [
|
|
63
63
|
e("div", q, [
|
|
64
|
-
|
|
64
|
+
a(N)
|
|
65
65
|
]),
|
|
66
66
|
e("div", A, [
|
|
67
67
|
e("div", G, [
|
|
68
|
-
|
|
69
|
-
default:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
a(x, { value: i(t) }, {
|
|
69
|
+
default: h(() => {
|
|
70
|
+
var s;
|
|
71
|
+
return [
|
|
72
|
+
e("div", I, [
|
|
73
|
+
e("h2", J, r(m(i(t))), 1)
|
|
74
|
+
]),
|
|
75
|
+
e("div", K, [
|
|
76
|
+
M,
|
|
77
|
+
e("span", Q, r((s = i(t)) == null ? void 0 : s.key), 1)
|
|
78
|
+
])
|
|
79
|
+
];
|
|
80
|
+
}),
|
|
74
81
|
_: 1
|
|
75
82
|
}, 8, ["value"])
|
|
76
83
|
]),
|
|
77
|
-
e("div",
|
|
78
|
-
|
|
84
|
+
e("div", T, [
|
|
85
|
+
a(E, { value: u.value }, null, 8, ["value"])
|
|
79
86
|
])
|
|
80
87
|
])
|
|
81
88
|
])
|
|
@@ -84,5 +91,5 @@ const P = { class: "__document-index" }, R = { class: "index-aside" }, V = { cla
|
|
|
84
91
|
}
|
|
85
92
|
});
|
|
86
93
|
export {
|
|
87
|
-
|
|
94
|
+
ie as default
|
|
88
95
|
};
|