fix: render custom attrs in form component tag
This commit is contained in:
parent
9be2f63475
commit
2219cf8198
|
@ -1037,9 +1037,9 @@ class Form(object):
|
||||||
|
|
||||||
def render_vue_tag(self, **kwargs):
|
def render_vue_tag(self, **kwargs):
|
||||||
""" """
|
""" """
|
||||||
return self.render_vuejs_component()
|
return self.render_vuejs_component(**kwargs)
|
||||||
|
|
||||||
def render_vuejs_component(self):
|
def render_vuejs_component(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
Render the Vue.js component HTML for the form.
|
Render the Vue.js component HTML for the form.
|
||||||
|
|
||||||
|
@ -1050,10 +1050,11 @@ class Form(object):
|
||||||
<tailbone-form :configure-fields-help="configureFieldsHelp">
|
<tailbone-form :configure-fields-help="configureFieldsHelp">
|
||||||
</tailbone-form>
|
</tailbone-form>
|
||||||
"""
|
"""
|
||||||
kwargs = dict(self.vuejs_component_kwargs)
|
kw = dict(self.vuejs_component_kwargs)
|
||||||
|
kw.update(kwargs)
|
||||||
if self.can_edit_help:
|
if self.can_edit_help:
|
||||||
kwargs.setdefault(':configure-fields-help', 'configureFieldsHelp')
|
kw.setdefault(':configure-fields-help', 'configureFieldsHelp')
|
||||||
return HTML.tag(self.vue_tagname, **kwargs)
|
return HTML.tag(self.vue_tagname, **kw)
|
||||||
|
|
||||||
def set_json_data(self, key, value):
|
def set_json_data(self, key, value):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue