@luzhaoqi/test 0.0.53 → 0.0.55
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/.idea/modules.xml +8 -0
- package/.idea/npm-test.iml +12 -0
- package/README.md +57 -18
- package/package.json +26 -51
- package/src/index.js +38 -0
- package/src/vue-plugin.js +39 -0
- package/test/basic.test.js +17 -0
- package/dist/dict-_0HrbUGB.mjs +0 -172
- package/dist/dict-vkW5oXQf.mjs +0 -66
- package/dist/dictEdit-RfQqA5M4.mjs +0 -187
- package/dist/favicon.ico +0 -0
- package/dist/index--IjOD8yQ.mjs +0 -162
- package/dist/index-Fj2kjzW4.mjs +0 -33586
- package/dist/index-LkpiywJu.mjs +0 -55
- package/dist/index-LnWdMwyP.mjs +0 -104
- package/dist/index-PcYFBHXl.mjs +0 -246
- package/dist/index-QhSU5A9W.mjs +0 -19
- package/dist/index-i2KsEpof.mjs +0 -82
- package/dist/index-xp-0jyhB.mjs +0 -120
- package/dist/layout-bHXVVeJO.mjs +0 -11
- package/dist/main-cLwCUpDd.mjs +0 -36090
- package/dist/style.css +0 -11
- package/dist/test-kxtmZdsk.mjs +0 -74
- package/dist/type-7-iv3Kj1.mjs +0 -157
- package/dist/typeEdit-BA-nOPQU.mjs +0 -146
- package/dist/z-ui3.mjs +0 -37
- package/dist/z-ui3.umd.js +0 -225
package/dist/index-QhSU5A9W.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as n, createElementBlock as c, createTextVNode as e, createVNode as _, withCtx as r } from "vue";
|
|
2
|
-
import { _ as s } from "./index-Fj2kjzW4.mjs";
|
|
3
|
-
const a = {}, d = { class: "home" };
|
|
4
|
-
function l(f, m) {
|
|
5
|
-
const t = o("el-button");
|
|
6
|
-
return n(), c("div", d, [
|
|
7
|
-
e(" 首页 "),
|
|
8
|
-
_(t, null, {
|
|
9
|
-
default: r(() => [
|
|
10
|
-
e("1213")
|
|
11
|
-
]),
|
|
12
|
-
_: 1
|
|
13
|
-
})
|
|
14
|
-
]);
|
|
15
|
-
}
|
|
16
|
-
const u = /* @__PURE__ */ s(a, [["render", l], ["__scopeId", "data-v-5541444f"]]);
|
|
17
|
-
export {
|
|
18
|
-
u as default
|
|
19
|
-
};
|
package/dist/index-i2KsEpof.mjs
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as n, openBlock as i, createElementBlock as u, createVNode as t, Fragment as f, renderList as g, withCtx as z, createTextVNode as b, createElementVNode as e } from "vue";
|
|
2
|
-
import { _ as x } from "./index-Fj2kjzW4.mjs";
|
|
3
|
-
const V = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
file: "2025/03/12/11319480292.png",
|
|
7
|
-
file2: "2025/03/12/a1435570981.pdf"
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
methods: {
|
|
11
|
-
handleExport() {
|
|
12
|
-
this.$z.$http.download(
|
|
13
|
-
{
|
|
14
|
-
url: "/platform/shipCompany/export1",
|
|
15
|
-
method: "get",
|
|
16
|
-
params: {
|
|
17
|
-
type: 4,
|
|
18
|
-
createTimeStart: "2025-01-01",
|
|
19
|
-
createTimeEnd: "2025-03-12",
|
|
20
|
-
pageNum: 1,
|
|
21
|
-
pageSize: 10
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
`222_${(/* @__PURE__ */ new Date()).getTime()}.xlsx`
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}, w = /* @__PURE__ */ e("div", null, "图片上传:", -1), v = /* @__PURE__ */ e("br", null, null, -1), y = /* @__PURE__ */ e("br", null, null, -1), k = /* @__PURE__ */ e("br", null, null, -1), C = /* @__PURE__ */ e("div", null, "图片读取:", -1), E = /* @__PURE__ */ e("br", null, null, -1), T = ["src"], N = /* @__PURE__ */ e("br", null, null, -1), U = /* @__PURE__ */ e("br", null, null, -1), j = /* @__PURE__ */ e("div", null, "图片文件:", -1), B = /* @__PURE__ */ e("br", null, null, -1), L = /* @__PURE__ */ e("br", null, null, -1), S = /* @__PURE__ */ e("br", null, null, -1), $ = /* @__PURE__ */ e("br", null, null, -1), A = /* @__PURE__ */ e("br", null, null, -1);
|
|
29
|
-
function D(r, s, F, R, l, _) {
|
|
30
|
-
const d = n("z-upload-import"), p = n("z-upload-image"), c = n("z-upload-file"), a = n("z-button"), m = n("z-image-preview");
|
|
31
|
-
return i(), u("div", null, [
|
|
32
|
-
t(d),
|
|
33
|
-
w,
|
|
34
|
-
v,
|
|
35
|
-
t(p, {
|
|
36
|
-
modelValue: l.file,
|
|
37
|
-
"onUpdate:modelValue": s[0] || (s[0] = (o) => l.file = o),
|
|
38
|
-
fileType: ["png", "jpg", "jpeg", "pdf"]
|
|
39
|
-
}, null, 8, ["modelValue"]),
|
|
40
|
-
y,
|
|
41
|
-
k,
|
|
42
|
-
C,
|
|
43
|
-
E,
|
|
44
|
-
(i(!0), u(f, null, g(l.file.split(","), (o, h) => (i(), u("img", {
|
|
45
|
-
style: { width: "100px", height: "100px" },
|
|
46
|
-
src: r.$z.http.baseURL + r.$z.upload.downloadAction + o,
|
|
47
|
-
alt: "",
|
|
48
|
-
key: h
|
|
49
|
-
}, null, 8, T))), 128)),
|
|
50
|
-
N,
|
|
51
|
-
U,
|
|
52
|
-
j,
|
|
53
|
-
B,
|
|
54
|
-
t(c, {
|
|
55
|
-
modelValue: l.file2,
|
|
56
|
-
"onUpdate:modelValue": s[1] || (s[1] = (o) => l.file2 = o)
|
|
57
|
-
}, null, 8, ["modelValue"]),
|
|
58
|
-
L,
|
|
59
|
-
S,
|
|
60
|
-
t(a, {
|
|
61
|
-
type: "success",
|
|
62
|
-
plain: "",
|
|
63
|
-
size: "small",
|
|
64
|
-
onClick: _.handleExport
|
|
65
|
-
}, {
|
|
66
|
-
default: z(() => [
|
|
67
|
-
b("导出")
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["onClick"]),
|
|
71
|
-
$,
|
|
72
|
-
A,
|
|
73
|
-
t(m, {
|
|
74
|
-
src: l.file,
|
|
75
|
-
width: "200px"
|
|
76
|
-
}, null, 8, ["src"])
|
|
77
|
-
]);
|
|
78
|
-
}
|
|
79
|
-
const H = /* @__PURE__ */ x(V, [["render", D]]);
|
|
80
|
-
export {
|
|
81
|
-
H as default
|
|
82
|
-
};
|
package/dist/index-xp-0jyhB.mjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as k, ref as l, computed as x, onMounted as C, resolveComponent as s, openBlock as N, createElementBlock as O, createVNode as o, unref as a, withCtx as t, createTextVNode as n, toDisplayString as y, createElementVNode as $ } from "vue";
|
|
2
|
-
import { l as f } from "./dict-vkW5oXQf.mjs";
|
|
3
|
-
import "./main-cLwCUpDd.mjs";
|
|
4
|
-
import "./index-Fj2kjzW4.mjs";
|
|
5
|
-
const B = /* @__PURE__ */ $("br", null, null, -1), G = {
|
|
6
|
-
__name: "index",
|
|
7
|
-
setup(P) {
|
|
8
|
-
const i = k().proxy.$z, g = l({
|
|
9
|
-
columns: [
|
|
10
|
-
{ label: "字典编号", type: "index", width: 90 },
|
|
11
|
-
{ label: "字典名称", prop: "dictName" },
|
|
12
|
-
{ label: "字典类型", prop: "dictType" },
|
|
13
|
-
{ label: "状态", prop: "status", slot: !0 },
|
|
14
|
-
{ label: "备注", prop: "remark" },
|
|
15
|
-
{ label: "操作", prop: "menu", width: "200", slot: !0 }
|
|
16
|
-
]
|
|
17
|
-
}), c = l([]), u = l(0), m = l({
|
|
18
|
-
pageSize: 10,
|
|
19
|
-
pageNumber: 1
|
|
20
|
-
}), v = l({
|
|
21
|
-
a: "1"
|
|
22
|
-
}), w = l({
|
|
23
|
-
api: f,
|
|
24
|
-
columns: [
|
|
25
|
-
{ label: "字典编号", type: "index", width: 90 },
|
|
26
|
-
{ label: "字典名称", prop: "dictName" },
|
|
27
|
-
{ label: "字典类型", prop: "dictType" },
|
|
28
|
-
{ label: "状态", prop: "status", slot: !0 },
|
|
29
|
-
{ label: "备注", prop: "remark" },
|
|
30
|
-
{ label: "操作", prop: "menu", width: "200", slot: !0 }
|
|
31
|
-
]
|
|
32
|
-
}), d = x(() => i.$store.dict.getDictByCode("sys_status"));
|
|
33
|
-
C(() => {
|
|
34
|
-
i.$store.dict.setDictByCode("sys_status"), _();
|
|
35
|
-
});
|
|
36
|
-
const _ = () => {
|
|
37
|
-
f({ ...m.value, ...v.value }).then((p) => {
|
|
38
|
-
c.value = p.records, u.value = p.total;
|
|
39
|
-
});
|
|
40
|
-
}, h = () => {
|
|
41
|
-
};
|
|
42
|
-
return (p, T) => {
|
|
43
|
-
const r = s("el-button"), b = s("z-dict-tag"), z = s("z-table"), D = s("z-list");
|
|
44
|
-
return N(), O("div", null, [
|
|
45
|
-
o(z, {
|
|
46
|
-
tableOption: a(g),
|
|
47
|
-
tableData: a(c),
|
|
48
|
-
pageParams: a(m),
|
|
49
|
-
total: a(u),
|
|
50
|
-
onGetData: _
|
|
51
|
-
}, {
|
|
52
|
-
leftMenu: t(() => [
|
|
53
|
-
o(r, {
|
|
54
|
-
icon: "el-icon-plus",
|
|
55
|
-
type: "primary",
|
|
56
|
-
plain: ""
|
|
57
|
-
}, {
|
|
58
|
-
default: t(() => [
|
|
59
|
-
n("新增")
|
|
60
|
-
]),
|
|
61
|
-
_: 1
|
|
62
|
-
})
|
|
63
|
-
]),
|
|
64
|
-
type: t((e) => [
|
|
65
|
-
n(y(e.row.type), 1)
|
|
66
|
-
]),
|
|
67
|
-
status: t((e) => [
|
|
68
|
-
o(b, {
|
|
69
|
-
options: a(d),
|
|
70
|
-
value: e.row.status
|
|
71
|
-
}, null, 8, ["options", "value"])
|
|
72
|
-
]),
|
|
73
|
-
menu: t(() => [
|
|
74
|
-
o(r, {
|
|
75
|
-
icon: "el-icon-s-promotion",
|
|
76
|
-
link: ""
|
|
77
|
-
}, {
|
|
78
|
-
default: t(() => [
|
|
79
|
-
n("详情")
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
})
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["tableOption", "tableData", "pageParams", "total"]),
|
|
86
|
-
B,
|
|
87
|
-
o(D, {
|
|
88
|
-
ref: "list",
|
|
89
|
-
tableOption: a(w)
|
|
90
|
-
}, {
|
|
91
|
-
type: t((e) => [
|
|
92
|
-
n(y(e.row.type), 1)
|
|
93
|
-
]),
|
|
94
|
-
status: t((e) => [
|
|
95
|
-
o(b, {
|
|
96
|
-
options: a(d),
|
|
97
|
-
value: e.row.status
|
|
98
|
-
}, null, 8, ["options", "value"])
|
|
99
|
-
]),
|
|
100
|
-
menu: t((e) => [
|
|
101
|
-
o(r, {
|
|
102
|
-
icon: "el-icon-s-promotion",
|
|
103
|
-
link: "",
|
|
104
|
-
onClick: (V) => h(e.row)
|
|
105
|
-
}, {
|
|
106
|
-
default: t(() => [
|
|
107
|
-
n("详情")
|
|
108
|
-
]),
|
|
109
|
-
_: 2
|
|
110
|
-
}, 1032, ["onClick"])
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["tableOption"])
|
|
114
|
-
]);
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
export {
|
|
119
|
-
G as default
|
|
120
|
-
};
|
package/dist/layout-bHXVVeJO.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as t, openBlock as e, createBlock as c } from "vue";
|
|
2
|
-
import { _ as n } from "./index-Fj2kjzW4.mjs";
|
|
3
|
-
const r = {};
|
|
4
|
-
function _(a, s) {
|
|
5
|
-
const o = t("z-layout");
|
|
6
|
-
return e(), c(o);
|
|
7
|
-
}
|
|
8
|
-
const m = /* @__PURE__ */ n(r, [["render", _]]);
|
|
9
|
-
export {
|
|
10
|
-
m as default
|
|
11
|
-
};
|