ソースを参照

docs: 文档修改

Ymm0008 3 年 前
コミット
71bc8711d6

+ 4 - 2
src/packages/__VUE/collapse/demo.vue

@@ -124,6 +124,10 @@ const initTranslate = () =>
     }
   });
 export default createDemo({
+  components: {
+    Notice,
+    Follow
+  },
   setup(props, context) {
     initTranslate();
     const data = reactive({
@@ -142,8 +146,6 @@ export default createDemo({
       console.log(`点击了name是${name}的面板`);
     };
     return {
-      Notice,
-      Follow,
       translate,
       change,
       ...toRefs(data)

+ 4 - 2
src/packages/__VUE/collapse/doc.en-US.md

@@ -127,6 +127,10 @@ Set custom icons through icon and rotate to set the rotation angle of icons
 import { reactive, ref, toRefs } from 'vue';
 import { Notice, Follow } from '@nutui/icons-vue';
 export default {
+  components: {
+    Notice,
+    Follow
+  },
   setup() {
     const activeName = ref(1);
     const title = reactive({
@@ -136,8 +140,6 @@ export default {
     return {
       activeName,
       ...toRefs(title),
-      Notice,
-      Follow
     };
   }
 }

+ 4 - 2
src/packages/__VUE/collapse/doc.md

@@ -126,6 +126,10 @@ export default {
 import { reactive, ref, toRefs } from 'vue';
 import { Notice, Follow } from '@nutui/icons-vue';
 export default {
+  components: {
+    Notice,
+    Follow
+  },
   setup() {
     const activeName = ref(1);
     const title = reactive({
@@ -135,8 +139,6 @@ export default {
     return {
       activeName,
       ...toRefs(title),
-      Notice,
-      Follow
     };
   }
 }

+ 1 - 1
src/packages/__VUE/noticebar/doc.en-US.md

@@ -209,7 +209,7 @@ When text is long, you can enable multi-line display by setting the wrapable pro
     components: { Fabulous },
     setup(props) {
       const horseLamp1 = ref(['Noticebar 公告栏', 'Cascader 级联选择', 'DatePicker 日期选择器', 'CheckBox 复选按钮']);
-      return { horseLamp1,Fabulous };
+      return { horseLamp1 };
     }
   }
 </script>

+ 1 - 1
src/packages/__VUE/noticebar/doc.md

@@ -211,7 +211,7 @@ app.use(Noticebar);
     components: { Fabulous },
     setup(props) {
       const horseLamp1 = ref(['Noticebar 公告栏', 'Cascader 级联选择', 'DatePicker 日期选择器', 'CheckBox 复选按钮']);
-      return { horseLamp1,Fabulous };
+      return { horseLamp1 };
     }
   }
 </script>

+ 0 - 1
src/packages/__VUE/searchbar/doc.taro.md

@@ -90,7 +90,6 @@ app.use(Icon);
 
       return {
         ...toRefs(state),
-        Search2
       };
     }
   };