🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions src/components/form-btn-label-control/bv-form-btn-label-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,18 @@ export const BVFormBtnLabelControl = /*#__PURE__*/ Vue.extend({
const $label = h(
'label',
{
staticClass: 'form-control text-break text-wrap bg-transparent h-auto',
class: [
{
// Hidden in button only mode
'sr-only': buttonOnly,
// Mute the text if showing the placeholder
'text-muted': !value
},
this.stateClass,
this.sizeFormClass
],
class: buttonOnly
? 'sr-only' // Hidden in button only mode
: [
'form-control',
'text-break',
'text-wrap',
'bg-transparent',
// Mute the text if showing the placeholder
{ 'text-muted': !value },
this.stateClass,
this.sizeFormClass
],
attrs: {
id: idLabel,
for: idButton,
Expand Down
3 changes: 0 additions & 3 deletions src/components/form-datepicker/form-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ export const props = makePropsConfigurable(
...modelProps,
...calendarProps,
...formBtnLabelControlProps,
buttonOnly: makeProp(PROP_TYPE_BOOLEAN, false),
// Applicable in button only mode
buttonVariant: makeProp(PROP_TYPE_STRING, 'secondary'),
// Width of the calendar dropdown
calendarWidth: makeProp(PROP_TYPE_STRING, '270px'),
closeButton: makeProp(PROP_TYPE_BOOLEAN, false),
Expand Down
Loading