From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
miniprogram_npm/tdesign-miniprogram/input/type.d.ts | 188 ++++++++++++++++++++++------------------------
1 files changed, 90 insertions(+), 98 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/input/type.d.ts b/miniprogram_npm/tdesign-miniprogram/input/type.d.ts
index 451da4a..a5b6b8a 100644
--- a/miniprogram_npm/tdesign-miniprogram/input/type.d.ts
+++ b/miniprogram_npm/tdesign-miniprogram/input/type.d.ts
@@ -1,43 +1,80 @@
export interface TdInputProps {
+ adjustPosition?: {
+ type: BooleanConstructor;
+ value?: boolean;
+ };
align?: {
type: StringConstructor;
value?: 'left' | 'center' | 'right';
};
- layout?: {
- type: StringConstructor;
- value?: 'horizontal' | 'vertical';
+ allowInputOverMax?: {
+ type: BooleanConstructor;
+ value?: boolean;
+ };
+ alwaysEmbed?: {
+ type: BooleanConstructor;
+ value?: boolean;
+ };
+ autoFocus?: {
+ type: BooleanConstructor;
+ value?: boolean;
};
borderless?: {
type: BooleanConstructor;
value?: boolean;
};
+ clearTrigger?: {
+ type: StringConstructor;
+ value?: 'always' | 'focus';
+ };
clearable?: {
type: null;
value?: boolean | object;
};
- style?: {
+ confirmHold?: {
+ type: BooleanConstructor;
+ value?: boolean;
+ };
+ confirmType?: {
+ type: StringConstructor;
+ value?: 'send' | 'search' | 'next' | 'go' | 'done';
+ };
+ cursor: {
+ type: NumberConstructor;
+ value?: number;
+ required?: boolean;
+ };
+ cursorColor?: {
type: StringConstructor;
value?: string;
+ };
+ cursorSpacing?: {
+ type: NumberConstructor;
+ value?: number;
};
disabled?: {
type: BooleanConstructor;
value?: boolean;
};
- errorMessage?: {
- type: StringConstructor;
- value?: string;
- };
- externalClasses?: {
- type: ArrayConstructor;
- value?: ['t-class', 't-class-input', 't-class-placeholder', 't-class-error-msg'];
+ focus?: {
+ type: BooleanConstructor;
+ value?: boolean;
};
format?: {
- type: null;
+ type: undefined;
value?: InputFormatType;
+ };
+ holdKeyboard?: {
+ type: BooleanConstructor;
+ value?: boolean;
};
label?: {
type: StringConstructor;
value?: string;
+ };
+ layout?: {
+ type: StringConstructor;
+ value?: 'vertical' | 'horizontal';
};
maxcharacter?: {
type: NumberConstructor;
@@ -51,6 +88,15 @@
type: StringConstructor;
value?: string;
};
+ placeholderClass?: {
+ type: StringConstructor;
+ value?: string;
+ };
+ placeholderStyle: {
+ type: StringConstructor;
+ value?: string;
+ required?: boolean;
+ };
prefixIcon?: {
type: null;
value?: string | object;
@@ -59,9 +105,37 @@
type: BooleanConstructor;
value?: boolean;
};
- size?: {
+ safePasswordCertPath?: {
type: StringConstructor;
- value?: 'medium' | 'small';
+ value?: string;
+ };
+ safePasswordCustomHash?: {
+ type: StringConstructor;
+ value?: string;
+ };
+ safePasswordLength?: {
+ type: NumberConstructor;
+ value?: number;
+ };
+ safePasswordNonce?: {
+ type: StringConstructor;
+ value?: string;
+ };
+ safePasswordSalt?: {
+ type: StringConstructor;
+ value?: string;
+ };
+ safePasswordTimeStamp?: {
+ type: NumberConstructor;
+ value?: number;
+ };
+ selectionEnd?: {
+ type: NumberConstructor;
+ value?: number;
+ };
+ selectionStart?: {
+ type: NumberConstructor;
+ value?: number;
};
status?: {
type: StringConstructor;
@@ -84,91 +158,9 @@
value?: 'text' | 'number' | 'idcard' | 'digit' | 'safe-password' | 'password' | 'nickname';
};
value?: {
- type: StringConstructor;
- optionalTypes: Array<NumberConstructor>;
+ type: null;
value?: InputValue;
- };
- defaultValue?: {
- type: StringConstructor;
- optionalTypes: Array<NumberConstructor>;
- value?: InputValue;
- };
- placeholderStyle: {
- type: StringConstructor;
- value?: string;
- };
- placeholderClass?: {
- type: StringConstructor;
- value?: string;
- };
- cursorSpacing?: {
- type: NumberConstructor;
- value?: number;
- };
- autoFocus?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- focus?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- confirmType?: {
- type: StringConstructor;
- value?: 'send' | 'search' | 'next' | 'go' | 'done';
- };
- alwaysEmbed?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- confirmHold?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- cursor: {
- type: NumberConstructor;
- value?: number;
- };
- selectionStart?: {
- type: NumberConstructor;
- value?: number;
- };
- selectionEnd?: {
- type: NumberConstructor;
- value?: number;
- };
- adjustPosition?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- holdKeyboard?: {
- type: BooleanConstructor;
- value?: boolean;
- };
- safePasswordCertPath?: {
- type: StringConstructor;
- value?: string;
- };
- safePasswordLength?: {
- type: NumberConstructor;
- value?: number;
- };
- safePasswordTimeStamp?: {
- type: NumberConstructor;
- value?: number;
- };
- safePasswordNonce?: {
- type: StringConstructor;
- value?: string;
- };
- safePasswordSalt?: {
- type: StringConstructor;
- value?: string;
- };
- safePasswordCustomHash?: {
- type: StringConstructor;
- value?: string;
};
}
-export declare type InputFormatType = (value: InputValue) => number | string;
+export declare type InputFormatType = (value: InputValue) => string;
export declare type InputValue = string | number;
--
Gitblit v1.9.3