diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index 48b2a268f5..f411158fb1 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -124,6 +124,7 @@ declare module '@vue/runtime-core' { MdiArrowDownDropCircleOutline: typeof import('~icons/mdi/arrow-down-drop-circle-outline')['default'] MdiArrowExpand: typeof import('~icons/mdi/arrow-expand')['default'] MdiArrowLeftBold: typeof import('~icons/mdi/arrow-left-bold')['default'] + MdiArrowULeftBottom: typeof import('~icons/mdi/arrow-u-left-bottom')['default'] MdiAt: typeof import('~icons/mdi/at')['default'] MdiBackburger: typeof import('~icons/mdi/backburger')['default'] MdiBookOpenOutline: typeof import('~icons/mdi/book-open-outline')['default'] diff --git a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue index c7169640dc..6999debf89 100644 --- a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue @@ -3,6 +3,14 @@ import Draggable from 'vuedraggable' import { UITypes } from 'nocodb-sdk' import { IsKanbanInj, enumColor, onMounted, useColumnCreateStoreOrThrow, useVModel, watch } from '#imports' +interface Option { + color: string + title: string + id?: string + fk_colum_id?: string + order?: number +} + const props = defineProps<{ value: any }>() @@ -13,7 +21,10 @@ const vModel = useVModel(props, 'value', emit) const { setAdditionalValidations, validateInfos, isPg, isMysql } = useColumnCreateStoreOrThrow() -let options = $ref([]) +let options = $ref([]) +let renderedOptions = $ref<(Option & { status?: 'remove' })[]>([]) +let savedDefaultOption = $ref