引入

  1. {
  2. "usingComponents": {
  3. "x-footer": "waft-ui/assembly/footer/footer"
  4. }
  5. }

代码示例

  1. <!-- 最多支持三个tip -->
  2. <x-footer text="划到底部啦!你还可以说..." tip1="天猫精灵,回到顶部" tip2="天猫精灵,关闭勿扰模式"></x-footer>

效果展示

footer.png

API

  • props | 参数 | 说明 | 类型 | 默认值 | | —- | —- | —- | —- | | text | 底部提示文本 | string | | | tip1 | 语音提示1 | string | | | tip2 | 语音提示2 | string | | | tip3 | 语音提示3 | string | |