This commit is contained in:
2026-01-05 12:47:14 +08:00
commit 1fc846fae3
1614 changed files with 162035 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
export const UPDATE_MODEL_EVENT = 'update:modelValue'
export const UPDATE_VISIBLE_EVENT = 'update:visible'
export const CHANGE_EVENT = 'change'
export const INPUT_EVENT = 'input'
export const CLICK_EVENT = 'click'
export const OPEN_EVENT = 'open'
export const CLOSE_EVENT = 'close'
export const OPENED_EVENT = 'opened'
export const CLOSED_EVENT = 'closed'
export const FOCUS_EVENT = 'focus'
export const BLUR_EVENT = 'blur'
export const CONFIRM_EVENT = 'confirm'
export const SEARCH_EVENT = 'search'
export const CLEAR_EVENT = 'clear'
export const CANCEL_EVENT = 'cancel'
export const CHOOSE_EVENT = 'choose'
export const SELECT_EVENT = 'select'
export const SELECTED_EVENT = 'selected'

View File

@@ -0,0 +1,3 @@
export * from './event'
export * from './prefix'
export * from './types'

View File

@@ -0,0 +1 @@
export const PREFIX = 'nut'

View File

@@ -0,0 +1,11 @@
import type { NutAnimationName } from '../transition'
export type Position = 'center' | 'top' | 'bottom' | 'left' | 'right'
export const animationName: Record<Position, NutAnimationName> = {
center: 'fade',
top: 'slide-down',
bottom: 'slide-up',
left: 'slide-left',
right: 'slide-right',
}