zjk
2026-09-29 54dcf0a82e7490fa58b1c056d5c0b9cb739c2931
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
52
53
54
55
56
<template>
    <view v-if="show">
        <u-popup v-model="showPop" :mask-close-able="false" @close="$emit('close')" @open="open" mode='bottom'>
            <view class="bgcolor1" style="border-radius: 38rpx 38rpx 0 0;">
                <view class="py-25 txt-center">
                    选择日期
                </view>
                <wd-calendar-view v-model="dateValue" @change="handleChange" :showPanelTitle="false" />
            </view>
        </u-popup>
    </view>
</template>
 
<script>
    export default {
        name: "selectCalendar",
        props: {
            show: {
                type: Boolean,
                default: () => false
            },
            currentDate: {
                type: String,
                default: () => ''
            }
        },
        watch: {
            show(newValue, oldValue) {
                console.log(newValue);
                if (newValue) {
                    this.showPop = newValue
                }
            }
        },
        data() {
            return {
                showPop: true,
                dateValue: Date.now()
            };
        },
        methods: {
            open() {},
            handleChange({
                value
            }) {
 
            }
        }
    }
</script>
 
<style scoped lang="scss">
    .bgcolor1 {
        background-color: #fff;
    }
</style>