Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-ssr
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
lixy
vue-ssr
Commits
0fcd570f
Commit
0fcd570f
authored
Nov 21, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
城市选择组件
parent
55285275
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
news.vue
components/news.vue
+56
-0
No files found.
components/news.vue
0 → 100644
View file @
0fcd570f
<
template
>
<div>
<span
class=
"choose-title"
>
城市
</span>
<el-select
v-model=
"city"
clearable
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
<span
class=
"choose-title time"
>
时间
</span>
<el-date-picker
v-model=
"time"
type=
"month"
placeholder=
"选择月"
></el-date-picker>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
options
:
[
{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
],
city
:
''
,
//选择城市
time
:
''
,
//时间
}
}
}
</
script
>
<
style
scoped
>
.choose-title
{
font-size
:
14px
;
margin-right
:
20px
;
}
.el-select
,
.el-date-editor
{
width
:
300px
;
border
:
1px
solid
#eee
;
}
.time
{
margin-left
:
30px
;
}
</
style
>
\ No newline at end of file
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