From b515fae43490ab20977d559e19d4e5f63a4fd96d Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 25 四月 2025 16:42:39 +0800 Subject: [PATCH] 应急线索模块 --- miniprogram_npm/tdesign-miniprogram/notice-bar/README.en-US.md | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/notice-bar/README.en-US.md b/miniprogram_npm/tdesign-miniprogram/notice-bar/README.en-US.md index 6d98c4a..9abafcd 100644 --- a/miniprogram_npm/tdesign-miniprogram/notice-bar/README.en-US.md +++ b/miniprogram_npm/tdesign-miniprogram/notice-bar/README.en-US.md @@ -10,6 +10,7 @@ external-classes | Array | - | `['t-class', 't-class-content', 't-class-prefix-icon', 't-class-operation', 't-class-suffix-icon']` | N operation | String / Slot | - | \- | N marquee | Boolean / Object | false | Typescript锛歚boolean \| DrawMarquee` `interface DrawMarquee { speed?: number; loop?: number; delay?: number }`銆俒see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/notice-bar/type.ts) | N +interval | Number | 2000 | - | N prefix-icon | String / Boolean/ Object / Slot | - | \- | N suffix-icon | String / Boolean / Object / Slot | - | \- | N theme | String | info | options锛歩nfo/success/warning/error | N @@ -21,3 +22,21 @@ name | params | description -- | -- | -- click | `(trigger: NoticeBarTrigger)` | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/notice-bar/type.ts)銆�<br/>`type NoticeBarTrigger = 'prefix-icon' \| 'content' \| 'operation' \| 'suffix-icon';`<br/> +change | `(current: number, source: '' \| 'autoplay' \| 'touch')` | `direction="vertical"` + + +### CSS Variables +The component provides the following CSS variables, which can be used to customize styles. +Name | Default Value | Description +-- | -- | -- +--td-notice-bar-error-bg-color | @error-color-1 | - +--td-notice-bar-error-color | @error-color-6 | - +--td-notice-bar-font-color | @font-gray-1 | - +--td-notice-bar-info-bg-color | @brand-color-light | - +--td-notice-bar-info-color | @brand-color | - +--td-notice-bar-operation-font-color | @brand-color | - +--td-notice-bar-success-bg-color | @success-color-1 | - +--td-notice-bar-success-color | @success-color | - +--td-notice-bar-suffix-icon-color | @font-gray-3 | - +--td-notice-bar-warning-bg-color | @warning-color-1 | - +--td-notice-bar-warning-color | @warning-color | - -- Gitblit v1.9.3