@fangzhongya/vue-archive 0.0.55 → 0.0.57
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/index.css +1 -1
- package/dist/packages/components/choice/index.vue.cjs +1 -1
- package/dist/packages/components/choice/index.vue.js +52 -38
- package/dist/packages/components/code/highlight.vue.cjs +1 -1
- package/dist/packages/components/code/index.vue.cjs +1 -1
- package/dist/packages/components/compo/code.vue.cjs +1 -0
- package/dist/packages/components/compo/code.vue.js +21 -0
- package/dist/packages/components/compo/code.vue3.cjs +1 -0
- package/dist/packages/components/compo/code.vue3.js +5 -0
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +36 -32
- package/dist/packages/components/test/index.vue.cjs +1 -1
- package/dist/packages/components/use/code.vue.cjs +1 -0
- package/dist/packages/components/use/code.vue.js +66 -0
- package/dist/packages/components/use/code.vue2.cjs +1 -0
- package/dist/packages/components/use/code.vue2.js +4 -0
- package/dist/packages/components/use/edit.cjs +18 -0
- package/dist/packages/components/use/edit.d.ts +32 -0
- package/dist/packages/components/use/edit.js +187 -0
- package/dist/packages/components/use/effect.d.ts +18 -0
- package/dist/packages/components/use/effect.vue.cjs +1 -0
- package/dist/packages/components/use/effect.vue.js +12 -0
- package/dist/packages/components/use/retrie/array/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/index.d.ts +1 -1
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/input/text.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/object/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
- package/dist/packages/components/use/set-code.vue.cjs +1 -1
- package/dist/packages/components/use/set-code.vue.js +17 -58
- 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.vue.cjs +1 -0
- package/dist/packages/page/edit/index.vue.js +4 -0
- package/dist/packages/page/edit/index.vue2.cjs +1 -0
- package/dist/packages/page/edit/index.vue2.js +23 -0
- 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/dist/packages/router/file.cjs +1 -1
- package/dist/packages/router/file.js +5 -4
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.d.ts +1 -0
- package/dist/packages/router/index.js +55 -45
- package/package.json +1 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import * as d from "vue";
|
|
2
|
+
import { defineComponent as y, defineAsyncComponent as h, resolveComponent as $, h as n, ref as k, onMounted as g } from "vue";
|
|
3
|
+
import C from "./code.vue.js";
|
|
4
|
+
import a from "./retrie/input/index.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import x from "./effect.vue.js";
|
|
7
|
+
const _ = y({
|
|
8
|
+
/**
|
|
9
|
+
* @props {Stinrg} value 插入数据
|
|
10
|
+
*/
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: Object
|
|
14
|
+
},
|
|
15
|
+
param: {
|
|
16
|
+
type: Object
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
template: "",
|
|
22
|
+
script: "",
|
|
23
|
+
style: "",
|
|
24
|
+
vueHtml: ""
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
setup(m) {
|
|
28
|
+
function v(s) {
|
|
29
|
+
const l = document.getElementsByTagName("head")[0], c = "data-vite-dev-id", o = s + ".css", r = l.querySelector(`style[${c}="${o}"]`);
|
|
30
|
+
if (r)
|
|
31
|
+
return r;
|
|
32
|
+
{
|
|
33
|
+
let e = document.createElement("style");
|
|
34
|
+
return e.appendChild(document.createTextNode("")), e.setAttribute("type", "text/css"), e.setAttribute(c, o), l.appendChild(e), e;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function u(s, l = "", c) {
|
|
38
|
+
const o = [], r = m.value?.name;
|
|
39
|
+
let e = "";
|
|
40
|
+
return Object.keys(d).forEach((p) => {
|
|
41
|
+
l.includes(p + "(") && o.push(p);
|
|
42
|
+
}), o.length > 0 && (e = `import { ${o.join(" , ")} } from 'vue';`), `<!--${r}-->
|
|
43
|
+
<template>
|
|
44
|
+
${s}
|
|
45
|
+
</template>
|
|
46
|
+
<script>
|
|
47
|
+
${e}
|
|
48
|
+
export default {
|
|
49
|
+
setup(props, ctx) {
|
|
50
|
+
${l}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
<\/script>
|
|
54
|
+
<style>
|
|
55
|
+
${c}
|
|
56
|
+
</style>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
function i(s, l, c) {
|
|
60
|
+
try {
|
|
61
|
+
const o = Object.keys(d);
|
|
62
|
+
return new Function(
|
|
63
|
+
"props",
|
|
64
|
+
"ctx",
|
|
65
|
+
"vue",
|
|
66
|
+
` "use strict";
|
|
67
|
+
const { ${o.join(",")} } = vue;
|
|
68
|
+
${s}; `
|
|
69
|
+
)(l, c, d);
|
|
70
|
+
} catch (o) {
|
|
71
|
+
console.error("Code block execution failed:", o);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const t = k(null);
|
|
75
|
+
return g(() => {
|
|
76
|
+
t.value = v(m.value?.key);
|
|
77
|
+
}), {
|
|
78
|
+
getHmtlVue: u,
|
|
79
|
+
getCodeBlock: i,
|
|
80
|
+
style: t
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
render(m, v, u, i, t) {
|
|
84
|
+
const s = u.value;
|
|
85
|
+
let l = "div";
|
|
86
|
+
s.component ? l = h(s.component) : s.name && (l = $(s.name));
|
|
87
|
+
const c = {};
|
|
88
|
+
c[s.name] = l;
|
|
89
|
+
const o = () => {
|
|
90
|
+
const e = i.getHmtlVue(t.template, t.script, t.style);
|
|
91
|
+
t.vueHtml = e;
|
|
92
|
+
}, r = () => {
|
|
93
|
+
i.style.innerHTML = t.style, o();
|
|
94
|
+
};
|
|
95
|
+
return n(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
class: "code-edit"
|
|
99
|
+
},
|
|
100
|
+
[
|
|
101
|
+
n(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
class: "edit-effect use"
|
|
105
|
+
},
|
|
106
|
+
[
|
|
107
|
+
n(
|
|
108
|
+
x,
|
|
109
|
+
{
|
|
110
|
+
class: "use-component"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
default: () => n(
|
|
114
|
+
y({
|
|
115
|
+
components: c,
|
|
116
|
+
setup(e, f) {
|
|
117
|
+
return i.getCodeBlock(
|
|
118
|
+
t.script,
|
|
119
|
+
e,
|
|
120
|
+
f
|
|
121
|
+
);
|
|
122
|
+
},
|
|
123
|
+
template: t.template
|
|
124
|
+
})
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
n(C, {
|
|
129
|
+
html: t.vueHtml,
|
|
130
|
+
name: s.name + "_edit",
|
|
131
|
+
onRefresh: o
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
),
|
|
135
|
+
n(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
class: "edit-input"
|
|
139
|
+
},
|
|
140
|
+
[
|
|
141
|
+
n(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
onClick: r
|
|
145
|
+
},
|
|
146
|
+
"运行"
|
|
147
|
+
),
|
|
148
|
+
n("div", {}, [
|
|
149
|
+
n("div", {}, "template"),
|
|
150
|
+
n(a, {
|
|
151
|
+
check: (e) => e,
|
|
152
|
+
modelValue: t.template,
|
|
153
|
+
"onUpdate:modelValue": (e) => {
|
|
154
|
+
t.template = e;
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
n("div", {}, [
|
|
159
|
+
n("div", {}, "script"),
|
|
160
|
+
n("div", {}, "setup(props, ctx)"),
|
|
161
|
+
n(a, {
|
|
162
|
+
check: (e) => e,
|
|
163
|
+
modelValue: t.script,
|
|
164
|
+
"onUpdate:modelValue": (e) => {
|
|
165
|
+
t.script = e;
|
|
166
|
+
}
|
|
167
|
+
})
|
|
168
|
+
]),
|
|
169
|
+
n("div", {}, [
|
|
170
|
+
n("div", {}, "style"),
|
|
171
|
+
n(a, {
|
|
172
|
+
check: (e) => e,
|
|
173
|
+
modelValue: t.style,
|
|
174
|
+
"onUpdate:modelValue": (e) => {
|
|
175
|
+
t.style = e;
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
])
|
|
179
|
+
]
|
|
180
|
+
)
|
|
181
|
+
]
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
export {
|
|
186
|
+
_ as default
|
|
187
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),c=require("../../../_virtual/_plugin-vue_export-helper.cjs"),r={},s={class:"use-effect"};function n(t,u){return e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(t.$slots,"default")])}const o=c(r,[["render",n]]);module.exports=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as o, renderSlot as c } from "vue";
|
|
2
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const s = {}, f = { class: "use-effect" };
|
|
4
|
+
function n(e, _) {
|
|
5
|
+
return o(), t("div", f, [
|
|
6
|
+
c(e.$slots, "default")
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const d = /* @__PURE__ */ r(s, [["render", n]]);
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),d={class:"form-array"},p=n.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(i,{emit:
|
|
1
|
+
"use strict";const n=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),d={class:"form-array"},p=n.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(i,{emit:s}){const u=i,o=s,l=n.ref("");n.watch(()=>u.modelValue,()=>{let e=u.modelValue;l.value=a(e)||e},{immediate:!0});function c(e){return new Function("",`{return ${e}}`)}function a(e){let r;if(e)try{let t=e;typeof e=="string"?(t=c(e)(),r=f.prettierArrFormat(e)):r=JSON.stringify(e),t instanceof Array?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`[
|
|
2
2
|
|
|
3
3
|
]`,o("value",void 0,r),o("error",!1);return r}return(e,r)=>(n.openBlock(),n.createElementBlock("div",d,[n.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=t=>l.value=t),check:a},null,8,["modelValue"])]))}});module.exports=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),f={class:"form-boolean"},c=["disabled","checked"],m=["disabled","checked"],p=e.defineComponent({__name:"index",props:{modelValue:{type:null},list:{type:Array},disabled:Boolean,config:{type:Object,default(){return{}}}},emits:["value","error"],setup(i,{emit:
|
|
1
|
+
"use strict";const e=require("vue"),f={class:"form-boolean"},c=["disabled","checked"],m=["disabled","checked"],p=e.defineComponent({__name:"index",props:{modelValue:{type:null},list:{type:Array},disabled:Boolean,config:{type:Object,default(){return{}}}},emits:["value","error"],setup(i,{emit:s}){const r=i,a=s,o=e.ref(!1);e.watch(()=>r.modelValue,()=>{let t=r.modelValue;n(t)},{immediate:!0});function d(t){return typeof t=="string"?t==="true"||t==="1":typeof t=="boolean"&&t===!0?!0:typeof t=="number"&&t===1}function n(t){o.value=d(t)||!1,a("value",o.value,JSON.stringify(o.value))}return(t,l)=>(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("div",{class:"form-boolean-div",onClick:l[0]||(l[0]=e.withModifiers(u=>n(!0),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"true",disabled:r.disabled,checked:o.value},null,8,c),l[2]||(l[2]=e.createElementVNode("label",{for:"true"},"true",-1))]),e.createElementVNode("div",{class:"form-boolean-div",onClick:l[1]||(l[1]=e.withModifiers(u=>n(!1),["stop"]))},[e.createElementVNode("input",{type:"radio",value:"false",disabled:r.disabled,checked:!o.value},null,8,m),l[3]||(l[3]=e.createElementVNode("label",{for:"false"},"false",-1))])]))}});module.exports=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("../../util.cjs"),g=require("../index.vue.cjs");;/* empty css */const y={class:"expose"},h={class:"expose-label"},x={class:"expose-return"},S=e.defineComponent({__name:"index",props:{getRef:{type:Function},name:String,value:{type:Object}},emits:["change"],setup(p,{emit:m}){const
|
|
1
|
+
"use strict";const e=require("vue"),d=require("../../util.cjs"),g=require("../index.vue.cjs");;/* empty css */const y={class:"expose"},h={class:"expose-label"},x={class:"expose-return"},S=e.defineComponent({__name:"index",props:{getRef:{type:Function},name:String,value:{type:Object}},emits:["change"],setup(p,{emit:m}){const a=p,v=m,c=e.ref(""),i=e.ref(""),o=e.ref([]),f=e.computed(()=>{o.value=[];const n=a.value;if(n&&n.name){let l=(n.selectable+"").trim();if(c.value=n.name+": "+n.description+" 入参=("+l+") 返回值: "+n.type,l){let r=d.parseParamString(l);return r.forEach(t=>{t.prop=t.name,o.value.push(t.name)}),r}}return[]});function _(n,l){let r=a.getRef?a.getRef():void 0,t=a.value?.name;if(t){let u=o.value.map(s=>n[s]);if(r&&r[t]){if(typeof r[t]=="function"){let s=r[t](...u);i.value=JSON.stringify(s)}else{let s=r[t];s instanceof HTMLDivElement?i.value=s.outerHTML:i.value=JSON.stringify(s)}v("change",t,u,typeof r[t],l)}}else console.log("请选择方法")}return(n,l)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",h,e.toDisplayString(c.value||"请选择方法"),1),e.createVNode(g,{list:f.value,name:a.name,queryName:"调用",onQuery:_},null,8,["list","name"]),e.createElementVNode("div",x,e.toDisplayString(a.value?.type)+"返回值:"+e.toDisplayString(i.value),1)]))}});module.exports=S;
|
|
@@ -109,10 +109,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
109
109
|
}>> & Readonly<{
|
|
110
110
|
onQuery?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}>, {
|
|
112
|
+
refresh: number;
|
|
112
113
|
modelValue: any;
|
|
113
114
|
list: ObjUnk[];
|
|
114
115
|
selects: Record<string, any>;
|
|
115
|
-
refresh: number;
|
|
116
116
|
queryName: string;
|
|
117
117
|
defaultQuery: boolean;
|
|
118
118
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),p=require("./text.vue.cjs");;/* empty css */const m=require("./codemirror.vue.cjs"),d={class:"form-input"},i=e.defineComponent({__name:"index",props:{modelValue:{type:null},check:{type:Function,default(){return""}},format:{type:String,default:"js"}},emits:["update:modelValue"],setup(c,{emit:n}){const t=c,a=e.ref(0),s=n,o=e.computed({get(){return t.modelValue},set(r){s("update:modelValue",r)}});return(r,u)=>(e.openBlock(),e.createElementBlock("div",d,[a.value==1?(e.openBlock(),e.createBlock(m,{key:0,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=l=>o.value=l),format:t.format,check:t.check},null,8,["modelValue","format","check"])):(e.openBlock(),e.createBlock(p,{key:1,modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=l=>o.value=l),check:t.check},null,8,["modelValue","check"]))]))}});module.exports=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),
|
|
1
|
+
"use strict";const e=require("vue"),a=["value"],p=e.defineComponent({__name:"text",props:{modelValue:{type:null},check:{type:Function,default(){return""}}},emits:["update:modelValue"],setup(l,{emit:c}){const t=l,r=c;function s(n){const o=n.target?.value;let u=t.check(o);u&&r("update:modelValue",u)}return(n,o)=>(e.openBlock(),e.createElementBlock("textarea",{class:"form-input-text",rows:"5",value:t.modelValue,onBlur:s},null,40,a))}});module.exports=p;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),p={class:"form-object"},d=l.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(c,{emit:
|
|
1
|
+
"use strict";const l=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const f=require("../../util.cjs"),p={class:"form-object"},d=l.defineComponent({__name:"index",props:{modelValue:{type:null}},emits:["value","error"],setup(c,{emit:s}){const u=c,o=s,n=l.ref("");l.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=i(e)||e},{immediate:!0});function a(e){return new Function("",`{ return ${e} }`)}function i(e){let r;if(e)try{let t=e;typeof e=="string"?(t=a(e)(),r=f.prettierObjFormat(e)):r=JSON.stringify(e),typeof t=="object"?(o("value",t,r),o("error",!1)):(o("error",!0),console.log("error","类型不匹配"))}catch(t){o("error",!0),console.log("error",t)}else r=`{
|
|
2
2
|
|
|
3
3
|
}`,o("value",void 0,r),o("error",!1);return r}return(e,r)=>(l.openBlock(),l.createElementBlock("div",p,[l.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t),check:i},null,8,["modelValue"])]))}});module.exports=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const
|
|
1
|
+
"use strict";const o=require("vue"),m=require("../input/index.vue.cjs");;/* empty css */const i=require("../../util.cjs"),f={class:"form-other"},v=o.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","error"],setup(c,{emit:p}){const u=c,t=p,n=o.ref("");o.watch(()=>u.modelValue,()=>{let e=u.modelValue;n.value=a(e)||e},{immediate:!0});function d(e){return new Function("",`{ return ${e} }`)}function a(e){let r;if(e)try{const s=d(e)();i.isTypeEqual(s,u.dataType||[])?(r=i.prettierFormat(e),t("value",s,r),t("error",!1)):(t("error",!0),console.log("error","类型不匹配"))}catch(l){t("error",!0),console.log("error",l)}else r="",t("value",void 0,r),t("error",!1);return r}return(e,r)=>(o.openBlock(),o.createElementBlock("div",f,[o.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=l=>n.value=l),check:a},null,8,["modelValue"])]))}});module.exports=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("../input/index.vue.cjs");;/* empty css */const a={class:"slot"},_=e.defineComponent({__name:"index",props:{value:{type:Object}},emits:["change","error"],setup(d,{emit:c}){const o=e.ref(""),n=c;function
|
|
1
|
+
"use strict";const e=require("vue"),i=require("../input/index.vue.cjs");;/* empty css */const a={class:"slot"},_=e.defineComponent({__name:"index",props:{value:{type:Object}},emits:["change","error"],setup(d,{emit:c}){const o=e.ref(""),n=c;function s(){const t=o.value.toString();try{n("change",t),n("error",!1)}catch(r){n("error",!0),console.log("error",r)}}function l(t){return t}return(t,r)=>(e.openBlock(),e.createElementBlock("div",a,[e.createVNode(i,{format:"html",modelValue:o.value,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),check:l},null,8,["modelValue"]),e.createElementVNode("div",{onClick:e.withModifiers(s,["stop"]),class:"but-div"},"插入")]))}});module.exports=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./code.vue.cjs"),n=require("./code.cjs"),r={class:"set-code"},a=t.defineComponent({__name:"set-code",props:{name:{type:String},param:{type:Object},value:{type:Object},slotValue:{type:Object},propsText:{type:Object},exposeText:{type:Object}},setup(c){const e=c,o=t.ref("");t.watch([()=>e.name,()=>e.param,()=>e.value,()=>e.slotValue,()=>e.propsText,()=>e.exposeText],()=>{s()},{deep:!0});function s(){o.value=n.getHmtl(e.name||"",e.param||{},e.value||{},e.slotValue,e.propsText,e.exposeText)}return(l,u)=>(t.openBlock(),t.createElementBlock("div",r,[t.createVNode(p,{name:e.name,html:o.value,onRefresh:s},null,8,["name","html"])]))}});module.exports=a;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { exportStringToFile as T } from "../../utils/util.js";
|
|
6
|
-
const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { class: "set-code-html" }, H = /* @__PURE__ */ v({
|
|
1
|
+
import { defineComponent as p, ref as n, watch as r, createElementBlock as s, openBlock as c, createVNode as m } from "vue";
|
|
2
|
+
import l from "./code.vue.js";
|
|
3
|
+
import { getHmtl as u } from "./code.js";
|
|
4
|
+
const f = { class: "set-code" }, v = /* @__PURE__ */ p({
|
|
7
5
|
__name: "set-code",
|
|
8
6
|
props: {
|
|
9
7
|
name: {
|
|
@@ -25,9 +23,9 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
|
|
|
25
23
|
type: Object
|
|
26
24
|
}
|
|
27
25
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const e =
|
|
30
|
-
|
|
26
|
+
setup(a) {
|
|
27
|
+
const e = a, t = n("");
|
|
28
|
+
r(
|
|
31
29
|
[
|
|
32
30
|
() => e.name,
|
|
33
31
|
() => e.param,
|
|
@@ -37,20 +35,12 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
|
|
|
37
35
|
() => e.exposeText
|
|
38
36
|
],
|
|
39
37
|
() => {
|
|
40
|
-
o
|
|
41
|
-
e.name || "",
|
|
42
|
-
e.param || {},
|
|
43
|
-
e.value || {},
|
|
44
|
-
e.slotValue,
|
|
45
|
-
e.propsText,
|
|
46
|
-
e.exposeText
|
|
47
|
-
);
|
|
38
|
+
o();
|
|
48
39
|
},
|
|
49
40
|
{ deep: !0 }
|
|
50
41
|
);
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o.value = i(
|
|
42
|
+
function o() {
|
|
43
|
+
t.value = u(
|
|
54
44
|
e.name || "",
|
|
55
45
|
e.param || {},
|
|
56
46
|
e.value || {},
|
|
@@ -59,46 +49,15 @@ const g = { class: "set-code" }, V = { class: "but-div set-code-but" }, j = { cl
|
|
|
59
49
|
e.exposeText
|
|
60
50
|
);
|
|
61
51
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
function d() {
|
|
69
|
-
T(o.value, e.name + ".vue");
|
|
70
|
-
}
|
|
71
|
-
return (w, a) => (x(), f("div", g, [
|
|
72
|
-
t("div", {
|
|
73
|
-
onClick: u,
|
|
74
|
-
class: "set-code-buts"
|
|
75
|
-
}, [
|
|
76
|
-
a[0] || (a[0] = t("div", null, "代码", -1)),
|
|
77
|
-
t("div", V, h(s.value ? "显示" : "隐藏"), 1),
|
|
78
|
-
t("div", {
|
|
79
|
-
onClick: l(r, ["stop"]),
|
|
80
|
-
class: "but-div set-code-but"
|
|
81
|
-
}, " 复制 "),
|
|
82
|
-
t("div", {
|
|
83
|
-
onClick: l(d, ["stop"]),
|
|
84
|
-
class: "but-div set-code-but"
|
|
85
|
-
}, " 下载 "),
|
|
86
|
-
t("div", {
|
|
87
|
-
onClick: l(p, ["stop"]),
|
|
88
|
-
class: "but-div set-code-but"
|
|
89
|
-
}, " 刷新 ")
|
|
90
|
-
]),
|
|
91
|
-
b(t("div", j, [
|
|
92
|
-
C(k, {
|
|
93
|
-
language: "html",
|
|
94
|
-
code: o.value
|
|
95
|
-
}, null, 8, ["code"])
|
|
96
|
-
], 512), [
|
|
97
|
-
[_, s.value]
|
|
98
|
-
])
|
|
52
|
+
return (i, x) => (c(), s("div", f, [
|
|
53
|
+
m(l, {
|
|
54
|
+
name: e.name,
|
|
55
|
+
html: t.value,
|
|
56
|
+
onRefresh: o
|
|
57
|
+
}, null, 8, ["name", "html"])
|
|
99
58
|
]));
|
|
100
59
|
}
|
|
101
60
|
});
|
|
102
61
|
export {
|
|
103
|
-
|
|
62
|
+
v as default
|
|
104
63
|
};
|
|
@@ -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(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
|
+
"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(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
|
+
"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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.vue2.cjs");module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/* empty css */
|
|
4
|
+
import m from "../../components/choice/index.vue.js";
|
|
5
|
+
const r = { class: "__document-index __document-edit" }, x = /* @__PURE__ */ o({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(a) {
|
|
8
|
+
return (l, s) => (_(), n("div", r, [
|
|
9
|
+
e(m, null, {
|
|
10
|
+
default: c((t) => [
|
|
11
|
+
e(i, {
|
|
12
|
+
istop: "",
|
|
13
|
+
value: t.value
|
|
14
|
+
}, null, 8, ["value"])
|
|
15
|
+
]),
|
|
16
|
+
_: 1
|
|
17
|
+
})
|
|
18
|
+
]));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
x as default
|
|
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;
|