diff --git a/src/area/README.md b/src/area/README.md index ac5541483..be2f1affc 100644 --- a/src/area/README.md +++ b/src/area/README.md @@ -84,6 +84,8 @@ Set `columns-num` with 2, you'll have a 2 level picker. | Name | Description | |------|------| | title `v2.5.3` | Custom title | +| columns-top `v2.5.3` | Custom content above columns | +| columns-bottom `v2.5.3` | Custom content below columns | ### Methods diff --git a/src/area/README.zh-CN.md b/src/area/README.zh-CN.md index 577014b93..f61467579 100644 --- a/src/area/README.zh-CN.md +++ b/src/area/README.zh-CN.md @@ -83,6 +83,8 @@ Vue.use(Area); | 名称 | 说明 | |------|------| | title `v2.5.3` | 自定义标题内容 | +| columns-top `v2.5.3` | 自定义选项上方内容 | +| columns-bottom `v2.5.3` | 自定义选项下方内容 | ### 方法 diff --git a/src/area/index.js b/src/area/index.js index d25c5b308..377822a79 100644 --- a/src/area/index.js +++ b/src/area/index.js @@ -305,7 +305,11 @@ export default createComponent({ visibleItemCount={this.visibleItemCount} cancelButtonText={this.cancelButtonText} confirmButtonText={this.confirmButtonText} - scopedSlots={pickSlots(this, ['title'])} + scopedSlots={pickSlots(this, [ + 'title', + 'columns-top', + 'columns-bottom', + ])} {...{ on }} /> ); diff --git a/src/area/test/__snapshots__/index.spec.js.snap b/src/area/test/__snapshots__/index.spec.js.snap index 80f92f336..da2f19ac6 100644 --- a/src/area/test/__snapshots__/index.spec.js.snap +++ b/src/area/test/__snapshots__/index.spec.js.snap @@ -114,6 +114,26 @@ exports[`columns-num prop 1`] = ` `; +exports[`columns-top、columns-bottom slot 1`] = ` +