@progress/kendo-vue-animation
Version:
Kendo UI for Vue Animation package
9 lines (8 loc) • 1.52 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./Animation.js"),o=require("@progress/kendo-vue-common");function r(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const a={position:"absolute",top:"0",left:"0"},s=e.defineComponent({props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,componentChildStyle:Object,className:String,direction:{type:String,default:"right"},tag:String,id:String},render(){const t=o.getDefaultSlots(this),n=`push-${this.$props.direction}`;return e.createVNode(i.Animation,{transitionName:n,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,componentChildStyle:this.$props.componentChildStyle,animationExitingStyle:this.$props.stackChildren?a:void 0},r(t)?t:{default:()=>[t]})}});exports.Push=s;