Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取消新建时 name 输入框 #22

Open
TanGuangZhi opened this issue Aug 4, 2022 · 0 comments
Open

取消新建时 name 输入框 #22

TanGuangZhi opened this issue Aug 4, 2022 · 0 comments

Comments

@TanGuangZhi
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch editable-tree-antd@1.1.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/editable-tree-antd/src/TreeNodeDisplay.jsx b/node_modules/editable-tree-antd/src/TreeNodeDisplay.jsx
index 58fc7d9..122deb9 100644
--- a/node_modules/editable-tree-antd/src/TreeNodeDisplay.jsx
+++ b/node_modules/editable-tree-antd/src/TreeNodeDisplay.jsx
@@ -26,7 +26,7 @@ export default function TreeNodeDisplay({
           </Tooltip>
         </span>)
       }
-      { isColonVisible && <span>:</span> }
+      {/* { isColonVisible && <span>:</span> }
       {
         editValueInputVisible &&
           <span>
@@ -38,7 +38,7 @@ export default function TreeNodeDisplay({
               </span>
             </Tooltip>
           </span>
-      }
+      } */}
     </React.Fragment>
     :
     null
diff --git a/node_modules/editable-tree-antd/src/lang.js b/node_modules/editable-tree-antd/src/lang.js
index 6c5c24c..762d12f 100644
--- a/node_modules/editable-tree-antd/src/lang.js
+++ b/node_modules/editable-tree-antd/src/lang.js
@@ -9,7 +9,7 @@ export default function lang() {
       pleaseInputKey: '请至少输入键名!',
       json_format_invalid: '导入的数据不合法!',
       KeyAndValueIsNotAllEmpty: '键名和键值不能都为空!',
-      confirm: '确认',
+      confirm: '确认11',
       cancel: '取消',
       addSisterNode: '添加同级节点',
       addSubNode: '添加子节点',
@@ -33,7 +33,7 @@ export default function lang() {
     }
   };
 
-  return  (env) => {
+  return (env) => {
     return langConf[env] || langConf['zh_CN'];
   };
 

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant