Skip to content

Commit 1ec2a84

Browse files
make pretty
1 parent 5a5d028 commit 1ec2a84

File tree

9 files changed

+74
-21
lines changed

9 files changed

+74
-21
lines changed

src/assets/card.png

240 KB
Loading

src/assets/checkbox.png

14.7 KB
Loading

src/assets/checkboxbutton.png

53.9 KB
Loading

src/assets/datepicker.png

48.1 KB
Loading

src/assets/form.png

16 KB
Loading

src/assets/inputbox.png

7.47 KB
Loading

src/assets/link.png

37.5 KB
Loading

src/assets/slider.png

70.6 KB
Loading

src/components/left-sidebar/ComponentTab/LibComponents.vue

Lines changed: 74 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,91 @@
99
<q-list>
1010
<q-item clickable v-close-popup @click="pickComponent('e-button')">
1111
<q-item-section>
12-
<q-item-label>Button <q-btn class="demo-button" color="blue" label="Default" /></q-item-label>
13-
</q-item-section>
12+
button
13+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
14+
<q-btn color="secondary" label="Secondary" />
15+
<q-icon name="keyboard_arrow_right"/>
16+
</q-tooltip>
17+
</q-item-section>
1418
</q-item>
1519

1620
<q-item clickable v-close-popup @click="pickComponent('e-input')">
1721
<q-item-section>
18-
<q-item-label>InputBox <q-input class="demo-input" outlined /></q-item-label>
22+
InputBox
23+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
24+
<img alt="inputbox" src="../../../assets/inputbox.png" class="input-box">
25+
<q-icon name="keyboard_arrow_right"/>
26+
</q-tooltip>
1927
</q-item-section>
2028
</q-item>
2129

2230
<q-item clickable v-close-popup @click="pickComponent('e-link')">
2331
<q-item-section>
24-
<q-item-label>Link <a href="#">Link</a></q-item-label>
32+
Link
33+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
34+
<img alt="inputbox" src="../../../assets/link.png" class="input-box">
35+
<q-icon name="keyboard_arrow_right"/>
36+
</q-tooltip>
2537
</q-item-section>
2638
</q-item>
2739

2840
<q-item clickable v-close-popup @click="pickComponent('e-card')">
2941
<q-item-section>
30-
<q-item-label>Card
31-
<q-card class="my-card">
32-
<q-card-section>
33-
Card
34-
</q-card-section>
35-
</q-card>
36-
37-
</q-item-label>
42+
Card
43+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
44+
<img alt="card" src="../../../assets/card.png" class="card">
45+
<q-icon name="keyboard_arrow_right"/>
46+
</q-tooltip>
3847
</q-item-section>
3948
</q-item>
4049

4150
<q-item clickable v-close-popup @click="pickComponent('e-form')">
4251
<q-item-section>
43-
<q-item-label>Form <q-form class="demo-form" outlined /></q-item-label>
52+
Form
53+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
54+
<img alt="form" src="../../../assets/form.png" class="form">
55+
<q-icon name="keyboard_arrow_right"/>
56+
</q-tooltip>
4457
</q-item-section>
4558
</q-item>
4659

4760
<q-item clickable v-close-popup @click="pickComponent('e-checkbox')">
4861
<q-item-section>
49-
<q-item-label>Checkbox <q-checkbox class="demo-checkbox" outlined /></q-item-label>
62+
Checkbox
63+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
64+
<img alt="checkbox" src="../../../assets/checkbox.png" class="checkbox">
65+
<q-icon name="keyboard_arrow_right"/>
66+
</q-tooltip>
5067
</q-item-section>
5168
</q-item>
5269

5370
<q-item clickable v-close-popup @click="pickComponent('e-checkbox-button')">
5471
<q-item-section>
55-
<q-item-label>Checkbox-button <q-checkbox-button class="demo-checkbox-button" color="blue" outlined /></q-item-label>
72+
Checkbox Button
73+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
74+
<img alt="checkboxbutton" src="../../../assets/checkboxbutton.png" class="checkboxbutton">
75+
<q-icon name="keyboard_arrow_right"/>
76+
</q-tooltip>
5677
</q-item-section>
5778
</q-item>
5879

5980
<q-item clickable v-close-popup @click="pickComponent('e-date-picker')">
6081
<q-item-section>
61-
<q-item-label>Date-picker <q-date-picker class="demo-date-picker" v-model="value1"
62-
type="date"
63-
placeholder="Pick a day"
64-
:size="size" outlined /></q-item-label>
82+
Date Picker
83+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
84+
<img alt="datepicker" src="../../../assets/datepicker.png" class="datepicker">
85+
<q-icon name="keyboard_arrow_right"/>
86+
</q-tooltip>
6587
</q-item-section>
6688
</q-item>
6789

6890
<q-item clickable v-close-popup @click="pickComponent('e-slider')">
6991
<q-item-section>
70-
<q-item-label>Slider <q-slider class="demo-slider" v-model="value1" color="blue"
71-
outlined /></q-item-label>
92+
Slider
93+
<q-tooltip anchor="center right" self="center left" :offset="[10, 10]">
94+
<img alt="slider" src="../../../assets/slider.png" class="slider">
95+
<q-icon name="keyboard_arrow_right"/>
96+
</q-tooltip>
7297
</q-item-section>
7398
</q-item>
7499

@@ -128,4 +153,32 @@ import { mapState, mapActions } from "vuex";
128153
.demo-input{
129154
border: 1px solid white;
130155
}
156+
.input-box{
157+
width: 300px;
158+
}
159+
160+
.card{
161+
width: 300px;
162+
}
163+
164+
.form{
165+
width: 300px;
166+
}
167+
168+
.checkbox{
169+
width: 130px;
170+
}
171+
172+
.checkboxbutton{
173+
width: 500px;
174+
}
175+
176+
.datepicker{
177+
width: 300px;
178+
}
179+
180+
181+
.slider{
182+
width: 600px;
183+
}
131184
</style>

0 commit comments

Comments
 (0)