feat: 使用prettierrc对代码进行格式化

This commit is contained in:
piexlMax(奇淼
2024-11-09 10:32:26 +08:00
parent 87a4ce17e1
commit 7d9af64f6d
139 changed files with 12677 additions and 12656 deletions
+22 -26
View File
@@ -1,35 +1,31 @@
<template>
<vue-office-docx
:src="docx"
@rendered="rendered"
/>
<vue-office-docx :src="docx" @rendered="rendered" />
</template>
<script>
export default {
name: 'Docx'
}
export default {
name: 'Docx'
}
</script>
<script setup>
import { ref, watch } from 'vue'
import { ref, watch } from 'vue'
// 引入VueOfficeDocx组件
import VueOfficeDocx from '@vue-office/docx'
// 引入相关样式
import '@vue-office/docx/lib/index.css'
// 引入VueOfficeDocx组件
import VueOfficeDocx from '@vue-office/docx'
// 引入相关样式
import '@vue-office/docx/lib/index.css'
const model = defineModel({
type: String,
})
const model = defineModel({
type: String
})
const docx = ref(null)
watch(
() => model,
value => { docx.value = value },
{ immediate: true }
)
const rendered = () => {
}
const docx = ref(null)
watch(
() => model,
(value) => {
docx.value = value
},
{ immediate: true }
)
const rendered = () => {}
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>