🌐 AI搜索 & 代理 主页
Skip to content

Commit 2d7bcbb

Browse files
authored
Update README.md
1 parent 856b87e commit 2d7bcbb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/components/form-datepicker/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,39 @@ You can use the `isRTL` scoped property to "flip" the prev vs next button conten
481481
left-to-right to right-to-left orientation change — i.e. the previous year button will be on
482482
the right when `isRTL` is `true`, instead of the left.
483483

484+
### Full width calendar dropdown
485+
486+
To create a full width calendar dropdown (where the width matches the input width), simply set the
487+
`menu-class` prop to `'w-100'` and set the `calendar-width` prop to `'100%'`:
488+
489+
```html
490+
<template>
491+
<div>
492+
<label for="datepicker-full-width">Choose a date</label>
493+
<b-form-datepicker
494+
id="datepicker-full-width"
495+
v-model="value"
496+
menu-class="w-100"
497+
calendar-width="100%"
498+
class="mb-2"
499+
></b-form-datepicker>
500+
<p>Value: '{{ value }}'</p>
501+
</div>
502+
</template>
503+
504+
<script>
505+
export default {
506+
data() {
507+
return {
508+
value: ''
509+
}
510+
}
511+
}
512+
</script>
513+
514+
<!-- b-form-datepicker-full-width.vue -->
515+
```
516+
484517
## Internationalization
485518

486519
Internationalization of the date picker's calendar is provided via

0 commit comments

Comments
 (0)