25 lines
433 B
Vue
25 lines
433 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
modelValue: string
|
|
}>()
|
|
const emits = defineEmits<{
|
|
'update:modelValue': [string]
|
|
}>()
|
|
|
|
function bindDateChange(e: { detail: { value: string } }) {
|
|
emits('update:modelValue', e.detail.value)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<picker mode="date" :value="modelValue" @change="bindDateChange">
|
|
<view class="">
|
|
{{ modelValue }}
|
|
</view>
|
|
</picker>
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|