@luzhaoqi/test 0.0.43 → 0.0.44
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/dict-FNlA8vqI.mjs +172 -0
- package/dist/dict-babBRs0C.mjs +66 -0
- package/dist/dictEdit-Amefx1br.mjs +187 -0
- package/dist/index-6GfSGfwM.mjs +160 -0
- package/dist/index-C22vUceL.mjs +120 -0
- package/dist/index-EjhaKikn.mjs +246 -0
- package/dist/index-LkpiywJu.mjs +55 -0
- package/dist/index-qjcLt-iS.mjs +104 -0
- package/dist/index-v_H8fN_6.mjs +31498 -0
- package/dist/index-yU51YNFe.mjs +19 -0
- package/dist/index-zI78qUtH.mjs +6853 -0
- package/dist/index-zf_5GtZw.mjs +82 -0
- package/dist/layout-wqnLHjek.mjs +11 -0
- package/dist/main-YK8P8rUo.mjs +36094 -0
- package/dist/style.css +2 -2
- package/dist/test-xFpnSxbr.mjs +41 -0
- package/dist/type-ueyI0gIy.mjs +157 -0
- package/dist/typeEdit-bswiB14h.mjs +146 -0
- package/dist/z-ui3.mjs +35 -27607
- package/dist/z-ui3.umd.js +185 -79
- package/package.json +5 -2
@@ -0,0 +1,55 @@
|
|
1
|
+
import { getCurrentInstance as v, computed as y, onMounted as z, ref as g, resolveComponent as o, openBlock as s, createElementBlock as d, createTextVNode as u, createVNode as a, unref as t, withCtx as f, Fragment as h, renderList as x, createBlock as C, createElementVNode as e, toDisplayString as V } from "vue";
|
2
|
+
const b = /* @__PURE__ */ e("hr", null, null, -1), B = /* @__PURE__ */ e("hr", null, null, -1), k = /* @__PURE__ */ e("p", null, "正常输出:", -1), D = /* @__PURE__ */ e("br", null, null, -1), q = {
|
3
|
+
__name: "index",
|
4
|
+
setup($) {
|
5
|
+
const r = v().proxy.$z, n = y(() => r.$store.dict.getDictByCode("sys_status"));
|
6
|
+
z(() => {
|
7
|
+
r.$store.dict.setDictByCode("sys_status");
|
8
|
+
});
|
9
|
+
const c = g({
|
10
|
+
status: "0"
|
11
|
+
});
|
12
|
+
return (E, _) => {
|
13
|
+
const p = o("z-option"), m = o("z-select"), i = o("z-dict-tag");
|
14
|
+
return s(), d("div", null, [
|
15
|
+
u(" 下拉框使用字典: "),
|
16
|
+
a(m, {
|
17
|
+
modelValue: t(c).status,
|
18
|
+
"onUpdate:modelValue": _[0] || (_[0] = (l) => t(c).status = l),
|
19
|
+
clearable: ""
|
20
|
+
}, {
|
21
|
+
default: f(() => [
|
22
|
+
(s(!0), d(h, null, x(t(n), (l) => (s(), C(p, {
|
23
|
+
key: l.value,
|
24
|
+
label: l.label,
|
25
|
+
value: l.value
|
26
|
+
}, null, 8, ["label", "value"]))), 128))
|
27
|
+
]),
|
28
|
+
_: 1
|
29
|
+
}, 8, ["modelValue"]),
|
30
|
+
b,
|
31
|
+
e("div", null, [
|
32
|
+
u(" 字典标签只用字典: "),
|
33
|
+
a(i, {
|
34
|
+
options: t(n),
|
35
|
+
value: 0,
|
36
|
+
listClass: "danger"
|
37
|
+
}, null, 8, ["options"]),
|
38
|
+
a(i, {
|
39
|
+
options: t(n),
|
40
|
+
value: 1
|
41
|
+
}, null, 8, ["options"])
|
42
|
+
]),
|
43
|
+
B,
|
44
|
+
e("div", null, [
|
45
|
+
k,
|
46
|
+
D,
|
47
|
+
u(V(t(n)), 1)
|
48
|
+
])
|
49
|
+
]);
|
50
|
+
};
|
51
|
+
}
|
52
|
+
};
|
53
|
+
export {
|
54
|
+
q as default
|
55
|
+
};
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { getCurrentInstance as V, ref as C, computed as k, onMounted as x, resolveComponent as l, openBlock as v, createBlock as w, unref as r, withCtx as t, createVNode as o, withKeys as d, createTextVNode as u } from "vue";
|
2
|
+
import { l as z } from "./dict-babBRs0C.mjs";
|
3
|
+
import "./main-YK8P8rUo.mjs";
|
4
|
+
import "./index-v_H8fN_6.mjs";
|
5
|
+
const O = {
|
6
|
+
__name: "index",
|
7
|
+
setup(N) {
|
8
|
+
const p = V().proxy.$z, m = C(
|
9
|
+
{
|
10
|
+
api: z,
|
11
|
+
columns: [
|
12
|
+
{ label: "字典编号", type: "index", width: 90 },
|
13
|
+
{ label: "字典名称", prop: "dictName" },
|
14
|
+
{ label: "字典类型", prop: "dictType" },
|
15
|
+
{ label: "状态", prop: "status", slot: !0 },
|
16
|
+
{ label: "备注", prop: "remark" },
|
17
|
+
{ label: "创建时间", prop: "createTime" },
|
18
|
+
{ label: "操作", prop: "menu", width: "200", slot: !0 }
|
19
|
+
]
|
20
|
+
// tableAttrs: {
|
21
|
+
// headerCellStyle: {background: '#EFF6FF', color: '#40638B'},
|
22
|
+
// border: false
|
23
|
+
// }
|
24
|
+
}
|
25
|
+
), _ = k(() => p.$store.dict.getDictByCode("sys_status"));
|
26
|
+
x(() => {
|
27
|
+
p.$store.dict.setDictByCode("sys_status");
|
28
|
+
});
|
29
|
+
const c = () => {
|
30
|
+
}, b = () => {
|
31
|
+
}, f = () => {
|
32
|
+
};
|
33
|
+
return ($, g) => {
|
34
|
+
const i = l("el-input"), a = l("el-form-item"), s = l("el-button"), y = l("z-dict-tag"), h = l("z-list");
|
35
|
+
return v(), w(h, {
|
36
|
+
ref: "list",
|
37
|
+
tableOption: r(m)
|
38
|
+
}, {
|
39
|
+
form: t(({ queryParams: e }) => [
|
40
|
+
o(a, { label: "字典名称" }, {
|
41
|
+
default: t(() => [
|
42
|
+
o(i, {
|
43
|
+
modelValue: e.dictName,
|
44
|
+
"onUpdate:modelValue": (n) => e.dictName = n,
|
45
|
+
placeholder: "请输入字典名称",
|
46
|
+
clearable: "",
|
47
|
+
onKeyup: d(c, ["enter", "native"])
|
48
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
49
|
+
]),
|
50
|
+
_: 2
|
51
|
+
}, 1024),
|
52
|
+
o(a, { label: "字典类型" }, {
|
53
|
+
default: t(() => [
|
54
|
+
o(i, {
|
55
|
+
modelValue: e.dictType,
|
56
|
+
"onUpdate:modelValue": (n) => e.dictType = n,
|
57
|
+
placeholder: "请输入字典类型",
|
58
|
+
clearable: "",
|
59
|
+
onKeyup: d(c, ["enter", "native"])
|
60
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
61
|
+
]),
|
62
|
+
_: 2
|
63
|
+
}, 1024),
|
64
|
+
o(a, { label: "状态" })
|
65
|
+
]),
|
66
|
+
leftMenu: t(() => [
|
67
|
+
o(s, {
|
68
|
+
onClick: b,
|
69
|
+
icon: "el-icon-plus",
|
70
|
+
type: "primary",
|
71
|
+
plain: ""
|
72
|
+
}, {
|
73
|
+
default: t(() => [
|
74
|
+
u("新增")
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
})
|
78
|
+
]),
|
79
|
+
status: t((e) => [
|
80
|
+
o(y, {
|
81
|
+
options: r(_),
|
82
|
+
value: e.row.status
|
83
|
+
}, null, 8, ["options", "value"])
|
84
|
+
]),
|
85
|
+
menu: t((e) => [
|
86
|
+
o(s, {
|
87
|
+
icon: "el-icon-s-promotion",
|
88
|
+
link: "",
|
89
|
+
onClick: (n) => f(e.row)
|
90
|
+
}, {
|
91
|
+
default: t(() => [
|
92
|
+
u("详情")
|
93
|
+
]),
|
94
|
+
_: 2
|
95
|
+
}, 1032, ["onClick"])
|
96
|
+
]),
|
97
|
+
_: 1
|
98
|
+
}, 8, ["tableOption"]);
|
99
|
+
};
|
100
|
+
}
|
101
|
+
};
|
102
|
+
export {
|
103
|
+
O as default
|
104
|
+
};
|