lxf
2025-07-16 8588fe30f17d0d28190a279aab8675de0dbf1a5b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
  <van-cell-group v-if="list.length > 0">
    <template v-if="!advancedViewMode">
      <quotes-item v-for="(item, index) in list" :item="item" :key="index" :type="props.type"
        @click-item="onClickItem" />
    </template>
    <template v-else>
      <quotes-advanced-item :list="list" @click-item="onClickItem" />
    </template>
  </van-cell-group>
</template>
 
<script setup>
import QuotesItem from '@/components/quotes-item/index.vue'
import QuotesAdvancedItem from '@/components/quotes-advanced-item/index.vue'
 
import { onMounted } from "vue";
 
const emits = defineEmits(['click-item'])
const props = defineProps({
  type: {
    type: String,
    default: ''
  },
  list: {
    type: Array,
    default() {
      return []
    }
  },
  advancedViewMode: {
    type: Boolean,
    required: true
  }
})
 
onMounted(() => {
  console.log(props.list);
})
 
 
const onClickItem = (evt) => {
  emits('click-item', evt)
}
 
 
</script>
 
<style lang="scss" scoped>
 
</style>