Remove workflow code editor dependency
This commit is contained in:
@@ -130,11 +130,6 @@ const ZqIconPicker = defineAsyncComponent(() =>
|
||||
(res) => res.default,
|
||||
),
|
||||
);
|
||||
const CodeEditor = defineAsyncComponent(() =>
|
||||
import('#/components/zq-form/code-editor/code-editor.vue').then(
|
||||
(res) => res.default,
|
||||
),
|
||||
);
|
||||
|
||||
const withDefaultPlaceholder = <T extends Component>(
|
||||
component: T,
|
||||
@@ -275,7 +270,10 @@ function initComponentAdapter() {
|
||||
ImageSelector: withDefaultPlaceholder(ImageSelector, 'select'),
|
||||
Input: withDefaultPlaceholder(ElInput, 'input'),
|
||||
Textarea: withDefaultPlaceholder(ElInput, 'input', { type: 'textarea' }),
|
||||
CodeEditor,
|
||||
CodeEditor: withDefaultPlaceholder(ElInput, 'input', {
|
||||
autosize: { minRows: 8 },
|
||||
type: 'textarea',
|
||||
}),
|
||||
InputNumber: withDefaultPlaceholder(ElInputNumber, 'input'),
|
||||
RadioGroup: (props, { attrs, slots }) => {
|
||||
let defaultSlot;
|
||||
@@ -355,7 +353,7 @@ function initComponentAdapter() {
|
||||
// 定义全局共享状态中的消息提示
|
||||
globalShareState.defineMessage({
|
||||
// 复制成功消息提示
|
||||
copyPreferencesSuccess: (title, content) => {
|
||||
copyPreferencesSuccess: (title: string, content: string) => {
|
||||
void import('element-plus/es/components/notification/index').then(
|
||||
({ ElNotification }) => {
|
||||
ElNotification({
|
||||
|
||||
Reference in New Issue
Block a user