aio-table 11.2.2 → 12.0.0
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.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -509,7 +509,7 @@ const useTable = (getProps, getPaging, getColumnOption) => {
|
|
|
509
509
|
const res = Object.assign({ column: {}, row: {}, rowIndex: 0, isFirst: false, isLast: false, date: [], change: () => { } }, v);
|
|
510
510
|
const value = getColumnOption('value', res);
|
|
511
511
|
const jalali = getColumnOption('jalali', res);
|
|
512
|
-
const date = res.column.type === 'date' ? new AIODate().
|
|
512
|
+
const date = res.column.type === 'date' ? new AIODate().toArray(getCellValue(res, value), jalali) : [];
|
|
513
513
|
return Object.assign(Object.assign(Object.assign({}, res), { date }), v);
|
|
514
514
|
}
|
|
515
515
|
const getCellAttrs = (cellDetail, cellValue, isOdd, striped) => {
|