优化预约表单并支持散客预约
This commit is contained in:
@@ -10,6 +10,9 @@ Component({
|
||||
errorText: { type: String, value: '' },
|
||||
emptyText: { type: String, value: '暂无可选内容' },
|
||||
actionText: { type: String, value: '' },
|
||||
showViewSwitch: { type: Boolean, value: false },
|
||||
viewMode: { type: String, value: 'list' },
|
||||
sortLabel: { type: String, value: '' },
|
||||
showSearch: { type: Boolean, value: true }
|
||||
},
|
||||
|
||||
@@ -36,6 +39,14 @@ Component({
|
||||
|
||||
action() {
|
||||
this.triggerEvent('action')
|
||||
},
|
||||
|
||||
changeView(event) {
|
||||
this.triggerEvent('changeview', { mode: event.currentTarget.dataset.mode })
|
||||
},
|
||||
|
||||
sort() {
|
||||
this.triggerEvent('sort')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user