feat: 关系组件

This commit is contained in:
leiqiaochu 2023-10-10 11:04:32 +08:00
parent 406101c134
commit dca46aeb43
1 changed files with 22 additions and 1 deletions

View File

@ -1,10 +1,31 @@
<template> <template>
<j-drawer :visible="true" title="关系绑定" placement="right" @close="closeDrawer" :width="500"> <j-drawer :visible="true" title="关系绑定" placement="right" @close="closeDrawer" :width="500">
<j-tabs v-model:activeKey="activeKey" type="card">
<j-tab-pane v-for="(item,index) in relationOptions" :key="item.value" :tab="item.text">
</j-tab-pane>
</j-tabs>
</j-drawer> </j-drawer>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
const activeKey = ref('user')
const relationOptions = [{
text:'用户',
value:'user'
},{
text:'产品',
value:'product'
},{
text:'设备',
value:'device'
},{
text: '组织',
value:'organization'
},{
text:'角色',
value:'role'
}]
const closeDrawer = () =>{ const closeDrawer = () =>{
} }