@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.
Files changed (73) hide show
  1. package/dist/components/common/use.cjs +2 -0
  2. package/dist/components/common/use.js +2 -0
  3. package/dist/components/index.cjs +84 -80
  4. package/dist/components/index.d.ts +3 -1
  5. package/dist/components/index.js +5 -1
  6. package/dist/components/index.scss +2 -2
  7. package/dist/components/index2.scss +2 -2
  8. package/dist/components/list/index.cjs +9 -0
  9. package/dist/components/list/index.css +96 -0
  10. package/dist/components/list/index.d.ts +2 -0
  11. package/dist/components/list/index.js +9 -0
  12. package/dist/components/list/src/data.cjs +97 -0
  13. package/dist/components/list/src/data.d.ts +100 -0
  14. package/dist/components/list/src/data.js +97 -0
  15. package/dist/components/list/src/index.cjs +4 -0
  16. package/dist/components/list/src/index.js +4 -0
  17. package/dist/components/list/src/index2.cjs +337 -0
  18. package/dist/components/list/src/index2.js +337 -0
  19. package/dist/components/lists/index.cjs +2 -2
  20. package/dist/components/lists/index.css +27 -72
  21. package/dist/components/lists/src/data.cjs +80 -49
  22. package/dist/components/lists/src/data.d.ts +103 -48
  23. package/dist/components/lists/src/data.js +81 -50
  24. package/dist/components/lists/src/index.cjs +2 -2
  25. package/dist/components/lists/src/index2.cjs +237 -303
  26. package/dist/components/lists/src/index2.js +237 -303
  27. package/dist/components/listsp/index.cjs +9 -0
  28. package/dist/components/listsp/index.css +86 -0
  29. package/dist/components/listsp/index.d.ts +2 -0
  30. package/dist/components/listsp/index.js +9 -0
  31. package/dist/components/listsp/src/data.d.ts +14 -0
  32. package/dist/components/listsp/src/index.cjs +4 -0
  33. package/dist/components/listsp/src/index.js +4 -0
  34. package/dist/components/listsp/src/index2.cjs +98 -0
  35. package/dist/components/listsp/src/index2.js +98 -0
  36. package/dist/components/page/index.css +35 -38
  37. package/dist/components/page/index.scss +1 -1
  38. package/dist/components/page/src/index2.cjs +2 -2
  39. package/dist/components/page/src/index2.js +2 -2
  40. package/dist/components/page/style/index2.scss +1 -1
  41. package/dist/components/tables/common/pagin.cjs +33 -15
  42. package/dist/components/tables/common/pagin.d.ts +14 -3
  43. package/dist/components/tables/common/pagin.js +33 -15
  44. package/dist/components/tables/index.css +1 -4
  45. package/dist/components/tablesp/index.css +1 -4
  46. package/dist/css/index.css +122 -46
  47. package/dist/css/list.css +96 -0
  48. package/dist/css/lists.css +27 -72
  49. package/dist/css/listsp.css +86 -0
  50. package/dist/css/page.css +35 -38
  51. package/dist/css/tables.css +1 -4
  52. package/dist/css/tablesp.css +1 -4
  53. package/dist/directives/scroll/index.cjs +36 -11
  54. package/dist/directives/scroll/index.js +36 -11
  55. package/dist/icons/index.css +36 -36
  56. package/dist/icons/index.json +15 -15
  57. package/dist/index.cjs +102 -98
  58. package/dist/index.css +122 -46
  59. package/dist/index.js +5 -1
  60. package/dist/type.d.ts +11 -2
  61. package/package.json +5 -5
  62. /package/dist/components/{forms-item → forms-items}/index.css +0 -0
  63. /package/dist/components/{cascader-panel → keep-com}/index.css +0 -0
  64. /package/dist/components/{lists → list}/src/setup.d.ts +0 -0
  65. /package/dist/components/{lists → list}/src/util.cjs +0 -0
  66. /package/dist/components/{lists → list}/src/util.d.ts +0 -0
  67. /package/dist/components/{lists → list}/src/util.js +0 -0
  68. /package/dist/components/{lists → tables}/common/img.cjs +0 -0
  69. /package/dist/components/{lists → tables}/common/img.js +0 -0
  70. /package/dist/components/{lists → tables}/common/img2.cjs +0 -0
  71. /package/dist/components/{lists → tables}/common/img2.js +0 -0
  72. /package/dist/css/{forms-item.css → forms-items.css} +0 -0
  73. /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 } options={}
5
- * 选择数据集合
11
+ * @props { Object } defaultSort 排序
6
12
  */
