amis-editor 4.1.0-beta.27 → 4.2.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/component/ClassNameControl.d.ts +1 -1
- package/dist/component/Control/APIControl.d.ts +2 -2
- package/dist/component/Control/OptionControl.d.ts +3 -3
- package/dist/component/Control/PopoverEdit.d.ts +4 -4
- package/dist/component/Control/ValidationControl.d.ts +1 -1
- package/dist/component/Editor.d.ts +1 -1
- package/dist/component/IFramePreview.d.ts +2 -1
- package/dist/component/NodeWrapper.d.ts +1 -1
- package/dist/component/Preview.d.ts +3 -1
- package/dist/component/ScaffoldModal.d.ts +1 -1
- package/dist/component/base/InputComponentName.d.ts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/exports.min.js +1 -1
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +6 -24
- package/dist/plugin/Alert.d.ts +1 -1
- package/dist/plugin/Button.d.ts +1 -1
- package/dist/plugin/Dialog.d.ts +1 -1
- package/dist/plugin/Drawer.d.ts +1 -1
- package/dist/plugin/Form/Formula.d.ts +3 -3
- package/dist/plugin/IFrame.d.ts +3 -3
- package/dist/plugin/Page.d.ts +1 -1
- package/dist/plugin/Table.d.ts +1 -1
- package/dist/plugin.d.ts +3 -3
- package/dist/store/editor.d.ts +38 -20
- package/dist/util.d.ts +1 -1
- package/package.json +5 -2
- package/src/plugin/Alert.tsx +1 -1
- package/src/plugin/AnchorNav.tsx +1 -1
- package/src/plugin/Audio.tsx +1 -8
- package/src/plugin/Button.tsx +2 -4
- package/src/plugin/ButtonGroup.tsx +3 -6
- package/src/plugin/ButtonToolbar.tsx +4 -6
- package/src/plugin/CRUD.tsx +4 -4
- package/src/plugin/Card.tsx +1 -1
- package/src/plugin/Cards.tsx +1 -1
- package/src/plugin/Carousel.tsx +3 -12
- package/src/plugin/Chart.tsx +1 -1
- package/src/plugin/Collapse.tsx +1 -8
- package/src/plugin/Container.tsx +2 -6
- package/src/plugin/Date.tsx +1 -8
- package/src/plugin/Datetime.tsx +1 -8
- package/src/plugin/Dialog.tsx +2 -4
- package/src/plugin/Drawer.tsx +3 -6
- package/src/plugin/DropDownButton.tsx +2 -4
- package/src/plugin/Each.tsx +2 -7
- package/src/plugin/Flex.tsx +4 -9
- package/src/plugin/Form/ButtonGroupSelect.tsx +2 -13
- package/src/plugin/Form/ButtonToolbar.tsx +2 -13
- package/src/plugin/Form/CodeEditor.tsx +2 -12
- package/src/plugin/Form/Combo.tsx +1 -1
- package/src/plugin/Form/ConditionBuilder.tsx +4 -13
- package/src/plugin/Form/DiffEditor.tsx +1 -7
- package/src/plugin/Form/FieldSet.tsx +3 -15
- package/src/plugin/Form/Form.tsx +1 -6
- package/src/plugin/Form/Formula.tsx +2 -14
- package/src/plugin/Form/Group.tsx +2 -7
- package/src/plugin/Form/Hidden.tsx +1 -13
- package/src/plugin/Form/InputFile.tsx +1 -8
- package/src/plugin/Form/InputGroup.tsx +4 -13
- package/src/plugin/Form/InputImage.tsx +2 -13
- package/src/plugin/Form/InputNumber.tsx +2 -10
- package/src/plugin/Form/InputRepeat.tsx +5 -17
- package/src/plugin/Form/InputRichText.tsx +2 -13
- package/src/plugin/Form/InputSubForm.tsx +2 -11
- package/src/plugin/Form/InputTable.tsx +1 -1
- package/src/plugin/Form/InputTag.tsx +2 -13
- package/src/plugin/Form/InputTime.tsx +2 -12
- package/src/plugin/Form/InputTree.tsx +2 -13
- package/src/plugin/Form/ListSelect.tsx +2 -13
- package/src/plugin/Form/LocationPicker.tsx +1 -14
- package/src/plugin/Form/MatrixCheckboxes.tsx +2 -13
- package/src/plugin/Form/NestedSelect.tsx +2 -13
- package/src/plugin/Form/Picker.tsx +2 -10
- package/src/plugin/Form/Radios.tsx +2 -13
- package/src/plugin/Form/Static.tsx +2 -15
- package/src/plugin/Form/Switch.tsx +2 -13
- package/src/plugin/Form/TabsTransfer.tsx +2 -13
- package/src/plugin/Form/Textarea.tsx +2 -13
- package/src/plugin/Form/Transfer.tsx +2 -13
- package/src/plugin/Grid.tsx +1 -2
- package/src/plugin/IFrame.tsx +1 -3
- package/src/plugin/Image.tsx +0 -4
- package/src/plugin/Images.tsx +1 -8
- package/src/plugin/Json.tsx +1 -8
- package/src/plugin/Link.tsx +2 -4
- package/src/plugin/List.tsx +1 -4
- package/src/plugin/ListItem.tsx +0 -4
- package/src/plugin/Mapping.tsx +1 -8
- package/src/plugin/Nav.tsx +2 -4
- package/src/plugin/Operation.tsx +2 -4
- package/src/plugin/Others/Action.tsx +2 -4
- package/src/plugin/Others/BasicToolbar.tsx +2 -8
- package/src/plugin/Others/TableCell.tsx +1 -1
- package/src/plugin/Page.tsx +1 -3
- package/src/plugin/Panel.tsx +1 -1
- package/src/plugin/Plain.tsx +1 -8
- package/src/plugin/Progress.tsx +1 -8
- package/src/plugin/QRCode.tsx +1 -3
- package/src/plugin/Service.tsx +3 -8
- package/src/plugin/Status.tsx +1 -3
- package/src/plugin/Steps.tsx +2 -14
- package/src/plugin/Table.tsx +4 -16
- package/src/plugin/TableView.tsx +2 -4
- package/src/plugin/Tabs.tsx +0 -2
- package/src/plugin/Tasks.tsx +1 -3
- package/src/plugin/Time.tsx +1 -8
- package/src/plugin/Tpl.tsx +1 -5
- package/src/plugin/Video.tsx +2 -4
- package/src/plugin/WebComponent.tsx +1 -4
- package/src/plugin/Wizard.tsx +1 -4
- package/src/plugin/Wrapper.tsx +1 -1
- package/src/plugin.ts +5 -4
package/src/plugin/Wizard.tsx
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
import {SchemaObject} from 'amis';
|
2
|
-
import {RendererConfig} from 'amis/lib/factory';
|
3
1
|
import {registerEditorPlugin} from '../manager';
|
4
2
|
import {
|
5
3
|
BaseEventContext,
|
6
4
|
BasePlugin,
|
7
5
|
BasicToolbarItem,
|
8
|
-
RegionConfig,
|
9
6
|
RendererInfo,
|
10
7
|
VRendererConfig
|
11
8
|
} from '../plugin';
|
@@ -37,7 +34,7 @@ export class WizardPlugin extends BasePlugin {
|
|
37
34
|
{
|
38
35
|
type: 'input-text',
|
39
36
|
label: '文本',
|
40
|
-
name: 'var1'
|
37
|
+
name: 'var1'
|
41
38
|
}
|
42
39
|
]
|
43
40
|
},
|
package/src/plugin/Wrapper.tsx
CHANGED
package/src/plugin.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @file 定义插件的 interface,以及提供一个 BasePlugin 基类,把一些通用的方法放在这。
|
3
3
|
*/
|
4
|
-
|
5
|
-
import {MenuDivider, MenuItem} from 'amis/lib/components/ContextMenu';
|
6
|
-
import {RendererConfig} from 'amis/lib/factory';
|
4
|
+
|
7
5
|
import {RegionWrapperProps} from './component/RegionWrapper';
|
8
6
|
import {EditorManager} from './manager';
|
9
7
|
import {EditorStoreType} from './store/editor';
|
@@ -13,6 +11,9 @@ import {EditorDNDManager} from './dnd';
|
|
13
11
|
import React from 'react';
|
14
12
|
import {DiffChange} from './util';
|
15
13
|
import find from 'lodash/find';
|
14
|
+
import type {RendererConfig} from 'amis-core/lib/factory';
|
15
|
+
import type {MenuDivider, MenuItem} from 'amis-ui/lib/components/ContextMenu';
|
16
|
+
import type {BaseSchema} from 'amis/lib/Schema';
|
16
17
|
|
17
18
|
/**
|
18
19
|
* 区域的定义,容器渲染器都需要定义区域信息。
|
@@ -412,7 +413,7 @@ export interface PanelItem {
|
|
412
413
|
component?: React.ComponentType<PanelProps | any>;
|
413
414
|
order: number;
|
414
415
|
position?: 'left' | 'right';
|
415
|
-
render?:(props: PanelProps) => JSX.Element;
|
416
|
+
render?: (props: PanelProps) => JSX.Element;
|
416
417
|
menus?: Array<any>;
|
417
418
|
}
|
418
419
|
|