Merge branch 'menu-switch' into better-8176
This commit is contained in:
		
						commit
						8fcf86cb52
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		|  | @ -16,7 +16,6 @@ defineProps<{ | ||||||
| 	width?: number; | 	width?: number; | ||||||
| 	viaKeyboard?: boolean; | 	viaKeyboard?: boolean; | ||||||
| 	src?: any; | 	src?: any; | ||||||
| 	ev: MouseEvent; |  | ||||||
| }>(); | }>(); | ||||||
| 
 | 
 | ||||||
| const emit = defineEmits<{ | const emit = defineEmits<{ | ||||||
|  |  | ||||||
|  | @ -6,11 +6,11 @@ export type MenuAction = (ev: MouseEvent) => void; | ||||||
| export type MenuDivider = null; | export type MenuDivider = null; | ||||||
| export type MenuNull = undefined; | export type MenuNull = undefined; | ||||||
| export type MenuLabel = { type: 'label', text: string }; | export type MenuLabel = { type: 'label', text: string }; | ||||||
| export type MenuLink = { type: 'link', to: string, text: string, icon?: string, indicate?: boolean, avatar: Misskey.entities.User }; | export type MenuLink = { type: 'link', to: string, text: string, icon?: string, indicate?: boolean, avatar?: Misskey.entities.User }; | ||||||
| export type MenuA = { type: 'a', href: string, target?: string, download?: string, text: string, icon?: string, indicate?: boolean }; | export type MenuA = { type: 'a', href: string, target?: string, download?: string, text: string, icon?: string, indicate?: boolean }; | ||||||
| export type MenuUser = { type: 'user', user: Misskey.entities.User, active?: boolean, indicate?: boolean, action: MenuAction }; | export type MenuUser = { type: 'user', user: Misskey.entities.User, active?: boolean, indicate?: boolean, action: MenuAction }; | ||||||
| export type MenuSwitch = { type: 'switch', ref: Ref<boolean>, text: string, disabled?: boolean }; | export type MenuSwitch = { type: 'switch', ref: Ref<boolean>, text: string, disabled?: boolean }; | ||||||
| export type MenuButton = { type?: 'button', text: string, icon?: string, indicate?: boolean, danger?: boolean, active?: boolean, avatar: Misskey.entities.User; action: MenuAction }; | export type MenuButton = { type?: 'button', text: string, icon?: string, indicate?: boolean, danger?: boolean, active?: boolean, avatar?: Misskey.entities.User; action: MenuAction }; | ||||||
| 
 | 
 | ||||||
| export type MenuPending = { type: 'pending' }; | export type MenuPending = { type: 'pending' }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue