feat: 完成喂养计划,宠物信息填充
This commit is contained in:
1 parent
08d03cfbe0
commit
6dfcc0076a
15 files changed
+276
-38
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user