Skip to content

Commit b21b7f8

Browse files
mehaotianFasttian
authored andcommitted
修复 错误的 watch 字段 #313
1 parent 4d8fce4 commit b21b7f8

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

uni_modules/uni-file-picker/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.0.8
2+
- 修复 删除文件时无法触发 v-model 的Bug
13
## 0.0.7(2021-05-12)
24
- 新增 组件示例地址
35
## 0.0.6(2021-04-09)

uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</template>
4141

4242
<script>
43-
import { chooseAndUploadFile } from './choose-and-upload-file.js'
43+
4444
import uploadImage from './upload-image.vue'
4545
import uploadFile from './upload-file.vue'
4646
let fileInput = null
@@ -294,10 +294,6 @@ export default {
294294
* 选择文件并上传
295295
*/
296296
chooseFiles() {
297-
// API 正式发布前,使用本地API上传函数
298-
if (!uniCloud.chooseAndUploadFile) {
299-
uniCloud.chooseAndUploadFile = chooseAndUploadFile
300-
}
301297
302298
uniCloud
303299
.chooseAndUploadFile({
@@ -468,7 +464,10 @@ export default {
468464
tempFile: this.files[index],
469465
tempFilePath: this.files[index].url
470466
})
471-
this.files.splice(index, 1)
467+
this.files.splice(index, 1)
468+
this.$nextTick(()=>{
469+
this.setEmit()
470+
})
472471
},
473472
474473
/**

uni_modules/uni-popup/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.4.3
2+
- 修复 错误的 watch 字段
13
## 1.4.2(2021-05-12)
24
- 新增 组件示例地址
35
## 1.4.1(2021-04-29)

uni_modules/uni-popup/components/uni-popup/uni-popup.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969
safeArea:{
7070
type: Boolean,
7171
default: true
72-
}
72+
}
7373
},
7474
7575
watch: {
@@ -99,10 +99,6 @@ export default {
9999
this.mkclick = val
100100
},
101101
immediate: true
102-
},
103-
safeArea: {
104-
type: Boolean,
105-
default: true
106102
}
107103
},
108104
data() {

0 commit comments

Comments
 (0)