forked from quasarframework/quasar
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(position engine): improve positioning quasarframework#8175, quas…
…arframework#8191, quasarframework#8343, quasarframework#8554, quasarframework#10583, quasarframework#12414
- Loading branch information
Showing
30 changed files
with
1,519 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<template> | ||
<div class="q-layout-padding text-white"> | ||
<div class="bg-green-9 q-pa-sm" style="width: 300px; height: 180px;"> | ||
Click Here | ||
|
||
<q-menu touch-position> | ||
<q-list dense style="min-width: 250px" class="bg-grey text-white"> | ||
<q-item clickable v-close-popup> | ||
<q-item-section>Menu Item 1</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup> | ||
<q-item-section>Menu Item 2</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
|
||
<div class="bg-blue-9 q-pa-sm q-mt-md" style="width: 50%; height: 50%;"> | ||
Click Here | ||
|
||
<q-menu touch-position> | ||
<q-list dense style="min-width: 100px"> | ||
<q-item clickable> | ||
<q-item-section>Menu Item 1</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup> | ||
<q-item-section>Close</q-item-section> | ||
</q-item> | ||
</q-list> | ||
|
||
<q-btn class="full-width" flat label="Menu"> | ||
<q-menu> | ||
<q-list> | ||
<q-item v-for="n in 5" :key="n" v-close-popup clickable> | ||
<q-item-section>Menu Item {{ n }}</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable> | ||
<q-item-section>Submenu Label</q-item-section> | ||
<q-item-section side> | ||
<q-icon name="keyboard_arrow_right" /> | ||
</q-item-section> | ||
|
||
<q-menu anchor="top right" self="top left"> | ||
<q-list> | ||
<q-item v-for="n in 5" :key="n" v-close-popup clickable> | ||
<q-item-section>Menu Item {{ n }}</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup="2"> | ||
<q-item-section>Close</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
</q-menu> | ||
</div> | ||
</div> | ||
|
||
<div class="bg-green-9 q-pa-sm q-mt-xl" style="width: 300px; height: 180px;"> | ||
ContextMenu Here | ||
|
||
<q-menu touch-position context-menu> | ||
<q-list dense style="min-width: 250px" class="bg-grey text-white"> | ||
<q-item clickable v-close-popup> | ||
<q-item-section>Menu Item 1</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup> | ||
<q-item-section>Menu Item 2</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup> | ||
<q-item-section>Menu Item 3</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
|
||
<div class="bg-blue-9 q-pa-sm q-mt-md" style="width: 50%; height: 50%;"> | ||
ContextMenu Here | ||
|
||
<q-menu touch-position context-menu> | ||
<q-list dense style="min-width: 100px"> | ||
<q-item clickable> | ||
<q-item-section>Menu Item 1</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup> | ||
<q-item-section>Close</q-item-section> | ||
</q-item> | ||
</q-list> | ||
|
||
<q-btn class="full-width" flat label="Menu"> | ||
<q-menu> | ||
<q-list> | ||
<q-item v-for="n in 5" :key="n" v-close-popup clickable> | ||
<q-item-section>Menu Item {{ n }}</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable> | ||
<q-item-section>Submenu Label</q-item-section> | ||
<q-item-section side> | ||
<q-icon name="keyboard_arrow_right" /> | ||
</q-item-section> | ||
|
||
<q-menu anchor="top right" self="top left"> | ||
<q-list> | ||
<q-item v-for="n in 5" :key="n" v-close-popup clickable> | ||
<q-item-section>Menu Item {{ n }}</q-item-section> | ||
</q-item> | ||
|
||
<q-item clickable v-close-popup="2"> | ||
<q-item-section>Close</q-item-section> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-item> | ||
</q-list> | ||
</q-menu> | ||
</q-btn> | ||
</q-menu> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return {} | ||
} | ||
} | ||
</script> |
Oops, something went wrong.