xiaoluoboding / vue-smart-widget

🗃️Smart widget is a flexible and extensible content container component for Vue2.x / Vue3.x in Next branch.
https://xiaoluoboding.github.io/vue-smart-widget/
MIT License
185 stars 35 forks source link

vue3 how to dynamically set colNum and rowHeight? #62

Open strongQ opened 6 months ago

strongQ commented 6 months ago

dynamically set property not work,only can set static。how to do ?

 <smart-widget-grid @layout-before-mount="gridMount"   :colNum="colNum" :rowHeight="rowHeight"  :layout="tags"  draggable="true" @dragover="onEnd" @dragenter="onEnter">
</>

// ts

query=>{
  rowHeight.value=res.data.result.rowHeight;
  colNum.value=res.data.result.colNum;
}