holyes-table 1.0.11 → 1.0.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 +24 -2
- package/dist/index.mjs +304 -283
- package/dist/lib/pretextTable/hook/useCheckbox.d.ts +1 -1
- package/dist/lib/pretextTable/pretextTable.vue.d.ts +1 -1
- package/dist/lib/pretextTable/type.d.ts +8 -2
- package/dist/lib/pretextTable/useHolyesTable.d.ts +1 -1
- package/package.json +3 -2
- package//346/233/264/346/226/260/346/227/245/345/277/227.md +37 -0
|
@@ -25,7 +25,7 @@ export declare function useCheckbox(dataObj: {
|
|
|
25
25
|
/** 单元格选中 */
|
|
26
26
|
onCellChecked: (item: any, field?: string) => void;
|
|
27
27
|
/** 获取选中的数据 */
|
|
28
|
-
getCheckboxRecords: (isFull: boolean) => any[];
|
|
28
|
+
getCheckboxRecords: (isFull: boolean, field?: string) => any[];
|
|
29
29
|
/** 清空多选列选中状态,给内部初始化用的 */
|
|
30
30
|
clearCheckboxRowInit: () => void;
|
|
31
31
|
};
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<import('vu
|
|
|
84
84
|
}>, {
|
|
85
85
|
loadData: (tempData: any[]) => Promise<void>;
|
|
86
86
|
reloadData: (tempData: any[]) => Promise<void>;
|
|
87
|
-
getCheckboxRecords: (isFull: boolean) => any[];
|
|
87
|
+
getCheckboxRecords: (isFull: boolean, field?: string) => any[];
|
|
88
88
|
clearCheckboxRow: (field?: string) => void;
|
|
89
89
|
updateFooter: (field?: string) => void;
|
|
90
90
|
updateFooterCellLabel: (field: string, rowIndex: number, label: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeIconPropTypes } from 'vxe-pc-ui';
|
|
2
2
|
/** 列插槽类型 */
|
|
3
|
-
export type HolyesTableSlotDefaultType = "a" | "tag" | "icon" | "buttons" | "switch";
|
|
3
|
+
export type HolyesTableSlotDefaultType = "a" | "tag" | "icon" | "buttons" | "switch" | "checkbox";
|
|
4
4
|
/** 表格列属性,额外属性 */
|
|
5
5
|
export type HolyesTableColumnPropsTypeOption = {
|
|
6
6
|
/** 列宽度 */
|
|
@@ -51,7 +51,7 @@ export type HolyesTableColumnPropsTypeOption = {
|
|
|
51
51
|
};
|
|
52
52
|
/** 图标 插槽默认属性 */
|
|
53
53
|
icon?: {
|
|
54
|
-
/** 图标名称, 参考 vxe-icon 图标名称 */
|
|
54
|
+
/** 图标名称, 参考 vxe-icon 图标名称 https://vxeui.com/#/component/icon/base */
|
|
55
55
|
name?: VxeIconPropTypes.Name;
|
|
56
56
|
/** 图标样式 */
|
|
57
57
|
style?: any;
|
|
@@ -111,6 +111,12 @@ export type HolyesTableColumnPropsTypeOption = {
|
|
|
111
111
|
/** 开关点击事件 */
|
|
112
112
|
onChange?: (row: any, index: number) => void;
|
|
113
113
|
};
|
|
114
|
+
checkbox?: {
|
|
115
|
+
/** 多选框是否半选,取决于row的哪个字段 */
|
|
116
|
+
checkedIndeterminateField?: string;
|
|
117
|
+
/** 多选框点击事件 */
|
|
118
|
+
onChange?: (row: any, index: number) => void;
|
|
119
|
+
};
|
|
114
120
|
};
|
|
115
121
|
/** 列表头插槽 */
|
|
116
122
|
header?: string;
|
|
@@ -67,7 +67,7 @@ export declare const useHolyesTable: (dataObj: {
|
|
|
67
67
|
headerCheckedIndeterminate: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
|
|
68
68
|
onHeaderChecked: (field: string) => void;
|
|
69
69
|
onCellChecked: (item: any, field?: string) => void;
|
|
70
|
-
getCheckboxRecords: (isFull: boolean) => any[];
|
|
70
|
+
getCheckboxRecords: (isFull: boolean, field?: string) => any[];
|
|
71
71
|
clearCheckboxRow: (field?: string) => void;
|
|
72
72
|
sortField: import('vue').Ref<string, string>;
|
|
73
73
|
sortOrder: import('vue').Ref<"asc" | "desc" | null, "asc" | "desc" | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holyes-table",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "合力思虚拟滚动表格组件",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"./style.css": "./dist/index.css"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
|
-
"dist"
|
|
17
|
+
"dist",
|
|
18
|
+
"更新日志.md"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
21
|
"dev": "vite",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
## v1.0.13 (2026-05-22)
|
|
4
|
+
|
|
5
|
+
- 修复getCheckboxRecords方法,返回选中的行数据,在树结构下也生效
|
|
6
|
+
|
|
7
|
+
## v1.0.12 (2026-05-21)
|
|
8
|
+
|
|
9
|
+
- 增加插槽多选框列
|
|
10
|
+
|
|
11
|
+
## v1.0.11 (2026-05-15)
|
|
12
|
+
|
|
13
|
+
- 树结构, 增加checkStrictly属性,严格选中/取消选中子节点
|
|
14
|
+
- 修复树结构, 多选列不对的问题
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## v1.0.10 (2026-05-15)
|
|
19
|
+
|
|
20
|
+
- 修复setAllTreeExpand,没有展开所有节点的问题
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## v1.0.9 (2026-05-15)
|
|
25
|
+
|
|
26
|
+
- 修复筛选搜索功能,重置所有相关问题
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## v1.0.0
|
|
31
|
+
|
|
32
|
+
### 新增
|
|
33
|
+
|
|
34
|
+
- 首次提交,项目初始化
|
|
35
|
+
- 基础表格组件
|
|
36
|
+
- 组件类型定义
|
|
37
|
+
- 项目说明文档
|