mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(all): ts 3.2 issues
This commit is contained in:
committed by
Manu MA
parent
56dd8ae342
commit
f393a82ed6
@@ -164,7 +164,7 @@ export class Button implements ComponentInterface {
|
||||
}
|
||||
|
||||
render() {
|
||||
const TagType = this.href === undefined ? 'button' : 'a';
|
||||
const TagType = this.href === undefined ? 'button' : 'a' as any;
|
||||
const attrs = (TagType === 'button')
|
||||
? { type: this.type }
|
||||
: { href: this.href };
|
||||
|
||||
@@ -116,7 +116,7 @@ export class FabButton implements ComponentInterface {
|
||||
}
|
||||
|
||||
render() {
|
||||
const TagType = this.href === undefined ? 'button' : 'a';
|
||||
const TagType = this.href === undefined ? 'button' : 'a' as any;
|
||||
const attrs = (TagType === 'button')
|
||||
? { type: this.type }
|
||||
: { href: this.href };
|
||||
|
||||
@@ -59,7 +59,7 @@ export class ItemOption implements ComponentInterface {
|
||||
}
|
||||
|
||||
render() {
|
||||
const TagType = this.href === undefined ? 'button' : 'a';
|
||||
const TagType = this.href === undefined ? 'button' : 'a' as any;
|
||||
|
||||
return (
|
||||
<TagType
|
||||
|
||||
@@ -145,7 +145,7 @@ export class Item implements ComponentInterface {
|
||||
const { href, detail, mode, win, detailIcon, routerDirection, type } = this;
|
||||
|
||||
const clickable = this.isClickable();
|
||||
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
||||
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div' as any;
|
||||
const attrs = TagType === 'button' ? { type } : { href };
|
||||
const showDetail = detail !== undefined ? detail : mode === 'ios' && clickable;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user