Skip to content

Commit

Permalink
remote style demo from doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cl199793 committed Jun 21, 2019
1 parent 4cd1686 commit 5700c0b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 81 deletions.
22 changes: 0 additions & 22 deletions examples/docs/en-US/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,6 @@ fallback when image load error
```
:::

### Customize style

:::demo
```html
<template>
<div class="demo-type">
<el-avatar style="background-color: #409eff; color: #fff;" icon="el-icon-user-solid"></el-avatar>
</div>
</template>
<script>
export default {
methods: {
errorHandler() {
return true
}
}
}
</script>

```
:::

### How the image fit its container

Set how the image fit its container for an image avatar, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
Expand Down
22 changes: 0 additions & 22 deletions examples/docs/es/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,6 @@ fallback when image load error
```
:::

### Customize style

:::demo
```html
<template>
<div class="demo-type">
<el-avatar style="background-color: #409eff; color: #fff;" icon="el-icon-user-solid"></el-avatar>
</div>
</template>
<script>
export default {
methods: {
errorHandler() {
return true
}
}
}
</script>

```
:::

### How the image fit its container

Set how the image fit its container for an image avatar, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
Expand Down
22 changes: 0 additions & 22 deletions examples/docs/fr-FR/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,28 +93,6 @@ fallback when image load error
```
:::

### Customize style

:::demo
```html
<template>
<div class="demo-type">
<el-avatar style="background-color: #409eff; color: #fff;" icon="el-icon-user-solid"></el-avatar>
</div>
</template>
<script>
export default {
methods: {
errorHandler() {
return true
}
}
}
</script>

```
:::

### How the image fit its container

Set how the image fit its container for an image avatar, same as [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit).
Expand Down
15 changes: 0 additions & 15 deletions examples/docs/zh-CN/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,6 @@
```
:::

### 通过 style 自定义样式

当展示类型为图片的时候,图片加载失败的 fallback 行为

:::demo
```html
<template>
<div class="demo-type">
<el-avatar style="background-color: #409eff; color: #fff;" icon="el-icon-user-solid"></el-avatar>
</div>
</template>

```
:::

### 图片如何适应容器框

当展示类型为图片的时候,使用 `fit` 属性定义图片如何适应容器框,同原生 [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit)
Expand Down

0 comments on commit 5700c0b

Please sign in to comment.