Content-Length: 428757 | pFad | http://github.com/material-vue/material-vue/commit/9b86b905a06bc700df2a7e303445eb12adcc9abd

1C feat: checkbox component added · material-vue/material-vue@9b86b90 · GitHub
Skip to content

Commit 9b86b90

Browse files
author
Корпусов Максим
committed
feat: checkbox component added
1 parent c0ce82d commit 9b86b90

File tree

1 file changed

+70
-8
lines changed

1 file changed

+70
-8
lines changed

playground/src/App.vue

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,84 @@
11
<template>
2-
<div v-theme-color="'#e08840'" style="display: flex; flex: 1; justify-content: center; align-items: center; gap: 8px;">
3-
<m-button @click="dialog.open()" v-theme-color="'#474b39'" text="Добавить" variant="filled" prepend-icon="add"/>
4-
<!--<m-button text="Click me" variant="tonal"/>-->
5-
<!--<m-button v-theme-color="'#866700'" text="Search" variant="outlined" append-icon="search"/>-->
6-
<!--<m-button text="Click me" variant="text" append-icon="arrow_forward"/>-->
7-
<!--<m-radio/>-->
2+
<div v-theme-color="'#4171b8'" class="main">
3+
<m-button @click="dialog.open()" text="Open dialog" variant="filled"/>
84

95
<m-dialog ref="dialog" title="Basic dialog title" text="A dialog is a type of modal window that appears in front of app content to provide critical information, or prompt for a decision to be made.">
6+
<m-dialog ref="dialog" title="Create new project" text="New project have a private status by default, only you in this workspace will see it">
7+
108
<template #actions>
11-
<m-button variant="text" text="action 1"/>
12-
<m-button text="action 2"/>
9+
<m-button variant="text" text="Cancel"/>
10+
<m-button text="Create"/>
1311
</template>
1412
</m-dialog>
13+
14+
<m-divider style="margin-left: 8px" vertical middle/>
15+
16+
<m-button text="Click me" variant="tonal"/>
17+
<m-button text="Search" variant="outlined" prepend-icon="search"/>
18+
<m-button text="Click me" variant="text" append-icon="arrow_forward"/>
19+
20+
<m-divider style="margin-left: 8px" vertical middle/>
21+
22+
<m-radio-group class="flex" v-model="r">
23+
<m-radio value="1" text="option 1"/>
24+
<m-radio value="2" text="option 2"/>
25+
<m-radio value="3" text="option 3"/>
26+
</m-radio-group>
27+
28+
<m-divider style="margin-left: 8px" vertical middle/>
29+
30+
<!--<m-icon-button @click="console.log('clicked')" icon="home"/>-->
31+
<!--<m-icon-button variant="filled" icon="settings"/>-->
32+
<!--<m-icon-button variant="tonal" icon="settings"/>-->
33+
<!--<m-icon-button variant="outlined" icon="settings"/>-->
34+
35+
<!--<m-divider style="margin-left: 8px" vertical middle/>-->
36+
37+
<m-icon-button toggleable icon="home"/>
38+
<m-icon-button toggleable variant="filled" icon="home"/>
39+
<m-icon-button toggleable variant="tonal" icon="home"/>
40+
<m-icon-button toggleable variant="outlined" icon="home"/>
41+
42+
<m-divider style="margin-left: 8px" vertical middle/>
43+
44+
<div>
45+
<m-checkbox v-model="c" value="1" text="Checkbox 1"/>
46+
<m-checkbox v-model="c" value="2" text="Checkbox 2"/>
47+
</div>
48+
49+
<m-divider style="margin-left: 8px; margin-right: 8px" vertical middle/>
50+
51+
52+
<!--<div>-->
53+
<!-- <m-checkbox v-model="r2" value="3" text="Checkbox 3"/>-->
54+
<!-- {{ r2 }}-->
55+
<!--</div>-->
1556
</div>
1657
</template>
1758

1859
<script setup>
1960
import {ref} from "vue";
2061
2162
const dialog = ref(null)
63+
const r = ref(0)
64+
const c = ref([])
2265
</script>
66+
67+
<style scoped>
68+
.main {
69+
display: flex;
70+
71+
padding: 16px;
72+
73+
flex: 1;
74+
justify-content: center;
75+
align-items: center;
76+
gap: 8px;
77+
}
78+
79+
@media (max-width: 1024px) {
80+
.main {
81+
flex-direction: column;
82+
}
83+
}
84+
</style>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/material-vue/material-vue/commit/9b86b905a06bc700df2a7e303445eb12adcc9abd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy