chore: update

This commit is contained in:
xiaoxian521 2022-11-28 00:48:02 +08:00
parent 1d76946968
commit 0c5ecd0a4e
5 changed files with 20 additions and 8 deletions

View File

@ -5,8 +5,8 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以
utils = 2, utils = 2,
table = 3, table = 3,
tree = 4, tree = 4,
able = 5, components = 5,
components = 6, able = 6,
frame = 7, frame = 7,
nested = 8, nested = 8,
result = 9, result = 9,
@ -28,8 +28,8 @@ export {
utils, utils,
table, table,
tree, tree,
able,
components, components,
able,
frame, frame,
nested, nested,
result, result,

View File

@ -19,6 +19,10 @@ export default {
extraIcon: { extraIcon: {
svg: true, svg: true,
name: "team-iconxinpinrenqiwang" name: "team-iconxinpinrenqiwang"
},
transition: {
enterTransition: "animate__fadeInLeft",
leaveTransition: "animate__fadeOutRight"
} }
} }
}, },

View File

@ -19,7 +19,7 @@ defineOptions({
<h4 class="mb-4">element-plus 的消息提示点击弹出提示信息</h4> <h4 class="mb-4">element-plus 的消息提示点击弹出提示信息</h4>
<el-space> <el-space wrap>
<el-button <el-button
type="info" type="info"
@click="message('Info类型消息', { customClass: 'el' })" @click="message('Info类型消息', { customClass: 'el' })"
@ -119,7 +119,7 @@ defineOptions({
原本样式使用和打包大小成本极低并适配暗黑模式 原本样式使用和打包大小成本极低并适配暗黑模式
</h4> </h4>
<el-space> <el-space wrap>
<el-button type="info" @click="message('Info类型消息')">Info</el-button> <el-button type="info" @click="message('Info类型消息')">Info</el-button>
<el-button <el-button
type="success" type="success"

View File

@ -1,9 +1,16 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from "vue";
import { list } from "./base/list"; import { list } from "./base/list";
defineOptions({ defineOptions({
name: "PureTable" name: "PureTable"
}); });
const selected = ref(0);
function tabClick({ index }) {
selected.value = index;
}
</script> </script>
<template> <template>
@ -32,9 +39,9 @@ defineOptions({
:closable="false" :closable="false"
/> />
<el-tabs> <el-tabs @tab-click="tabClick">
<template v-for="(item, index) of list" :key="item.key"> <template v-for="(item, index) of list" :key="item.key">
<el-tab-pane> <el-tab-pane :lazy="true">
<template #label> <template #label>
<el-tooltip <el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`" :content="`(第 ${index + 1} 个示例)${item.content}`"
@ -43,7 +50,7 @@ defineOptions({
<span>{{ item.title }}</span> <span>{{ item.title }}</span>
</el-tooltip> </el-tooltip>
</template> </template>
<component :is="item.component" /> <component v-if="selected == index" :is="item.component" />
</el-tab-pane> </el-tab-pane>
</template> </template>
</el-tabs> </el-tabs>

1
types/global.d.ts vendored
View File

@ -214,6 +214,7 @@ declare global {
/** /**
* @description * @description
* @see {@link https://next.router.vuejs.org/guide/advanced/transitions.html#transitions} * @see {@link https://next.router.vuejs.org/guide/advanced/transitions.html#transitions}
* @see animate.css {@link https://animate.style}
*/ */
name?: string; name?: string;
/** 进场动画 */ /** 进场动画 */