From 16f6364152f854f7dc9438c9bd88c63a03fd5f2d Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 20 七月 2023 16:09:15 +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