@lingshugroup/web-plus 1.0.25 → 1.0.27
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 +1 -1
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min/index.js.gz +0 -0
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index.js +3 -3
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index2.js +39 -36
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/breadcrumb/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/breadcrumb/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/breadcrumb/types/index.js +13 -5
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +315 -310
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +5 -1
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/live/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/live/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/live/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/live/Index.vue/index2.js +55 -53
- package/lib/packages/ls-components/components/live/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/live/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var o=Object.defineProperty;var e=(a,l)=>o(a,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_utils/runtime/index.cjs"),r=t.buildProps({formData:{type:Object,default:e(()=>({}),"default"),required:!0},formItems:{type:Array,default:e(()=>[],"default"),required:!0},column:{type:Number,default:1},loading:{type:Boolean,default:!1},showBtnLoading:{type:Boolean,default:!0},read:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showButtons:{type:Boolean,default:!0},buttonsClass:{type:String,default:""},showReset:{type:Boolean,default:!0},showSubmit:{type:Boolean,default:!0},confirmText:{type:String,default:"确认"},resetText:{type:String,default:"重置"},confirmClassName:{type:String,default:""},colon:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelEmpty:{type:String,default:"--"},hasDefReadStyle:{type:Boolean,default:!1},hideColumn:{type:Boolean,default:!1}}),u=t.buildProps({isValue:{type:Boolean,default:!1},value:{type:[String,Number,Boolean,Object,Array]},type:{type:String,values:["label","input","textarea","number","radio","checkbox","select","date","datetimerange","timePicker","timeSelect","cascader","multipleCascader","switch","inputRange","inputNumberRange","slot","itemSlot"]},label:{type:String,default:""},prop:{type:[String,Array],default:""},rules:{type:Object,default:e(()=>{},"default")},className:{type:String,default:""},labelClass:{type:String,default:""},labelIconClass:{type:String,default:""},tooltip:{type:String,default:""},options:{type:Array,default:e(()=>[],"default")},attrs:{type:Object,default:e(()=>{},"default")},listeners:{type:Object,default:e(()=>{},"default")},colon:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},read:{type:Boolean,default:!1},labelEmpty:{type:String,default:"--"},labelNumber:{type:Boolean,default:!1},dateFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},formatReadValue:{type:Function},rangeSeparator:{type:String,default:"~"},rangeProps:{type:Array,default:e(()=>["start","end"],"default")},radioType:{type:String,default:""},isRow:{type:Boolean,default:!1},selectAll:{type:Boolean,default:!0},index:{type:Number,default:0},slotKey:{type:String,default:""}});exports.lsFormItemProps=u;exports.lsFormProps=r;
|
|
@@ -158,7 +158,7 @@ const d = t({
|
|
|
158
158
|
},
|
|
159
159
|
colon: {
|
|
160
160
|
type: Boolean,
|
|
161
|
-
default: !
|
|
161
|
+
default: !1
|
|
162
162
|
},
|
|
163
163
|
disabled: {
|
|
164
164
|
type: Boolean,
|
|
@@ -206,6 +206,10 @@ const d = t({
|
|
|
206
206
|
index: {
|
|
207
207
|
type: Number,
|
|
208
208
|
default: 0
|
|
209
|
+
},
|
|
210
|
+
slotKey: {
|
|
211
|
+
type: String,
|
|
212
|
+
default: ""
|
|
209
213
|
}
|
|
210
214
|
});
|
|
211
215
|
export {
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-65eca385"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-65eca385"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var q=Object.defineProperty;var i=(f,p)=>q(f,"name",{value:p,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=,/* empty css */d=,/* empty css */C=;/* empty css */;/* empty css */;/* empty css */;/* empty css */const M=,/* empty css */P=["autoplay","controls","muted"],g=e.defineComponent({name:"LSLive"}),R=e.defineComponent({...g,props:C.lsLiveProps,setup(f,{expose:p}){const s=f,L=e.useAttrs(),S=A.useNamespace("live").b(),l=e.ref(""),n=e.ref(0),t=e.ref(null),o=e.ref(),y=e.ref({autoplay:!1,controls:!0,muted:!0}),v=e.ref(L.autoplay==null?!0:L.autoplay),m=e.computed(()=>s.type==="flv");function _(){var u,a,r,E;n.value=0,t.value&&((u=t.value)==null||u.pause(),(a=t.value)==null||a.unload(),(r=t.value)==null||r.detachMediaElement(),(E=t.value)==null||E.destroy(),t.value=null)}i(_,"destoryPlayer");function b(){v.value&&t.value&&m.value&&(t.value.on(d.default.Events.ERROR,()=>{l.value&&c(l.value)}),t.value.on(d.default.Events.STATISTICS_INFO,function(u){const{decodedFrames:a}=u||{};if(n.value===0){n.value=a;return}n.value!=a?n.value=a:l.value&&c(l.value)}))}i(b,"listenPlayer");async function c(u){var a,r;_(),d.default.isSupported()&&u?(l.value=u,t.value=d.default.createPlayer({type:s.type,isLive:s.isLive,hasAudio:s.hasAudio,hasVideo:s.hasVideo,url:u},{autoCleanupSourceBuffer:!0,enableWorker:!1,enableStashBuffer:!0,isLive:s.isLive,lazyLoad:!1}),t.value&&o.value&&(t.value.attachMediaElement(o.value),t.value.load(),v.value?(a=t.value)==null||a.play():(r=t.value)==null||r.pause(),b())):M.ElMessage.error("不支持播放视频")}i(c,"createPlayer");function h(){document.visibilityState==="visible"?l.value&&m.value&&c(l.value):m.value&&_()}return i(h,"updateVisibilityStatus"),e.onMounted(()=>{document.addEventListener("visibilitychange",h),o.value.addEventListener("play",()=>{v.value=!0}),o.value.addEventListener("pause",()=>{v.value=!1})}),e.onUnmounted(()=>{document.removeEventListener("visibilitychange",h)}),p({createPlayer:c}),(u,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S))},[e.createElementVNode("video",{autoplay:e.unref(y).autoplay,controls:e.unref(y).controls,muted:e.unref(y).muted,width:"100%",class:"ls-video",ref_key:"lsLiveRef",ref:o},null,8,P)],2))}});exports.default=R;
|
|
@@ -1,96 +1,98 @@
|
|
|
1
1
|
var P = Object.defineProperty;
|
|
2
|
-
var r = (
|
|
3
|
-
import { defineComponent as
|
|
2
|
+
var r = (p, m) => P(p, "name", { value: m, configurable: !0 });
|
|
3
|
+
import { defineComponent as b, useAttrs as R, ref as o, computed as k, onMounted as B, onUnmounted as F, openBlock as M, createElementBlock as V, normalizeClass as g, unref as d, createElementVNode as x } from "vue";
|
|
4
4
|
import { useNamespace as I } from "../../_hooks/useNamespace/index.js";
|
|
5
|
-
import
|
|
5
|
+
import f from "../../../../../node_modules/.pnpm/flv.js@1.6.2/node_modules/flv.js/dist/flv/index.js";
|
|
6
6
|
import { lsLiveProps as N } from "../types/index.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
-
import T from "../../../../../node_modules/.pnpm/
|
|
11
|
-
|
|
12
|
-
const z = h({
|
|
10
|
+
import { ElMessage as T } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/message/index/index.js";
|
|
11
|
+
const z = ["autoplay", "controls", "muted"], O = b({
|
|
13
12
|
name: "LSLive"
|
|
14
|
-
}),
|
|
15
|
-
...
|
|
13
|
+
}), U = /* @__PURE__ */ b({
|
|
14
|
+
...O,
|
|
16
15
|
props: N,
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
16
|
+
setup(p, { expose: m }) {
|
|
17
|
+
const u = p, h = R(), A = I("live").b(), l = o(""), s = o(0), e = o(null), n = o(), y = o({
|
|
19
18
|
// 是否自动播放
|
|
20
|
-
autoplay: !
|
|
19
|
+
autoplay: !1,
|
|
21
20
|
// 是否显示控制条
|
|
22
21
|
controls: !0,
|
|
23
22
|
// 是否静音
|
|
24
23
|
muted: !0
|
|
25
|
-
}),
|
|
26
|
-
function
|
|
27
|
-
var
|
|
28
|
-
|
|
24
|
+
}), v = o(h.autoplay == null ? !0 : h.autoplay), L = k(() => u.type === "flv");
|
|
25
|
+
function E() {
|
|
26
|
+
var t, a, i, S;
|
|
27
|
+
s.value = 0, e.value && ((t = e.value) == null || t.pause(), (a = e.value) == null || a.unload(), (i = e.value) == null || i.detachMediaElement(), (S = e.value) == null || S.destroy(), e.value = null);
|
|
29
28
|
}
|
|
30
|
-
r(
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}), e.value.on(
|
|
35
|
-
const { decodedFrames:
|
|
36
|
-
if (
|
|
37
|
-
|
|
29
|
+
r(E, "destoryPlayer");
|
|
30
|
+
function C() {
|
|
31
|
+
v.value && e.value && L.value && (e.value.on(f.Events.ERROR, () => {
|
|
32
|
+
l.value && c(l.value);
|
|
33
|
+
}), e.value.on(f.Events.STATISTICS_INFO, function(t) {
|
|
34
|
+
const { decodedFrames: a } = t || {};
|
|
35
|
+
if (s.value === 0) {
|
|
36
|
+
s.value = a;
|
|
38
37
|
return;
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
s.value != a ? s.value = a : l.value && c(l.value);
|
|
41
40
|
}));
|
|
42
41
|
}
|
|
43
|
-
r(
|
|
44
|
-
function
|
|
45
|
-
var
|
|
46
|
-
|
|
42
|
+
r(C, "listenPlayer");
|
|
43
|
+
async function c(t) {
|
|
44
|
+
var a, i;
|
|
45
|
+
E(), f.isSupported() && t ? (l.value = t, e.value = f.createPlayer(
|
|
47
46
|
{
|
|
48
|
-
type:
|
|
47
|
+
type: u.type,
|
|
49
48
|
// 媒体类型,默认是 flv or mp4,
|
|
50
|
-
isLive:
|
|
49
|
+
isLive: u.isLive,
|
|
51
50
|
// 是否是直播流
|
|
52
|
-
hasAudio:
|
|
51
|
+
hasAudio: u.hasAudio,
|
|
53
52
|
// 是否有音频
|
|
54
|
-
hasVideo:
|
|
53
|
+
hasVideo: u.hasVideo,
|
|
55
54
|
// 是否有视频
|
|
56
|
-
url:
|
|
55
|
+
url: t
|
|
57
56
|
// 流地址
|
|
58
57
|
},
|
|
59
58
|
{
|
|
60
59
|
autoCleanupSourceBuffer: !0,
|
|
61
60
|
enableWorker: !1,
|
|
62
61
|
enableStashBuffer: !0,
|
|
63
|
-
isLive:
|
|
62
|
+
isLive: u.isLive,
|
|
64
63
|
lazyLoad: !1
|
|
65
64
|
}
|
|
66
|
-
), e.value &&
|
|
65
|
+
), e.value && n.value && (e.value.attachMediaElement(n.value), e.value.load(), v.value ? (a = e.value) == null || a.play() : (i = e.value) == null || i.pause(), C())) : T.error("不支持播放视频");
|
|
67
66
|
}
|
|
68
|
-
r(
|
|
69
|
-
function
|
|
70
|
-
document.visibilityState === "visible" ?
|
|
67
|
+
r(c, "createPlayer");
|
|
68
|
+
function _() {
|
|
69
|
+
document.visibilityState === "visible" ? l.value && L.value && c(l.value) : L.value && E();
|
|
71
70
|
}
|
|
72
|
-
return r(
|
|
73
|
-
document.addEventListener("visibilitychange",
|
|
74
|
-
|
|
75
|
-
}),
|
|
76
|
-
|
|
71
|
+
return r(_, "updateVisibilityStatus"), B(() => {
|
|
72
|
+
document.addEventListener("visibilitychange", _), n.value.addEventListener("play", () => {
|
|
73
|
+
v.value = !0;
|
|
74
|
+
}), n.value.addEventListener("pause", () => {
|
|
75
|
+
v.value = !1;
|
|
77
76
|
});
|
|
78
|
-
}),
|
|
79
|
-
document.removeEventListener("visibilitychange",
|
|
80
|
-
}),
|
|
81
|
-
createPlayer:
|
|
82
|
-
}), (
|
|
83
|
-
class:
|
|
77
|
+
}), F(() => {
|
|
78
|
+
document.removeEventListener("visibilitychange", _);
|
|
79
|
+
}), m({
|
|
80
|
+
createPlayer: c
|
|
81
|
+
}), (t, a) => (M(), V("div", {
|
|
82
|
+
class: g(d(A))
|
|
84
83
|
}, [
|
|
85
|
-
|
|
84
|
+
x("video", {
|
|
85
|
+
autoplay: d(y).autoplay,
|
|
86
|
+
controls: d(y).controls,
|
|
87
|
+
muted: d(y).muted,
|
|
86
88
|
width: "100%",
|
|
87
89
|
class: "ls-video",
|
|
88
90
|
ref_key: "lsLiveRef",
|
|
89
|
-
ref:
|
|
90
|
-
}
|
|
91
|
+
ref: n
|
|
92
|
+
}, null, 8, z)
|
|
91
93
|
], 2));
|
|
92
94
|
}
|
|
93
95
|
});
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
U as default
|
|
96
98
|
};
|
|
Binary file
|
|
Binary file
|