UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

3 lines (2 loc) 1.03 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),o={compatConfig:{MODE:3},name:"DtLazyShow",inheritAttrs:!1,props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}}};function s(t,u,a,d,i,r){return e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:a.transition,appear:a.appear},t.$attrs,{css:r.isCSSEnabled}),{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),[i.initialized?e.renderSlot(t.$slots,"default",{key:0}):e.createCommentVNode("",!0)],16),[[e.vShow,a.show]])]),_:3},16,["name","appear","css"])}const l=n._(o,[["render",s]]);exports.default=l; //# sourceMappingURL=lazy-show.cjs.map