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.
36 lines
737 B
36 lines
737 B
<script setup lang="ts"> |
|
import { useVModel } from '#imports' |
|
|
|
const props = defineProps<{ |
|
value: any |
|
isEdit: boolean |
|
}>() |
|
|
|
const emit = defineEmits(['update:value']) |
|
|
|
const vModel = useVModel(props, 'value', emit) |
|
|
|
const validators = {} |
|
|
|
const { setAdditionalValidations } = useColumnCreateStoreOrThrow() |
|
|
|
setAdditionalValidations({ |
|
...validators, |
|
}) |
|
|
|
// set default value |
|
vModel.value.meta = { |
|
is_progress: false, |
|
...vModel.value.meta, |
|
} |
|
</script> |
|
|
|
<template> |
|
<div class="flex flex-col"> |
|
<div> |
|
<a-checkbox v-if="vModel.meta" v-model:checked="vModel.meta.is_progress" class="ml-1 mb-1"> |
|
<span class="text-[10px] text-gray-600">Display as progress</span> |
|
</a-checkbox> |
|
</div> |
|
</div> |
|
</template>
|
|
|