7
- options: {
8
- type: ObjectConstructor;
13
+ defaultSort: {
14
+ type: () => DefaultSort;
9
15
  default(): {};
10
16
  };
11
- /**
12
- * @props { Object } compons={}
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
- * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
23
- * 标签位置
22
+ * 加载中
24
23
  */
25
- labelPosition: {
26
- type: () => "left" | "top" | "right" | "center" | "auto";
27
- default: string;
24
+ loading: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
28
27
  };
28
+ adaptive: BooleanConstructor;
29
29
  /**
30
- * @props { Array<ListObj> } list=[]
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: () => never[];
61
+ default(): never[];
51
62
  };
63
+ /**
64
+ * @props { Array } value table列表数据
65
+ */
52
66
  value: {
53
- type: ObjectConstructor;
54
- default: () => {};
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
- * @props { Number } column=2
58
- * 一行展示多少列
86
+ * 行高度
59
87
  */
60
- column: {
61
- type: NumberConstructor;
62
- default(): number;
88
+ lineHeight: {
89
+ type: (StringConstructor | NumberConstructor)[];
63
90
  };
64
91
  /**
65
- * @props { Boolean, String } colon
66
- * 标签后面是否加内容 true 是 :
92
+ * @props { Object } options 选择数据集合
67
93
  */
68
- colon: (BooleanConstructor | StringConstructor)[];
94
+ options: {
95
+ type: ObjectConstructor;
96
+ default(): {};
97
+ };
69
98
  /**
70
- * @props {Number, String } labelWidth=[]
71
- * 标签宽度
99
+ * @props { Object } compons 外部组件集合
72
100
  */
73
- labelWidth: {
74
- type: (StringConstructor | NumberConstructor)[];
101
+ compons: {
102
+ type: () => {
103
+ [key: string]: Component;
104
+ };
105
+ default(): {};
75
106
  };
76
107
  /**
77
- * @props { Boolean, String } border=true ( )
78
- * 是否需要边框,边框颜色
108
+ * @props { String } rowWidth
109
+ * 列的宽度
79
110
  */
80
- border: {
81
- type: (BooleanConstructor | StringConstructor)[];
111
+ rowWidth: {
112
+ type: StringConstructor;
82
113
  };
83
114
  /**
84
- * @props { Boolean } aliquots=true ( )
85
- * 是否等分
115
+ * @props { String } rowMinWidth
116
+ * 列的最小宽度
86
117
  */
87
- aliquots: {
88
- type: BooleanConstructor;
89
- default: boolean;
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 { Boolean } componSelected
93
- * 是否在选中时显示 compon 组件
129
+ * @props { String } interval='6px'
130
+ * 查询模式的上下间距
94
131
  */
95
- componSelected: BooleanConstructor;
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
- export declare const dataExpose: never[];
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 } options={}
4
- * 选择数据集合
3
+ * @props { Object } defaultSort 排序
5
4
  */
6
- options: {
5
+ defaultSort: {
7
6
  type: Object,
8
7
  default() {
9
8
  return {};
10
9
  }
11
10
  },
12
- /**
13
- * @props { Object } compons={}
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
- * @props { Object } labelPosition='auto' ('left' | 'top' | 'right' | 'center' | 'auto')
24
- * 标签位置
18
+ * 加载中
25
19
  */
26
- labelPosition: {
27
- type: String,
28
- default: "auto"
20
+ loading: {
21
+ type: Boolean,
22
+ default: false
29
23
  },
24
+ // 高度自适应
25
+ adaptive: Boolean,
30
26
  /**
31
- * @props { Array<ListObj> } list=[]
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: Object,
42
- default: () => {
43
- return {};
51
+ type: Array,
52
+ default() {
53
+ return [];
44
54
  }
45
55
  },
46
56
  /**
47
- * @props { Number } column=2
48
- * 一行展示多少列
57
+ * 行高度
49
58
  */
50
- column: {
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 2;
68
+ return {};
54
69
  }
55
70
  },
56
71
  /**
57
- * @props { Boolean, String } colon
58
- * 标签后面是否加内容 true 是 :
72
+ * @props { Object } compons 外部组件集合
59
73
  */
60
- colon: [Boolean, String],
74
+ compons: {
75
+ type: Object,
76
+ default() {
77
+ return {};
78
+ }
79
+ },
61
80
  /**
62
- * @props {Number, String } labelWidth=[]
63
- * 标签宽度
81
+ * @props { String } rowWidth
82
+ * 列的宽度
64
83
  */
65
- labelWidth: {
66
- type: [Number, String]
67
- // default: '60px',
84
+ rowWidth: {
85
+ type: String
68
86
  },
69
87
  /**
70
- * @props { Boolean, String } border=true ( )
71
- * 是否需要边框,边框颜色
88
+ * @props { String } rowMinWidth
89
+ * 列的最小宽度
72
90
  */
73
- border: {
74
- type: [Boolean, String]
75
- // default: true
91
+ rowMinWidth: {
92
+ type: String
76
93
  },
77
94
  /**
78
- * @props { Boolean } aliquots=true ( )
79
- * 是否等分
95
+ * @props { Number } rowColumn=1 一行几个
80
96
  */
81
- aliquots: {
82
- type: Boolean,
83
- default: true
97
+ rowColumn: {
98
+ type: Number,
99
+ default: 1
84
100
  },
85
101
  /**
86
- * @props { Boolean } componSelected
87
- * 是否在选中时显示 compon 组件
102
+ * @props { String } interval='6px'
103
+ * 查询模式的上下间距
88
104
  */
89
- componSelected: Boolean
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 index_vue_vue_type_script_lang = require("./index2.cjs");
4
- exports.default = index_vue_vue_type_script_lang.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;