mirror of https://github.com/nocodb/nocodb
flisowna
2 years ago
2 changed files with 23 additions and 16 deletions
@ -1,24 +1,28 @@ |
|||||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||||
// import type { MapType } from 'nocodb-sdk' |
|
||||||
// import { UITypes } from 'nocodb-sdk' |
|
||||||
// import type { SelectProps } from 'ant-design-vue' |
|
||||||
import { ActiveViewInj, MetaInj, inject, useViewData } from '#imports' |
import { ActiveViewInj, MetaInj, inject, useViewData } from '#imports' |
||||||
// const { totalNumberOfTableRows } = useSmartsheetStoreOrThrow() |
|
||||||
|
|
||||||
const meta = inject(MetaInj) |
const meta = inject(MetaInj) |
||||||
|
|
||||||
const view = inject(ActiveViewInj) |
const view = inject(ActiveViewInj) |
||||||
|
const { syncCount, paginationData } = useViewData(meta!, view!) |
||||||
|
|
||||||
|
const count = computed(() => { |
||||||
|
return paginationData.value.totalRows |
||||||
|
}) |
||||||
|
|
||||||
const FOO = useViewData(meta!, view!) |
syncCount() |
||||||
</script> |
</script> |
||||||
|
|
||||||
<template> |
<template> |
||||||
<a-tooltip placement="bottom"> |
<a-tooltip placement="bottom"> |
||||||
<template #title> You're getting close to the limit. The limit of markers in a Map View is 1000 records. </template> |
<template #title> |
||||||
|
<span v-if="count > 1000"> You're over the limit. </span> |
||||||
|
<span v-else> You're getting close to the limit. </span> |
||||||
|
<span> The limit of markers shown in a Map View is 1000 records. </span> |
||||||
|
</template> |
||||||
|
|
||||||
<div class="nc-warning-info flex min-w-32px h-32px items-center gap-1 px-2"> |
<div v-if="count > 900" class="nc-warning-info flex min-w-32px h-32px items-center gap-1 px-2"> |
||||||
<div>{{ FOO.paginationData.value.totalRows }} records</div> |
<div>{{ count }} records</div> |
||||||
<mdi-map-marker-alert /> |
<mdi-map-marker-alert /> |
||||||
</div> |
</div> |
||||||
</a-tooltip> |
</a-tooltip> |
||||||
</template> |
</template> |
||||||
|
Loading…
Reference in new issue