-
zhangwei
2024-08-29 447e19fa298ae11a1c3a3fa2d2ff3a1a8dba0501
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>
    <!--本文件由FirstUI授权予四川政采招投标咨询有限公司(会员ID:1  63,营业执照号:   91 5101  3 1  3 3 2 006  193   K)专用,请尊重知识产权,勿私下传播,违者追究法律责任。-->
    <view class="fui-parse__group">
        <slot></slot>
    </view>
</template>
 
<script>
    export default {
        name: "fui-parse-group",
        emits: ['atap', 'preview'],
        provide() {
            return {
                parsegroup: this
            }
        },
        props: {
            imgPreview: {
                type: Boolean,
                default: true
            },
            thBgcolor: {
                type: Boolean,
                default: true
            }
        },
        data() {
            const pageNodeKey = `fui_parse_${Math.ceil(Math.random() * 10e5).toString(36)}`
            return {
                pageNodeKey
            }
        },
        methods: {
            onATap(href) {
                this.$emit('atap', href)
            },
            previewImage(src, imageUrls) {
                this.$emit('preview', {
                    src,
                    imageUrls
                })
            }
        },
    }
</script>
 
<style scoped>
    .fui-parse__group {
        width: 100%;
    }
</style>