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
28eed243
Commit
28eed243
authored
May 06, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下拉组件修改
parent
4daae323
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
XhSelect.vue
src/components/createCom/XhSelect.vue
+5
-5
No files found.
src/components/createCom/XhSelect.vue
View file @
28eed243
...
...
@@ -3,7 +3,7 @@
<view
class=
"xh-select"
>
<u-input
:value=
"text"
readOnly
@
click=
"show=true"
:placeholder=
"placeholder"
:placeholder-style=
"placeholderStyle"
:custom-style=
"customStyle"
:clearable=
"false"
></u-input>
<u-
action-sheet
:list=
"settings"
v-model=
"show"
@
click=
"actionSheetCallback"
safe-area-inset-bottom
></u-action-shee
t>
<u-
select
:list=
"settings"
v-model=
"show"
@
confirm=
"actionSheetCallback"
safe-area-inset-bottom
></u-selec
t>
<u-icon
class=
"input-icon"
:name=
"show ? 'arrow-up' : 'arrow-down'"
></u-icon>
</view>
...
...
@@ -43,8 +43,8 @@
let
settings
=
this
.
item
.
fieldsOptions
||
[]
result
=
settings
.
map
(
item
=>
{
return
{
text
:
item
.
label
,
id
:
item
.
key
,
label
:
item
.
label
,
value
:
item
.
key
,
color
:
'#333333'
,
fontSize
:
26
}
...
...
@@ -74,8 +74,8 @@
watch
:
{},
mounted
()
{},
methods
:
{
actionSheetCallback
(
index
)
{
let
id
=
this
.
settings
[
index
].
id
;
actionSheetCallback
(
event
)
{
const
id
=
event
[
0
].
value
this
.
dataValue
=
id
this
.
valueChange
(
id
)
}
...
...
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