neo.mjs 6.1.4 → 6.1.5
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/apps/ServiceWorker.mjs +2 -2
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/tree/Accordion.mjs +20 -17
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -236,12 +236,12 @@ const DefaultConfig = {
|
|
236
236
|
useVdomWorker: true,
|
237
237
|
/**
|
238
238
|
* buildScripts/injectPackageVersion.mjs will update this value
|
239
|
-
* @default '6.1.
|
239
|
+
* @default '6.1.5'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '6.1.
|
244
|
+
version: '6.1.5'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/tree/Accordion.mjs
CHANGED
@@ -355,33 +355,36 @@ class AccordionTree extends TreeList {
|
|
355
355
|
/**
|
356
356
|
* Update a record
|
357
357
|
* @param {Object} data
|
358
|
-
* @param {Object} data.fields
|
358
|
+
* @param {Object[]} data.fields
|
359
359
|
* @param {Number} data.index
|
360
|
-
* @param {Model}
|
360
|
+
* @param {Neo.data.Model} data.model
|
361
361
|
* @param {Record} data.record
|
362
362
|
*/
|
363
363
|
onStoreRecordChange(data) {
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
364
|
+
let me = this,
|
365
|
+
record = data.record,
|
366
|
+
fields = data.fields,
|
367
|
+
itemId = me.getItemId(record[me.getKeyProperty()]),
|
368
|
+
vdom = me.getVdomChild(itemId),
|
369
|
+
itemVdom;
|
369
370
|
|
370
371
|
fields.forEach((field) => {
|
371
|
-
|
372
|
+
itemVdom = VDomUtil.getByFlag(vdom, field.name);
|
372
373
|
|
373
|
-
if (
|
374
|
-
|
375
|
-
|
374
|
+
if (itemVdom) {
|
375
|
+
if (field.name === 'iconCls') {
|
376
|
+
const clsItems = field.value.split(' '),
|
377
|
+
cls = ['neo-accordion-item-icon'];
|
376
378
|
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
379
|
+
NeoArray.add(cls, clsItems);
|
380
|
+
itemVdom.cls = cls;
|
381
|
+
} else {
|
382
|
+
itemVdom.html = field.value;
|
383
|
+
}
|
381
384
|
}
|
382
|
-
})
|
385
|
+
});
|
383
386
|
|
384
|
-
me.update()
|
387
|
+
me.update()
|
385
388
|
}
|
386
389
|
|
387
390
|
/**
|