el-plus-powerful-table
Version:
## [DOCS](https://peng-xiao-shuai.github.io/vite-vue-admin-docs/zh-CN/component_directive/component/powerful-table-doc.html)
64 lines (63 loc) • 1.47 kB
JavaScript
import { defineComponent as a, createVNode as n, Fragment as d, mergeProps as m } from "vue";
import { powerfulTableComponentProp as u, useREmit as c, isProperty as s } from "../../powerful-table/src/powerful-table-data.mjs";
const t = /* @__PURE__ */ a({
name: "PTVideo",
props: {
...u,
prop: {
type: Object,
default: () => ({})
}
},
emits: ["return-emit", "component-emit"],
setup(e, {
emit: l
}) {
const o = e.prop.data, {
REmit: i,
event: p
} = c(l, "video", {
row: e.row,
index: e.index,
props: e.prop
});
return () => n(d, null, [n("div", {
style: (o == null ? void 0 : o.style) || {}
}, [n("video", m({
style: "width:100%;height: 100%",
src: e.row[e.prop.prop],
loop: !1,
class: "avatar video-avatar",
controls: !0,
onPlay: (r) => {
i("play", {
row: e.row,
index: e.index,
prop: e.prop.prop,
evt: r
}), p("play", r);
},
onPause: (r) => {
i("pause", {
row: e.row,
index: e.index,
prop: e.prop.prop,
evt: r
}), p("pause", r);
}
}, s({
row: e.row,
index: e.index,
props: e.prop
}, o == null ? void 0 : o.property)), null)])]);
}
});
t.install = (e) => {
e.component(t.name, t);
};
const y = t;
export {
y as PTVideo,
t as default
};
//# sourceMappingURL=video.mjs.map