File tree 2 files changed +64
-5
lines changed
2 files changed +64
-5
lines changed Original file line number Diff line number Diff line change 25
25
</el-col >
26
26
<el-col class =" line" :span =" 2" >-</el-col >
27
27
<el-col :span =" 11" >
28
- <el-time-picker type = " fixed-time " placeholder =" 选择时间" v-model =" form.date2" style =" width : 100% ;" ></el-time-picker >
28
+ <el-time-picker placeholder =" 选择时间" v-model =" form.date2" style =" width : 100% ;" ></el-time-picker >
29
29
</el-col >
30
30
</el-form-item >
31
+ <el-form-item label =" 城市级联" >
32
+ <el-cascader :options =" options" v-model =" form.options" ></el-cascader >
33
+ </el-form-item >
31
34
<el-form-item label =" 选择开关" >
32
- <el-switch on-text = " " off-text = " " v-model =" form.delivery" ></el-switch >
35
+ <el-switch v-model =" form.delivery" ></el-switch >
33
36
</el-form-item >
34
37
<el-form-item label =" 多选框" >
35
38
<el-checkbox-group v-model =" form.type" >
46
49
</el-radio-group >
47
50
</el-form-item >
48
51
<el-form-item label =" 文本框" >
49
- <el-input type =" textarea" v-model =" form.desc" ></el-input >
52
+ <el-input type =" textarea" rows = " 5 " v-model =" form.desc" ></el-input >
50
53
</el-form-item >
51
54
<el-form-item >
52
- <el-button type =" primary" @click =" onSubmit" >提交 </el-button >
55
+ <el-button type =" primary" @click =" onSubmit" >表单提交 </el-button >
53
56
<el-button >取消</el-button >
54
57
</el-form-item >
55
58
</el-form >
63
66
export default {
64
67
data : function (){
65
68
return {
69
+ options: [
70
+ {
71
+ value: ' guangdong' ,
72
+ label: ' 广东省' ,
73
+ children: [
74
+ {
75
+ value: ' guangzhou' ,
76
+ label: ' 广州市' ,
77
+ children: [
78
+ {
79
+ value: ' tianhe' ,
80
+ label: ' 天河区'
81
+ },
82
+ {
83
+ value: ' haizhu' ,
84
+ label: ' 海珠区'
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ value: ' dongguan' ,
90
+ label: ' 东莞市' ,
91
+ children: [
92
+ {
93
+ value: ' changan' ,
94
+ label: ' 长安镇'
95
+ },
96
+ {
97
+ value: ' humen' ,
98
+ label: ' 虎门镇'
99
+ }
100
+ ]
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ value: ' hunan' ,
106
+ label: ' 湖南省' ,
107
+ children: [
108
+ {
109
+ value: ' changsha' ,
110
+ label: ' 长沙市' ,
111
+ children: [
112
+ {
113
+ value: ' yuelu' ,
114
+ label: ' 岳麓区'
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ }
120
+ ],
66
121
form: {
67
122
name: ' ' ,
68
123
region: ' ' ,
71
126
delivery: true ,
72
127
type: [' 步步高' ],
73
128
resource: ' 小天才' ,
74
- desc: ' '
129
+ desc: ' ' ,
130
+ options: []
75
131
}
76
132
}
77
133
},
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ a{text-decoration: none}
64
64
.el-time-panel__content ::after , .el-time-panel__content ::before {
65
65
margin-top : -7px ;
66
66
}
67
+ .el-time-spinner__wrapper .el-scrollbar__wrap : not (.el-scrollbar__wrap--hidden-default ){
68
+ padding-bottom : 0 ;
69
+ }
67
70
/*Readme*/
68
71
.ms-doc .el-checkbox__input .is-disabled + .el-checkbox__label {
69
72
color : # 333 ;
You can’t perform that action at this time.
0 commit comments