|
@@ -5,7 +5,6 @@
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
:row-key="(record) => record.id"
|
|
|
- :row-selection="options.rowSelection"
|
|
|
:loading="loading"
|
|
|
bordered
|
|
|
@resizeColumn="handleResizeColumn"
|
|
@@ -104,15 +103,6 @@
|
|
|
const tableRef = ref()
|
|
|
const selectedRowKeys = ref([]) //选中的元素
|
|
|
|
|
|
- // 列表选择配置
|
|
|
- const options = {
|
|
|
- rowSelection: {
|
|
|
- onChange: (selectedRowKey, selectedRows) => {
|
|
|
- selectedRowKeys.value = selectedRowKey
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// 可伸缩列
|
|
|
const handleResizeColumn = (w, col) => {
|
|
|
col.width = w
|