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) {
|
if (loading || !data?.uid) {
|
||||||
return <SkeletonFallback />;
|
return <SkeletonFallback style={{ margin: 16 }} />;
|
||||||
}
|
}
|
||||||
return <InternalFlowPage uid={data.uid} {...rest} />;
|
return <InternalFlowPage uid={data.uid} {...rest} />;
|
||||||
};
|
};
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
* 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 { tval } from '@nocobase/utils/client';
|
||||||
|
import type { ButtonProps } from 'antd/es/button';
|
||||||
import { RecordActionModel } from '../base/ActionModel';
|
import { RecordActionModel } from '../base/ActionModel';
|
||||||
|
|
||||||
export class ViewActionModel extends RecordActionModel {
|
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 { useForm } from '@formily/react';
|
||||||
|
import { reactive } from '@nocobase/flow-engine';
|
||||||
import { Select } from 'antd';
|
import { Select } from 'antd';
|
||||||
|
import React from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { ReadPrettyFieldModel } from './ReadPrettyFieldModel';
|
|
||||||
import { InputNumberReadPretty } from '../../../components/InputNumberReadPretty';
|
import { InputNumberReadPretty } from '../../../components/InputNumberReadPretty';
|
||||||
|
import { ReadPrettyFieldModel } from './ReadPrettyFieldModel';
|
||||||
|
|
||||||
export class NumberReadPrettyFieldModel extends ReadPrettyFieldModel {
|
export class NumberReadPrettyFieldModel extends ReadPrettyFieldModel {
|
||||||
public static readonly supportedFieldInterfaces = ['number', 'integer'];
|
public static readonly supportedFieldInterfaces = ['number', 'integer'];
|
||||||
|
@reactive
|
||||||
public render() {
|
public render() {
|
||||||
const value = this.getValue();
|
const value = this.getValue();
|
||||||
return (
|
return (
|
||||||
|
@ -910,7 +910,7 @@ export class FlowModel<Structure extends DefaultStructure = DefaultStructure> {
|
|||||||
serialize(): Record<string, any> {
|
serialize(): Record<string, any> {
|
||||||
const data = {
|
const data = {
|
||||||
uid: this.uid,
|
uid: this.uid,
|
||||||
..._.omit(this._options, ['flowEngine']),
|
..._.omit(this._options, ['props', 'flowEngine']),
|
||||||
// props: this.props,
|
// props: this.props,
|
||||||
stepParams: this.stepParams,
|
stepParams: this.stepParams,
|
||||||
sortIndex: this.sortIndex,
|
sortIndex: this.sortIndex,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user