完善选项列表切换不同类型时的选项处理逻辑

This commit is contained in:
fofolee
2025-01-08 11:52:28 +08:00
parent f742e6f121
commit b528cfa97d
4 changed files with 117 additions and 43 deletions

View File

@@ -131,7 +131,7 @@
</q-btn-dropdown>
</template>
<template v-slot:prepend>
<q-icon :name="icon || 'code'" />
<q-icon v-if="!noIcon" :name="icon || 'code'" />
</template>
</q-input>
</template>
@@ -187,6 +187,7 @@ export default defineComponent({
},
label: String,
icon: String,
noIcon: Boolean,
options: {
type: Object,
default: () => ({}),