## Panel 面板 ### 使用指南 在 index.json 中引入组件 ```json "usingComponents": { "van-panel": "path/to/vant-weapp/dist/panel/index" } ``` ### 代码演示 #### 基础用法 面板只是一个容器,里面可以放入自定义的内容 ```html 内容 ``` #### 高级用法 使用`slot`自定义内容 ```html 内容 按钮 按钮 ``` ### API | 参数 | 说明 | 类型 | 默认值 | |-----------|-----------|-----------|-------------| | title | 标题 | `String` | - | | desc | 描述 | `String` | - | | status | 状态 | `String` | - | | use-footer-slot | 是否使用 footer slot | `Boolean` | `false` | ### Slot | 名称 | 说明 | |-----------|-----------| | - | 自定义内容 | | header | 自定义 header,如果设置了`title`、`desc`、`status`属性则不生效 | | footer | 自定义 footer,需要设置 `use-footer-slot`属性 | ### 外部样式类 | 类名 | 说明 | |-----------|-----------| | custom-class | 根节点样式类 | | header-class | 头部样式类 | | footer-class | 底部样式类 | ### 更新日志 | 版本 | 类型 | 内容 | |-----------|-----------|-----------| | 0.0.1 | feature | 新增组件 |