diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/basic.vue b/packages/nutui-taro-demo/src/nav/pages/menu/basic.vue new file mode 100644 index 0000000000..405e679734 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/basic.vue @@ -0,0 +1,26 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/col.vue b/packages/nutui-taro-demo/src/nav/pages/menu/col.vue new file mode 100644 index 0000000000..95a9aa9c6e --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/col.vue @@ -0,0 +1,30 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/color.vue b/packages/nutui-taro-demo/src/nav/pages/menu/color.vue new file mode 100644 index 0000000000..ba72dcbe29 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/color.vue @@ -0,0 +1,22 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/custom.vue b/packages/nutui-taro-demo/src/nav/pages/menu/custom.vue new file mode 100644 index 0000000000..6cb027d6d2 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/custom.vue @@ -0,0 +1,26 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/disabled.vue b/packages/nutui-taro-demo/src/nav/pages/menu/disabled.vue new file mode 100644 index 0000000000..ca39943f7e --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/disabled.vue @@ -0,0 +1,26 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/icon.vue b/packages/nutui-taro-demo/src/nav/pages/menu/icon.vue new file mode 100644 index 0000000000..f33132673e --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/icon.vue @@ -0,0 +1,30 @@ + + + diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/index.vue b/packages/nutui-taro-demo/src/nav/pages/menu/index.vue index 76978a331e..692ab614de 100644 --- a/packages/nutui-taro-demo/src/nav/pages/menu/index.vue +++ b/packages/nutui-taro-demo/src/nav/pages/menu/index.vue @@ -1,102 +1,56 @@ - - diff --git a/packages/nutui-taro-demo/src/nav/pages/menu/up.vue b/packages/nutui-taro-demo/src/nav/pages/menu/up.vue new file mode 100644 index 0000000000..5b1c22b149 --- /dev/null +++ b/packages/nutui-taro-demo/src/nav/pages/menu/up.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/menu/demo.vue b/src/packages/__VUE/menu/demo.vue deleted file mode 100644 index 1ba97f4ff0..0000000000 --- a/src/packages/__VUE/menu/demo.vue +++ /dev/null @@ -1,176 +0,0 @@ - - - diff --git a/src/packages/__VUE/menu/demo/basic.vue b/src/packages/__VUE/menu/demo/basic.vue new file mode 100644 index 0000000000..405e679734 --- /dev/null +++ b/src/packages/__VUE/menu/demo/basic.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/menu/demo/col.vue b/src/packages/__VUE/menu/demo/col.vue new file mode 100644 index 0000000000..95a9aa9c6e --- /dev/null +++ b/src/packages/__VUE/menu/demo/col.vue @@ -0,0 +1,30 @@ + + + diff --git a/src/packages/__VUE/menu/demo/color.vue b/src/packages/__VUE/menu/demo/color.vue new file mode 100644 index 0000000000..ba72dcbe29 --- /dev/null +++ b/src/packages/__VUE/menu/demo/color.vue @@ -0,0 +1,22 @@ + + + diff --git a/src/packages/__VUE/menu/demo/custom.vue b/src/packages/__VUE/menu/demo/custom.vue new file mode 100644 index 0000000000..6cb027d6d2 --- /dev/null +++ b/src/packages/__VUE/menu/demo/custom.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/menu/demo/disabled.vue b/src/packages/__VUE/menu/demo/disabled.vue new file mode 100644 index 0000000000..ca39943f7e --- /dev/null +++ b/src/packages/__VUE/menu/demo/disabled.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/menu/demo/icon.vue b/src/packages/__VUE/menu/demo/icon.vue new file mode 100644 index 0000000000..68a542df24 --- /dev/null +++ b/src/packages/__VUE/menu/demo/icon.vue @@ -0,0 +1,30 @@ + + + diff --git a/src/packages/__VUE/menu/demo/index.vue b/src/packages/__VUE/menu/demo/index.vue new file mode 100644 index 0000000000..afe9ee2777 --- /dev/null +++ b/src/packages/__VUE/menu/demo/index.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/packages/__VUE/menu/demo/up.vue b/src/packages/__VUE/menu/demo/up.vue new file mode 100644 index 0000000000..5b1c22b149 --- /dev/null +++ b/src/packages/__VUE/menu/demo/up.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/packages/__VUE/menu/doc.en-US.md b/src/packages/__VUE/menu/doc.en-US.md index 4cea496f70..9d0c4271b6 100644 --- a/src/packages/__VUE/menu/doc.en-US.md +++ b/src/packages/__VUE/menu/doc.en-US.md @@ -17,301 +17,33 @@ app.use(MenuItem); ### Basic Usage -:::demo - -```vue - - - -``` - -::: +> demo: menu basic ### Custom Menu Content Popup can be closed with toggle method in menu instance. -:::demo - -```vue - - - -``` - -::: +> demo: menu custom ### Two Cols In One Line -:::demo - -```vue - - - -``` - -::: +> demo: menu col ### Custom Active Color -:::demo - -```vue - - - -``` - -::: +> demo: menu color ### Custom Icons -:::demo - -```vue - - - -``` - -::: +> demo: menu icon ### Expand Directions -:::demo - -```vue - - - - -``` - -::: +> demo: menu up ### Disable Menu -:::demo - -```vue - - - -``` - -::: +> demo: menu disabled ## API diff --git a/src/packages/__VUE/menu/doc.md b/src/packages/__VUE/menu/doc.md index 43560637d0..4b24680207 100644 --- a/src/packages/__VUE/menu/doc.md +++ b/src/packages/__VUE/menu/doc.md @@ -17,301 +17,33 @@ app.use(MenuItem); ### 基础用法 -:::demo - -```vue - - - -``` - -::: +> demo: menu basic ### 自定义菜单内容 使用实例上的 toggle 方法可以手动关闭弹框。 -:::demo - -```vue - - - -``` - -::: +> demo: menu custom ### 一行两列 -:::demo - -```vue - - - -``` - -::: +> demo: menu col ### 自定义选中态颜色 -:::demo - -```vue - - - -``` - -::: +> demo: menu color ### 自定义图标 -:::demo - -```vue - - - -``` - -::: +> demo: menu icon ### 向上展开 -:::demo - -```vue - - - - -``` - -::: +> demo: menu up ### 禁用菜单 -:::demo - -```vue - - - -``` - -::: +> demo: menu disabled ## API diff --git a/src/packages/__VUE/menu/doc.taro.md b/src/packages/__VUE/menu/doc.taro.md index c2b47be0ef..0b38c91119 100644 --- a/src/packages/__VUE/menu/doc.taro.md +++ b/src/packages/__VUE/menu/doc.taro.md @@ -17,301 +17,33 @@ app.use(MenuItem); ### 基础用法 -:::demo - -```vue - - - -``` - -::: +> demo: menu basic nav ### 自定义菜单内容 使用实例上的 toggle 方法可以手动关闭弹框。 -:::demo - -```vue - - - -``` - -::: +> demo: menu custom nav ### 一行两列 -:::demo - -```vue - - - -``` - -::: +> demo: menu col nav ### 自定义选中态颜色 -:::demo - -```vue - - - -``` - -::: +> demo: menu color nav ### 自定义图标 -:::demo - -```vue - - - -``` - -::: +> demo: menu icon nav ### 向上展开 -:::demo - -```vue - - - - -``` - -::: +> demo: menu up nav ### 禁用菜单 -:::demo - -```vue - - - -``` - -::: +> demo: menu disabled nav ## API