cd-form 2.0.54 → 2.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/CdForm.vue.d.ts +2 -1
- package/dist/cd-form.js +5463 -5440
- package/dist/cd-form.umd.cjs +67 -67
- package/dist/style.css +1 -1
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -346,6 +346,15 @@ export interface CdFormProps {
|
|
|
346
346
|
detailUrl?: string;
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* API Override — 允许调用方替换内置的 create / update / delete 接口
|
|
351
|
+
* 返回值需包含 { code: number, msg?: string } 结构
|
|
352
|
+
*/
|
|
353
|
+
export interface ApiOverride {
|
|
354
|
+
create?: (modelId: string, data: Record<string, any>) => Promise<any>;
|
|
355
|
+
update?: (modelId: string, id: string, data: Record<string, any>) => Promise<any>;
|
|
356
|
+
delete?: (modelId: string, ids: string[]) => Promise<any>;
|
|
357
|
+
}
|
|
349
358
|
/**
|
|
350
359
|
* 操作模式
|
|
351
360
|
*/
|