br-dionysus 1.7.2-beta.6 → 1.7.2-beta.7

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,11 @@ const options: Option[] = [{
1019
1019
  <h1>测试</h1>
1020
1020
  </template>
1021
1021
  </MTableColumn>
1022
+ <MTableColumn>
1023
+ <template #default="scope">
1024
+ <p @click="test(scope)">{{ scope }}</p>
1025
+ </template>
1026
+ </MTableColumn>
1022
1027
  <MTableColumn
1023
1028
  v-for="item in tableTitle"
1024
1029
  :key="item.prop"
@@ -1070,12 +1075,17 @@ const options: Option[] = [{
1070
1075
  <script setup lang="ts">
1071
1076
  import { ref } from 'vue'
1072
1077
  import { useTableConfig } from 'packages/index'
1078
+ import { MTableColumn } from 'packages/MTableColumn'
1073
1079
 
1074
1080
  const privateExpandChange = (row: any, expandedRows: any[]) => {
1075
1081
  console.log('row', row)
1076
1082
  console.log('expandedRows', expandedRows)
1077
1083
  }
1078
1084
 
1085
+ const test = (data: any) => {
1086
+ console.log('data', data)
1087
+ }
1088
+
1079
1089
  const tableData = ref<any[]>([])
1080
1090
  const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
1081
1091
  label: '序号',
@@ -3285,6 +3295,11 @@ const options: Option[] = [{
3285
3295
  <h1>测试</h1>
3286
3296
  </template>
3287
3297
  </MTableColumn>
3298
+ <MTableColumn>
3299
+ <template #default="scope">
3300
+ <p @click="test(scope)">{{ scope }}</p>
3301
+ </template>
3302
+ </MTableColumn>
3288
3303
  <MTableColumn
3289
3304
  v-for="item in tableTitle"
3290
3305
  :key="item.prop"
@@ -3336,12 +3351,17 @@ const options: Option[] = [{
3336
3351
  <script setup lang="ts">
3337
3352
  import { ref } from 'vue'
3338
3353
  import { useTableConfig } from 'packages/index'
3354
+ import { MTableColumn } from 'packages/MTableColumn'
3339
3355
 
3340
3356
  const privateExpandChange = (row: any, expandedRows: any[]) => {
3341
3357
  console.log('row', row)
3342
3358
  console.log('expandedRows', expandedRows)
3343
3359
  }
3344
3360
 
3361
+ const test = (data: any) => {
3362
+ console.log('data', data)
3363
+ }
3364
+
3345
3365
  const tableData = ref<any[]>([])
3346
3366
  const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
3347
3367
  label: '序号',