mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(components)!: rename select to onSelect on items
This commit is contained in:
@@ -123,12 +123,16 @@ const items = [{
|
||||
label: 'Save',
|
||||
icon: 'i-heroicons-document-arrow-down',
|
||||
kbds: ['meta', 'S'],
|
||||
select: () => save()
|
||||
onSelect() {
|
||||
save()
|
||||
}
|
||||
}, {
|
||||
label: 'Copy',
|
||||
icon: 'i-heroicons-document-duplicate',
|
||||
kbds: ['meta', 'C'],
|
||||
select: () => copy()
|
||||
onSelect() {
|
||||
copy()
|
||||
}
|
||||
}]
|
||||
|
||||
defineShortcuts(extractShortcuts(items))
|
||||
|
||||
Reference in New Issue
Block a user