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