Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[t-date-range-picker] 组件format展示异常 #4083

Closed
ruanlinxin opened this issue Apr 8, 2024 · 3 comments
Closed

[t-date-range-picker] 组件format展示异常 #4083

ruanlinxin opened this issue Apr 8, 2024 · 3 comments
Labels
🐞 bug Something isn't working to be published to be published

Comments

@ruanlinxin
Copy link
Contributor

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取年份后两位

实际结果

年份取了前两位
image

框架版本

3.2.31

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Apr 8, 2024

👋 @ruanlinxin,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the 🐞 bug Something isn't working label Apr 8, 2024
@ruanlinxin
Copy link
Contributor Author

补充bug,文档中描述format属性只影响展示不影响value,实际情况value受到影响
image

<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>

image

@uyarn
Copy link
Collaborator

uyarn commented Jun 7, 2024

fixed 1.9.6, thanks for @Ericleungs

@uyarn uyarn closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working to be published to be published
Projects
None yet
Development

No branches or pull requests

2 participants