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.
|
|
|
<script lang="ts" setup>
|
|
|
|
import AddRow from './AddRow.vue'
|
|
|
|
import LockMenu from './LockMenu.vue'
|
|
|
|
import Reload from './Reload.vue'
|
|
|
|
|
|
|
|
const { isUIAllowed } = useUIPermission()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="flex gap-2">
|
|
|
|
<slot name="start" />
|
|
|
|
|
|
|
|
<LockMenu v-if="isUIAllowed('view-type')" />
|
|
|
|
|
|
|
|
<div class="dot" />
|
|
|
|
|
|
|
|
<Reload />
|
|
|
|
|
|
|
|
<div class="dot" />
|
|
|
|
|
|
|
|
<AddRow v-if="isUIAllowed('xcDatatableEditable')" />
|
|
|
|
|
|
|
|
<slot name="end" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
:deep(.nc-toolbar-btn) {
|
|
|
|
@apply border-0 !text-xs font-semibold px-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dot {
|
|
|
|
@apply w-[3px] h-[3px] bg-gray-300 rounded-full;
|
|
|
|
}
|
|
|
|
</style>
|