UNPKG

tdesign-mobile-vue

Version:
12 lines (11 loc) 362 B
import { ComputedRef } from 'vue'; export interface UseLengthLimitParams { value: string; maxlength: number; maxcharacter: number; allowInputOverMax: boolean; } export default function useLengthLimit(params: ComputedRef<UseLengthLimitParams>): { limitNumber: ComputedRef<string>; getValueByLimitNumber: (inputValue: string) => string; };