br-dionysus 1.6.9 → 1.6.10

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
@@ -930,14 +930,13 @@ const options: Option[] = [{
930
930
  :filtersValue="filtersValue"
931
931
  scrollbarAlwaysOn
932
932
  v-model:tableConfig="tableConfig"
933
- expandProp="name"
934
933
  rowKey="id"
935
934
  >
936
- <MTableColumn type="expand">
937
- <template #default>
938
- <h1>测试</h1>
939
- </template>
940
- </MTableColumn>
935
+ <!--<MTableColumn type="expand">-->
936
+ <!-- <template #default>-->
937
+ <!-- <h1>测试</h1>-->
938
+ <!-- </template>-->
939
+ <!--</MTableColumn>-->
941
940
  <MTableColumn
942
941
  v-for="item in tableTitle"
943
942
  :key="item.prop"
@@ -962,15 +961,7 @@ const options: Option[] = [{
962
961
  import { ref } from 'vue'
963
962
  import { useTableConfig } from 'packages/index'
964
963
 
965
- interface User {
966
- id: number;
967
- date: string;
968
- name: string;
969
- address: string;
970
- tag: string;
971
- }
972
-
973
- const tableData = ref<User[]>([])
964
+ const tableData = ref<any[]>([])
974
965
  const { tableTitle, headerDragend, tableConfig, filtersValue }= useTableConfig('MTableDemo', [{
975
966
  label: 'Date',
976
967
  prop: 'date',
@@ -989,28 +980,41 @@ tableData.value = [
989
980
  {
990
981
  id: 1,
991
982
  date: '2016-05-03',
992
- name: 'Tom',
983
+ name: 'Tom1',
993
984
  address: 'No. 189, Grove St, Los Angeles',
994
985
  tag: 'Home'
995
986
  },
996
987
  {
997
988
  id: 2,
998
989
  date: '2016-05-02',
999
- name: 'Tom',
990
+ name: 'Tom2',
1000
991
  address: 'No. 189, Grove St, Los Angeles',
1001
- tag: 'Office'
992
+ tag: 'Office',
993
+ children: [{
994
+ id: 21,
995
+ date: '2016-05-02',
996
+ name: 'Tom21',
997
+ address: 'No. 189, Grove St, Los Angeles',
998
+ tag: 'Office',
999
+ }, {
1000
+ id: 22,
1001
+ date: '2016-05-02',
1002
+ name: 'Tom22',
1003
+ address: 'No. 189, Grove St, Los Angeles',
1004
+ tag: 'Office',
1005
+ }]
1002
1006
  },
1003
1007
  {
1004
1008
  id: 3,
1005
1009
  date: '2016-05-04',
1006
- name: 'Tom',
1010
+ name: 'Tom3',
1007
1011
  address: 'No. 189, Grove St, Los Angeles',
1008
1012
  tag: 'Home'
1009
1013
  },
1010
1014
  {
1011
1015
  id: 4,
1012
1016
  date: '2016-05-01',
1013
- name: 'Tom',
1017
+ name: 'Tom4',
1014
1018
  address: 'No. 189, Grove St, Los Angeles',
1015
1019
  tag: 'Office'
1016
1020
  }
@@ -3039,14 +3043,13 @@ const options: Option[] = [{
3039
3043
  :filtersValue="filtersValue"
3040
3044
  scrollbarAlwaysOn
3041
3045
  v-model:tableConfig="tableConfig"
3042
- expandProp="name"
3043
3046
  rowKey="id"
3044
3047
  >
3045
- <MTableColumn type="expand">
3046
- <template #default>
3047
- <h1>测试</h1>
3048
- </template>
3049
- </MTableColumn>
3048
+ <!--<MTableColumn type="expand">-->
3049
+ <!-- <template #default>-->
3050
+ <!-- <h1>测试</h1>-->
3051
+ <!-- </template>-->
3052
+ <!--</MTableColumn>-->
3050
3053
  <MTableColumn
3051
3054
  v-for="item in tableTitle"
3052
3055
  :key="item.prop"
@@ -3071,15 +3074,7 @@ const options: Option[] = [{
3071
3074
  import { ref } from 'vue'
3072
3075
  import { useTableConfig } from 'packages/index'
3073
3076
 
3074
- interface User {
3075
- id: number;
3076
- date: string;
3077
- name: string;
3078
- address: string;
3079
- tag: string;
3080
- }
3081
-
3082
- const tableData = ref<User[]>([])
3077
+ const tableData = ref<any[]>([])
3083
3078
  const { tableTitle, headerDragend, tableConfig, filtersValue }= useTableConfig('MTableDemo', [{
3084
3079
  label: 'Date',
3085
3080
  prop: 'date',
@@ -3098,28 +3093,41 @@ tableData.value = [
3098
3093
  {
3099
3094
  id: 1,
3100
3095
  date: '2016-05-03',
3101
- name: 'Tom',
3096
+ name: 'Tom1',
3102
3097
  address: 'No. 189, Grove St, Los Angeles',
3103
3098
  tag: 'Home'
3104
3099
  },
3105
3100
  {
3106
3101
  id: 2,
3107
3102
  date: '2016-05-02',
3108
- name: 'Tom',
3103
+ name: 'Tom2',
3109
3104
  address: 'No. 189, Grove St, Los Angeles',
3110
- tag: 'Office'
3105
+ tag: 'Office',
3106
+ children: [{
3107
+ id: 21,
3108
+ date: '2016-05-02',
3109
+ name: 'Tom21',
3110
+ address: 'No. 189, Grove St, Los Angeles',
3111
+ tag: 'Office',
3112
+ }, {
3113
+ id: 22,
3114
+ date: '2016-05-02',
3115
+ name: 'Tom22',
3116
+ address: 'No. 189, Grove St, Los Angeles',
3117
+ tag: 'Office',
3118
+ }]
3111
3119
  },
3112
3120
  {
3113
3121
  id: 3,
3114
3122
  date: '2016-05-04',
3115
- name: 'Tom',
3123
+ name: 'Tom3',
3116
3124
  address: 'No. 189, Grove St, Los Angeles',
3117
3125
  tag: 'Home'
3118
3126
  },
3119
3127
  {
3120
3128
  id: 4,
3121
3129
  date: '2016-05-01',
3122
- name: 'Tom',
3130
+ name: 'Tom4',
3123
3131
  address: 'No. 189, Grove St, Los Angeles',
3124
3132
  tag: 'Office'
3125
3133
  }