mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +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) {
|
buttonClick(button: any) {
|
||||||
console.log('btnClick', button);
|
console.log('buttonClick', button);
|
||||||
|
|
||||||
// TODO keep the time of the most recent button click
|
// TODO keep the time of the most recent button click
|
||||||
// this.lastClick = Date.now();
|
// this.lastClick = Date.now();
|
||||||
@ -375,7 +375,7 @@ export class Alert {
|
|||||||
|
|
||||||
<div class={alertButtonGroupClass}>
|
<div class={alertButtonGroupClass}>
|
||||||
{buttons.map(b =>
|
{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'>
|
<span class='button-inner'>
|
||||||
{b.text}
|
{b.text}
|
||||||
</span>
|
</span>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { Component, Element, Prop, PropDidChange } from '@stencil/core';
|
import { Component, Element, Prop, PropDidChange } from '@stencil/core';
|
||||||
|
|
||||||
|
import { HTMLIonFabElement } from '../../index';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name FabList
|
* @name FabList
|
||||||
@ -29,7 +30,7 @@ import { Component, Element, Prop, PropDidChange } from '@stencil/core';
|
|||||||
tag: 'ion-fab-list',
|
tag: 'ion-fab-list',
|
||||||
})
|
})
|
||||||
export class FabList {
|
export class FabList {
|
||||||
@Element() private el: HTMLElement;
|
@Element() private el: HTMLIonFabElement;
|
||||||
|
|
||||||
@Prop() activated: boolean = false;
|
@Prop() activated: boolean = false;
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Component, CssClassMap, Element, Method, Prop, State, PropDidChange } from '@stencil/core';
|
import { Component, CssClassMap, Element, Method, Prop, State, PropDidChange } from '@stencil/core';
|
||||||
import { createThemedClasses, getElementClassObject } from '../../utils/theme';
|
import { createThemedClasses, getElementClassObject } from '../../utils/theme';
|
||||||
|
|
||||||
|
import { HTMLIonFabListElement } from '../../index';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name FabButton
|
* @name FabButton
|
||||||
|
Reference in New Issue
Block a user