From c1c5ea5e9d61d0259278add215047590b5eac77f Mon Sep 17 00:00:00 2001 From: bestrevens <201840026@qq.com> Date: 星期一, 16 十月 2023 15:30:14 +0800 Subject: [PATCH] fix 优化表格列的显示与隐藏小组件不显示字段和告警 fix 优化表格列的显示与隐藏小组件不显示字段和告警 --- src/components/IconSelect/index.vue | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/IconSelect/index.vue b/src/components/IconSelect/index.vue index 22b9484..a275954 100644 --- a/src/components/IconSelect/index.vue +++ b/src/components/IconSelect/index.vue @@ -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