@qin-ui/antdv-next-pro 1.0.0 → 1.0.1
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/es/index.d.ts +5 -3
- package/package.json +2 -2
package/es/index.d.ts
CHANGED
|
@@ -496,10 +496,12 @@ export declare type FieldTypeMap<D extends Data = Data> = {
|
|
|
496
496
|
};
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
|
-
* 重新定义 Form
|
|
500
|
-
*
|
|
499
|
+
* 重新定义 Form 类型:
|
|
500
|
+
* 1. 将第二个泛型参数 F 默认绑定为本地 Field<D>;
|
|
501
|
+
* 2. 将 core Form 的第三个泛型参数 I 绑定为本地 UI 库(antdv-next)的 FormInstance,
|
|
502
|
+
* 使 formRef 的类型变为 Ref<FormInstance | undefined>。
|
|
501
503
|
*/
|
|
502
|
-
export declare type Form<D extends Data = Data, F extends Field<D> = Field<D>> = Form_2<D, F>;
|
|
504
|
+
export declare type Form<D extends Data = Data, F extends Field<D> = Field<D>> = Form_2<D, F, FormInstance>;
|
|
503
505
|
|
|
504
506
|
export declare const FORM_ITEM_SLOT_KEYS: readonly ["label", "extra", "help", "tooltip"];
|
|
505
507
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qin-ui/antdv-next-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "基于 antdv-next 的二次封装组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@qin-ui/core": "workspace:^"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"antdv-next": "^1.
|
|
30
|
+
"antdv-next": "^1.1.0",
|
|
31
31
|
"vue": "^3.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|