Comments (3)
如果提供插槽,此刻、确认、清除的事件也要自己写
<n-date-picker v-model:value="timestamp" type="date">
<template #clear>
自定义
</template>
</n-date-picker>
from naive-ui.
如果提供插槽,此刻、确认、清除的事件也要自己写
<n-date-picker v-model:value="timestamp" type="date"> <template #clear> 自定义 </template> </n-date-picker>
提问:是否可以像自定义图标一样自定义此刻按钮,因为我只需要改变此刻
、确认
、清除
按钮的样式和文字内容,类似以下这样:
<n-date-picker type="date">
<template #date-icon>
<n-icon :size="16" :component="RocketOutline" />
</template>
<template #prev-year>
<n-icon :size="16" :component="ChevronBackCircle" />
</template>
<template #prev-month>
<n-icon :size="16" :component="ChevronBackCircleOutline" />
</template>
<template #next-month>
<n-icon :size="16" :component="ChevronForwardCircleOutline" />
</template>
<template #next-year>
<n-icon :size="16" :component="ChevronForwardCircle" />
</template>
<template #clear>
自定义的此刻按钮
</template>
</n-date-picker>
对我而言,如果说需要我自己写此刻
、确认
、清除
按钮的事件我也能够接受。
from naive-ui.
这个应该是可以,我空了跟作者讨论下如何加比较友好,大概率下周之前 PR
from naive-ui.
Related Issues (20)
- NSelect的scroll事件无法触发
- NSelect的scroll事件无法触发
- 文件夹上传只会上传文件夹里的100个文件 HOT 2
- n-tree组件node-props的onClick点击复选框没反应 HOT 2
- Select 组件的 header 插槽里面不支持输入框
- 关于upload组件的重试按钮
- n-upload GET request with headers HOT 6
- Searching in the group selector, where options are loaded via the API, does not work for androids
- Nuxt+ Responsive grid [Vue warn]: Hydration style mismatch on HOT 2
- duplicated text inside n-date-picker@daterange @template#footer HOT 6
- 使用NConfigProvider注入组件默认prop HOT 3
- openOpenFileDialog there DoesnT Seem To BeSuchA Method HOT 1
- Compatibility Issue with <n-date-picker> Component in Nuxt 3 SSR Environment
- Unable to type with some Chinese IMEs in filterable selects on Firefox Mobile HOT 1
- 使用js修改menu的value,菜单不会自动展开 HOT 2
- data table的renderExpand,在有一个已展开的情况下,再执行其他的renderExpand,会执行多次 HOT 2
- 时间线 Timeline,建议做一个可以拐弯的
- 更新到最新2.38.2版本后,form表单中inline模式下select组件宽度没有了 HOT 1
- 二维码组件支持形状设置
- Select可以提供prefix插槽吗 HOT 1
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.