Browse Source

fix: 文档修改

Ymm0008 3 years ago
parent
commit
6ddb36f984

+ 20 - 17
src/packages/__VUE/dialog/doc.en-US.md

@@ -126,23 +126,6 @@ export default {
 ```
 ::: 
 
-### Teleport use, mount to the specified element node
-
-``` html
-<nut-dialog teleport="#app" ... />
-```
-
-``` javascript
-showDialog({
-  teleport: '#app',
-  ...
-});
-showDialog({
-  teleport: '.demo',
-  ...
-});
-```
-
 ### Template use
 
 :::demo
@@ -186,6 +169,26 @@ export default {
 </script>
 ```
 :::
+
+
+### Teleport use, mount to the specified element node
+
+``` html
+<nut-dialog teleport="#app" ... />
+```
+
+``` javascript
+showDialog({
+  teleport: '#app',
+  ...
+});
+showDialog({
+  teleport: '.demo',
+  ...
+});
+```
+
+
 ## API
 ### DialogOptions
 | Attribute           | Description                                                                    | Type                     | Default              |

+ 19 - 20
src/packages/__VUE/dialog/doc.md

@@ -18,7 +18,7 @@ app.use(Dialog);
 ```
 
 
-### 函数调用
+### 函数调用
 
 :::demo
 ```html
@@ -126,30 +126,13 @@ export default {
 ```
 ::: 
 
-### teleport 使用,挂载到指定节点
-
-``` html
-<nut-dialog teleport="#app" ... />
-```
-
-``` javascript
-showDialog({
-  teleport: '#app',
-  ...
-});
-showDialog({
-  teleport: '.demo',
-  ...
-});
-```
-
-### 标签式组件使用
+### 标签式使用
 
 :::demo
 ```html
 <template>
   <nut-cell-group title="标签式使用">
-    <nut-cell title="组件调用" @click="componentClick"></nut-cell>
+    <nut-cell title="标签式使用" @click="componentClick"></nut-cell>
     <nut-dialog
       teleport="#app"
       title="组件调用"
@@ -187,6 +170,22 @@ export default {
 ```
 :::
 
+### teleport 使用,挂载到指定节点
+
+``` html
+<nut-dialog teleport="#app" ... />
+```
+
+``` javascript
+showDialog({
+  teleport: '#app',
+  ...
+});
+showDialog({
+  teleport: '.demo',
+  ...
+});
+```
 ## API
 ### DialogOptions
 | 参数                | 说明                                                          | 类型                     | 默认值               |

+ 1 - 1
src/sites/mobile-taro/vue/src/app.config.ts

@@ -110,7 +110,7 @@ const subPackages = [
 ];
 
 export default {
-  pages: ['pages/index/index', 'pages/index/layout'],
+  pages: ['pages/index/index'],
   subPackages,
   window: {
     backgroundTextStyle: 'light',