兰宝车间质量管理系统-前端
David Wei
2023-10-08 aed8c89dedf94b98c4b6e988388fbe147f99dab5
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;
}