1
1
<template >
2
2
<transition name =" slideLeft" >
3
- <aside id =" sidebar" class =" menu is-overlay has-background-white is-active" >
4
- <span class =" is-size-3 is-pulled-right m-2" aria-label =" close" @click =" $emit('toggle')" >✕ ; </span >
3
+ <aside id =" sidebar" class =" is-overlay has-background-white is-active box" >
4
+ <!-- <span class="is-size-3 is-pulled-right has-line-height-1" aria-label="close" @click="$emit('toggle')">✕</span> -->
5
+ <article class =" block" >
6
+ <button class =" delete is-large is-pulled-right" @click =" $emit('toggle')" ></button >
7
+ <p class =" menu-label" >Flow Settings</p >
8
+
9
+ <FlowSettings :pressureRange =" pressureRange" :flowRange =" flowRange" :pressure =" pressure" :flow =" flow" />
10
+ </article >
11
+ <article class =" block" >
12
+
5
13
<p class =" menu-label" >
6
- General
14
+ Sprinkler info
7
15
</p >
8
- <div class =" field" id =" flow" >
9
- <label class =" label" >Enter your flow in litres per minute</label >
10
- <div class =" control is-flex is-align-items-center" id =" flow" >
11
- <!-- <input type="number" v-model="localFlow" :min="flowRange.min" :max="flowRange.max"> -->
12
- <NumberInput v-model =" localFlow" :min =" flowRange.min" :max =" flowRange.max" @changeCount =" updateFlow" :value =" flow" />
13
- <span class =" is-right ml-1" >Lpm</span >
14
- </div >
15
- </div >
16
- <!-- ./field -->
17
- <div class =" field" id =" pressure" >
18
- <label class =" label" >Select your working pressure in kilopascals</label >
19
- <div class =" control has-icons-right is-flex is-align-items-center" >
20
- <div class =" select" >
21
- <select v-model =" localPressure" >
22
-
23
- <option v-for =" (pressure, index) in pressureRange" :key =" index" >{{ pressure }}</option >
24
- </select >
25
- </div >
26
-
27
- <span class =" is-right ml-1" >kpa</span >
28
- </div >
29
- </div >
30
- <!-- /.field -->
31
- <div class =" field" >
32
- <div class =" control" >
33
- <button class =" button is-link" @click =" $emit('set', localFlow, localPressure)" >Set pressure and flow</button >
34
- </div >
16
+ <ul >
17
+ <li v-show =" info.name" ><a href =" #" >Name: {{ info.name }}</a ></li >
18
+ <li v-show =" info.description" ><a href =" #" >Description: {{ info.description }}</a ></li >
19
+ </ul >
20
+ </article >
35
21
36
- </div >
37
22
</aside >
38
23
</transition >
39
24
</template >
40
25
41
26
<script >
42
- import NumberInput from ' ./NumberInput .vue' ;
27
+ import FlowSettings from ' ./FlowSettings .vue' ;
43
28
export default {
44
-
45
-
46
-
47
29
components: {
48
- NumberInput
30
+ FlowSettings
49
31
},
32
+
50
33
props: {
51
34
flow: {
52
35
type: Number
56
39
},
57
40
flowRange: {
58
41
type: Object
59
- }
42
+ },
43
+ pressure: Number ,
44
+ info: Object
60
45
},
61
46
62
47
data () {
63
48
return {
64
49
isActive: false ,
65
- localFlow: this .flow ,
66
- localPressure: this .pressureRange [0 ]
67
50
}
68
51
},
69
52
70
- methods: {
71
- updateFlow (count ) {
72
- this .localFlow = count;
73
- }
74
- }
75
53
76
54
77
55
}
81
59
<style lang="scss" scoped>
82
60
@import "./../assets/animation-variables.scss";
83
61
#sidebar {
62
+ max-width: 90%;
84
63
z-index: 9999;
85
64
animation-duration: $animate-duration;
65
+ .has-line-height-1 {
66
+ line-height: 1
67
+ }
68
+ // .message {
69
+ // border-radius: 0px;
70
+ // }
86
71
}
87
72
</style>
0 commit comments