diff --git a/package/component/src/component/iconPicker/index.less b/package/component/src/component/iconPicker/index.less index 23806fc8..2a774ae5 100644 --- a/package/component/src/component/iconPicker/index.less +++ b/package/component/src/component/iconPicker/index.less @@ -66,19 +66,18 @@ } .layui-iconpicker-list { - padding: 10px 10px 5px; - width: 320px; + width: 321px; } .layui-iconpicker-list ul { - margin-right: -6px; + margin: 6px; } .layui-iconpicker-list li { vertical-align: top; display: inline-block; width: 60px; - margin: 0 5px 5px 0; + margin: 2.5px; padding: 5px; overflow: hidden; border: 1px solid #eee; @@ -112,9 +111,7 @@ } .layui-iconpicker-scroll .layui-iconpicker-list { - overflow: auto; - max-height: 220px; - overflow-x: hidden; + max-height: 200px; } .layui-iconpicker-page { diff --git a/package/component/src/component/iconPicker/index.vue b/package/component/src/component/iconPicker/index.vue index 3c9c7988..068b2962 100644 --- a/package/component/src/component/iconPicker/index.vue +++ b/package/component/src/component/iconPicker/index.vue @@ -10,6 +10,7 @@ import { Ref, ref } from "vue"; import { LayIconList as icons } from "@layui/icons-vue"; import LayDropdown from "../dropdown/index.vue"; import LayInput from "../input/index.vue"; +import LayScroll from "../scroll/index.vue"; export interface LayIconPickerProps { page?: boolean; @@ -135,67 +136,43 @@ const searchList = (str: string, container: any) => {