diff --git a/packages/nc-gui/components/nc/Select.vue b/packages/nc-gui/components/nc/Select.vue index 84dc75d985..cf8b33aaae 100644 --- a/packages/nc-gui/components/nc/Select.vue +++ b/packages/nc-gui/components/nc/Select.vue @@ -8,6 +8,7 @@ const props = defineProps<{ filterOption?: (input: string, option: any) => boolean dropdownMatchSelectWidth?: boolean allowClear?: boolean + loading?: boolean }>() const emits = defineEmits(['update:value', 'change']) @@ -22,6 +23,8 @@ const filterOption = computed(() => props.filterOption) const dropdownMatchSelectWidth = computed(() => props.dropdownMatchSelectWidth) +const loading = computed(() => props.loading) + const vModel = useVModel(props, 'value', emits) const onChange = (value: string) => { @@ -39,10 +42,13 @@ const onChange = (value: string) => { :filter-option="filterOption" :dropdown-match-select-width="dropdownMatchSelectWidth" :allow-clear="allowClear" + :loading="true" + :disabled="true" @change="onChange" >