mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
refactor(slot): remove render() functions w/ only <slot/>
This commit is contained in:
@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
|
|||||||
theme: 'avatar'
|
theme: 'avatar'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export class Avatar {
|
export class Avatar {}
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -27,7 +27,4 @@ export class Badge {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,4 @@ import { Component } from '@stencil/core';
|
|||||||
theme: 'bar-buttons'
|
theme: 'bar-buttons'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export class Buttons {
|
export class Buttons {}
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -23,7 +23,4 @@ export class CardContent {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,4 @@ export class CardHeader {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,4 @@ export class CardSubtitle {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,4 @@ export class CardTitle {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,4 @@ export class Card {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,4 @@ export class Chip {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -30,9 +30,4 @@ export class FabList {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<slot></slot>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,4 @@ export class Footer {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,4 @@ export class Header {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -39,9 +39,6 @@ export class HideWhen implements DisplayWhen {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -233,8 +233,4 @@ export class InfiniteScroll {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
|
|||||||
theme: 'item-group'
|
theme: 'item-group'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export class ItemGroup {
|
export class ItemGroup {}
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -47,7 +47,4 @@ export class ItemOptions {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,4 @@ export class Label {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,4 @@ export class ListHeader {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,4 @@ export class List {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -60,9 +60,6 @@ export class MenuToggle {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMenuController(): Promise<HTMLIonMenuControllerElement> {
|
function getMenuController(): Promise<HTMLIonMenuControllerElement> {
|
||||||
|
@ -16,8 +16,4 @@ export class NavPop {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,4 @@ export class NavPush {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,4 @@ export class NavSetRoot {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,4 @@ export class Note {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -175,9 +175,6 @@ export class RadioGroup implements ComponentDidLoad, RadioGroupInput {
|
|||||||
return hostAttrs;
|
return hostAttrs;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let radioGroupIds = 0;
|
let radioGroupIds = 0;
|
||||||
|
@ -83,7 +83,4 @@ export class Segment {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -60,10 +60,6 @@ export class SelectOption {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,9 +39,6 @@ export class ShowWhen implements DisplayWhen {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,4 @@ export class Slide {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -149,9 +149,6 @@ export class SplitPane {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,7 +27,4 @@ export class Text {
|
|||||||
*/
|
*/
|
||||||
@Prop() mode: 'ios' | 'md';
|
@Prop() mode: 'ios' | 'md';
|
||||||
|
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,4 @@ import { Component } from '@stencil/core';
|
|||||||
theme: 'thumbnail'
|
theme: 'thumbnail'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
export class Thumbnail {
|
export class Thumbnail {}
|
||||||
render() {
|
|
||||||
return <slot></slot>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user