-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
时间插件增加上下午选项 #2627
时间插件增加上下午选项 #2627
Conversation
please add an example in Datetime demo. |
上面的例子的问题在于小时从 0 到 23,和右边上午下午存在逻辑冲突,因为不存在 13 点上午这个表达。 |
Hi @airyland , 理论上来说: 我写到的demo, 是以“年月日 上/下午”为例。 |
望楼主审核通过pr, 希望让更多小伙伴收益 |
麻烦 example 补充到 Datetime.vue 里并且在 metas.yml 添加文档。 |
hi @airyland 已经提交demo及说明文档,烦请merge |
似乎没有通过 eslint,运行时,缩进空格分号什么的都应该会报错。 |
@airyland hi, 楼主,多谢指正,已经通过eslint, 烦请merge。 |
这样的格式得到的数据是类似于 |
实际我们应用这个时间组件的时候,就有选上午下午的需求场景(请假、换班等很多是以半天为单位) 。楼主的建议是把值调整为AM/PM ? |
对,场景没问题,是这个值,用 AM PM 会不会更合适? |
@airyland 已经更新pr。 |
选择值后再打开无法选中原来选择的 AM 或者 PM,这个我来处理。 |
已经合并,本地作了修改为了 commit 干净仅保留一条记录。 |
@airyland 楼主,烦请publish到npm,谢谢。 |
Please makes sure the items are checked before submitting your PR, thank you!
Rebase
before creating a PR to keep commit history clear.Only One commit
eslint
errors