(component): 新增 avatar 组件 default 插槽与 icon 属性, 支持文字与图标头像

This commit is contained in:
就眠儀式
2022-09-30 01:37:13 +08:00
parent 20cecb95c1
commit 35fedf2926
5 changed files with 21 additions and 15 deletions

View File

@@ -13,7 +13,12 @@
::: demo 使用 `lay-avatar` 标签, 创建头像
<template>
<lay-avatar :src="src"></lay-avatar>
<lay-space>
<lay-avatar :src="src"></lay-avatar>
<lay-avatar> Bai </lay-avatar>
<lay-avatar></lay-avatar>
<lay-avatar icon="layui-icon-face-smile"></lay-avatar>
</lay-space>
</template>
<script>

View File

@@ -310,8 +310,8 @@ export default {
z-index: 99;
width: 100%;
position: fixed;
background: #ffffff;
border-bottom: 1px solid #eeeeee;
background: #ffffff;
}
.layui-layout-document > .layui-layout > .layui-side {

View File

@@ -455,9 +455,8 @@ body {
border-radius: 4px;
color: rgba(60, 60, 60, 0.7);
border: 1px solid rgba(60, 60, 60, 0.7);
background: white;
font-size: 14px;
transition: all 0.5s;
-webkit-transition: all 0.5s;
}
.footer {