waibu-db 2.18.3 → 2.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -128,8 +128,7 @@ async function table () {
|
|
|
128
128
|
if (!prop) continue
|
|
129
129
|
let dataValue = d[f]
|
|
130
130
|
if (['datetime'].includes(prop.type) && dataValue instanceof Date && !isNaN(dataValue)) dataValue = escape(dataValue.toISOString())
|
|
131
|
-
else if (['string', 'text'].includes(prop.type)) dataValue = escape(dataValue)
|
|
132
|
-
else if (['array', 'object'].includes(prop.type)) dataValue = escape(JSON.stringify(dataValue))
|
|
131
|
+
else if (['string', 'text', 'array', 'object'].includes(prop.type)) dataValue = escape(dataValue)
|
|
133
132
|
const refName = get(schema, `view.widget.${f}.attr.refName`)
|
|
134
133
|
let value = this.getRefValue({ field: f, data: d, refName }) ?? get(d, `_fmt.${f}`, d[f])
|
|
135
134
|
const attr = { dataValue, dataKey: prop.name, dataType: prop.type }
|
package/package.json
CHANGED