|
@@ -6,6 +6,7 @@ import type { SelectProps } from 'ant-design-vue';
|
|
|
// 定义Props
|
|
|
const props = defineProps<{
|
|
|
modelValue?: string;
|
|
|
+ disabled?: boolean;
|
|
|
}>();
|
|
|
|
|
|
// 定义Emits
|
|
@@ -116,6 +117,7 @@ const selectOptions = computed<SelectProps['options']>(() => {
|
|
|
v-model:value="inputValue"
|
|
|
mode="combobox"
|
|
|
:options="selectOptions"
|
|
|
+ :disabled="props.disabled"
|
|
|
:show-search="true"
|
|
|
:open="showDropdown"
|
|
|
:default-active-first-option="false"
|
|
@@ -128,7 +130,7 @@ const selectOptions = computed<SelectProps['options']>(() => {
|
|
|
@search="handleInputChange"
|
|
|
/>
|
|
|
</div>
|
|
|
- <a-button type="primary" :loading="loading" @click="handleSearch">
|
|
|
+ <a-button :disabled="props.disabled" type="primary" :loading="loading" @click="handleSearch">
|
|
|
<SearchOutlined />
|
|
|
搜索
|
|
|
</a-button>
|