A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/ff341a2 below:

allow custom components with slot (#1387) · vuematerial/vue-material@ff341a2 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-3

lines changed Original file line number Diff line number Diff line change

@@ -13,10 +13,11 @@

13 13 14 14

if (children) {

15 15

children.forEach(child => {

16 -

const opts = child.componentOptions

16 +

const data = child.data

17 +

const componentOptions = child.componentOptions

17 18 18 -

if (opts && componentTypes.includes(opts.tag)) {

19 -

child.data.slot = opts.tag

19 +

if ((data && componentTypes.includes(data.slot)) || (componentOptions && componentTypes.includes(componentOptions.tag))) {

20 +

child.data.slot = data.slot || componentOptions.tag

20 21

child.data.provide = options.Ctor.options.provide

21 22

child.context = context

22 23

child.functionalContext = functionalContext

You can’t perform that action at this time.


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