mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 07:58:11 +08:00
Add the Dropdown Input widget (#168)
Fixes #135. * Add the Dropdown Input widget * Fix font loading race condition
This commit is contained in:
@@ -5,7 +5,15 @@
|
||||
<Icon :icon="entry.icon" v-if="entry.icon" />
|
||||
<span v-if="entry.label">{{ entry.label }}</span>
|
||||
</div>
|
||||
<MenuList :menuEntries="entry.children" :direction="MenuDirection.Bottom" :ref="(ref) => setEntryRefs(entry, ref)" />
|
||||
<MenuList
|
||||
:ourEntry="entry"
|
||||
:menuEntries="entry.children"
|
||||
:direction="MenuDirection.Bottom"
|
||||
:minWidth="240"
|
||||
:drawIcon="true"
|
||||
:defaultAction="actionNotImplemented"
|
||||
:ref="(ref) => setEntryRefs(entry, ref)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -140,6 +148,9 @@ export default defineComponent({
|
||||
if (menuEntry.ref) menuEntry.ref.setOpen();
|
||||
else throw new Error("The menu bar floating menu has no associated ref");
|
||||
},
|
||||
actionNotImplemented() {
|
||||
alert("This action is not yet implemented");
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user