mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Calendar): add get-contaienr prop (#5609)
This commit is contained in:
parent
025811412b
commit
803727e2f9
@ -136,7 +136,7 @@ export default {
|
|||||||
| close-on-click-action | Whether to close when click action | _boolean_ | `false` |
|
| close-on-click-action | Whether to close when click action | _boolean_ | `false` |
|
||||||
| close-on-click-overlay | Whether to close when click overlay | _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` |
|
||||||
| get-container | Return the mount node for action-sheet | _string \| () => Element_ | - |
|
| get-container | Return the mount node for ActionSheet | _string \| () => Element_ | - |
|
||||||
|
|
||||||
### Data Structure of Action
|
### Data Structure of Action
|
||||||
|
|
||||||
|
@ -231,6 +231,7 @@ Set `poppable` to `false`, the calendar will be displayed directly on the page i
|
|||||||
| confirm-disabled-text | Confirm button text when disabled | *string* | `Confirm` |
|
| confirm-disabled-text | Confirm button text when disabled | *string* | `Confirm` |
|
||||||
| max-range`2.4.3` | Number of selectable days | *number* | - |
|
| max-range`2.4.3` | Number of selectable days | *number* | - |
|
||||||
| range-prompt`2.4.3` | Error message when exceeded max range | *string* | `Choose no more than xx days` |
|
| range-prompt`2.4.3` | Error message when exceeded max range | *string* | `Choose no more than xx days` |
|
||||||
|
| get-container`2.4.4` | Return the mount node for Calendar | _string \| () => Element_ | - |
|
||||||
|
|
||||||
### Data Structure of Day
|
### Data Structure of Day
|
||||||
|
|
||||||
|
@ -231,6 +231,7 @@ export default {
|
|||||||
| confirm-disabled-text | 确认按钮处于禁用状态时的文字 | *string* | `确定` |
|
| confirm-disabled-text | 确认按钮处于禁用状态时的文字 | *string* | `确定` |
|
||||||
| max-range`2.4.3` | 日期区间最多可选天数,默认无限制 | *number* | - |
|
| max-range`2.4.3` | 日期区间最多可选天数,默认无限制 | *number* | - |
|
||||||
| range-prompt`2.4.3` | 选择超过区间范围时的提示文案 | *string* | `选择天数不能超过 xx 天` |
|
| range-prompt`2.4.3` | 选择超过区间范围时的提示文案 | *string* | `选择天数不能超过 xx 天` |
|
||||||
|
| get-container`2.4.4` | 指定挂载的节点,[用法示例](#/zh-CN/popup#zhi-ding-gua-zai-wei-zhi) | *string \| () => Element* | - |
|
||||||
|
|
||||||
### Day 数据结构
|
### Day 数据结构
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ export default createComponent({
|
|||||||
confirmText: String,
|
confirmText: String,
|
||||||
rangePrompt: String,
|
rangePrompt: String,
|
||||||
defaultDate: [Date, Array],
|
defaultDate: [Date, Array],
|
||||||
|
getContainer: [String, Function],
|
||||||
confirmDisabledText: String,
|
confirmDisabledText: String,
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -370,6 +371,7 @@ export default createComponent({
|
|||||||
value={this.value}
|
value={this.value}
|
||||||
round={this.round}
|
round={this.round}
|
||||||
position={this.position}
|
position={this.position}
|
||||||
|
getContainer={this.getContainer}
|
||||||
closeOnClickOverlay={this.closeOnClickOverlay}
|
closeOnClickOverlay={this.closeOnClickOverlay}
|
||||||
onInput={this.togglePopup}
|
onInput={this.togglePopup}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user