Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
02a38e38
Commit
02a38e38
authored
May 20, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉组件默认值
parent
1d3760d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
XhSelect.vue
src/components/createCom/XhSelect.vue
+5
-4
XhServiceMeasure.vue
src/components/createCom/XhServiceMeasure.vue
+1
-1
No files found.
src/components/createCom/XhSelect.vue
View file @
02a38e38
...
...
@@ -8,7 +8,7 @@
<view
class=
"u-flex u-row-between picker-common"
>
<picker
mode=
"selector"
:value=
"index"
range-key=
"label"
:range=
"settings"
@
click=
"show = true"
@
change=
"pickerChange"
class=
"u-flex-1"
>
<view
class=
"txt"
>
{{
text
}}
</view>
<view
class=
"txt"
>
{{
text
||
'请选择'
}}
</view>
</picker>
<u-icon
class=
"input-icon"
color=
"#2272FF"
:name=
"show ? 'arrow-up' : 'arrow-down'"
></u-icon>
</view>
...
...
@@ -33,7 +33,8 @@
},
data
()
{
return
{
show
:
false
show
:
false
,
index
:
''
}
},
computed
:
{
...
...
@@ -89,8 +90,8 @@
this
.
valueChange
(
id
)
},
pickerChange
(
data
)
{
const
index
=
data
.
detail
.
value
const
id
=
this
.
item
.
fieldsOptions
[
index
].
key
this
.
index
=
data
.
detail
.
value
const
id
=
this
.
item
.
fieldsOptions
[
this
.
index
].
key
this
.
dataValue
=
id
this
.
valueChange
(
id
)
},
...
...
src/components/createCom/XhServiceMeasure.vue
View file @
02a38e38
...
...
@@ -8,7 +8,7 @@
<u-picker
v-model=
"showPicker"
range-key=
"label"
@
columnchange=
"columnchange"
:mode=
"isNotMulti?'selector':'multiSelector'"
@
confirm=
"pickerConfirm"
:range=
"settings"
></u-picker>
-->
<view
class=
"u-flex u-row-between picker-common"
>
<picker
:mode=
"isNotMulti?'selector':'multiSelector'"
:value=
"index"
range-key=
"label"
:range=
"settings"
@
click=
"showPicker = true"
@
change=
"pickerChange"
class=
"txt u-flex-1"
>
<view>
{{
text
}}
</view>
<view>
{{
text
||
'请选择'
}}
</view>
</picker>
<u-icon
class=
"input-icon"
color=
"#2272FF"
:name=
"showPicker ? 'arrow-up' : 'arrow-down'"
></u-icon>
</view>
...
...
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