mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore(amis-editor): 调整部分 ts 逻辑
This commit is contained in:
parent
73550fc71b
commit
a42bba351d
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis-editor-core",
|
||||
"version": "5.2.5-alpha.12",
|
||||
"version": "5.2.5-alpha.16",
|
||||
"description": "amis 可视化编辑器",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
@ -2,7 +2,7 @@
|
||||
* API数据源处理器
|
||||
*/
|
||||
|
||||
import {Schema, toast} from 'amis';
|
||||
import {toast} from 'amis';
|
||||
import {
|
||||
DSBuilder,
|
||||
DSFeature,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {FormItem, utils, Button, Overlay, PopOver, RendererProps} from 'amis';
|
||||
import React from 'react';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import {findDOMNode} from 'react-dom';
|
||||
|
||||
interface ClassNameControlProps extends RendererProps {
|
||||
|
@ -2,7 +2,7 @@ import {NodeWrapper, NodeWrapperProps} from './NodeWrapper';
|
||||
import React from 'react';
|
||||
import {observer} from 'mobx-react';
|
||||
import {autobind} from '../util';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import find from 'lodash/find';
|
||||
import {RegionWrapper} from './RegionWrapper';
|
||||
|
||||
|
@ -4,7 +4,7 @@ import {EditorStoreType} from '../store/editor';
|
||||
import {render, toast, resolveRenderer, resizeSensor} from 'amis';
|
||||
import {autobind} from '../util';
|
||||
import {RendererConfig, RenderOptions} from 'amis-core';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import {ErrorRenderer} from './base/ErrorRenderer';
|
||||
import cx from 'classnames';
|
||||
import {findDOMNode} from 'react-dom';
|
||||
|
@ -3,7 +3,7 @@ import React, {Component} from 'react';
|
||||
import cx from 'classnames';
|
||||
import {autobind, guid, noop, reactionWithOldValue} from '../util';
|
||||
import {clearStoresCache, RenderOptions} from 'amis-core';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import {EditorStoreType} from '../store/editor';
|
||||
import {observer} from 'mobx-react';
|
||||
import {findDOMNode} from 'react-dom';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import {LazyComponent, Schema} from 'amis-core';
|
||||
import type {Schema} from 'amis-core';
|
||||
import {LazyComponent} from 'amis-core';
|
||||
import React from 'react';
|
||||
import {resizeSensor, render, Icon} from 'amis';
|
||||
|
||||
|
@ -16,7 +16,7 @@ import {render as reactRender, unmountComponentAtNode} from 'react-dom';
|
||||
import {autobind, diff} from '../util';
|
||||
import {createObject} from 'amis-core';
|
||||
import {CommonConfigWrapper} from './CommonConfigWrapper';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import type {DataScope} from 'amis-core';
|
||||
import type {RendererConfig} from 'amis-core/lib/factory';
|
||||
import {SchemaCollection} from 'amis/lib/Schema';
|
||||
|
@ -42,7 +42,7 @@ import {
|
||||
JSONPipeOut,
|
||||
JSONUpdate
|
||||
} from '../util';
|
||||
import {Schema} from 'amis';
|
||||
import type {Schema} from 'amis';
|
||||
import {toast, resolveVariable} from 'amis';
|
||||
import find from 'lodash/find';
|
||||
import {InsertSubRendererPanel} from '../component/Panel/InsertSubRendererPanel';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis-editor",
|
||||
"version": "5.2.5-alpha.12",
|
||||
"version": "5.2.5-alpha.16",
|
||||
"description": "amis 可视化编辑器",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
@ -12,9 +12,9 @@ import {
|
||||
AfterBuildPanelBody,
|
||||
defaultValue,
|
||||
getSchemaTpl,
|
||||
tipedLabel,
|
||||
DSField
|
||||
tipedLabel
|
||||
} from 'amis-editor-core';
|
||||
import type {DSField} from 'amis-editor-core';
|
||||
import {fromPairs} from 'lodash';
|
||||
import {TabsSchema} from 'amis/lib/renderers/Tabs';
|
||||
import {SchemaObject} from 'amis/lib/Schema';
|
||||
|
@ -18,13 +18,8 @@ import {
|
||||
} from 'amis-core';
|
||||
import {debounce, remove} from 'lodash';
|
||||
import React from 'react';
|
||||
import {
|
||||
EditorManager,
|
||||
EditorNodeType,
|
||||
autobind,
|
||||
DSField,
|
||||
DSFieldGroup
|
||||
} from 'amis-editor-core';
|
||||
import {EditorManager, EditorNodeType, autobind} from 'amis-editor-core';
|
||||
import type {DSField, DSFieldGroup} from 'amis-editor-core';
|
||||
import {matchSorter} from 'match-sorter';
|
||||
import {SchemaCollection} from 'amis/lib/Schema';
|
||||
import {default as cx} from 'classnames';
|
||||
|
@ -4,9 +4,9 @@ import {
|
||||
defaultValue,
|
||||
isObject,
|
||||
tipedLabel,
|
||||
DSField,
|
||||
EditorManager
|
||||
} from 'amis-editor-core';
|
||||
import type {DSField} from 'amis-editor-core';
|
||||
import {SchemaObject} from 'amis/lib/Schema';
|
||||
import flatten from 'lodash/flatten';
|
||||
import _ from 'lodash';
|
||||
|
Loading…
Reference in New Issue
Block a user