Skip to content

Commit

Permalink
docs: starttaro md
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Jul 8, 2021
1 parent 6b0c16b commit b2a0873
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
},
{
"name": "2.x",
"link": "/"
"link": "/2x/"
},
{
"name": "3.x",
"link": "/3x/"
"link": "/"
},
{
"name": "nutui-jdl",
Expand Down
12 changes: 6 additions & 6 deletions src/docs/starttaro.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ taro init myApp
```javascript
import { createApp } from "vue";
import App from "./App.vue";
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";
createApp(App).use(NutUI).mount("#app");
import NutUI from "@nutui/nutui-taro";
import "@nutui/nutui-taro/dist/style.css";
createApp(App).use(NutUI);
```

> 注意:这种方式将会导入所有组件
Expand All @@ -56,7 +56,7 @@ createApp(App).use(NutUI).mount("#app");
```javascript
import { createApp } from "vue";
import App from "./App.vue";
import { Button, Cell, Icon } from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";
createApp(App).use(Button).use(Cell).use(Icon).mount("#app");
import { Button, Cell, Icon } from "@nutui/nutui-taro";
import "@nutui/nutui-taro/dist/style.css";
createApp(App).use(Button).use(Cell).use(Icon);
```

0 comments on commit b2a0873

Please sign in to comment.