uview-plus 3.3.2 → 3.3.4
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/changelog.md
CHANGED
|
@@ -151,8 +151,9 @@ export default {
|
|
|
151
151
|
modelValue: {
|
|
152
152
|
immediate: true,
|
|
153
153
|
handler(newVal, oldVal) {
|
|
154
|
-
console.log(newVal, oldVal)
|
|
154
|
+
// console.log(newVal, oldVal)
|
|
155
155
|
if (this.changeFromInner || this.innerValue === newVal) {
|
|
156
|
+
this.changeFromInner = false; // 重要否则会出现双向绑定失效问题https://github.com/ijry/uview-plus/issues/419
|
|
156
157
|
return;
|
|
157
158
|
}
|
|
158
159
|
this.innerValue = newVal;
|
|
@@ -161,7 +162,7 @@ export default {
|
|
|
161
162
|
this.firstChange === false &&
|
|
162
163
|
this.changeFromInner === false
|
|
163
164
|
) {
|
|
164
|
-
this.valueChange(this.innerValue);
|
|
165
|
+
this.valueChange(this.innerValue, true);
|
|
165
166
|
} else {
|
|
166
167
|
// 尝试调用up-form的验证方法
|
|
167
168
|
if(!this.firstChange) formValidate(this, "change");
|
package/libs/mixin/button.js
CHANGED
package/libs/mixin/mpMixin.js
CHANGED
package/libs/mixin/mpShare.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineMixin } from '../vue'
|
|
2
|
-
|
|
2
|
+
import { queryParams } from '../function/index'
|
|
3
3
|
export const mpShare = defineMixin({
|
|
4
4
|
data() {
|
|
5
5
|
return {
|
|
@@ -10,7 +10,15 @@ export const mpShare = defineMixin({
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
async onLoad(options) {
|
|
14
|
+
var pages = getCurrentPages();
|
|
15
|
+
var page = pages[pages.length - 1];
|
|
16
|
+
this.mpShare.path = page.route + queryParams(options);
|
|
17
|
+
},
|
|
18
|
+
onShareAppMessage(res) {
|
|
19
|
+
if (res.from === 'button') {// 来自页面内分享按钮
|
|
20
|
+
console.log(res.target)
|
|
21
|
+
}
|
|
14
22
|
return this.mpShare;
|
|
15
23
|
}
|
|
16
24
|
})
|