UNPKG

@cmstops/pro-compo

Version:

[物料平台文档中心](https://arco.design/docs/material/guide)

43 lines (42 loc) 1.34 kB
"use strict"; var vue = require("vue"); var index = require("../../../../videoThumb/index.js"); var ListWraper = require("../ListWraper.js"); const _sfc_main = vue.defineComponent({ __name: "index", setup(__props) { const videoThumbOptions = vue.inject("videoThumbOptions"); const curSelect = vue.ref(""); function handlerConfirm() { const url = curSelect.value; return [ { url, alias: url, catalog: "image", thumb: url } ]; } return (_ctx, _cache) => { return vue.openBlock(), vue.createBlock(ListWraper, null, { "footer-extra": vue.withCtx(() => [ vue.renderSlot(_ctx.$slots, "footer-extra", { type: "video", isEmpty: !curSelect.value, onConfirm: handlerConfirm }) ]), default: vue.withCtx(() => [ vue.unref(videoThumbOptions) ? (vue.openBlock(), vue.createBlock(vue.unref(index), vue.mergeProps({ key: 0, value: curSelect.value, "onUpdate:value": _cache[0] || (_cache[0] = ($event) => curSelect.value = $event) }, vue.unref(videoThumbOptions), { offset: 115 }), null, 16, ["value"])) : vue.createCommentVNode("v-if", true) ]), _: 3 }); }; } }); module.exports = _sfc_main;