Comments (7)
I think 1 would probably be ideal since the built in ones are optional. It's probably better that they're distinct actions also since clear/confirm are important.
from naive-ui.
I'm thinking of it. However I wonder where to put it.
There are 2 options.
1.
calendar
------
actions
------
(builtin) confirm
2.
calendar
------
actions + (builtin actions)
Do you have any idea?
from naive-ui.
Since date-picker should work with form-item. I can't easily expose the internal change events emitter to the user. So I'm going to provide a ant-design-like api.
...
ranges={{
Today: [xx, xx],
'This Month': [xx, xx],
}}
...
from naive-ui.
Yeah that would be pretty nice. The ant design solution works pretty well. Though they appear to be inline with the built in actions. That's not inherently bad and might even be preferable than having it on a seperate row. My only concern with that was how it would look if someone had many ranges. They even highlight the ranges on hover and automatically confirm on selection which is pretty slick.
They also have the "Extra Footer" slot.
from naive-ui.
Yeah that would be pretty nice. The ant design solution works pretty well. Though they appear to be inline with the built in actions. That's not inherently bad and might even be preferable than having it on a seperate row. My only concern with that was how it would look if someone had many ranges. They even highlight the ranges on hover and automatically confirm on selection which is pretty slick.
They also have the "Extra Footer" slot.
Do you have time to implement a footer
slot? PR is welcomed. You can pass down the slots of date-picker from setup
in date-picker by provide
it and inject
it into the panels. Then render it is very easy.
from naive-ui.
For footer
slot you can open an new issue.
from naive-ui.
@07akioni 你好,是因为这个组件和表单功能有关联,所以不方便增加自定义对此刻
和确认
的自定义插槽支持吗?我的英语不太好。
from naive-ui.
Related Issues (20)
- n-switch组件使用useToggle时切换过渡动画失效 HOT 4
- N-Image组件不支持鼠标滚轮缩放
- 在 VueDraggablePlus 中 Carousel 循环轮播图中有 Button或其它组件,会提示:Maximum recursive updates exceeded.
- 在VueDraggablePlus中使用Carousel组件,v-for下有Button或其它组件会提示:Maximum recursive updates exceeded.
- Modal、 Drawer等组件的关闭弹窗事件能否支持阻止关闭? HOT 7
- virtual-list in masonary style like vue-virtual-collection
- Select在展开一次下拉列表后,再次点击无法展开 HOT 4
- NImage. Add flag to control behaviour of the download button link in the toolbar HOT 1
- Select 组件 render-label 和 value-field 同时使用 HOT 2
- The n-date-picker
- 【n-select】可过滤时,展开下拉框后,再次点击输入框无法收回下拉框 HOT 3
- show-menu HOT 3
- 【n-select】能不能手动focus的时候,自动将下拉框打开 HOT 2
- 'pnpm lint' results in TypeError: Converting circular structure to JSON HOT 1
- 希望Code组件可以自定义起始行号
- 500 document is not defined when using n-popover in Nuxt3 HOT 3
- 导出excel乱码 HOT 2
- Select组件支持分页异步加载
- n-upload的照片墙功能
- 【Calendar】日历组件希望可以增加一个右上角切换月份的功能区插槽,或者合并到header插槽
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naive-ui.