fieldset: make v-scope component configurable

This commit is contained in:
Helmut Merz 2023-03-10 08:29:14 +01:00
parent 3c13e8093b
commit ecf3f13622
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -1,4 +1,5 @@
<div v-scope>
<h3>Debug Information</h3>
<div @vue:mounted="mounted('conf')">
<div>item id: {| conf.itemid |}</div>

View file

@ -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>