UNPKG

@tencentcloud/roomkit-web-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

52 lines (51 loc) 1.72 kB
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, createVNode, withCtx, unref } from "vue"; import { IconArrowStrokeLeft } from "@tencentcloud/uikit-base-component-vue3"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "ArrowStroke", props: { strokePosition: {}, arrowDirection: {}, hasStroke: { type: Boolean } }, emits: ["click-arrow"], setup(__props, { emit: __emit }) { const props = __props; const emits = __emit; const arrowStrokeClass = computed( () => `arrow-stroke-container-${props.strokePosition}` ); function handleClickArrow() { emits("click-arrow"); } return (_ctx, _cache) => { const _component_svg_icon = resolveComponent("svg-icon"); return openBlock(), createElementBlock("div", { class: normalizeClass(arrowStrokeClass.value) }, [ createElementVNode("div", { class: normalizeClass(["stroke-content", { "has-stroke": _ctx.hasStroke }]) }, [ createElementVNode("div", { class: "arrow-content", onClick: handleClickArrow }) ], 2), createVNode(_component_svg_icon, { class: normalizeClass(["arrow", { "has-stroke": _ctx.hasStroke }]), onClick: handleClickArrow }, { default: withCtx(() => [ createVNode(unref(IconArrowStrokeLeft), { class: normalizeClass(_ctx.arrowDirection), style: { "width": "8px", "height": "12px" } }, null, 8, ["class"]) ]), _: 1 }, 8, ["class"]) ], 2); }; } }); export { _sfc_main as default };