zzz-pc-view 0.0.152 → 0.0.153
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/package.json +1 -1
- package/src/decorators/CurdKey/index.d.ts +1 -2
- package/src/index.es.js +1 -2
- package/src/index.umd.js +1 -1
package/package.json
CHANGED
|
@@ -32,9 +32,8 @@ export interface TableColumnParam extends BaseParam {
|
|
|
32
32
|
* 表单项参数接口,继承自基础参数接口,用于定义表单项的特定参数。
|
|
33
33
|
*/
|
|
34
34
|
export interface FormItemParam<T extends object = object> extends BaseParam {
|
|
35
|
-
setDefaultValue?: (param: {
|
|
35
|
+
setDefaultValue?: (this: T, param: {
|
|
36
36
|
createType: CreateTypeEnum;
|
|
37
|
-
model: T;
|
|
38
37
|
data?: T;
|
|
39
38
|
query?: T;
|
|
40
39
|
options?: unknown[];
|
package/src/index.es.js
CHANGED
|
@@ -6235,9 +6235,8 @@ class CurdHandler extends FilterHandler {
|
|
|
6235
6235
|
var _a2, _b2;
|
|
6236
6236
|
if (typeof setDefaultValue === "function") {
|
|
6237
6237
|
const mapping = (_a2 = filterConfigMap[propertyKey]) == null ? void 0 : _a2.mapping;
|
|
6238
|
-
setDefaultValue({
|
|
6238
|
+
setDefaultValue.call(editorData, {
|
|
6239
6239
|
createType,
|
|
6240
|
-
model: editorData,
|
|
6241
6240
|
data,
|
|
6242
6241
|
query: this.searchQueryRef.value,
|
|
6243
6242
|
// options?: unknown[]
|