From 0c5ecd0a4e7eef7242f391c37f4b1bc9d3fc993b Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Mon, 28 Nov 2022 00:48:02 +0800 Subject: [PATCH] chore: update --- src/router/enums.ts | 6 +++--- src/router/modules/components.ts | 4 ++++ src/views/components/message/index.vue | 4 ++-- src/views/pure-table/index.vue | 13 ++++++++++--- types/global.d.ts | 1 + 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/router/enums.ts b/src/router/enums.ts index ae281674c..decfe0e60 100644 --- a/src/router/enums.ts +++ b/src/router/enums.ts @@ -5,8 +5,8 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以 utils = 2, table = 3, tree = 4, - able = 5, - components = 6, + components = 5, + able = 6, frame = 7, nested = 8, result = 9, @@ -28,8 +28,8 @@ export { utils, table, tree, - able, components, + able, frame, nested, result, diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index 43b880c7c..1b2ea9f9d 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -19,6 +19,10 @@ export default { extraIcon: { svg: true, name: "team-iconxinpinrenqiwang" + }, + transition: { + enterTransition: "animate__fadeInLeft", + leaveTransition: "animate__fadeOutRight" } } }, diff --git a/src/views/components/message/index.vue b/src/views/components/message/index.vue index 23c330d3a..72178adc0 100644 --- a/src/views/components/message/index.vue +++ b/src/views/components/message/index.vue @@ -19,7 +19,7 @@ defineOptions({

element-plus 的消息提示,点击弹出提示信息

- + - + Info +import { ref } from "vue"; import { list } from "./base/list"; defineOptions({ name: "PureTable" }); + +const selected = ref(0); + +function tabClick({ index }) { + selected.value = index; +}