Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
5352f31f
Commit
5352f31f
authored
Oct 17, 2016
by
Leopoldthecoder
Committed by
cinwell.li
Oct 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix multiple remote select's default value issue
parent
4495877d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
packages/select/src/select.vue
packages/select/src/select.vue
+8
-0
No files found.
CHANGELOG.md
View file @
5352f31f
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
-
修复 DatePicker 弹出框样式溢出边框 #318
-
修复 DatePicker 弹出框样式溢出边框 #318
-
新增 Input 图标的点击事件 #444
-
新增 Input 图标的点击事件 #444
-
修复 Loading 关闭后有几率滚动失效的问题
-
修复 Loading 关闭后有几率滚动失效的问题
-
修复 远程搜索的 Select 不能正确渲染默认初始值的问题
#### 非兼容性更新
#### 非兼容性更新
...
...
packages/select/src/select.vue
View file @
5352f31f
...
@@ -528,6 +528,14 @@
...
@@ -528,6 +528,14 @@
},
},
mounted
()
{
mounted
()
{
if
(
this
.
remote
&&
this
.
multiple
&&
Array
.
isArray
(
this
.
value
))
{
this
.
selected
=
this
.
options
.
reduce
((
prev
,
curr
)
=>
{
return
this
.
value
.
indexOf
(
curr
.
value
)
>
-
1
?
prev
.
concat
(
curr
)
:
prev
;
},
[]);
this
.
$nextTick
(()
=>
{
this
.
resetInputHeight
();
});
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
$refs
.
reference
.
$el
)
{
if
(
this
.
$refs
.
reference
.
$el
)
{
this
.
inputWidth
=
this
.
$refs
.
reference
.
$el
.
getBoundingClientRect
().
width
;
this
.
inputWidth
=
this
.
$refs
.
reference
.
$el
.
getBoundingClientRect
().
width
;
...
...
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