efront 3.12.1 → 3.12.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.
@@ -927,6 +927,7 @@ var data = {
927
927
  setSource(sourceid, value) {
928
928
  var rememberWithStorage;
929
929
  if (isObject(sourceid)) {
930
+
930
931
  this.rebuildInstance(dataSourceMap, sourceid);
931
932
  rememberWithStorage = value;
932
933
  } else {
@@ -975,7 +976,7 @@ var data = {
975
976
  if (key === true || key === false || isEmpty(key)) {
976
977
  rememberWithStorage = key;
977
978
  key = null;
978
- var value = instance;
979
+ var value = instance.valueOf();
979
980
  } else {
980
981
  var value = instance[key];
981
982
  }
@@ -107,7 +107,6 @@ function ylist(container, generator, $Y) {
107
107
  return map;
108
108
  };
109
109
  var createItem = function (index) {
110
- console.log(index)
111
110
  var item = generator(index);
112
111
  if (item) {
113
112
  item.index = index;
@@ -402,7 +401,7 @@ function ylist(container, generator, $Y) {
402
401
  var firstElement = getFirstVisibleElement();
403
402
  if (!firstElement) return saved_itemIndex;
404
403
  var index = firstElement.index;
405
- var scrolled = (list.scrollTop - firstElement.offsetTop + parseFloat(getComputedStyle(list).paddingTop)) / firstElement.offsetHeight;
404
+ var scrolled = (list.scrollTop - firstElement.offsetTop + parseFloat(getComputedStyle(list).paddingTop) + .5 | 0) / firstElement.offsetHeight;
406
405
  return index + scrolled;
407
406
  };
408
407
  on("remove")(list, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.12.1",
3
+ "version": "3.12.2",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {