diff --git a/example/docs/zh-CN/components/avatar.md b/example/docs/zh-CN/components/avatar.md
index ca80adf5..7e423ed2 100644
--- a/example/docs/zh-CN/components/avatar.md
+++ b/example/docs/zh-CN/components/avatar.md
@@ -38,9 +38,7 @@ export default {
+
+:::
+
::: title 头像属性
:::
@@ -97,4 +130,4 @@ export default {
:::
::: comment
-:::
\ No newline at end of file
+:::
diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md
index 6baa22fb..bcff068b 100644
--- a/example/docs/zh-CN/guide/changelog.md
+++ b/example/docs/zh-CN/guide/changelog.md
@@ -11,6 +11,16 @@
+
+
+ -
+
0.3.4 2022-01-09
+
+ - [新增] avatar-list 头像列表组件。
+ - [修复] menu-item 与 sub-menu 组件的 title 属性必填警告。
+
+
+
-
diff --git a/example/src/assets/css/markdown.css b/example/src/assets/css/markdown.css
index db461523..89f15ce0 100644
--- a/example/src/assets/css/markdown.css
+++ b/example/src/assets/css/markdown.css
@@ -110,10 +110,6 @@ form {
margin: 0;
}
-.source .layui-avatar {
- margin-right: 30px;
-}
-
.site-doc-icon {
margin-bottom: 50px;
font-size: 0;
diff --git a/example/src/layouts/Layout.vue b/example/src/layouts/Layout.vue
index 6bfe91a1..21d3d9c9 100644
--- a/example/src/layouts/Layout.vue
+++ b/example/src/layouts/Layout.vue
@@ -43,7 +43,7 @@
-
- 0.3.3
+ 0.3.4
diff --git a/example/src/view/index.vue b/example/src/view/index.vue
index f0d862a6..43f43bb3 100644
--- a/example/src/view/index.vue
+++ b/example/src/view/index.vue
@@ -26,7 +26,7 @@
>
-
当前版本:v0.3.3
+
当前版本:v0.3.4
= {
LayBreadcrumb,
LayBreadcrumbItem,
LayAvatar,
+ LayAvatarList,
LayField,
LaySelect,
LayScroll,
@@ -185,6 +187,7 @@ export {
LayBreadcrumb,
LayBreadcrumbItem,
LayAvatar,
+ LayAvatarList,
LayField,
LaySelect,
LayScroll,
diff --git a/src/module/avatar/index.less b/src/module/avatar/index.less
index e05a39e4..c872525e 100644
--- a/src/module/avatar/index.less
+++ b/src/module/avatar/index.less
@@ -40,3 +40,8 @@
height: 28px;
width: 28px;
}
+
+.layui-avatar-list .layui-avatar {
+ margin-left: -10px;
+ display: inline-block;
+}
\ No newline at end of file
diff --git a/src/module/avatarList/index.ts b/src/module/avatarList/index.ts
new file mode 100644
index 00000000..af447511
--- /dev/null
+++ b/src/module/avatarList/index.ts
@@ -0,0 +1,9 @@
+import type { App } from "vue";
+import Component from "./index.vue";
+import type { IDefineComponent } from "../type/index";
+
+Component.install = (app: App) => {
+ app.component(Component.name || "LayAvatarList", Component);
+};
+
+export default Component as IDefineComponent;
diff --git a/src/module/avatarList/index.vue b/src/module/avatarList/index.vue
new file mode 100644
index 00000000..09aefae8
--- /dev/null
+++ b/src/module/avatarList/index.vue
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/module/menuItem/index.vue b/src/module/menuItem/index.vue
index f3e6fbbf..6724627f 100644
--- a/src/module/menuItem/index.vue
+++ b/src/module/menuItem/index.vue
@@ -11,7 +11,7 @@ const slots = useSlots();
const props = defineProps<{
id: string;
- title: string;
+ title?: string;
}>();
const selectedKey: Ref = inject("selectedKey") as Ref;
diff --git a/src/module/subMenu/index.vue b/src/module/subMenu/index.vue
index 663895c4..79d34ffc 100644
--- a/src/module/subMenu/index.vue
+++ b/src/module/subMenu/index.vue
@@ -11,7 +11,7 @@ const slots = useSlots();
const props = defineProps<{
id: string;
- title: string;
+ title?: string;
}>();
const isTree = inject("isTree");