From b66ae396a51ffa97d9dfef5df26ae92950226c51 Mon Sep 17 00:00:00 2001 From: huaiyuan <1029848564@qq.com> Date: Wed, 28 Aug 2024 16:04:42 +0800 Subject: [PATCH] fix: uploader add @update --- .eslintcache | 2 +- package.json | 2 +- packages/uploader/src/index.vue | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintcache b/.eslintcache index ce0f3d7..d32b0da 100644 --- a/.eslintcache +++ b/.eslintcache @@ -1 +1 @@ -[{"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js":"1","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js":"2"},{"size":417,"mtime":1708665840961,"results":"3","hashOfConfig":"4"},{"size":907,"mtime":1709701996464,"results":"5","hashOfConfig":"6"},{"filePath":"7","messages":"8","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ikje9p",{"filePath":"9","messages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"xoj03z","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js",[],"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js",[]] \ No newline at end of file +[{"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js":"1","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js":"2","/Users/zhaohuaiyuan/Desktop/beclab/ui/packages/VueDragResize/src/vue-drag-resize.js":"3"},{"size":417,"mtime":1708665840961,"results":"4","hashOfConfig":"5"},{"size":907,"mtime":1709701996464,"results":"6","hashOfConfig":"7"},{"size":19524,"mtime":1721109672612,"results":"8","hashOfConfig":"9"},{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ikje9p",{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"xoj03z",{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"pi1hu5","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js",[],"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js",[],"/Users/zhaohuaiyuan/Desktop/beclab/ui/packages/VueDragResize/src/vue-drag-resize.js",[]] \ No newline at end of file diff --git a/package.json b/package.json index 4c0c9fb..7a507c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bytetrade/ui", - "version": "0.1.17", + "version": "0.1.18", "private": false, "scripts": { "serve": "vue-cli-service serve", diff --git a/packages/uploader/src/index.vue b/packages/uploader/src/index.vue index 9400c78..666569f 100644 --- a/packages/uploader/src/index.vue +++ b/packages/uploader/src/index.vue @@ -118,10 +118,12 @@ export default defineComponent({ .then(function (response) { context.emit('ok', response.data); showCropper.value = false; + context.emit('update:model-value', false); }) .catch(function (response) { context.emit('fail', response.data); showCropper.value = false; + context.emit('update:model-value', false); }) } @@ -166,6 +168,7 @@ export default defineComponent({ const uploadImg = async (file: string) => { uploadFile.value = file; + context.emit('update:model-value', true); factoryFn(); }