From dc590d026e1130a98c70181fb65f8ed09414e787 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期五, 14 七月 2023 17:48:11 +0800 Subject: [PATCH] 1、主要解决获取当前用户信息等问题,使用AuthUtil来进行获取,对生成token等信息进行了修改增加。 --- Source/UBCS-WEB/dist/src/components/basic-container/main.vue | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/components/basic-container/main.vue b/Source/UBCS-WEB/dist/src/components/basic-container/main.vue new file mode 100644 index 0000000..cbe7b61 --- /dev/null +++ b/Source/UBCS-WEB/dist/src/components/basic-container/main.vue @@ -0,0 +1,55 @@ +<template> + <div class="basic-container" + :style="styleName" + :class="{'basic-container--block':block}"> + <el-card class="basic-container__card"> + <slot></slot> + </el-card> + </div> +</template> + +<script> +export default { + name: "basicContainer", + props: { + radius: { + type: [String, Number], + default: 10 + }, + background: { + type: String + }, + block: { + type: Boolean, + default: false + } + }, + computed: { + styleName () { + return { + borderRadius: this.setPx(this.radius), + background: this.background, + } + } + } +}; +</script> + +<style lang="scss"> +.basic-container { + padding: 10px 6px; + box-sizing: border-box; + &--block { + height: 100%; + .basic-container__card { + height: 100%; + } + } + &__card { + width: 100%; + } + &:first-child { + padding-top: 0; + } +} +</style> -- Gitblit v1.9.3