dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs
https://univer.ai
Apache License 2.0
6.45k stars 550 forks source link

[Bug] @univerjs/sheets-numfmt Date type fields will become regular fields after inputting content #2806

Closed 840251442 closed 1 week ago

840251442 commented 1 month ago

Before you submit this issue, have you checked the following

Affected packages and versions

0.2.1

Reproduction link

就是很简单的一个输入场景。先给普通字段转化成日期 在输入 日期类型就消失了

Expected behavior

给普通字段转化成日期 在输入 日期类型应该还在

Actual behavior

给普通字段转化成日期 在输入 日期类型变成常规类型

System information

No response

univer-bot[bot] commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] @univerjs/sheets-numfmt 日期类型的字段在输入内容之后又会变成常规字段

Title: [Bug] @univerjs/sheets-numfmt Date type fields will become regular fields after inputting content


Before you submit this issue, have you checked the following

Affected packages and versions

0.2.1

Reproduction link

It is a very simple input scenario. First, convert the ordinary fields into dates. After inputting, the date type will disappear.

Expected behavior

Convert an ordinary field to a date. When typing, the date type should still be there.

Actual behavior

Convert an ordinary field to a date. When inputting, the date type becomes a regular type.

System information

No response

univer-bot[bot] commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Uploading 594_1721380682.mp4…

You can watch the operation in the video

univer-bot[bot] commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

[Uploading 594_1721380682.mp4.zip…]() This attachment contains my operations

840251442 commented 1 month ago

594_1721380682.zip 这个附件里面有我的操作视频 。不好意思上面的文件没传送对导致多发了邮件

univer-bot[bot] commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

594_1721380682.zip This attachment contains my operation video. Sorry, the above file was not transferred correctly, resulting in multiple emails being sent.

Gggpound commented 1 week ago

预期如此,二次输入的内容不是日期格式的时候,会移除对应的数字格式.

univer-bot[bot] commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

As expected, when the secondary input content is not in date format, the corresponding number format will be removed.