mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: omit props
This commit is contained in:
parent
4d79e4cd02
commit
881fcd86a3
@ -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} />;
|
||||
};
|
||||
|
@ -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 {
|
||||
|
@ -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 (
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user