Skip to content

Commit

Permalink
fix(ui/image): fix image template types
Browse files Browse the repository at this point in the history
affects: @varlet/ui
  • Loading branch information
haoziqaq committed May 25, 2021
1 parent 36b2eb5 commit c923ee1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/varlet-ui/src/image/Image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}"
:class="[!block ? 'var--inline-block' : null]"
v-ripple="{ disabled: !ripple }"
v-bind="$attrs"
>
<img
class="var-image__image"
Expand Down Expand Up @@ -49,7 +48,6 @@ export default defineComponent({
Lazy,
Ripple,
},
inheritAttrs: false,
props,
setup(props) {
const handleLoad = (e: Event) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/image/docs/en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default {
| `lazy` | Whether to enable lazy loading | _boolean_ | `false` |
| `loading` | When lazy loading is enabled, the image displayed in loading | _string_ | `-` |
| `error` | When lazy loading is enabled, the image displayed in error | _string_ | `-` |
| `ripple` | Whether to enable ripple | _string_ | `false` |
| `ripple` | Whether to enable ripple | _boolean_ | `false` |
| `block` | Whether it is a block element | _boolean_ | `true` |

### Events
Expand Down
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/image/docs/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default {
| `lazy` | 是否开启懒加载 | _boolean_ | `false` |
| `loading` | 当开启懒加载时, 加载中显示的图片 | _string_ | `-` |
| `error` | 当开启懒加载时, 加载失败显示的图片 | _string_ | `-` |
| `ripple` | 是否开启水波 | _string_ | `false` |
| `ripple` | 是否开启水波 | _boolean_ | `false` |
| `block` | 是否是块级元素 | _boolean_ | `true` |

### 事件
Expand Down

0 comments on commit c923ee1

Please sign in to comment.