tdesign-vue-next
tdesign-vue-next copied to clipboard
[t-date-range-picker] 组件format展示异常
trafficstars
tdesign-vue-next 版本
1.9.3
重现链接
No response
重现步骤
<template>
<div>
<t-date-range-picker v-model:value="x" format="YY-MM" value-type="YYYY-MM-DD"></t-date-range-picker>
{{ x }}
</div>
</template>
<script setup lang="ts">
const x = ref([]);
</script>
期望结果
输入框应该按照YY取年份后两位
实际结果
年份取了前两位
框架版本
3.2.31
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
👋 @ruanlinxin,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
补充bug,文档中描述format属性只影响展示不影响value,实际情况value受到影响
<template>
<div>
<t-date-range-picker v-model:value="x" format="YY-MM"></t-date-range-picker>
{{ x }}
</div>
</template>
<script setup lang="ts">
const x = ref([]);
</script>
fixed 1.9.6, thanks for @Ericleungs