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.
50 lines
1.5 KiB
50 lines
1.5 KiB
4 months ago
|
<script setup lang="ts">
|
||
|
interface Props {
|
||
|
fullscreen?: boolean
|
||
|
activeError?: boolean
|
||
|
}
|
||
|
|
||
|
const { fullscreen, activeError } = defineProps<Props>()
|
||
|
const emits = defineEmits(['rename', 'duplicate', 'showDetails', 'clearData', 'delete'])
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="flex items-center">
|
||
3 months ago
|
<NcDropdown :trigger="['click']" placement="bottomRight">
|
||
3 months ago
|
<NcButton type="text" size="xs" class="!px-1">
|
||
4 months ago
|
<GeneralIcon icon="threeDotVertical" />
|
||
|
</NcButton>
|
||
|
|
||
|
<template #overlay>
|
||
|
<NcMenu>
|
||
|
<template v-if="!activeError">
|
||
3 months ago
|
<NcMenuItem data-rec="true" @click="emits('rename')">
|
||
4 months ago
|
<GeneralIcon icon="edit" />
|
||
|
Rename
|
||
|
</NcMenuItem>
|
||
3 months ago
|
<NcMenuItem data-rec="true" @click="emits('duplicate')">
|
||
4 months ago
|
<GeneralIcon icon="duplicate" />
|
||
|
Duplicate
|
||
|
</NcMenuItem>
|
||
3 months ago
|
<NcMenuItem data-rec="true" @click="emits('showDetails')">
|
||
4 months ago
|
<GeneralIcon icon="info" />
|
||
|
Details
|
||
|
</NcMenuItem>
|
||
|
<NcDivider />
|
||
|
</template>
|
||
|
<NcMenuItem data-rec="true" class="!text-red-500 !hover:bg-red-50" @click="emits('clearData')">
|
||
|
<GeneralIcon icon="reload" />
|
||
3 months ago
|
Clear data
|
||
4 months ago
|
</NcMenuItem>
|
||
|
<NcMenuItem data-rec="true" class="!text-red-500 !hover:bg-red-50" @click="emits('delete')">
|
||
|
<GeneralIcon icon="delete" />
|
||
|
Delete
|
||
|
</NcMenuItem>
|
||
|
</NcMenu>
|
||
|
</template>
|
||
|
</NcDropdown>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<style scoped lang="scss"></style>
|