xyvcard-live 0.0.2 → 0.0.3
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/{add-ChiF1rpJ.mjs → add-BLsL8P1U.mjs} +189 -188
- package/dist/{index-DvelxTYe.mjs → index-4CE42QMk.mjs} +1 -1
- package/dist/{index-h7kY6d7R.mjs → index-BLDsRKaV.mjs} +239 -237
- package/dist/index-Dp2UAkIx.mjs +176 -0
- package/dist/{index-DwrSZRq5.mjs → index-RZcNAod0.mjs} +1 -1
- package/dist/{index-CF3wLv0W.mjs → index-fq7bb0vi.mjs} +425 -423
- package/dist/index.mjs +3 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-COMf6E9p.mjs → index.vue_vue_type_script_setup_true_lang-CJXGox4V.mjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DTE6pgZK.mjs → index.vue_vue_type_script_setup_true_lang-Di2r6a4i.mjs} +1 -1
- package/dist/{info-DS6MFv2x.mjs → info-BWEoRsbx.mjs} +3 -3
- package/dist/{lives-B33Lg-af.mjs → lives-D_2sdL4L.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/src/index.d.ts +1 -0
- package/dts/src/router/index.d.ts +1 -0
- package/dts/src/views/live/zb-live-login/index.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/lives copy-DSbXR9ms.mjs +0 -286
package/dts/src/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import liveList from "./components/liveList/index.vue";
|
|
|
3
3
|
export { liveList };
|
|
4
4
|
export type { LiveVideoModel } from "@/api/live/zb-live-video/types";
|
|
5
5
|
export { liveVideoApi } from "@/api/live/zb-live-video/index";
|
|
6
|
+
export { login } from "./router";
|
|
6
7
|
declare const live: {
|
|
7
8
|
install(app: App): void;
|
|
8
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type RouteRecordRaw } from "vue-router";
|
|
2
2
|
export declare const addLive: () => Promise<typeof import("@/views/live/zb-live-video/add.vue")>;
|
|
3
3
|
export declare const liveView: () => Promise<typeof import("@/views/live/zb-live-video/info.vue")>;
|
|
4
|
+
export declare const login: () => Promise<typeof import("@/views/live/zb-live-login/index.vue")>;
|
|
4
5
|
export declare const liveRoutes: RouteRecordRaw[];
|
|
5
6
|
export declare const constantRoutes: RouteRecordRaw[];
|
|
6
7
|
/**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, mergeModels as z, useModel as G, ref as c, getCurrentInstance as J, resolveComponent as r, createBlock as D, openBlock as C, withCtx as t, createVNode as o, withKeys as w, unref as i, createTextVNode as m, toDisplayString as s, createElementVNode as T, createCommentVNode as X } from "vue";
|
|
2
|
-
import { useTableHooks as x, fileApi as N } from "jmash-core";
|
|
3
|
-
import { l as ee, D as b, _ as le } from "./index-CF3wLv0W.mjs";
|
|
4
|
-
import { useI18n as te } from "vue-i18n";
|
|
5
|
-
const oe = { class: "flex items-center" }, ae = { class: "ml-2" }, ne = { class: "dialog-footer" }, ie = /* @__PURE__ */ W({
|
|
6
|
-
__name: "lives copy",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { type: Boolean },
|
|
9
|
-
modelModifiers: {}
|
|
10
|
-
},
|
|
11
|
-
emits: /* @__PURE__ */ z(["refresh", "row-select", "confirm-select"], ["update:modelValue"]),
|
|
12
|
-
setup($, { emit: k }) {
|
|
13
|
-
const { t: Y } = te(), f = G($, "modelValue"), S = k, y = c([]), n = c({}), { proxy: M } = J(), d = c(null);
|
|
14
|
-
function E(e) {
|
|
15
|
-
y.value = e, e && e.length === 2 ? (n.value.startDate = new Date(e[0]).toISOString().replace("Z", "+08:00"), n.value.endDate = new Date(e[1]).toISOString().replace("Z", "+08:00")) : (n.value.startDate = void 0, n.value.endDate = void 0);
|
|
16
|
-
}
|
|
17
|
-
const { tableHooks: u, listLoading: R, tableData: U, total: re } = x(
|
|
18
|
-
Y,
|
|
19
|
-
ee,
|
|
20
|
-
n
|
|
21
|
-
);
|
|
22
|
-
let H = c([
|
|
23
|
-
{
|
|
24
|
-
label: "liveVideo.roomNum",
|
|
25
|
-
prop: "roomNum",
|
|
26
|
-
width: "150",
|
|
27
|
-
sortable: "custom",
|
|
28
|
-
isColumn: !0
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: "liveVideo.liveName",
|
|
32
|
-
prop: "liveName",
|
|
33
|
-
slotName: "liveName",
|
|
34
|
-
columnType: "slot",
|
|
35
|
-
minWidth: "150",
|
|
36
|
-
sortable: "custom",
|
|
37
|
-
isColumn: !0
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: "liveVideo.liveType",
|
|
41
|
-
prop: "liveType",
|
|
42
|
-
slotName: "liveType",
|
|
43
|
-
columnType: "slot",
|
|
44
|
-
width: "150",
|
|
45
|
-
sortable: "custom",
|
|
46
|
-
isColumn: !0
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "liveVideo.startTime",
|
|
50
|
-
slotName: "startTime",
|
|
51
|
-
columnType: "slot",
|
|
52
|
-
width: "150",
|
|
53
|
-
sortable: "custom",
|
|
54
|
-
isColumn: !0
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: "liveVideo.liveStatus",
|
|
58
|
-
prop: "liveStatus",
|
|
59
|
-
slotName: "liveStatus",
|
|
60
|
-
columnType: "slot",
|
|
61
|
-
width: "150",
|
|
62
|
-
sortable: "custom",
|
|
63
|
-
isColumn: !0
|
|
64
|
-
}
|
|
65
|
-
]);
|
|
66
|
-
function g() {
|
|
67
|
-
f.value && (f.value = !1);
|
|
68
|
-
}
|
|
69
|
-
const p = c(null), I = (e) => {
|
|
70
|
-
d.value && (d.value.clearSelection(), d.value.toggleRowSelection(e, !0)), p.value = e, S("row-select", e);
|
|
71
|
-
}, L = async () => {
|
|
72
|
-
if (!p.value) {
|
|
73
|
-
const { ElMessage: e } = await import("element-plus");
|
|
74
|
-
e.warning("请选择一条直播数据!");
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
S("confirm-select", p.value), console.log("单选选中的数据:", p.value), g();
|
|
78
|
-
};
|
|
79
|
-
function Q(e) {
|
|
80
|
-
u.handleSort(e.prop, e.order);
|
|
81
|
-
}
|
|
82
|
-
function q() {
|
|
83
|
-
y.value = [], n.value.startDate = void 0, n.value.endDate = void 0, p.value = null, d.value && d.value.clearSelection(), u.resetQuery();
|
|
84
|
-
}
|
|
85
|
-
return u.getList(), (e, a) => {
|
|
86
|
-
const j = r("el-input"), v = r("el-form-item"), _ = r("el-col"), h = r("jmash-select"), K = r("el-date-picker"), P = r("el-row"), V = r("el-button"), Z = r("el-form"), A = r("el-image"), B = r("el-tag"), F = r("jmash-table"), O = r("el-dialog");
|
|
87
|
-
return C(), D(O, {
|
|
88
|
-
modelValue: f.value,
|
|
89
|
-
"onUpdate:modelValue": a[9] || (a[9] = (l) => f.value = l),
|
|
90
|
-
onClose: g
|
|
91
|
-
}, {
|
|
92
|
-
footer: t(() => [
|
|
93
|
-
T("div", ne, [
|
|
94
|
-
o(V, { onClick: g }, {
|
|
95
|
-
default: t(() => [
|
|
96
|
-
m(s(e.$t("common.cancel")), 1)
|
|
97
|
-
]),
|
|
98
|
-
_: 1
|
|
99
|
-
}),
|
|
100
|
-
o(V, {
|
|
101
|
-
type: "primary",
|
|
102
|
-
onClick: L
|
|
103
|
-
}, {
|
|
104
|
-
default: t(() => [
|
|
105
|
-
m(s(e.$t("common.confirm")), 1)
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
})
|
|
109
|
-
])
|
|
110
|
-
]),
|
|
111
|
-
default: t(() => [
|
|
112
|
-
o(Z, {
|
|
113
|
-
ref: "queryFormRef",
|
|
114
|
-
model: n.value,
|
|
115
|
-
inline: !0
|
|
116
|
-
}, {
|
|
117
|
-
default: t(() => [
|
|
118
|
-
o(P, null, {
|
|
119
|
-
default: t(() => [
|
|
120
|
-
o(_, { span: 6 }, {
|
|
121
|
-
default: t(() => [
|
|
122
|
-
o(v, {
|
|
123
|
-
label: e.$t("liveVideo.liveName"),
|
|
124
|
-
prop: "likeLiveName"
|
|
125
|
-
}, {
|
|
126
|
-
default: t(() => [
|
|
127
|
-
o(j, {
|
|
128
|
-
modelValue: n.value.likeLiveName,
|
|
129
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value.likeLiveName = l),
|
|
130
|
-
placeholder: e.$t("liveVideo.liveNameRequired"),
|
|
131
|
-
onKeyup: a[1] || (a[1] = w((l) => i(u).handleQuery(), ["enter"])),
|
|
132
|
-
class: "!w-[203px]"
|
|
133
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["label"])
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}),
|
|
140
|
-
o(_, { span: 6 }, {
|
|
141
|
-
default: t(() => [
|
|
142
|
-
o(v, {
|
|
143
|
-
label: e.$t("liveVideo.liveType"),
|
|
144
|
-
prop: "liveType"
|
|
145
|
-
}, {
|
|
146
|
-
default: t(() => [
|
|
147
|
-
o(h, {
|
|
148
|
-
modelValue: n.value.liveType,
|
|
149
|
-
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value.liveType = l),
|
|
150
|
-
data: i(b).liveTypeEnum.values,
|
|
151
|
-
placeholder: e.$t("liveVideo.liveTypeRequired"),
|
|
152
|
-
onKeyup: a[3] || (a[3] = w((l) => i(u).handleQuery(), ["enter"])),
|
|
153
|
-
class: "!w-[203px]"
|
|
154
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
155
|
-
]),
|
|
156
|
-
_: 1
|
|
157
|
-
}, 8, ["label"])
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}),
|
|
161
|
-
o(_, { span: 6 }, {
|
|
162
|
-
default: t(() => [
|
|
163
|
-
o(v, {
|
|
164
|
-
label: e.$t("liveVideo.liveStatus"),
|
|
165
|
-
prop: "liveStatus"
|
|
166
|
-
}, {
|
|
167
|
-
default: t(() => [
|
|
168
|
-
o(h, {
|
|
169
|
-
modelValue: n.value.liveStatus,
|
|
170
|
-
"onUpdate:modelValue": a[4] || (a[4] = (l) => n.value.liveStatus = l),
|
|
171
|
-
data: i(b).liveStatusEnum.values,
|
|
172
|
-
placeholder: e.$t("liveVideo.liveStatusRequired"),
|
|
173
|
-
onKeyup: a[5] || (a[5] = w((l) => i(u).handleQuery(), ["enter"])),
|
|
174
|
-
class: "!w-[203px]"
|
|
175
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
}, 8, ["label"])
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}),
|
|
182
|
-
o(_, { span: 6 }, {
|
|
183
|
-
default: t(() => [
|
|
184
|
-
o(v, {
|
|
185
|
-
label: e.$t("liveVideo.startTime"),
|
|
186
|
-
prop: "startDate"
|
|
187
|
-
}, {
|
|
188
|
-
default: t(() => [
|
|
189
|
-
o(K, {
|
|
190
|
-
modelValue: y.value,
|
|
191
|
-
"onUpdate:modelValue": a[6] || (a[6] = (l) => y.value = l),
|
|
192
|
-
type: "daterange",
|
|
193
|
-
"start-placeholder": e.$t("liveVideo.startTime"),
|
|
194
|
-
"end-placeholder": e.$t("liveVideo.endTime"),
|
|
195
|
-
format: "YYYY-MM-DD",
|
|
196
|
-
"value-format": "YYYY-MM-DDTHH:mm:ssZZ",
|
|
197
|
-
onChange: E,
|
|
198
|
-
class: "!w-[203px]"
|
|
199
|
-
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["label"])
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
})
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}),
|
|
209
|
-
o(v, { class: "search-btn" }, {
|
|
210
|
-
default: t(() => [
|
|
211
|
-
o(V, {
|
|
212
|
-
type: "primary",
|
|
213
|
-
onClick: a[7] || (a[7] = (l) => i(u).handleQuery())
|
|
214
|
-
}, {
|
|
215
|
-
default: t(() => [
|
|
216
|
-
m(s(e.$t("common.search")), 1)
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
}),
|
|
220
|
-
o(V, {
|
|
221
|
-
onClick: a[8] || (a[8] = (l) => q())
|
|
222
|
-
}, {
|
|
223
|
-
default: t(() => [
|
|
224
|
-
m(s(e.$t("common.reset")), 1)
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
})
|
|
228
|
-
]),
|
|
229
|
-
_: 1
|
|
230
|
-
})
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["model"]),
|
|
234
|
-
o(F, {
|
|
235
|
-
ref_key: "multipleTableRef",
|
|
236
|
-
ref: d,
|
|
237
|
-
"row-key": "liveId",
|
|
238
|
-
multiple: !1,
|
|
239
|
-
"list-loading": i(R),
|
|
240
|
-
data: i(U),
|
|
241
|
-
"table-label": i(H),
|
|
242
|
-
onCurrentChange: I,
|
|
243
|
-
onSortChange: Q,
|
|
244
|
-
"highlight-current-row": "",
|
|
245
|
-
selectable: !1
|
|
246
|
-
}, {
|
|
247
|
-
liveName: t((l) => [
|
|
248
|
-
T("div", oe, [
|
|
249
|
-
l.data.row.preStreamPic ? (C(), D(A, {
|
|
250
|
-
key: 0,
|
|
251
|
-
src: i(N).imageUrl(l.data.row.preStreamPic, 80, 80),
|
|
252
|
-
"preview-src-list": [
|
|
253
|
-
i(N).imageUrl(l.data.row.preStreamPic)
|
|
254
|
-
],
|
|
255
|
-
"preview-teleported": "",
|
|
256
|
-
"hide-on-click-modal": "",
|
|
257
|
-
fit: "cover"
|
|
258
|
-
}, null, 8, ["src", "preview-src-list"])) : X("", !0),
|
|
259
|
-
T("span", ae, s(l.data.row.liveName), 1)
|
|
260
|
-
])
|
|
261
|
-
]),
|
|
262
|
-
liveStatus: t((l) => [
|
|
263
|
-
o(B, null, {
|
|
264
|
-
default: t(() => [
|
|
265
|
-
m(s(i(b).liveStatusEnum.getEnumValue(l.data.row.liveStatus)), 1)
|
|
266
|
-
]),
|
|
267
|
-
_: 2
|
|
268
|
-
}, 1024)
|
|
269
|
-
]),
|
|
270
|
-
liveType: t((l) => [
|
|
271
|
-
m(s(i(b).liveTypeEnum.getEnumValue(l.data.row.liveType)), 1)
|
|
272
|
-
]),
|
|
273
|
-
startTime: t((l) => [
|
|
274
|
-
m(s(i(M).$moment.formatDate(l.data.row.startTime, "YYYY-MM-DD HH:mm")), 1)
|
|
275
|
-
]),
|
|
276
|
-
_: 1
|
|
277
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["modelValue"]);
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
}), pe = /* @__PURE__ */ le(ie, [["__scopeId", "data-v-939b7a82"]]);
|
|
284
|
-
export {
|
|
285
|
-
pe as default
|
|
286
|
-
};
|