File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed
ui/src/views/dataset/component Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 44 :size =" paragraph_list.length"
55 :total =" modelValue.length"
66 :page_size =" page_size"
7- v-model :current_page =" current_page"
7+ v-bind :current_page =" current_page"
88 @load =" next()"
99 :loading =" loading"
1010 >
Original file line number Diff line number Diff line change 11<template >
22 <el-tabs v-model =" activeName" class =" paragraph-tabs" >
3- <template v-for =" (item , index ) in newData " :key =" index " >
3+ <template v-for =" (item , index ) in data " :key =" index " >
44 <el-tab-pane :label =" item.name" :name =" index" >
55 <template #label >
66 <div class =" flex-center" >
2121 </el-tabs >
2222</template >
2323<script setup lang="ts">
24- import { ref , onMounted , watch } from ' vue'
24+ import { ref } from ' vue'
2525import { getImgUrl } from ' @/utils/utils'
2626import ParagraphList from ' ./ParagraphList.vue'
2727
28- const props = defineProps ({
28+ defineProps ({
2929 data: {
3030 type: Array < any > ,
3131 default : () => []
3232 },
3333 isConnect: Boolean
3434})
3535
36- const emit = defineEmits ([' update:data' ])
37-
3836const activeName = ref (0 )
39-
40- const newData = ref <any []>([])
41-
42- watch (
43- () => props .data ,
44- (value ) => {
45- newData .value = value
46- },
47- {
48- immediate: true
49- }
50- )
51-
52- onMounted (() => {})
5337 </script >
5438<style scoped lang="scss">
5539.paragraph-tabs {
You can’t perform that action at this time.
0 commit comments