Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6ba625
commit 1fa9f29
Showing
4 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './textarea' | ||
export * from './type' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
export type TextareaConfirmType = 'send' | 'search' | 'next' | 'go' | 'done' | 'return' | ||
export interface TextareaAutosizeObject { | ||
/** | ||
* 最大高度 | ||
*/ | ||
maxHeight?: number | string | ||
/** | ||
* 最小高度 | ||
*/ | ||
minHeight?: number | string | ||
} | ||
|
||
export type TextareaAdjustKeyboardTo = 'cursor' | 'bottom' | ||
export const textareaConfirmType = ['send', 'search', 'next', 'go', 'done', 'return'] as const | ||
export type TextareaConfirmType = (typeof textareaConfirmType)[number] | ||
|
||
export const textareaAdjustKeyboardTo = ['cursor', 'bottom'] | ||
export type TextareaAdjustKeyboardTo = (typeof textareaAdjustKeyboardTo)[number] |