lw-cdp-ui 1.0.0
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/README.md +5 -0
- package/dist/HelloWorld-B8mIBfv6.js +45 -0
- package/dist/NavMenu-5q5cwgxa.js +79 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/aside-D4gRKrXk.js +96 -0
- package/dist/bu-CPymL6sw.js +66 -0
- package/dist/columnSetting-s8WE64if.js +142 -0
- package/dist/date-3aIueTWp.js +78 -0
- package/dist/dateRange-CELAeHet.js +79 -0
- package/dist/dates-duu3mVu7.js +258 -0
- package/dist/iframeView-BgLGyeZi.js +50 -0
- package/dist/index-B3YO2bMX.js +475 -0
- package/dist/index-Beo5fXoi.js +825 -0
- package/dist/index-BhlpP83a.js +604 -0
- package/dist/index-C9QeXWf-.js +1804 -0
- package/dist/index-Cnc84Sx6.js +20 -0
- package/dist/input-DjTO0SAt.js +57 -0
- package/dist/lang-7Nv9P6lz.js +87 -0
- package/dist/logo-BdF7DdEi.js +4 -0
- package/dist/lw-ui.es.js +16 -0
- package/dist/lw-ui.umd.js +14 -0
- package/dist/search-CxkTZQGs.js +120 -0
- package/dist/select-DV7iQWOt.js +85 -0
- package/dist/setting-CdKTzN9K.js +178 -0
- package/dist/sideM-OQXV4LfA.js +134 -0
- package/dist/style.css +1 -0
- package/dist/tags-CSqKlWtu.js +258 -0
- package/dist/tasks-DrTo25su.js +143 -0
- package/dist/topbar-Bm8ZEc4i.js +75 -0
- package/dist/userbar--TC_Vip3.js +164 -0
- package/dist/vite.svg +1 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ref as c, openBlock as a, createElementBlock as u, Fragment as i, createElementVNode as e, toDisplayString as r, pushScopeId as p, popScopeId as d, createTextVNode as t } from "vue";
|
|
2
|
+
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const l = (o) => (p("data-v-830e400e"), o = o(), d(), o), h = { class: "card" }, m = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
|
|
4
|
+
/* @__PURE__ */ t(" Edit "),
|
|
5
|
+
/* @__PURE__ */ e("code", null, "components/HelloWorld.vue"),
|
|
6
|
+
/* @__PURE__ */ t(" to test HMR ")
|
|
7
|
+
], -1)), g = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
|
|
8
|
+
/* @__PURE__ */ t(" Check out "),
|
|
9
|
+
/* @__PURE__ */ e("a", {
|
|
10
|
+
href: "https://vuejs.org/guide/quick-start.html#local",
|
|
11
|
+
target: "_blank"
|
|
12
|
+
}, "create-vue"),
|
|
13
|
+
/* @__PURE__ */ t(", the official Vue + Vite starter ")
|
|
14
|
+
], -1)), f = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", null, [
|
|
15
|
+
/* @__PURE__ */ t(" Learn more about IDE Support for Vue in the "),
|
|
16
|
+
/* @__PURE__ */ e("a", {
|
|
17
|
+
href: "https://vuejs.org/guide/scaling-up/tooling.html#ide-support",
|
|
18
|
+
target: "_blank"
|
|
19
|
+
}, "Vue Docs Scaling up Guide"),
|
|
20
|
+
/* @__PURE__ */ t(". ")
|
|
21
|
+
], -1)), v = /* @__PURE__ */ l(() => /* @__PURE__ */ e("p", { class: "read-the-docs" }, "Click on the Vite and Vue logos to learn more", -1)), k = {
|
|
22
|
+
__name: "HelloWorld",
|
|
23
|
+
props: {
|
|
24
|
+
msg: String
|
|
25
|
+
},
|
|
26
|
+
setup(o) {
|
|
27
|
+
const s = c(0);
|
|
28
|
+
return (V, n) => (a(), u(i, null, [
|
|
29
|
+
e("h1", null, r(o.msg), 1),
|
|
30
|
+
e("div", h, [
|
|
31
|
+
e("button", {
|
|
32
|
+
type: "button",
|
|
33
|
+
onClick: n[0] || (n[0] = (S) => s.value++)
|
|
34
|
+
}, "count is " + r(s.value), 1),
|
|
35
|
+
m
|
|
36
|
+
]),
|
|
37
|
+
g,
|
|
38
|
+
f,
|
|
39
|
+
v
|
|
40
|
+
], 64));
|
|
41
|
+
}
|
|
42
|
+
}, x = /* @__PURE__ */ _(k, [["__scopeId", "data-v-830e400e"]]);
|
|
43
|
+
export {
|
|
44
|
+
x as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { resolveComponent as l, openBlock as t, createElementBlock as r, Fragment as a, createVNode as d, createCommentVNode as c, renderList as N, createBlock as n, withCtx as o, createElementVNode as u, toDisplayString as p, withModifiers as g, resolveDynamicComponent as h } from "vue";
|
|
2
|
+
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const B = {
|
|
4
|
+
name: "NavMenu",
|
|
5
|
+
props: ["navMenus"],
|
|
6
|
+
data() {
|
|
7
|
+
return {};
|
|
8
|
+
},
|
|
9
|
+
methods: {
|
|
10
|
+
hasChildren(i) {
|
|
11
|
+
return i.children && !i.children.every((m) => m.meta.hidden);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, V = {
|
|
15
|
+
key: 0,
|
|
16
|
+
style: { padding: "20px" }
|
|
17
|
+
}, w = ["href"];
|
|
18
|
+
function D(i, m, s, E, F, f) {
|
|
19
|
+
const k = l("el-alert"), _ = l("el-icon"), y = l("el-menu-item"), x = l("NavMenu", !0), C = l("el-sub-menu");
|
|
20
|
+
return t(), r(a, null, [
|
|
21
|
+
s.navMenus.length <= 0 ? (t(), r("div", V, [
|
|
22
|
+
d(k, {
|
|
23
|
+
title: "无子集菜单",
|
|
24
|
+
center: "",
|
|
25
|
+
type: "info",
|
|
26
|
+
closable: !1
|
|
27
|
+
})
|
|
28
|
+
])) : c("", !0),
|
|
29
|
+
(t(!0), r(a, null, N(s.navMenus, (e) => (t(), r(a, { key: e }, [
|
|
30
|
+
f.hasChildren(e) ? (t(), n(C, {
|
|
31
|
+
key: 1,
|
|
32
|
+
index: e.path
|
|
33
|
+
}, {
|
|
34
|
+
title: o(() => [
|
|
35
|
+
e.meta && e.meta.icon ? (t(), n(_, { key: 0 }, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
(t(), n(h(e.meta.icon || "el-icon-menu")))
|
|
38
|
+
]),
|
|
39
|
+
_: 2
|
|
40
|
+
}, 1024)) : c("", !0),
|
|
41
|
+
u("span", null, p(e.meta.title), 1)
|
|
42
|
+
]),
|
|
43
|
+
default: o(() => [
|
|
44
|
+
d(x, {
|
|
45
|
+
navMenus: e.children
|
|
46
|
+
}, null, 8, ["navMenus"])
|
|
47
|
+
]),
|
|
48
|
+
_: 2
|
|
49
|
+
}, 1032, ["index"])) : (t(), n(y, {
|
|
50
|
+
key: 0,
|
|
51
|
+
index: e.path
|
|
52
|
+
}, {
|
|
53
|
+
title: o(() => [
|
|
54
|
+
u("span", null, p(e.meta.title), 1)
|
|
55
|
+
]),
|
|
56
|
+
default: o(() => [
|
|
57
|
+
e.meta && e.meta.type == "link" ? (t(), r("a", {
|
|
58
|
+
key: 0,
|
|
59
|
+
href: e.path,
|
|
60
|
+
target: "_blank",
|
|
61
|
+
onClick: g(() => {
|
|
62
|
+
}, ["stop"])
|
|
63
|
+
}, null, 8, w)) : c("", !0),
|
|
64
|
+
e.meta && e.meta.icon ? (t(), n(_, { key: 1 }, {
|
|
65
|
+
default: o(() => [
|
|
66
|
+
(t(), n(h(e.meta.icon || "el-icon-menu")))
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1024)) : c("", !0)
|
|
70
|
+
]),
|
|
71
|
+
_: 2
|
|
72
|
+
}, 1032, ["index"]))
|
|
73
|
+
], 64))), 128))
|
|
74
|
+
], 64);
|
|
75
|
+
}
|
|
76
|
+
const $ = /* @__PURE__ */ b(B, [["render", D]]);
|
|
77
|
+
export {
|
|
78
|
+
$ as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as c,
|
|
7
|
+
l as g
|
|
8
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { _ as f } from "./logo-BdF7DdEi.js";
|
|
2
|
+
import { resolveComponent as s, openBlock as c, createElementBlock as p, createElementVNode as o, createVNode as t, withCtx as i, createBlock as g, resolveDynamicComponent as v, createTextVNode as _, Fragment as k, renderList as C, normalizeClass as y, toDisplayString as w, createCommentVNode as A } from "vue";
|
|
3
|
+
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const V = {
|
|
5
|
+
name: "layoutAside",
|
|
6
|
+
props: {},
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
logo: f,
|
|
10
|
+
popVisible: !1,
|
|
11
|
+
grantedApplications: []
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
mounted() {
|
|
15
|
+
let { grantedApplications: e } = this.$TOOL.data.get("userAuthInfo");
|
|
16
|
+
this.grantedApplications = e, document.addEventListener("click", this.handleDocumentClick);
|
|
17
|
+
},
|
|
18
|
+
beforeDestroy() {
|
|
19
|
+
document.removeEventListener("click", this.handleDocumentClick);
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
handleDocumentClick(e) {
|
|
23
|
+
let l = document.getElementById("popover");
|
|
24
|
+
this.popVisible && e.target !== l && !l.contains(e.target) && (this.popVisible = !1);
|
|
25
|
+
},
|
|
26
|
+
switchMenu(e) {
|
|
27
|
+
window.location.href = e.url;
|
|
28
|
+
},
|
|
29
|
+
closePopover() {
|
|
30
|
+
this.$refs.popoverRef.hide();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, D = { class: "layout-aside" }, b = ["src"], E = { class: "app-content" }, B = { class: "app-title" }, L = ["onClick"];
|
|
34
|
+
function N(e, l, I, M, r, a) {
|
|
35
|
+
const d = s("el-icon"), m = s("el-icon-close"), u = s("el-divider"), h = s("el-popover");
|
|
36
|
+
return c(), p("div", D, [
|
|
37
|
+
o("img", {
|
|
38
|
+
class: "logo",
|
|
39
|
+
src: r.logo,
|
|
40
|
+
alt: ""
|
|
41
|
+
}, null, 8, b),
|
|
42
|
+
t(h, {
|
|
43
|
+
placement: "right",
|
|
44
|
+
width: 180,
|
|
45
|
+
trigger: "click",
|
|
46
|
+
"show-arrow": !1,
|
|
47
|
+
offset: 3,
|
|
48
|
+
"popper-class": "app-popper",
|
|
49
|
+
ref: "popoverRef"
|
|
50
|
+
}, {
|
|
51
|
+
reference: i(() => [
|
|
52
|
+
o("p", null, [
|
|
53
|
+
t(d, { class: "menu-btn" }, {
|
|
54
|
+
default: i(() => [
|
|
55
|
+
(c(), g(v("el-icon-grid")))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
})
|
|
59
|
+
])
|
|
60
|
+
]),
|
|
61
|
+
default: i(() => [
|
|
62
|
+
o("div", E, [
|
|
63
|
+
o("div", B, [
|
|
64
|
+
_(" 应用中心 "),
|
|
65
|
+
t(d, {
|
|
66
|
+
class: "iconClose",
|
|
67
|
+
onClick: a.closePopover
|
|
68
|
+
}, {
|
|
69
|
+
default: i(() => [
|
|
70
|
+
t(m)
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["onClick"])
|
|
74
|
+
]),
|
|
75
|
+
t(u, { style: { margin: "5px 0" } }),
|
|
76
|
+
r.grantedApplications.length > 0 ? (c(!0), p(k, { key: 0 }, C(r.grantedApplications, (n) => (c(), p("div", {
|
|
77
|
+
class: "menu-item",
|
|
78
|
+
onClick: (O) => a.switchMenu(n),
|
|
79
|
+
key: n.resourceId
|
|
80
|
+
}, [
|
|
81
|
+
o("i", {
|
|
82
|
+
class: y(["iconfont", n.icon]),
|
|
83
|
+
style: { "margin-right": "5px" }
|
|
84
|
+
}, null, 2),
|
|
85
|
+
_(" " + w(n.name), 1)
|
|
86
|
+
], 8, L))), 128)) : A("", !0)
|
|
87
|
+
])
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 512)
|
|
91
|
+
]);
|
|
92
|
+
}
|
|
93
|
+
const $ = /* @__PURE__ */ x(V, [["render", N]]);
|
|
94
|
+
export {
|
|
95
|
+
$ as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { resolveComponent as i, openBlock as a, createElementBlock as r, createVNode as d, withCtx as s, Fragment as w, renderList as O, createBlock as g, createTextVNode as u, toDisplayString as m, createElementVNode as C } from "vue";
|
|
2
|
+
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const N = {
|
|
4
|
+
data() {
|
|
5
|
+
return {
|
|
6
|
+
buName: "",
|
|
7
|
+
buList: []
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
methods: {
|
|
11
|
+
async changeBusinessUnit(e) {
|
|
12
|
+
this.buName = e;
|
|
13
|
+
let t = this.buList.find((l) => l.code === e);
|
|
14
|
+
this.$TOOL.data.set("buCode", e), this.$TOOL.data.set("tenantId", t.tenantId);
|
|
15
|
+
let n = await this.$API.auth.initialized.get();
|
|
16
|
+
this.$TOOL.data.set("zoneInitialized", n), n || this.$router.push("/initialization");
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
created() {
|
|
20
|
+
this.buList = this.$TOOL.data.get("buList");
|
|
21
|
+
let e = this.$TOOL.data.get("buCode"), t = this.buList.find((n) => n.code === e);
|
|
22
|
+
this.buName = t ? t.name : "", this.changeBusinessUnit(e);
|
|
23
|
+
}
|
|
24
|
+
}, B = { class: "bu-list" };
|
|
25
|
+
function T(e, t, n, l, c, _) {
|
|
26
|
+
const p = i("el-icon-help"), h = i("el-icon"), b = i("el-dropdown-item"), f = i("el-dropdown-menu"), L = i("el-dropdown");
|
|
27
|
+
return a(), r("div", {
|
|
28
|
+
class: "screen panel-item hidden-sm-and-down",
|
|
29
|
+
onClick: t[0] || (t[0] = (...o) => e.screen && e.screen(...o))
|
|
30
|
+
}, [
|
|
31
|
+
d(L, { onCommand: _.changeBusinessUnit }, {
|
|
32
|
+
dropdown: s(() => [
|
|
33
|
+
d(f, null, {
|
|
34
|
+
default: s(() => [
|
|
35
|
+
(a(!0), r(w, null, O(c.buList, (o) => (a(), g(b, {
|
|
36
|
+
key: o.id,
|
|
37
|
+
command: o.code
|
|
38
|
+
}, {
|
|
39
|
+
default: s(() => [
|
|
40
|
+
u(m(o.name), 1)
|
|
41
|
+
]),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1032, ["command"]))), 128))
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
default: s(() => [
|
|
49
|
+
C("div", B, [
|
|
50
|
+
d(h, null, {
|
|
51
|
+
default: s(() => [
|
|
52
|
+
d(p)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}),
|
|
56
|
+
u(m(c.buName), 1)
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["onCommand"])
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
const I = /* @__PURE__ */ $(N, [["render", T], ["__scopeId", "data-v-7f9838c9"]]);
|
|
64
|
+
export {
|
|
65
|
+
I as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import b from "sortablejs";
|
|
2
|
+
import { resolveComponent as a, resolveDirective as k, withDirectives as S, openBlock as c, createElementBlock as d, createElementVNode as t, Fragment as x, renderList as C, createVNode as s, withCtx as r, toDisplayString as D, createTextVNode as v, createBlock as U, createStaticVNode as N } from "vue";
|
|
3
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const E = {
|
|
5
|
+
components: {
|
|
6
|
+
Sortable: b
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
column: { type: Object, default: () => {
|
|
10
|
+
} }
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
isSave: !1,
|
|
15
|
+
usercolumn: JSON.parse(JSON.stringify(this.column || []))
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
watch: {
|
|
19
|
+
usercolumn: {
|
|
20
|
+
handler() {
|
|
21
|
+
this.$emit("userChange", this.usercolumn);
|
|
22
|
+
},
|
|
23
|
+
deep: !0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
mounted() {
|
|
27
|
+
this.usercolumn.length > 0 && this.rowDrop();
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
rowDrop() {
|
|
31
|
+
const u = this, _ = this.$refs.list.querySelector("ul");
|
|
32
|
+
b.create(_, {
|
|
33
|
+
handle: ".move",
|
|
34
|
+
animation: 300,
|
|
35
|
+
ghostClass: "ghost",
|
|
36
|
+
onEnd({ newIndex: p, oldIndex: m }) {
|
|
37
|
+
const o = u.usercolumn, n = o.splice(m, 1)[0];
|
|
38
|
+
o.splice(p, 0, n);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
backDefaul() {
|
|
43
|
+
this.$emit("back", this.usercolumn);
|
|
44
|
+
},
|
|
45
|
+
save() {
|
|
46
|
+
this.$emit("save", this.usercolumn);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, O = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "setting-column"
|
|
52
|
+
}, z = /* @__PURE__ */ N('<div class="setting-column__title" data-v-b971e149><span class="move_b" data-v-b971e149></span><span class="show_b" data-v-b971e149>显示</span><span class="name_b" data-v-b971e149>名称</span><span class="width_b" data-v-b971e149>宽度</span><span class="sortable_b" data-v-b971e149>排序</span><span class="fixed_b" data-v-b971e149>固定</span></div>', 1), J = {
|
|
53
|
+
class: "setting-column__list",
|
|
54
|
+
ref: "list"
|
|
55
|
+
}, $ = { class: "move_b" }, j = { class: "show_b" }, q = ["title"], F = { class: "width_b" }, I = { class: "sortable_b" }, L = { class: "fixed_b" }, R = { class: "setting-column__bottom" };
|
|
56
|
+
function T(u, _, p, m, o, n) {
|
|
57
|
+
const f = a("el-icon-d-caret"), V = a("el-tag"), i = a("el-switch"), g = a("el-input"), h = a("el-button"), w = a("el-empty"), y = k("loading");
|
|
58
|
+
return o.usercolumn.length > 0 ? S((c(), d("div", O, [
|
|
59
|
+
z,
|
|
60
|
+
t("div", J, [
|
|
61
|
+
t("ul", null, [
|
|
62
|
+
(c(!0), d(x, null, C(o.usercolumn, (e) => (c(), d("li", {
|
|
63
|
+
key: e.prop
|
|
64
|
+
}, [
|
|
65
|
+
t("span", $, [
|
|
66
|
+
s(V, {
|
|
67
|
+
class: "move",
|
|
68
|
+
style: { cursor: "move" }
|
|
69
|
+
}, {
|
|
70
|
+
default: r(() => [
|
|
71
|
+
s(f, { style: { width: "1em", height: "1em" } })
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
})
|
|
75
|
+
]),
|
|
76
|
+
t("span", j, [
|
|
77
|
+
s(i, {
|
|
78
|
+
modelValue: e.hide,
|
|
79
|
+
"onUpdate:modelValue": (l) => e.hide = l,
|
|
80
|
+
"active-value": !1,
|
|
81
|
+
"inactive-value": !0
|
|
82
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
83
|
+
]),
|
|
84
|
+
t("span", {
|
|
85
|
+
class: "name_b",
|
|
86
|
+
title: e.prop
|
|
87
|
+
}, D(e.label), 9, q),
|
|
88
|
+
t("span", F, [
|
|
89
|
+
s(g, {
|
|
90
|
+
modelValue: e.width,
|
|
91
|
+
"onUpdate:modelValue": (l) => e.width = l,
|
|
92
|
+
placeholder: "auto",
|
|
93
|
+
size: "small"
|
|
94
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
95
|
+
]),
|
|
96
|
+
t("span", I, [
|
|
97
|
+
s(i, {
|
|
98
|
+
modelValue: e.sortable,
|
|
99
|
+
"onUpdate:modelValue": (l) => e.sortable = l
|
|
100
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
101
|
+
]),
|
|
102
|
+
t("span", L, [
|
|
103
|
+
s(i, {
|
|
104
|
+
modelValue: e.fixed,
|
|
105
|
+
"onUpdate:modelValue": (l) => e.fixed = l
|
|
106
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
107
|
+
])
|
|
108
|
+
]))), 128))
|
|
109
|
+
])
|
|
110
|
+
], 512),
|
|
111
|
+
t("div", R, [
|
|
112
|
+
s(h, {
|
|
113
|
+
onClick: n.backDefaul,
|
|
114
|
+
disabled: o.isSave
|
|
115
|
+
}, {
|
|
116
|
+
default: r(() => [
|
|
117
|
+
v("重置")
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["onClick", "disabled"]),
|
|
121
|
+
s(h, {
|
|
122
|
+
onClick: n.save,
|
|
123
|
+
type: "primary"
|
|
124
|
+
}, {
|
|
125
|
+
default: r(() => [
|
|
126
|
+
v("保存")
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["onClick"])
|
|
130
|
+
])
|
|
131
|
+
])), [
|
|
132
|
+
[y, o.isSave]
|
|
133
|
+
]) : (c(), U(w, {
|
|
134
|
+
key: 1,
|
|
135
|
+
description: "暂无可配置的列",
|
|
136
|
+
"image-size": 80
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
const K = /* @__PURE__ */ B(E, [["render", T], ["__scopeId", "data-v-b971e149"]]);
|
|
140
|
+
export {
|
|
141
|
+
K as default
|
|
142
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { reactive as m, computed as d, toRefs as i, resolveComponent as c, openBlock as f, createElementBlock as Y, createVNode as s } from "vue";
|
|
2
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const v = {
|
|
4
|
+
emits: ["update:modelValue", "change"],
|
|
5
|
+
name: "Date",
|
|
6
|
+
props: {
|
|
7
|
+
disabled: {
|
|
8
|
+
// 是否禁止操作
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default() {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
modelValue: {
|
|
15
|
+
// 绑定的结果
|
|
16
|
+
default() {
|
|
17
|
+
return "";
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
item: {
|
|
21
|
+
// 配置项
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
disabledDate: {
|
|
28
|
+
// 禁止日期
|
|
29
|
+
type: Function,
|
|
30
|
+
default() {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
propValueFormat: {
|
|
35
|
+
// 格式化日期
|
|
36
|
+
type: String,
|
|
37
|
+
default() {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(e, a) {
|
|
43
|
+
const t = m({}), l = d(() => e.propValueFormat ? e.propValueFormat : e.item.valueFormat ? e.item.valueFormat : e.item.dateSection || e.item.withZero ? "YYYY-MM-DD 00:00:00" : e.item.withLast ? "YYYY-MM-DD 23:59:59" : "YYYY-MM-DD"), u = d({
|
|
44
|
+
get() {
|
|
45
|
+
return e.modelValue;
|
|
46
|
+
},
|
|
47
|
+
set(r) {
|
|
48
|
+
a.emit("update:modelValue", r), a.emit("change", r);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
...i(t),
|
|
53
|
+
valueFormat: l,
|
|
54
|
+
value: u
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function V(e, a, t, l, u, r) {
|
|
59
|
+
const o = c("el-date-picker");
|
|
60
|
+
return f(), Y("div", null, [
|
|
61
|
+
s(o, {
|
|
62
|
+
type: t.item.type || "date",
|
|
63
|
+
disabled: t.item.disabled,
|
|
64
|
+
format: t.item.format || "YYYY-MM-DD",
|
|
65
|
+
"value-format": t.item.valueFormat,
|
|
66
|
+
placeholder: t.item.placeholder || "请选择",
|
|
67
|
+
clearable: "",
|
|
68
|
+
modelValue: l.value,
|
|
69
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => l.value = n),
|
|
70
|
+
"disabled-date": t.disabledDate,
|
|
71
|
+
style: { width: "100%" }
|
|
72
|
+
}, null, 8, ["type", "disabled", "format", "value-format", "placeholder", "modelValue", "disabled-date"])
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
const M = /* @__PURE__ */ D(v, [["render", V]]);
|
|
76
|
+
export {
|
|
77
|
+
M as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { reactive as i, computed as o, toRefs as d, resolveComponent as c, openBlock as f, createElementBlock as s, createVNode as Y } from "vue";
|
|
2
|
+
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const D = {
|
|
4
|
+
emits: ["update:modelValue", "change"],
|
|
5
|
+
name: "dateRange",
|
|
6
|
+
props: {
|
|
7
|
+
disabled: {
|
|
8
|
+
// 是否禁止操作
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default() {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
modelValue: {
|
|
15
|
+
// 绑定的结果
|
|
16
|
+
default() {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
item: {
|
|
21
|
+
// 配置项
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
disabledDate: {
|
|
28
|
+
// 禁止日期
|
|
29
|
+
type: Function,
|
|
30
|
+
default() {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
propValueFormat: {
|
|
35
|
+
// 格式化日期
|
|
36
|
+
type: String,
|
|
37
|
+
default() {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(e, t) {
|
|
43
|
+
const a = i({}), r = o(() => e.propValueFormat ? e.propValueFormat : e.item.valueFormat ? e.item.valueFormat : e.item.dateSection || e.item.withZero ? "YYYY-MM-DD 00:00:00" : e.item.withLast ? "YYYY-MM-DD 23:59:59" : "YYYY-MM-DD"), u = o({
|
|
44
|
+
get() {
|
|
45
|
+
return e.modelValue;
|
|
46
|
+
},
|
|
47
|
+
set(l) {
|
|
48
|
+
t.emit("update:modelValue", l), t.emit("change", l);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
...d(a),
|
|
53
|
+
valueFormat: r,
|
|
54
|
+
value: u
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function p(e, t, a, r, u, l) {
|
|
59
|
+
const n = c("el-date-picker");
|
|
60
|
+
return f(), s("div", null, [
|
|
61
|
+
Y(n, {
|
|
62
|
+
showTime: a.item.showTime,
|
|
63
|
+
format: a.item.format || "YYYY-MM-DD HH:mm:ss",
|
|
64
|
+
"value-format": a.item.valueFormat,
|
|
65
|
+
clearable: "",
|
|
66
|
+
modelValue: r.value,
|
|
67
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => r.value = m),
|
|
68
|
+
style: { width: "100%" },
|
|
69
|
+
type: "datetimerange",
|
|
70
|
+
"start-placeholder": "开始时间",
|
|
71
|
+
"end-placeholder": "结束时间",
|
|
72
|
+
size: ""
|
|
73
|
+
}, null, 8, ["showTime", "format", "value-format", "modelValue"])
|
|
74
|
+
]);
|
|
75
|
+
}
|
|
76
|
+
const _ = /* @__PURE__ */ F(D, [["render", p]]);
|
|
77
|
+
export {
|
|
78
|
+
_ as default
|
|
79
|
+
};
|