chore: refactor code-mirror (#1196)
Reviewed-on: daoyoucloud/tachybase#1196
This commit is contained in:
parent
04b715e53d
commit
dffa8b1d4f
@ -89,7 +89,7 @@ export const CodeMirror = connect(({ value, onChange, ...otherProps }) => {
|
||||
override: [completionSource],
|
||||
}),
|
||||
]}
|
||||
height="200"
|
||||
height="300px"
|
||||
></CM>
|
||||
);
|
||||
});
|
||||
|
@ -67,7 +67,7 @@ export class ShowFieldCodeInterface extends CollectionFieldInterface {
|
||||
type: 'string',
|
||||
title: 'JSCode',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Input.TextArea',
|
||||
'x-component': 'CodeMirror',
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
|
@ -13,6 +13,7 @@ import {
|
||||
Expression,
|
||||
SignatureInput,
|
||||
} from './components';
|
||||
import { CodeMirror } from './components/code-mirror';
|
||||
import { PluginAssistant } from './features/assistant';
|
||||
import { PluginGroupBlock } from './features/block-group';
|
||||
import { PluginContextMenu } from './features/context-menu';
|
||||
@ -143,6 +144,7 @@ export class PluginCoreClient extends Plugin {
|
||||
AssociatedField,
|
||||
AutoComplete,
|
||||
CalcResult,
|
||||
CodeMirror,
|
||||
CreateSubmitActionInitializer,
|
||||
CustomAssociatedField,
|
||||
CustomComponentDispatcher,
|
||||
|
Loading…
Reference in New Issue
Block a user