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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.18.3",
3
+ "version": "2.18.4",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## 2026-05-03
4
4
 
5
5
  - [2.18.3] Bug fix in ```wdb-data-table``` widget
6
+ - [2.18.4] Bug fix in ```wdb-data-table``` widget
6
7
 
7
8
  ## 2026-05-02
8
9