feat: 新增选择文件上传功能,优化部分代码实现
This commit is contained in:
1 parent
60477a9112
commit
fda693326e
11 files changed
+292
-71
No files matched your search
@@ -24,6 +24,7 @@ const _resolve = ref()
|
||||
type popupConfigType = {
|
||||
title: string
|
||||
content?: string
|
||||
inputValue?: string,
|
||||
inputProps?: InputProps
|
||||
options: {
|
||||
label: string
|
||||
@@ -36,6 +37,7 @@ const popupConfig = ref<popupConfigType>()
|
||||
|
||||
const popup = async (config: popupConfigType) => {
|
||||
popupConfig.value = config
|
||||
inputValue.value = config.inputValue ?? ''
|
||||
showMask.value = true
|
||||
const key = await new Promise((resolve: (key: unknown) => unknown) => {
|
||||
_resolve.value = resolve
|
||||
|
||||
Reference in new issue
Block a user