Skip to content

Commit c644cf1

Browse files
committed
refactor: actions 将 node 改为 24
nodejs/node#57666 原因,与 webStorage 相关的测试暂时不兼容。
1 parent 7a87a0d commit c644cf1

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: 25
27+
node-version: 24
2828

2929
- name: Install pnpm
3030
uses: pnpm/action-setup@v4

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: 25
20+
node-version: 24
2121
registry-url: https://registry.npmjs.org/
2222

2323
- name: Install pnpm

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Node
2020
uses: actions/setup-node@v6
2121
with:
22-
node-version: 25
22+
node-version: 24
2323

2424
- name: Install pnpm
2525
uses: pnpm/action-setup@v4

apps/docs/src/docs/advance/custom-theme.zh-Hans.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
```ts
88
export interface Scheme {
9-
[k: string]: any;
10-
11-
// 对主题的修改,大部分是对 tailwind 主题的修改,其字段来源于:
12-
// https://github.com/tailwindlabs/tailwindcss/blob/main/packages/tailwindcss/theme.css
13-
149
/**
1510
* 用于指示当前主题颜色的对比度
1611
*/

packages/components/src/button/style.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
}
184184

185185
.group.flat:enabled:hover {
186-
@apply bg-palette-bg-focused text-palette-fg-focused border-palette-border-focused;
186+
@apply bg-palette-bg-focused text-palette-fg-focused;
187187
}
188188

189189
.button.link-disabled,

packages/components/src/context/theme.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export type Props = ParentProps<{
2323
/**
2424
* 主题配置
2525
*
26-
* @remarks 如果是 string 类型,则从 {@link Options.schemes} 查找同名的,
26+
* @remarks
27+
* 如果是 string 类型,则从 {@link Options.schemes} 查找同名的,
2728
* 如果是 {@link Scheme} 类型则表示直接应用该主题。
2829
*
2930
* @reactive
@@ -40,16 +41,20 @@ export type Props = ParentProps<{
4041
/**
4142
* 指定用于保存当前主题样式的元素 ID
4243
*
43-
* @remarks 当指定了该值,会将主题的样式写在此元素上。否则样式会依次写在 {@link children} 元素上。
44+
* @remarks
45+
* 当指定了该值,会将主题的样式写在此元素上。否则样式会依次写在 {@link children} 元素上。
4446
* 某些情况下可能存在一个无任何展示内容的父元素,此时可以指定其作为保存主题样式的元素。
4547
*/
4648
styleElement?: HTMLElement;
4749
}>;
4850

4951
/**
50-
* 指定一个新的主题对象,未指定的参数从父类继承。
52+
* 指定一个新的主题对象
5153
*
52-
* NOTE: 如果 {@link Props.children} 不是 HTMLElement 类型,将不启作用。
54+
* @remarks
55+
* 未指定的参数从父类继承。
56+
* 如果 {@link Props.children} 不是 HTMLElement 类型,将不启作用。
57+
* 只对被包含的元素起作用,像 notify 等方法触发的通知框,其所在的位置如果不在当前范围之内,主题对其不起作用。
5358
*/
5459
export function ThemeProvider(props: Props): JSX.Element {
5560
const [, theme] = splitProps(props, ['children']);

0 commit comments

Comments
 (0)