Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/uni-app-types/src/form-components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@ type _InputOnKeyboardheightchange = (
event: _InputOnKeyboardheightchangeEvent,
) => void;

interface _InputOnNicknamereviewDetail {
/** 昵称审核是否通过 */
pass: boolean;
/** 是否超时 */
timeout: boolean;
}

type _InputOnNicknamereviewEvent = CustomEvent<_InputOnNicknamereviewDetail>;

/** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效 */
type _InputOnNicknamereview = (event: _InputOnNicknamereviewEvent) => void;

/** 输入框属性 */
type _InputProps = CommonProps &
Partial<{
Expand Down Expand Up @@ -363,6 +375,8 @@ type _InputProps = CommonProps &
onConfirm: _InputOnConfirm;
/** 键盘高度变化时触发 */
onKeyboardheightchange: _InputOnKeyboardheightchange;
/** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效 */
onNicknamereview: _InputOnNicknamereview;
}>;

/** 输入框 */
Expand Down Expand Up @@ -392,6 +406,9 @@ export type {
_InputOnKeyboardheightchangeDetail as InputOnKeyboardheightchangeDetail,
_InputOnKeyboardheightchangeEvent as InputOnKeyboardheightchangeEvent,
_InputOnKeyboardheightchange as InputOnKeyboardheightchange,
_InputOnNicknamereviewDetail as InputOnNicknamereviewDetail,
_InputOnNicknamereviewEvent as InputOnNicknamereviewEvent,
_InputOnNicknamereview as InputOnNicknamereview,
_InputProps as InputProps,
_Input as Input,
_InputInstance as InputInstance,
Expand Down Expand Up @@ -484,6 +501,11 @@ declare global {
/** 键盘高度变化时触发 */
export interface InputOnKeyboardheightchange
extends _InputOnKeyboardheightchange {}
export interface InputOnNicknamereviewDetail
extends _InputOnNicknamereviewDetail {}
export type InputOnNicknamereviewEvent = _InputOnNicknamereviewEvent;
/** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效 */
export interface InputOnNicknamereview extends _InputOnNicknamereview {}
/** 输入框属性 */
export type InputProps = _InputProps;
/** 输入框 */
Expand Down
Loading