| | |
| | | <template> |
| | | <div style="width: 100%;height: 100%;"> |
| | | <div style="width: 100%;height: 100%;" > |
| | | <!-- 正常区域的框 --> |
| | | <div class="vxe-table--cell-area" ref="cellarea"> |
| | | <span class="vxe-table--cell-main-area"></span> |
| | | <span class="vxe-table--cell-active-area"></span> |
| | | </div> |
| | | <!-- 左侧fixed区域的框 --> |
| | | <!-- <div class="vxe-table--cell-area" ref="leftfixedcellarea">--> |
| | | <!-- <span class="vxe-table--cell-main-area"></span>--> |
| | | <!-- <span class="vxe-table--cell-active-area"></span>--> |
| | | <!-- </div>--> |
| | | <!-- 右侧fixed区域的框 --> |
| | | <!-- <div class="vxe-table--cell-area" ref="rightfixedcellarea">--> |
| | | <!-- <span class="vxe-table--cell-main-area"></span>--> |
| | | <!-- <span class="vxe-table--cell-active-area"></span>--> |
| | | <!-- </div>--> |
| | | <vxe-grid |
| | | max-height="100%" |
| | | @filter-change="filterChanged" |
| | |
| | | ref="xGrid" |
| | | v-bind="gridOptions" |
| | | v-on="gridEvents" |
| | | @scroll ="scrollEvnt" |
| | | |
| | | > |
| | | <!-- @toolbar-button-click="toolbarButtonClickEvent"--> |
| | |
| | | import router from "@/router"; |
| | | //prop接收父组件函数 |
| | | |
| | | |
| | | |
| | | let props = defineProps({ |
| | | tableProp:{ |
| | | String, |
| | |
| | | list.forEach(item => { |
| | | count += Number(item[field]) |
| | | }) |
| | | return count |
| | | return count.toFixed(2) |
| | | } |
| | | |
| | | const changeFilterEvent = (event, option, $panel,) => { |
| | |
| | | printConfig: {}, |
| | | importConfig: {}, |
| | | exportConfig: {}, |
| | | scrollY:{ enabled: true },//开启虚拟滚动 |
| | | scrollY:{ enabled: true , gt: 40},//开启虚拟滚动 |
| | | showOverflow:true, |
| | | columnConfig: { |
| | | resizable: true, |