Как передать реквизит компоненту при использовании с диалоговым плагином Quasar - PullRequest
0 голосов
/ 18 октября 2019

Согласно quasar docs пользовательский компонент, используемый с dialog plugin, может иметь props. Но я не вижу, как передать эти реквизиты компоненту через

this.$q.dialog({component: CustomComponent,})

1 Ответ

0 голосов
/ 18 октября 2019

Состояние документы вы можете добавить их после запятой следующим образом:

  this.$q.dialog({
  component: CustomComponent,

  // optional if you want to have access to
  // Router, Vuex store, and so on, in your
  // custom component:
  parent: this, // becomes child of this Vue node
                // ("this" points to your Vue component)
                // (prop was called "root" in < 1.1.0 and
                // still works, but recommending to switch
                // to the more appropriate "parent" name)

  // props forwarded to component
  // (everything except "component" and "parent" props above):
  text: 'something',
  // ...more.props...
...