2025-04-12 23:59:03 +08:00
|
|
|
import { useSettingStore } from "/@/store/settings";
|
2024-10-05 01:46:25 +08:00
|
|
|
|
2024-09-05 14:33:45 +08:00
|
|
|
export default {
|
|
|
|
|
mounted(el: any, binding: any, vnode: any) {
|
|
|
|
|
const { value } = binding;
|
2024-10-05 01:46:25 +08:00
|
|
|
const settingStore = useSettingStore();
|
2024-09-05 14:33:45 +08:00
|
|
|
el.className = el.className + " need-plus";
|
2024-10-05 01:46:25 +08:00
|
|
|
if (!settingStore.isPlus) {
|
2024-09-05 14:33:45 +08:00
|
|
|
el.addEventListener("click", function (event: any) {
|
2025-11-07 00:44:13 +08:00
|
|
|
event.stopPropagation();
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
settingStore.checkPlus();
|
2024-09-05 14:33:45 +08:00
|
|
|
});
|
|
|
|
|
el.addEventListener("move", function (event: any) {
|
2025-11-07 00:44:13 +08:00
|
|
|
event.stopPropagation();
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
settingStore.checkPlus();
|
2024-09-05 14:33:45 +08:00
|
|
|
});
|
|
|
|
|
}
|
2025-06-29 14:09:09 +08:00
|
|
|
},
|
2024-09-05 14:33:45 +08:00
|
|
|
};
|