![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/bootstrap-vue/esm/components/skeleton/ |
import { Vue, mergeData } from '../../vue'; import { NAME_SKELETON_WRAPPER } from '../../constants/components'; import { PROP_TYPE_BOOLEAN } from '../../constants/props'; import { SLOT_NAME_DEFAULT, SLOT_NAME_LOADING } from '../../constants/slots'; import { normalizeSlot } from '../../utils/normalize-slot'; import { makeProp, makePropsConfigurable } from '../../utils/props'; // --- Props --- export var props = makePropsConfigurable({ loading: makeProp(PROP_TYPE_BOOLEAN, false) }, NAME_SKELETON_WRAPPER); // --- Main component --- // @vue/component export var BSkeletonWrapper = /*#__PURE__*/Vue.extend({ name: NAME_SKELETON_WRAPPER, functional: true, props: props, render: function render(h, _ref) { var data = _ref.data, props = _ref.props, slots = _ref.slots, scopedSlots = _ref.scopedSlots; var $slots = slots(); var $scopedSlots = scopedSlots || {}; var slotScope = {}; if (props.loading) { return h('div', mergeData(data, { attrs: { role: 'alert', 'aria-live': 'polite', 'aria-busy': true }, staticClass: 'b-skeleton-wrapper', key: 'loading' }), normalizeSlot(SLOT_NAME_LOADING, slotScope, $scopedSlots, $slots)); } return normalizeSlot(SLOT_NAME_DEFAULT, slotScope, $scopedSlots, $slots); } });