@fangzhongya/fang-ui 0.0.54 → 0.0.55
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/dist/components/common/use.cjs +2 -0
- package/dist/components/common/use.js +2 -0
- package/dist/components/index.cjs +84 -80
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +5 -1
- package/dist/components/list/index.cjs +9 -0
- package/dist/components/list/index.css +96 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/index.js +9 -0
- package/dist/components/list/src/data.cjs +97 -0
- package/dist/components/list/src/data.d.ts +100 -0
- package/dist/components/list/src/data.js +97 -0
- package/dist/components/list/src/index.cjs +4 -0
- package/dist/components/list/src/index.js +4 -0
- package/dist/components/list/src/index2.cjs +337 -0
- package/dist/components/list/src/index2.js +337 -0
- package/dist/components/lists/index.cjs +2 -2
- package/dist/components/lists/index.css +27 -72
- package/dist/components/lists/src/data.cjs +80 -49
- package/dist/components/lists/src/data.d.ts +103 -48
- package/dist/components/lists/src/data.js +81 -50
- package/dist/components/lists/src/index.cjs +2 -2
- package/dist/components/lists/src/index2.cjs +237 -303
- package/dist/components/lists/src/index2.js +237 -303
- package/dist/components/listsp/index.cjs +9 -0
- package/dist/components/listsp/index.css +86 -0
- package/dist/components/listsp/index.d.ts +2 -0
- package/dist/components/listsp/index.js +9 -0
- package/dist/components/listsp/src/data.d.ts +14 -0
- package/dist/components/listsp/src/index.cjs +4 -0
- package/dist/components/listsp/src/index.js +4 -0
- package/dist/components/listsp/src/index2.cjs +98 -0
- package/dist/components/listsp/src/index2.js +98 -0
- package/dist/components/page/index.css +35 -38
- package/dist/components/page/index.scss +1 -1
- package/dist/components/page/src/index2.cjs +2 -2
- package/dist/components/page/src/index2.js +2 -2
- package/dist/components/page/style/index2.scss +1 -1
- package/dist/components/tables/common/pagin.cjs +23 -7
- package/dist/components/tables/common/pagin.d.ts +8 -1
- package/dist/components/tables/common/pagin.js +23 -7
- package/dist/components/tables/index.css +1 -4
- package/dist/components/tablesp/index.css +1 -4
- package/dist/css/index.css +100 -46
- package/dist/css/list.css +96 -0
- package/dist/css/lists.css +27 -72
- package/dist/css/listsp.css +86 -0
- package/dist/css/page.css +35 -38
- package/dist/css/tables.css +1 -4
- package/dist/css/tablesp.css +1 -4
- package/dist/directives/scroll/index.cjs +36 -11
- package/dist/directives/scroll/index.js +36 -11
- package/dist/icons/index.css +43 -43
- package/dist/icons/index.json +14 -14
- package/dist/index.cjs +102 -98
- package/dist/index.css +100 -46
- package/dist/index.js +5 -1
- package/dist/type.d.ts +7 -0
- package/package.json +4 -4
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/components/{cascader-panel → keep-com}/index.css +0 -0
- /package/dist/components/{lists → list}/src/setup.d.ts +0 -0
- /package/dist/components/{lists → list}/src/util.cjs +0 -0
- /package/dist/components/{lists → list}/src/util.d.ts +0 -0
- /package/dist/components/{lists → list}/src/util.js +0 -0
- /package/dist/components/{lists → tables}/common/img.cjs +0 -0
- /package/dist/components/{lists → tables}/common/img.js +0 -0
- /package/dist/components/{lists → tables}/common/img2.cjs +0 -0
- /package/dist/components/{lists → tables}/common/img2.js +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
- /package/dist/css/{cascader-panel.css → keep-com.css} +0 -0
|
@@ -12,85 +12,40 @@
|
|
|
12
12
|
--g-main-bg: var(--bg-color-page);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.lists
|
|
15
|
+
.lists {
|
|
16
16
|
width: 100%;
|
|
17
|
-
height:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
font-weight: initial;
|
|
24
|
-
}
|
|
25
|
-
.lists-div .lists-table .is-whole .lists-table-auto {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
.lists-div .lists-table .is-whole .lists-table-value {
|
|
29
|
-
width: 100%;
|
|
30
|
-
display: block;
|
|
31
|
-
}
|
|
32
|
-
.lists-div .lists-table .lists-table-td,
|
|
33
|
-
.lists-div .lists-table .lists-table-th {
|
|
34
|
-
padding: 6px;
|
|
35
|
-
}
|
|
36
|
-
.lists-div .lists-table .lists-table-auto {
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
}
|
|
40
|
-
.lists-div .lists-table .lists-table-auto .lists-table-label {
|
|
41
|
-
white-space: nowrap;
|
|
42
|
-
}
|
|
43
|
-
.lists-div .lists-table .lists-table-th {
|
|
44
|
-
text-align: left;
|
|
45
|
-
}
|
|
46
|
-
.lists-div .lists-table.right .lists-table-th {
|
|
47
|
-
text-align: right;
|
|
48
|
-
}
|
|
49
|
-
.lists-div .lists-table.center .lists-table-th {
|
|
50
|
-
text-align: center;
|
|
51
|
-
}
|
|
52
|
-
.lists-div .lists-table.auto .lists-table-th {
|
|
53
|
-
padding-right: 0;
|
|
54
|
-
}
|
|
55
|
-
.lists-div .lists-table.top .lists-table-th {
|
|
56
|
-
padding-bottom: 0;
|
|
57
|
-
}
|
|
58
|
-
.lists-div .lists-table.is-aliquots {
|
|
59
|
-
table-layout: fixed;
|
|
60
|
-
}
|
|
61
|
-
.lists-div .lists-table.is-border {
|
|
62
|
-
border-right: 1px solid var(--lists-border-color);
|
|
63
|
-
border-top: 1px solid var(--lists-border-color);
|
|
64
|
-
border-bottom: 1px solid var(--lists-border-color);
|
|
65
|
-
}
|
|
66
|
-
.lists-div .lists-table.is-border > tr > td {
|
|
67
|
-
border-bottom: 1px solid var(--lists-border-color);
|
|
68
|
-
border-left: 1px solid var(--lists-border-color);
|
|
17
|
+
min-height: 100px;
|
|
18
|
+
position: relative;
|
|
19
|
+
flex: 1;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
background-color: #eee;
|
|
69
23
|
}
|
|
70
|
-
.lists-
|
|
71
|
-
|
|
24
|
+
.lists-list {
|
|
25
|
+
padding: 0 var(--lists-interval);
|
|
72
26
|
}
|
|
73
|
-
.lists-
|
|
74
|
-
|
|
75
|
-
|
|
27
|
+
.lists-list.is-absolute {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
overflow-y: auto;
|
|
76
31
|
}
|
|
77
|
-
.lists-
|
|
78
|
-
|
|
32
|
+
.lists-list--column .lists-list-item {
|
|
33
|
+
display: inline-block;
|
|
79
34
|
}
|
|
80
|
-
.lists-
|
|
81
|
-
|
|
35
|
+
.lists-list-item {
|
|
36
|
+
background-color: #fff;
|
|
37
|
+
margin: 0 var(--lists-interval);
|
|
38
|
+
margin-top: calc(var(--lists-interval) * 2);
|
|
82
39
|
}
|
|
83
|
-
.lists-
|
|
84
|
-
|
|
40
|
+
.lists-list-item:last-child {
|
|
41
|
+
margin-bottom: calc(var(--lists-interval) * 2);
|
|
85
42
|
}
|
|
86
|
-
.lists-
|
|
87
|
-
|
|
43
|
+
.lists-list-item.is-active {
|
|
44
|
+
background-color: rgb(250, 235, 215);
|
|
88
45
|
}
|
|
89
|
-
.lists-
|
|
90
|
-
|
|
91
|
-
align-items: center;
|
|
46
|
+
.lists-list-item.is-selected {
|
|
47
|
+
background-color: rgb(215, 250, 224);
|
|
92
48
|
}
|
|
93
|
-
.lists-
|
|
94
|
-
|
|
95
|
-
height: 50px;
|
|
49
|
+
.lists-list-item .el-card {
|
|
50
|
+
background-color: transparent;
|
|
96
51
|
}
|
|
@@ -2,96 +2,127 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const dataProps = {
|
|
4
4
|
/**
|
|
5
|
-
* @props { Object }
|
|
6
|
-
* 选择数据集合
|
|
5
|
+
* @props { Object } defaultSort 排序
|
|
7
6
|
*/
|
|
8
|
-
|
|
7
|
+
defaultSort: {
|
|
9
8
|
type: Object,
|
|
10
9
|
default() {
|
|
11
10
|
return {};
|
|
12
11
|
}
|
|
13
12
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* 外部组件集合
|
|
17
|
-
*/
|
|
18
|
-
compons: {
|
|
19
|
-
type: Object,
|
|
13
|
+
height: {
|
|
14
|
+
type: [String, Number],
|
|
20
15
|
default() {
|
|
21
|
-
return
|
|
16
|
+
return "auto";
|
|
22
17
|
}
|
|
23
18
|
},
|
|
24
19
|
/**
|
|
25
|
-
*
|
|
26
|
-
* 标签位置
|
|
20
|
+
* 加载中
|
|
27
21
|
*/
|
|
28
|
-
|
|
29
|
-
type:
|
|
30
|
-
default:
|
|
22
|
+
loading: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
31
25
|
},
|
|
26
|
+
// 高度自适应
|
|
27
|
+
adaptive: Boolean,
|
|
32
28
|
/**
|
|
33
|
-
* @props { Array<
|
|
34
|
-
*
|
|
29
|
+
* @props { Array<Object> } list table展示的列
|
|
30
|
+
* @props { String } list.class table展示的列class
|
|
31
|
+
* @props { String } list.label table展示的列头名称
|
|
32
|
+
* @props { Array<Object> } list.children 用来展示多级头
|
|
33
|
+
* @props { boolean } list.hide=false 当前列是否隐藏
|
|
34
|
+
* @props { function } list.sethide 当前列是否隐藏方法模式
|
|
35
|
+
* @props { function } list.formatter (row, column, cellValue, index) 用来格式化内容
|
|
36
|
+
* @props { String } list.align=left (left , center , right) 对齐方式
|
|
37
|
+
* @props { string , number } list.width table展示的宽度
|
|
38
|
+
* @props { string , number } list.minWidth table展示的最小宽度
|
|
39
|
+
* @props { string , boolean } list.fixed (true , 'left' , 'right') 列是否固定在左侧或者右侧。 true 表示固定在左侧
|
|
40
|
+
* @props { String } list.compon (component, color, list, but) table的扩展组件配置
|
|
41
|
+
* @props { Object } list.config table的扩展组件的配置对象
|
|
35
42
|
*/
|
|
36
43
|
list: {
|
|
37
44
|
type: Array,
|
|
38
|
-
default
|
|
45
|
+
default() {
|
|
39
46
|
return [];
|
|
40
47
|
}
|
|
41
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @props { Array } value table列表数据
|
|
51
|
+
*/
|
|
42
52
|
value: {
|
|
43
|
-
type:
|
|
44
|
-
default
|
|
45
|
-
return
|
|
53
|
+
type: Array,
|
|
54
|
+
default() {
|
|
55
|
+
return [];
|
|
46
56
|
}
|
|
47
57
|
},
|
|
48
58
|
/**
|
|
49
|
-
*
|
|
50
|
-
* 一行展示多少列
|
|
59
|
+
* 行高度
|
|
51
60
|
*/
|
|
52
|
-
|
|
53
|
-
type: Number
|
|
61
|
+
lineHeight: {
|
|
62
|
+
type: [String, Number]
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* @props { Object } options 选择数据集合
|
|
66
|
+
*/
|
|
67
|
+
options: {
|
|
68
|
+
type: Object,
|
|
54
69
|
default() {
|
|
55
|
-
return
|
|
70
|
+
return {};
|
|
56
71
|
}
|
|
57
72
|
},
|
|
58
73
|
/**
|
|
59
|
-
* @props {
|
|
60
|
-
* 标签后面是否加内容 true 是 :
|
|
74
|
+
* @props { Object } compons 外部组件集合
|
|
61
75
|
*/
|
|
62
|
-
|
|
76
|
+
compons: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default() {
|
|
79
|
+
return {};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
63
82
|
/**
|
|
64
|
-
* @props {
|
|
65
|
-
*
|
|
83
|
+
* @props { String } rowWidth
|
|
84
|
+
* 列的宽度
|
|
66
85
|
*/
|
|
67
|
-
|
|
68
|
-
type:
|
|
69
|
-
// default: '60px',
|
|
86
|
+
rowWidth: {
|
|
87
|
+
type: String
|
|
70
88
|
},
|
|
71
89
|
/**
|
|
72
|
-
* @props {
|
|
73
|
-
*
|
|
90
|
+
* @props { String } rowMinWidth
|
|
91
|
+
* 列的最小宽度
|
|
74
92
|
*/
|
|
75
|
-
|
|
76
|
-
type:
|
|
77
|
-
// default: true
|
|
93
|
+
rowMinWidth: {
|
|
94
|
+
type: String
|
|
78
95
|
},
|
|
79
96
|
/**
|
|
80
|
-
* @props {
|
|
81
|
-
* 是否等分
|
|
97
|
+
* @props { Number } rowColumn=1 一行几个
|
|
82
98
|
*/
|
|
83
|
-
|
|
84
|
-
type:
|
|
85
|
-
default:
|
|
99
|
+
rowColumn: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 1
|
|
86
102
|
},
|
|
87
103
|
/**
|
|
88
|
-
* @props {
|
|
89
|
-
*
|
|
104
|
+
* @props { String } interval='6px'
|
|
105
|
+
* 查询模式的上下间距
|
|
90
106
|
*/
|
|
91
|
-
|
|
107
|
+
interval: {
|
|
108
|
+
type: String,
|
|
109
|
+
default: "6px"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const dataEmits = [
|
|
113
|
+
"sort-change",
|
|
114
|
+
"scroll-bottom",
|
|
115
|
+
"scope-click",
|
|
116
|
+
"selection-list",
|
|
117
|
+
"list-events",
|
|
118
|
+
"row-click"
|
|
119
|
+
];
|
|
120
|
+
const dataExpose = {};
|
|
121
|
+
const dataSlot = {
|
|
122
|
+
default: "default",
|
|
123
|
+
noData: "no-data"
|
|
92
124
|
};
|
|
93
|
-
const dataEmits = ["list-events"];
|
|
94
|
-
const dataExpose = [];
|
|
95
125
|
exports.dataEmits = dataEmits;
|
|
96
126
|
exports.dataExpose = dataExpose;
|
|
97
127
|
exports.dataProps = dataProps;
|
|
128
|
+
exports.dataSlot = dataSlot;
|
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
import { ExtractPropTypes, Component } from 'vue';
|
|
2
|
+
export type DefaultSort = {
|
|
3
|
+
prop: string;
|
|
4
|
+
order: 'ascending' | 'descending';
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @title Lists
|
|
8
|
+
*/
|
|
2
9
|
export declare const dataProps: {
|
|
3
10
|
/**
|
|
4
|
-
* @props { Object }
|
|
5
|
-
* 选择数据集合
|
|
11
|
+
* @props { Object } defaultSort 排序
|
|
6
12
|
*/
|
|
7
|
-
|
|
8
|
-
type:
|
|
13
|
+
defaultSort: {
|
|
14
|
+
type: () => DefaultSort;
|
|
9
15
|
default(): {};
|
|
10
16
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
compons: {
|
|
16
|
-
type: () => {
|
|
17
|
-
[key: string]: Component;
|
|
18
|
-
};
|
|
19
|
-
default(): {};
|
|
17
|
+
height: {
|
|
18
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
19
|
+
default(): string;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* 标签位置
|
|
22
|
+
* 加载中
|
|
24
23
|
*/
|
|
25
|
-
|
|
26
|
-
type:
|
|
27
|
-
default:
|
|
24
|
+
loading: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
28
27
|
};
|
|
28
|
+
adaptive: BooleanConstructor;
|
|
29
29
|
/**
|
|
30
|
-
* @props { Array<
|
|
31
|
-
*
|
|
30
|
+
* @props { Array<Object> } list table展示的列
|
|
31
|
+
* @props { String } list.class table展示的列class
|
|
32
|
+
* @props { String } list.label table展示的列头名称
|
|
33
|
+
* @props { Array<Object> } list.children 用来展示多级头
|
|
34
|
+
* @props { boolean } list.hide=false 当前列是否隐藏
|
|
35
|
+
* @props { function } list.sethide 当前列是否隐藏方法模式
|
|
36
|
+
* @props { function } list.formatter (row, column, cellValue, index) 用来格式化内容
|
|
37
|
+
* @props { String } list.align=left (left , center , right) 对齐方式
|
|
38
|
+
* @props { string , number } list.width table展示的宽度
|
|
39
|
+
* @props { string , number } list.minWidth table展示的最小宽度
|
|
40
|
+
* @props { string , boolean } list.fixed (true , 'left' , 'right') 列是否固定在左侧或者右侧。 true 表示固定在左侧
|
|
41
|
+
* @props { String } list.compon (component, color, list, but) table的扩展组件配置
|
|
42
|
+
* @props { Object } list.config table的扩展组件的配置对象
|
|
32
43
|
*/
|
|
33
44
|
list: {
|
|
34
45
|
type: {
|
|
@@ -47,54 +58,98 @@ export declare const dataProps: {
|
|
|
47
58
|
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
48
59
|
readonly [Symbol.species]: ArrayConstructor;
|
|
49
60
|
};
|
|
50
|
-
default
|
|
61
|
+
default(): never[];
|
|
51
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @props { Array } value table列表数据
|
|
65
|
+
*/
|
|
52
66
|
value: {
|
|
53
|
-
type:
|
|
54
|
-
|
|
67
|
+
type: {
|
|
68
|
+
(arrayLength: number): ObjAny[];
|
|
69
|
+
(...items: ObjAny[]): ObjAny[];
|
|
70
|
+
new (arrayLength: number): ObjAny[];
|
|
71
|
+
new (...items: ObjAny[]): ObjAny[];
|
|
72
|
+
isArray(arg: any): arg is any[];
|
|
73
|
+
readonly prototype: any[];
|
|
74
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
75
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
76
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
77
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
78
|
+
of<T>(...items: T[]): T[];
|
|
79
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
80
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
81
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
82
|
+
};
|
|
83
|
+
default(): never[];
|
|
55
84
|
};
|
|
56
85
|
/**
|
|
57
|
-
*
|
|
58
|
-
* 一行展示多少列
|
|
86
|
+
* 行高度
|
|
59
87
|
*/
|
|
60
|
-
|
|
61
|
-
type: NumberConstructor;
|
|
62
|
-
default(): number;
|
|
88
|
+
lineHeight: {
|
|
89
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
63
90
|
};
|
|
64
91
|
/**
|
|
65
|
-
* @props {
|
|
66
|
-
* 标签后面是否加内容 true 是 :
|
|
92
|
+
* @props { Object } options 选择数据集合
|
|
67
93
|
*/
|
|
68
|
-
|
|
94
|
+
options: {
|
|
95
|
+
type: ObjectConstructor;
|
|
96
|
+
default(): {};
|
|
97
|
+
};
|
|
69
98
|
/**
|
|
70
|
-
* @props {
|
|
71
|
-
* 标签宽度
|
|
99
|
+
* @props { Object } compons 外部组件集合
|
|
72
100
|
*/
|
|
73
|
-
|
|
74
|
-
type: (
|
|
101
|
+
compons: {
|
|
102
|
+
type: () => {
|
|
103
|
+
[key: string]: Component;
|
|
104
|
+
};
|
|
105
|
+
default(): {};
|
|
75
106
|
};
|
|
76
107
|
/**
|
|
77
|
-
* @props {
|
|
78
|
-
*
|
|
108
|
+
* @props { String } rowWidth
|
|
109
|
+
* 列的宽度
|
|
79
110
|
*/
|
|
80
|
-
|
|
81
|
-
type:
|
|
111
|
+
rowWidth: {
|
|
112
|
+
type: StringConstructor;
|
|
82
113
|
};
|
|
83
114
|
/**
|
|
84
|
-
* @props {
|
|
85
|
-
*
|
|
115
|
+
* @props { String } rowMinWidth
|
|
116
|
+
* 列的最小宽度
|
|
86
117
|
*/
|
|
87
|
-
|
|
88
|
-
type:
|
|
89
|
-
|
|
118
|
+
rowMinWidth: {
|
|
119
|
+
type: StringConstructor;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* @props { Number } rowColumn=1 一行几个
|
|
123
|
+
*/
|
|
124
|
+
rowColumn: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: number;
|
|
90
127
|
};
|
|
91
128
|
/**
|
|
92
|
-
* @props {
|
|
93
|
-
*
|
|
129
|
+
* @props { String } interval='6px'
|
|
130
|
+
* 查询模式的上下间距
|
|
94
131
|
*/
|
|
95
|
-
|
|
132
|
+
interval: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
96
136
|
};
|
|
97
137
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
138
|
+
/**
|
|
139
|
+
* @emits scroll-bottom 滚动到列表底部触发事件
|
|
140
|
+
*/
|
|
98
141
|
export declare const dataEmits: string[];
|
|
99
142
|
export type DataEmits = typeof dataEmits;
|
|
100
|
-
|
|
143
|
+
/**
|
|
144
|
+
* @expose clearSelection ( ) 清除多选
|
|
145
|
+
* @expose toggleRowSelectionList (row, selected, key ) 切换选择
|
|
146
|
+
* @expose clearSelectionList ( ) 清空选中
|
|
147
|
+
* @expose { Object: { value: 值,
|
|
148
|
+
list: 当前列,
|
|
149
|
+
key: key的名称,} } getRowSelectionsCheckList (row, key ) 获取选中的值
|
|
150
|
+
*/
|
|
151
|
+
export declare const dataExpose: {};
|
|
152
|
+
export declare const dataSlot: {
|
|
153
|
+
default: string;
|
|
154
|
+
noData: string;
|
|
155
|
+
};
|
|
@@ -1,97 +1,128 @@
|
|
|
1
1
|
const dataProps = {
|
|
2
2
|
/**
|
|
3
|
-
* @props { Object }
|
|
4
|
-
* 选择数据集合
|
|
3
|
+
* @props { Object } defaultSort 排序
|
|
5
4
|
*/
|
|
6
|
-
|
|
5
|
+
defaultSort: {
|
|
7
6
|
type: Object,
|
|
8
7
|
default() {
|
|
9
8
|
return {};
|
|
10
9
|
}
|
|
11
10
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* 外部组件集合
|
|
15
|
-
*/
|
|
16
|
-
compons: {
|
|
17
|
-
type: Object,
|
|
11
|
+
height: {
|
|
12
|
+
type: [String, Number],
|
|
18
13
|
default() {
|
|
19
|
-
return
|
|
14
|
+
return "auto";
|
|
20
15
|
}
|
|
21
16
|
},
|
|
22
17
|
/**
|
|
23
|
-
*
|
|
24
|
-
* 标签位置
|
|
18
|
+
* 加载中
|
|
25
19
|
*/
|
|
26
|
-
|
|
27
|
-
type:
|
|
28
|
-
default:
|
|
20
|
+
loading: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
29
23
|
},
|
|
24
|
+
// 高度自适应
|
|
25
|
+
adaptive: Boolean,
|
|
30
26
|
/**
|
|
31
|
-
* @props { Array<
|
|
32
|
-
*
|
|
27
|
+
* @props { Array<Object> } list table展示的列
|
|
28
|
+
* @props { String } list.class table展示的列class
|
|
29
|
+
* @props { String } list.label table展示的列头名称
|
|
30
|
+
* @props { Array<Object> } list.children 用来展示多级头
|
|
31
|
+
* @props { boolean } list.hide=false 当前列是否隐藏
|
|
32
|
+
* @props { function } list.sethide 当前列是否隐藏方法模式
|
|
33
|
+
* @props { function } list.formatter (row, column, cellValue, index) 用来格式化内容
|
|
34
|
+
* @props { String } list.align=left (left , center , right) 对齐方式
|
|
35
|
+
* @props { string , number } list.width table展示的宽度
|
|
36
|
+
* @props { string , number } list.minWidth table展示的最小宽度
|
|
37
|
+
* @props { string , boolean } list.fixed (true , 'left' , 'right') 列是否固定在左侧或者右侧。 true 表示固定在左侧
|
|
38
|
+
* @props { String } list.compon (component, color, list, but) table的扩展组件配置
|
|
39
|
+
* @props { Object } list.config table的扩展组件的配置对象
|
|
33
40
|
*/
|
|
34
41
|
list: {
|
|
35
42
|
type: Array,
|
|
36
|
-
default
|
|
43
|
+
default() {
|
|
37
44
|
return [];
|
|
38
45
|
}
|
|
39
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* @props { Array } value table列表数据
|
|
49
|
+
*/
|
|
40
50
|
value: {
|
|
41
|
-
type:
|
|
42
|
-
default
|
|
43
|
-
return
|
|
51
|
+
type: Array,
|
|
52
|
+
default() {
|
|
53
|
+
return [];
|
|
44
54
|
}
|
|
45
55
|
},
|
|
46
56
|
/**
|
|
47
|
-
*
|
|
48
|
-
* 一行展示多少列
|
|
57
|
+
* 行高度
|
|
49
58
|
*/
|
|
50
|
-
|
|
51
|
-
type: Number
|
|
59
|
+
lineHeight: {
|
|
60
|
+
type: [String, Number]
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* @props { Object } options 选择数据集合
|
|
64
|
+
*/
|
|
65
|
+
options: {
|
|
66
|
+
type: Object,
|
|
52
67
|
default() {
|
|
53
|
-
return
|
|
68
|
+
return {};
|
|
54
69
|
}
|
|
55
70
|
},
|
|
56
71
|
/**
|
|
57
|
-
* @props {
|
|
58
|
-
* 标签后面是否加内容 true 是 :
|
|
72
|
+
* @props { Object } compons 外部组件集合
|
|
59
73
|
*/
|
|
60
|
-
|
|
74
|
+
compons: {
|
|
75
|
+
type: Object,
|
|
76
|
+
default() {
|
|
77
|
+
return {};
|
|
78
|
+
}
|
|
79
|
+
},
|
|
61
80
|
/**
|
|
62
|
-
* @props {
|
|
63
|
-
*
|
|
81
|
+
* @props { String } rowWidth
|
|
82
|
+
* 列的宽度
|
|
64
83
|
*/
|
|
65
|
-
|
|
66
|
-
type:
|
|
67
|
-
// default: '60px',
|
|
84
|
+
rowWidth: {
|
|
85
|
+
type: String
|
|
68
86
|
},
|
|
69
87
|
/**
|
|
70
|
-
* @props {
|
|
71
|
-
*
|
|
88
|
+
* @props { String } rowMinWidth
|
|
89
|
+
* 列的最小宽度
|
|
72
90
|
*/
|
|
73
|
-
|
|
74
|
-
type:
|
|
75
|
-
// default: true
|
|
91
|
+
rowMinWidth: {
|
|
92
|
+
type: String
|
|
76
93
|
},
|
|
77
94
|
/**
|
|
78
|
-
* @props {
|
|
79
|
-
* 是否等分
|
|
95
|
+
* @props { Number } rowColumn=1 一行几个
|
|
80
96
|
*/
|
|
81
|
-
|
|
82
|
-
type:
|
|
83
|
-
default:
|
|
97
|
+
rowColumn: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 1
|
|
84
100
|
},
|
|
85
101
|
/**
|
|
86
|
-
* @props {
|
|
87
|
-
*
|
|
102
|
+
* @props { String } interval='6px'
|
|
103
|
+
* 查询模式的上下间距
|
|
88
104
|
*/
|
|
89
|
-
|
|
105
|
+
interval: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: "6px"
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const dataEmits = [
|
|
111
|
+
"sort-change",
|
|
112
|
+
"scroll-bottom",
|
|
113
|
+
"scope-click",
|
|
114
|
+
"selection-list",
|
|
115
|
+
"list-events",
|
|
116
|
+
"row-click"
|
|
117
|
+
];
|
|
118
|
+
const dataExpose = {};
|
|
119
|
+
const dataSlot = {
|
|
120
|
+
default: "default",
|
|
121
|
+
noData: "no-data"
|
|
90
122
|
};
|
|
91
|
-
const dataEmits = ["list-events"];
|
|
92
|
-
const dataExpose = [];
|
|
93
123
|
export {
|
|
94
124
|
dataEmits,
|
|
95
125
|
dataExpose,
|
|
96
|
-
dataProps
|
|
126
|
+
dataProps,
|
|
127
|
+
dataSlot
|
|
97
128
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
exports.default =
|
|
3
|
+
const index_vue_vue_type_script_setup_true_lang = require("./index2.cjs");
|
|
4
|
+
exports.default = index_vue_vue_type_script_setup_true_lang.default;
|