mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
style(components): don't self close tags
This commit is contained in:
@ -337,7 +337,7 @@ export class Alert implements OverlayInterface {
|
|||||||
{i.label}
|
{i.label}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@ -368,7 +368,7 @@ export class Alert implements OverlayInterface {
|
|||||||
{i.label}
|
{i.label}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
@ -186,7 +186,7 @@ export class Button {
|
|||||||
<slot></slot>
|
<slot></slot>
|
||||||
<slot name="end"></slot>
|
<slot name="end"></slot>
|
||||||
</span>
|
</span>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</TagType>
|
</TagType>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ export class ChipButton {
|
|||||||
<span class="chip-button-inner">
|
<span class="chip-button-inner">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</span>
|
</span>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</TagType>
|
</TagType>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,7 @@ export class Datetime {
|
|||||||
onClick={this.open.bind(this)}
|
onClick={this.open.bind(this)}
|
||||||
class="datetime-cover"
|
class="datetime-cover"
|
||||||
>
|
>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</button>
|
</button>
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ export class Item {
|
|||||||
{showDetail && <ion-icon icon={detailIcon} lazy={false} class="item-detail-icon"></ion-icon>}
|
{showDetail && <ion-icon icon={detailIcon} lazy={false} class="item-detail-icon"></ion-icon>}
|
||||||
</div>
|
</div>
|
||||||
{state && <div class="item-state"></div>}
|
{state && <div class="item-state"></div>}
|
||||||
{clickable && mode === 'md' && <ion-ripple-effect />}
|
{clickable && mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</TagType>
|
</TagType>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ export class SegmentButton {
|
|||||||
onClick={() => this.checked = true}
|
onClick={() => this.checked = true}
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</button>
|
</button>
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -506,7 +506,7 @@ export class Select {
|
|||||||
class="select-cover"
|
class="select-cover"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</button>
|
</button>
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ export class Tabbar {
|
|||||||
{icon && <ion-icon class="tab-btn-icon" icon={icon} lazy={false}></ion-icon>}
|
{icon && <ion-icon class="tab-btn-icon" icon={icon} lazy={false}></ion-icon>}
|
||||||
{label && <span class="tab-btn-text">{label}</span>}
|
{label && <span class="tab-btn-text">{label}</span>}
|
||||||
{badge && <ion-badge class="tab-btn-badge" color={badgeColor}>{badge}</ion-badge>}
|
{badge && <ion-badge class="tab-btn-badge" color={badgeColor}>{badge}</ion-badge>}
|
||||||
{this.mode === 'md' && <ion-ripple-effect />}
|
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ export function startTapClick(doc: Document) {
|
|||||||
|
|
||||||
const { x, y } = pointerCoord(ev);
|
const { x, y } = pointerCoord(ev);
|
||||||
|
|
||||||
// unactivate selected
|
// deactivate selected
|
||||||
if (activatableEle) {
|
if (activatableEle) {
|
||||||
if (clearDefers.has(activatableEle)) {
|
if (clearDefers.has(activatableEle)) {
|
||||||
throw new Error('internal error');
|
throw new Error('internal error');
|
||||||
|
Reference in New Issue
Block a user