mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
docs: deprecate styleScheme & themeEnv
This commit is contained in:
parent
cf2603e9f4
commit
acd96b3d2e
@ -16,4 +16,4 @@ color
|
|||||||
## Slots
|
## Slots
|
||||||
|Name|Parameters|Description|
|
|Name|Parameters|Description|
|
||||||
|-|-|-|
|
|-|-|-|
|
||||||
|default|`(options: { theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: Object })`||
|
|default|`(options: { theme: string, namespace: string, language: string })`||
|
@ -1,4 +1,4 @@
|
|||||||
# Theme Environments
|
# Theme Environments (Deprecated)
|
||||||
Get current theme environment.
|
Get current theme environment.
|
||||||
```html
|
```html
|
||||||
<n-space vertical>
|
<n-space vertical>
|
||||||
|
@ -16,4 +16,4 @@ color
|
|||||||
## Slots
|
## Slots
|
||||||
|名称|参数|说明|
|
|名称|参数|说明|
|
||||||
|-|-|-|
|
|-|-|-|
|
||||||
|default|`(options: { theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: Object })`||
|
|default|`(options: { theme: string, namespace: string, language: string })`||
|
@ -1,4 +1,4 @@
|
|||||||
# 主题环境
|
# 主题环境(弃用)
|
||||||
获得当前主题环境值。
|
获得当前主题环境值。
|
||||||
```html
|
```html
|
||||||
<n-space vertical>
|
<n-space vertical>
|
||||||
|
@ -5,10 +5,10 @@ Config Provider is used to set global theme, set global language and set namespa
|
|||||||
theme
|
theme
|
||||||
namespace
|
namespace
|
||||||
inherit-theme
|
inherit-theme
|
||||||
theme-environment
|
|
||||||
os-theme
|
os-theme
|
||||||
language
|
language
|
||||||
transparent
|
transparent
|
||||||
|
theme-environment
|
||||||
```
|
```
|
||||||
## Props
|
## Props
|
||||||
|Name|Type|Default|Description|
|
|Name|Type|Default|Description|
|
||||||
@ -18,4 +18,3 @@ transparent
|
|||||||
|language|`string`|`'en-US'`|Language of components inside `n-config-provider`|
|
|language|`string`|`'en-US'`|Language of components inside `n-config-provider`|
|
||||||
|namespace|`string`|`undefined`|Class name of detached parts of components inside `n-config-provider`|
|
|namespace|`string`|`undefined`|Class name of detached parts of components inside `n-config-provider`|
|
||||||
|theme|`string`|`undefined`|Theme name of components inside `n-config-provider`|
|
|theme|`string`|`undefined`|Theme name of components inside `n-config-provider`|
|
||||||
|theme-environments|`{ [themeName: string]: any }`|`undefined`|An object with some value which can be accessed by `n-config-consumer` or `n-element` inside `n-config-provider`|
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Theme Environments
|
# Theme Environments (Deprecated)
|
||||||
Sometimes you may need some component to access some values at specific theme. You can use `theme-environments`.
|
Sometimes you may need some component to access some values at specific theme. You can use `theme-environments`.
|
||||||
```html
|
```html
|
||||||
<div>
|
<div>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
theme
|
theme
|
||||||
namespace
|
namespace
|
||||||
inherit-theme
|
inherit-theme
|
||||||
theme-environment
|
|
||||||
os-theme
|
os-theme
|
||||||
language
|
language
|
||||||
transparent
|
transparent
|
||||||
|
theme-environment
|
||||||
```
|
```
|
||||||
## Props
|
## Props
|
||||||
|名称|类型|默认值|说明|
|
|名称|类型|默认值|说明|
|
||||||
@ -16,7 +16,7 @@ transparent
|
|||||||
|abstract|`boolean`|`false`|是否不存在 DOM 包裹|
|
|abstract|`boolean`|`false`|是否不存在 DOM 包裹|
|
||||||
|tag|`string`|`'div'`|`n-config-provider` 被渲染成的元素|
|
|tag|`string`|`'div'`|`n-config-provider` 被渲染成的元素|
|
||||||
|language|`string`|`'en-US'`|`n-config-provider` 内部的组件语言|
|
|language|`string`|`'en-US'`|`n-config-provider` 内部的组件语言|
|
||||||
|namespace|`string`'`undefined`|`n-config-provider` 内部组件被卸载于其他位置的 DOM 的类名|
|
|namespace|`string`|`undefined`|`n-config-provider` 内部组件被卸载于其他位置的 DOM 的类名|
|
||||||
|theme|`string`'`undefined`|`n-config-provider` 内部组件的主题|
|
|theme|`string`|`undefined`|`n-config-provider` 内部组件的主题|
|
||||||
|theme-environments|`{ [themeName: string]: any }`'`undefined`|一个可以被 `n-config-consumer` 或 `n-element` 获取到的主题环境变量,|
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# 主题环境
|
# 主题环境(弃用)
|
||||||
你有的时候可能需要让一些组件在特定主题下获取一些值,这个时候你可以设定环境主题。
|
你有的时候可能需要让一些组件在特定主题下获取一些值,这个时候你可以设定环境主题。
|
||||||
```html
|
```html
|
||||||
<div>
|
<div>
|
||||||
|
@ -15,4 +15,4 @@ color
|
|||||||
## Slots
|
## Slots
|
||||||
|Name|Parameters|Description|
|
|Name|Parameters|Description|
|
||||||
|-|-|-|
|
|-|-|-|
|
||||||
|default|`(theme: string, namespace: string, themeEnvironment: any, styleScheme: Object)`||
|
|default|`(theme: string, namespace: string)`||
|
||||||
|
@ -16,4 +16,4 @@ color
|
|||||||
## Slots
|
## Slots
|
||||||
|名称|参数|说明|
|
|名称|参数|说明|
|
||||||
|-|-|-|
|
|-|-|-|
|
||||||
|default|`(theme: string, namespace: string, themeEnvironment: any, styleScheme: Object)`||
|
|default|`(theme: string, namespace: string)`||
|
Loading…
Reference in New Issue
Block a user