br-dionysus 0.7.11 → 0.7.13
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 +36 -14
- package/dist/br-dionysus.es.js +606 -595
- package/dist/br-dionysus.umd.js +3 -3
- package/dist/index.css +1 -1
- package/dist/packages/MSelectTable/src/index.vue.d.ts +1 -1
- package/dist/packages/MTableColumn/src/index.vue.d.ts +9 -0
- package/package.json +1 -1
- package/packages/MSelectTable/docs/demo.vue +1 -1
- package/packages/MSelectTable/src/index.vue +1 -1
- package/packages/MTableColumn/docs/README.md +7 -9
- package/packages/MTableColumn/docs/demo.vue +28 -4
- package/packages/MTableColumn/src/index.vue +20 -2
package/README.md
CHANGED
|
@@ -271,7 +271,7 @@ const test = ref<number>(0)
|
|
|
271
271
|
|
|
272
272
|
<script setup lang="ts">
|
|
273
273
|
import { ref } from 'vue'
|
|
274
|
-
import { Page } from '
|
|
274
|
+
import { Page } from '../../typings/class'
|
|
275
275
|
|
|
276
276
|
const code = ref<string>('')
|
|
277
277
|
const options = ref<Option[]>()
|
|
@@ -488,7 +488,9 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
|
|
|
488
488
|
:minWidth="item.minWidth"
|
|
489
489
|
v-model:filtersValue="filtersValue"
|
|
490
490
|
showOverflowTooltip
|
|
491
|
-
|
|
491
|
+
:children="item.children||[]"
|
|
492
|
+
>
|
|
493
|
+
</MTableColumn>
|
|
492
494
|
</el-table>
|
|
493
495
|
</div>
|
|
494
496
|
</template>
|
|
@@ -505,7 +507,7 @@ interface User {
|
|
|
505
507
|
address: string;
|
|
506
508
|
tag: string;
|
|
507
509
|
}
|
|
508
|
-
const tableData = ref
|
|
510
|
+
const tableData = ref<User[]>([
|
|
509
511
|
{
|
|
510
512
|
date: "2016-05-03",
|
|
511
513
|
name: "Tom",
|
|
@@ -544,8 +546,30 @@ const tableTitle = [
|
|
|
544
546
|
},
|
|
545
547
|
{
|
|
546
548
|
label: '地址',
|
|
547
|
-
|
|
548
|
-
|
|
549
|
+
children: [
|
|
550
|
+
{
|
|
551
|
+
label: '123', children: [
|
|
552
|
+
{
|
|
553
|
+
label: '222222222222',
|
|
554
|
+
prop: 'address',
|
|
555
|
+
minWidth: '134px'
|
|
556
|
+
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
label: 'qqqqqq',
|
|
560
|
+
prop: 'address',
|
|
561
|
+
minWidth: '134px'
|
|
562
|
+
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
label: '2222',
|
|
568
|
+
prop: 'address',
|
|
569
|
+
minWidth: '134px'
|
|
570
|
+
},
|
|
571
|
+
]
|
|
572
|
+
|
|
549
573
|
},
|
|
550
574
|
{
|
|
551
575
|
label: '标签',
|
|
@@ -561,15 +585,13 @@ const tableTitle = [
|
|
|
561
585
|
```
|
|
562
586
|
|
|
563
587
|
### 2) Attributes
|
|
564
|
-
| 参数
|
|
565
|
-
|
|
|
566
|
-
|filtersValue
|
|
567
|
-
|filters
|
|
568
|
-
|filterMethod
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
588
|
+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
|
589
|
+
| ------------ | ----------------------------------- | ------------------ | ------ | --------------------------------------------------- |
|
|
590
|
+
| filtersValue | 列筛选过滤条件 | object | - | { } |
|
|
591
|
+
| filters | 表格筛选数据 | string[],number[] | - | any[] |
|
|
592
|
+
| filterMethod | 筛选方法 | Function | - | () => void |
|
|
593
|
+
| children | 多级表头 时使用传递对应数据进行循环 | Table-column API[] | - | [] |
|
|
594
|
+
| 其余参数 | 参考el官网的table | any | - | https://element-plus.org/zh-CN/component/table.html |
|
|
573
595
|
|
|
574
596
|
|
|
575
597
|
|