RealityBoy 9b62d6ef1e
feat: add ample demos to @pureadmin/table (#379)
* feat: add ample demos to @pureadmin/table
2022-11-21 11:42:33 +08:00

47 lines
1.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup lang="ts">
import { list } from "./list";
import { Tabs, TabPane } from "@pureadmin/components";
defineOptions({
name: "PureTable"
});
</script>
<template>
<el-card>
<template #header>
<div class="card-header">
<span class="font-medium">
平台二次封装 element-plus Table 完全兼容 Api
并提供灵活的配置项以及完善的类型提醒再也不用将代码都写在 template
里了欢迎 Star
<el-link
href="https://github.com/xiaoxian521/pure-admin-table"
target="_blank"
style="font-size: 16px; margin: 0 4px 5px"
>
@pureadmin/table
</el-link>
</span>
</div>
</template>
<Tabs :destroyInactiveTabPane="true">
<TabPane v-for="item of list" :key="item.key">
<template #tab>
<el-tooltip :content="item.content" placement="top-end">
<span>{{ item.title }}</span>
</el-tooltip>
</template>
<component :is="item.component" />
</TabPane>
</Tabs>
</el-card>
</template>
<style scoped>
:deep(.ant-tabs-content-holder) {
margin-top: 10px;
}
</style>