This reverts commit 781a3cd9b3.
781a3cd9b3
@ -20,7 +20,7 @@ interface Props {
showValidationError?: boolean
}
const { modelValue, showValidationError } = withDefaults(defineProps<Props>(), { showValidationError: true })
const { modelValue, showValidationError = true } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
@ -18,7 +18,7 @@ interface Props {
isPk?: boolean
const { modelValue, isPk = false } = withDefaults(defineProps<Props>(), { isPk: false })
const { modelValue, isPk = false } = defineProps<Props>()
@ -45,7 +45,7 @@ interface Props {
importDataOnly?: boolean
const { importType, importDataOnly, sourceId, ...rest } = withDefaults(defineProps<Props>(), { importDataOnly: false })
const { importType, importDataOnly = false, sourceId, ...rest } = defineProps<Props>()
@ -22,12 +22,7 @@ interface Emits {
(event: 'open'): void
const { transition, teleportDisabled, inline, target, zIndex, ...rest } = withDefaults(defineProps<Props>(), {
const { transition = true, teleportDisabled = false, inline = false, target, zIndex = 100, ...rest } = defineProps<Props>()
transition: true,
teleportDisabled: false,
inline: false,
zIndex: 100,
})
const emits = defineEmits<Emits>()
@ -12,13 +12,16 @@ interface Props {
width?: string
const { url, socialMedias, title, summary, hashTags, css, iconClass, width } = withDefaults(defineProps<Props>(), {
const {
title: 'NocoDB',
url,
hashTags: '',
socialMedias,
css: '',
title = 'NocoDB',
iconClass: '',
summary,
width: '45px',
hashTags = '',
css = '',
iconClass = '',
width = '45px',
} = defineProps<Props>()
const summaryArr = [
'Instant #Rest & #GraphQL APIs on any #SQL Database (Supports : MySQL, PostgresSQL, MsSQL, SQLite, MariaDB) #nocodb ',
@ -3,7 +3,7 @@ interface Props {
nav?: boolean
const { nav } = withDefaults(defineProps<Props>(), { nav: false })
const { nav = false } = defineProps<Props>()
</script>
<template>
length?: number
const { placement, length } = withDefaults(defineProps<Props>(), { placement: 'bottom', length: 20 })
const { placement = 'bottom', length = 20 } = defineProps<Props>()
const text = ref<HTMLDivElement>()
@ -14,11 +14,7 @@ interface Props {
readOnly?: boolean
const { hideMinimap, lang, validate, disableDeepCompare, modelValue, readOnly } = withDefaults(defineProps<Props>(), {
const { hideMinimap, lang = 'json', validate = true, disableDeepCompare = false, modelValue, readOnly } = defineProps<Props>()
lang: 'json',
validate: true,
disableDeepCompare: false,
const emits = defineEmits(['update:modelValue'])
@ -22,14 +22,7 @@ interface Props {
readonly?: boolean
const { value, item, column, showUnlinkButton, border = true, readonly: readonlyProp } = defineProps<Props>()
value,
item,
column,
showUnlinkButton,
border,
readonly: readonlyProp,
} = withDefaults(defineProps<Props>(), { border: true })
const emit = defineEmits(['unlink'])
@ -6,9 +6,7 @@ interface Props {
bases?: BaseType[]
const { bases } = withDefaults(defineProps<Props>(), {
const { bases = [] } = defineProps<Props>()
bases: () => [],
const emit = defineEmits(['delete-base'])