|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="go-shape-box" :class="{ lock: item.status.lock, hide: item.status.hide }">
|
|
|
|
|
|
|
+ <div class="go-shape-box" :class="{ lock, hide }">
|
|
|
<slot></slot>
|
|
<slot></slot>
|
|
|
<!-- 锚点 -->
|
|
<!-- 锚点 -->
|
|
|
<template v-if="!hiddenPoint">
|
|
<template v-if="!hiddenPoint">
|
|
@@ -65,6 +65,16 @@ const select = computed(() => {
|
|
|
if (props.item.status.lock) return false
|
|
if (props.item.status.lock) return false
|
|
|
return chartEditStore.getTargetChart.selectId.find((e: string) => e === id)
|
|
return chartEditStore.getTargetChart.selectId.find((e: string) => e === id)
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+// 锁定
|
|
|
|
|
+const lock = computed(() => {
|
|
|
|
|
+ return props.item.status.lock
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+// 隐藏
|
|
|
|
|
+const hide = computed(() => {
|
|
|
|
|
+ return props.item.status.hide
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|