@fangzhongya/vue-archive 0.0.41 → 0.0.42
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"),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"),m={class:"main"},k={class:"main-
|
|
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"),m={class:"main"},k={class:"main-but"},f={class:"main-test"},E={class:"main-top"},N=e.defineComponent({__name:"index",props:{value:Object},setup(a){const l=v.useRouter(),t=a,i=e.ref([]);e.watch(()=>t.value,()=>{c()});function c(){i.value=p.getTestName(t.value?.key)}c();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",m,[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(i.value,s=>(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(_,{value:s},null,8,["value"])]))),256)),e.createElementVNode("div",E,[e.createVNode(d,{value:t.value},null,8,["value"])])]))}});module.exports=N;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f, watch as p, createElementBlock as r, openBlock as a, createElementVNode as o,
|
|
1
|
+
import { defineComponent as d, ref as f, watch as p, createElementBlock as r, openBlock as a, createElementVNode as o, Fragment as _, renderList as C, createVNode as m } from "vue";
|
|
2
2
|
import { useRouter as b } from "vue-router";
|
|
3
3
|
import { toCompon as k, toTests as $, toDevelop as g } from "../../router/index.js";
|
|
4
4
|
import x from "../compo/index.vue.js";
|
|
5
5
|
import N from "../test/index.vue.js";
|
|
6
6
|
import { getTestName as B } from "../../utils/glob.js";
|
|
7
|
-
const E = { class: "main" }, T = { class: "main-
|
|
7
|
+
const E = { class: "main" }, T = { class: "main-but" }, V = { class: "main-test" }, j = { class: "main-top" }, h = /* @__PURE__ */ d({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
10
10
|
value: Object
|
|
@@ -26,27 +26,27 @@ const E = { class: "main" }, T = { class: "main-top" }, V = { class: "main-but"
|
|
|
26
26
|
}
|
|
27
27
|
return (s, t) => (a(), r("div", E, [
|
|
28
28
|
o("div", T, [
|
|
29
|
-
m(x, {
|
|
30
|
-
value: e.value
|
|
31
|
-
}, null, 8, ["value"])
|
|
32
|
-
]),
|
|
33
|
-
o("div", V, [
|
|
34
29
|
o("div", {
|
|
35
30
|
class: "but-div",
|
|
36
31
|
onClick: t[0] || (t[0] = (n) => l(1))
|
|
37
|
-
}, "
|
|
32
|
+
}, "当前"),
|
|
38
33
|
o("div", {
|
|
39
34
|
class: "but-div",
|
|
40
35
|
onClick: t[1] || (t[1] = (n) => l(2))
|
|
41
|
-
}, "
|
|
36
|
+
}, "更多"),
|
|
42
37
|
o("div", {
|
|
43
38
|
class: "but-div",
|
|
44
39
|
onClick: t[2] || (t[2] = (n) => l(3))
|
|
45
|
-
}, "
|
|
40
|
+
}, "开发")
|
|
46
41
|
]),
|
|
47
|
-
(a(!0), r(_, null, C(u.value, (n) => (a(), r("div",
|
|
42
|
+
(a(!0), r(_, null, C(u.value, (n) => (a(), r("div", V, [
|
|
48
43
|
m(N, { value: n }, null, 8, ["value"])
|
|
49
|
-
]))), 256))
|
|
44
|
+
]))), 256)),
|
|
45
|
+
o("div", j, [
|
|
46
|
+
m(x, {
|
|
47
|
+
value: e.value
|
|
48
|
+
}, null, 8, ["value"])
|
|
49
|
+
])
|
|
50
50
|
]));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -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
|
{
|