feat: updates

This commit is contained in:
qier222 2023-01-07 14:39:03 +08:00
parent 884f3df41a
commit c6c59b2cd9
No known key found for this signature in database
84 changed files with 3531 additions and 2616 deletions

View file

@ -1,13 +1,7 @@
import { css, cx } from '@emotion/css'
import { ForwardedRef, forwardRef, useRef, useState } from 'react'
import Icon from '../Icon'
export interface ContextMenuItem {
type: 'item' | 'submenu' | 'divider'
label?: string
onClick?: (e: MouseEvent) => void
items?: ContextMenuItem[]
}
import { ContextMenuItem } from './types'
const MenuItem = ({
item,
@ -63,7 +57,7 @@ const MenuItem = ({
onSubmenuClose()
}}
className={cx(
'relative',
'relative cursor-default',
className,
css`
padding-right: 9px;