Skip to content

Commit

Permalink
fix(ts): 修复类型定义文件
Browse files Browse the repository at this point in the history
  • Loading branch information
lljj-x committed Mar 8, 2022
1 parent 6bda2b0 commit 18a7058
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
declare function modelValueComponent(
baseComponent: object | String | Function,
options: {
model: String
},
rootSchema: object,
includeUndefinedValues?: boolean,
options?: {
model?: String
}
): any;

export default modelValueComponent;
4 changes: 3 additions & 1 deletion packages/lib/vue3/vue3-form-naive/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import JsonSchemaForm from './vueForm';
import getDefaultFormState from './getDefaultFormState';
import modelValueComponent from './modelValueComponent';
import fieldProps from './fieldProps';
import vueUtils from './vueUtils';
import formUtils from './formUtils';
Expand All @@ -16,7 +17,8 @@ export {
vueUtils,
formUtils,
schemaValidate,
i18n
i18n,
modelValueComponent
};

export class SchemaField {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare function modelValueComponent(
baseComponent: object | String | Function,
options?: {
model?: String
}
): any;

export default modelValueComponent;

0 comments on commit 18a7058

Please sign in to comment.