File tree 1 file changed +29
-6
lines changed
1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,35 @@ watch(isHidden, () => {
29
29
<Background />
30
30
31
31
<Panel position =" top-right" >
32
- <div >
33
- <label for =" ishidden" >
34
- hidden
35
- <input id =" ishidden" v-model =" isHidden" type =" checkbox" />
36
- </label >
37
- </div >
32
+ <button type =" button" @click =" isHidden = !isHidden" >
33
+ {{ isHidden ? 'Show' : 'Hide' }}
34
+ </button >
38
35
</Panel >
39
36
</VueFlow >
40
37
</template >
38
+
39
+ <style >
40
+ .vue-flow__panel {
41
+ background-color : #2d3748 ;
42
+ padding : 10px ;
43
+ border-radius : 8px ;
44
+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.5 );
45
+ color : white ;
46
+ display : flex ;
47
+ flex-direction : column ;
48
+ gap : 2px ;
49
+ font-size : 12px ;
50
+ font-weight : 600 ;
51
+ }
52
+
53
+ .vue-flow__panel button {
54
+ background-color : #4a5568 ;
55
+ border : none ;
56
+ border-radius : 4px ;
57
+ color : white ;
58
+ cursor : pointer ;
59
+ font-size : 12px ;
60
+ font-weight : 600 ;
61
+ padding : 5px 10px ;
62
+ }
63
+ </style >
You can’t perform that action at this time.
0 commit comments