✨(component): 新增 avatar 组件 default 插槽与 icon 属性, 支持文字与图标头像
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user