A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/5cb8e0c474ab750868379b4293d0eb5d52f5dd85 below:

`valueAsDate` prop handling (#6159) · bootstrap-vue/bootstrap-vue@5cb8e0c · GitHub

@@ -25,10 +25,7 @@ const {

25 25

props: modelProps,

26 26

prop: MODEL_PROP_NAME,

27 27

event: MODEL_EVENT_NAME

28 -

} = makeModelMixin('value', {

29 -

type: PROP_TYPE_STRING,

30 -

defaultValue: ''

31 -

})

28 +

} = makeModelMixin('value', { type: PROP_TYPE_DATE_STRING })

32 29 33 30

// --- Props ---

34 31

@@ -220,7 +217,11 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({

220 217

h(

221 218

BButton,

222 219

{

223 -

props: { size: 'sm', disabled: disabled || readonly, variant: this.todayButtonVariant },

220 +

props: {

221 +

disabled: disabled || readonly,

222 +

size: 'sm',

223 +

variant: this.todayButtonVariant

224 +

},

224 225

attrs: { 'aria-label': label || null },

225 226

on: { click: this.onTodayButton }

226 227

},

@@ -235,7 +236,11 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({

235 236

h(

236 237

BButton,

237 238

{

238 -

props: { size: 'sm', disabled: disabled || readonly, variant: this.resetButtonVariant },

239 +

props: {

240 +

disabled: disabled || readonly,

241 +

size: 'sm',

242 +

variant: this.resetButtonVariant

243 +

},

239 244

attrs: { 'aria-label': label || null },

240 245

on: { click: this.onResetButton }

241 246

},

@@ -250,7 +255,11 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({

250 255

h(

251 256

BButton,

252 257

{

253 -

props: { size: 'sm', disabled, variant: this.closeButtonVariant },

258 +

props: {

259 +

disabled,

260 +

size: 'sm',

261 +

variant: this.closeButtonVariant

262 +

},

254 263

attrs: { 'aria-label': label || null },

255 264

on: { click: this.onCloseButton }

256 265

},

@@ -281,8 +290,9 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({

281 290

staticClass: 'b-form-date-calendar w-100',

282 291

props: {

283 292

...pluckProps(calendarProps, $props),

284 -

value: localYMD,

285 293

hidden: !this.isVisible,

294 +

value: localYMD,

295 +

valueAsDate: false,

286 296

width: this.calendarWidth

287 297

},

288 298

on: {

@@ -311,13 +321,13 @@ export const BFormDatepicker = /*#__PURE__*/ Vue.extend({

311 321

staticClass: 'b-form-datepicker',

312 322

props: {

313 323

...pluckProps(formBtnLabelControlProps, $props),

314 -

id: this.safeId(),

315 -

value: localYMD,

316 324

formattedValue: localYMD ? this.formattedValue : '',

325 +

id: this.safeId(),

326 +

lang: this.computedLang,

327 +

menuClass: [{ 'bg-dark': dark, 'text-light': dark }, this.menuClass],

317 328

placeholder,

318 329

rtl: this.isRTL,

319 -

lang: this.computedLang,

320 -

menuClass: [{ 'bg-dark': dark, 'text-light': dark }, this.menuClass]

330 +

value: localYMD

321 331

},

322 332

on: {

323 333

show: this.onShow,


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4