diff --git a/packages/panel/README.md b/packages/panel/README.md index 0edf10f2..af7bdcc2 100644 --- a/packages/panel/README.md +++ b/packages/panel/README.md @@ -27,7 +27,7 @@ 使用`slot`自定义内容。 ```html - + 内容 按钮 @@ -40,12 +40,11 @@ ### Props -| 参数 | 说明 | 类型 | 默认值 | 版本 | -| --------------- | -------------------- | --------- | ------- | ---- | -| title | 标题 | _string_ | - | - | -| desc | 描述 | _string_ | - | - | -| status | 状态 | _string_ | - | - | -| use-footer-slot | 是否使用 footer slot | _boolean_ | `false` | - | +| 参数 | 说明 | 类型 | 默认值 | 版本 | +| ------ | ---- | -------- | ------ | ---- | +| title | 标题 | _string_ | - | - | +| desc | 描述 | _string_ | - | - | +| status | 状态 | _string_ | - | - | ### Slot @@ -53,7 +52,7 @@ | ------ | -------------------------------------------------------------- | | - | 自定义内容 | | header | 自定义 header,如果设置了`title`、`desc`、`status`属性则不生效 | -| footer | 自定义 footer,需要设置 `use-footer-slot`属性 | +| footer | 自定义 footer | ### 外部样式类 diff --git a/packages/panel/index.less b/packages/panel/index.less index 09a31717..243a81bf 100644 --- a/packages/panel/index.less +++ b/packages/panel/index.less @@ -10,5 +10,9 @@ &__footer { .theme(padding,'@panel-footer-padding'); + + &:empty { + display: none; + } } } diff --git a/packages/panel/index.ts b/packages/panel/index.ts index a2aaa079..e64ffcca 100644 --- a/packages/panel/index.ts +++ b/packages/panel/index.ts @@ -7,6 +7,5 @@ VantComponent({ desc: String, title: String, status: String, - useFooterSlot: Boolean, }, }); diff --git a/packages/panel/index.wxml b/packages/panel/index.wxml index 3f135d23..1843703b 100644 --- a/packages/panel/index.wxml +++ b/packages/panel/index.wxml @@ -1,5 +1,5 @@ - - +