@progress/kendo-vue-animation
Version:
Kendo UI for Vue Animation package
71 lines (70 loc) • 1.83 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
*-------------------------------------------------------------------------------------------
*/
import { defineComponent as o, createVNode as i, isVNode as n } from "vue";
import { Animation as r } from "./Animation.mjs";
import { getDefaultSlots as a } from "@progress/kendo-vue-common";
function p(t) {
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !n(t);
}
const s = {
position: "absolute",
top: "0",
left: "0"
}, f = /* @__PURE__ */ o({
props: {
appear: {
type: Boolean,
default: !1
},
enter: {
type: Boolean,
default: !0
},
exit: {
type: Boolean,
default: !0
},
stackChildren: {
type: Boolean,
default: !1
},
transitionEnterDuration: {
type: Number,
default: 300
},
transitionExitDuration: {
type: Number,
default: 300
},
childFactory: Object,
className: String,
direction: {
type: String,
default: "out"
},
tag: String,
id: String
},
render() {
const t = a(this), e = `zoom-${this.$props.direction}`;
return i(r, {
transitionName: e,
appear: this.$props.appear,
enter: this.$props.enter,
exit: this.$props.exit,
transitionEnterDuration: this.$props.transitionEnterDuration,
transitionExitDuration: this.$props.transitionExitDuration,
animationExitingStyle: this.$props.stackChildren ? s : void 0
}, p(t) ? t : {
default: () => [t]
});
}
});
export {
f as Zoom
};