feat(视图):添加视图,预览数据表头增加字段类型icon显示

This commit is contained in:
junjie 2021-05-28 16:12:37 +08:00
parent 1361ac02b1
commit b4e503612a

View File

@ -14,11 +14,17 @@
:key="field.dataeaseName"
min-width="200px"
:field="field.dataeaseName"
:title="field.name"
:resizable="true"
/>
>
<template slot="header">
<svg-icon v-if="field.deType === 0" icon-class="field_text" class="field-icon-text" />
<svg-icon v-if="field.deType === 1" icon-class="field_time" class="field-icon-time" />
<svg-icon v-if="field.deType === 2 || field.deType === 3" icon-class="field_value" class="field-icon-value" />
<span>{{ field.name }}</span>
</template>
</ux-table-column>
</ux-grid>
<span style="font-size: 12px;">{{ $t('chart.preview_100_data') }}</span>
<span v-if="table.name" style="font-size: 12px;">{{ $t('chart.preview_100_data') }}</span>
</el-col>
</template>