"use strict";const uni_modules_uviewPlus_components_uTransition_props=require("./props.js");const uni_modules_uviewPlus_libs_mixin_mpMixin=require("../../libs/mixin/mpMixin.js");const uni_modules_uviewPlus_libs_mixin_mixin=require("../../libs/mixin/mixin.js");const uni_modules_uviewPlus_libs_function_index=require("../../libs/function/index.js");const uni_modules_uviewPlus_components_uTransition_transition=require("./transition.js");const common_vendor=require("../../../../common/vendor.js");const _sfc_main={name:"u-transition",data(){return{inited:false,viewStyle:{},status:"",transitionEnded:false,display:false,classes:""}},emits:["click","beforeEnter","enter","afterEnter","beforeLeave","leave","afterLeave"],computed:{mergeStyle(){const{viewStyle:viewStyle,customStyle:customStyle}=this;return{transitionDuration:`${this.duration}ms`,transitionTimingFunction:this.timingFunction,...uni_modules_uviewPlus_libs_function_index.addStyle(customStyle),...viewStyle}}},mixins:[uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin,uni_modules_uviewPlus_libs_mixin_mixin.mixin,uni_modules_uviewPlus_components_uTransition_transition.transition,uni_modules_uviewPlus_components_uTransition_props.props],watch:{show:{handler(newVal){newVal?this.vueEnter():this.vueLeave()},immediate:true}}};function _sfc_render(_ctx,_cache,$props,$setup,$data,$options){return common_vendor.e({a:$data.inited},$data.inited?{b:common_vendor.o(((...args)=>_ctx.clickHandler&&_ctx.clickHandler(...args))),c:common_vendor.n($data.classes),d:common_vendor.s($options.mergeStyle),e:common_vendor.o(((...args)=>_ctx.noop&&_ctx.noop(...args)))}:{})}const Component=common_vendor._export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-1a97dc57"]]);my.createComponent(Component);
