%PDF- %PDF-
Direktori : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/components/skeleton/ |
Current File : /home/ugotscom/3vfm3/node_modules/bootstrap-vue/src/components/skeleton/skeleton-icon.js |
import Vue from '../../vue' import { NAME_SKELETON_ICON } from '../../constants/components' import { makePropsConfigurable } from '../../utils/config' import { BIcon } from '../../icons' // @vue/component export const BSkeletonIcon = /*#__PURE__*/ Vue.extend({ name: NAME_SKELETON_ICON, functional: true, props: makePropsConfigurable( { animation: { type: String, default: 'wave' }, icon: { type: String }, iconProps: { type: Object, default: () => {} } }, NAME_SKELETON_ICON ), render(h, { props }) { const { icon, animation } = props const $icon = h(BIcon, { props: { icon, ...props.iconProps }, staticClass: 'b-skeleton-icon' }) return h( 'div', { staticClass: 'b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden', class: { [`b-skeleton-animate-${animation}`]: animation } }, [$icon] ) } })