Prevent passing class to Vue components
This commit is contained in:
parent
303f32fda0
commit
1103cb1f9d
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ import { h, createSSRApp } from 'vue';
|
||||||
import StaticHtml from './static-html.js';
|
import StaticHtml from './static-html.js';
|
||||||
|
|
||||||
export default (element) => (Component, props, children) => {
|
export default (element) => (Component, props, children) => {
|
||||||
|
delete props['class'];
|
||||||
// Expose name on host component for Vue devtools
|
// Expose name on host component for Vue devtools
|
||||||
const name = Component.name ? `${Component.name} Host` : undefined;
|
const name = Component.name ? `${Component.name} Host` : undefined;
|
||||||
const app = createSSRApp({ name, render: () => h(Component, props, { default: () => h(StaticHtml, { value: children }) }) });
|
const app = createSSRApp({ name, render: () => h(Component, props, { default: () => h(StaticHtml, { value: children }) }) });
|
||||||
|
|
Loading…
Reference in a new issue