mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(vue): preserve custom classes on IonPage (#24776)
resolves #24772 Co-authored-by: bnachtweh <bnachtweh@users.noreply.github.com>
This commit is contained in:
@ -12,11 +12,12 @@ export const IonPage = /*@__PURE__*/ defineComponent({
|
||||
setup(props, { attrs, slots }) {
|
||||
const hidePageClass = (props.isInOutlet) ? 'ion-page-invisible' : '';
|
||||
return () => {
|
||||
const existingClasses = attrs.class ?? '';
|
||||
return h(
|
||||
'div',
|
||||
{
|
||||
['class']: `ion-page ${hidePageClass}`,
|
||||
...attrs,
|
||||
['class']: `ion-page ${hidePageClass} ${existingClasses}`,
|
||||
ref: 'ionPage'
|
||||
},
|
||||
slots.default && slots.default()
|
||||
|
Reference in New Issue
Block a user