@dolphinweex/weex-vue-render 0.2.2 → 0.2.3
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 +32 -9
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -3989,8 +3989,8 @@ function initEnv (viewportInfo, envInfo) {
|
|
|
3989
3989
|
isFullScreen: device_display.isFullScreen,
|
|
3990
3990
|
weexVersion: device_display.weexVersion,
|
|
3991
3991
|
osName: device_display.osName,
|
|
3992
|
-
statusBarHeight: device_display.statusBarHeight,
|
|
3993
|
-
safeAreaBottomHeight: device_display.safeAreaBottomHeight,
|
|
3992
|
+
statusBarHeight: device_display.statusBarHeight * device_display.scale,
|
|
3993
|
+
safeAreaBottomHeight: device_display.safeAreaBottomHeight * device_display.scale,
|
|
3994
3994
|
isImmersion: device_display.isImmersion,
|
|
3995
3995
|
|
|
3996
3996
|
};
|
|
@@ -5665,6 +5665,8 @@ var DEFAULT_LOADMORE_OFFSET = 0;
|
|
|
5665
5665
|
|
|
5666
5666
|
function getThrottledScroll (context) {
|
|
5667
5667
|
var scale = weex.config.env.scale;
|
|
5668
|
+
var rate = 750 / document.documentElement.clientWidth // 750设计稿放缩倍率
|
|
5669
|
+
|
|
5668
5670
|
if (!context._throttleScroll) {
|
|
5669
5671
|
var wrapper = context.$refs.wrapper;
|
|
5670
5672
|
var inner = context.$refs.inner;
|
|
@@ -5695,7 +5697,7 @@ function getThrottledScroll (context) {
|
|
|
5695
5697
|
* v y
|
|
5696
5698
|
*
|
|
5697
5699
|
*/
|
|
5698
|
-
y: -wrapper.scrollTop
|
|
5700
|
+
y: -wrapper.scrollTop * rate
|
|
5699
5701
|
}
|
|
5700
5702
|
};
|
|
5701
5703
|
if (context.$el) {
|
|
@@ -6095,7 +6097,12 @@ function getList (weex) {
|
|
|
6095
6097
|
mounted: function mounted () {
|
|
6096
6098
|
var this$1 = this;
|
|
6097
6099
|
setTimeout(() => {
|
|
6098
|
-
|
|
6100
|
+
var computedStyle = window.getComputedStyle(this$1.$el)
|
|
6101
|
+
var paddingTop = parseFloat(computedStyle.paddingTop)
|
|
6102
|
+
var paddingBottom = parseFloat(computedStyle.paddingBottom)
|
|
6103
|
+
var height = parseFloat(computedStyle.height)
|
|
6104
|
+
|
|
6105
|
+
if (height - paddingTop - paddingBottom <= 1) {
|
|
6099
6106
|
this$1.$el.classList.remove("height-0");
|
|
6100
6107
|
}
|
|
6101
6108
|
}, 0);
|
|
@@ -6110,7 +6117,10 @@ function getList (weex) {
|
|
|
6110
6117
|
return [
|
|
6111
6118
|
h('article', {
|
|
6112
6119
|
ref: 'inner',
|
|
6113
|
-
staticClass: 'weex-list-inner weex-ct'
|
|
6120
|
+
staticClass: 'weex-list-inner weex-ct',
|
|
6121
|
+
staticStyle: {
|
|
6122
|
+
width: "100%"
|
|
6123
|
+
}
|
|
6114
6124
|
}, this._cells)
|
|
6115
6125
|
]
|
|
6116
6126
|
}
|
|
@@ -6188,7 +6198,12 @@ function getScroller (weex) {
|
|
|
6188
6198
|
mounted: function mounted () {
|
|
6189
6199
|
var this$1 = this;
|
|
6190
6200
|
setTimeout(() => {
|
|
6191
|
-
|
|
6201
|
+
var computedStyle = window.getComputedStyle(this$1.$el)
|
|
6202
|
+
var paddingTop = parseFloat(computedStyle.paddingTop)
|
|
6203
|
+
var paddingBottom = parseFloat(computedStyle.paddingBottom)
|
|
6204
|
+
var height = parseFloat(computedStyle.height)
|
|
6205
|
+
|
|
6206
|
+
if (height - paddingTop - paddingBottom <= 1) {
|
|
6192
6207
|
this$1.$el.classList.remove("height-0");
|
|
6193
6208
|
}
|
|
6194
6209
|
}, 0);
|
|
@@ -7101,7 +7116,12 @@ function getList$1 (weex) {
|
|
|
7101
7116
|
mounted: function mounted () {
|
|
7102
7117
|
var this$1 = this;
|
|
7103
7118
|
setTimeout(() => {
|
|
7104
|
-
|
|
7119
|
+
var computedStyle = window.getComputedStyle(this$1.$el)
|
|
7120
|
+
var paddingTop = parseFloat(computedStyle.paddingTop)
|
|
7121
|
+
var paddingBottom = parseFloat(computedStyle.paddingBottom)
|
|
7122
|
+
var height = parseFloat(computedStyle.height)
|
|
7123
|
+
|
|
7124
|
+
if (height - paddingTop - paddingBottom <= 1) {
|
|
7105
7125
|
this$1.$el.classList.remove("height-0");
|
|
7106
7126
|
}
|
|
7107
7127
|
}, 0);
|
|
@@ -7128,7 +7148,10 @@ function getList$1 (weex) {
|
|
|
7128
7148
|
return [
|
|
7129
7149
|
h('article', {
|
|
7130
7150
|
ref: 'inner',
|
|
7131
|
-
staticClass: 'weex-recycle-inner weex-ct'
|
|
7151
|
+
staticClass: 'weex-recycle-inner weex-ct',
|
|
7152
|
+
staticStyle: {
|
|
7153
|
+
width: this.scrollDirection == 'vertical' ? "100%" : undefined,
|
|
7154
|
+
}
|
|
7132
7155
|
}, [
|
|
7133
7156
|
_vm._l(_vm._items, function (item, index) {
|
|
7134
7157
|
return [
|
|
@@ -7182,7 +7205,7 @@ var recycleList = {
|
|
|
7182
7205
|
}
|
|
7183
7206
|
};
|
|
7184
7207
|
|
|
7185
|
-
__$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 overflow-y: scroll !important;\n overflow-x: hidden !important;\n}\n\n.weex-list-inner,\n.weex-recycle-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-waterfall-inner-columns {\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\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;\n overflow-y: hidden;\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);
|
|
7208
|
+
__$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}\n\n.weex-list-inner,\n.weex-recycle-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n -webkit-overflow-scrolling: touch;\n}\n\n.weex-waterfall-inner-columns {\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-box-orient: horizontal;\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;\n overflow-y: hidden;\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);
|
|
7186
7209
|
|
|
7187
7210
|
/*
|
|
7188
7211
|
* Licensed to the Apache Software Foundation (ASF) under one
|
package/package.json
CHANGED