111
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user