@fto-consult/expo-ui 6.85.0 → 6.85.2
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/package.json
CHANGED
@@ -49,7 +49,7 @@ export const renderRowCell = (arg)=>{
|
|
49
49
|
const sqlFormat =_type === 'time'? undefined : _type ==="datetime" ? DateLib.SQLDateTimeFormat : DateLib.SQLDateFormat;
|
50
50
|
let _dd =DateLib.parse(rowData[columnField],sqlFormat);
|
51
51
|
if(DateLib.isDateObj(_dd)){
|
52
|
-
const eFormat = defaultStr(columnDef.format,(_type === 'time'?DateLib.defaultTimeFormat:DateLib.masks.defaultDate));
|
52
|
+
const eFormat = defaultStr(columnDef.format,(_type === 'time'?DateLib.defaultTimeFormat:_type=="datetime"? DateLib.defaultDateTimeFormat:DateLib.masks.defaultDate));
|
53
53
|
_render = DateLib.format(_dd,eFormat);
|
54
54
|
}
|
55
55
|
}
|
@@ -683,12 +683,12 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
683
683
|
*/
|
684
684
|
reloadCurrentData(currentData,callback){
|
685
685
|
currentData = isObj(currentData)? currentData : {};
|
686
|
-
if(this.
|
686
|
+
if(this.hasManyData() && Array.isArray(this.state.datas)){
|
687
687
|
const sData = [...this.state.datas];
|
688
688
|
sData[this.state.currentIndex] = currentData;
|
689
689
|
return this.setState({data:currentData,datas:sData},callback);
|
690
690
|
} else {
|
691
|
-
return this.setState({data:currentData},callback);
|
691
|
+
return this.setState({data:currentData,datas:[],hasManyData:false},callback);
|
692
692
|
}
|
693
693
|
}
|
694
694
|
doSave ({goBack,data,action}){
|