47 lines
1.7 KiB
JavaScript
47 lines
1.7 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "skilmovedelete",
|
|
emits: ["clickdelete"],
|
|
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("clickdelete", 0);
|
|
}, 0);
|
|
break;
|
|
case "leftbottom":
|
|
isClick.value = false;
|
|
setTimeout(() => {
|
|
upmenuIndex.value = -1;
|
|
isClick.value = true;
|
|
emit("clickdelete", 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/key1.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-4595ea88"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/component/public/game/skilmovedelete.js.map
|