@progress/kendo-vue-layout
Version:
9 lines (8 loc) • 1.2 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
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),n=require("@progress/kendo-vue-common"),e=require("./interfaces/Enums.js"),o=r.defineComponent({name:"KendoCardActions",props:{layout:{type:String,default:e.cardActionsLayout.START,validator:function(t){return["stretched","start","center","end"].includes(t)}},orientation:{type:String,default:e.cardOrientation.HORIZONTAL,validator:function(t){return["horizontal","vertical"].includes(t)}}},computed:{wrapperClass(){return{"k-card-actions":!0,"k-actions":!0,[`k-actions-${this.$props.layout}`]:!0,[`k-actions-${this.$props.orientation!==e.cardOrientation.HORIZONTAL?"vertical":"horizontal"}`]:!0}}},render(){const t=n.getDefaultSlots(this);return r.createVNode("div",{class:this.wrapperClass},[t])}});exports.CardActions=o;