@dolphinweex/weex-vue-render 0.2.28 → 0.2.29
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/dist/index.common.js +4 -6
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -6909,7 +6909,7 @@ function getLoading () {
|
|
|
6909
6909
|
height: function height (val) {
|
|
6910
6910
|
var offset = val + "px";
|
|
6911
6911
|
this.$el.style.height = offset;
|
|
6912
|
-
this.$el.style.bottom =
|
|
6912
|
+
this.$el.style.bottom = 0;
|
|
6913
6913
|
},
|
|
6914
6914
|
display: function display (val) {
|
|
6915
6915
|
if (val === 'hide') {
|
|
@@ -7353,7 +7353,7 @@ var recycleList = {
|
|
|
7353
7353
|
}
|
|
7354
7354
|
};
|
|
7355
7355
|
|
|
7356
|
-
__$styleInject("/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nbody > .weex-list,\nbody > .weex-recycle,\nbody > .weex-scroller,\nbody > .weex-waterfall {\n max-height: 100%;\n}\n\n.weex-list-wrapper,\n.weex-recycle-wrapper,\n.weex-scroller-wrapper,\n.weex-waterfall-wrapper {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-list-wrapper,\n.weex-waterfall-wrapper, \n.weex-recycle-wrapper {\n overflow-y: scroll !important;\n overflow-x: hidden !important;\n
|
|
7356
|
+
__$styleInject("/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nbody > .weex-list,\nbody > .weex-recycle,\nbody > .weex-scroller,\nbody > .weex-waterfall {\n max-height: 100%;\n}\n\n.weex-list-wrapper,\n.weex-recycle-wrapper,\n.weex-scroller-wrapper,\n.weex-waterfall-wrapper {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-list-wrapper,\n.weex-waterfall-wrapper, \n.weex-recycle-wrapper {\n overflow-y: scroll !important;\n overflow-x: hidden !important;\n justify-content: flex-start !important;\n max-width: 100vw; \n}\n\n.weex-list-inner,\n.weex-recycle-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n -webkit-overflow-scrolling: touch;\n align-items: inherit; \n flex:1; \n}\n\n.weex-waterfall-inner-columns { \n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n max-width: 100vw; \n}\n\n.weex-scroller-wrapper.weex-scroller-vertical,\n.weex-recycle-wrapper.weex-recycle-vertical {\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.weex-scroller-wrapper.weex-scroller-horizontal,\n.weex-recycle-wrapper.weex-recycle-horizontal {\n overflow-x: scroll;\n overflow-y: hidden;\n}\n\n.weex-scroller-wrapper.weex-scroller-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-slider-wrapper.weex-slider-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-list-wrapper.weex-list-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-recycle-wrapper.weex-recycle-disabled {\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n}\n\n.weex-scroller-horizontal .weex-scroller-inner,\n.weex-recycle-horizontal .weex-recycle-inner {\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\n height: 100%;\n}\n\n.weex-cell {\n width: 100%;\n}\n\n.weex-refresh,\n.weex-loading {\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n width: 100%;\n overflow: hidden;\n}\n",undefined);
|
|
7357
7357
|
|
|
7358
7358
|
/*
|
|
7359
7359
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@@ -7596,7 +7596,6 @@ var slideMixin = {
|
|
|
7596
7596
|
|
|
7597
7597
|
_slideTo: function _slideTo(index, isTouchScroll) {
|
|
7598
7598
|
var this$1 = this;
|
|
7599
|
-
|
|
7600
7599
|
if (this.frameCount <= 0) {
|
|
7601
7600
|
return;
|
|
7602
7601
|
}
|
|
@@ -8120,7 +8119,7 @@ var slideMixin = {
|
|
|
8120
8119
|
},
|
|
8121
8120
|
|
|
8122
8121
|
_handleTouchStart: function _handleTouchStart (event) {
|
|
8123
|
-
if (!this.scrollable) {
|
|
8122
|
+
if (!this.scrollable || this.frameCount<=1) {
|
|
8124
8123
|
return // 🚫 禁止滚动行为
|
|
8125
8124
|
}
|
|
8126
8125
|
var touch = event.changedTouches[0];
|
|
@@ -8183,7 +8182,6 @@ var slideMixin = {
|
|
|
8183
8182
|
lastNode.style.position = 'absolute';
|
|
8184
8183
|
lastNode.style.left = `-${this._wrapperWidth}px`;
|
|
8185
8184
|
lastNode.style.opacity = '1';
|
|
8186
|
-
lastNode.style.zIndex = '10';
|
|
8187
8185
|
} else if (atLast && isLeftSwipe) {
|
|
8188
8186
|
// 从最后一张向左滑到第一张
|
|
8189
8187
|
var firstNode = this._cells[0].elm;
|
|
@@ -8191,7 +8189,6 @@ var slideMixin = {
|
|
|
8191
8189
|
cloneNode.style.position = 'absolute';
|
|
8192
8190
|
cloneNode.style.left = `${this.frameCount * this._wrapperWidth}px`;
|
|
8193
8191
|
cloneNode.style.width = `${this._wrapperWidth}px`;
|
|
8194
|
-
cloneNode.style.zIndex = '10';
|
|
8195
8192
|
inner.appendChild(cloneNode);
|
|
8196
8193
|
tp.cloneNode = cloneNode;
|
|
8197
8194
|
}
|
|
@@ -8358,6 +8355,7 @@ var slider$1 = {
|
|
|
8358
8355
|
watch: {
|
|
8359
8356
|
index: function index () {
|
|
8360
8357
|
this.currentIndex = this._normalizeIndex(this.index);
|
|
8358
|
+
console.log('cdj----index',this.infinite,this.currentIndex)
|
|
8361
8359
|
}
|
|
8362
8360
|
},
|
|
8363
8361
|
|
package/package.json
CHANGED