From 6a7ec8116847cdec2b75295708b773b1a9c57bcf Mon Sep 17 00:00:00 2001 From: 棉花 <12559203+radish-hi_0@user.noreply.gitee.com> Date: 星期五, 08 十二月 2023 17:55:11 +0800 Subject: [PATCH] fix: 删除重复环境变量ElUploadInstance --- src/components/IconSelect/index.vue | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 22b9484..1cd0023 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -2,7 +2,7 @@ <div class="relative" :style="{ width: width }"> <el-input v-model="modelValue" readonly @click="visible = !visible" placeholder="鐐瑰嚮閫夋嫨鍥炬爣"> <template #prepend> - <svg-icon :icon-class="modelValue as string" /> + <svg-icon :icon-class="modelValue" /> </template> </el-input> @@ -31,17 +31,11 @@ <script setup lang="ts"> import icons from '@/components/IconSelect/requireIcons'; +import { propTypes } from '@/utils/propTypes'; const props = defineProps({ - modelValue: { - type: String, - require: true - }, - width: { - type: String, - require: false, - default: '400px' - } + modelValue: propTypes.string.isRequired, + width: propTypes.string.def('400px') }); const emit = defineEmits(['update:modelValue']); @@ -74,6 +68,10 @@ </script> <style scoped lang="scss"> +.el-scrollbar { + max-height: calc(50vh - 100px)!important; + overflow-y: auto; +} .el-divider--horizontal { margin: 10px auto !important; } -- Gitblit v1.9.3