From 43e3fbd51cbb2536d6bc7344f8287d749b529b72 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 13 七月 2023 11:14:38 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
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