# 15.apng 动画(midea-apng-view)
APP 内置组件,可直接在 template 中使用,不需要 import 导入和注册;
# 实例
# 基础用法
<template>
<midea-apng-view
class="app-ai"
src="./assets/image/support_ic_ai.png"
:auto="true"
:loop="true"
/>
</template>
<script>
export default {
data() {
return {}
}
methods: {}
}
</script>
# Attributes:data
Prop | Type | Required | Default | Description |
---|---|---|---|---|
src | String | Y | - | 动态图片地址 |
loop | Boolean | N | false | 是否自动循环播放动态图片 |
auto | Boolean | N | true | 是否自动播放动态图片 |