引入
{
"usingComponents": {
"x-footer": "waft-ui/assembly/footer/footer"
}
}
代码示例
<!-- 最多支持三个tip -->
<x-footer text="划到底部啦!你还可以说..." tip1="天猫精灵,回到顶部" tip2="天猫精灵,关闭勿扰模式"></x-footer>
效果展示
API
- props | 参数 | 说明 | 类型 | 默认值 | | —- | —- | —- | —- | | text | 底部提示文本 | string | | | tip1 | 语音提示1 | string | | | tip2 | 语音提示2 | string | | | tip3 | 语音提示3 | string | |