![]() 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/src/components/skeleton/ |
import { Vue } from '../../vue' import { NAME_SKELETON_ICON } from '../../constants/components' import { PROP_TYPE_OBJECT, PROP_TYPE_STRING } from '../../constants/props' import { makeProp, makePropsConfigurable } from '../../utils/props' import { BIcon } from '../../icons' // --- Props --- export const props = makePropsConfigurable( { animation: makeProp(PROP_TYPE_STRING, 'wave'), icon: makeProp(PROP_TYPE_STRING), iconProps: makeProp(PROP_TYPE_OBJECT, {}) }, NAME_SKELETON_ICON ) // --- Main component --- // @vue/component export const BSkeletonIcon = /*#__PURE__*/ Vue.extend({ name: NAME_SKELETON_ICON, functional: true, props, render(h, { props }) { const { icon, animation } = props const $icon = h(BIcon, { staticClass: 'b-skeleton-icon', props: { ...props.iconProps, icon } }) return h( 'div', { staticClass: 'b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden', class: { [`b-skeleton-animate-${animation}`]: animation } }, [$icon] ) } })