Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
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
何虹
hs-sky-ui
Commits
e4d2d4da
Commit
e4d2d4da
authored
Jan 23, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化item:0,select-list中弹出框
parent
7f8a72bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
child.vue
src/packages/hs-select-list/src/child.vue
+11
-8
child.vue
src/packages/hs-select-plus/src/child.vue
+2
-0
No files found.
src/packages/hs-select-list/src/child.vue
View file @
e4d2d4da
...
...
@@ -18,11 +18,12 @@
></el-button>
</el-input>
</div>
<hs-dialog
<hs-dialog
@
open=
'openDialog'
ref=
'hsDialog'
:visible=
'dialogTableVisible'
:config=
'dialogConfig'
@
close=
'handl
eClose'
:visible=
'dialogTableVisible'
:config=
'dialogConfig'
@
close=
'befor
eClose'
>
<div
slot=
"body"
>
<div
class=
"contentBox"
>
...
...
@@ -378,7 +379,9 @@ export default {
}
},
methods
:
{
handleClose
()
{},
handleClose
()
{
this
.
dialogTableVisible
=
false
},
/**
* 数据导入 item 当前点击的按钮
* @param {*} item
...
...
@@ -770,8 +773,8 @@ export default {
.boxInputButton
{
display
:
flex
;
}
.cacelSubmit
{
display
:
flex
;
justify-content
:
center
;
.cacelSubmit
{
display
:
flex
;
justify-content
:
center
;
}
</
style
>
src/packages/hs-select-plus/src/child.vue
View file @
e4d2d4da
...
...
@@ -164,6 +164,7 @@ export default {
// 设置选中第一项
if
(
this
.
options_
.
length
)
{
const
item0
=
this
.
options_
[
0
]
this
.
writebackfieldFun
(
item0
.
value
)
// 设置回写
this
.
$emit
(
'input'
,
item0
.
value
)
return
item0
.
label
}
else
{
...
...
@@ -221,6 +222,7 @@ export default {
// 把这个任务推到宏任务,在options_初始化完之后再执行下面代码!!!!
if
(
this
.
options_
.
length
)
{
const
item0
=
this
.
options_
[
0
]
this
.
writebackfieldFun
(
item0
.
value
)
// 设置回写
this
.
$emit
(
'input'
,
item0
.
value
)
return
item0
.
label
}
else
{
...
...
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