@juzhenfe/page-model 3.9.24 → 3.9.26
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.
|
@@ -10,9 +10,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
props: any;
|
|
12
12
|
tableManager: import("vue").ComputedRef<any>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
onUpdateTableCellModelValue: (row: any, prop: string, value: any) => void;
|
|
14
|
+
onSaveEditContent: (row: AnyObject, cellKey: string, column: PageModel.TableBaseItem<any, any>) => Promise<boolean>;
|
|
15
|
+
onCellDataChange: (row: AnyObject, cellKey: string, column: PageModel.TableBaseItem<any, any>) => void;
|
|
16
|
+
onCancelEditContent: (row: AnyObject, cellKey: string, restoreKey: string) => void;
|
|
16
17
|
TableCellRenderer: import("vue").DefineComponent<{
|
|
17
18
|
renderFn: {
|
|
18
19
|
type: import("vue").PropType<PageModel.RenderFn>;
|
|
@@ -141,6 +142,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
141
142
|
multProps: string[];
|
|
142
143
|
}, {}>;
|
|
143
144
|
readonly QuestionFilled: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
145
|
+
readonly Select: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
146
|
+
readonly CloseBold: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
147
|
+
readonly Loading: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
144
148
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
149
|
els: {
|
|
146
150
|
type: ArrayConstructor;
|
|
@@ -68,11 +68,74 @@ export default class TableManager extends IManager {
|
|
|
68
68
|
patchTableSelectable(): void;
|
|
69
69
|
patchTableRadio(): void;
|
|
70
70
|
patchTableSortable(): void;
|
|
71
|
+
/**
|
|
72
|
+
* 构建单元格的唯一key
|
|
73
|
+
* column-列-页数-行
|
|
74
|
+
* @param columnKey 列的key
|
|
75
|
+
* @param rowIndex 行索引
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
71
78
|
composeTableCellKey(columnKey: string, rowIndex: string): string;
|
|
79
|
+
/**
|
|
80
|
+
* 当前聚焦的单元格
|
|
81
|
+
*/
|
|
82
|
+
focusCellKey: string;
|
|
83
|
+
/**
|
|
84
|
+
* 移除当前单元格聚焦
|
|
85
|
+
*/
|
|
86
|
+
blurCell(blurRowData: any, blurColumn: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* 当前单元格聚焦
|
|
89
|
+
*/
|
|
90
|
+
focusCell(cell?: HTMLElement): void;
|
|
91
|
+
/**
|
|
92
|
+
* 当前的点击行
|
|
93
|
+
*/
|
|
94
|
+
currentRow: AnyObject;
|
|
95
|
+
/**
|
|
96
|
+
* 当前的列
|
|
97
|
+
*/
|
|
98
|
+
currentColumn: any;
|
|
99
|
+
/**
|
|
100
|
+
* 设置表格可编辑
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
72
103
|
patchTableEditable(): boolean;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
104
|
+
/**
|
|
105
|
+
* 设置单元格可编辑
|
|
106
|
+
* @param mapKey
|
|
107
|
+
*/
|
|
108
|
+
setCellEditing(cellKey: string): void;
|
|
109
|
+
/**
|
|
110
|
+
* 关闭单元格的编辑状态
|
|
111
|
+
* @param cellKey
|
|
112
|
+
*/
|
|
113
|
+
closeCellEditing(cellKey: string): void;
|
|
114
|
+
/**
|
|
115
|
+
* 保存当前行的原数据
|
|
116
|
+
* @param key
|
|
117
|
+
* @param data
|
|
118
|
+
*/
|
|
119
|
+
saveRowData(cellKey: string, data: any): void;
|
|
120
|
+
/**
|
|
121
|
+
* 清空当前行的原数据
|
|
122
|
+
*/
|
|
123
|
+
clearRowData(cellKey: string): void;
|
|
124
|
+
/**
|
|
125
|
+
* 更新当前行的更新loading
|
|
126
|
+
*/
|
|
127
|
+
setRowUpdateLoading(cellKey: string, loading: boolean): void;
|
|
128
|
+
/**
|
|
129
|
+
* 还原原来的数据
|
|
130
|
+
*/
|
|
131
|
+
restoreCellValue(row: any, cellKey: string, restoreKey: string): void;
|
|
132
|
+
/**
|
|
133
|
+
* 重置编辑的情况
|
|
134
|
+
*/
|
|
135
|
+
resetTableEdit(): void;
|
|
136
|
+
/**
|
|
137
|
+
* 更新分页器
|
|
138
|
+
*/
|
|
76
139
|
updatePagination(): void;
|
|
77
140
|
/**
|
|
78
141
|
* 识别数据标识,如果没有携带标志,自动生成
|