@fangzhongya/vue-archive 0.0.56 → 0.0.58
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/packages/components/choice/index.vue.cjs +1 -1
- package/dist/packages/components/choice/index.vue.js +52 -38
- package/dist/packages/components/compo/ftable.vue.cjs +1 -1
- package/dist/packages/components/compo/ftable.vue.js +2 -7
- package/dist/packages/page/compon/index.vue2.cjs +1 -1
- package/dist/packages/page/compon/index.vue2.js +7 -7
- package/dist/packages/page/develop/index.vue2.cjs +1 -1
- package/dist/packages/page/develop/index.vue2.js +4 -4
- package/dist/packages/page/edit/index.vue2.cjs +1 -1
- package/dist/packages/page/edit/index.vue2.js +10 -10
- package/dist/packages/page/single/index.vue2.cjs +1 -1
- package/dist/packages/page/single/index.vue2.js +12 -12
- package/dist/packages/page/tests/index.vue2.cjs +1 -1
- package/dist/packages/page/tests/index.vue2.js +7 -7
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),d=require("@fangzhongya/utils/name/humpToLine"),g=require("./choice.vue.cjs"),k=require("../../utils/glob.cjs"),y=require("../../utils/common.cjs"),f=require("vue-router"),B=require("../../router/index.cjs"),q={class:"__document-compon"},C={key:0,class:"__document-compon-choice"},N={key:0},E={key:1},b={key:2},x=e.defineComponent({__name:"index",props:{getName:{type:Function,default(u){return u.id}},getKey:{type:Function,default(u){return u.key}}},emits:["change"],setup(u,{emit:p}){const s=u,a=f.useRoute(),_=B.getPageParams(a),t=e.ref(),n=e.ref([]),c=e.ref(!1),i=p;e.watch(()=>a.query.id,()=>{m()});function m(){let l=d.humpToLine(s.getName(a.query)),o=k.getCompoName(s.getName(a.query),!0,s.getKey(_))||[];if(n.value=[],o.length==1)t.value=o[0],i("change",t.value);else if(o.length==0)t.value=void 0,i("change",t.value);else{c.value=!0,n.value=o;for(let r=0;r<o.length;r++){const v=o[r];if(l===d.humpToLine(v.name)){t.value=v;break}}}}function h(l){c.value=!1,t.value=l,i("change",t.value),y.setAsideKey(l.key)}return m(),(l,o)=>(e.openBlock(),e.createElementBlock("div",q,[n.value.length?(e.openBlock(),e.createElementBlock("div",C,[c.value?(e.openBlock(),e.createBlock(g,{key:0,onChange:h,value:n.value,choice:t.value},null,8,["value","choice"])):e.createCommentVNode("",!0),e.createElementVNode("div",{onClick:o[0]||(o[0]=r=>c.value=!c.value),class:"__document-compon-choice-but"},e.toDisplayString(c.value?"展开":"隐藏"),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["__document-compon-body",{choice:n.value.length}])},[t.value?.key?(e.openBlock(),e.createElementBlock("div",N,[e.renderSlot(l.$slots,"default",{value:t.value})])):n.value.length?(e.openBlock(),e.createElementBlock("div",E,"请先选择要查看的组件")):(e.openBlock(),e.createElementBlock("div",b,"没有查询到"+e.toDisplayString(e.unref(a).query.id)+"组件",1))],2)]))}});module.exports=x;
|
|
@@ -1,73 +1,87 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { defineComponent as N, ref as v, watch as q, createElementBlock as i, openBlock as l, createCommentVNode as f, createElementVNode as h, createBlock as b, toDisplayString as _, normalizeClass as x, renderSlot as B, unref as K } from "vue";
|
|
2
|
+
import { humpToLine as g } from "@fangzhongya/utils/name/humpToLine";
|
|
3
|
+
import $ from "./choice.vue.js";
|
|
4
|
+
import { getCompoName as D } from "../../utils/glob.js";
|
|
5
|
+
import { setAsideKey as E } from "../../utils/common.js";
|
|
6
|
+
import { useRoute as F } from "vue-router";
|
|
7
|
+
import { getPageParams as P } from "../../router/index.js";
|
|
8
|
+
const S = { class: "__document-compon" }, V = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "__document-compon-choice"
|
|
10
|
-
},
|
|
11
|
+
}, w = { key: 0 }, z = { key: 1 }, A = { key: 2 }, J = /* @__PURE__ */ N({
|
|
11
12
|
__name: "index",
|
|
12
13
|
props: {
|
|
13
14
|
getName: {
|
|
14
15
|
type: Function,
|
|
15
|
-
default(
|
|
16
|
-
return
|
|
16
|
+
default(u) {
|
|
17
|
+
return u.id;
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
getKey: {
|
|
20
21
|
type: Function,
|
|
21
|
-
default(
|
|
22
|
-
return
|
|
22
|
+
default(u) {
|
|
23
|
+
return u.key;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
emits: ["change"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
() =>
|
|
28
|
+
setup(u, { emit: y }) {
|
|
29
|
+
const s = u, c = F(), k = P(c), e = v(), o = v([]), n = v(!1), m = y;
|
|
30
|
+
q(
|
|
31
|
+
() => c.query.id,
|
|
31
32
|
() => {
|
|
32
|
-
|
|
33
|
+
d();
|
|
33
34
|
}
|
|
34
35
|
);
|
|
35
|
-
function
|
|
36
|
-
let t =
|
|
37
|
-
|
|
36
|
+
function d() {
|
|
37
|
+
let a = g(s.getName(c.query)), t = D(
|
|
38
|
+
s.getName(c.query),
|
|
38
39
|
!0,
|
|
39
|
-
|
|
40
|
+
s.getKey(k)
|
|
40
41
|
) || [];
|
|
41
|
-
o.value = [], t.length == 1
|
|
42
|
+
if (o.value = [], t.length == 1)
|
|
43
|
+
e.value = t[0], m("change", e.value);
|
|
44
|
+
else if (t.length == 0)
|
|
45
|
+
e.value = void 0, m("change", e.value);
|
|
46
|
+
else {
|
|
47
|
+
n.value = !0, o.value = t;
|
|
48
|
+
for (let r = 0; r < t.length; r++) {
|
|
49
|
+
const p = t[r];
|
|
50
|
+
if (a === g(p.name)) {
|
|
51
|
+
e.value = p;
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
42
56
|
}
|
|
43
|
-
function
|
|
44
|
-
n.value = !1, e.value =
|
|
57
|
+
function C(a) {
|
|
58
|
+
n.value = !1, e.value = a, m("change", e.value), E(a.key);
|
|
45
59
|
}
|
|
46
|
-
return
|
|
47
|
-
o.value.length ? (
|
|
48
|
-
n.value ? (
|
|
60
|
+
return d(), (a, t) => (l(), i("div", S, [
|
|
61
|
+
o.value.length ? (l(), i("div", V, [
|
|
62
|
+
n.value ? (l(), b($, {
|
|
49
63
|
key: 0,
|
|
50
|
-
onChange:
|
|
64
|
+
onChange: C,
|
|
51
65
|
value: o.value,
|
|
52
66
|
choice: e.value
|
|
53
|
-
}, null, 8, ["value", "choice"])) :
|
|
54
|
-
|
|
55
|
-
onClick:
|
|
67
|
+
}, null, 8, ["value", "choice"])) : f("", !0),
|
|
68
|
+
h("div", {
|
|
69
|
+
onClick: t[0] || (t[0] = (r) => n.value = !n.value),
|
|
56
70
|
class: "__document-compon-choice-but"
|
|
57
71
|
}, _(n.value ? "展开" : "隐藏"), 1)
|
|
58
|
-
])) :
|
|
59
|
-
|
|
60
|
-
class:
|
|
72
|
+
])) : f("", !0),
|
|
73
|
+
h("div", {
|
|
74
|
+
class: x(["__document-compon-body", {
|
|
61
75
|
choice: o.value.length
|
|
62
76
|
}])
|
|
63
77
|
}, [
|
|
64
|
-
e.value?.key ? (
|
|
65
|
-
|
|
66
|
-
])) : o.value.length ? (
|
|
78
|
+
e.value?.key ? (l(), i("div", w, [
|
|
79
|
+
B(a.$slots, "default", { value: e.value })
|
|
80
|
+
])) : o.value.length ? (l(), i("div", z, "请先选择要查看的组件")) : (l(), i("div", A, "没有查询到" + _(K(c).query.id) + "组件", 1))
|
|
67
81
|
], 2)
|
|
68
82
|
]));
|
|
69
83
|
}
|
|
70
84
|
});
|
|
71
85
|
export {
|
|
72
|
-
|
|
86
|
+
J as default
|
|
73
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u={class:"compo-talbe"},d={class:"compo-talbe-body"},m={class:"compo-talbe-top"},i={class:"compo-talbe-li"},k={key:1,class:"compo-talbe-zw"},B=e.defineComponent({__name:"ftable",props:{list:{type:Array,default(){return[]}},value:{type:Array,default(){return[]}}},setup(c){const l=c;function a(n,t,o,r){if(t.formatter)return t.formatter(n,t,o,r);if(t.prop)return n[t.prop]}return(n,t)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("table",d,[e.createElementVNode("thead",null,[e.createElementVNode("tr",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,r)=>(e.openBlock(),e.createElementBlock("th",null,e.toDisplayString(o?.label),1))),256))])]),e.createElementVNode("tbody",null,[l.value&&l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,(o,r)=>(e.openBlock(),e.createElementBlock("tr",i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(s,p)=>(e.openBlock(),e.createElementBlock("td",null,e.toDisplayString(a(o,s,r,p)),1))),256))]))),256)):(e.openBlock(),e.createElementBlock("tr",k,t[0]||(t[0]=[e.createElementVNode("td",{colspan:"
|
|
1
|
+
"use strict";const e=require("vue"),u={class:"compo-talbe"},d={class:"compo-talbe-body"},m={class:"compo-talbe-top"},i={class:"compo-talbe-li"},k={key:1,class:"compo-talbe-zw"},B=e.defineComponent({__name:"ftable",props:{list:{type:Array,default(){return[]}},value:{type:Array,default(){return[]}}},setup(c){const l=c;function a(n,t,o,r){if(t.formatter)return t.formatter(n,t,o,r);if(t.prop)return n[t.prop]}return(n,t)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("table",d,[e.createElementVNode("thead",null,[e.createElementVNode("tr",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,r)=>(e.openBlock(),e.createElementBlock("th",null,e.toDisplayString(o?.label),1))),256))])]),e.createElementVNode("tbody",null,[l.value&&l.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,(o,r)=>(e.openBlock(),e.createElementBlock("tr",i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(s,p)=>(e.openBlock(),e.createElementBlock("td",null,e.toDisplayString(a(o,s,r,p)),1))),256))]))),256)):(e.openBlock(),e.createElementBlock("tr",k,t[0]||(t[0]=[e.createElementVNode("td",{colspan:"7"},"暂无",-1)])))])])]))}});module.exports=B;
|
|
@@ -43,14 +43,9 @@ const b = { class: "compo-talbe" }, y = { class: "compo-talbe-body" }, h = { cla
|
|
|
43
43
|
]),
|
|
44
44
|
n("tbody", null, [
|
|
45
45
|
r.value && r.value.length > 0 ? (l(!0), e(u, { key: 0 }, c(r.value, (o, s) => (l(), e("tr", v, [
|
|
46
|
-
(l(!0), e(u, null, c(r.list, (_, f) => (l(), e("td", null, p(i(
|
|
47
|
-
o,
|
|
48
|
-
_,
|
|
49
|
-
s,
|
|
50
|
-
f
|
|
51
|
-
)), 1))), 256))
|
|
46
|
+
(l(!0), e(u, null, c(r.list, (_, f) => (l(), e("td", null, p(i(o, _, s, f)), 1))), 256))
|
|
52
47
|
]))), 256)) : (l(), e("tr", k, t[0] || (t[0] = [
|
|
53
|
-
n("td", { colspan: "
|
|
48
|
+
n("td", { colspan: "7" }, "暂无", -1)
|
|
54
49
|
])))
|
|
55
50
|
])
|
|
56
51
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../components/main/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),u={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(r){return(s
|
|
1
|
+
"use strict";const e=require("vue"),_=require("../../components/main/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),u={class:"__document-index __document-compon"},c=e.defineComponent({__name:"index",setup(r){return(o,s)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as n, openBlock as _, createVNode as e, withCtx as c } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const r = { class: "__document-compon" },
|
|
2
|
+
import m from "../../components/main/index.vue.js";
|
|
3
|
+
import a from "../../components/choice/index.vue.js";
|
|
4
|
+
const r = { class: "__document-index __document-compon" }, f = /* @__PURE__ */ t({
|
|
5
5
|
__name: "index",
|
|
6
6
|
setup(l) {
|
|
7
|
-
return (i,
|
|
8
|
-
e(
|
|
7
|
+
return (i, u) => (_(), n("div", r, [
|
|
8
|
+
e(a, null, {
|
|
9
9
|
default: c((o) => [
|
|
10
|
-
e(
|
|
10
|
+
e(m, {
|
|
11
11
|
value: o.value
|
|
12
12
|
}, null, 8, ["value"])
|
|
13
13
|
]),
|
|
@@ -17,5 +17,5 @@ const r = { class: "__document-compon" }, d = /* @__PURE__ */ t({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as default
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../components/compo/info.vue.cjs"),u=require("../../components/compo/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),r={class:"__document-compon"},c=e.defineComponent({__name:"index",setup(
|
|
1
|
+
"use strict";const e=require("vue"),_=require("../../components/compo/info.vue.cjs"),u=require("../../components/compo/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),r={class:"__document-index __document-compon"},c=e.defineComponent({__name:"index",setup(o){return(s,l)=>(e.openBlock(),e.createElementBlock("div",r,[e.createVNode(n,null,{default:e.withCtx(t=>[e.createVNode(_,{value:t.value},null,8,["value"]),e.createVNode(u,{istop:"",value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as n, openBlock as _, createVNode as e, withCtx as a } from "vue";
|
|
2
2
|
import l from "../../components/compo/info.vue.js";
|
|
3
3
|
import m from "../../components/compo/index.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import c from "../../components/choice/index.vue.js";
|
|
5
|
+
const r = { class: "__document-index __document-compon" }, x = /* @__PURE__ */ t({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(u) {
|
|
8
|
-
return (i, s) => (_(), n("div",
|
|
9
|
-
e(
|
|
8
|
+
return (i, s) => (_(), n("div", r, [
|
|
9
|
+
e(c, null, {
|
|
10
10
|
default: a((o) => [
|
|
11
11
|
e(l, {
|
|
12
12
|
value: o.value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../components/compo/code.vue.cjs");;/* empty css */const u=require("../../components/choice/index.vue.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),_=require("../../components/compo/code.vue.cjs");;/* empty css */const u=require("../../components/choice/index.vue.cjs"),n={class:"__document-index __document-edit"},r=e.defineComponent({__name:"index",setup(c){return(s,o)=>(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(u,null,{default:e.withCtx(t=>[e.createVNode(_,{istop:"",value:t.value},null,8,["value"])]),_:1})]))}});module.exports=r;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as o, createElementBlock as n, openBlock as _, createVNode as e, withCtx as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as o, createElementBlock as n, openBlock as _, createVNode as e, withCtx as c } from "vue";
|
|
2
|
+
import i from "../../components/compo/code.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import m from "../../components/choice/index.vue.js";
|
|
5
|
+
const r = { class: "__document-index __document-edit" }, x = /* @__PURE__ */ o({
|
|
6
6
|
__name: "index",
|
|
7
|
-
setup(
|
|
8
|
-
return (l, s) => (_(), n("div",
|
|
9
|
-
e(
|
|
10
|
-
default:
|
|
11
|
-
e(
|
|
7
|
+
setup(a) {
|
|
8
|
+
return (l, s) => (_(), n("div", r, [
|
|
9
|
+
e(m, null, {
|
|
10
|
+
default: c((t) => [
|
|
11
|
+
e(i, {
|
|
12
12
|
istop: "",
|
|
13
13
|
value: t.value
|
|
14
14
|
}, null, 8, ["value"])
|
|
@@ -19,5 +19,5 @@ const i = { class: "__document-edit" }, v = /* @__PURE__ */ o({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
x as default
|
|
23
23
|
};
|
|
@@ -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-single"},f={class:"single-top-li"},h={class:"single-top-li-span"},E={class:"single-top-li-span"},q={class:"single-top-li"},
|
|
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-index __document-single"},f={class:"single-top-li"},h={class:"single-top-li-span"},E={class:"single-top-li-span"},q={class:"single-top-li"},x={class:"single-top-li-span"},k={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",x,e.toDisplayString(s.value?.key),1)])]),e.createElementVNode("div",k,[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,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as p, 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 x from "../../components/compo/info.vue.js";
|
|
3
|
+
import w from "../../components/choice/index.vue.js";
|
|
4
4
|
import C from "../../components/test/index.vue.js";
|
|
5
5
|
import N from "../../components/compo/index.vue.js";
|
|
6
6
|
import { getTestNameObj as $ } from "../../utils/glob.js";
|
|
7
7
|
import { useRoute as S } from "vue-router";
|
|
8
8
|
import { getPageParams as B } from "../../router/index.js";
|
|
9
|
-
const D = { class: "__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__ */
|
|
9
|
+
const D = { class: "__document-index __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__ */ p({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(O) {
|
|
12
|
-
const
|
|
12
|
+
const u = S(), r = B(u), n = a({}), s = a(), i = a(!1);
|
|
13
13
|
function m(t) {
|
|
14
14
|
return t.comkey;
|
|
15
15
|
}
|
|
@@ -19,21 +19,21 @@ const D = { class: "__document-single" }, E = { class: "single-top-li" }, P = {
|
|
|
19
19
|
function v() {
|
|
20
20
|
i.value = !i.value;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function d(t) {
|
|
23
23
|
n.value = t, s.value = $(
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
u.query.id + "",
|
|
25
|
+
r.key,
|
|
26
26
|
t.key
|
|
27
27
|
)[0];
|
|
28
28
|
}
|
|
29
29
|
return (t, l) => (g(), f("div", D, [
|
|
30
|
-
o(
|
|
30
|
+
o(w, {
|
|
31
31
|
"get-name": _,
|
|
32
32
|
"get-key": m,
|
|
33
|
-
onChange:
|
|
33
|
+
onChange: d
|
|
34
34
|
}, {
|
|
35
35
|
default: h(() => [
|
|
36
|
-
o(
|
|
36
|
+
o(x, { value: n.value }, null, 8, ["value"]),
|
|
37
37
|
e("div", {
|
|
38
38
|
class: "single-top",
|
|
39
39
|
onClick: v
|
|
@@ -43,7 +43,7 @@ const D = { class: "__document-single" }, E = { class: "single-top-li" }, P = {
|
|
|
43
43
|
e("div", V, c(s.value?.value), 1)
|
|
44
44
|
]),
|
|
45
45
|
e("div", b, [
|
|
46
|
-
l[0] || (l[0] = e("div", { class: "single-top-li-span" }, "
|
|
46
|
+
l[0] || (l[0] = e("div", { class: "single-top-li-span" }, "文件路径", -1)),
|
|
47
47
|
e("div", j, c(s.value?.key), 1)
|
|
48
48
|
])
|
|
49
49
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),m=require("../../components/compo/info.vue.cjs"),p=require("../../components/choice/index.vue.cjs"),k=require("../../components/test/index.vue.cjs"),f=require("../../utils/glob.cjs"),h={class:"__document-index __document-tests"},B={class:"tests-top"},g=["onClick"],y={key:0,class:"tests-test"},E={class:"tests-test-li"},x={key:1},C=e.defineComponent({__name:"index",setup(N){const o=e.ref([]),l=e.ref([]),u=e.ref(),r=e.ref(""),i=[{name:"全部",id:""},{name:"正常",id:"1"},{name:"更新",id:"2"},{name:"建议",id:"3"},{name:"错误",id:"4"},{name:"错误与建议",id:"5"},{name:"修改",id:"6"},{name:"完成建议修改",id:"7"},{name:"完成错误修改",id:"8"},{name:"完成全部修改",id:"9"}],a={};function _(n="",s){n=n+"";let t=a[n]||[];t.push(s),a[n]=t}function d(n){u.value=n,o.value=f.getTestName(n.key),l.value=[...o.value]}function v(n){let s=n.id;if(r.value=n.id,s){let t=a[s];t&&t.length>0?l.value=o.value.filter(c=>t.includes(c.key)):l.value=[]}else l.value=[...o.value]}return(n,s)=>(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(p,{onChange:d},{default:e.withCtx(()=>[e.createVNode(m,{value:u.value},null,8,["value"]),e.createElementVNode("div",B,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(t,c)=>e.createElementVNode("span",{class:e.normalizeClass(["but-div",{on:r.value==t.id}]),key:c,onClick:q=>v(t)},e.toDisplayString(t.name),11,g)),64))]),l.value&&l.value.length>0?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,t=>(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(k,{onState:_,value:t},null,8,["value"])]))),256))])):(e.openBlock(),e.createElementBlock("div",x,"没有查询到示例"))]),_:1})]))}});module.exports=C;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as g, ref as i, createElementBlock as s, openBlock as a, createVNode as
|
|
1
|
+
import { defineComponent as g, ref as i, createElementBlock as s, openBlock as a, createVNode as d, withCtx as y, createElementVNode as _, Fragment as v, renderList as f, normalizeClass as x, toDisplayString as $ } from "vue";
|
|
2
2
|
import N from "../../components/compo/info.vue.js";
|
|
3
3
|
import b from "../../components/choice/index.vue.js";
|
|
4
4
|
import B from "../../components/test/index.vue.js";
|
|
5
5
|
import { getTestName as E } from "../../utils/glob.js";
|
|
6
|
-
const L = { class: "__document-tests" }, S = { class: "tests-top" }, V = ["onClick"], j = {
|
|
6
|
+
const L = { class: "__document-index __document-tests" }, S = { class: "tests-top" }, V = ["onClick"], j = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "tests-test"
|
|
9
9
|
}, w = { class: "tests-test-li" }, z = { key: 1 }, H = /* @__PURE__ */ g({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(D) {
|
|
12
|
-
const o = i([]), n = i([]),
|
|
12
|
+
const o = i([]), n = i([]), r = i(), m = i(""), p = [
|
|
13
13
|
{ name: "全部", id: "" },
|
|
14
14
|
{ name: "正常", id: "1" },
|
|
15
15
|
{ name: "更新", id: "2" },
|
|
@@ -27,7 +27,7 @@ const L = { class: "__document-tests" }, S = { class: "tests-top" }, V = ["onCli
|
|
|
27
27
|
e.push(l), u[t] = e;
|
|
28
28
|
}
|
|
29
29
|
function k(t) {
|
|
30
|
-
|
|
30
|
+
r.value = t, o.value = E(t.key), n.value = [...o.value];
|
|
31
31
|
}
|
|
32
32
|
function C(t) {
|
|
33
33
|
let l = t.id;
|
|
@@ -38,9 +38,9 @@ const L = { class: "__document-tests" }, S = { class: "tests-top" }, V = ["onCli
|
|
|
38
38
|
n.value = [...o.value];
|
|
39
39
|
}
|
|
40
40
|
return (t, l) => (a(), s("div", L, [
|
|
41
|
-
|
|
41
|
+
d(b, { onChange: k }, {
|
|
42
42
|
default: y(() => [
|
|
43
|
-
|
|
43
|
+
d(N, { value: r.value }, null, 8, ["value"]),
|
|
44
44
|
_("div", S, [
|
|
45
45
|
(a(), s(v, null, f(p, (e, c) => _("span", {
|
|
46
46
|
class: x(["but-div", { on: m.value == e.id }]),
|
|
@@ -50,7 +50,7 @@ const L = { class: "__document-tests" }, S = { class: "tests-top" }, V = ["onCli
|
|
|
50
50
|
]),
|
|
51
51
|
n.value && n.value.length > 0 ? (a(), s("div", j, [
|
|
52
52
|
(a(!0), s(v, null, f(n.value, (e) => (a(), s("div", w, [
|
|
53
|
-
|
|
53
|
+
d(B, {
|
|
54
54
|
onState: h,
|
|
55
55
|
value: e
|
|
56
56
|
}, null, 8, ["value"])
|