111
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<div class="content" v-if="isShow" v-show="show">
|
<div class="content" v-if="isShow" v-show="show">
|
||||||
<!-- <basic-info :object="activeObject" /> -->
|
<!-- <basic-info :object="activeObject" /> -->
|
||||||
<fill-repeat :object="activeObject" v-if="isRepeat" />
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
const layers = computed(() => layerManager.layers.value)
|
const layers = computed(() => layerManager.layers.value)
|
||||||
const activeObject = ref(null)
|
const activeObject = ref(null)
|
||||||
|
|
||||||
const shapes = ['rect', 'line', 'path', 'triangle', 'polygon', 'ellipse']
|
// const shapes = ['rect', 'line', 'path', 'triangle', 'polygon', 'ellipse']
|
||||||
const isShape = computed(() => shapes.includes(activeObject.value?.type))
|
// const isShape = computed(() => shapes.includes(activeObject.value?.type))
|
||||||
const isRepeat = computed(() => activeObject.value?.fill?.repeat === 'repeat')
|
const isRepeat = computed(() => activeObject.value?.fill?.repeat === 'repeat')
|
||||||
const isShow = computed(() => isRepeat.value || isShape.value)
|
const isShow = computed(() => isRepeat.value)
|
||||||
|
|
||||||
const updateActiveObject = () => {
|
const updateActiveObject = () => {
|
||||||
const obj = layers.value.find((v: any) => v.info.id === activeID.value)
|
const obj = layers.value.find((v: any) => v.info.id === activeID.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user