mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
521 lines
16 KiB
521 lines
16 KiB
2 years ago
|
<script setup lang="ts">
|
||
2 years ago
|
import type { TableType } from 'nocodb-sdk'
|
||
2 years ago
|
import Sortable from 'sortablejs'
|
||
2 years ago
|
import { Empty } from 'ant-design-vue'
|
||
2 years ago
|
import GithubButton from 'vue-github-button'
|
||
2 years ago
|
import {
|
||
|
computed,
|
||
|
inject,
|
||
|
reactive,
|
||
|
ref,
|
||
|
useDialog,
|
||
|
useNuxtApp,
|
||
|
useProject,
|
||
|
useTable,
|
||
|
useTabs,
|
||
|
useUIPermission,
|
||
|
watchEffect,
|
||
|
} from '#imports'
|
||
2 years ago
|
import DlgAirtableImport from '~/components/dlg/AirtableImport.vue'
|
||
|
import DlgQuickImport from '~/components/dlg/QuickImport.vue'
|
||
|
import DlgTableCreate from '~/components/dlg/TableCreate.vue'
|
||
2 years ago
|
import DlgTableRename from '~/components/dlg/TableRename.vue'
|
||
2 years ago
|
import { TabType } from '~/composables'
|
||
2 years ago
|
import MdiView from '~icons/mdi/eye-circle-outline'
|
||
2 years ago
|
import MdiTableLarge from '~icons/mdi/table-large'
|
||
2 years ago
|
import MdiMenuIcon from '~icons/mdi/dots-vertical'
|
||
2 years ago
|
import MdiDrag from '~icons/mdi/drag-vertical'
|
||
2 years ago
|
|
||
|
const { addTab } = useTabs()
|
||
2 years ago
|
|
||
2 years ago
|
const { $api, $e } = useNuxtApp()
|
||
2 years ago
|
|
||
2 years ago
|
const { tables, loadTables, isSharedBase } = useProject()
|
||
2 years ago
|
|
||
2 years ago
|
const { activeTab } = useTabs()
|
||
2 years ago
|
|
||
2 years ago
|
const { deleteTable } = useTable()
|
||
2 years ago
|
|
||
2 years ago
|
const { isUIAllowed } = useUIPermission()
|
||
|
|
||
2 years ago
|
const isLocked = inject('TreeViewIsLockedInj')
|
||
|
|
||
2 years ago
|
let key = $ref(0)
|
||
|
|
||
|
const menuRef = $ref<HTMLLIElement>()
|
||
|
|
||
|
const filterQuery = $ref('')
|
||
|
|
||
|
const activeTable = computed(() => ([TabType.TABLE, TabType.VIEW].includes(activeTab.value?.type) ? activeTab.value.title : null))
|
||
|
|
||
|
const tablesById = $computed(() =>
|
||
|
tables.value?.reduce((acc: Record<string, TableType>, table) => {
|
||
|
acc[table.id!] = table
|
||
|
|
||
2 years ago
|
return acc
|
||
|
}, {}),
|
||
|
)
|
||
|
|
||
2 years ago
|
const filteredTables = $computed(() =>
|
||
|
tables.value?.filter((table) => !filterQuery || table.title.toLowerCase().includes(filterQuery.toLowerCase())),
|
||
|
)
|
||
2 years ago
|
|
||
2 years ago
|
let sortable: Sortable
|
||
2 years ago
|
|
||
2 years ago
|
// todo: replace with vuedraggable
|
||
|
const initSortable = (el: Element) => {
|
||
|
if (sortable) sortable.destroy()
|
||
|
sortable = Sortable.create(el as HTMLLIElement, {
|
||
|
handle: '.nc-drag-icon',
|
||
|
onEnd: async (evt) => {
|
||
|
const { newIndex = 0, oldIndex = 0 } = evt
|
||
2 years ago
|
|
||
2 years ago
|
const itemEl = evt.item as HTMLLIElement
|
||
|
const item = tablesById[itemEl.dataset.id as string]
|
||
2 years ago
|
|
||
2 years ago
|
// get the html collection of all list items
|
||
|
const children: HTMLCollection = evt.to.children
|
||
2 years ago
|
|
||
2 years ago
|
// skip if children count is 1
|
||
|
if (children.length < 2) return
|
||
|
|
||
2 years ago
|
// get items before and after the moved item
|
||
|
const itemBeforeEl = children[newIndex - 1] as HTMLLIElement
|
||
|
const itemAfterEl = children[newIndex + 1] as HTMLLIElement
|
||
2 years ago
|
|
||
2 years ago
|
// get items meta of before and after the moved item
|
||
|
const itemBefore = itemBeforeEl && tablesById[itemBeforeEl.dataset.id as string]
|
||
|
const itemAfter = itemAfterEl && tablesById[itemAfterEl.dataset.id as string]
|
||
2 years ago
|
|
||
2 years ago
|
// set new order value based on the new order of the items
|
||
|
if (children.length - 1 === evt.newIndex) {
|
||
|
item.order = (itemBefore.order as number) + 1
|
||
|
} else if (newIndex === 0) {
|
||
|
item.order = (itemAfter.order as number) / 2
|
||
|
} else {
|
||
|
item.order = ((itemBefore.order as number) + (itemAfter.order as number)) / 2
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
// update the order of the moved item
|
||
|
tables.value?.splice(newIndex, 0, ...tables.value?.splice(oldIndex, 1))
|
||
|
|
||
|
// force re-render the list
|
||
|
key++
|
||
|
|
||
|
// update the item order
|
||
|
await $api.dbTable.reorder(item.id as string, {
|
||
|
order: item.order as any,
|
||
|
})
|
||
|
},
|
||
|
animation: 150,
|
||
|
})
|
||
|
}
|
||
|
|
||
|
watchEffect(() => {
|
||
|
if (menuRef) {
|
||
|
initSortable(menuRef)
|
||
|
}
|
||
2 years ago
|
})
|
||
2 years ago
|
|
||
|
const icon = (table: TableType) => {
|
||
|
if (table.type === 'table') {
|
||
|
return MdiTableLarge
|
||
|
}
|
||
|
if (table.type === 'view') {
|
||
|
return MdiView
|
||
|
}
|
||
|
}
|
||
|
|
||
2 years ago
|
const contextMenuTarget = reactive<{ type?: 'table' | 'main'; value?: any }>({})
|
||
2 years ago
|
|
||
2 years ago
|
const setMenuContext = (type: 'table' | 'main', value?: any) => {
|
||
|
contextMenuTarget.type = type
|
||
|
contextMenuTarget.value = value
|
||
2 years ago
|
|
||
2 years ago
|
$e('c:table:create:navdraw:right-click')
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
2 years ago
|
const reloadTables = async () => {
|
||
|
$e('a:table:refresh:navdraw')
|
||
2 years ago
|
|
||
2 years ago
|
await loadTables()
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
const addTableTab = (table: TableType) => {
|
||
|
$e('a:table:open')
|
||
2 years ago
|
|
||
2 years ago
|
addTab({ title: table.title, id: table.id, type: table.type as any })
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
2 years ago
|
function openRenameTableDialog(table: TableType, rightClick = false) {
|
||
|
$e(rightClick ? 'c:table:rename:navdraw:right-click' : 'c:table:rename:navdraw:options')
|
||
|
|
||
|
const isOpen = ref(true)
|
||
|
|
||
|
const { close } = useDialog(DlgTableRename, {
|
||
|
'modelValue': isOpen,
|
||
|
'tableMeta': table,
|
||
|
'onUpdate:modelValue': closeDialog,
|
||
|
})
|
||
|
|
||
|
function closeDialog() {
|
||
|
isOpen.value = false
|
||
|
|
||
|
close(1000)
|
||
|
}
|
||
|
}
|
||
2 years ago
|
|
||
|
function openQuickImportDialog(type: string) {
|
||
|
$e(`a:actions:import-${type}`)
|
||
|
|
||
|
const isOpen = ref(true)
|
||
|
|
||
|
const { close } = useDialog(DlgQuickImport, {
|
||
|
'modelValue': isOpen,
|
||
|
'importType': type,
|
||
|
'onUpdate:modelValue': closeDialog,
|
||
|
})
|
||
|
|
||
|
function closeDialog() {
|
||
|
isOpen.value = false
|
||
|
|
||
|
close(1000)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function openAirtableImportDialog() {
|
||
|
$e('a:actions:import-airtable')
|
||
|
|
||
|
const isOpen = ref(true)
|
||
|
|
||
|
const { close } = useDialog(DlgAirtableImport, {
|
||
|
'modelValue': isOpen,
|
||
|
'onUpdate:modelValue': closeDialog,
|
||
|
})
|
||
|
|
||
|
function closeDialog() {
|
||
|
isOpen.value = false
|
||
|
|
||
|
close(1000)
|
||
|
}
|
||
|
}
|
||
2 years ago
|
|
||
|
function openTableCreateDialog() {
|
||
|
$e('a:actions:create-table')
|
||
|
|
||
|
const isOpen = ref(true)
|
||
|
|
||
|
const { close } = useDialog(DlgTableCreate, {
|
||
|
'modelValue': isOpen,
|
||
|
'onUpdate:modelValue': closeDialog,
|
||
|
})
|
||
|
|
||
|
function closeDialog() {
|
||
|
isOpen.value = false
|
||
|
|
||
|
close(1000)
|
||
|
}
|
||
|
}
|
||
2 years ago
|
</script>
|
||
|
|
||
2 years ago
|
<template>
|
||
2 years ago
|
<div class="nc-treeview-container flex flex-col">
|
||
2 years ago
|
<a-dropdown :trigger="['contextmenu']">
|
||
2 years ago
|
<div class="pt-2 pl-2 pb-2 flex-1 overflow-y-auto flex flex-col scrollbar-thin-dull" :class="{ 'mb-[20px]': isSharedBase }">
|
||
|
<div class="py-1 px-3 flex w-full items-center gap-1 cursor-pointer" @contextmenu="setMenuContext('main')">
|
||
|
<span class="flex-1 text-bold uppercase nc-project-tree text-gray-500 font-weight-bold">
|
||
2 years ago
|
{{ $t('objects.tables') }}
|
||
|
|
||
|
<template v-if="tables?.length"> ({{ tables.length }}) </template>
|
||
|
</span>
|
||
2 years ago
|
</div>
|
||
2 years ago
|
|
||
|
<div class="flex-1">
|
||
2 years ago
|
<div
|
||
2 years ago
|
v-if="isUIAllowed('table-create')"
|
||
2 years ago
|
class="group flex items-center gap-2 pl-5 pr-3 py-2 text-primary/70 hover:(text-primary/100) cursor-pointer select-none"
|
||
2 years ago
|
@click="openTableCreateDialog"
|
||
2 years ago
|
>
|
||
|
<MdiPlus />
|
||
2 years ago
|
|
||
2 years ago
|
<span class="text-gray-500 group-hover:(text-primary/100) flex-1 nc-add-new-table">{{ $t('tooltip.addTable') }}</span>
|
||
2 years ago
|
|
||
2 years ago
|
<a-dropdown v-if="!isSharedBase" :trigger="['click']" @click.stop>
|
||
2 years ago
|
<MdiDotsVertical class="transition-opacity opacity-0 group-hover:opacity-100 nc-import-menu" />
|
||
2 years ago
|
|
||
2 years ago
|
<template #overlay>
|
||
2 years ago
|
<a-menu class="!py-0 rounded text-sm">
|
||
2 years ago
|
<!-- Quick Import From -->
|
||
|
<a-menu-item-group :title="$t('title.quickImportFrom')" class="!px-0 !mx-0">
|
||
2 years ago
|
<a-menu-item
|
||
|
v-if="isUIAllowed('airtableImport')"
|
||
|
key="quick-import-airtable"
|
||
|
@click="openAirtableImportDialog"
|
||
|
>
|
||
|
<div class="color-transition nc-project-menu-item group">
|
||
2 years ago
|
<MdiTableLarge class="group-hover:text-accent" />
|
||
2 years ago
|
Airtable
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
|
|
||
|
<a-menu-item v-if="isUIAllowed('csvImport')" key="quick-import-csv" @click="openQuickImportDialog('csv')">
|
||
|
<div class="color-transition nc-project-menu-item group">
|
||
2 years ago
|
<MdiFileDocumentOutline class="group-hover:text-accent" />
|
||
2 years ago
|
CSV file
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
|
|
||
|
<a-menu-item v-if="isUIAllowed('jsonImport')" key="quick-import-json" @click="openQuickImportDialog('json')">
|
||
|
<div class="color-transition nc-project-menu-item group">
|
||
2 years ago
|
<MdiCodeJson class="group-hover:text-accent" />
|
||
2 years ago
|
JSON file
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
|
|
||
|
<a-menu-item
|
||
|
v-if="isUIAllowed('excelImport')"
|
||
|
key="quick-import-excel"
|
||
|
@click="openQuickImportDialog('excel')"
|
||
|
>
|
||
|
<div class="color-transition nc-project-menu-item group">
|
||
2 years ago
|
<MdiFileExcel class="group-hover:text-accent" />
|
||
2 years ago
|
Microsoft Excel
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
|
</a-menu-item-group>
|
||
|
|
||
|
<a-menu-divider class="my-0" />
|
||
|
|
||
|
<a-menu-item v-if="isUIAllowed('importRequest')" key="add-new-table" class="py-1 rounded-b">
|
||
|
<a
|
||
|
v-t="['e:datasource:import-request']"
|
||
|
href="https://github.com/nocodb/nocodb/issues/2052"
|
||
|
target="_blank"
|
||
|
class="prose-sm hover:(!text-primary !opacity-100) color-transition nc-project-menu-item group after:(!rounded-b)"
|
||
|
>
|
||
2 years ago
|
<MdiOpenInNew class="group-hover:text-accent" />
|
||
2 years ago
|
<!-- Request a data source you need? -->
|
||
2 years ago
|
{{ $t('labels.requestDataSource') }}
|
||
2 years ago
|
</a>
|
||
|
</a-menu-item>
|
||
|
</a-menu>
|
||
|
</template>
|
||
|
</a-dropdown>
|
||
|
</div>
|
||
|
|
||
2 years ago
|
<div v-if="tables.length" class="transition-height duration-200 overflow-hidden">
|
||
2 years ago
|
<div :key="key" ref="menuRef" class="border-none sortable-list">
|
||
|
<div
|
||
2 years ago
|
v-for="table of tables"
|
||
2 years ago
|
:key="table.id"
|
||
2 years ago
|
v-t="['a:table:open']"
|
||
2 years ago
|
:class="[
|
||
|
{ hidden: !filteredTables?.includes(table), active: activeTable === table.title },
|
||
|
`nc-project-tree-tbl nc-project-tree-tbl-${table.title}`,
|
||
|
]"
|
||
2 years ago
|
class="nc-tree-item pl-5 pr-3 py-2 text-sm cursor-pointer group"
|
||
2 years ago
|
:data-order="table.order"
|
||
|
:data-id="table.id"
|
||
2 years ago
|
@click="addTableTab(table)"
|
||
2 years ago
|
>
|
||
2 years ago
|
<div class="flex items-center gap-2 h-full" @contextmenu="setMenuContext('table', table)">
|
||
2 years ago
|
<div class="flex w-auto">
|
||
2 years ago
|
<MdiDrag
|
||
2 years ago
|
v-if="isUIAllowed('treeview-drag-n-drop')"
|
||
2 years ago
|
:class="`nc-child-draggable-icon-${table.title}`"
|
||
|
class="nc-drag-icon text-xs hidden group-hover:block transition-opacity opacity-0 group-hover:opacity-100 text-gray-500 cursor-move"
|
||
|
@click.stop.prevent
|
||
|
/>
|
||
|
|
||
2 years ago
|
<component
|
||
|
:is="icon(table)"
|
||
|
class="nc-view-icon text-xs"
|
||
|
:class="{ 'group-hover:hidden group-hover:text-gray-500': isUIAllowed('treeview-drag-n-drop') }"
|
||
|
/>
|
||
2 years ago
|
</div>
|
||
|
|
||
2 years ago
|
<div class="nc-tbl-title flex-1">
|
||
|
<GeneralTruncateText>{{ table.title }}</GeneralTruncateText>
|
||
|
</div>
|
||
2 years ago
|
|
||
2 years ago
|
<a-dropdown
|
||
2 years ago
|
v-if="!isSharedBase && !isLocked && (isUIAllowed('table-rename') || isUIAllowed('table-delete'))"
|
||
2 years ago
|
:trigger="['click']"
|
||
|
@click.stop
|
||
|
>
|
||
2 years ago
|
<MdiMenuIcon class="transition-opacity opacity-0 group-hover:opacity-100" />
|
||
2 years ago
|
|
||
2 years ago
|
<template #overlay>
|
||
2 years ago
|
<a-menu class="!py-0 rounded text-sm">
|
||
2 years ago
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(table)">
|
||
2 years ago
|
<div class="nc-project-menu-item">
|
||
|
{{ $t('general.rename') }}
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
|
|
||
2 years ago
|
<a-menu-item v-if="isUIAllowed('table-delete')" @click="deleteTable(table)">
|
||
2 years ago
|
<div class="nc-project-menu-item">
|
||
|
{{ $t('general.delete') }}
|
||
|
</div>
|
||
|
</a-menu-item>
|
||
2 years ago
|
</a-menu>
|
||
|
</template>
|
||
|
</a-dropdown>
|
||
|
</div>
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
2 years ago
|
</div>
|
||
2 years ago
|
|
||
2 years ago
|
<div v-else class="mt-0.5 pt-16 mx-3 flex flex-col items-center border-t-1 border-gray-50">
|
||
|
<a-empty :image="Empty.PRESENTED_IMAGE_SIMPLE" />
|
||
|
</div>
|
||
2 years ago
|
</div>
|
||
|
</div>
|
||
|
|
||
2 years ago
|
<template v-if="!isLocked && !isSharedBase" #overlay>
|
||
2 years ago
|
<a-menu class="!py-0 rounded text-sm">
|
||
2 years ago
|
<template v-if="contextMenuTarget.type === 'table'">
|
||
2 years ago
|
<a-menu-item v-if="isUIAllowed('table-rename')" @click="openRenameTableDialog(contextMenuTarget.value)">
|
||
2 years ago
|
<div class="nc-project-menu-item">
|
||
|
{{ $t('general.rename') }}
|
||
|
</div>
|
||
2 years ago
|
</a-menu-item>
|
||
2 years ago
|
|
||
2 years ago
|
<a-menu-item v-if="isUIAllowed('table-delete')" @click="deleteTable(contextMenuTarget.value)">
|
||
2 years ago
|
<div class="nc-project-menu-item">
|
||
|
{{ $t('general.delete') }}
|
||
|
</div>
|
||
2 years ago
|
</a-menu-item>
|
||
2 years ago
|
</template>
|
||
2 years ago
|
|
||
2 years ago
|
<template v-else>
|
||
2 years ago
|
<a-menu-item @click="reloadTables">
|
||
2 years ago
|
<div class="nc-project-menu-item">
|
||
|
{{ $t('general.reload') }}
|
||
|
</div>
|
||
2 years ago
|
</a-menu-item>
|
||
2 years ago
|
</template>
|
||
|
</a-menu>
|
||
|
</template>
|
||
|
</a-dropdown>
|
||
2 years ago
|
|
||
2 years ago
|
<a-divider class="!my-0" />
|
||
2 years ago
|
|
||
2 years ago
|
<div class="flex items-start flex-col justify-start px-2 py-3 gap-2">
|
||
2 years ago
|
<GeneralShareBaseButton
|
||
|
class="color-transition py-1.5 px-2 text-primary font-bold cursor-pointer select-none hover:text-accent"
|
||
|
/>
|
||
|
|
||
|
<GeneralHelpAndSupport class="color-transition px-2 text-gray-500 cursor-pointer select-none hover:text-accent" />
|
||
|
|
||
|
<GithubButton
|
||
|
class="ml-2 py-1"
|
||
|
href="https://github.com/nocodb/nocodb"
|
||
|
data-icon="octicon-star"
|
||
|
data-show-count="true"
|
||
|
data-size="large"
|
||
|
>
|
||
|
Star
|
||
|
</GithubButton>
|
||
2 years ago
|
</div>
|
||
2 years ago
|
</div>
|
||
|
</template>
|
||
|
|
||
2 years ago
|
<style scoped lang="scss">
|
||
2 years ago
|
.nc-treeview-container {
|
||
2 years ago
|
@apply h-[calc(100vh_-_var(--header-height))];
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
|
.nc-treeview-footer-item {
|
||
2 years ago
|
@apply cursor-pointer px-4 py-2 flex items-center hover:bg-gray-200/20 text-xs text-current;
|
||
2 years ago
|
}
|
||
|
|
||
|
:deep(.nc-filter-input input::placeholder) {
|
||
|
@apply !text-xs;
|
||
|
}
|
||
2 years ago
|
|
||
|
:deep(.ant-dropdown-menu-title-content) {
|
||
|
@apply !p-2;
|
||
|
}
|
||
2 years ago
|
|
||
|
:deep(.ant-input-group-addon:last-child) {
|
||
|
@apply top-[-0.5px];
|
||
|
}
|
||
2 years ago
|
|
||
|
.nc-treeview-container {
|
||
|
.ghost,
|
||
|
.ghost > * {
|
||
|
@apply !pointer-events-none;
|
||
|
}
|
||
|
|
||
2 years ago
|
& .dragging {
|
||
2 years ago
|
.nc-icon {
|
||
|
@apply !hidden;
|
||
|
}
|
||
|
|
||
|
.nc-view-icon {
|
||
|
@apply !block;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.ant-menu-item:not(.sortable-chosen) {
|
||
|
@apply color-transition hover:!bg-transparent;
|
||
|
}
|
||
|
|
||
|
.sortable-chosen {
|
||
2 years ago
|
@apply !bg-primary bg-opacity-25 text-primary;
|
||
2 years ago
|
}
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
.nc-tree-item {
|
||
2 years ago
|
@apply relative cursor-pointer after:(pointer-events-none content-[''] absolute top-0 left-0 w-full h-full right-0 !bg-current transition transition-opactity duration-100 opacity-0);
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.nc-tree-item svg {
|
||
2 years ago
|
@apply text-primary text-opacity-60;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.nc-tree-item.active {
|
||
2 years ago
|
@apply text-primary font-weight-bold after:(!opacity-20);
|
||
|
@apply border-r-3 border-primary;
|
||
2 years ago
|
|
||
2 years ago
|
svg {
|
||
2 years ago
|
@apply text-primary !text-opacity-100;
|
||
2 years ago
|
}
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
.nc-tree-item:hover {
|
||
2 years ago
|
@apply text-primary after:(!opacity-5);
|
||
2 years ago
|
}
|
||
2 years ago
|
|
||
|
:deep(.nc-filter-input) {
|
||
|
.ant-input {
|
||
|
@apply pr-6 !border-0;
|
||
|
}
|
||
|
}
|
||
2 years ago
|
|
||
|
:deep(.ant-dropdown-menu-item-group-title) {
|
||
|
@apply border-b-1;
|
||
|
}
|
||
|
|
||
|
:deep(.ant-dropdown-menu-item-group-list) {
|
||
|
@apply !mx-0;
|
||
|
}
|
||
|
|
||
|
:deep(.ant-dropdown-menu-item-group-title) {
|
||
|
@apply border-b-1;
|
||
|
}
|
||
|
|
||
|
:deep(.ant-dropdown-menu-item-group-list) {
|
||
|
@apply m-0;
|
||
|
}
|
||
|
|
||
|
:deep(.ant-dropdown-menu-item) {
|
||
2 years ago
|
@apply !py-0 active:(ring ring-accent);
|
||
2 years ago
|
}
|
||
|
|
||
|
:deep(.ant-dropdown-menu-title-content) {
|
||
|
@apply !p-0;
|
||
|
}
|
||
2 years ago
|
</style>
|