条件判断添加作用范围样式及拖拽校验

This commit is contained in:
fofolee
2025-01-01 14:04:37 +08:00
parent 9ea10f8033
commit f3a01a1ba9
10 changed files with 474 additions and 166 deletions

View File

@@ -251,6 +251,13 @@ export default defineComponent({
.padStart(2, "0")
);
},
getUniqueId() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
const r = (Math.random() * 16) | 0;
const v = c === "x" ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
},
},
watch: {
// 监听 glassEffect 值变化