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/Dialog.tsx
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import {Button, SchemaObject} from 'amis';
|
2
|
-
import {RendererConfig} from 'amis/lib/factory';
|
3
1
|
import React from 'react';
|
4
|
-
import {ContainerWrapper} from '../component/ContainerWrapper';
|
5
2
|
import {registerEditorPlugin} from '../manager';
|
6
3
|
import {BasePlugin, RegionConfig, RendererInfo} from '../plugin';
|
7
4
|
import {defaultValue, getSchemaTpl} from '../component/schemaTpl';
|
@@ -71,7 +68,8 @@ export class DialogPlugin extends BasePlugin {
|
|
71
68
|
{
|
72
69
|
type: 'tpl',
|
73
70
|
visibleOn: '!this.data',
|
74
|
-
tpl:
|
71
|
+
tpl:
|
72
|
+
'<p class="text-sm text-muted">当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。</p>'
|
75
73
|
},
|
76
74
|
|
77
75
|
{
|
package/src/plugin/Drawer.tsx
CHANGED
@@ -1,11 +1,7 @@
|
|
1
|
-
import {Button, SchemaObject} from 'amis';
|
2
|
-
import {RendererConfig} from 'amis/lib/factory';
|
3
|
-
import React from 'react';
|
4
|
-
import {ContainerWrapper} from '../component/ContainerWrapper';
|
5
1
|
import {registerEditorPlugin} from '../manager';
|
6
2
|
import {BasePlugin, RegionConfig, RendererInfo} from '../plugin';
|
7
3
|
import {defaultValue, getSchemaTpl} from '../component/schemaTpl';
|
8
|
-
import {
|
4
|
+
import {noop} from '../util';
|
9
5
|
import {InlineModal} from './Dialog';
|
10
6
|
|
11
7
|
export class DrawerPlugin extends BasePlugin {
|
@@ -120,7 +116,8 @@ export class DrawerPlugin extends BasePlugin {
|
|
120
116
|
{
|
121
117
|
type: 'tpl',
|
122
118
|
visibleOn: '!this.data',
|
123
|
-
tpl:
|
119
|
+
tpl:
|
120
|
+
'<p class="text-sm text-muted">当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。</p>'
|
124
121
|
},
|
125
122
|
|
126
123
|
{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {Button
|
1
|
+
import {Button} from 'amis';
|
2
2
|
import React from 'react';
|
3
3
|
import {registerEditorPlugin} from '../manager';
|
4
4
|
import {
|
@@ -6,9 +6,7 @@ import {
|
|
6
6
|
BasePlugin,
|
7
7
|
BasicToolbarItem,
|
8
8
|
ContextMenuEventContext,
|
9
|
-
ContextMenuItem
|
10
|
-
RegionConfig,
|
11
|
-
RendererInfo
|
9
|
+
ContextMenuItem
|
12
10
|
} from '../plugin';
|
13
11
|
import {defaultValue, getSchemaTpl} from '../component/schemaTpl';
|
14
12
|
import {diff} from '../util';
|
package/src/plugin/Each.tsx
CHANGED
@@ -1,17 +1,12 @@
|
|
1
|
-
import {Button
|
1
|
+
import {Button} from 'amis';
|
2
2
|
import React from 'react';
|
3
3
|
import {registerEditorPlugin} from '../manager';
|
4
4
|
import {
|
5
5
|
BaseEventContext,
|
6
6
|
BasePlugin,
|
7
|
-
BasicSubRenderInfo,
|
8
7
|
BasicToolbarItem,
|
9
8
|
ContextMenuEventContext,
|
10
|
-
ContextMenuItem
|
11
|
-
RegionConfig,
|
12
|
-
RendererEventContext,
|
13
|
-
RendererInfo,
|
14
|
-
SubRendererInfo
|
9
|
+
ContextMenuItem
|
15
10
|
} from '../plugin';
|
16
11
|
import {defaultValue, getSchemaTpl} from '../component/schemaTpl';
|
17
12
|
import {diff, JSONPipeOut} from '../util';
|
package/src/plugin/Flex.tsx
CHANGED
@@ -1,20 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* @file Flex 布局
|
3
3
|
*/
|
4
|
-
import {Button, SchemaObject} from 'amis';
|
5
|
-
import React from 'react';
|
6
4
|
import {registerEditorPlugin} from '../manager';
|
7
5
|
import {
|
8
|
-
BaseEventContext,
|
9
6
|
BasePlugin,
|
10
|
-
BasicPanelItem,
|
11
7
|
PluginEvent,
|
12
8
|
RegionConfig,
|
13
|
-
|
14
|
-
RendererJSONSchemaResolveEventContext,
|
15
|
-
VRendererConfig
|
9
|
+
RendererJSONSchemaResolveEventContext
|
16
10
|
} from '../plugin';
|
17
|
-
import {
|
11
|
+
import {getSchemaTpl} from '../component/schemaTpl';
|
18
12
|
import {EditorNodeType} from '../store/node';
|
19
13
|
|
20
14
|
export class FlexPlugin extends BasePlugin {
|
@@ -72,7 +66,8 @@ export class FlexPlugin extends BasePlugin {
|
|
72
66
|
items: [
|
73
67
|
{
|
74
68
|
type: 'tpl',
|
75
|
-
tpl:
|
69
|
+
tpl:
|
70
|
+
'<span class="label label-default">子节点${index | plus}</span>'
|
76
71
|
}
|
77
72
|
]
|
78
73
|
},
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {Button, SchemaObject} from 'amis';
|
2
|
-
import flatten from 'lodash/flatten';
|
3
|
-
import React from 'react';
|
4
|
-
import {ContainerWrapper} from '../../component/ContainerWrapper';
|
5
1
|
import {registerEditorPlugin} from '../../manager';
|
6
|
-
import {
|
7
|
-
|
8
|
-
BasicSubRenderInfo,
|
9
|
-
RegionConfig,
|
10
|
-
RendererEventContext,
|
11
|
-
SubRendererInfo
|
12
|
-
} from '../../plugin';
|
13
|
-
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
14
|
-
import {makeHorizontalDeeper} from '../../util';
|
2
|
+
import {BasePlugin} from '../../plugin';
|
3
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
15
4
|
|
16
5
|
export class ButtonGroupControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {Button, SchemaObject} from 'amis';
|
2
|
-
import flatten from 'lodash/flatten';
|
3
|
-
import React from 'react';
|
4
|
-
import {ContainerWrapper} from '../../component/ContainerWrapper';
|
5
1
|
import {registerEditorPlugin} from '../../manager';
|
6
|
-
import {
|
7
|
-
|
8
|
-
BasicSubRenderInfo,
|
9
|
-
RegionConfig,
|
10
|
-
RendererEventContext,
|
11
|
-
SubRendererInfo
|
12
|
-
} from '../../plugin';
|
13
|
-
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
14
|
-
import {makeHorizontalDeeper} from '../../util';
|
2
|
+
import {BasePlugin, RegionConfig} from '../../plugin';
|
3
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
15
4
|
|
16
5
|
export class ButtonToolbarControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,17 +1,7 @@
|
|
1
|
-
import {relativeValueRe} from 'amis';
|
2
1
|
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
2
|
+
import {defaultValue} from '../../component/schemaTpl';
|
8
3
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
4
|
+
import {BasePlugin} from '../../plugin';
|
15
5
|
|
16
6
|
export class CodeEditorControlPlugin extends BasePlugin {
|
17
7
|
// 关联渲染器名字
|
@@ -19,7 +19,7 @@ import React from 'react';
|
|
19
19
|
import {diff, JSONPipeIn} from '../../../src/util';
|
20
20
|
import {JSONPipeOut} from '../../util';
|
21
21
|
import {mockValue} from '../../mocker';
|
22
|
-
import {setVariable} from 'amis
|
22
|
+
import {setVariable} from 'amis-core';
|
23
23
|
|
24
24
|
export class ComboControlPlugin extends BasePlugin {
|
25
25
|
// 关联渲染器名字
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import {Button} from 'amis';
|
2
1
|
import {registerEditorPlugin} from '../../manager';
|
3
2
|
import {
|
4
3
|
BaseEventContext,
|
@@ -9,20 +8,12 @@ import {
|
|
9
8
|
ScaffoldForm,
|
10
9
|
SubRendererInfo
|
11
10
|
} from '../../plugin';
|
12
|
-
import {
|
13
|
-
|
14
|
-
|
15
|
-
valuePipeOut
|
16
|
-
} from '../../component/schemaTpl';
|
17
|
-
import React from 'react';
|
18
|
-
import {diff, JSONPipeIn} from '../../../src/util';
|
19
|
-
import {JSONPipeOut} from '../../util';
|
20
|
-
import {mockValue} from '../../mocker';
|
21
|
-
import {setVariable} from 'amis/lib/utils/helper';
|
11
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
12
|
+
|
13
|
+
import {isObject, isString} from 'lodash';
|
22
14
|
import defaultConfig, {
|
23
15
|
OperationMap
|
24
|
-
} from 'amis/lib/components/condition-builder/config';
|
25
|
-
import {isObject, isString} from 'lodash';
|
16
|
+
} from 'amis-ui/lib/components/condition-builder/config';
|
26
17
|
|
27
18
|
export class ConditionBilderPlugin extends BasePlugin {
|
28
19
|
// 关联渲染器名字
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import {relativeValueRe} from 'amis';
|
2
1
|
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
2
|
import {
|
4
3
|
defaultValue,
|
@@ -6,12 +5,7 @@ import {
|
|
6
5
|
valuePipeOut
|
7
6
|
} from '../../component/schemaTpl';
|
8
7
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
8
|
+
import {BasePlugin} from '../../plugin';
|
15
9
|
|
16
10
|
export class DiffEditorControlPlugin extends BasePlugin {
|
17
11
|
// 关联渲染器名字
|
@@ -1,20 +1,8 @@
|
|
1
|
-
import {Button
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
1
|
+
import {Button} from 'amis';
|
3
2
|
import React from 'react';
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
3
|
+
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
9
4
|
import {registerEditorPlugin} from '../../manager';
|
10
|
-
import {
|
11
|
-
BaseEventContext,
|
12
|
-
BasePlugin,
|
13
|
-
BasicSubRenderInfo,
|
14
|
-
RegionConfig,
|
15
|
-
RendererEventContext,
|
16
|
-
SubRendererInfo
|
17
|
-
} from '../../plugin';
|
5
|
+
import {BaseEventContext, BasePlugin, RegionConfig} from '../../plugin';
|
18
6
|
|
19
7
|
export class FieldSetControlPlugin extends BasePlugin {
|
20
8
|
// 关联渲染器名字
|
package/src/plugin/Form/Form.tsx
CHANGED
@@ -1,11 +1,6 @@
|
|
1
|
-
import {SchemaObject} from 'amis';
|
2
|
-
import {RendererConfig} from 'amis/lib/factory';
|
3
|
-
import flatten from 'lodash/flatten';
|
4
|
-
import {ContainerWrapper} from '../../component/ContainerWrapper';
|
5
1
|
import {registerEditorPlugin} from '../../manager';
|
6
2
|
import {
|
7
3
|
BasePlugin,
|
8
|
-
BasicRendererInfo,
|
9
4
|
ChangeEventContext,
|
10
5
|
BaseEventContext,
|
11
6
|
PluginEvent,
|
@@ -13,7 +8,7 @@ import {
|
|
13
8
|
ScaffoldForm
|
14
9
|
} from '../../plugin';
|
15
10
|
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
16
|
-
import {setVariable} from 'amis
|
11
|
+
import {setVariable} from 'amis-core';
|
17
12
|
|
18
13
|
// 用于脚手架的常用表单控件
|
19
14
|
const formItemOptions = [
|
@@ -1,18 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import React from 'react';
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {defaultValue} from '../../component/schemaTpl';
|
9
2
|
import {registerEditorPlugin} from '../../manager';
|
10
|
-
import {
|
11
|
-
BasePlugin,
|
12
|
-
BasicSubRenderInfo,
|
13
|
-
RendererEventContext,
|
14
|
-
SubRendererInfo
|
15
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
16
4
|
|
17
5
|
export class FormulaControlPlugin extends BasePlugin {
|
18
6
|
// 关联渲染器名字
|
@@ -1,16 +1,11 @@
|
|
1
|
-
import {Button
|
2
|
-
import flatten from 'lodash/flatten';
|
1
|
+
import {Button} from 'amis';
|
3
2
|
import React from 'react';
|
4
|
-
import {ContainerWrapper} from '../../component/ContainerWrapper';
|
5
3
|
import {registerEditorPlugin} from '../../manager';
|
6
4
|
import {
|
7
5
|
BasePlugin,
|
8
|
-
BasicSubRenderInfo,
|
9
6
|
ContextMenuEventContext,
|
10
7
|
ContextMenuItem,
|
11
|
-
RegionConfig
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
8
|
+
RegionConfig
|
14
9
|
} from '../../plugin';
|
15
10
|
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
16
11
|
import {JSONPipeIn, JSONUpdate, makeHorizontalDeeper} from '../../util';
|
@@ -1,18 +1,6 @@
|
|
1
|
-
import {relativeValueRe} from 'amis';
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
1
|
import React from 'react';
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
9
2
|
import {registerEditorPlugin} from '../../manager';
|
10
|
-
import {
|
11
|
-
BasePlugin,
|
12
|
-
BasicSubRenderInfo,
|
13
|
-
RendererEventContext,
|
14
|
-
SubRendererInfo
|
15
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
16
4
|
|
17
5
|
export class HiddenControlPlugin extends BasePlugin {
|
18
6
|
// 关联渲染器名字
|
@@ -1,17 +1,10 @@
|
|
1
|
-
import {relativeValueRe} from 'amis';
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
1
|
import {
|
4
2
|
defaultValue,
|
5
3
|
getSchemaTpl,
|
6
4
|
valuePipeOut
|
7
5
|
} from '../../component/schemaTpl';
|
8
6
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
7
|
+
import {BasePlugin} from '../../plugin';
|
15
8
|
|
16
9
|
export class FileControlPlugin extends BasePlugin {
|
17
10
|
// 关联渲染器名字
|
@@ -1,18 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import {Button} from 'amis';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
3
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
9
4
|
import {registerEditorPlugin} from '../../manager';
|
10
|
-
import {
|
11
|
-
BasePlugin,
|
12
|
-
BasicSubRenderInfo,
|
13
|
-
RendererEventContext,
|
14
|
-
SubRendererInfo
|
15
|
-
} from '../../plugin';
|
5
|
+
import {BasePlugin} from '../../plugin';
|
16
6
|
|
17
7
|
export class InputGroupControlPlugin extends BasePlugin {
|
18
8
|
// 关联渲染器名字
|
@@ -73,7 +63,8 @@ export class InputGroupControlPlugin extends BasePlugin {
|
|
73
63
|
type: 'tpl',
|
74
64
|
inline: false,
|
75
65
|
className: 'p-t-xs',
|
76
|
-
tpl:
|
66
|
+
tpl:
|
67
|
+
'<%= data.label %><% if (data.icon) { %><i class="<%= data.icon %>"/><% }%>'
|
77
68
|
}
|
78
69
|
]
|
79
70
|
},
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {getSchemaTpl, valuePipeOut} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class ImageControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,14 +1,6 @@
|
|
1
|
-
import {SchemaObject} from 'amis';
|
2
|
-
import flatten from 'lodash/flatten';
|
3
|
-
import {ContainerWrapper} from '../../component/ContainerWrapper';
|
4
1
|
import {registerEditorPlugin} from '../../manager';
|
5
|
-
import {
|
6
|
-
|
7
|
-
BasicSubRenderInfo,
|
8
|
-
RendererEventContext,
|
9
|
-
SubRendererInfo
|
10
|
-
} from '../../plugin';
|
11
|
-
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
2
|
+
import {BasePlugin} from '../../plugin';
|
3
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
12
4
|
|
13
5
|
export class NumberControlPlugin extends BasePlugin {
|
14
6
|
// 关联渲染器名字
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class RepeatControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -56,10 +45,9 @@ export class RepeatControlPlugin extends BasePlugin {
|
|
56
45
|
name: 'options',
|
57
46
|
type: 'select',
|
58
47
|
label: '启用单位',
|
59
|
-
options:
|
60
|
-
'
|
61
|
-
|
62
|
-
),
|
48
|
+
options: 'secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly'.split(
|
49
|
+
','
|
50
|
+
),
|
63
51
|
value: 'hourly,daily,weekly,monthly',
|
64
52
|
multiple: true
|
65
53
|
}
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class RichTextControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,21 +1,12 @@
|
|
1
|
-
import {Button
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
1
|
+
import {Button} from 'amis';
|
3
2
|
import React from 'react';
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
9
3
|
import {registerEditorPlugin} from '../../manager';
|
10
4
|
import {
|
11
5
|
BaseEventContext,
|
12
6
|
BasePlugin,
|
13
|
-
BasicSubRenderInfo,
|
14
7
|
BasicToolbarItem,
|
15
8
|
ContextMenuEventContext,
|
16
|
-
ContextMenuItem
|
17
|
-
RendererEventContext,
|
18
|
-
SubRendererInfo
|
9
|
+
ContextMenuItem
|
19
10
|
} from '../../plugin';
|
20
11
|
import {diff, JSONPipeOut} from '../../util';
|
21
12
|
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class TagControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,17 +1,7 @@
|
|
1
1
|
import {relativeValueRe} from 'amis';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
2
|
+
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
8
3
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
4
|
+
import {BasePlugin} from '../../plugin';
|
15
5
|
|
16
6
|
export class TimeControlPlugin extends BasePlugin {
|
17
7
|
// 关联渲染器名字
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class TreeControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class ListControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|
@@ -1,18 +1,5 @@
|
|
1
|
-
import {relativeValueRe} from 'amis';
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import React from 'react';
|
4
|
-
import {
|
5
|
-
defaultValue,
|
6
|
-
getSchemaTpl,
|
7
|
-
valuePipeOut
|
8
|
-
} from '../../component/schemaTpl';
|
9
1
|
import {registerEditorPlugin} from '../../manager';
|
10
|
-
import {
|
11
|
-
BasePlugin,
|
12
|
-
BasicSubRenderInfo,
|
13
|
-
RendererEventContext,
|
14
|
-
SubRendererInfo
|
15
|
-
} from '../../plugin';
|
2
|
+
import {BasePlugin} from '../../plugin';
|
16
3
|
|
17
4
|
export class LocationControlPlugin extends BasePlugin {
|
18
5
|
// 关联渲染器名字
|
@@ -1,17 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {availableLanguages} from 'amis/lib/renderers/Form/Editor';
|
3
|
-
import {
|
4
|
-
defaultValue,
|
5
|
-
getSchemaTpl,
|
6
|
-
valuePipeOut
|
7
|
-
} from '../../component/schemaTpl';
|
1
|
+
import {defaultValue, getSchemaTpl} from '../../component/schemaTpl';
|
8
2
|
import {registerEditorPlugin} from '../../manager';
|
9
|
-
import {
|
10
|
-
BasePlugin,
|
11
|
-
BasicSubRenderInfo,
|
12
|
-
RendererEventContext,
|
13
|
-
SubRendererInfo
|
14
|
-
} from '../../plugin';
|
3
|
+
import {BasePlugin} from '../../plugin';
|
15
4
|
|
16
5
|
export class MatrixControlPlugin extends BasePlugin {
|
17
6
|
// 关联渲染器名字
|