mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
1
core/src/components.d.ts
vendored
1
core/src/components.d.ts
vendored
@ -3947,6 +3947,7 @@ declare global {
|
|||||||
* If true, the menu is disabled. Default `false`.
|
* If true, the menu is disabled. Default `false`.
|
||||||
*/
|
*/
|
||||||
'disabled': boolean;
|
'disabled': boolean;
|
||||||
|
'getWidth': () => number;
|
||||||
'isActive': () => boolean;
|
'isActive': () => boolean;
|
||||||
'isOpen': () => boolean;
|
'isOpen': () => boolean;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -98,12 +98,7 @@ export class Refresher {
|
|||||||
console.error('Make sure you use: <ion-refresher slot="fixed">');
|
console.error('Make sure you use: <ion-refresher slot="fixed">');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const parentElement = this.el.parentElement;
|
const contentEl = this.el.closest('ion-content');
|
||||||
if (!parentElement) {
|
|
||||||
console.error('ion-refresher is not attached');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const contentEl = parentElement.querySelector('ion-content');
|
|
||||||
if (contentEl) {
|
if (contentEl) {
|
||||||
await contentEl.componentOnReady();
|
await contentEl.componentOnReady();
|
||||||
this.scrollEl = contentEl.getScrollElement();
|
this.scrollEl = contentEl.getScrollElement();
|
||||||
|
|||||||
Reference in New Issue
Block a user