@fangzhongya/fang-ui 0.0.54 → 0.0.56
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/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- 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 +33 -15
- package/dist/components/tables/common/pagin.d.ts +14 -3
- package/dist/components/tables/common/pagin.js +33 -15
- package/dist/components/tables/index.css +1 -4
- package/dist/components/tablesp/index.css +1 -4
- package/dist/css/index.css +122 -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 +36 -36
- package/dist/icons/index.json +15 -15
- package/dist/index.cjs +102 -98
- package/dist/index.css +122 -46
- package/dist/index.js +5 -1
- package/dist/type.d.ts +11 -2
- package/package.json +5 -5
- /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
|
@@ -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;
|