|
|
|
@ -6,6 +6,7 @@ import { uiTypes } from '~/utils/columnUtils'
|
|
|
|
|
import MdiPlusIcon from '~icons/mdi/plus-circle-outline' |
|
|
|
|
import MdiMinusIcon from '~icons/mdi/minus-circle-outline' |
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['cancel']) |
|
|
|
|
const meta = inject(MetaInj) |
|
|
|
|
const advancedOptions = ref(false) |
|
|
|
|
|
|
|
|
@ -33,12 +34,7 @@ const uiTypesOptions = computed<typeof uiTypes>(() => {
|
|
|
|
|
<div class="max-w-[450px] min-w-[350px] w-max max-h-[95vh] bg-white shadow p-4 overflow-auto" @click.stop> |
|
|
|
|
<a-form v-model="formState" layout="vertical"> |
|
|
|
|
<a-form-item :label="$t('labels.columnName')" v-bind="validateInfos.column_name"> |
|
|
|
|
<a-input |
|
|
|
|
v-model:value="formState.column_name" |
|
|
|
|
size="small" |
|
|
|
|
class="nc-column-name-input" |
|
|
|
|
@input="onAlter(8)" |
|
|
|
|
/> |
|
|
|
|
<a-input v-model:value="formState.column_name" size="small" class="nc-column-name-input" @input="onAlter(8)" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item :label="$t('labels.columnType')"> |
|
|
|
|
<a-select v-model:value="formState.uidt" size="small" class="nc-column-name-input" @change="onUidtOrIdTypeChange"> |
|
|
|
@ -65,7 +61,7 @@ const uiTypesOptions = computed<typeof uiTypes>(() => {
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="flex justify-end gap-1 mt-4"> |
|
|
|
|
<a-button html-type="button" size="small"> |
|
|
|
|
<a-button html-type="button" size="small" @click="emit('cancel')"> |
|
|
|
|
<!-- Cancel --> |
|
|
|
|
{{ $t('general.cancel') }} |
|
|
|
|
</a-button> |
|
|
|
|