22 lines
521 B
JavaScript
22 lines
521 B
JavaScript
/**
|
||||
|
|
* SectionHeader 区块标题(规范 §18)
|
|||
|
|
*
|
|||
|
|
* 标题 + 可选副标题 + 右侧操作入口。
|
|||
|
|
* 用法:
|
|||
|
|
* <ui-section-header title="今日推荐" subtitle="共 6 位"
|
|||
|
|
* action="查看更多" bind:action="onMore" />
|
|||
|
|
*/
|
|||
|
|
Component({
|
|||
|
|
options: { addGlobalClass: true },
|
|||
|
|
properties: {
|
|||
|
|
title: { type: String, value: '' },
|
|||
|
|
subtitle: { type: String, value: '' },
|
|||
|
|
action: { type: String, value: '' },
|
|||
|
|
},
|
|||
|
|
methods: {
|
|||
|
|
onAction() {
|
|||
|
|
this.triggerEvent('action', {});
|
|||
|
|
},
|
|||
|
|
},
|
|||
|
|
});
|