mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
publish @fex/amis-editor@5.2.0-beta.44
Change-Id: I1a2fb48880a817a7981ce21143828608db44c2f7
This commit is contained in:
parent
39c35e98a8
commit
764299b33d
@ -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",
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 信息提示组件模版
|
||||
*/
|
||||
|
@ -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 {
|
||||
// 关联渲染器名字
|
||||
|
@ -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 {
|
||||
// 关联渲染器名字
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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';
|
||||
|
@ -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 {
|
||||
// 关联渲染器名字
|
||||
|
@ -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 {
|
||||
// 关联渲染器名字
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user