@dcloudio/uni-cli-shared 2.0.2-alpha-3061520221222001 → 2.0.2-alpha-3061620221230001
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/components/page-meta.vue +18 -16
- package/package.json +2 -2
package/components/page-meta.vue
CHANGED
|
@@ -53,10 +53,10 @@ export default {
|
|
|
53
53
|
pageStyle: {
|
|
54
54
|
type: String,
|
|
55
55
|
default: ''
|
|
56
|
-
},
|
|
57
|
-
enablePullDownRefresh: {
|
|
58
|
-
type: [Boolean, String],
|
|
59
|
-
default: false
|
|
56
|
+
},
|
|
57
|
+
enablePullDownRefresh: {
|
|
58
|
+
type: [Boolean, String],
|
|
59
|
+
default: false
|
|
60
60
|
},
|
|
61
61
|
rootFontSize: {
|
|
62
62
|
type: String,
|
|
@@ -81,8 +81,8 @@ export default {
|
|
|
81
81
|
// 父节点一定是 page
|
|
82
82
|
this.$pageVm.$on('hook:onPageScroll', evt => {
|
|
83
83
|
this.$emit('scroll', evt)
|
|
84
|
-
})
|
|
85
|
-
|
|
84
|
+
})
|
|
85
|
+
|
|
86
86
|
// #ifdef APP-PLUS
|
|
87
87
|
this._currentWebview = page.$getAppWebview()
|
|
88
88
|
if (this.enablePullDownRefresh) {
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
}
|
|
91
91
|
this.$watch('enablePullDownRefresh', (val) => {
|
|
92
92
|
this.setPullDownRefresh(this._currentWebview, val)
|
|
93
|
-
})
|
|
93
|
+
})
|
|
94
94
|
// #endif
|
|
95
95
|
|
|
96
96
|
// props
|
|
@@ -124,16 +124,18 @@ export default {
|
|
|
124
124
|
this.setPageMeta()
|
|
125
125
|
}
|
|
126
126
|
this.backgroundTextStyle && this.setBackgroundTextStyle()
|
|
127
|
+
},
|
|
128
|
+
mounted () {
|
|
127
129
|
this.scrollTop && this.pageScrollTo()
|
|
128
130
|
},
|
|
129
|
-
methods: {
|
|
130
|
-
setPullDownRefresh (webview, enabled) {
|
|
131
|
-
webview.setStyle({
|
|
132
|
-
pullToRefresh: {
|
|
133
|
-
support: enabled,
|
|
134
|
-
style: plus.os.name === 'Android' ? 'circle' : 'default'
|
|
135
|
-
}
|
|
136
|
-
})
|
|
131
|
+
methods: {
|
|
132
|
+
setPullDownRefresh (webview, enabled) {
|
|
133
|
+
webview.setStyle({
|
|
134
|
+
pullToRefresh: {
|
|
135
|
+
support: enabled,
|
|
136
|
+
style: plus.os.name === 'Android' ? 'circle' : 'default'
|
|
137
|
+
}
|
|
138
|
+
})
|
|
137
139
|
},
|
|
138
140
|
setPageMeta () {
|
|
139
141
|
// h5 和 app-plus 设置 rootFontSize
|
|
@@ -187,4 +189,4 @@ export default {
|
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
191
|
}
|
|
190
|
-
</script>
|
|
192
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-3061620221230001",
|
|
4
4
|
"description": "uni-cli-shared",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"postcss-urlrewrite": "^0.2.2",
|
|
27
27
|
"strip-json-comments": "^2.0.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "10e12e5714473a9f21b146712c47d37d9e07172e"
|
|
30
30
|
}
|