vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 3.44 kB
Source Map (JSON)
{"version":3,"file":"props.cjs","sources":["../../../components/input/props.ts"],"sourcesContent":["import {\n booleanProp,\n booleanStringProp,\n buildProps,\n classProp,\n eventProp,\n iconProp,\n localeProp,\n sizeProp,\n stateProp,\n} from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { IconEffect } from '@/components/icon'\nimport type { ConfigurableProps, EventListener } from '@vexip-ui/config'\nimport type { ChangeEvent, InputSlots, InputType } from './symbol'\n\nexport const inputProps = buildProps({\n size: sizeProp,\n state: stateProp,\n locale: localeProp('input'),\n type: String as PropType<InputType>,\n prefix: iconProp,\n prefixColor: String,\n suffix: iconProp,\n suffixColor: String,\n formatter: Function as PropType<(value: string | number) => string | number>,\n value: [String, Number],\n placeholder: String,\n autofocus: booleanProp,\n spellcheck: booleanProp,\n autocomplete: booleanStringProp,\n readonly: booleanProp,\n disabled: booleanProp,\n controlClass: classProp,\n debounce: booleanProp,\n delay: Number,\n maxLength: Number,\n hideCount: booleanProp,\n before: String,\n after: String,\n /**\n * 是否显示切换 password 为明文的按钮\n */\n plainPassword: booleanProp,\n clearable: booleanProp,\n loading: booleanProp,\n loadingIcon: iconProp,\n loadingLock: booleanProp,\n loadingEffect: String as PropType<IconEffect>,\n transparent: booleanProp,\n sync: booleanProp,\n controlAttrs: Object as PropType<Record<string, any>>,\n name: String,\n slots: Object as PropType<InputSlots>,\n onFocus: eventProp<(event: FocusEvent) => void>(),\n onBlur: eventProp<(event: FocusEvent) => void>(),\n onInput: eventProp<EventListener<ChangeEvent>>(),\n onChange: eventProp<EventListener<ChangeEvent>>(),\n onEnter: eventProp(),\n onClear: eventProp(),\n onPrefixClick: eventProp<(event: MouseEvent) => void>(),\n onSuffixClick: eventProp<(event: MouseEvent) => void>(),\n onKeyDown: eventProp<(event: KeyboardEvent) => void>(),\n onKeyPress: eventProp<(event: KeyboardEvent) => void>(),\n onKeyUp: eventProp<(event: KeyboardEvent) => void>(),\n onCompositionStart: eventProp<(event: CompositionEvent) => void>(),\n onCompositionEnd: eventProp<(event: CompositionEvent) => void>(),\n})\n\nexport type InputProps = ExtractPropTypes<typeof inputProps>\nexport type InputCProps = ConfigurableProps<InputProps>\n"],"names":["inputProps","buildProps","sizeProp","stateProp","localeProp","iconProp","booleanProp","booleanStringProp","classProp","eventProp"],"mappings":"oHAiBaA,EAAaC,EAAAA,WAAW,CACnC,KAAMC,EAAA,SACN,MAAOC,EAAA,UACP,OAAQC,aAAW,OAAO,EAC1B,KAAM,OACN,OAAQC,EAAA,SACR,YAAa,OACb,OAAQA,EAAA,SACR,YAAa,OACb,UAAW,SACX,MAAO,CAAC,OAAQ,MAAM,EACtB,YAAa,OACb,UAAWC,EAAA,YACX,WAAYA,EAAA,YACZ,aAAcC,EAAA,kBACd,SAAUD,EAAA,YACV,SAAUA,EAAA,YACV,aAAcE,EAAA,UACd,SAAUF,EAAA,YACV,MAAO,OACP,UAAW,OACX,UAAWA,EAAA,YACX,OAAQ,OACR,MAAO,OAIP,cAAeA,EAAA,YACf,UAAWA,EAAA,YACX,QAASA,EAAA,YACT,YAAaD,EAAA,SACb,YAAaC,EAAA,YACb,cAAe,OACf,YAAaA,EAAA,YACb,KAAMA,EAAA,YACN,aAAc,OACd,KAAM,OACN,MAAO,OACP,QAASG,EAAAA,UAAuC,EAChD,OAAQA,EAAAA,UAAuC,EAC/C,QAASA,EAAAA,UAAsC,EAC/C,SAAUA,EAAAA,UAAsC,EAChD,QAASA,EAAAA,UAAU,EACnB,QAASA,EAAAA,UAAU,EACnB,cAAeA,EAAAA,UAAuC,EACtD,cAAeA,EAAAA,UAAuC,EACtD,UAAWA,EAAAA,UAA0C,EACrD,WAAYA,EAAAA,UAA0C,EACtD,QAASA,EAAAA,UAA0C,EACnD,mBAAoBA,EAAAA,UAA6C,EACjE,iBAAkBA,EAA6C,UAAA,CACjE,CAAC"}