Comments (1)
这个并无特别的地方,我粘贴部分代码与你看(这个是私人项目,就没开源了)
我调用的是 ant design vue
的 card
组件,里面的 content 正常写 html 内容即可。
<a-card class="mi-card" :tab-list="tabList" @tab-change="handleTabChange">
<div v-show="tabKey === 'effect'">
<!-- TODO: 你的页面内容 -->
</div>
<div v-show="tabKey === 'template'">
<!-- TODO: 你的页面内容 -->
</div>
import { defineComponent } from 'vue'
export default defineComponent({
data() {
tabList: [{
key: 'effect',
tab: '实时效果'
}, {
key: 'template',
tab: 'Template'
}],
tabKey: 'effect'
},
methods: {
handleTabChange(key: string) {
this.tabKey = key
}
}
})
from miitvip-vue-admin-manager.
Related Issues (10)
- 老哥 这个可以免费商用吗? HOT 1
- layout的内边距没有严丝合缝? HOT 1
- 滑动验证码 vue2 的项目引入怎么报错 vue2 不兼容vue3吗 HOT 1
- 谷歌运行报错加载不出页面 Uncaught SyntaxError: Unexpected token ? HOT 2
- 大哥有没有文档地址 原本的用不了 HOT 1
- 请教一下,像demo里一样在vite中实时切换暗黑主题怎么做到的? HOT 2
- issue HOT 1
- 直接引入使用默认的就会报错 是我哪里没写对吗? HOT 5
- 点击搜索,任意进入一个搜索项,页面空白,返回之后面包屑无法关闭 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miitvip-vue-admin-manager.