mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-11 13:10:26 +08:00
docs: fix typo
This commit is contained in:
parent
d449c1f613
commit
0c3633404b
@ -2,9 +2,9 @@
|
||||
|
||||
After version `2.30.3`, you can use UMD version of naive.
|
||||
|
||||
If you want use a minified version of naive, use `https://unpkg.com/naive-ui@version/dist/index.prod.js` as `src`. If you don't specify a version, latest version would be used.
|
||||
If you want to use a minified version of naive, use `https://unpkg.com/naive-ui@version/dist/index.prod.js` as `src`. `version` is the version of naive-ui you want to use. If you don't specify a version, latest version would be used.
|
||||
|
||||
You'd better lock version of package, nor there may be some breaking changes.
|
||||
You'd better lock version of the package, nor there may be some breaking changes.
|
||||
|
||||
Here's a basic demo:
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Prequisites
|
||||
|
||||
<n-alert title="Note" type="warning" style="margin-bottom: 16px;">
|
||||
Due to package size, Naive UI doesn't include highlight.js. If you want use Code, make sure you have set highlightjs before using it.
|
||||
Due to package size, Naive UI doesn't include highlight.js. If you want to use Code, make sure you have set highlightjs before using it.
|
||||
</n-alert>
|
||||
|
||||
The following code shows how to set hljs of Code. Importing highlight.js on demand is recommonded, because it can significantly reduce bundle size of your app.
|
||||
|
@ -3,7 +3,7 @@
|
||||
Before taking action, please confirm.
|
||||
|
||||
<n-alert title="Prerequisite" type="warning">
|
||||
If you want use dialog, you need to wrap the component where you call related methods inside <n-text code>n-dialog-provider</n-text> and use <n-text code>useDialog</n-text> to get the API.
|
||||
If you want to use dialog, you need to wrap the component where you call related methods inside <n-text code>n-dialog-provider</n-text> and use <n-text code>useDialog</n-text> to get the API.
|
||||
</n-alert>
|
||||
|
||||
For example:
|
||||
|
@ -4,7 +4,7 @@ A kind of good placebo for anxiety.
|
||||
|
||||
<n-space vertical size="large">
|
||||
<n-alert title="Prerequisite" type="warning">
|
||||
If you want use loading bar, you need to wrap the component where you call related methods inside <n-text code>n-loading-bar-provider</n-text> and inject <n-text code>loadingBar</n-text>.
|
||||
If you want to use loading bar, you need to wrap the component where you call related methods inside <n-text code>n-loading-bar-provider</n-text> and inject <n-text code>loadingBar</n-text>.
|
||||
</n-alert>
|
||||
For example:
|
||||
|
||||
|
@ -4,9 +4,9 @@ Oracle from the top(always) of the browser.
|
||||
|
||||
<n-space vertical size="large">
|
||||
<n-alert title="Prerequisite" type="warning">
|
||||
If you want use message, you need to wrap the component where you call related methods inside <n-text code>n-message-provider</n-text> and use <n-text code>useMessage</n-text> to get the API.
|
||||
If you want to use message, you need to wrap the component where you call related methods inside <n-text code>n-message-provider</n-text> and use <n-text code>useMessage</n-text> to get the API.
|
||||
<br/>
|
||||
If you want use it outside setup, please refer to Q & A part at the bottom of the page.
|
||||
If you want to use it outside setup, please refer to Q & A part at the bottom of the page.
|
||||
</n-alert>
|
||||
For example:
|
||||
|
||||
|
@ -6,7 +6,7 @@ Notification component is always with low piority so I can make a lot of useless
|
||||
|
||||
<n-space vertical size="large">
|
||||
<n-alert title="Prerequisite" type="warning">
|
||||
If you want use notification, you need to wrap the component where you call related methods inside <n-text code>n-notification-provider</n-text> and use <n-text code>useNotification</n-text> to get the API.
|
||||
If you want to use notification, you need to wrap the component where you call related methods inside <n-text code>n-notification-provider</n-text> and use <n-text code>useNotification</n-text> to get the API.
|
||||
</n-alert>
|
||||
|
||||
For example:
|
||||
|
Loading…
Reference in New Issue
Block a user