neo.mjs 3.0.4 → 3.0.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.
|
@@ -36,7 +36,7 @@ class List extends BaseList {
|
|
|
36
36
|
|
|
37
37
|
return [
|
|
38
38
|
{cls: ['neo-list-item-content'], id: `${id}__content`, cn: [
|
|
39
|
-
{tag: 'img', id: `${id}__image`, src:
|
|
39
|
+
{tag: 'img', id: `${id}__image`, src: `${Neo.config.resourcesPath}examples/${record.image}`},
|
|
40
40
|
{cls: ['neo-list-item-text'], id: `${id}__content_wrapper`, cn: [
|
|
41
41
|
{html: record.firstname, id: `${id}__firstname`},
|
|
42
42
|
{cls: ['neo-lastname'], id: `${id}__lastname`, html: record.lastname},
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import Base
|
|
2
|
-
import CssUtil
|
|
3
|
-
import VdomUtil from '../../util/VDom.mjs';
|
|
1
|
+
import Base from '../../plugin/Base.mjs';
|
|
2
|
+
import CssUtil from '../../util/Css.mjs';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @class Neo.list.plugin.Animate
|
|
@@ -46,7 +45,7 @@ class Animate extends Base {
|
|
|
46
45
|
* Time in ms. Please ensure to match the CSS based value, in case you change the default.
|
|
47
46
|
* @member {Number} transitionDuration_=500
|
|
48
47
|
*/
|
|
49
|
-
transitionDuration_:
|
|
48
|
+
transitionDuration_: 500,
|
|
50
49
|
/**
|
|
51
50
|
* The id of the setTimeout() call which gets triggered after a transition is done.
|
|
52
51
|
* @member {Number|null} transitionTimeoutId=null
|
|
@@ -198,7 +197,7 @@ class Animate extends Base {
|
|
|
198
197
|
transitionTimeoutId = me.transitionTimeoutId,
|
|
199
198
|
intercept = !!transitionTimeoutId,
|
|
200
199
|
vdom = owner.vdom,
|
|
201
|
-
index, item, map, position
|
|
200
|
+
index, item, map, position;
|
|
202
201
|
|
|
203
202
|
if (transitionTimeoutId) {
|
|
204
203
|
clearTimeout(transitionTimeoutId);
|
|
@@ -324,12 +323,12 @@ class Animate extends Base {
|
|
|
324
323
|
if (hasChange) {
|
|
325
324
|
owner.vdom.cn = newVdomCn;
|
|
326
325
|
|
|
327
|
-
owner.
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
});
|
|
326
|
+
owner.vdom = vdom;
|
|
327
|
+
|
|
328
|
+
// we need to ensure to get this call into the next animation frame
|
|
329
|
+
setTimeout(() => {
|
|
330
|
+
owner.createItems();
|
|
331
|
+
}, 50);
|
|
333
332
|
}
|
|
334
333
|
}
|
|
335
334
|
}
|