publish @fex/amis-editor@5.2.0-beta.44

Change-Id: I1a2fb48880a817a7981ce21143828608db44c2f7
This commit is contained in:
hsm-lv 2022-08-12 18:36:17 +08:00
parent 39c35e98a8
commit 764299b33d
13 changed files with 13 additions and 32 deletions

View File

@ -1,6 +1,6 @@
{
"name": "amis-editor",
"version": "5.2.0-beta.40",
"version": "5.2.0-beta.44",
"description": "amis 可视化编辑器",
"main": "lib/index.js",
"module": "esm/index.js",

View File

@ -4,7 +4,7 @@
import flatten from 'lodash/flatten';
import {getEventControlConfig} from '../renderer/event-control/helper';
import {getSchemaTpl, isObject} from 'amis-editor-core';
import {getSchemaTpl, isObject, tipedLabel} from 'amis-editor-core';
import type {BaseEventContext} from 'amis-editor-core';
import {SchemaObject} from 'amis/lib/Schema';
@ -370,25 +370,6 @@ export const formItemControl: (
];
};
export function tipedLabel(
body: string | Array<SchemaObject>,
tip: string,
style?: React.CSSProperties
) {
return {
type: 'tooltip-wrapper',
tooltip: tip,
tooltipTheme: 'dark',
placement: 'top',
tooltipStyle: {
fontSize: '12px',
...(style || {})
},
className: 'ae-formItemControl-label-tip',
body
};
}
/**
*
*/

View File

@ -10,7 +10,7 @@ import {
} from 'amis-editor-core';
import {cloneDeep, assign} from 'lodash';
import {getEventControlConfig} from '../renderer/event-control/helper';
import {tipedLabel} from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
export class DialogPlugin extends BasePlugin {
// 关联渲染器名字

View File

@ -11,7 +11,7 @@ import {
import {assign, cloneDeep} from 'lodash';
import {getEventControlConfig} from '../renderer/event-control/helper';
import {InlineModal} from './Dialog';
import {tipedLabel} from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
export class DrawerPlugin extends BasePlugin {
// 关联渲染器名字

View File

@ -7,7 +7,7 @@ import {
BaseEventContext,
registerEditorPlugin
} from 'amis-editor-core';
import {tipedLabel} from '../../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {getEventControlConfig} from '../../renderer/event-control/helper';
import {ValidatorTag} from '../../validator';

View File

@ -7,7 +7,7 @@ import {
getArgsWrapper,
getEventControlConfig
} from '../../renderer/event-control/helper';
import {tipedLabel} from '../../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {ValidatorTag} from '../../validator';
export class TreeControlPlugin extends BasePlugin {

View File

@ -2,7 +2,7 @@ import {getSchemaTpl} from 'amis-editor-core';
import {registerEditorPlugin} from 'amis-editor-core';
import {BasePlugin, BaseEventContext} from 'amis-editor-core';
import {tipedLabel} from '../../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {ValidatorTag} from '../../validator';
import {getEventControlConfig} from '../../renderer/event-control/helper';
import {RendererPluginAction, RendererPluginEvent} from 'amis-editor-core';

View File

@ -5,7 +5,7 @@ import {getEventControlConfig} from '../../renderer/event-control/helper';
import {RendererPluginAction, RendererPluginEvent} from 'amis-editor-core';
import {ValidatorTag} from '../../validator';
import {tipedLabel} from '../../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
export class TransferPlugin extends BasePlugin {
// 关联渲染器名字

View File

@ -4,7 +4,7 @@ import {registerEditorPlugin} from 'amis-editor-core';
import {BaseEventContext, BasePlugin} from 'amis-editor-core';
import {getEventControlConfig} from '../../renderer/event-control/helper';
import {ValidatorTag} from '../../validator';
import {tipedLabel} from '../../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
export class TreeSelectControlPlugin extends BasePlugin {
// 关联渲染器名字

View File

@ -9,7 +9,7 @@ import {
import {getEventControlConfig} from '../renderer/event-control/helper';
import {RendererPluginAction, RendererPluginEvent} from 'amis-editor-core';
import type {SchemaObject} from 'amis/lib/Schema';
import {tipedLabel} from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {jsonToJsonSchema, EditorNodeType} from 'amis-editor-core';
export class PagePlugin extends BasePlugin {

View File

@ -1,6 +1,6 @@
import React from 'react';
import {getEventControlConfig} from '../renderer/event-control/helper';
import {tipedLabel} from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {
registerEditorPlugin,
getSchemaTpl

View File

@ -7,7 +7,7 @@ import cx from 'classnames';
import uniqBy from 'lodash/uniqBy';
import Sortable from 'sortablejs';
import {render as amisRender, FormItem, Icon, InputBox} from 'amis';
import {tipedLabel} from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import {autobind} from 'amis-editor-core';
import {getSchemaTpl} from 'amis-editor-core';
import type {FormControlProps} from 'amis-core';

View File

@ -8,7 +8,7 @@ import { omit } from 'lodash';
import { SchemaApi } from 'amis/lib/Schema';
import { autobind, getSchemaTpl } from 'amis-editor-core';
import cx from 'classnames';
import { tipedLabel } from '../component/BaseControl';
import {tipedLabel} from 'amis-editor-core';
import type { FormControlProps } from 'amis-core';
import type { Option } from 'amis';