mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
refactor(all): make all method return a promise
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core';
|
||||
import { Component, Element, Event, EventEmitter, Prop, Watch } from '@stencil/core';
|
||||
|
||||
import { Color, Mode, StyleEvent } from '../../interface';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
@ -38,11 +38,6 @@ export class Label {
|
||||
*/
|
||||
@Event() ionStyle!: EventEmitter<StyleEvent>;
|
||||
|
||||
@Method()
|
||||
getText(): string {
|
||||
return this.el.textContent || '';
|
||||
}
|
||||
|
||||
componentDidLoad() {
|
||||
this.positionChanged();
|
||||
}
|
||||
|
Reference in New Issue
Block a user