mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(package): update stencil
This commit is contained in:
4067
core/package-lock.json
generated
4067
core/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@
|
||||
"ionicons": "^4.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@stencil/core": "^0.9.4",
|
||||
"@stencil/core": "^0.9.6",
|
||||
"@stencil/dev-server": "latest",
|
||||
"@stencil/sass": "latest",
|
||||
"@stencil/utils": "latest",
|
||||
|
||||
5
core/src/components.d.ts
vendored
5
core/src/components.d.ts
vendored
@@ -13,9 +13,12 @@ declare global {
|
||||
}
|
||||
namespace JSXElements {}
|
||||
|
||||
interface HTMLElement {
|
||||
componentOnReady?: () => Promise<this | null>;
|
||||
}
|
||||
|
||||
interface HTMLStencilElement extends HTMLElement {
|
||||
componentOnReady(): Promise<this>;
|
||||
componentOnReady(done: (ele?: this) => void): void;
|
||||
|
||||
forceUpdate(): void;
|
||||
}
|
||||
|
||||
@@ -280,8 +280,8 @@ export class VirtualScroll {
|
||||
this.setCellHeight(cell, height);
|
||||
}
|
||||
};
|
||||
if ('componentOnReady' in node) {
|
||||
node.componentOnReady(update);
|
||||
if (node && node.componentOnReady) {
|
||||
node.componentOnReady().then(update);
|
||||
} else {
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user