@dolphinweex/weex-vue-render 0.2.13 → 0.2.16

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.
@@ -5468,6 +5468,12 @@ function getInput (weex) {
5468
5468
  returnKeyType: String
5469
5469
  },
5470
5470
 
5471
+ mounted: function mounted () {
5472
+ if (this.autofocus !== 'false' && this.autofocus !== false) {
5473
+ this.focus()
5474
+ }
5475
+ },
5476
+
5471
5477
  render: function render (createElement) {
5472
5478
  if (!this._id) {
5473
5479
  this._id = idCount++;
@@ -6126,7 +6132,8 @@ function getList (weex) {
6126
6132
  createChildren: function createChildren (h) {
6127
6133
  var slots = this.$slots.default || [];
6128
6134
  this._cells = slots.filter(function (vnode) {
6129
- if (!vnode.tag && !vnode.componentOptions) { return false }
6135
+ const trimmedText = vnode.text&&vnode.text.replace(/\s+/g, '').trim();
6136
+ if (!vnode.tag && !trimmedText) { return false }
6130
6137
  return true
6131
6138
  });
6132
6139
  return [
@@ -6244,7 +6251,8 @@ function getScroller (weex) {
6244
6251
  createChildren: function createChildren (h) {
6245
6252
  var slots = this.$slots.default || [];
6246
6253
  this._cells = slots.filter(function (vnode) {
6247
- if (!vnode.tag && !vnode.componentOptions) { return false }
6254
+ const trimmedText = vnode.text&&vnode.text.replace(/\s+/g, '').trim();
6255
+ if (!vnode.tag && !trimmedText) { return false }
6248
6256
  return true
6249
6257
  });
6250
6258
  return [
@@ -7558,7 +7566,7 @@ var slideMixin = {
7558
7566
  this._preIndex = this._showNodes[0].index;
7559
7567
  }
7560
7568
  else {
7561
- this._preIndex = this.currentIndex;
7569
+ this._preIndex = 0;
7562
7570
  }
7563
7571
  }
7564
7572
 
@@ -7576,7 +7584,7 @@ var slideMixin = {
7576
7584
  var translate = weex.utils.getTransformObj(inner).translate;
7577
7585
  var match = translate && translate.match(/translate[^(]+\(([+-\d.]+)/);
7578
7586
  var innerX = parseFloat(inner.style.left); //match && match[1] || 0;
7579
- var dist = innerX - this.innerOffset;
7587
+ var dist = innerX - this.innerOffset + step; // 点击的时候是没有滚动距离的会导致没有差值,所以这里需要使用上一个下标-下一个下标得到差值这样才能有变化然后进行滚动方向判断
7580
7588
  this.innerOffset += step * this._wrapperWidth;
7581
7589
  // transform the whole slides group.
7582
7590
 
@@ -8531,6 +8539,12 @@ function getTextarea (weex) {
8531
8539
  returnKeyType: String
8532
8540
  },
8533
8541
 
8542
+ mounted: function mounted () {
8543
+ if (this.autofocus !== 'false' && this.autofocus !== false) {
8544
+ this.focus()
8545
+ }
8546
+ },
8547
+
8534
8548
  render: function render (createElement) {
8535
8549
  /* istanbul ignore next */
8536
8550
  // if ("production" === 'development') {
@@ -10248,6 +10262,7 @@ var dom = {
10248
10262
  }
10249
10263
  }
10250
10264
  var styleText = "@" + key + "{" + stylesText + "}";
10265
+ styleText = styleText.replace('local://', 'arkweb://');
10251
10266
  appendCss(styleText, 'dom-added-rules');
10252
10267
  }
10253
10268
  };
package/dist/index.js CHANGED
@@ -9884,6 +9884,7 @@ var dom = {
9884
9884
  }
9885
9885
  }
9886
9886
  var styleText = "@" + key + "{" + stylesText + "}";
9887
+ styleText = styleText.replace('local://', 'arkweb://');
9887
9888
  appendCss(styleText, 'dom-added-rules');
9888
9889
  }
9889
9890
  };
package/package.json CHANGED
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+ssh://git@github.com/weexteam/weex-vue-render.git"
51
51
  },
52
- "version": "0.2.13"
52
+ "version": "0.2.16"
53
53
  }