You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config-provider/demos/enUS/index.demo-entry.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ For more info about theming, see [Customizing Theme](../docs/customize-theme).
10
10
theme.vue
11
11
namespace.vue
12
12
inherit-theme.vue
13
-
cls-prefix.vue
14
13
os-theme.vue
15
14
language.vue
16
15
transparent.vue
@@ -25,14 +24,14 @@ inline-theme-disabled.vue
25
24
| --- | --- | --- | --- | --- |
26
25
| abstract |`boolean`|`false`| If `n-config-provider` has no wrapper DOM ||
27
26
| breakpoints |`{ [k: string]: number }`|`{ xs: 0, s: 640, m: 1024, l: 1280, xl: 1536, xxl: 1920 }`| Responsive breakpoints, it will be used in `n-grid`. The prop is not responsive, you need to set it on its first mount. ||
28
-
| cls-prefix |`string`|`undefined`| The class prefix of all inner components. It's applied in the first time. ||
27
+
| cls-prefix |`string`|`undefined`| The class prefix of all inner components. (Since `NEXT_VERSION`) If you don't set the `cls-prefix` prop of `n-config-provider`, it will inherit the class prefix from its parent by default. Note that this prop is not reactive. ||
29
28
| date-locale |`DateLocale \| null`|`undefined`| The date locale object to be consumed by its child. If set to `null` it will use the default `dateEnUS` locale. If set to `undefined` it will inherit its parent `n-config-provider`. ||
30
29
| inline-theme-disabled |`boolean`|`false`| Whether to disabled inline theme CSS variables. If you won't change theme overrides frequently in client side, and need SSR or make devtools looks clear. You can enable the prop. Note that the prop is not responsive. | 2.26.0 |
31
30
| katex |`object`|`undefined`| Katex object for `n-equation`. | 2.34.0 |
32
31
| locale |`Locale \| null`|`undefined`| The locale object to be consumed by its child. If set to `null` it will use the default `enUS` locale. If set to `undefined` it will inherit its parent `n-config-provider`. ||
33
32
| namespace |`string`|`undefined`| Class name of detached parts of components inside `n-config-provider`||
34
33
| preflight-style-disabled |`boolean`|`false`| Whether to disabled preflight style of naive-ui. If you disable it, you can take control of all global css. Also you can use `n-global-style` to apply global style (which is recommend since global style will be reactive). | 2.29.0 |
35
-
| style-mount-target |`ParentNode`|`undefined`| Mounting target of style elements of components. | NEXT_VERSION |
34
+
| style-mount-target |`ParentNode`|`undefined`| Mounting target of style elements of components. Note that this prop is not reactive. | NEXT_VERSION |
36
35
| tag |`string`|`'div'`| What tag `n-config-provider` will be rendered as ||
37
36
| theme |`Theme \| null`|`undefined`| The theme object to be consumed by its child. If set to `null` it will use the default light theme. If set to `undefined` it will inherit its parent `n-config-provider`. For more details please see [Customizing Theme](../docs/customize-theme). ||
38
37
| theme-overrides |`ThemeOverrides \| null`|`undefined`| The theme vars overrides to be consumed by its child. If set to `null` it will clear all theme vars. If set to `undefined` it will inherit its parent `n-config-provider`. For more details please see [Customizing Theme](../docs/customize-theme). ||
0 commit comments