import{shallowRef as n,computed as s}from"vue";const o=i=>{const l=n({width:0,height:0});function u(e){l.value={width:e.offsetWidth,height:e.offsetHeight}}return[s(()=>{const e={};if(i.value){const{width:t,height:h}=l.value;i.value.includes("height")&&h?e.height=`${h}px`:i.value.includes("minHeight")&&h&&(e.minHeight=`${h}px`),i.value.includes("width")&&t?e.width=`${t}px`:i.value.includes("minWidth")&&t&&(e.minWidth=`${t}px`)}return e}),u]};export{o as default};
