From 8e3f3890e93d097df4be744648b9ac404d20a558 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 23 四月 2026 17:58:50 +0800
Subject: [PATCH] 2026.4.23
---
miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts b/miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts
index 8f41b2b..0eb8b14 100644
--- a/miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts
+++ b/miniprogram_npm/tdesign-miniprogram/checkbox/checkbox.d.ts
@@ -1,4 +1,6 @@
import { SuperComponent, ComponentsOptionsType, RelationsOptions } from '../common/src/index';
+import { TdCheckboxProps } from './type';
+export declare type CheckboxProps = TdCheckboxProps;
export default class CheckBox extends SuperComponent {
externalClasses: string[];
behaviors: string[];
@@ -9,15 +11,14 @@
type: StringConstructor;
value: string;
};
- borderless: {
- type: BooleanConstructor;
- value: boolean;
- };
- placement?: {
+ tId: {
type: StringConstructor;
- value?: "left" | "right";
};
block?: {
+ type: BooleanConstructor;
+ value?: boolean;
+ };
+ borderless?: {
type: BooleanConstructor;
value?: boolean;
};
@@ -41,21 +42,13 @@
type: BooleanConstructor;
value?: boolean;
};
- style?: {
- type: StringConstructor;
- value?: string;
- };
disabled?: {
type: BooleanConstructor;
value?: boolean;
};
- externalClasses?: {
- type: ArrayConstructor;
- value?: ["t-class", "t-class-icon", "t-class-label", "t-class-content", "t-class-border"];
- };
icon?: {
type: null;
- value?: string[] | "circle" | "rectangle" | "line";
+ value?: import("./type").CheckboxIconType;
};
indeterminate?: {
type: BooleanConstructor;
@@ -77,6 +70,10 @@
type: StringConstructor;
value?: string;
};
+ placement?: {
+ type: StringConstructor;
+ value?: "left" | "right";
+ };
readonly?: {
type: BooleanConstructor;
value?: boolean;
@@ -89,12 +86,17 @@
data: {
prefix: string;
classPrefix: string;
+ _disabled: boolean;
+ };
+ observers: {
+ disabled(v: any): void;
};
controlledProps: {
key: string;
event: string;
}[];
methods: {
- onChange(e: WechatMiniprogram.TouchEvent): void;
+ handleTap(e: WechatMiniprogram.TouchEvent): void;
+ setDisabled(disabled: Boolean): void;
};
}
--
Gitblit v1.9.3