acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/components/s-video-block/s-video-block.js

43 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
2024-10-01 09:15:35 +08:00
const common_vendor = require("../../../../../common/vendor.js");
const modules_mall_sheep_index = require("../../index.js");
const modules_mall_sheep_helper_index = require("../../helper/index.js");
2024-09-19 07:20:14 +08:00
if (!Array) {
const _easycom_su_video2 = common_vendor.resolveComponent("su-video");
_easycom_su_video2();
}
const _easycom_su_video = () => "../../ui/su-video/su-video.js";
if (!Math) {
_easycom_su_video();
}
const _sfc_main = {
__name: "s-video-block",
props: {
data: {
type: Object,
default() {
}
},
styles: {
type: Object,
default() {
}
}
},
setup(__props) {
return (_ctx, _cache) => {
return {
a: common_vendor.p({
2024-10-01 09:15:35 +08:00
uid: common_vendor.unref(modules_mall_sheep_helper_index.guid)(),
src: common_vendor.unref(modules_mall_sheep_index.sheep).$url.cdn(__props.data.videoUrl),
poster: common_vendor.unref(modules_mall_sheep_index.sheep).$url.cdn(__props.data.posterUrl),
2024-09-19 07:20:14 +08:00
height: __props.styles.height * 2,
autoplay: __props.data.autoplay
})
};
};
}
};
2024-10-01 09:15:35 +08:00
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e2407c45"]]);
2024-09-19 07:20:14 +08:00
wx.createComponent(Component);