mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
@ -60,20 +60,14 @@ export class SplitPane implements ComponentInterface {
|
||||
*/
|
||||
@Prop() when: string | boolean = QUERY['lg'];
|
||||
|
||||
/**
|
||||
* Emitted when the split pane is visible.
|
||||
*/
|
||||
@Event({ bubbles: false }) ionChange!: EventEmitter<{visible: boolean}>;
|
||||
|
||||
/**
|
||||
* Expression to be called when the split-pane visibility has changed
|
||||
*/
|
||||
@Event() ionSplitPaneVisible!: EventEmitter;
|
||||
@Event() ionSplitPaneVisible!: EventEmitter<{visible: boolean}>;
|
||||
|
||||
@Watch('visible')
|
||||
visibleChanged(visible: boolean) {
|
||||
const detail = { visible, isPane: this.isPane.bind(this) };
|
||||
this.ionChange.emit(detail);
|
||||
this.ionSplitPaneVisible.emit(detail);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user