-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(time-picker): add actions prop (#463)
* feat(time-picker): add actions prop * feat(time-picker): add confirm * fix(change-log): time-picker zh * Update CHANGELOG.en-US.md * Update CHANGELOG.zh-CN.md Co-authored-by: Jiwen Bai <[email protected]> Co-authored-by: 07akioni <[email protected]>
- Loading branch information
1 parent
9570c56
commit 036cff0
Showing
8 changed files
with
83 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Actions | ||
|
||
```html | ||
<n-space vertical> | ||
<n-time-picker v-model:value="ts1" :actions="['now']" /> | ||
<n-time-picker v-model:value="ts2" :actions="null" /> | ||
</n-space> | ||
``` | ||
|
||
```js | ||
export default { | ||
data () { | ||
return { | ||
ts1: null, | ||
ts2: 861333934000 | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 操作 | ||
|
||
```html | ||
<n-space vertical> | ||
<n-time-picker v-model:value="ts1" :actions="['now']" /> | ||
<n-time-picker v-model:value="ts2" :actions="null" /> | ||
</n-space> | ||
``` | ||
|
||
```js | ||
export default { | ||
data () { | ||
return { | ||
ts1: null, | ||
ts2: 861333934000 | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters