@onehat/ui 0.3.78 → 0.3.79
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
|
@@ -332,11 +332,10 @@ export function ComboComponent(props) {
|
|
|
332
332
|
const filterName = getFilterName();
|
|
333
333
|
if (Repository.hasFilter(filterName)) {
|
|
334
334
|
Repository.clearFilters(filterName);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
await Repository.reload();
|
|
335
|
+
if (Repository.isRemote) {
|
|
336
|
+
if (!this.isAutoLoad) {
|
|
337
|
+
await Repository.reload();
|
|
338
|
+
}
|
|
340
339
|
}
|
|
341
340
|
}
|
|
342
341
|
} else {
|
|
@@ -65,6 +65,9 @@ export default function GridRow(props) {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
let value;
|
|
68
|
+
if (_.isFunction(config)) {
|
|
69
|
+
return config(item, key);
|
|
70
|
+
}
|
|
68
71
|
if (_.isPlainObject(config)) {
|
|
69
72
|
if (config.renderer) {
|
|
70
73
|
const extraProps = _.omit(config, [
|
|
@@ -140,9 +143,6 @@ export default function GridRow(props) {
|
|
|
140
143
|
value = item[config];
|
|
141
144
|
}
|
|
142
145
|
}
|
|
143
|
-
if (_.isFunction(config)) {
|
|
144
|
-
value = config(item);
|
|
145
|
-
}
|
|
146
146
|
if (_.isFunction(value)) {
|
|
147
147
|
return value(key);
|
|
148
148
|
}
|