UNPKG

@vue-interface/shadowable

Version:
3 lines (2 loc) 900 B
(function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e.Shadowable={},e.Vue))})(this,function(e,o){"use strict";const d=o.defineComponent({props:{dropShadow:{type:[Boolean,String],default:void 0},dropShadowableClassPrefix:{type:String,default:"drop-shadow"},shadow:{type:[Boolean,String],default:void 0},shadowableClassPrefix:{type:String,default:"shadow"}},computed:{shadowableClass(){const s=this.dropShadow===!0?"":this.dropShadow&&`-${this.dropShadow}`,a=this.shadow===!0?"":this.shadow&&`-${this.shadow}`;return{[`${this.dropShadowableClassPrefix}${s}`]:!!this.dropShadow,[`${this.shadowableClassPrefix}${a}`]:!!this.shadow}}}});e.Shadowable=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}); //# sourceMappingURL=shadowable.umd.cjs.map