"use strict"; const common_vendor = require("../../../common/vendor.js"); const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "skill", emits: ["clickcircle"], setup(__props, { emit: __emit }) { const emit = __emit; const upmenuIndex = common_vendor.ref(-1); const isClick = common_vendor.ref(true); const clickCircle = (type) => { if (isClick.value) { switch (type) { case "rightup": isClick.value = false; setTimeout(() => { upmenuIndex.value = -1; isClick.value = true; emit("clickcircle", 0); }, 0); break; case "leftbottom": isClick.value = false; setTimeout(() => { upmenuIndex.value = -1; isClick.value = true; emit("clickcircle", 1); }, 0); break; } } }; return (_ctx, _cache) => { return { a: common_vendor.n(upmenuIndex.value == 0 ? `circle-img-target` : `circle-img`), b: upmenuIndex.value == 0 ? `/static/index/keyimg/white.png` : `/static/index/keyimg/white.png`, c: common_vendor.o(($event) => clickCircle(`rightup`)), d: common_vendor.n(upmenuIndex.value == 0 ? `circle-img-target` : `circle-img`), e: upmenuIndex.value == 0 ? `/static/index/keyimg/key1.png` : `/static/index/keyimg/back.png`, f: common_vendor.o(($event) => clickCircle(`leftbottom`)) }; }; } }); const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-e97a9bd6"]]); wx.createComponent(Component); //# sourceMappingURL=../../../../.sourcemap/mp-weixin/component/public/game/skill.js.map