Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-04-13 15:42:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
987bce3294a0889f01a631db9a46a783969e9309
987bce32
1 parent
f7fe8222
fix Uploader源文件修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
components.d.ts
src/components/FileUploaderField/Uploader.js
components.d.ts
View file @
987bce3
...
...
@@ -31,7 +31,6 @@ declare module '@vue/runtime-core' {
NutCell
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Cell'
]
NutCheckbox
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Checkbox'
]
NutCheckboxGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'CheckboxGroup'
]
NutCol
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Col'
]
NutConfigProvider
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ConfigProvider'
]
NutDatePicker
:
typeof
import
(
'@nutui/nutui-taro'
)[
'DatePicker'
]
NutDialog
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Dialog'
]
...
...
@@ -47,7 +46,6 @@ declare module '@vue/runtime-core' {
NutRadio
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Radio'
]
NutRadioGroup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'RadioGroup'
]
NutRate
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Rate'
]
NutRow
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Row'
]
NutSignature
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Signature'
]
NutSwiper
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Swiper'
]
NutSwiperItem
:
typeof
import
(
'@nutui/nutui-taro'
)[
'SwiperItem'
]
...
...
src/components/FileUploaderField/Uploader.js
View file @
987bce3
...
...
@@ -488,7 +488,10 @@ const _sfc_main = create({
if
(
file
.
size
>
maximize
)
{
oversizes
.
push
(
file
)
return
false
}
else
if
(
!
props
.
imageType
.
includes
(
file
.
type
))
{
}
else
if
(
props
.
imageType
.
length
&&
!
props
.
imageType
.
includes
(
file
.
type
)
)
{
// 控制文件类型上传
emit
(
'image-type-error'
,
file
.
type
)
return
false
...
...
Please
register
or
login
to post a comment