diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/aboutAETV.md b/aboutAETV.md index 0e78860..fb528a2 100644 --- a/aboutAETV.md +++ b/aboutAETV.md @@ -9,6 +9,16 @@ ```ts import TabList from '@/components/tabList.vue' ``` +其中tabs的格式如下 +```ts +const tabs = ref([ + { + label: '教师作品', + value: 'teacherWorks' + } +]) +``` +作用为生成一个标签页 --- @@ -55,4 +65,7 @@ const scrollLoadProps = computed(() => { } }) ``` -具体为到底时使用传入的api请求一组数据,然后传回的data可以通过fetchEnd或是default插槽进行处理 \ No newline at end of file +具体为到底时使用传入的api请求一组数据,然后传回的data可以通过fetchEnd或是default插槽进行处理,有时候需要对传回的数据进行预处理才不会报错(因为后端的数据格式可能不会对上scroolList的格式) + +--- +# 接口使用相关 diff --git a/aboutVUE3.md b/aboutVUE3.md index f8bbef8..29b20f2 100644 --- a/aboutVUE3.md +++ b/aboutVUE3.md @@ -3,7 +3,6 @@ --- ## 具名作用域插槽 * 具名作用域插槽的工作方式也是类似的,插槽 props 可以作为 v-slot 指令的值被访问到 - ```