fix: omit props

This commit is contained in:
chenos 2025-06-30 15:15:49 +08:00
parent 4d79e4cd02
commit 881fcd86a3
4 changed files with 16 additions and 5 deletions

View File

@ -88,7 +88,7 @@ export const FlowPage = (props) => {
},
);
if (loading || !data?.uid) {
return <SkeletonFallback />;
return <SkeletonFallback style={{ margin: 16 }} />;
}
return <InternalFlowPage uid={data.uid} {...rest} />;
};

View File

@ -7,8 +7,8 @@
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import type { ButtonProps } from 'antd/es/button';
import { tval } from '@nocobase/utils/client';
import type { ButtonProps } from 'antd/es/button';
import { RecordActionModel } from '../base/ActionModel';
export class ViewActionModel extends RecordActionModel {

View File

@ -1,12 +1,23 @@
import React from 'react';
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { useForm } from '@formily/react';
import { reactive } from '@nocobase/flow-engine';
import { Select } from 'antd';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { ReadPrettyFieldModel } from './ReadPrettyFieldModel';
import { InputNumberReadPretty } from '../../../components/InputNumberReadPretty';
import { ReadPrettyFieldModel } from './ReadPrettyFieldModel';
export class NumberReadPrettyFieldModel extends ReadPrettyFieldModel {
public static readonly supportedFieldInterfaces = ['number', 'integer'];
@reactive
public render() {
const value = this.getValue();
return (

View File

@ -910,7 +910,7 @@ export class FlowModel<Structure extends DefaultStructure = DefaultStructure> {
serialize(): Record<string, any> {
const data = {
uid: this.uid,
..._.omit(this._options, ['flowEngine']),
..._.omit(this._options, ['props', 'flowEngine']),
// props: this.props,
stepParams: this.stepParams,
sortIndex: this.sortIndex,