|
1 | 1 | <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"/> |
8 | 4 |
|
9 | 5 | <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 | + |
10 | 8 | <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"/> |
13 | 11 | </template>
|
14 | 12 | </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>--> |
15 | 56 | </div>
|
16 | 57 | </template>
|
17 | 58 |
|
18 | 59 | <script setup>
|
19 | 60 | import {ref} from "vue";
|
20 | 61 |
|
21 | 62 | const dialog = ref(null)
|
| 63 | +const r = ref(0) |
| 64 | +const c = ref([]) |
22 | 65 | </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