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 4
4
:size =" paragraph_list.length"
5
5
:total =" modelValue.length"
6
6
:page_size =" page_size"
7
- v-model :current_page =" current_page"
7
+ v-bind :current_page =" current_page"
8
8
@load =" next()"
9
9
:loading =" loading"
10
10
>
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<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 " >
4
4
<el-tab-pane :label =" item.name" :name =" index" >
5
5
<template #label >
6
6
<div class =" flex-center" >
21
21
</el-tabs >
22
22
</template >
23
23
<script setup lang="ts">
24
- import { ref , onMounted , watch } from ' vue'
24
+ import { ref } from ' vue'
25
25
import { getImgUrl } from ' @/utils/utils'
26
26
import ParagraphList from ' ./ParagraphList.vue'
27
27
28
- const props = defineProps ({
28
+ defineProps ({
29
29
data: {
30
30
type: Array < any > ,
31
31
default : () => []
32
32
},
33
33
isConnect: Boolean
34
34
})
35
35
36
- const emit = defineEmits ([' update:data' ])
37
-
38
36
const 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 (() => {})
53
37
</script >
54
38
<style scoped lang="scss">
55
39
.paragraph-tabs {
You can’t perform that action at this time.
0 commit comments