@dolphinweex/weex-vue-render 0.2.25 → 0.2.26
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 +19 -3
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5944,7 +5944,7 @@ var scrollable$1 = {
|
|
|
5944
5944
|
reachBottom: function reachBottom (offset) {
|
|
5945
5945
|
var wrapper = this.$refs.wrapper;
|
|
5946
5946
|
var inner = this.$refs.inner;
|
|
5947
|
-
offset = parseInt(offset ||
|
|
5947
|
+
offset = parseInt(offset || 10) * weex.config.env.scale;
|
|
5948
5948
|
|
|
5949
5949
|
if (wrapper && inner) {
|
|
5950
5950
|
var key = this.scrollDirection === 'horizontal'
|
|
@@ -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 align-items: flex-start !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-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);
|
|
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 align-items: flex-start !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
|
|
@@ -7423,6 +7423,22 @@ var INTERVAL_MINIMUM = 200;
|
|
|
7423
7423
|
var touchSliderInstance = null;
|
|
7424
7424
|
|
|
7425
7425
|
var slideMixin = {
|
|
7426
|
+
props: {
|
|
7427
|
+
scrollable: {
|
|
7428
|
+
type: [Boolean],
|
|
7429
|
+
default: true
|
|
7430
|
+
}
|
|
7431
|
+
},
|
|
7432
|
+
computed: {
|
|
7433
|
+
wrapperClass: function wrapperClass () {
|
|
7434
|
+
var classArray = ['weex-slider weex-slider-wrapper weex-ct'];
|
|
7435
|
+
if (!this.scrollable) {
|
|
7436
|
+
classArray.push('weex-slider-disabled');
|
|
7437
|
+
}
|
|
7438
|
+
|
|
7439
|
+
return classArray.join(' ')
|
|
7440
|
+
}
|
|
7441
|
+
},
|
|
7426
7442
|
created: function created () {
|
|
7427
7443
|
this._clones = [];
|
|
7428
7444
|
this.innerOffset = 0;
|
|
@@ -7563,7 +7579,7 @@ var slideMixin = {
|
|
|
7563
7579
|
touchend: this._handleTouchEnd,
|
|
7564
7580
|
touchcancel: this._handleTouchCancel
|
|
7565
7581
|
},
|
|
7566
|
-
staticClass:
|
|
7582
|
+
staticClass: this.wrapperClass,
|
|
7567
7583
|
staticStyle: weex.extractComponentStyle(this)
|
|
7568
7584
|
},
|
|
7569
7585
|
[
|
package/package.json
CHANGED