Skip to content

Commit 22b5da0

Browse files
authored
Merge pull request dcloudio#869 from 18148764734:master
fix: uni-popup-dialog输入值数据双向绑定初始化逻辑修正
2 parents b6f49fd + 39c7d7d commit 22b5da0

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Diff for: uni_modules/uni-popup/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.9.0(2024-03-28)
2+
- 修复 uni-popup-dialog 双向绑定时初始化逻辑修正
13
## 1.8.9(2024-03-20)
24
- 修复 uni-popup-dialog 数据输入时修正为双向绑定
35
## 1.8.8(2024-02-20)

Diff for: uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,12 @@
179179
// this.popup.closeMask()
180180
if (this.mode === 'input') {
181181
this.dialogType = 'info'
182-
this.val = this.value
182+
// #ifdef VUE2
183+
this.val = this.value;
184+
// #endif
185+
// #ifdef VUE3
186+
this.val = this.modelValue;
187+
// #endif
183188
} else {
184189
this.dialogType = this.type
185190
}
@@ -310,4 +315,4 @@
310315
.uni-popup__info {
311316
color: #909399;
312317
}
313-
</style>
318+
</style>

Diff for: uni_modules/uni-popup/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-popup",
33
"displayName": "uni-popup 弹出层",
4-
"version": "1.8.9",
4+
"version": "1.9.0",
55
"description": " Popup 组件,提供常用的弹层",
66
"keywords": [
77
"uni-ui",
@@ -46,7 +46,8 @@
4646
"platforms": {
4747
"cloud": {
4848
"tcb": "y",
49-
"aliyun": "y"
49+
"aliyun": "y",
50+
"alipay": "n"
5051
},
5152
"client": {
5253
"App": {

0 commit comments

Comments
 (0)