Browse Source

!37 修复 菜单图标选择器小屏幕显示不全的问题
Merge pull request !37 from David Wei/ts_fix_iconselect

疯狂的狮子Li 1 year ago
parent
commit
78d120c423
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/components/IconSelect/index.vue

+ 4 - 0
src/components/IconSelect/index.vue

@@ -68,6 +68,10 @@ const selectedIcon = (iconName: string) => {
 </script>
 
 <style scoped lang="scss">
+.el-scrollbar {
+  max-height: calc(50vh - 100px)!important;
+  overflow-y: auto;
+}
 .el-divider--horizontal {
   margin: 10px auto !important;
 }