mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Calendar): add round prop
This commit is contained in:
parent
7fdc1b41fd
commit
9cbcd93e57
@ -198,6 +198,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i
|
||||
| formatter | Day formatter | *(day: Day) => Day* | - | - |
|
||||
| position | Popup position, can be set to `top` `right` `left` | *string* | `bottom` | - |
|
||||
| poppable | Whether to show the calendar inside a popup | *boolean* | `true` | - |
|
||||
| round | Whether to show round corner | *boolean* | `true` | - |
|
||||
| show-mark | Whether to show background month mark | *boolean* | `true` | - |
|
||||
| show-confirm | Whether to show confirm button | *boolean* | `true` | - |
|
||||
| close-on-click-overlay | Whether to close when click overlay | *boolean* | `true` | - |
|
||||
|
@ -198,6 +198,7 @@ export default {
|
||||
| formatter | 日期格式化函数 | *(day: Day) => Day* | - | - |
|
||||
| position | 弹出位置,可选值为 `top` `right` `left` | *string* | `bottom` | - |
|
||||
| poppable | 是否以弹层的形式展示日历 | *boolean* | `true` | - |
|
||||
| round | 是否显示圆角 | *boolean* | `true` | - |
|
||||
| show-mark | 是否显示月份背景水印 | *boolean* | `true` | - |
|
||||
| show-confirm | 是否展示确认按钮 | *boolean* | `true` | - |
|
||||
| close-on-click-overlay | 是否在点击遮罩层后关闭 | *boolean* | `true` | - |
|
||||
|
@ -49,6 +49,10 @@ export default createComponent({
|
||||
type: Number,
|
||||
default: ROW_HEIGHT
|
||||
},
|
||||
round: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
poppable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
@ -317,6 +321,7 @@ export default createComponent({
|
||||
closeable
|
||||
class={bem('popup')}
|
||||
value={this.value}
|
||||
round={this.round}
|
||||
position={this.position}
|
||||
closeOnClickOverlay={this.closeOnClickOverlay}
|
||||
onInput={this.togglePopup}
|
||||
|
Loading…
x
Reference in New Issue
Block a user