fieldset: make v-scope component configurable
This commit is contained in:
parent
3c13e8093b
commit
ecf3f13622
3 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@ img:
|
|||
pageid: test1
|
||||
domains: [App]
|
||||
topics: [Examples]
|
||||
date: 2023-03-02
|
||||
date: 2023-03-07
|
||||
author: helmutm
|
||||
draft: false
|
||||
weight: 10
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<div v-scope>
|
||||
<h3>Debug Information</h3>
|
||||
|
||||
<div @vue:mounted="mounted('conf')">
|
||||
<div>item id: {| conf.itemid |}</div>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{{- $name := .Get "name" | default "data" -}}
|
||||
<div v-scope="Data('{{ $name }}')">
|
||||
{{- $comp := .Get "component" | default "Data" -}}
|
||||
<div v-scope="{{ $comp }}('{{ $name }}')">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue