This commit is contained in:
lzp
2026-03-19 09:56:28 +08:00
parent eb74d58d97
commit e9fb8a3c1d

View File

@@ -10,7 +10,7 @@
<div class="content" v-if="isShow" v-show="show">
<!-- <basic-info :object="activeObject" /> -->
<fill-repeat :object="activeObject" v-if="isRepeat" />
<shape-setting :object="activeObject" v-if="isShape && !isRepeat" />
<!-- <shape-setting :object="activeObject" v-if="isShape && !isRepeat" /> -->
</div>
</div>
</template>
@@ -27,10 +27,10 @@
const layers = computed(() => layerManager.layers.value)
const activeObject = ref(null)
const shapes = ['rect', 'line', 'path', 'triangle', 'polygon', 'ellipse']
const isShape = computed(() => shapes.includes(activeObject.value?.type))
// const shapes = ['rect', 'line', 'path', 'triangle', 'polygon', 'ellipse']
// const isShape = computed(() => shapes.includes(activeObject.value?.type))
const isRepeat = computed(() => activeObject.value?.fill?.repeat === 'repeat')
const isShow = computed(() => isRepeat.value || isShape.value)
const isShow = computed(() => isRepeat.value)
const updateActiveObject = () => {
const obj = layers.value.find((v: any) => v.info.id === activeID.value)