mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
29 lines
547 B
TypeScript
29 lines
547 B
TypeScript
import { Component, ComponentInterface } from '@stencil/core';
|
|
|
|
import { getIonMode } from '../../global/ionic-global';
|
|
|
|
@Component({
|
|
tag: 'ion-item-group',
|
|
styleUrls: {
|
|
ios: 'item-group.ios.scss',
|
|
md: 'item-group.md.scss'
|
|
}
|
|
})
|
|
export class ItemGroup implements ComponentInterface {
|
|
|
|
hostData() {
|
|
const mode = getIonMode(this);
|
|
return {
|
|
'role': 'group',
|
|
class: {
|
|
[`${mode}`]: true,
|
|
|
|
// Used internally for styling
|
|
[`item-group-${mode}`]: true,
|
|
|
|
'item': true
|
|
}
|
|
};
|
|
}
|
|
}
|