|
@@ -17,7 +17,8 @@ const {
|
|
|
handleMouseMove,
|
|
|
handleMouseOut,
|
|
|
initTableCellsWid,
|
|
|
- getSize
|
|
|
+ getSize,
|
|
|
+ SheetFFType,
|
|
|
} = useResizeTable(tableRef)
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -44,6 +45,10 @@ const HtObj=ref({
|
|
|
2:'right'
|
|
|
})
|
|
|
|
|
|
+const handleFF = (ff) => {
|
|
|
+ return ff ? (typeof ff == 'number' ? SheetFFType[ff] : ff) : ''
|
|
|
+}
|
|
|
+
|
|
|
initTableCellsWid('init',props.sceneConfig)
|
|
|
</script>
|
|
|
|
|
@@ -77,7 +82,8 @@ initTableCellsWid('init',props.sceneConfig)
|
|
|
background: ${cell.bg};
|
|
|
text-align: ${HtObj[cell.HorizontalType]};
|
|
|
font-size: ${cell.fs||props.config.FontSize||12}px;
|
|
|
- width:${index==0?getSize(cell_index,'width'):'auto'}
|
|
|
+ width:${index==0?getSize(cell_index,'width'):'auto'};
|
|
|
+ ${cell.ct.s ? '' : `font-family: ${handleFF(cell.ff)};`}
|
|
|
`"
|
|
|
@mousemove="e =>isCanDrag && handleMouseMove(e,index,cell_index)"
|
|
|
@mousedown="e =>isCanDrag && handleMouseDown(e,index,cell_index)"
|
|
@@ -91,6 +97,7 @@ initTableCellsWid('init',props.sceneConfig)
|
|
|
color: ${word.fc};
|
|
|
font-weight: ${word.bl ? 'bold' : 'normal'};
|
|
|
font-style: ${word.it ? 'italic' : 'normal'};
|
|
|
+ font-family: ${handleFF(word.ff)};
|
|
|
`"
|
|
|
>{{word.v}}</span>
|
|
|
</div>
|