@ntohq/buefy-next
Version:
Lightweight UI components for Vue.js (v3) based on Bulma
3 lines (2 loc) • 1.45 kB
JavaScript
/*! Buefy v0.2.0 | MIT License | github.com/buefy/buefy */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Skeleton={},e.Vue)}(this,(function(e,t){"use strict";const n=["","is-centered","is-right"],o=e=>{if(!e.active)return;const n=[],o=e.width,i=e.height;for(let r=0;r<e.count;r++)n.push(t.h("div",{class:["b-skeleton-item",{"is-rounded":e.rounded}],key:r,style:{height:void 0===i?null:isNaN(+i)?i:i+"px",width:void 0===o?null:isNaN(+o)?o:o+"px",borderRadius:e.circle?"50%":null}}));return t.h("div",{class:["b-skeleton",e.size,e.position,{"is-animated":e.animated}]},n)};o.props={active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},position:{type:String,default:"",validator:e=>n.indexOf(e)>-1},size:String};var i=((e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n})(o,[["__file","/home/runner/work/buefy-next/buefy-next/packages/buefy-next/src/components/skeleton/Skeleton.vue"]]);const r={install(e){((e,t,n)=>{const o=n||t.name;if(null==o)throw new Error("Buefy.registerComponent: missing component name");e.component(o,t)})(e,i,"BSkeleton")}};e.BSkeleton=i,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));