@fangzhongya/vue-archive 0.0.41 → 0.0.43
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/compo/index.vue.cjs +1 -1
- package/dist/packages/components/compo/index.vue.js +35 -37
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +30 -26
- package/dist/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +13 -13
- package/dist/packages/page/develop/index.vue2.cjs +1 -1
- package/dist/packages/page/develop/index.vue2.js +14 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),d=require("../use/index.cjs"),_=require("./props.vue.cjs"),k=require("../../config.cjs"),f=require("../md/index.vue.cjs");require("./index.cjs");const m=require("../../utils/glob.cjs"),g={class:"compo"},B={key:0,class:"compo-md"},y={key:0,class:"compo-md-list"},C={key:1,class:"compo-use"},h=e.defineComponent({__name:"index",props:{value:Object},setup(i){const t=i,p=k.getConfig("useparam"),r=e.ref(""),c=e.reactive({md:!0}),o=e.ref([]),a=e.ref();function v(n){a.value=n}e.watch(()=>t.value,()=>{l()});function l(){t.value?.key&&(m.getLocalTextComponents(t.value?.key).then(n=>{r.value=n}),o.value=m.getKeyMds(t.value?.key)||[])}return l(),(n,u)=>(e.openBlock(),e.createElementBlock("div",g,[o.value&&o.value.length?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{onClick:u[0]||(u[0]=s=>c.md=!c.md),class:"compo-md-name"},"说明文档"),c.md?(e.openBlock(),e.createElementBlock("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createBlock(f,{value:s},null,8,["value"]))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createVNode(_,{onChange:v,value:r.value},null,8,["value"]),e.unref(p)?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(d),{value:t.value,param:a.value},null,8,["value","param"])])):e.createCommentVNode("",!0)]))}});module.exports=h;
|
|
@@ -1,67 +1,65 @@
|
|
|
1
|
-
import { defineComponent as g, ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import E from "
|
|
5
|
-
import
|
|
6
|
-
import b from "../md/index.vue.js";
|
|
1
|
+
import { defineComponent as g, ref as l, reactive as h, watch as y, createElementBlock as o, openBlock as e, createCommentVNode as m, createVNode as p, createElementVNode as C, Fragment as x, renderList as B, createBlock as N, unref as d } from "vue";
|
|
2
|
+
import V from "../use/index.js";
|
|
3
|
+
import $ from "./props.vue.js";
|
|
4
|
+
import { getConfig as E } from "../../config.js";
|
|
5
|
+
import L from "../md/index.vue.js";
|
|
7
6
|
import "./index.js";
|
|
8
|
-
import { getLocalTextComponents as
|
|
9
|
-
const
|
|
7
|
+
import { getLocalTextComponents as b, getKeyMds as j } from "../../utils/glob.js";
|
|
8
|
+
const w = { class: "compo" }, D = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "compo-md"
|
|
12
|
-
},
|
|
11
|
+
}, F = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "compo-md-list"
|
|
15
|
-
},
|
|
14
|
+
}, K = {
|
|
16
15
|
key: 1,
|
|
17
16
|
class: "compo-use"
|
|
18
|
-
},
|
|
17
|
+
}, G = /* @__PURE__ */ g({
|
|
19
18
|
__name: "index",
|
|
20
19
|
props: {
|
|
21
20
|
value: Object
|
|
22
21
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const t =
|
|
22
|
+
setup(f) {
|
|
23
|
+
const t = f, _ = E("useparam"), r = l(""), s = h({
|
|
25
24
|
md: !0
|
|
26
|
-
}), a =
|
|
25
|
+
}), a = l([]), u = l();
|
|
27
26
|
function k(n) {
|
|
28
|
-
|
|
27
|
+
u.value = n;
|
|
29
28
|
}
|
|
30
29
|
y(
|
|
31
30
|
() => t.value,
|
|
32
31
|
() => {
|
|
33
|
-
|
|
32
|
+
c();
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
|
-
function
|
|
37
|
-
t.value?.key && (
|
|
38
|
-
|
|
39
|
-
}), a.value =
|
|
35
|
+
function c() {
|
|
36
|
+
t.value?.key && (b(t.value?.key).then((n) => {
|
|
37
|
+
r.value = n;
|
|
38
|
+
}), a.value = j(t.value?.key) || []);
|
|
40
39
|
}
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
r(E, {
|
|
44
|
-
onChange: k,
|
|
45
|
-
value: c.value
|
|
46
|
-
}, null, 8, ["value"]),
|
|
47
|
-
a.value && a.value.length ? (e(), o("div", F, [
|
|
40
|
+
return c(), (n, i) => (e(), o("div", w, [
|
|
41
|
+
a.value && a.value.length ? (e(), o("div", D, [
|
|
48
42
|
C("div", {
|
|
49
|
-
onClick:
|
|
43
|
+
onClick: i[0] || (i[0] = (v) => s.md = !s.md),
|
|
50
44
|
class: "compo-md-name"
|
|
51
45
|
}, "说明文档"),
|
|
52
|
-
|
|
53
|
-
(e(!0), o(x, null,
|
|
54
|
-
])) :
|
|
55
|
-
])) :
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
s.md ? (e(), o("div", F, [
|
|
47
|
+
(e(!0), o(x, null, B(a.value, (v) => (e(), N(L, { value: v }, null, 8, ["value"]))), 256))
|
|
48
|
+
])) : m("", !0)
|
|
49
|
+
])) : m("", !0),
|
|
50
|
+
p($, {
|
|
51
|
+
onChange: k,
|
|
52
|
+
value: r.value
|
|
53
|
+
}, null, 8, ["value"]),
|
|
54
|
+
d(_) ? (e(), o("div", K, [
|
|
55
|
+
p(d(V), {
|
|
58
56
|
value: t.value,
|
|
59
|
-
param:
|
|
57
|
+
param: u.value
|
|
60
58
|
}, null, 8, ["value", "param"])
|
|
61
|
-
])) :
|
|
59
|
+
])) : m("", !0)
|
|
62
60
|
]));
|
|
63
61
|
}
|
|
64
62
|
});
|
|
65
63
|
export {
|
|
66
|
-
|
|
64
|
+
G as default
|
|
67
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),v=require("vue-router"),r=require("../../router/index.cjs"),d=require("../compo/index.vue.cjs"),_=require("../test/index.vue.cjs"),p=require("../../utils/glob.cjs"),
|
|
1
|
+
"use strict";const e=require("vue"),v=require("vue-router"),r=require("../../router/index.cjs"),d=require("../compo/index.vue.cjs"),_=require("../compo/info.vue.cjs"),m=require("../test/index.vue.cjs"),p=require("../../utils/glob.cjs"),N={class:"main"},f={class:"main-top"},k={class:"main-but"},E={class:"main-test"},V={class:"main-compo"},g=e.defineComponent({__name:"index",props:{value:Object},setup(i){const l=v.useRouter(),t=i,c=e.ref([]);e.watch(()=>t.value,()=>{a()});function a(){c.value=p.getTestName(t.value?.key)}a();function u(o){o==1?r.toCompon(l,t.value):o==2?r.toTests(l,t.value):o==3&&r.toDevelop(l,t.value)}return(o,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",f,[e.createVNode(_,{value:i.value},null,8,["value"])]),e.createElementVNode("div",k,[e.createElementVNode("div",{class:"but-div",onClick:n[0]||(n[0]=s=>u(1))},"当前"),e.createElementVNode("div",{class:"but-div",onClick:n[1]||(n[1]=s=>u(2))},"更多"),e.createElementVNode("div",{class:"but-div",onClick:n[2]||(n[2]=s=>u(3))},"开发")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(m,{value:s},null,8,["value"])]))),256)),e.createElementVNode("div",V,[e.createVNode(d,{value:t.value},null,8,["value"])])]))}});module.exports=g;
|
|
@@ -1,55 +1,59 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f, watch as p, createElementBlock as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { toCompon as
|
|
1
|
+
import { defineComponent as d, ref as f, watch as p, createElementBlock as a, openBlock as u, createElementVNode as o, createVNode as r, Fragment as _, renderList as C } from "vue";
|
|
2
|
+
import { useRouter as $ } from "vue-router";
|
|
3
|
+
import { toCompon as b, toTests as k, toDevelop as g } from "../../router/index.js";
|
|
4
4
|
import x from "../compo/index.vue.js";
|
|
5
|
-
import N from "../
|
|
6
|
-
import
|
|
7
|
-
|
|
5
|
+
import N from "../compo/info.vue.js";
|
|
6
|
+
import B from "../test/index.vue.js";
|
|
7
|
+
import { getTestName as E } from "../../utils/glob.js";
|
|
8
|
+
const T = { class: "main" }, V = { class: "main-top" }, h = { class: "main-but" }, j = { class: "main-test" }, w = { class: "main-compo" }, A = /* @__PURE__ */ d({
|
|
8
9
|
__name: "index",
|
|
9
10
|
props: {
|
|
10
11
|
value: Object
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const i =
|
|
13
|
+
setup(m) {
|
|
14
|
+
const i = $(), e = m, v = f([]);
|
|
14
15
|
p(
|
|
15
16
|
() => e.value,
|
|
16
17
|
() => {
|
|
17
|
-
|
|
18
|
+
c();
|
|
18
19
|
}
|
|
19
20
|
);
|
|
20
|
-
function
|
|
21
|
-
|
|
21
|
+
function c() {
|
|
22
|
+
v.value = E(e.value?.key);
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
c();
|
|
24
25
|
function l(s) {
|
|
25
|
-
s == 1 ?
|
|
26
|
+
s == 1 ? b(i, e.value) : s == 2 ? k(i, e.value) : s == 3 && g(i, e.value);
|
|
26
27
|
}
|
|
27
|
-
return (s, t) => (
|
|
28
|
-
o("div", T, [
|
|
29
|
-
m(x, {
|
|
30
|
-
value: e.value
|
|
31
|
-
}, null, 8, ["value"])
|
|
32
|
-
]),
|
|
28
|
+
return (s, t) => (u(), a("div", T, [
|
|
33
29
|
o("div", V, [
|
|
30
|
+
r(N, { value: m.value }, null, 8, ["value"])
|
|
31
|
+
]),
|
|
32
|
+
o("div", h, [
|
|
34
33
|
o("div", {
|
|
35
34
|
class: "but-div",
|
|
36
35
|
onClick: t[0] || (t[0] = (n) => l(1))
|
|
37
|
-
}, "
|
|
36
|
+
}, "当前"),
|
|
38
37
|
o("div", {
|
|
39
38
|
class: "but-div",
|
|
40
39
|
onClick: t[1] || (t[1] = (n) => l(2))
|
|
41
|
-
}, "
|
|
40
|
+
}, "更多"),
|
|
42
41
|
o("div", {
|
|
43
42
|
class: "but-div",
|
|
44
43
|
onClick: t[2] || (t[2] = (n) => l(3))
|
|
45
|
-
}, "
|
|
44
|
+
}, "开发")
|
|
46
45
|
]),
|
|
47
|
-
(
|
|
48
|
-
|
|
49
|
-
]))), 256))
|
|
46
|
+
(u(!0), a(_, null, C(v.value, (n) => (u(), a("div", j, [
|
|
47
|
+
r(B, { value: n }, null, 8, ["value"])
|
|
48
|
+
]))), 256)),
|
|
49
|
+
o("div", w, [
|
|
50
|
+
r(x, {
|
|
51
|
+
value: e.value
|
|
52
|
+
}, null, 8, ["value"])
|
|
53
|
+
])
|
|
50
54
|
]));
|
|
51
55
|
}
|
|
52
56
|
});
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
A as default
|
|
55
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),g=require("./set-props.vue.cjs"),y=require("./set-emit.vue.cjs");;/* empty css */const T=require("./set-code.vue.cjs"),C=require("./set-expose.vue.cjs");;/* empty css */const b=require("./set-slot.vue.cjs"),E=require("./code.cjs"),l=require("../../utils/props.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");const x=require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const j=s.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,U,v,D,u){const p=s.reactive({emitValue:{},slotValue:{}}),r=v.value;let c="div";r.component?c=s.defineAsyncComponent(r.component):r.name&&(c=s.resolveComponent(r.name));const i=v.param||{},h=l.getPropsValue(i.propss||[]),m=l.getEmitsValue(i.emitss||[]),V=l.getExposeValue(i.exposes||[]),f=l.getSlotValue(i.slots||[]),a={},q={};h.forEach(t=>{let e=t.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(a[e]=u.propsValue[e]??E.getDefaultValue(t),o&&o.length>1&&m.push({name:"update:"+e,description:t.description,selectable:"value:["+t.type+"]"}))}}),m.forEach(t=>{let e=t.name;if(e.includes("-")){let n=e.split("-");n=n.map((_,P)=>x.firstUpper(_)),e=n.join("")}else e=x.firstUpper(e);const o="on"+e;a[o]=(...n)=>{const _={arr:n,_date_:new Date().getTime()};p.emitValue[t.name]=_}});let d;return f.forEach(t=>{const e=t.name||"default";q[e]=o=>{if(p.slotValue[e]){const n=p.slotValue[e];return s.h(s.defineComponent({props:{scope:{type:Object}},template:n}),{scope:o})}}}),s.h("div",{class:"use"},[s.h("div",{class:"use-
|
|
1
|
+
"use strict";const s=require("vue"),g=require("./set-props.vue.cjs"),y=require("./set-emit.vue.cjs");;/* empty css */const T=require("./set-code.vue.cjs"),C=require("./set-expose.vue.cjs");;/* empty css */const b=require("./set-slot.vue.cjs"),E=require("./code.cjs"),l=require("../../utils/props.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");require("@fangzhongya/utils/name/humpToLine");require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");const x=require("@fangzhongya/utils/basic/string/firstUpper");require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const j=s.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,U,v,D,u){const p=s.reactive({emitValue:{},slotValue:{}}),r=v.value;let c="div";r.component?c=s.defineAsyncComponent(r.component):r.name&&(c=s.resolveComponent(r.name));const i=v.param||{},h=l.getPropsValue(i.propss||[]),m=l.getEmitsValue(i.emitss||[]),V=l.getExposeValue(i.exposes||[]),f=l.getSlotValue(i.slots||[]),a={},q={};h.forEach(t=>{let e=t.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(a[e]=u.propsValue[e]??E.getDefaultValue(t),o&&o.length>1&&m.push({name:"update:"+e,description:t.description,selectable:"value:["+t.type+"]"}))}}),m.forEach(t=>{let e=t.name;if(e.includes("-")){let n=e.split("-");n=n.map((_,P)=>x.firstUpper(_)),e=n.join("")}else e=x.firstUpper(e);const o="on"+e;a[o]=(...n)=>{const _={arr:n,_date_:new Date().getTime()};p.emitValue[t.name]=_}});let d;return f.forEach(t=>{const e=t.name||"default";q[e]=o=>{if(p.slotValue[e]){const n=p.slotValue[e];return s.h(s.defineComponent({props:{scope:{type:Object}},template:n}),{scope:o})}}}),s.h("div",{class:"use"},[s.h("div",{class:"use-component"},s.h(c,{...a,ref:t=>{d=t}},q)),s.h("div",{class:"use-code"},s.h(T,{name:r.name,param:i,value:a,propsText:u.propsText,exposeText:u.exposeText,slotValue:p.slotValue})),s.h("div",{class:"use-props"},s.h(g,{name:r.name,list:h,onChange:(t,e)=>{u.propsValue=t,u.propsText=e}})),s.h("div",{class:"use-emit"},s.h(y,{name:r.name,list:m,value:p.emitValue})),s.h("div",{class:"use-expose"},s.h(C,{name:r.name,list:V,getRef:()=>d,onChange:t=>{u.exposeText=t}})),s.h("div",{class:"use-slot"},s.h(b,{name:r.name,list:f,onChange:(t,e)=>{p.slotValue[t]=e}}))])},data(){return{propsValue:{},propsText:{},exposeText:{}}}});module.exports=j;
|
|
@@ -92,19 +92,6 @@ const me = _({
|
|
|
92
92
|
class: "use"
|
|
93
93
|
},
|
|
94
94
|
[
|
|
95
|
-
s(
|
|
96
|
-
"div",
|
|
97
|
-
{
|
|
98
|
-
class: "use-props"
|
|
99
|
-
},
|
|
100
|
-
s(C, {
|
|
101
|
-
name: o.name,
|
|
102
|
-
list: d,
|
|
103
|
-
onChange: (t, e) => {
|
|
104
|
-
r.propsValue = t, r.propsText = e;
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
|
-
),
|
|
108
95
|
s(
|
|
109
96
|
"div",
|
|
110
97
|
{
|
|
@@ -135,6 +122,19 @@ const me = _({
|
|
|
135
122
|
slotValue: n.slotValue
|
|
136
123
|
})
|
|
137
124
|
),
|
|
125
|
+
s(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
class: "use-props"
|
|
129
|
+
},
|
|
130
|
+
s(C, {
|
|
131
|
+
name: o.name,
|
|
132
|
+
list: d,
|
|
133
|
+
onChange: (t, e) => {
|
|
134
|
+
r.propsValue = t, r.propsText = e;
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
),
|
|
138
138
|
s(
|
|
139
139
|
"div",
|
|
140
140
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../components/compo/index.vue.cjs"),n=require("../../components/choice/index.vue.cjs"),
|
|
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(l){return(o,s)=>(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,{value:t.value},null,8,["value"])]),_:1})]))}});module.exports=c;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as n, openBlock as _, createVNode as e, withCtx as
|
|
2
|
-
import
|
|
3
|
-
import m from "../../components/
|
|
4
|
-
|
|
1
|
+
import { defineComponent as t, createElementBlock as n, openBlock as _, createVNode as e, withCtx as a } from "vue";
|
|
2
|
+
import l from "../../components/compo/info.vue.js";
|
|
3
|
+
import m from "../../components/compo/index.vue.js";
|
|
4
|
+
import r from "../../components/choice/index.vue.js";
|
|
5
|
+
const c = { class: "__document-compon" }, x = /* @__PURE__ */ t({
|
|
5
6
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
return (i,
|
|
8
|
-
e(
|
|
9
|
-
default:
|
|
10
|
-
e(
|
|
7
|
+
setup(u) {
|
|
8
|
+
return (i, f) => (_(), n("div", c, [
|
|
9
|
+
e(r, null, {
|
|
10
|
+
default: a((o) => [
|
|
11
|
+
e(l, {
|
|
12
|
+
value: o.value
|
|
13
|
+
}, null, 8, ["value"]),
|
|
14
|
+
e(m, {
|
|
11
15
|
value: o.value
|
|
12
16
|
}, null, 8, ["value"])
|
|
13
17
|
]),
|
|
@@ -17,5 +21,5 @@ const r = { class: "__document-compon" }, d = /* @__PURE__ */ t({
|
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
23
|
export {
|
|
20
|
-
|
|
24
|
+
x as default
|
|
21
25
|
};
|