mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 表格文字样式未初始化(#41)
This commit is contained in:
parent
7428cac662
commit
702e91e9b4
@ -192,7 +192,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { computed, defineComponent, ref, watch } from 'vue'
|
import { computed, defineComponent, onMounted, ref, watch } from 'vue'
|
||||||
import { MutationTypes, useStore } from '@/store'
|
import { MutationTypes, useStore } from '@/store'
|
||||||
import { PPTTableElement, TableCell, TableCellStyle, TableTheme } from '@/types/slides'
|
import { PPTTableElement, TableCell, TableCellStyle, TableTheme } from '@/types/slides'
|
||||||
import { createRandomCode } from '@/utils/common'
|
import { createRandomCode } from '@/utils/common'
|
||||||
@ -297,6 +297,10 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
if (selectedCells.value.length) updateTextAttrState()
|
||||||
|
})
|
||||||
|
|
||||||
watch(selectedCells, updateTextAttrState)
|
watch(selectedCells, updateTextAttrState)
|
||||||
|
|
||||||
// 设置单元格内容文本样式
|
// 设置单元格内容文本样式
|
||||||
|
Loading…
x
Reference in New Issue
Block a user