From dfdcdcb3dbd0b711bc0b77bb00fd1d39af91bd0b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 10 一月 2025 17:43:34 +0800
Subject: [PATCH] 2025-01-10

---
 src/menu/components/share/markcomponent/index.jsx |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/menu/components/share/markcomponent/index.jsx b/src/menu/components/share/markcomponent/index.jsx
index a88f98e..4173b5b 100644
--- a/src/menu/components/share/markcomponent/index.jsx
+++ b/src/menu/components/share/markcomponent/index.jsx
@@ -112,7 +112,7 @@
         options: [],
         render: text => {
           let sign = {
-            'font': '鏂囧瓧',
+            'font': '瀛椾綋棰滆壊',
             'background': '鑳屾櫙',
             'underline': '涓嬪垝绾�',
             'line-through': '涓垝绾�',
@@ -267,7 +267,7 @@
     let signs = [
       {
         value: 'font',
-        label: '鏂囧瓧'
+        label: '瀛椾綋棰滆壊'
       },
       {
         value: 'background',
@@ -324,6 +324,11 @@
       signs.pop()
       signs.pop()
       signs.pop()
+    } else if (type === 'icon') {
+      signs = [{
+        value: 'font',
+        label: '瀛椾綋棰滆壊'
+      }]
     } else if (type === 'slider') {
       markColumns = markColumns.filter(col => {
         col.width = '20%'
@@ -399,12 +404,12 @@
       })
       this.props.onSubmit(marks)
     } else {
-      const _this = this
+      const that = this
       confirm({
         title: '瀛樺湪鏈繚瀛樻爣璁帮紝纭畾蹇界暐鍚楋紵',
         onOk() {
-          _this.setState({ visible: false })
-          _this.props.onSubmit(marks)
+          that.setState({ visible: false })
+          that.props.onSubmit(marks)
         },
         onCancel() {}
       })
@@ -414,8 +419,13 @@
   render() {
     const { marks, markColumns, visible, options, signs } = this.state
 
+    let className = ''
+    if (this.props.type === 'line' && this.props.marks.length) {
+      className = 'mk-line-marks'
+    }
+
     return (
-      <div style={{display: 'inline-block'}}>
+      <div style={{display: 'inline-block'}} className={className}>
         <AntDesignOutlined className="profile" title="鏍囪" onClick={this.resetMark} />
         <Modal
           wrapClassName="mark-modal-wrap"

--
Gitblit v1.8.0