init
This commit is contained in:
18
uni_modules/nutui-uni/components/_constants/event.ts
Normal file
18
uni_modules/nutui-uni/components/_constants/event.ts
Normal 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'
|
||||
3
uni_modules/nutui-uni/components/_constants/index.ts
Normal file
3
uni_modules/nutui-uni/components/_constants/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './event'
|
||||
export * from './prefix'
|
||||
export * from './types'
|
||||
1
uni_modules/nutui-uni/components/_constants/prefix.ts
Normal file
1
uni_modules/nutui-uni/components/_constants/prefix.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const PREFIX = 'nut'
|
||||
11
uni_modules/nutui-uni/components/_constants/types.ts
Normal file
11
uni_modules/nutui-uni/components/_constants/types.ts
Normal 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',
|
||||
}
|
||||
Reference in New Issue
Block a user