Skip to content

Commit

Permalink
fix: 修复row会导致editForm不显示字段的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jul 24, 2023
1 parent 86b7bcf commit 0c337ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fast-crud/src/components/crud/fs-form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default defineComponent({
default: undefined
},
/**
* 行数据
* a-row配置
*/
row: {
type: Object,
Expand Down
5 changes: 5 additions & 0 deletions packages/fast-crud/src/d/crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ export type FormProps = {
* 可以配置跨列 {span:24}表示此字段占满一行
*/
col?: ColProps;

/**
* a-row的配置
*/
row?: any;
/**
* 字段组件之前render
* @param scope
Expand Down
1 change: 1 addition & 0 deletions packages/fast-crud/src/use/use-expose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ export function useExpose(props: UseExposeProps): UseExposeRet {
mode,
initialForm: row
};
delete context.row;
const xxForm = toRaw(crudBinding.value[mode + "Form"]);
merge(options, xxForm, context, formOpts);
return await this.openDialog(options);
Expand Down

0 comments on commit 0c337ef

Please sign in to comment.