Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
8fd3d7f2
Commit
8fd3d7f2
authored
Sep 05, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片上传
parent
05d592ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/components/ImageUpload/index.vue
+9
-4
src/views/system/base/components/leftImg.vue
+1
-1
No files found.
src/components/ImageUpload/index.vue
View file @
8fd3d7f2
...
@@ -57,6 +57,10 @@ export default {
...
@@ -57,6 +57,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
tagValue
:
{
// 参数名为age
type
:
Number
,
default
:
1
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -198,10 +202,11 @@ export default {
...
@@ -198,10 +202,11 @@ export default {
if
(
this
.
arrType
)
{
if
(
this
.
arrType
)
{
return
strs
;
return
strs
;
}
}
// if (size == 1) {
if
(
this
.
tagValue
==
1
){
// return strs[0];
if
(
size
==
1
)
{
// }
return
strs
[
0
];
}
}
return
strs
;
return
strs
;
},
},
getDisable
(){
getDisable
(){
...
...
src/views/system/base/components/leftImg.vue
View file @
8fd3d7f2
<
template
>
<
template
>
<div
>
<div
>
<ImageUpload
@
callback=
"submit"
v-model=
"value"
/>
<ImageUpload
@
callback=
"submit"
v-model=
"value"
:tagValue=
"2"
/>
</div>
</div>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment