fix: 表格文字样式未初始化(#41)

This commit is contained in:
pipipi-pikachu 2021-06-22 20:49:12 +08:00
parent 7428cac662
commit 702e91e9b4

View File

@ -192,7 +192,7 @@
</template>
<script lang="ts">
import { computed, defineComponent, ref, watch } from 'vue'
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
import { MutationTypes, useStore } from '@/store'
import { PPTTableElement, TableCell, TableCellStyle, TableTheme } from '@/types/slides'
import { createRandomCode } from '@/utils/common'
@ -297,6 +297,10 @@ export default defineComponent({
}
}
onMounted(() => {
if (selectedCells.value.length) updateTextAttrState()
})
watch(selectedCells, updateTextAttrState)
//