fix(): update to Stencil One 🎉🎊

This commit is contained in:
Manu MA
2019-06-19 21:33:50 +02:00
committed by GitHub
parent 7f1829eb21
commit b40f7d36d5
572 changed files with 14833 additions and 10323 deletions

View File

@ -1,7 +1,10 @@
import { Component, ComponentInterface, Prop } from '@stencil/core';
import { Component, ComponentInterface } from '@stencil/core';
import { Mode } from '../../interface';
import { getIonMode } from '../../global/ionic-global';
/**
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
*/
@Component({
tag: 'ion-card-content',
styleUrls: {
@ -11,18 +14,14 @@ import { Mode } from '../../interface';
})
export class CardContent implements ComponentInterface {
/**
* The mode determines which platform styles to use.
*/
@Prop() mode!: Mode;
hostData() {
const mode = getIonMode(this);
return {
class: {
[`${this.mode}`]: true,
[`${mode}`]: true,
// Used internally for styling
[`card-content-${this.mode}`]: true
[`card-content-${mode}`]: true
}
};
}