mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
feat: 通过iframe引入按钮组件页面
This commit is contained in:
@@ -10,5 +10,6 @@
|
||||
"video": "视频组件",
|
||||
"map": "地图组件",
|
||||
"draggable": "拖拽组件",
|
||||
"split-pane": "切割面板"
|
||||
"split-pane": "切割面板",
|
||||
"button": "按钮组件"
|
||||
}
|
||||
@@ -10,5 +10,6 @@
|
||||
"video": "Video Components",
|
||||
"map": "Map Components",
|
||||
"draggable": "Draggable Components",
|
||||
"split-pane": "Split Pane"
|
||||
"split-pane": "Split Pane",
|
||||
"button": "Button Components"
|
||||
}
|
||||
@@ -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: {
|
||||
|
||||
19
src/views/components/button/index.vue
Normal file
19
src/views/components/button/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user