forked from github/dataease
fix: 删除无用svg
This commit is contained in:
parent
849f06f650
commit
0c699f9164
@ -3134,10 +3134,11 @@ const deleteChartFieldItem = id => {
|
|||||||
>
|
>
|
||||||
<el-icon>
|
<el-icon>
|
||||||
<Icon
|
<Icon
|
||||||
:class-name="`field-icon-${
|
><component
|
||||||
|
class="svg-icon"
|
||||||
|
:class="`field-icon-${
|
||||||
fieldType[[2, 3].includes(element.deType) ? 2 : 0]
|
fieldType[[2, 3].includes(element.deType) ? 2 : 0]
|
||||||
}`"
|
}`"
|
||||||
><component
|
|
||||||
:is="getIconName(element.deType, element.extField)"
|
:is="getIconName(element.deType, element.extField)"
|
||||||
></component
|
></component
|
||||||
></Icon>
|
></Icon>
|
||||||
|
@ -12,7 +12,17 @@ import icon_info_outlined from '@/assets/svg/icon_info_outlined.svg'
|
|||||||
import icon_textBox_outlined from '@/assets/svg/icon_text-box_outlined.svg'
|
import icon_textBox_outlined from '@/assets/svg/icon_text-box_outlined.svg'
|
||||||
import icon_info_colorful from '@/assets/svg/icon_info_colorful.svg'
|
import icon_info_colorful from '@/assets/svg/icon_info_colorful.svg'
|
||||||
import icon_playRound_outlined from '@/assets/svg/icon_play-round_outlined.svg'
|
import icon_playRound_outlined from '@/assets/svg/icon_play-round_outlined.svg'
|
||||||
import { ref, reactive, onMounted, PropType, toRefs, watch, onBeforeUnmount, shallowRef } from 'vue'
|
import {
|
||||||
|
ref,
|
||||||
|
reactive,
|
||||||
|
onMounted,
|
||||||
|
PropType,
|
||||||
|
toRefs,
|
||||||
|
watch,
|
||||||
|
onBeforeUnmount,
|
||||||
|
shallowRef,
|
||||||
|
h
|
||||||
|
} from 'vue'
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { Base64 } from 'js-base64'
|
import { Base64 } from 'js-base64'
|
||||||
import FixedSizeList from 'element-plus-secondary/es/components/virtual-list/src/components/fixed-size-list.mjs'
|
import FixedSizeList from 'element-plus-secondary/es/components/virtual-list/src/components/fixed-size-list.mjs'
|
||||||
@ -105,11 +115,10 @@ const generateColumns = (arr: Field[]) =>
|
|||||||
headerCellRenderer: ({ column }) => (
|
headerCellRenderer: ({ column }) => (
|
||||||
<div class="flex-align-center">
|
<div class="flex-align-center">
|
||||||
<ElIcon style={{ marginRight: '6px' }}>
|
<ElIcon style={{ marginRight: '6px' }}>
|
||||||
<Icon className={`field-icon-${fieldType[column.deType]}`}>
|
<Icon>
|
||||||
{{
|
{h(iconFieldMap[fieldType[column.deType]], {
|
||||||
...iconFieldMap[fieldType[column.deType]],
|
class: `svg-icon field-icon-${fieldType[column.deType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[column.deType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
||||||
|
@ -23,6 +23,7 @@ import {
|
|||||||
computed,
|
computed,
|
||||||
watch,
|
watch,
|
||||||
provide,
|
provide,
|
||||||
|
h,
|
||||||
onMounted,
|
onMounted,
|
||||||
onBeforeUnmount
|
onBeforeUnmount
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
@ -621,11 +622,10 @@ const generateColumns = (arr: Field[]) =>
|
|||||||
headerCellRenderer: ({ column }) => (
|
headerCellRenderer: ({ column }) => (
|
||||||
<div class="flex-align-center">
|
<div class="flex-align-center">
|
||||||
<ElIcon>
|
<ElIcon>
|
||||||
<Icon className={`field-icon-${fieldType[column.deType]}`}>
|
<Icon>
|
||||||
{{
|
{h(iconFieldMap[fieldType[column.deType]], {
|
||||||
...iconFieldMap[fieldType[column.deType]],
|
class: `svg-icon field-icon-${fieldType[column.deType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[column.deType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
<span class="ellipsis" title={column.title} style={{ width: '120px', marginLeft: '4px' }}>
|
<span class="ellipsis" title={column.title} style={{ width: '120px', marginLeft: '4px' }}>
|
||||||
|
@ -218,11 +218,10 @@ const allFieldsColumns = [
|
|||||||
cellRenderer: ({ cellData: deType }) => (
|
cellRenderer: ({ cellData: deType }) => (
|
||||||
<div style={{ width: '100%', display: 'flex', alignItems: 'center' }}>
|
<div style={{ width: '100%', display: 'flex', alignItems: 'center' }}>
|
||||||
<ElIcon style={{ marginRight: '6px' }}>
|
<ElIcon style={{ marginRight: '6px' }}>
|
||||||
<Icon className={`field-icon-${fieldType[deType]}`}>
|
<Icon>
|
||||||
{{
|
{h(iconFieldMap[fieldType[deType]], {
|
||||||
...iconFieldMap[fieldType[deType]],
|
class: `svg-icon field-icon-${fieldType[deType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[deType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
{t(`dataset.${fieldType[deType]}`) +
|
{t(`dataset.${fieldType[deType]}`) +
|
||||||
@ -258,11 +257,10 @@ const generateColumns = (arr: Field[]) =>
|
|||||||
headerCellRenderer: ({ column }) => (
|
headerCellRenderer: ({ column }) => (
|
||||||
<div class="flex-align-center">
|
<div class="flex-align-center">
|
||||||
<ElIcon style={{ marginRight: '6px' }}>
|
<ElIcon style={{ marginRight: '6px' }}>
|
||||||
<Icon className={`field-icon-${fieldType[column.deType]}`}>
|
<Icon>
|
||||||
{{
|
{h(iconFieldMap[fieldType[column.deType]], {
|
||||||
...iconFieldMap[fieldType[column.deType]],
|
class: `svg-icon field-icon-${fieldType[column.deType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[column.deType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
||||||
|
@ -7,6 +7,7 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
shallowRef,
|
shallowRef,
|
||||||
reactive,
|
reactive,
|
||||||
|
h,
|
||||||
computed,
|
computed,
|
||||||
toRefs,
|
toRefs,
|
||||||
onMounted,
|
onMounted,
|
||||||
@ -117,11 +118,10 @@ const generateColumns = (arr: Field[]) =>
|
|||||||
headerCellRenderer: ({ column }) => (
|
headerCellRenderer: ({ column }) => (
|
||||||
<div class="flex-align-center icon">
|
<div class="flex-align-center icon">
|
||||||
<ElIcon>
|
<ElIcon>
|
||||||
<Icon className={`field-icon-${fieldType[column.fieldType]}`}>
|
<Icon>
|
||||||
{{
|
{h(iconFieldMap[fieldType[column.fieldType]], {
|
||||||
...iconFieldMap[fieldType[column.fieldType]],
|
class: `svg-icon field-icon-${fieldType[column.fieldType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[column.fieldType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
<span class="ellipsis" title={column.title} style={{ width: '100px' }}>
|
<span class="ellipsis" title={column.title} style={{ width: '100px' }}>
|
||||||
|
@ -243,10 +243,9 @@ const generateColumns = (arr: Field[]) =>
|
|||||||
<div class="flex-align-center">
|
<div class="flex-align-center">
|
||||||
<ElIcon style={{ marginRight: '6px' }}>
|
<ElIcon style={{ marginRight: '6px' }}>
|
||||||
<Icon className={`field-icon-${fieldType[column.deType]}`}>
|
<Icon className={`field-icon-${fieldType[column.deType]}`}>
|
||||||
{{
|
{h(iconFieldMap[fieldType[column.deType]], {
|
||||||
...iconFieldMap[fieldType[column.deType]],
|
class: `svg-icon field-icon-${fieldType[column.deType]}`
|
||||||
className: `svg-icon field-icon-${fieldType[column.deType]}`
|
})}
|
||||||
}}
|
|
||||||
</Icon>
|
</Icon>
|
||||||
</ElIcon>
|
</ElIcon>
|
||||||
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
<span class="ellipsis" title={column.title} style={{ width: '120px' }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user