br-dionysus 1.15.3 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +308 -36
- package/attributes.json +1 -1
- package/dist/br-dionysus.es.js +2048 -2034
- package/dist/br-dionysus.umd.js +7 -7
- package/dist/index.css +1 -1
- package/dist/packages/Hook/useTableConfig/useTableConfig.d.ts +2 -6
- package/dist/packages/MSelectTable/src/MSelectTable.vue.d.ts +3 -3
- package/dist/packages/MTable/src/MTable.vue.d.ts +19 -9
- package/package.json +1 -1
- package/packages/Hook/useTableConfig/demo.vue +1 -1
- package/packages/Hook/useTableConfig/useTableConfig.ts +2 -6
- package/packages/MDialog/src/BatchEdit.vue +174 -0
- package/packages/MSelectTable/src/MSelectTable.vue +35 -6
- package/packages/MTable/docs/README.md +8 -8
- package/packages/MTable/docs/demo.vue +146 -10
- package/packages/MTable/src/MTable.vue +77 -17
- package/packages/MTableSuper/src/MTableSuper.vue +1 -1
- package/packages/typings/global.d.ts +34 -32
- package/tags.json +1 -1
- package/vite.config.ts +1 -1
- package/web-types.json +1 -1
package/README.md
CHANGED
|
@@ -1131,10 +1131,38 @@ const options: Option[] = [{
|
|
|
1131
1131
|
|
|
1132
1132
|
<template>
|
|
1133
1133
|
<div class="g-box">
|
|
1134
|
+
<h3>普通表格</h3>
|
|
1135
|
+
<MTable
|
|
1136
|
+
:data="tableData1"
|
|
1137
|
+
border
|
|
1138
|
+
:filtersValue="filtersValue"
|
|
1139
|
+
scrollbarAlwaysOn
|
|
1140
|
+
v-model:tableConfig="tableConfig"
|
|
1141
|
+
@selectionChange="handleSelectionChange"
|
|
1142
|
+
>
|
|
1143
|
+
<el-table-column
|
|
1144
|
+
fixed="left"
|
|
1145
|
+
type="selection"
|
|
1146
|
+
/>
|
|
1147
|
+
<MTableColumn
|
|
1148
|
+
v-for="item in tableTitle"
|
|
1149
|
+
:key="item.prop"
|
|
1150
|
+
:prop="item.prop"
|
|
1151
|
+
:label="item.label"
|
|
1152
|
+
:align="item.align"
|
|
1153
|
+
:minWidth="item.minWidth"
|
|
1154
|
+
:className="item.className"
|
|
1155
|
+
:filters="item.filters"
|
|
1156
|
+
:headerAlign="item.headerAlign"
|
|
1157
|
+
:fixed="item.fixed"
|
|
1158
|
+
v-model:filtersValue="filtersValue"
|
|
1159
|
+
showOverflowTooltip
|
|
1160
|
+
></MTableColumn>
|
|
1161
|
+
</MTable>
|
|
1162
|
+
|
|
1134
1163
|
<h3>展开列</h3>
|
|
1135
1164
|
<p @click="zzzz">{{ tableConfig }}</p>
|
|
1136
1165
|
<MTable
|
|
1137
|
-
class="style.box"
|
|
1138
1166
|
:data="tableData"
|
|
1139
1167
|
border
|
|
1140
1168
|
@headerDragend="headerDragend"
|
|
@@ -1189,9 +1217,9 @@ const options: Option[] = [{
|
|
|
1189
1217
|
>
|
|
1190
1218
|
</MTableColumn>
|
|
1191
1219
|
</MTable>
|
|
1220
|
+
|
|
1192
1221
|
<h3>树状表格</h3>
|
|
1193
1222
|
<MTable
|
|
1194
|
-
class="style.box"
|
|
1195
1223
|
:data="tableData"
|
|
1196
1224
|
border
|
|
1197
1225
|
@headerDragend="headerDragend"
|
|
@@ -1218,6 +1246,38 @@ const options: Option[] = [{
|
|
|
1218
1246
|
>
|
|
1219
1247
|
</MTableColumn>
|
|
1220
1248
|
</MTable>
|
|
1249
|
+
|
|
1250
|
+
<h3>批改</h3>
|
|
1251
|
+
<BatchEdit
|
|
1252
|
+
ref="batchEditRef"
|
|
1253
|
+
size="small"
|
|
1254
|
+
v-model:tableData="tableData1"
|
|
1255
|
+
:selectionCell="selectionCell"
|
|
1256
|
+
:tableTitle="tableTitle"
|
|
1257
|
+
></BatchEdit>
|
|
1258
|
+
<MTable
|
|
1259
|
+
:data="tableData1"
|
|
1260
|
+
border
|
|
1261
|
+
scrollbarAlwaysOn
|
|
1262
|
+
showSelectionCellStatus
|
|
1263
|
+
v-model:selectionCell="selectionCell"
|
|
1264
|
+
>
|
|
1265
|
+
<MTableColumn
|
|
1266
|
+
v-for="item in tableTitle"
|
|
1267
|
+
:key="item.prop"
|
|
1268
|
+
:prop="item.prop"
|
|
1269
|
+
:label="item.label"
|
|
1270
|
+
:align="item.align"
|
|
1271
|
+
:minWidth="item.minWidth"
|
|
1272
|
+
:className="item.className"
|
|
1273
|
+
:filters="item.filters"
|
|
1274
|
+
:headerAlign="item.headerAlign"
|
|
1275
|
+
:fixed="item.fixed"
|
|
1276
|
+
v-model:filtersValue="filtersValue"
|
|
1277
|
+
showOverflowTooltip
|
|
1278
|
+
></MTableColumn>
|
|
1279
|
+
</MTable>
|
|
1280
|
+
<p>选中的单元格:{{ selectionCell }}</p>
|
|
1221
1281
|
</div>
|
|
1222
1282
|
</template>
|
|
1223
1283
|
|
|
@@ -1225,34 +1285,40 @@ const options: Option[] = [{
|
|
|
1225
1285
|
import { ref } from 'vue'
|
|
1226
1286
|
import { useTableConfig } from './../../index'
|
|
1227
1287
|
import { MTableColumn } from './../../MTableColumn'
|
|
1288
|
+
import BatchEdit from 'packages/MDialog/src/BatchEdit.vue'
|
|
1228
1289
|
|
|
1229
1290
|
const privateExpandChange = (row: any, expandedRows: any[]) => {
|
|
1230
1291
|
console.log('row', row)
|
|
1231
1292
|
console.log('expandedRows', expandedRows)
|
|
1232
1293
|
}
|
|
1233
1294
|
|
|
1234
|
-
// const test = (data: any) => {
|
|
1235
|
-
// console.log('data', data)
|
|
1236
|
-
// }
|
|
1237
|
-
|
|
1238
1295
|
const tableData = ref<any[]>([])
|
|
1239
1296
|
const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
|
|
1240
1297
|
label: '序号',
|
|
1241
1298
|
prop: 'sn',
|
|
1242
1299
|
minWidth: 200,
|
|
1243
|
-
fixed: 'left'
|
|
1300
|
+
fixed: 'left',
|
|
1301
|
+
isBatchEdit: false
|
|
1244
1302
|
}, {
|
|
1245
1303
|
label: '时间',
|
|
1246
1304
|
prop: 'date',
|
|
1247
|
-
minWidth: 200
|
|
1305
|
+
minWidth: 200,
|
|
1306
|
+
isBatchEdit: true
|
|
1248
1307
|
}, {
|
|
1249
1308
|
label: '地址',
|
|
1250
1309
|
prop: 'address',
|
|
1251
|
-
minWidth: 200
|
|
1310
|
+
minWidth: 200,
|
|
1311
|
+
isBatchEdit: true
|
|
1252
1312
|
}, {
|
|
1253
1313
|
label: '名称',
|
|
1254
1314
|
prop: 'name',
|
|
1255
|
-
minWidth: 200
|
|
1315
|
+
minWidth: 200,
|
|
1316
|
+
isBatchEdit: true
|
|
1317
|
+
}, {
|
|
1318
|
+
label: '数量',
|
|
1319
|
+
prop: 'qty',
|
|
1320
|
+
minWidth: 200,
|
|
1321
|
+
isBatchEdit: true
|
|
1256
1322
|
}], tableData)
|
|
1257
1323
|
|
|
1258
1324
|
// const childTableTitle: TableTitle[] = [{
|
|
@@ -1340,6 +1406,76 @@ tableData.value = [{
|
|
|
1340
1406
|
tag: 'Office',
|
|
1341
1407
|
pid: 0
|
|
1342
1408
|
}]
|
|
1409
|
+
|
|
1410
|
+
const tableData1 = ref<any[]>([])
|
|
1411
|
+
tableData1.value = [{
|
|
1412
|
+
id: 1,
|
|
1413
|
+
sn: 1,
|
|
1414
|
+
date: '2016-05-03',
|
|
1415
|
+
name: 'Tom1',
|
|
1416
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1417
|
+
tag: 'Home',
|
|
1418
|
+
pid: 0,
|
|
1419
|
+
qty: 10
|
|
1420
|
+
}, {
|
|
1421
|
+
id: 2,
|
|
1422
|
+
sn: 2,
|
|
1423
|
+
date: '2016-05-02',
|
|
1424
|
+
name: 'Tom2',
|
|
1425
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1426
|
+
tag: 'Office',
|
|
1427
|
+
pid: 0,
|
|
1428
|
+
qty: 101
|
|
1429
|
+
}, {
|
|
1430
|
+
id: 3,
|
|
1431
|
+
sn: 3,
|
|
1432
|
+
date: '2016-05-04',
|
|
1433
|
+
name: 'Tom3',
|
|
1434
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1435
|
+
tag: 'Home',
|
|
1436
|
+
pid: 0,
|
|
1437
|
+
qty: 102
|
|
1438
|
+
}, {
|
|
1439
|
+
id: 4,
|
|
1440
|
+
sn: 4,
|
|
1441
|
+
date: '2016-05-01',
|
|
1442
|
+
name: 'Tom4',
|
|
1443
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1444
|
+
tag: 'Office',
|
|
1445
|
+
pid: 0,
|
|
1446
|
+
qty: 103
|
|
1447
|
+
}, {
|
|
1448
|
+
id: 5,
|
|
1449
|
+
sn: 5,
|
|
1450
|
+
date: '2016-05-05',
|
|
1451
|
+
name: 'Tom4',
|
|
1452
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1453
|
+
tag: 'Office',
|
|
1454
|
+
pid: 0,
|
|
1455
|
+
qty: 104
|
|
1456
|
+
}, {
|
|
1457
|
+
id: 6,
|
|
1458
|
+
sn: 6,
|
|
1459
|
+
date: '2016-06-01',
|
|
1460
|
+
name: 'Tom4',
|
|
1461
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
1462
|
+
tag: 'Office',
|
|
1463
|
+
pid: 0,
|
|
1464
|
+
qty: 105
|
|
1465
|
+
}]
|
|
1466
|
+
|
|
1467
|
+
// 选中项
|
|
1468
|
+
const multipleSelection = ref<number[]>([])
|
|
1469
|
+
const handleSelectionChange = (val: any[]) => {
|
|
1470
|
+
multipleSelection.value = val.map(item => item.sn)
|
|
1471
|
+
tableData1.value[0].name = tableData1.value[0].name + 'd'
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* 批量修改
|
|
1476
|
+
* */
|
|
1477
|
+
const selectionCell = ref<string>('')
|
|
1478
|
+
const batchEditRef = ref<InstanceType<typeof BatchEdit> | null>(null)
|
|
1343
1479
|
</script>
|
|
1344
1480
|
|
|
1345
1481
|
<style lang="scss" scoped>
|
|
@@ -1353,14 +1489,14 @@ tableData.value = [{
|
|
|
1353
1489
|
|
|
1354
1490
|
### 2) Attributes
|
|
1355
1491
|
|
|
1356
|
-
| 参数 | 说明 | 类型
|
|
1357
|
-
|
|
1358
|
-
| data | 表格的数据 |
|
|
1359
|
-
| sole | 行的唯一值 | String , number
|
|
1360
|
-
| filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null
|
|
1361
|
-
| expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string
|
|
1362
|
-
| tableConfigKey | 表格配置key | string
|
|
1363
|
-
| 其余参数 | 参考el官网的table | any
|
|
1492
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
1493
|
+
|----------------|-----------------------------|-----------------------|-----|-----------------------------------------------------|
|
|
1494
|
+
| data | 表格的数据 | Record<string, any>[] | - | [ ] |
|
|
1495
|
+
| sole | 行的唯一值 | String , number | - | key |
|
|
1496
|
+
| filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null | - | null |
|
|
1497
|
+
| expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string | - | '' |
|
|
1498
|
+
| tableConfigKey | 表格配置key | string | - | '' |
|
|
1499
|
+
| 其余参数 | 参考el官网的table | any | - | https://element-plus.org/zh-CN/component/table.html |
|
|
1364
1500
|
|
|
1365
1501
|
## 要求
|
|
1366
1502
|
|
|
@@ -4121,10 +4257,38 @@ const options: Option[] = [{
|
|
|
4121
4257
|
|
|
4122
4258
|
<template>
|
|
4123
4259
|
<div class="g-box">
|
|
4260
|
+
<h3>普通表格</h3>
|
|
4261
|
+
<MTable
|
|
4262
|
+
:data="tableData1"
|
|
4263
|
+
border
|
|
4264
|
+
:filtersValue="filtersValue"
|
|
4265
|
+
scrollbarAlwaysOn
|
|
4266
|
+
v-model:tableConfig="tableConfig"
|
|
4267
|
+
@selectionChange="handleSelectionChange"
|
|
4268
|
+
>
|
|
4269
|
+
<el-table-column
|
|
4270
|
+
fixed="left"
|
|
4271
|
+
type="selection"
|
|
4272
|
+
/>
|
|
4273
|
+
<MTableColumn
|
|
4274
|
+
v-for="item in tableTitle"
|
|
4275
|
+
:key="item.prop"
|
|
4276
|
+
:prop="item.prop"
|
|
4277
|
+
:label="item.label"
|
|
4278
|
+
:align="item.align"
|
|
4279
|
+
:minWidth="item.minWidth"
|
|
4280
|
+
:className="item.className"
|
|
4281
|
+
:filters="item.filters"
|
|
4282
|
+
:headerAlign="item.headerAlign"
|
|
4283
|
+
:fixed="item.fixed"
|
|
4284
|
+
v-model:filtersValue="filtersValue"
|
|
4285
|
+
showOverflowTooltip
|
|
4286
|
+
></MTableColumn>
|
|
4287
|
+
</MTable>
|
|
4288
|
+
|
|
4124
4289
|
<h3>展开列</h3>
|
|
4125
4290
|
<p @click="zzzz">{{ tableConfig }}</p>
|
|
4126
4291
|
<MTable
|
|
4127
|
-
class="style.box"
|
|
4128
4292
|
:data="tableData"
|
|
4129
4293
|
border
|
|
4130
4294
|
@headerDragend="headerDragend"
|
|
@@ -4179,9 +4343,9 @@ const options: Option[] = [{
|
|
|
4179
4343
|
>
|
|
4180
4344
|
</MTableColumn>
|
|
4181
4345
|
</MTable>
|
|
4346
|
+
|
|
4182
4347
|
<h3>树状表格</h3>
|
|
4183
4348
|
<MTable
|
|
4184
|
-
class="style.box"
|
|
4185
4349
|
:data="tableData"
|
|
4186
4350
|
border
|
|
4187
4351
|
@headerDragend="headerDragend"
|
|
@@ -4208,6 +4372,38 @@ const options: Option[] = [{
|
|
|
4208
4372
|
>
|
|
4209
4373
|
</MTableColumn>
|
|
4210
4374
|
</MTable>
|
|
4375
|
+
|
|
4376
|
+
<h3>批改</h3>
|
|
4377
|
+
<BatchEdit
|
|
4378
|
+
ref="batchEditRef"
|
|
4379
|
+
size="small"
|
|
4380
|
+
v-model:tableData="tableData1"
|
|
4381
|
+
:selectionCell="selectionCell"
|
|
4382
|
+
:tableTitle="tableTitle"
|
|
4383
|
+
></BatchEdit>
|
|
4384
|
+
<MTable
|
|
4385
|
+
:data="tableData1"
|
|
4386
|
+
border
|
|
4387
|
+
scrollbarAlwaysOn
|
|
4388
|
+
showSelectionCellStatus
|
|
4389
|
+
v-model:selectionCell="selectionCell"
|
|
4390
|
+
>
|
|
4391
|
+
<MTableColumn
|
|
4392
|
+
v-for="item in tableTitle"
|
|
4393
|
+
:key="item.prop"
|
|
4394
|
+
:prop="item.prop"
|
|
4395
|
+
:label="item.label"
|
|
4396
|
+
:align="item.align"
|
|
4397
|
+
:minWidth="item.minWidth"
|
|
4398
|
+
:className="item.className"
|
|
4399
|
+
:filters="item.filters"
|
|
4400
|
+
:headerAlign="item.headerAlign"
|
|
4401
|
+
:fixed="item.fixed"
|
|
4402
|
+
v-model:filtersValue="filtersValue"
|
|
4403
|
+
showOverflowTooltip
|
|
4404
|
+
></MTableColumn>
|
|
4405
|
+
</MTable>
|
|
4406
|
+
<p>选中的单元格:{{ selectionCell }}</p>
|
|
4211
4407
|
</div>
|
|
4212
4408
|
</template>
|
|
4213
4409
|
|
|
@@ -4215,34 +4411,40 @@ const options: Option[] = [{
|
|
|
4215
4411
|
import { ref } from 'vue'
|
|
4216
4412
|
import { useTableConfig } from './../../index'
|
|
4217
4413
|
import { MTableColumn } from './../../MTableColumn'
|
|
4414
|
+
import BatchEdit from 'packages/MDialog/src/BatchEdit.vue'
|
|
4218
4415
|
|
|
4219
4416
|
const privateExpandChange = (row: any, expandedRows: any[]) => {
|
|
4220
4417
|
console.log('row', row)
|
|
4221
4418
|
console.log('expandedRows', expandedRows)
|
|
4222
4419
|
}
|
|
4223
4420
|
|
|
4224
|
-
// const test = (data: any) => {
|
|
4225
|
-
// console.log('data', data)
|
|
4226
|
-
// }
|
|
4227
|
-
|
|
4228
4421
|
const tableData = ref<any[]>([])
|
|
4229
4422
|
const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
|
|
4230
4423
|
label: '序号',
|
|
4231
4424
|
prop: 'sn',
|
|
4232
4425
|
minWidth: 200,
|
|
4233
|
-
fixed: 'left'
|
|
4426
|
+
fixed: 'left',
|
|
4427
|
+
isBatchEdit: false
|
|
4234
4428
|
}, {
|
|
4235
4429
|
label: '时间',
|
|
4236
4430
|
prop: 'date',
|
|
4237
|
-
minWidth: 200
|
|
4431
|
+
minWidth: 200,
|
|
4432
|
+
isBatchEdit: true
|
|
4238
4433
|
}, {
|
|
4239
4434
|
label: '地址',
|
|
4240
4435
|
prop: 'address',
|
|
4241
|
-
minWidth: 200
|
|
4436
|
+
minWidth: 200,
|
|
4437
|
+
isBatchEdit: true
|
|
4242
4438
|
}, {
|
|
4243
4439
|
label: '名称',
|
|
4244
4440
|
prop: 'name',
|
|
4245
|
-
minWidth: 200
|
|
4441
|
+
minWidth: 200,
|
|
4442
|
+
isBatchEdit: true
|
|
4443
|
+
}, {
|
|
4444
|
+
label: '数量',
|
|
4445
|
+
prop: 'qty',
|
|
4446
|
+
minWidth: 200,
|
|
4447
|
+
isBatchEdit: true
|
|
4246
4448
|
}], tableData)
|
|
4247
4449
|
|
|
4248
4450
|
// const childTableTitle: TableTitle[] = [{
|
|
@@ -4330,6 +4532,76 @@ tableData.value = [{
|
|
|
4330
4532
|
tag: 'Office',
|
|
4331
4533
|
pid: 0
|
|
4332
4534
|
}]
|
|
4535
|
+
|
|
4536
|
+
const tableData1 = ref<any[]>([])
|
|
4537
|
+
tableData1.value = [{
|
|
4538
|
+
id: 1,
|
|
4539
|
+
sn: 1,
|
|
4540
|
+
date: '2016-05-03',
|
|
4541
|
+
name: 'Tom1',
|
|
4542
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4543
|
+
tag: 'Home',
|
|
4544
|
+
pid: 0,
|
|
4545
|
+
qty: 10
|
|
4546
|
+
}, {
|
|
4547
|
+
id: 2,
|
|
4548
|
+
sn: 2,
|
|
4549
|
+
date: '2016-05-02',
|
|
4550
|
+
name: 'Tom2',
|
|
4551
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4552
|
+
tag: 'Office',
|
|
4553
|
+
pid: 0,
|
|
4554
|
+
qty: 101
|
|
4555
|
+
}, {
|
|
4556
|
+
id: 3,
|
|
4557
|
+
sn: 3,
|
|
4558
|
+
date: '2016-05-04',
|
|
4559
|
+
name: 'Tom3',
|
|
4560
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4561
|
+
tag: 'Home',
|
|
4562
|
+
pid: 0,
|
|
4563
|
+
qty: 102
|
|
4564
|
+
}, {
|
|
4565
|
+
id: 4,
|
|
4566
|
+
sn: 4,
|
|
4567
|
+
date: '2016-05-01',
|
|
4568
|
+
name: 'Tom4',
|
|
4569
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4570
|
+
tag: 'Office',
|
|
4571
|
+
pid: 0,
|
|
4572
|
+
qty: 103
|
|
4573
|
+
}, {
|
|
4574
|
+
id: 5,
|
|
4575
|
+
sn: 5,
|
|
4576
|
+
date: '2016-05-05',
|
|
4577
|
+
name: 'Tom4',
|
|
4578
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4579
|
+
tag: 'Office',
|
|
4580
|
+
pid: 0,
|
|
4581
|
+
qty: 104
|
|
4582
|
+
}, {
|
|
4583
|
+
id: 6,
|
|
4584
|
+
sn: 6,
|
|
4585
|
+
date: '2016-06-01',
|
|
4586
|
+
name: 'Tom4',
|
|
4587
|
+
address: 'No. 189, Grove St, Los Angeles',
|
|
4588
|
+
tag: 'Office',
|
|
4589
|
+
pid: 0,
|
|
4590
|
+
qty: 105
|
|
4591
|
+
}]
|
|
4592
|
+
|
|
4593
|
+
// 选中项
|
|
4594
|
+
const multipleSelection = ref<number[]>([])
|
|
4595
|
+
const handleSelectionChange = (val: any[]) => {
|
|
4596
|
+
multipleSelection.value = val.map(item => item.sn)
|
|
4597
|
+
tableData1.value[0].name = tableData1.value[0].name + 'd'
|
|
4598
|
+
}
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* 批量修改
|
|
4602
|
+
* */
|
|
4603
|
+
const selectionCell = ref<string>('')
|
|
4604
|
+
const batchEditRef = ref<InstanceType<typeof BatchEdit> | null>(null)
|
|
4333
4605
|
</script>
|
|
4334
4606
|
|
|
4335
4607
|
<style lang="scss" scoped>
|
|
@@ -4343,14 +4615,14 @@ tableData.value = [{
|
|
|
4343
4615
|
|
|
4344
4616
|
### 2) Attributes
|
|
4345
4617
|
|
|
4346
|
-
| 参数 | 说明 | 类型
|
|
4347
|
-
|
|
4348
|
-
| data | 表格的数据 |
|
|
4349
|
-
| sole | 行的唯一值 | String , number
|
|
4350
|
-
| filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null
|
|
4351
|
-
| expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string
|
|
4352
|
-
| tableConfigKey | 表格配置key | string
|
|
4353
|
-
| 其余参数 | 参考el官网的table | any
|
|
4618
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
4619
|
+
|----------------|-----------------------------|-----------------------|-----|-----------------------------------------------------|
|
|
4620
|
+
| data | 表格的数据 | Record<string, any>[] | - | [ ] |
|
|
4621
|
+
| sole | 行的唯一值 | String , number | - | key |
|
|
4622
|
+
| filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null | - | null |
|
|
4623
|
+
| expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string | - | '' |
|
|
4624
|
+
| tableConfigKey | 表格配置key | string | - | '' |
|
|
4625
|
+
| 其余参数 | 参考el官网的table | any | - | https://element-plus.org/zh-CN/component/table.html |
|
|
4354
4626
|
|
|
4355
4627
|
## 要求
|
|
4356
4628
|
|
package/attributes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/drawerMode":{"type":"boolean","description":"抽屉模式"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/configKey":{"type":"string","description":"配置key"},"m-inline/model":{"type":"Record<string, any> | null","description":"筛选对象"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select/modelValue":{"type":"any","description":"选中项绑定值"},"m-select/update:modelValue":{"type":"[value: number | string | Array<number | string>]","description":""},"m-select/change":{"type":"[value: any]","description":""},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/cellWidthAdaptive":{"type":"boolean","description":"单元格宽度自适应"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}
|
|
1
|
+
{"batch-edit/selectionCell":{"type":"string","description":"选中列"},"batch-edit/size":{"type":"'small' | 'large' | ''","description":"组件大小"},"batch-edit/tableData":{"type":"Record<string, any>[]","description":"表格数据"},"batch-edit/tableTitle":{"type":"TableTitle[]","description":"表格列配置"},"batch-edit/update:tableData":{"type":"[data: Record<string, any>[]]","description":""},"m-dialog/modelValue":{"type":"boolean","description":""},"m-dialog/width":{"type":"string | number","description":"对话框的宽度,默认值为 50%"},"m-dialog/insideHeight":{"type":"number | null","description":"对话框内部空间的高度,默认为null"},"m-dialog/minInsideHeight":{"type":"number","description":"对话框内部空间的最小高度,默认为0(当同时存在maxHeight和minInsideHeight时,以maxHeight为准)"},"m-dialog/maxInsideHeight":{"type":"number","description":"对话框内部空间的最大高度,默认为Infinity"},"m-dialog/resize":{"type":"boolean","description":"是否开启拖拽改变大小"},"m-dialog/draggable":{"type":"boolean","description":"是否可拖动"},"m-dialog/insideClassName":{"type":"string","description":"对话框内部空间的className"},"m-dialog/drawerMode":{"type":"boolean","description":"抽屉模式"},"m-dialog/resized":{"type":"[contentsSize: { width: number, height: number }]","description":"窗口大小改变完成事件"},"m-dialog/update:insideHeight":{"type":"[number]","description":"更新内部容器高度"},"m-dialog/update:modelValue":{"type":"[boolean]","description":""},"m-inline/minWidth":{"type":"number","description":"列最小宽度"},"m-inline/maxWidth":{"type":"number","description":"列最大宽度"},"m-inline/size":{"type":"Size","description":"组件尺寸"},"m-inline/configKey":{"type":"string","description":"配置key"},"m-inline/model":{"type":"Record<string, any> | null","description":"筛选对象"},"m-inline/switch":{"type":"[status: boolean]","description":"切换折叠展开事件"},"m-input-number/modelValue":{"type":"string | number","description":""},"m-input-number/placeholder":{"type":"string","description":""},"m-input-number/disabled":{"type":"boolean","description":"是否禁用数值输入框"},"m-input-number/size":{"type":"string","description":"数值输入框尺寸"},"m-input-number/min":{"type":"number","description":"设置数值输入框允许的最小值"},"m-input-number/max":{"type":"number","description":"设置数值输入框允许的最大值"},"m-input-number/step":{"type":"number","description":"数值输入框步长"},"m-input-number/stepStrictly":{"type":"boolean","description":"是否只能输入 step 的倍数"},"m-input-number/thousandthPlace":{"type":"boolean","description":"输入框是否显示千分位"},"m-input-number/noBorder":{"type":"boolean","description":"是否不要边框"},"m-input-number/noSpacing":{"type":"boolean","description":"不要边距"},"m-input-number/update:modelValue":{"type":"any","description":""},"m-input-number/change":{"type":"any","description":""},"m-input-number/focus":{"type":"any","description":""},"m-input-number/blur":{"type":"any","description":""},"m-select/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select/multiple":{"type":"boolean","description":"多选"},"m-select/modelValue":{"type":"any","description":"选中项绑定值"},"m-select/update:modelValue":{"type":"[value: number | string | Array<number | string>]","description":""},"m-select/change":{"type":"[value: any]","description":""},"m-select-table/modelValue":{"type":"string | number | Array<number | string>","description":""},"m-select-table/name":{"type":"string | number | Array<number | string>","description":"显示值"},"m-select-table/placeholder":{"type":"string","description":""},"m-select-table/disabled":{"type":"boolean","description":""},"m-select-table/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table/total":{"type":"number | null","description":"总数据量,当有值时,出现分页器"},"m-select-table/filterMethod":{"type":"Function | null","description":"自定义搜索"},"m-select-table/filterable":{"type":"boolean","description":"是否使用搜索"},"m-select-table/remote":{"type":"boolean","description":"是否使用 远程搜索"},"m-select-table/remoteMethod":{"type":"Function","description":"自定义远程搜索"},"m-select-table/options":{"type":"Option[]","description":""},"m-select-table/tableTitle":{"type":"TableTitle[]","description":""},"m-select-table/multiple":{"type":"boolean","description":"是否多选"},"m-select-table/keywords":{"type":"Option","description":"定义默认的 label 和value"},"m-select-table/reserveSelection":{"type":"boolean","description":"是否开启翻页多选"},"m-select-table/tableHeight":{"type":"string | number","description":""},"m-select-table/isAffirmBtn":{"type":"boolean","description":"是否有确认按钮"},"m-select-table/scrollbarAlwaysOn":{"type":"boolean","description":"是否常态显示滚动条"},"m-select-table/allowCreate":{"type":"boolean","description":"是否能够创建条目"},"m-select-table/border":{"type":"boolean","description":"表格边框"},"m-select-table/popupWidth":{"type":"number | string","description":"弹窗的宽度"},"m-select-table/selected":{"type":"[values: string | number | Array<string | number>, rows: Option[] | Option]","description":"单选或多选之后的回调"},"m-select-table/selectMultiple":{"type":"[values: Array<string | number>, rows: Option[]]","description":"多选确认按钮时的回调 配合isAffirmBtn使用"},"m-select-table/toPage":{"type":"[page: Page, query?: string]","description":"当没有使用filterMethod时候才会有回调否则没有"},"m-select-table/selectChange":{"type":"[values: string | number | Array<string | number>]","description":"勾选数据change事件"},"m-select-table/update:modelValue":{"type":"[value: string | number | Array<string | number>]","description":""},"m-select-table/clear":{"type":"[]","description":"用户点击清空按钮时触发"},"m-select-table/removeTag":{"type":"[tag: any]","description":"多选模式下移除tag时触发"},"m-select-table-v1/modelValue":{"type":"string | number","description":""},"m-select-table-v1/placeholder":{"type":"string","description":""},"m-select-table-v1/disabled":{"type":"boolean","description":""},"m-select-table-v1/options":{"type":"Option[]","description":""},"m-select-table-v1/tableTitle":{"type":"any[]","description":""},"m-select-table-v1/remoteMethod":{"type":"Function","description":""},"m-select-table-v1/allowCreate":{"type":"boolean","description":""},"m-select-table-v1/focusShow":{"type":"boolean","description":""},"m-select-table-v1/isSelect":{"type":"boolean","description":""},"m-select-table-v1/clearable":{"type":"boolean","description":""},"m-select-table-v1/size":{"type":"'small' | 'large' | ''","description":""},"m-select-table-v1/labelKey":{"type":"string","description":""},"m-select-table-v1/scrollbarAlwaysOn":{"type":"boolean","description":""},"m-select-table-v1/total":{"type":"number | null","description":""},"m-select-table-v1/update:modelValue":{"type":"any","description":""},"m-select-table-v1/selectMultiple":{"type":"any","description":""},"m-select-table-v1/change":{"type":"any","description":""},"m-select-table-v1/selected":{"type":"any","description":""},"m-select-table-v1/clear":{"type":"any","description":""},"m-select-v2/modelValue":{"type":"ValueType","description":""},"m-select-v2/checkboxMode":{"type":"boolean","description":"是否为checkbox模式"},"m-select-v2/multiple":{"type":"boolean","description":"多选"},"m-select-v2/showAll":{"type":"boolean","description":"是否显示全选"},"m-select-v2/options":{"type":"Option[]","description":"选项"},"m-select-v2/update:modelValue":{"type":"[data: ValueType]","description":""},"m-table/size":{"type":"'small' | 'large' | ''","description":""},"m-table/sole":{"type":"string","description":""},"m-table/data":{"type":"Record<string, any>[]","description":""},"m-table/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table/expandProp":{"type":"string","description":"展开图标列(如使用这个属性则必须存在rowKey属性) (标记,约束条件后面解决)"},"m-table/expandRowKeys":{"type":"any[]","description":"可以通过该属性设置 Table 目前的展开行,需要设置 row-key 属性才能使用,该属性为展开行的 keys 数组。"},"m-table/rowKey":{"type":"Function | string","description":"行数据的 Key,用来优化 Table 的渲染; 在使用reserve-selection功能与显示树形数据时,该属性是必填的。 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function。"},"m-table/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table/showSelectionCellStatus":{"type":"boolean","description":"显示单元格选中状态"},"m-table/selectionCell":{"type":"string","description":"选中列(必须showSelection为true)"},"m-table/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"m-table/privateExpandChange":{"type":"[row: any, expandedRows: any[]]","description":"expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件"},"m-table/update:selectionCell":{"type":"[string]","description":"选中单元格更新"},"m-table-column/filtersValue":{"type":"FilterValue | null","description":"列筛选过滤条件(当为null时,不显示筛选图标)"},"m-table-column/filters":{"type":"Array<{ text: string | number, value: string | number }>","description":"过滤选项"},"m-table-column/filterMethod":{"type":"Function | null","description":"过滤方法"},"m-table-column/children":{"type":"Array<PropChildren>","description":""},"m-table-column/update:filtersValue":{"type":"any","description":""},"m-table-column-set/modelValue":{"type":"TableConfig","description":"配置"},"m-table-column-set/foldMode":{"type":"boolean","description":"是否为折叠模式"},"m-table-column-set/link":{"type":"boolean","description":"是否为链接按钮"},"m-table-column-set/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-column-set/update:modelValue":{"type":"any","description":""},"m-table-column-set/change":{"type":"any","description":""},"m-table-v2/size":{"type":"'small' | 'large' | 'default'","description":""},"m-table-v2/data":{"type":"Array<{\n [key: string]: any\n }>","description":""},"m-table-v2/height":{"type":"number","description":"表格高度"},"m-table-v2/border":{"type":"boolean","description":"显示边框"},"m-table-v2/columns":{"type":"TableV2Title[]","description":"表格列配置"},"m-table-v2/filtersValue":{"type":"FilterValue | null","description":"表格内容筛选(当为null时,不显示筛选图标)"},"m-table-v2/tableConfig":{"type":"TableConfig | null","description":"表格配置"},"m-table-v2/tableConfigKey":{"type":"string","description":"表格配置key"},"m-table-v2/fixed":{"type":"boolean","description":"单元格宽度是自适应还是固定"},"m-table-v2/estimatedRowHeight":{"type":"number | null","description":"渲染动态的单元格的预估高度"},"m-table-v2/headerHeight":{"type":"number | number[] | null","description":"Header 的高度由height设置。 如果传入数组,它会使 header row 等于数组长度"},"m-table-v2/cellWidthAdaptive":{"type":"boolean","description":"单元格宽度自适应"},"m-table-v2/pasteData":{"type":"[\n data: {\n /** 粘贴行的行数据 */\n editRow: { [key: string]: any },\n /** 粘贴列的列名 */\n editColumn: string,\n /** 粘贴的数据 */\n arr: Array<string | number>,\n /** 起始行 */\n rowIndex: number,\n },\n /** 粘贴完成后的表格数据 */\n tableData: Array<{ [key: string]: any }>\n ]","description":""},"m-table-v2/update:tableConfig":{"type":"[tableConfig: TableConfig]","description":"表格配置更新"},"skin-config/change":{"type":"any","description":""},"tab-page/modelValue":{"type":"MenuItem[]","description":""},"tab-page/activeKey":{"type":"string","description":""},"tab-page/showRightClickMenu":{"type":"boolean","description":""},"tab-page/primaryColor":{"type":"string","description":""},"tab-page/primaryBackgroundColor":{"type":"string | null","description":""},"tab-page/close":{"type":"any","description":""},"tab-page/click":{"type":"any","description":""}}
|