Bootstrap vue datepicker:值日期显示在输入字段之外

发布于 2025-01-09 22:36:17 字数 536 浏览 0 评论 0原文

使用 veevalidate 下的标签中

<b-form-datepicker
                      :name="el.label"
                      :ref="el.field"
                      v-if="el.type === 'date' || el.type === 
                     'datetime'"
                      v-model="value[el.field]"
                      :placeholder="el.placeholder"
                      v-validate="el.rules"
></b-form-datepicker>

当我检查它时:日期显示在输入inspection & 查看

using veevalidate
when I inspect it: the date shows in a label under the input

<b-form-datepicker
                      :name="el.label"
                      :ref="el.field"
                      v-if="el.type === 'date' || el.type === 
                     'datetime'"
                      v-model="value[el.field]"
                      :placeholder="el.placeholder"
                      v-validate="el.rules"
></b-form-datepicker>

inspection & view

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2025-01-16 22:36:17

我遇到了同样的问题,我没有包含 bootstrap-vue css。
包含以下 css 后问题得到解决。

import "bootstrap-vue/dist/bootstrap-vue.css";

I faced the same issue, I had not included the bootstrap-vue css.
Issue was resolved after including below below css.

import "bootstrap-vue/dist/bootstrap-vue.css";
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文