Skip to content

Commit

Permalink
feat(uat): input nicknamereview event related (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 authored Nov 15, 2024
1 parent 8909996 commit 628318f
Showing 1 changed file with 22 additions and 0 deletions.
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

0 comments on commit 628318f

Please sign in to comment.