From 0c168ce15c9e166c98a1f1ad1decc073dfec2ea4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 10 十二月 2024 16:45:18 +0800
Subject: [PATCH] 2024-12-10

---
 src/menu/components/editor/braft-editor/options.jsx |   32 +++++++++++++++++++-------------
 1 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/src/menu/components/editor/braft-editor/options.jsx b/src/menu/components/editor/braft-editor/options.jsx
index 44defce..70910be 100644
--- a/src/menu/components/editor/braft-editor/options.jsx
+++ b/src/menu/components/editor/braft-editor/options.jsx
@@ -31,6 +31,13 @@
     roleList = []
   }
 
+  let tbStyle = wrap.tbStyle ? wrap.tbStyle.split(' ') : []
+  let splitLine = 'false'
+  if (tbStyle.includes('deep-split')) {
+    tbStyle = tbStyle.filter(n => n !== 'deep-split')
+    splitLine = 'true'
+  }
+
   const cardWrapForm = [
     {
       type: 'text',
@@ -134,7 +141,7 @@
       type: 'checkbox',
       field: 'tbStyle',
       label: '琛ㄦ牸鏍峰紡',
-      initval: wrap.tbStyle ? wrap.tbStyle.split(' ') : [],
+      initval: tbStyle,
       tooltip: '瀵屾枃鏈腑琛ㄦ牸鐨勬牱寮忥紝娉細閫夋嫨鈥滆竟妗嗗姞绮椻�濇垨鈥滆竟妗嗛鑹插姞娣扁�濇椂鈥滄棤杈规鈥濇棤鏁堛��',
       required: false,
       options: [
@@ -146,18 +153,17 @@
       ],
       span: 24
     },
-    // {
-    //   type: 'radio',
-    //   field: 'firstTr',
-    //   label: '琛ㄦ牸棣栬',
-    //   initval: wrap.firstTr || 'deep',
-    //   tooltip: '瀵屾枃鏈腑table鐨勯琛岃儗鏅鑹层��',
-    //   required: false,
-    //   options: [
-    //     {value: 'deep', label: '娣辫壊'},
-    //     {value: 'light', label: '娴呰壊'},
-    //   ]
-    // },
+    {
+      type: 'radio',
+      field: 'splitLine',
+      label: '鍒嗗壊绾垮姞娣�',
+      initval: splitLine,
+      required: false,
+      options: [
+        {value: 'false', label: '鍚�'},
+        {value: 'true', label: '鏄�'},
+      ],
+    },
     {
       type: 'radio',
       field: 'permission',

--
Gitblit v1.8.0