br-dionysus 1.7.2-beta.6 → 1.7.2

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 CHANGED
@@ -1019,6 +1019,19 @@ const options: Option[] = [{
1019
1019
  <h1>测试</h1>
1020
1020
  </template>
1021
1021
  </MTableColumn>
1022
+ <el-table-column
1023
+ prop="name"
1024
+ label="名称"
1025
+ >
1026
+ <el-table-column
1027
+ prop="date"
1028
+ label="时间"
1029
+ ></el-table-column>
1030
+ <el-table-column
1031
+ prop="address"
1032
+ label="地址"
1033
+ ></el-table-column>
1034
+ </el-table-column>
1022
1035
  <MTableColumn
1023
1036
  v-for="item in tableTitle"
1024
1037
  :key="item.prop"
@@ -1070,12 +1083,17 @@ const options: Option[] = [{
1070
1083
  <script setup lang="ts">
1071
1084
  import { ref } from 'vue'
1072
1085
  import { useTableConfig } from 'packages/index'
1086
+ import { MTableColumn } from 'packages/MTableColumn'
1073
1087
 
1074
1088
  const privateExpandChange = (row: any, expandedRows: any[]) => {
1075
1089
  console.log('row', row)
1076
1090
  console.log('expandedRows', expandedRows)
1077
1091
  }
1078
1092
 
1093
+ const test = (data: any) => {
1094
+ console.log('data', data)
1095
+ }
1096
+
1079
1097
  const tableData = ref<any[]>([])
1080
1098
  const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
1081
1099
  label: '序号',
@@ -1083,15 +1101,15 @@ const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig(
1083
1101
  minWidth: 200,
1084
1102
  fixed: 'left'
1085
1103
  }, {
1086
- label: 'Date',
1104
+ label: '时间',
1087
1105
  prop: 'date',
1088
1106
  minWidth: 200
1089
1107
  }, {
1090
- label: 'Address',
1108
+ label: '地址',
1091
1109
  prop: 'address',
1092
1110
  minWidth: 200
1093
1111
  }, {
1094
- label: 'name',
1112
+ label: '名称',
1095
1113
  prop: 'name',
1096
1114
  minWidth: 200
1097
1115
  }], tableData)
@@ -1102,15 +1120,15 @@ const childTableTitle: TableTitle[] = [{
1102
1120
  minWidth: 200,
1103
1121
  fixed: 'left'
1104
1122
  }, {
1105
- label: 'Date',
1123
+ label: '时间',
1106
1124
  prop: 'date',
1107
1125
  minWidth: 200
1108
1126
  }, {
1109
- label: 'Address',
1127
+ label: '地址',
1110
1128
  prop: 'address',
1111
1129
  minWidth: 200
1112
1130
  }, {
1113
- label: 'name',
1131
+ label: '名称',
1114
1132
  prop: 'name',
1115
1133
  minWidth: 200
1116
1134
  }]
@@ -3285,6 +3303,19 @@ const options: Option[] = [{
3285
3303
  <h1>测试</h1>
3286
3304
  </template>
3287
3305
  </MTableColumn>
3306
+ <el-table-column
3307
+ prop="name"
3308
+ label="名称"
3309
+ >
3310
+ <el-table-column
3311
+ prop="date"
3312
+ label="时间"
3313
+ ></el-table-column>
3314
+ <el-table-column
3315
+ prop="address"
3316
+ label="地址"
3317
+ ></el-table-column>
3318
+ </el-table-column>
3288
3319
  <MTableColumn
3289
3320
  v-for="item in tableTitle"
3290
3321
  :key="item.prop"
@@ -3336,12 +3367,17 @@ const options: Option[] = [{
3336
3367
  <script setup lang="ts">
3337
3368
  import { ref } from 'vue'
3338
3369
  import { useTableConfig } from 'packages/index'
3370
+ import { MTableColumn } from 'packages/MTableColumn'
3339
3371
 
3340
3372
  const privateExpandChange = (row: any, expandedRows: any[]) => {
3341
3373
  console.log('row', row)
3342
3374
  console.log('expandedRows', expandedRows)
3343
3375
  }
3344
3376
 
3377
+ const test = (data: any) => {
3378
+ console.log('data', data)
3379
+ }
3380
+
3345
3381
  const tableData = ref<any[]>([])
3346
3382
  const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
3347
3383
  label: '序号',
@@ -3349,15 +3385,15 @@ const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig(
3349
3385
  minWidth: 200,
3350
3386
  fixed: 'left'
3351
3387
  }, {
3352
- label: 'Date',
3388
+ label: '时间',
3353
3389
  prop: 'date',
3354
3390
  minWidth: 200
3355
3391
  }, {
3356
- label: 'Address',
3392
+ label: '地址',
3357
3393
  prop: 'address',
3358
3394
  minWidth: 200
3359
3395
  }, {
3360
- label: 'name',
3396
+ label: '名称',
3361
3397
  prop: 'name',
3362
3398
  minWidth: 200
3363
3399
  }], tableData)
@@ -3368,15 +3404,15 @@ const childTableTitle: TableTitle[] = [{
3368
3404
  minWidth: 200,
3369
3405
  fixed: 'left'
3370
3406
  }, {
3371
- label: 'Date',
3407
+ label: '时间',
3372
3408
  prop: 'date',
3373
3409
  minWidth: 200
3374
3410
  }, {
3375
- label: 'Address',
3411
+ label: '地址',
3376
3412
  prop: 'address',
3377
3413
  minWidth: 200
3378
3414
  }, {
3379
- label: 'name',
3415
+ label: '名称',
3380
3416
  prop: 'name',
3381
3417
  minWidth: 200
3382
3418
  }]