File tree 3 files changed +35
-6
lines changed
src/packages/__VUE/timeselect
3 files changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
37
37
</nut-timeselect >
38
38
</template >
39
39
<script lang =" ts" >
40
- import { reactive , toRefs , getCurrentInstance } from ' vue' ;
40
+ import { reactive , toRefs , getCurrentInstance , onMounted } from ' vue' ;
41
41
export default {
42
42
props: {},
43
43
setup () {
@@ -84,6 +84,13 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
84
84
proxy .$toast .text (` Your choose:${ JSON .stringify (obj)} ` );
85
85
};
86
86
87
+ onMounted (() => {
88
+ state .currentTime1 .push ({
89
+ key: state .currentKey1 ,
90
+ list: []
91
+ });
92
+ });
93
+
87
94
return {
88
95
... toRefs (state),
89
96
handleChange1,
@@ -118,7 +125,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
118
125
</nut-timeselect >
119
126
</template >
120
127
<script lang =" ts" >
121
- import { reactive , toRefs , getCurrentInstance } from ' vue' ;
128
+ import { reactive , toRefs , getCurrentInstance , onMounted } from ' vue' ;
122
129
export default {
123
130
props: {},
124
131
setup () {
@@ -168,6 +175,13 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
168
175
proxy .$toast .text (` Your choose:${ JSON .stringify (obj)} ` );
169
176
};
170
177
178
+ onMounted (() => {
179
+ state .currentTime2 .push ({
180
+ key: state .currentKey2 ,
181
+ list: []
182
+ });
183
+ });
184
+
171
185
return {
172
186
... toRefs (state),
173
187
handleChange2,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
37
37
</nut-timeselect >
38
38
</template >
39
39
<script lang =" ts" >
40
- import { reactive , toRefs , getCurrentInstance } from ' vue' ;
40
+ import { reactive , toRefs , getCurrentInstance , onMounted } from ' vue' ;
41
41
export default {
42
42
props: {},
43
43
setup () {
@@ -84,6 +84,13 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
84
84
proxy .$toast .text (` 您选择了:${ JSON .stringify (obj)} ` );
85
85
};
86
86
87
+ onMounted (() => {
88
+ state .currentTime1 .push ({
89
+ key: state .currentKey1 ,
90
+ list: []
91
+ });
92
+ });
93
+
87
94
return {
88
95
... toRefs (state),
89
96
handleChange1,
@@ -118,7 +125,7 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
118
125
</nut-timeselect >
119
126
</template >
120
127
<script lang =" ts" >
121
- import { reactive , toRefs , getCurrentInstance } from ' vue' ;
128
+ import { reactive , toRefs , getCurrentInstance , onMounted } from ' vue' ;
122
129
export default {
123
130
props: {},
124
131
setup () {
@@ -168,6 +175,13 @@ app.use(TimeSelect).use(TimePannel).use(TimeDetail).use(Popup);
168
175
proxy .$toast .text (` 您选择了:${ JSON .stringify (obj)} ` );
169
176
};
170
177
178
+ onMounted (() => {
179
+ state .currentTime2 .push ({
180
+ key: state .currentKey2 ,
181
+ list: []
182
+ });
183
+ });
184
+
171
185
return {
172
186
... toRefs (state),
173
187
handleChange2,
Original file line number Diff line number Diff line change 20
20
}
21
21
& __content {
22
22
width : 100% ;
23
+ height : calc (100% - $timeselect-title-height - 10px );
23
24
display : flex ;
24
25
& __pannel {
25
26
width : 140px ;
26
- height : 308 px ;
27
+ height : 100 % ;
27
28
overflow : auto ;
28
29
background-color : $timeselect-pannel-bg-color ;
29
30
}
30
31
& __detail {
31
32
width : calc (100% - 140px );
32
- height : 308 px ;
33
+ height : 100 % ;
33
34
overflow-y : auto ;
34
35
overflow-x : hidden ;
35
36
}
You can’t perform that action at this time.
0 commit comments