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/notice-bar/type.d.ts | 29 ++++++++++-------------------
1 files changed, 10 insertions(+), 19 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/notice-bar/type.d.ts b/miniprogram_npm/tdesign-miniprogram/notice-bar/type.d.ts
index 4340a9a..61c7ca6 100644
--- a/miniprogram_npm/tdesign-miniprogram/notice-bar/type.d.ts
+++ b/miniprogram_npm/tdesign-miniprogram/notice-bar/type.d.ts
@@ -1,35 +1,27 @@
export interface TdNoticeBarProps {
content?: {
type: null;
- value?: null;
- };
- style?: {
- type: StringConstructor;
- value?: string;
+ value?: string | string[];
};
direction?: {
type: StringConstructor;
value?: 'horizontal' | 'vertical';
};
- externalClasses?: {
- type: ArrayConstructor;
- value?: ['t-class', 't-class-content', 't-class-prefix-icon', 't-class-operation', 't-class-suffix-icon'];
+ interval?: {
+ type: NumberConstructor;
+ value?: number;
+ };
+ marquee?: {
+ type: null;
+ value?: boolean | NoticeBarMarquee;
};
operation?: {
type: StringConstructor;
value?: string;
};
- interval: {
- type: NumberConstructor;
- value: number;
- };
- marquee?: {
- type: null;
- value?: boolean | DrawMarquee;
- };
prefixIcon?: {
type: null;
- value?: boolean | string | object;
+ value?: string | boolean | object;
};
suffixIcon?: {
type: null;
@@ -48,8 +40,7 @@
value?: boolean;
};
}
-export declare type NoticeBarTrigger = 'prefix-icon' | 'content' | 'operation' | 'suffix-icon';
-export interface DrawMarquee {
+export interface NoticeBarMarquee {
speed?: number;
loop?: number;
delay?: number;
--
Gitblit v1.9.3