mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
refactor(components): rename functions for consistency and use typings
This commit is contained in:
@ -163,8 +163,8 @@ export class Alert {
|
||||
}
|
||||
}
|
||||
|
||||
btnClick(button: any) {
|
||||
console.log('btnClick', button);
|
||||
buttonClick(button: any) {
|
||||
console.log('buttonClick', button);
|
||||
|
||||
// TODO keep the time of the most recent button click
|
||||
// this.lastClick = Date.now();
|
||||
@ -375,7 +375,7 @@ export class Alert {
|
||||
|
||||
<div class={alertButtonGroupClass}>
|
||||
{buttons.map(b =>
|
||||
<button class={this.buttonClass(b)} onClick={() => this.btnClick(b)}>
|
||||
<button class={this.buttonClass(b)} onClick={() => this.buttonClick(b)}>
|
||||
<span class='button-inner'>
|
||||
{b.text}
|
||||
</span>
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { Component, Element, Prop, PropDidChange } from '@stencil/core';
|
||||
|
||||
import { HTMLIonFabElement } from '../../index';
|
||||
|
||||
/**
|
||||
* @name FabList
|
||||
@ -29,7 +30,7 @@ import { Component, Element, Prop, PropDidChange } from '@stencil/core';
|
||||
tag: 'ion-fab-list',
|
||||
})
|
||||
export class FabList {
|
||||
@Element() private el: HTMLElement;
|
||||
@Element() private el: HTMLIonFabElement;
|
||||
|
||||
@Prop() activated: boolean = false;
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Component, CssClassMap, Element, Method, Prop, State, PropDidChange } from '@stencil/core';
|
||||
import { createThemedClasses, getElementClassObject } from '../../utils/theme';
|
||||
|
||||
import { HTMLIonFabListElement } from '../../index';
|
||||
|
||||
/**
|
||||
* @name FabButton
|
||||
|
Reference in New Issue
Block a user