UNPKG

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)

68 lines (67 loc) 1.55 kB
import { defineComponent as l, createVNode as t, Fragment as p, mergeProps as m } from "vue"; import { powerfulTableComponentProp as u, isData as w, useREmit as c, isProperty as x } from "../../powerful-table/src/powerful-table-data.mjs"; const r = /* @__PURE__ */ l({ name: "PTVideo", props: { ...u, prop: { type: Object, default: () => ({}) } }, emits: ["return-emit", "component-emit"], setup(e, { emit: d }) { const o = w({ row: e.row, index: e.index, props: e.prop }, e.prop.data), { REmit: i, event: a } = c(d, "video", { row: e.row, index: e.index, props: e.prop }); return () => t(p, null, [t("div", { style: (o == null ? void 0 : o.style) || {} }, [t("video", m({ style: "width:100%;height: 100%", src: e.row[e.prop.prop], loop: !1, class: "avatar video-avatar", controls: !0, onPlay: (n) => { i("play", { row: e.row, index: e.index, prop: e.prop.prop, evt: n }), a("play", n); }, onPause: (n) => { i("pause", { row: e.row, index: e.index, prop: e.prop.prop, evt: n }), a("pause", n); } }, x({ row: e.row, index: e.index, props: e.prop }, o == null ? void 0 : o.property)), null)])]); } }); r.install = (e) => { e.component(r.name, r); }; const f = r; export { f as PTVideo, r as default }; //# sourceMappingURL=video.mjs.map