feat: 通过iframe引入按钮组件页面

This commit is contained in:
张益铭
2021-03-30 14:40:32 +08:00
parent 3bf157f028
commit f8ff3d9162
5 changed files with 823 additions and 2 deletions

View File

@@ -10,5 +10,6 @@
"video": "视频组件",
"map": "地图组件",
"draggable": "拖拽组件",
"split-pane": "切割面板"
"split-pane": "切割面板",
"button": "按钮组件"
}

View File

@@ -10,5 +10,6 @@
"video": "Video Components",
"map": "Map Components",
"draggable": "Draggable Components",
"split-pane": "Split Pane"
"split-pane": "Split Pane",
"button": "Button Components"
}

View File

@@ -67,6 +67,15 @@ const routes: Array<RouteRecordRaw> = [
showLink: false,
savedPosition: true
}
},
{
path: '/components/button',
component: () => import(/* webpackChunkName: "components" */ '../views/components/button/index.vue'),
meta: {
title: 'button',
showLink: false,
savedPosition: true
}
}
],
meta: {

View File

@@ -0,0 +1,19 @@
<template>
<iframe src="./button.html" frameborder="0" class="iframe"></iframe>
</template>
<script lang='ts'>
export default {
setup() {
return {};
},
};
</script>
<style scoped>
.iframe {
width:98%;
height:90vh;
border-radius: 6px;
}
</style>