From ae6d20ec4a30b7e796feb05958bcfc80e55f247b Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 20 七月 2023 15:21:45 +0800
Subject: [PATCH] 整合代码部署

---
 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