From 4154c2779a6a033f57dde2743dc1c48e60d6def3 Mon Sep 17 00:00:00 2001
From: ‘chensiAb’ <‘chenchenco03@163.com’>
Date: Tue, 15 Apr 2025 17:27:36 +0800
Subject: [PATCH] style:checkBox-非弹窗模式下-无数据样式微调

---
 forms/checkbox/CCheckBox.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/forms/checkbox/CCheckBox.vue b/forms/checkbox/CCheckBox.vue
index aa9c01a..42bbc73 100644
--- a/forms/checkbox/CCheckBox.vue
+++ b/forms/checkbox/CCheckBox.vue
@@ -9,7 +9,7 @@
 <template>
     <view
         class="c-check-box"
-        :class="displayType==='dialog'?'c-check-box-dialog':''"
+        :class="displayType==='dialog'?'c-check-box-dialog':'c-check-box-plane'"
     >
         <AtInput
             ref="input"
@@ -27,6 +27,10 @@
                 v-if="displayType==='dialog'"
                 class="at-icon at-icon-chevron-right"
             />
+            <text
+                class="empty-text"
+                v-if="displayType==='plane' && options.length<=0"
+            >{{emptyText}}</text>
         </AtInput>
         <AtCheckbox
             ref="check"
@@ -111,6 +115,11 @@
         },
         // 占位提示
         placeholder: String,
+        // 空选项的提示
+        emptyText: {
+            type: String,
+            default: '',
+        },
     },
     data() {
         return {

--
Gitblit v1.9.1