From 4a9f3c05f028b5e767bf30e7e317d628bc8fd89c Mon Sep 17 00:00:00 2001
From: chensiAb <chenchenco03@163.com>
Date: Wed, 17 Apr 2024 10:16:30 +0800
Subject: [PATCH] feat:'小程序echarts文件 ,折线图已经过定制'

---
 layout/description/CDescription.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/layout/description/CDescription.vue b/layout/description/CDescription.vue
index 55da391..9cc153e 100644
--- a/layout/description/CDescription.vue
+++ b/layout/description/CDescription.vue
@@ -6,7 +6,7 @@
 <template>
     <view
         class="c-description"
-        :class="hasBorder?'c-description-bordered':''"
+        :class="[hasBorder?'c-description-bordered':'', enlarged?'c-description-enlarged':'']"
     >
         <view
             class="c-description-label"
@@ -21,20 +21,28 @@
 <script>
 import Taro from '@tarojs/taro';
 import {} from 'taro-ui-vue';
-import './CDescription.scss';
+import './cDescription.scss';
 
 export default {
     name: 'CDescription',
     components: {},
     props: {
+        // 左边标题
         label: String,
+        // 标题对齐方式:left(定宽左对齐)、right(定宽右对齐)、none(无宽度)
         labelAlign: {
             type: String,
-            default: 'left', // left、right
+            default: 'left',
         },
+        // 加大显示区域
+        enlarged: {
+            type: Boolean,
+            default: false,
+        },
+        // 是否有底部边线
         hasBorder: {
             type: Boolean,
-            default: true,
+            default: false,
         },
     },
     data() {

--
Gitblit v1.9.1