mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(split-pane): remove [main] deprecation warning (#19599)
This commit is contained in:
committed by
Brandy Carney
parent
5d6e077067
commit
e623fbff80
@ -67,24 +67,6 @@ export class SplitPane implements ComponentInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillLoad() {
|
|
||||||
if (this.contentId === undefined) {
|
|
||||||
console.warn(`[DEPRECATED][ion-split-pane] Using the [main] attribute is deprecated, please use the "contentId" property instead:
|
|
||||||
BEFORE:
|
|
||||||
<ion-split-pane>
|
|
||||||
...
|
|
||||||
<div main>...</div>
|
|
||||||
</ion-split-pane>
|
|
||||||
|
|
||||||
AFTER:
|
|
||||||
<ion-split-pane contentId="main-content">
|
|
||||||
...
|
|
||||||
<div id="main-content">...</div>
|
|
||||||
</ion-split-pane>
|
|
||||||
`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Watch('disabled')
|
@Watch('disabled')
|
||||||
@Watch('when')
|
@Watch('when')
|
||||||
protected updateState() {
|
protected updateState() {
|
||||||
|
|||||||
Reference in New Issue
Block a user