Add <b-tooltip>
component shim
This commit is contained in:
parent
00e2af1561
commit
10aac388f0
|
@ -19,6 +19,7 @@
|
|||
${self.make_b_step_item_component()}
|
||||
${self.make_b_table_component()}
|
||||
${self.make_b_table_column_component()}
|
||||
${self.make_b_tooltip_component()}
|
||||
${self.make_once_button_component()}
|
||||
</%def>
|
||||
|
||||
|
@ -662,6 +663,25 @@
|
|||
<% request.register_component('b-table-column', 'BTableColumn') %>
|
||||
</%def>
|
||||
|
||||
<%def name="make_b_tooltip_component()">
|
||||
<script type="text/x-template" id="b-tooltip-template">
|
||||
<o-tooltip :label="label"
|
||||
:multiline="multilined">
|
||||
<slot />
|
||||
</o-tooltip>
|
||||
</script>
|
||||
<script>
|
||||
const BTooltip = {
|
||||
template: '#b-tooltip-template',
|
||||
props: {
|
||||
label: String,
|
||||
multilined: Boolean,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<% request.register_component('b-tooltip', 'BTooltip') %>
|
||||
</%def>
|
||||
|
||||
<%def name="make_once_button_component()">
|
||||
<script type="text/x-template" id="once-button-template">
|
||||
<b-button :type="type"
|
||||
|
|
Loading…
Reference in a new issue