fix(all): ts 3.2 issues

This commit is contained in:
Manu Mtz.-Almeida
2018-12-16 17:46:15 +01:00
committed by Manu MA
parent 56dd8ae342
commit f393a82ed6
4 changed files with 4 additions and 4 deletions

View File

@@ -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 };

View File

@@ -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 };

View File

@@ -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

View File

@@ -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;