From d44134d06fc57865bc8995972e9035dbb90fd8b9 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 18 七月 2023 15:19:25 +0800
Subject: [PATCH] 7-18整合代码
---
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