<template>
<div>
<span>{{contentProp}}</span>
</div>
</template>
<script>
export default {
name: "ContentTemplate",
props: ["contentProp"]
};
</script>
|
<script>
import ContentTemplate from "./components/Content";
export default {
data: function () {
return {
contentTemplate: function () {
return () => {
return {
template: {
extends: ContentTemplate,
propsData: { contentProp: "Dialog Content" }
}
};
};
}
};
}
};
</script>
|
<template>
<ejs-dialog :content="contentTemplate(contentProp)"></ejs-dialog>
</template>
|