mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: types error
This commit is contained in:
parent
18af7cfcb0
commit
8a7ba24d6b
@ -70,7 +70,7 @@ class ConfigureFieldsFlowModel extends FlowModel {
|
|||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
dsm.addDataSource({
|
dsm.addDataSource({
|
||||||
name: `ds-${uid()}`,
|
key: `ds-${uid()}`,
|
||||||
displayName: `ds-${uid()}`,
|
displayName: `ds-${uid()}`,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
import { Plugin } from '../application/Plugin';
|
import { Plugin } from '../application/Plugin';
|
||||||
|
|
||||||
import { name } from 'packages/core/database/src/__tests__/fixtures/collections/tags';
|
|
||||||
import { DataSource } from '../data-source/data-source/DataSource';
|
import { DataSource } from '../data-source/data-source/DataSource';
|
||||||
import { DEFAULT_DATA_SOURCE_KEY, DEFAULT_DATA_SOURCE_TITLE } from '../data-source/data-source/DataSourceManager';
|
import { DEFAULT_DATA_SOURCE_KEY, DEFAULT_DATA_SOURCE_TITLE } from '../data-source/data-source/DataSourceManager';
|
||||||
import {
|
import {
|
||||||
|
@ -12,10 +12,8 @@ import { createForm, Form } from '@formily/core';
|
|||||||
import { FormProvider } from '@formily/react';
|
import { FormProvider } from '@formily/react';
|
||||||
import { AddActionButton, AddFieldButton, FlowModelRenderer, SingleRecordResource } from '@nocobase/flow-engine';
|
import { AddActionButton, AddFieldButton, FlowModelRenderer, SingleRecordResource } from '@nocobase/flow-engine';
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
import dataSource from 'packages/core/client/docs/zh-CN/core/flow-models/demos/data-source';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { DataBlockModel } from '../../base/BlockModel';
|
import { DataBlockModel } from '../../base/BlockModel';
|
||||||
import { FormFieldModel } from './fields/FormFieldModel';
|
|
||||||
|
|
||||||
export class FormModel extends DataBlockModel {
|
export class FormModel extends DataBlockModel {
|
||||||
form: Form;
|
form: Form;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { FormButtonGroup, FormDialog, FormLayout, Submit } from '@formily/antd-v5';
|
import { FormButtonGroup, FormLayout, Submit } from '@formily/antd-v5';
|
||||||
import { createForm, Form } from '@formily/core';
|
import { createForm, Form } from '@formily/core';
|
||||||
import { FormProvider } from '@formily/react';
|
import { FormProvider } from '@formily/react';
|
||||||
import {
|
import {
|
||||||
@ -21,7 +21,6 @@ import {
|
|||||||
SingleRecordResource,
|
SingleRecordResource,
|
||||||
} from '@nocobase/flow-engine';
|
} from '@nocobase/flow-engine';
|
||||||
import { InputRef, Skeleton } from 'antd';
|
import { InputRef, Skeleton } from 'antd';
|
||||||
import data from 'packages/plugins/@nocobase/plugin-calendar/src/client/calendar/demos/data';
|
|
||||||
import React, { createRef } from 'react';
|
import React, { createRef } from 'react';
|
||||||
|
|
||||||
export class QuickEditForm extends FlowModel {
|
export class QuickEditForm extends FlowModel {
|
||||||
|
@ -49,7 +49,7 @@ function LazySelect(props) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const AssociationSelect = connect(
|
const AssociationSelect = connect(
|
||||||
(props: any) => {
|
(props: any) => {
|
||||||
return <LazySelect {...props} />;
|
return <LazySelect {...props} />;
|
||||||
},
|
},
|
||||||
|
@ -28,7 +28,7 @@ function toSafeNumber(value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const InputNumber: ComposedInputNumber = connect((props: AntdInputNumberProps) => {
|
const InputNumber: ComposedInputNumber = connect((props: AntdInputNumberProps) => {
|
||||||
const { onChange, ...others } = props;
|
const { onChange, ...others } = props;
|
||||||
const handleChange = (v) => {
|
const handleChange = (v) => {
|
||||||
if (Number.isNaN(v)) {
|
if (Number.isNaN(v)) {
|
||||||
|
@ -44,7 +44,7 @@ const MarkdownReadPretty = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Markdown: any = connect(
|
const Markdown: any = connect(
|
||||||
Input.TextArea,
|
Input.TextArea,
|
||||||
|
|
||||||
mapReadPretty((props) => <MarkdownReadPretty {...props} />),
|
mapReadPretty((props) => <MarkdownReadPretty {...props} />),
|
||||||
|
@ -13,19 +13,14 @@ import {
|
|||||||
AddActionButton,
|
AddActionButton,
|
||||||
AddFieldButton,
|
AddFieldButton,
|
||||||
CollectionField,
|
CollectionField,
|
||||||
FlowEngineProvider,
|
|
||||||
FlowModel,
|
FlowModel,
|
||||||
FlowModelRenderer,
|
FlowModelRenderer,
|
||||||
FlowsFloatContextMenu,
|
FlowsFloatContextMenu,
|
||||||
MultiRecordResource,
|
MultiRecordResource,
|
||||||
useApplyAutoFlows,
|
|
||||||
useFlowEngine,
|
|
||||||
} from '@nocobase/flow-engine';
|
} from '@nocobase/flow-engine';
|
||||||
import { Button, Card, ConfigProvider, Pagination, Skeleton, Space, theme } from 'antd';
|
import { Button, Card, Pagination, Skeleton, Space } from 'antd';
|
||||||
import _, { delay, head } from 'lodash';
|
import _ from 'lodash';
|
||||||
import collection from 'packages/core/server/src/plugin-manager/options/collection';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM, { createRoot } from 'react-dom/client';
|
|
||||||
import { ColumnDefinition, TabulatorFull as Tabulator } from 'tabulator-tables';
|
import { ColumnDefinition, TabulatorFull as Tabulator } from 'tabulator-tables';
|
||||||
import { ActionModel } from '../../base/ActionModel';
|
import { ActionModel } from '../../base/ActionModel';
|
||||||
import { DataBlockModel } from '../../base/BlockModel';
|
import { DataBlockModel } from '../../base/BlockModel';
|
||||||
|
@ -13,6 +13,7 @@ export enum NocoBaseDesktopRouteType {
|
|||||||
flowRoute = 'flowRoute',
|
flowRoute = 'flowRoute',
|
||||||
link = 'link',
|
link = 'link',
|
||||||
tabs = 'tabs',
|
tabs = 'tabs',
|
||||||
|
flowPage = 'flowPage',
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user