naive-ui/demo/pages/docs/experimental-features/zhCN/index.md

29 lines
589 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--anchor:on-->
# 试验性特性
<n-alert type="warning" title="注意">
下列的所有功能都是<n-text strong>不稳定</n-text>的。只在真的需要的时候再使用他们API 有可能在未来被改变。
</n-alert>
## 使用图森主题
```html
<script>
import { TsConfigProvider, useDialog, useMessage } from '@naive-ui/tusimple-theme'
// danger typed api
const dialog = useDialog()
dialog.danger(...)
const message = useMessage()
message.danger(...)
</script>
<template>
<ts-config-provider>
<my-app />
</ts-config-provider>
</template>
```