king
2021-09-01 c29a1e1c8278a25b83b6158c2d426aa26c427569
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()
              }
            })
          }