ant-design-vue/site/components/iframe.vue
2019-09-28 20:45:07 +08:00

31 lines
659 B
Vue

<script>
// import * as AllDemo from '../demo'
export default {
props: {
name: String,
hash: String,
},
provide() {
return {
demoContext: this,
};
},
render() {
// const name = this.name
// const titleMap = {}
// for (const [title] of Object.entries(AllDemo)) {
// const key = `${title.replace(/(\B[A-Z])/g, '-$1').toLowerCase()}`
// titleMap[key] = title
// }
// const Demo = AllDemo[titleMap[name.replace(/-cn\/?$/, '')]]
// const hash = this.$route.hash.replace('#', '')
return (
<div id="iframe-page">
<router-view></router-view>
</div>
);
},
};
</script>