diff --git a/src/packages/components/Tables/Tables/TableList/config.ts b/src/packages/components/Tables/Tables/TableList/config.ts index 920685e9..d3f60d4d 100644 --- a/src/packages/components/Tables/Tables/TableList/config.ts +++ b/src/packages/components/Tables/Tables/TableList/config.ts @@ -19,6 +19,12 @@ export const option = { textColor: '#CDD2F8FF', borderColor: '#1370fb80', carousel: 'single', + //序号字体大小 + indexFontSize: 12, + //左侧数据字体大小 + leftFontSize: 12, + //右侧数据字体大小 + rightFontSize: 12, // 格式化 valueFormatter(item: { value: any}) { return item.value} } diff --git a/src/packages/components/Tables/Tables/TableList/config.vue b/src/packages/components/Tables/Tables/TableList/config.vue index bd7c34c5..fb76b46e 100644 --- a/src/packages/components/Tables/Tables/TableList/config.vue +++ b/src/packages/components/Tables/Tables/TableList/config.vue @@ -49,6 +49,31 @@ > + + + + + + + + + + + + + diff --git a/src/packages/components/Tables/Tables/TableList/index.vue b/src/packages/components/Tables/Tables/TableList/index.vue index f5e95e07..f1b8d487 100644 --- a/src/packages/components/Tables/Tables/TableList/index.vue +++ b/src/packages/components/Tables/Tables/TableList/index.vue @@ -7,9 +7,9 @@ :style="`height: ${status.heights[i]}px;`" >
-
No.{{ item.ranking }}
-
-
+
No.{{ item.ranking }}
+
+
{{ status.mergedConfig.valueFormatter ? status.mergedConfig.valueFormatter(item) @@ -43,7 +43,7 @@ const props = defineProps({ }, }) const { w, h } = toRefs(props.chartConfig.attr) -const { rowNum, unit, color, textColor, borderColor } = toRefs( +const { rowNum, unit, color, textColor, borderColor, indexFontSize, leftFontSize, rightFontSize } = toRefs( props.chartConfig.option ) @@ -166,10 +166,12 @@ watch( // 数据更新 watch( - () => props.chartConfig.option.dataset, + () => props.chartConfig.option, () => { + console.log('数据更新', props.chartConfig.option) onRestart() - } + }, + {deep:true} ) useChartDataFetch(props.chartConfig, useChartEditStore) @@ -197,9 +199,10 @@ onUnmounted(() => { display: flex; width: 100%; font-size: 13px; + align-items: center; .rank { - width: 40px; + margin-right: 5px; } .info-name {