Browse Source

refactor: group import statements

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4406/head
Pranav C 2 years ago
parent
commit
0d98aac265
  1. 4
      packages/nc-gui/components/cell/MultiSelect.vue
  2. 4
      packages/nc-gui/components/cell/SingleSelect.vue

4
packages/nc-gui/components/cell/MultiSelect.vue

@ -10,6 +10,7 @@ import {
ReadonlyInj, ReadonlyInj,
computed, computed,
enumColor, enumColor,
extractSdkResponseErrorMsg,
h, h,
inject, inject,
onMounted, onMounted,
@ -21,7 +22,6 @@ import {
useSelectedCellKeyupListener, useSelectedCellKeyupListener,
watch, watch,
} from '#imports' } from '#imports'
import { extractSdkResponseErrorMsg } from '~/utils'
import MdiCloseCircle from '~icons/mdi/close-circle' import MdiCloseCircle from '~icons/mdi/close-circle'
interface Props { interface Props {
@ -284,13 +284,13 @@ const onTagClick = (e: Event, onClose: Function) => {
<template #tagRender="{ value: val, onClose }"> <template #tagRender="{ value: val, onClose }">
<a-tag <a-tag
@click="onTagClick($event, onClose)"
v-if="options.find((el) => el.title === val)" v-if="options.find((el) => el.title === val)"
class="rounded-tag nc-selected-option" class="rounded-tag nc-selected-option"
:style="{ display: 'flex', alignItems: 'center' }" :style="{ display: 'flex', alignItems: 'center' }"
:color="options.find((el) => el.title === val)?.color" :color="options.find((el) => el.title === val)?.color"
:closable="(active || editable) && (vModel.length > 1 || !column?.rqd)" :closable="(active || editable) && (vModel.length > 1 || !column?.rqd)"
:close-icon="h(MdiCloseCircle, { class: ['ms-close-icon'] })" :close-icon="h(MdiCloseCircle, { class: ['ms-close-icon'] })"
@click="onTagClick($event, onClose)"
@close="onClose" @close="onClose"
> >
<span <span

4
packages/nc-gui/components/cell/SingleSelect.vue

@ -3,7 +3,6 @@ import { message } from 'ant-design-vue'
import tinycolor from 'tinycolor2' import tinycolor from 'tinycolor2'
import type { Select as AntSelect } from 'ant-design-vue' import type { Select as AntSelect } from 'ant-design-vue'
import type { SelectOptionType } from 'nocodb-sdk' import type { SelectOptionType } from 'nocodb-sdk'
import { useSelectedCellKeyupListener } from '~/composables/useSelectedCellKeyupListener'
import { import {
ActiveCellInj, ActiveCellInj,
ColumnInj, ColumnInj,
@ -12,11 +11,12 @@ import {
ReadonlyInj, ReadonlyInj,
computed, computed,
enumColor, enumColor,
extractSdkResponseErrorMsg,
inject, inject,
ref, ref,
useSelectedCellKeyupListener,
watch, watch,
} from '#imports' } from '#imports'
import { extractSdkResponseErrorMsg } from '~/utils'
interface Props { interface Props {
modelValue?: string | undefined modelValue?: string | undefined

Loading…
Cancel
Save