|
@@ -1,5 +1,5 @@
|
|
|
<script setup lang='ts'>
|
|
|
-import { PropType,computed } from 'vue';
|
|
|
+import { PropType,computed,ref } from 'vue';
|
|
|
import { isMobile } from '@/utils/utils'
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -17,6 +17,12 @@ const dynamicSty = computed(()=>{
|
|
|
return isMobile() ? 'mobile-sty' : 'pc-sty';
|
|
|
})
|
|
|
|
|
|
+const HtObj=ref({
|
|
|
+ 0:"center",
|
|
|
+ 1:'left',
|
|
|
+ 2:'right'
|
|
|
+})
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -46,6 +52,7 @@ const dynamicSty = computed(()=>{
|
|
|
font-weight: ${cell.bl ? 'bold' : 'normal'};
|
|
|
font-style: ${cell.it ? 'italic' : 'normal'};
|
|
|
background: ${cell.bg};
|
|
|
+ text-align: ${HtObj[cell.HorizontalType]};
|
|
|
`"
|
|
|
>
|
|
|
<!-- 单元格拆分 -->
|