quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[Request] Allow to extend from `QInlineDatetime.mat.vue` or `QInlineDatetime.ios.vue`

Open dfmelicor opened this issue 9 years ago • 1 comments

Software version

Quasar: 0.14.5 OS: Windows Node: 6.11.2 NPM: 3.10.10

What did you get as the error?

Currently, QInlineDatetime is rendered dynamically depending on the current theme (if not ios, default to use mat date picker). With this design, seems not possible to extend from QInlineDatetime.mat.vue or QInlineDatetime.ios.vue.

Cannot read property '_c' of undefined which is encountered in the render function of QInlineDatetime.

What were you expecting?

Would be nice if we can extend from QInlineDatetime.mat.vue or QInlineDatetime.ios.vue.

What steps did you take, to get the error?

This code returns an error:

import {QInlineDatetime} from 'quasar'

export default {
  extends: QInlineDatetime,
  name: 'custom-inline-datetime'
}

dfmelicor avatar Nov 16 '17 04:11 dfmelicor

Will do. There's another Github ticket requesting to re-add the src folder (but don't have time to look over it now), so closing this one as it's basically the same thing.

rstoenescu avatar Nov 16 '17 08:11 rstoenescu