From c29a1e1c8278a25b83b6158c2d426aa26c427569 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 01 九月 2021 16:18:30 +0800
Subject: [PATCH] 2021-09-01

---
 src/templates/sharecomponent/tablecomponent/index.jsx |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/tablecomponent/index.jsx b/src/templates/sharecomponent/tablecomponent/index.jsx
index 8c8f4b4..d6aca93 100644
--- a/src/templates/sharecomponent/tablecomponent/index.jsx
+++ b/src/templates/sharecomponent/tablecomponent/index.jsx
@@ -182,6 +182,7 @@
               let _type = item.FieldType.toLowerCase()
               let _decimal = 0
               let _length = 50
+
               if (/^nvarchar/.test(_type)) {
                 try { // 瀛樺湪max
                   _length = +_type.match(/\d+/)[0] || 50
@@ -209,7 +210,8 @@
                 type: _type,
                 datatype: _type,
                 decimal: _decimal,
-                length: _length
+                length: _length,
+                $datatype: item.FieldType.toLowerCase()
               }
             })
           }

--
Gitblit v1.8.0