Add <b-tooltip> component shim

This commit is contained in:
Lance Edgar 2024-06-04 17:15:29 -05:00
parent 00e2af1561
commit 10aac388f0

View file

@ -19,6 +19,7 @@
${self.make_b_step_item_component()} ${self.make_b_step_item_component()}
${self.make_b_table_component()} ${self.make_b_table_component()}
${self.make_b_table_column_component()} ${self.make_b_table_column_component()}
${self.make_b_tooltip_component()}
${self.make_once_button_component()} ${self.make_once_button_component()}
</%def> </%def>
@ -662,6 +663,25 @@
<% request.register_component('b-table-column', 'BTableColumn') %> <% request.register_component('b-table-column', 'BTableColumn') %>
</%def> </%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()"> <%def name="make_once_button_component()">
<script type="text/x-template" id="once-button-template"> <script type="text/x-template" id="once-button-template">
<b-button :type="type" <b-button :type="type"