command-center-v3-common 0.0.1
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 +46 -0
- package/dist/box-border-demo-D6Na5yBP.js +28 -0
- package/dist/button-demo-5otJa-RX.js +176 -0
- package/dist/command-center-v3-common-C7zcE6rW.js +45395 -0
- package/dist/command-center-v3-common.js +4 -0
- package/dist/command-center-v3-common.umd.cjs +115 -0
- package/dist/favicon.ico +0 -0
- package/dist/hy-table-demo-BbEB1Rdd.js +108 -0
- package/dist/hy-test-SCUXMIq-.js +187 -0
- package/dist/image-viewer-demo-C0_fYGnJ.js +72 -0
- package/dist/round-button-demo-QP1t72o5.js +43 -0
- package/dist/style.css +1 -0
- package/dist/svg-icon-demo-DW0XS1-Y.js +36 -0
- package/dist/test-demo-6WlyOn4P.js +46 -0
- package/dist/tips-modal-demo-B269tgx7.js +98 -0
- package/dist/user-head-demo-COeyn4zo.js +66 -0
- package/dist/vue-cropper-demo-D2NrtovK.js +93 -0
- package/package.json +83 -0
package/dist/favicon.ico
ADDED
Binary file
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { defineComponent as m, ref as u, computed as _, resolveComponent as s, openBlock as h, createElementBlock as f, Fragment as b, createElementVNode as t, createVNode as e, mergeProps as y, unref as g, createSlots as v, withCtx as o } from "vue";
|
2
|
+
import { a as x } from "./command-center-v3-common-C7zcE6rW.js";
|
3
|
+
const C = { class: "h-[600px] bg-[#ff000033]" }, w = { class: "flex items-center justify-center gap-x-2.5" }, D = /* @__PURE__ */ t("span", null, "添加部门", -1), S = /* @__PURE__ */ t("span", null, "批量删除", -1), T = { class: "flex items-center" }, j = /* @__PURE__ */ m({
|
4
|
+
__name: "hy-table-demo",
|
5
|
+
setup(k) {
|
6
|
+
const a = u(null), r = _(() => ({
|
7
|
+
columnList: [
|
8
|
+
{
|
9
|
+
prop: "caseType",
|
10
|
+
isSearch: !0,
|
11
|
+
label: "事故类型"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
prop: "createDtm",
|
15
|
+
label: "创建时间"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
prop: "updateDtm",
|
19
|
+
slotName: "updateDtm",
|
20
|
+
label: "修改时间"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
prop: "handler",
|
24
|
+
slotName: "handler",
|
25
|
+
label: "操作",
|
26
|
+
width: "200px"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
reqUrl: "device/page",
|
30
|
+
height: "100%",
|
31
|
+
showFooter: !0,
|
32
|
+
showIndexColumn: !1,
|
33
|
+
selectColumnType: 2
|
34
|
+
}));
|
35
|
+
function i() {
|
36
|
+
a.value.setSelectedData([{
|
37
|
+
id: 3323
|
38
|
+
}]);
|
39
|
+
}
|
40
|
+
function d(l) {
|
41
|
+
console.log(l);
|
42
|
+
}
|
43
|
+
return (l, B) => {
|
44
|
+
const p = s("svg-icon"), c = s("el-button"), n = s("RoundButton");
|
45
|
+
return h(), f(b, null, [
|
46
|
+
t("div", { onClick: i }, " setSelectedData "),
|
47
|
+
t("div", C, [
|
48
|
+
e(x, y({ ...g(r) }, {
|
49
|
+
ref_key: "HyTableRef",
|
50
|
+
ref: a,
|
51
|
+
onSelectionChange: d
|
52
|
+
}), v({
|
53
|
+
tableLeft: o(() => [
|
54
|
+
e(c, { type: "success" }, {
|
55
|
+
default: o(() => [
|
56
|
+
t("div", w, [
|
57
|
+
e(p, {
|
58
|
+
name: "sys-button-create",
|
59
|
+
width: "14",
|
60
|
+
height: "14"
|
61
|
+
}),
|
62
|
+
D
|
63
|
+
])
|
64
|
+
]),
|
65
|
+
_: 1
|
66
|
+
}),
|
67
|
+
e(c, { type: "danger" }, {
|
68
|
+
default: o(() => [
|
69
|
+
S
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
]),
|
74
|
+
handler: o(() => [
|
75
|
+
t("div", T, [
|
76
|
+
e(n, {
|
77
|
+
name: "sys-button-see",
|
78
|
+
tips: "查看"
|
79
|
+
}),
|
80
|
+
e(n, {
|
81
|
+
name: "sys-button-edit",
|
82
|
+
tips: "编辑"
|
83
|
+
}),
|
84
|
+
e(n, {
|
85
|
+
name: "sys-button-jump",
|
86
|
+
tips: "跳转",
|
87
|
+
"class-name": "text-hy-main"
|
88
|
+
}),
|
89
|
+
e(n, {
|
90
|
+
name: "sys-button-delete",
|
91
|
+
tips: "删除",
|
92
|
+
class: "hover:shadow-hy-danger hover:!border-hy-danger/70",
|
93
|
+
"class-name": "text-hy-text-danger"
|
94
|
+
})
|
95
|
+
])
|
96
|
+
]),
|
97
|
+
_: 2
|
98
|
+
}, [
|
99
|
+
void 0
|
100
|
+
]), 1040)
|
101
|
+
])
|
102
|
+
], 64);
|
103
|
+
};
|
104
|
+
}
|
105
|
+
});
|
106
|
+
export {
|
107
|
+
j as default
|
108
|
+
};
|
@@ -0,0 +1,187 @@
|
|
1
|
+
import { defineComponent as k, ref as _, resolveComponent as a, openBlock as U, createElementBlock as S, createVNode as e, unref as s, isRef as d, createElementVNode as r, withCtx as i, createTextVNode as p } from "vue";
|
2
|
+
import { _ as C } from "./command-center-v3-common-C7zcE6rW.js";
|
3
|
+
const D = { class: "text-hy-text-main overflow-auto h-[800px]" }, Y = { class: "mb-2 h-[300px] w-[200px]" }, z = /* @__PURE__ */ r("div", { class: "text-xs box-border w-full h-full rounded overflow-hidden border border-hy-main bg-hy-dialog-bg-1 shadow-[0_0_6px_0] shadow-hy-main flex flex-col" }, [
|
4
|
+
/* @__PURE__ */ r("div", { class: "bg-[#f00] h-[50px]" }, " 4444 "),
|
5
|
+
/* @__PURE__ */ r("div", { class: "flex-grow h-0" }, " 2632 ")
|
6
|
+
], -1), E = { class: "tooltip" }, N = { class: "progress" }, T = /* @__PURE__ */ r("br", null, null, -1), B = /* @__PURE__ */ r("br", null, null, -1), O = /* @__PURE__ */ k({
|
7
|
+
__name: "hy-test",
|
8
|
+
setup(M) {
|
9
|
+
const x = _([{
|
10
|
+
value: 1,
|
11
|
+
label: "1",
|
12
|
+
children: [],
|
13
|
+
disabled: !0
|
14
|
+
}, {
|
15
|
+
value: 2,
|
16
|
+
label: "2",
|
17
|
+
children: [],
|
18
|
+
disabled: !1
|
19
|
+
}]), f = {
|
20
|
+
value: "id",
|
21
|
+
label: "label",
|
22
|
+
children: "children",
|
23
|
+
disabled: "disabled"
|
24
|
+
}, o = _("Sponsor"), n = _(/* @__PURE__ */ new Date());
|
25
|
+
return (q, t) => {
|
26
|
+
const V = a("el-calendar"), m = a("el-date-picker"), h = a("el-button"), b = a("el-tooltip"), g = a("el-popover"), u = a("el-progress"), c = a("el-switch"), v = a("el-radio"), w = a("el-radio-group"), y = a("el-tree-v2");
|
27
|
+
return U(), S("div", D, [
|
28
|
+
e(V, {
|
29
|
+
modelValue: s(n),
|
30
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => d(n) ? n.value = l : null)
|
31
|
+
}, null, 8, ["modelValue"]),
|
32
|
+
e(m, {
|
33
|
+
modelValue: s(n),
|
34
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => d(n) ? n.value = l : null),
|
35
|
+
type: "datetimerange",
|
36
|
+
"start-placeholder": "Start Date",
|
37
|
+
"end-placeholder": "End Date"
|
38
|
+
}, null, 8, ["modelValue"]),
|
39
|
+
e(m, {
|
40
|
+
modelValue: s(n),
|
41
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => d(n) ? n.value = l : null),
|
42
|
+
type: "datetime",
|
43
|
+
placeholder: "Select date and time"
|
44
|
+
}, null, 8, ["modelValue"]),
|
45
|
+
e(m, {
|
46
|
+
modelValue: s(n),
|
47
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => d(n) ? n.value = l : null),
|
48
|
+
clearable: !1,
|
49
|
+
"value-format": "YYYY-MM",
|
50
|
+
type: "month",
|
51
|
+
placeholder: "选择考勤时间"
|
52
|
+
}, null, 8, ["modelValue"]),
|
53
|
+
r("div", Y, [
|
54
|
+
e(C, {
|
55
|
+
name: "sys-box-border-login",
|
56
|
+
width: "24",
|
57
|
+
height: "24",
|
58
|
+
class: "w-full h-full",
|
59
|
+
"class-name": "text-hy-main"
|
60
|
+
}, {
|
61
|
+
content: i(() => [
|
62
|
+
z
|
63
|
+
]),
|
64
|
+
_: 1
|
65
|
+
})
|
66
|
+
]),
|
67
|
+
r("div", E, [
|
68
|
+
e(b, {
|
69
|
+
class: "box-item",
|
70
|
+
visible: !0,
|
71
|
+
content: "Top Left prompts info",
|
72
|
+
placement: "right"
|
73
|
+
}, {
|
74
|
+
default: i(() => [
|
75
|
+
e(h, null, {
|
76
|
+
default: i(() => [
|
77
|
+
p("top-start")
|
78
|
+
]),
|
79
|
+
_: 1
|
80
|
+
})
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}),
|
84
|
+
e(g, {
|
85
|
+
placement: "right",
|
86
|
+
title: "Title",
|
87
|
+
width: 200,
|
88
|
+
trigger: "hover",
|
89
|
+
visible: !0,
|
90
|
+
content: "this is content, this is content, this is content"
|
91
|
+
}, {
|
92
|
+
reference: i(() => [
|
93
|
+
e(h, { class: "m-2" }, {
|
94
|
+
default: i(() => [
|
95
|
+
p(" Hover to activate ")
|
96
|
+
]),
|
97
|
+
_: 1
|
98
|
+
})
|
99
|
+
]),
|
100
|
+
_: 1
|
101
|
+
})
|
102
|
+
]),
|
103
|
+
r("div", N, [
|
104
|
+
e(u, {
|
105
|
+
"text-inside": !0,
|
106
|
+
"stroke-width": 24,
|
107
|
+
percentage: 50
|
108
|
+
}),
|
109
|
+
e(u, {
|
110
|
+
"text-inside": !0,
|
111
|
+
"stroke-width": 24,
|
112
|
+
percentage: 100,
|
113
|
+
status: "success"
|
114
|
+
}),
|
115
|
+
e(u, {
|
116
|
+
"text-inside": !0,
|
117
|
+
"stroke-width": 24,
|
118
|
+
percentage: 50,
|
119
|
+
status: "warning"
|
120
|
+
}),
|
121
|
+
e(u, {
|
122
|
+
"text-inside": !0,
|
123
|
+
"stroke-width": 24,
|
124
|
+
percentage: 50,
|
125
|
+
status: "exception"
|
126
|
+
})
|
127
|
+
]),
|
128
|
+
e(c, {
|
129
|
+
modelValue: s(o),
|
130
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => d(o) ? o.value = l : null),
|
131
|
+
size: "large",
|
132
|
+
"inline-prompt": "",
|
133
|
+
width: "80",
|
134
|
+
"active-text": "启动",
|
135
|
+
"inactive-text": "关闭"
|
136
|
+
}, null, 8, ["modelValue"]),
|
137
|
+
T,
|
138
|
+
e(c, {
|
139
|
+
modelValue: s(o),
|
140
|
+
"onUpdate:modelValue": t[5] || (t[5] = (l) => d(o) ? o.value = l : null),
|
141
|
+
"active-text": "Open",
|
142
|
+
"inactive-text": "Close"
|
143
|
+
}, null, 8, ["modelValue"]),
|
144
|
+
B,
|
145
|
+
e(c, {
|
146
|
+
modelValue: s(o),
|
147
|
+
"onUpdate:modelValue": t[6] || (t[6] = (l) => d(o) ? o.value = l : null),
|
148
|
+
size: "small",
|
149
|
+
"active-text": "启动",
|
150
|
+
"inactive-text": "关闭"
|
151
|
+
}, null, 8, ["modelValue"]),
|
152
|
+
e(w, {
|
153
|
+
modelValue: s(o),
|
154
|
+
"onUpdate:modelValue": t[7] || (t[7] = (l) => d(o) ? o.value = l : null)
|
155
|
+
}, {
|
156
|
+
default: i(() => [
|
157
|
+
e(v, { value: "Sponsor" }, {
|
158
|
+
default: i(() => [
|
159
|
+
p(" Sponsor ")
|
160
|
+
]),
|
161
|
+
_: 1
|
162
|
+
}),
|
163
|
+
e(v, { value: "Venue" }, {
|
164
|
+
default: i(() => [
|
165
|
+
p(" Venue ")
|
166
|
+
]),
|
167
|
+
_: 1
|
168
|
+
})
|
169
|
+
]),
|
170
|
+
_: 1
|
171
|
+
}, 8, ["modelValue"]),
|
172
|
+
e(y, {
|
173
|
+
style: { "max-width": "600px" },
|
174
|
+
data: s(x),
|
175
|
+
props: f,
|
176
|
+
"show-checkbox": "",
|
177
|
+
height: 208,
|
178
|
+
"highlight-current": !0,
|
179
|
+
"item-size": 36
|
180
|
+
}, null, 8, ["data"])
|
181
|
+
]);
|
182
|
+
};
|
183
|
+
}
|
184
|
+
});
|
185
|
+
export {
|
186
|
+
O as default
|
187
|
+
};
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { defineComponent as m, ref as d, resolveComponent as a, openBlock as b, createElementBlock as l, createVNode as f, withCtx as c, createTextVNode as p } from "vue";
|
2
|
+
import { d as g } from "./command-center-v3-common-C7zcE6rW.js";
|
3
|
+
const r = { class: "flex items-center justify-center gap-x-3" }, w = /* @__PURE__ */ m({
|
4
|
+
__name: "image-viewer-demo",
|
5
|
+
setup(u) {
|
6
|
+
const e = d();
|
7
|
+
function s() {
|
8
|
+
e.value.onShowViewer("https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg");
|
9
|
+
}
|
10
|
+
function o() {
|
11
|
+
e.value.onShowViewer([
|
12
|
+
"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg",
|
13
|
+
"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg",
|
14
|
+
"https://fuss10.elemecdn.com/2/11/6535bcfb26e4c79b48ddde44f4b6fjpeg.jpeg",
|
15
|
+
"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",
|
16
|
+
"https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg",
|
17
|
+
"https://fuss10.elemecdn.com/0/6f/e35ff375812e6b0020b6b4e8f9583jpeg.jpeg",
|
18
|
+
"https://fuss10.elemecdn.com/9/bb/e27858e973f5d7d3904835f46abbdjpeg.jpeg"
|
19
|
+
]);
|
20
|
+
}
|
21
|
+
function n() {
|
22
|
+
e.value.onShowViewer([
|
23
|
+
"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg",
|
24
|
+
"https://fuss10.elemecdn.com/3/28/bbf893f792f03a54408b3b7a7ebf0jpeg.jpeg",
|
25
|
+
"https://fuss10.elemecdn.com/2/11/6535bcfb26e4c79b48ddde44f4b6fjpeg.jpeg",
|
26
|
+
"https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",
|
27
|
+
"https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg",
|
28
|
+
"https://fuss10.elemecdn.com/0/6f/e35ff375812e6b0020b6b4e8f9583jpeg.jpeg",
|
29
|
+
"https://fuss10.elemecdn.com/9/bb/e27858e973f5d7d3904835f46abbdjpeg.jpeg"
|
30
|
+
], 1);
|
31
|
+
}
|
32
|
+
return (j, i) => {
|
33
|
+
const t = a("el-button");
|
34
|
+
return b(), l("div", r, [
|
35
|
+
f(t, {
|
36
|
+
type: "primary",
|
37
|
+
onClick: s
|
38
|
+
}, {
|
39
|
+
default: c(() => [
|
40
|
+
p(" 查看图片单张 ")
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
f(t, {
|
45
|
+
type: "primary",
|
46
|
+
onClick: o
|
47
|
+
}, {
|
48
|
+
default: c(() => [
|
49
|
+
p(" 查看图片多张 ")
|
50
|
+
]),
|
51
|
+
_: 1
|
52
|
+
}),
|
53
|
+
f(t, {
|
54
|
+
type: "primary",
|
55
|
+
onClick: n
|
56
|
+
}, {
|
57
|
+
default: c(() => [
|
58
|
+
p(" 查看图片多张第二张开始 ")
|
59
|
+
]),
|
60
|
+
_: 1
|
61
|
+
}),
|
62
|
+
f(g, {
|
63
|
+
ref_key: "imageViewerRef",
|
64
|
+
ref: e
|
65
|
+
}, null, 512)
|
66
|
+
]);
|
67
|
+
};
|
68
|
+
}
|
69
|
+
});
|
70
|
+
export {
|
71
|
+
w as default
|
72
|
+
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { defineComponent as s, resolveComponent as a, openBlock as c, createElementBlock as r, createVNode as t, normalizeProps as i, guardReactiveProps as u } from "vue";
|
2
|
+
const _ = /* @__PURE__ */ s({
|
3
|
+
__name: "round-button-demo",
|
4
|
+
setup(d) {
|
5
|
+
function n() {
|
6
|
+
console.log("test");
|
7
|
+
}
|
8
|
+
function o() {
|
9
|
+
console.log("add");
|
10
|
+
}
|
11
|
+
return (l, p) => {
|
12
|
+
const e = a("round-button");
|
13
|
+
return c(), r("div", {
|
14
|
+
class: "flex gap-x-3 items-center justify-center",
|
15
|
+
onClick: n
|
16
|
+
}, [
|
17
|
+
t(e, i(u({
|
18
|
+
name: "sys-button-delete",
|
19
|
+
className: "text-hy-danger",
|
20
|
+
width: 16,
|
21
|
+
height: 16,
|
22
|
+
tips: "删除"
|
23
|
+
})), null, 16),
|
24
|
+
t(e, {
|
25
|
+
name: "sys-button-edit",
|
26
|
+
tips: "编辑",
|
27
|
+
onClick: o
|
28
|
+
}),
|
29
|
+
t(e, {
|
30
|
+
name: "sys-button-see",
|
31
|
+
tips: "查看"
|
32
|
+
}),
|
33
|
+
t(e, {
|
34
|
+
name: "sys-button-password",
|
35
|
+
tips: "密码"
|
36
|
+
})
|
37
|
+
]);
|
38
|
+
};
|
39
|
+
}
|
40
|
+
});
|
41
|
+
export {
|
42
|
+
_ as default
|
43
|
+
};
|