Browse Source

refactor(gui-v2): use autoload icons

pull/3049/head
Wing-Kam Wong 2 years ago
parent
commit
e8a122899a
  1. 6
      packages/nc-gui-v2/components/smartsheet-column/FormulaOptions.vue

6
packages/nc-gui-v2/components/smartsheet-column/FormulaOptions.vue

@ -16,8 +16,6 @@ import {
insertAtCursor, insertAtCursor,
validateDateWithUnknownFormat, validateDateWithUnknownFormat,
} from '@/utils' } from '@/utils'
import MdiFunctionIcon from '~icons/mdi/function'
import MdiOperatorIcon from '~icons/mdi/calculator'
enum JSEPNode { enum JSEPNode {
COMPOUND = 'Compound', COMPOUND = 'Compound',
@ -665,8 +663,8 @@ onMounted(() => {
</div> </div>
</template> </template>
<template #avatar> <template #avatar>
<MdiFunctionIcon v-if="item.type === 'function'" class="text-lg" /> <mdi-function v-if="item.type === 'function'" class="text-lg" />
<MdiOperatorIcon v-if="item.type === 'op'" class="text-lg" /> <mdi-calculator v-if="item.type === 'op'" class="text-lg" />
<component :is="item.icon" v-if="item.type === 'column'" class="text-lg" /> <component :is="item.icon" v-if="item.type === 'column'" class="text-lg" />
</template> </template>
</a-list-item-meta> </a-list-item-meta>

Loading…
Cancel
Save