File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
apps/docs/src/docs/advance Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 66
77``` ts
88export 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 */
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 */
5459export function ThemeProvider ( props : Props ) : JSX . Element {
5560 const [ , theme ] = splitProps ( props , [ 'children' ] ) ;
You can’t perform that action at this time.
0 commit comments