mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Calendar): add click-on-click-overlay prop
This commit is contained in:
parent
956800b95c
commit
7fdc1b41fd
@ -200,6 +200,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i
|
|||||||
| poppable | Whether to show the calendar inside a popup | *boolean* | `true` | - |
|
| poppable | Whether to show the calendar inside a popup | *boolean* | `true` | - |
|
||||||
| show-mark | Whether to show background month mark | *boolean* | `true` | - |
|
| show-mark | Whether to show background month mark | *boolean* | `true` | - |
|
||||||
| show-confirm | Whether to show confirm button | *boolean* | `true` | - |
|
| show-confirm | Whether to show confirm button | *boolean* | `true` | - |
|
||||||
|
| close-on-click-overlay | Whether to close when click overlay | *boolean* | `true` | - |
|
||||||
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `true` | - |
|
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `true` | - |
|
||||||
| confirm-text | Confirm button text | *string* | `Confirm` | - |
|
| confirm-text | Confirm button text | *string* | `Confirm` | - |
|
||||||
| confirm-disabled-text | Confirm button text when disabled | *string* | `Confirm` | - |
|
| confirm-disabled-text | Confirm button text when disabled | *string* | `Confirm` | - |
|
||||||
|
@ -200,6 +200,7 @@ export default {
|
|||||||
| poppable | 是否以弹层的形式展示日历 | *boolean* | `true` | - |
|
| poppable | 是否以弹层的形式展示日历 | *boolean* | `true` | - |
|
||||||
| show-mark | 是否显示月份背景水印 | *boolean* | `true` | - |
|
| show-mark | 是否显示月份背景水印 | *boolean* | `true` | - |
|
||||||
| show-confirm | 是否展示确认按钮 | *boolean* | `true` | - |
|
| show-confirm | 是否展示确认按钮 | *boolean* | `true` | - |
|
||||||
|
| close-on-click-overlay | 是否在点击遮罩层后关闭 | *boolean* | `true` | - |
|
||||||
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` | - |
|
| safe-area-inset-bottom | 是否开启底部安全区适配,[详细说明](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` | - |
|
||||||
| confirm-text | 确认按钮的文字 | *string* | `确定` | - |
|
| confirm-text | 确认按钮的文字 | *string* | `确定` | - |
|
||||||
| confirm-disabled-text | 确认按钮处于禁用状态时的文字 | *string* | `确定` | - |
|
| confirm-disabled-text | 确认按钮处于禁用状态时的文字 | *string* | `确定` | - |
|
||||||
|
@ -64,6 +64,10 @@ export default createComponent({
|
|||||||
safeAreaInsetBottom: {
|
safeAreaInsetBottom: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
closeOnClickOverlay: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -314,6 +318,7 @@ export default createComponent({
|
|||||||
class={bem('popup')}
|
class={bem('popup')}
|
||||||
value={this.value}
|
value={this.value}
|
||||||
position={this.position}
|
position={this.position}
|
||||||
|
closeOnClickOverlay={this.closeOnClickOverlay}
|
||||||
onInput={this.togglePopup}
|
onInput={this.togglePopup}
|
||||||
>
|
>
|
||||||
{this.genCalendar()}
|
{this.genCalendar()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user