引入

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

代码示例

  1. <!-- 最多支持两个tip -->
  2. <x-header tip1="天猫精灵,打开勿扰模式" tip2="天猫精灵,关闭勿扰模式"></x-header>

效果展示

header.png

API

  • props | 参数 | 说明 | 类型 | 默认值 | | —- | —- | —- | —- | | tip1 | 提示1 | string | | | tip2 | 提示2 | string | |