-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat(time-picker): add actions prop #463
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/H7LGGoU6ToDYETDMtJZVvAMhpXiA |
b2789db
to
21d645e
Compare
Codecov Report
@@ Coverage Diff @@
## main #463 +/- ##
==========================================
- Coverage 37.75% 37.15% -0.60%
==========================================
Files 507 507
Lines 12246 12204 -42
Branches 3394 3367 -27
==========================================
- Hits 4623 4534 -89
- Misses 6752 6806 +54
+ Partials 871 864 -7
Continue to review full report at Codecov.
|
CHANGELOG.en-US.md
Outdated
## Pending | ||
|
||
### Feats | ||
|
||
- `n-time-picker` add `actions` prop, closes [#401](https://github.com/TuSimple/naive-ui/issues/401). | ||
|
||
## 2.15.4 (2021-07-09) | ||
|
||
### Feats | ||
|
||
- `n-steps` add icon customization in `'finish'` and `'error'` status. | ||
- `n-tree` exports `TreeDragInfo` & `TreeDropInfo` type. | ||
- `n-empty` export `icon` slot. | ||
- `useDialog` option add `maskClosable` prop, closes [#420](https://github.com/TuSimple/naive-ui/issues/420). | ||
- `n-time-picker` add `actions` prop, closes [#401](https://github.com/TuSimple/naive-ui/issues/401). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我记得我提交后还看了一遍竟然没发现这个问题🥲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这还是没解决啊😂
CHANGELOG.zh-CN.md
Outdated
|
||
### Feats | ||
|
||
- `n-time-picker` 增加 `actions` 属性, 关闭 [#401](https://github.com/TuSimple/naive-ui/issues/401). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `n-time-picker` 增加 `actions` 属性, 关闭 [#401](https://github.com/TuSimple/naive-ui/issues/401). | |
- `n-time-picker` 增加 `actions` 属性, 关闭 [#401](https://github.com/TuSimple/naive-ui/issues/401) |
@@ -15,6 +15,7 @@ format | |||
|
|||
| Name | Type | Default | Description | | |||
| --- | --- | --- | --- | | |||
| actions | `Array<'now'> \| null` | `['now']` | Operations supported in Time Picker. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把 confirm 也加进来,未来可能更新 updateValueOnClose,如果现在让用户传了 null 未来更新两个按钮就一起没了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
那现在就是允许让用户传入confirm但是并没有什么用吗,我当时也想了要不要加confirm,我觉得加了的话就得做update- on-close 那我这周末再把这个也做了吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是加上吧,updateValueOnClose 倒是不着急,关键是为了未来的 API 考虑,这个 null 就是表示什么都不加。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不加 confirm 的话以后不好控制
f3d3131
to
8dfb89e
Compare
Fix #401