amis-core 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/Root.js +1 -1
- package/esm/RootRenderer.d.ts +1 -1
- package/esm/RootRenderer.js +3 -3
- package/esm/SchemaRenderer.js +5 -2
- package/esm/Scoped.d.ts +4 -1
- package/esm/Scoped.js +8 -5
- package/esm/StatusScoped.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/actions/Action.d.ts +1 -0
- package/esm/actions/Action.js +62 -37
- package/esm/actions/AjaxAction.d.ts +6 -8
- package/esm/actions/AjaxAction.js +20 -18
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.d.ts +1 -2
- package/esm/actions/CmptAction.js +46 -31
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +2 -2
- package/esm/actions/DialogAction.js +5 -6
- package/esm/actions/DrawerAction.js +4 -4
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/LinkAction.js +1 -1
- package/esm/actions/LoopAction.js +1 -1
- package/esm/actions/PageAction.js +1 -1
- package/esm/actions/ParallelAction.js +1 -1
- package/esm/actions/StatusAction.d.ts +15 -0
- package/esm/actions/StatusAction.js +49 -0
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/index.d.ts +1 -0
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +2 -2
- package/esm/components/PopOver.js +2 -2
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +2 -2
- package/esm/index.d.ts +2 -1
- package/esm/index.js +13 -13
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.d.ts +6 -6
- package/esm/renderers/Form.js +168 -124
- package/esm/renderers/Item.d.ts +42 -66
- package/esm/renderers/Item.js +11 -41
- package/esm/renderers/Options.js +1 -2
- package/esm/renderers/Placeholder.js +1 -1
- package/esm/renderers/builtin.js +1 -1
- package/esm/renderers/register.js +1 -1
- package/esm/renderers/wrapControl.js +101 -47
- package/esm/store/app.js +8 -4
- package/esm/store/combo.d.ts +444 -1912
- package/esm/store/combo.js +9 -2
- package/esm/store/crud.d.ts +1 -0
- package/esm/store/crud.js +11 -5
- package/esm/store/form.d.ts +132 -892
- package/esm/store/form.js +83 -81
- package/esm/store/formItem.d.ts +5 -2
- package/esm/store/formItem.js +13 -2
- package/esm/store/iRenderer.js +2 -2
- package/esm/store/index.js +1 -1
- package/esm/store/list.js +1 -1
- package/esm/store/manager.js +1 -1
- package/esm/store/modal.js +1 -1
- package/esm/store/node.js +1 -1
- package/esm/store/pagination.js +1 -1
- package/esm/store/root.js +2 -2
- package/esm/store/service.js +4 -4
- package/esm/store/status.js +1 -1
- package/esm/store/table.d.ts +503 -2040
- package/esm/store/table.js +79 -55
- package/esm/store/table2.d.ts +49 -0
- package/esm/store/table2.js +37 -4
- package/esm/theme.js +1 -1
- package/esm/types.d.ts +17 -3
- package/esm/utils/Animation.js +1 -1
- package/esm/utils/ColorScale.js +1 -1
- package/esm/utils/DataSchema.js +1 -1
- package/esm/utils/DataScope.js +1 -1
- package/esm/utils/RootClose.js +1 -1
- package/esm/utils/SimpleMap.js +1 -1
- package/esm/utils/api.d.ts +2 -2
- package/esm/utils/api.js +113 -81
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/dataMapping.js +4 -2
- package/esm/utils/date.js +1 -1
- package/esm/utils/debug.d.ts +2 -0
- package/esm/utils/debug.js +34 -7
- package/esm/utils/decodeEntity.js +1 -1
- package/esm/utils/dom.js +1 -1
- package/esm/utils/errors.js +1 -1
- package/esm/utils/escapeHtml.js +1 -1
- package/esm/utils/filter-schema.js +1 -1
- package/esm/utils/filter.js +1 -1
- package/esm/utils/formatDuration.js +1 -1
- package/esm/utils/formula.d.ts +0 -1
- package/esm/utils/formula.js +6 -9
- package/esm/utils/getVariable.js +1 -1
- package/esm/utils/grammar.js +1 -1
- package/esm/utils/handleAction.js +1 -1
- package/esm/utils/helper.d.ts +11 -1
- package/esm/utils/helper.js +14 -2
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.d.ts +4 -2
- package/esm/utils/icon.js +3 -2
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/isPureVariable.js +1 -1
- package/esm/utils/json-schema-2-amis-schema.js +1 -1
- package/esm/utils/keyToPath.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.d.ts +3 -0
- package/esm/utils/math.js +52 -0
- package/esm/utils/memoryParse.js +1 -1
- package/esm/utils/normalizeLink.js +1 -1
- package/esm/utils/normalizeOptions.js +1 -1
- package/esm/utils/object.d.ts +7 -0
- package/esm/utils/object.js +13 -2
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +2 -2
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/renderer-event.d.ts +1 -1
- package/esm/utils/renderer-event.js +14 -6
- package/esm/utils/replaceText.js +1 -1
- package/esm/utils/resize-sensor.js +1 -1
- package/esm/utils/resolveCondition.js +1 -1
- package/esm/utils/resolveVariable.js +1 -1
- package/esm/utils/resolveVariableAndFilter.js +1 -1
- package/esm/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/esm/utils/scrollPosition.js +1 -1
- package/esm/utils/string2regExp.js +1 -1
- package/esm/utils/stripNumber.js +1 -1
- package/esm/utils/style-helper.js +1 -1
- package/esm/utils/style.js +1 -1
- package/esm/utils/toNumber.js +1 -1
- package/esm/utils/tokenize.js +1 -1
- package/esm/utils/tpl-builtin.js +1 -1
- package/esm/utils/tpl-lodash.js +1 -1
- package/esm/utils/tpl.js +1 -1
- package/esm/utils/uncontrollable.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/lib/Root.js +10 -7
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +11 -8
- package/lib/SchemaRenderer.js +12 -6
- package/lib/Scoped.d.ts +4 -1
- package/lib/Scoped.js +18 -13
- package/lib/StatusScoped.js +5 -2
- package/lib/WithRootStore.js +5 -2
- package/lib/WithStore.js +5 -2
- package/lib/actions/Action.d.ts +1 -0
- package/lib/actions/Action.js +62 -37
- package/lib/actions/AjaxAction.d.ts +6 -8
- package/lib/actions/AjaxAction.js +20 -18
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.d.ts +1 -2
- package/lib/actions/CmptAction.js +46 -31
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +8 -5
- package/lib/actions/DialogAction.js +5 -6
- package/lib/actions/DrawerAction.js +4 -4
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/LinkAction.js +1 -1
- package/lib/actions/LoopAction.js +1 -1
- package/lib/actions/PageAction.js +1 -1
- package/lib/actions/ParallelAction.js +1 -1
- package/lib/actions/StatusAction.d.ts +15 -0
- package/lib/actions/StatusAction.js +53 -0
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/index.d.ts +1 -0
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/LazyComponent.js +12 -14
- package/lib/components/Overlay.js +14 -14
- package/lib/components/PopOver.js +11 -10
- package/lib/env.js +4 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +11 -9
- package/lib/index.d.ts +2 -1
- package/lib/index.js +21 -19
- package/lib/locale.js +6 -3
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.d.ts +6 -6
- package/lib/renderers/Form.js +180 -131
- package/lib/renderers/Item.d.ts +42 -66
- package/lib/renderers/Item.js +51 -75
- package/lib/renderers/Options.js +10 -5
- package/lib/renderers/Placeholder.js +1 -1
- package/lib/renderers/builtin.js +1 -1
- package/lib/renderers/register.js +1 -1
- package/lib/renderers/wrapControl.js +104 -47
- package/lib/store/app.js +14 -7
- package/lib/store/combo.d.ts +444 -1912
- package/lib/store/combo.js +9 -2
- package/lib/store/crud.d.ts +1 -0
- package/lib/store/crud.js +11 -5
- package/lib/store/form.d.ts +132 -892
- package/lib/store/form.js +81 -79
- package/lib/store/formItem.d.ts +5 -2
- package/lib/store/formItem.js +13 -2
- package/lib/store/iRenderer.js +8 -5
- package/lib/store/index.js +1 -1
- package/lib/store/list.js +1 -1
- package/lib/store/manager.js +1 -1
- package/lib/store/modal.js +1 -1
- package/lib/store/node.js +1 -1
- package/lib/store/pagination.js +1 -1
- package/lib/store/root.js +8 -5
- package/lib/store/service.js +4 -4
- package/lib/store/status.js +1 -1
- package/lib/store/table.d.ts +503 -2040
- package/lib/store/table.js +79 -55
- package/lib/store/table2.d.ts +49 -0
- package/lib/store/table2.js +36 -3
- package/lib/theme.js +6 -3
- package/lib/types.d.ts +17 -3
- package/lib/utils/Animation.js +1 -1
- package/lib/utils/ColorScale.js +1 -1
- package/lib/utils/DataSchema.js +1 -1
- package/lib/utils/DataScope.js +1 -1
- package/lib/utils/RootClose.js +1 -1
- package/lib/utils/SimpleMap.js +1 -1
- package/lib/utils/api.d.ts +2 -2
- package/lib/utils/api.js +113 -81
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/columnsSplit.js +8 -6
- package/lib/utils/dataMapping.js +4 -2
- package/lib/utils/date.js +1 -1
- package/lib/utils/debug.d.ts +2 -0
- package/lib/utils/debug.js +61 -33
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +7 -5
- package/lib/utils/errors.js +1 -1
- package/lib/utils/escapeHtml.js +1 -1
- package/lib/utils/filter-schema.js +1 -1
- package/lib/utils/filter.js +1 -1
- package/lib/utils/formatDuration.js +1 -1
- package/lib/utils/formula.d.ts +0 -1
- package/lib/utils/formula.js +6 -10
- package/lib/utils/getVariable.js +1 -1
- package/lib/utils/grammar.js +1 -1
- package/lib/utils/handleAction.js +1 -1
- package/lib/utils/helper.d.ts +11 -1
- package/lib/utils/helper.js +14 -1
- package/lib/utils/highlight.js +8 -9
- package/lib/utils/icon.d.ts +4 -2
- package/lib/utils/icon.js +12 -10
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/isPureVariable.js +1 -1
- package/lib/utils/json-schema-2-amis-schema.js +1 -1
- package/lib/utils/keyToPath.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.d.ts +3 -0
- package/lib/utils/math.js +58 -0
- package/lib/utils/memoryParse.js +1 -1
- package/lib/utils/normalizeLink.js +1 -1
- package/lib/utils/normalizeOptions.js +1 -1
- package/lib/utils/object.d.ts +7 -0
- package/lib/utils/object.js +13 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +7 -3
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/renderer-event.d.ts +1 -1
- package/lib/utils/renderer-event.js +13 -5
- package/lib/utils/replaceText.js +1 -1
- package/lib/utils/resize-sensor.js +1 -1
- package/lib/utils/resolveCondition.js +1 -1
- package/lib/utils/resolveVariable.js +1 -1
- package/lib/utils/resolveVariableAndFilter.js +1 -1
- package/lib/utils/resolveVariableAndFilterForAsync.js +1 -1
- package/lib/utils/scrollPosition.js +1 -1
- package/lib/utils/string2regExp.js +1 -1
- package/lib/utils/stripNumber.js +1 -1
- package/lib/utils/style-helper.js +1 -1
- package/lib/utils/style.js +1 -1
- package/lib/utils/toNumber.js +1 -1
- package/lib/utils/tokenize.js +1 -1
- package/lib/utils/tpl-builtin.js +1 -1
- package/lib/utils/tpl-lodash.js +1 -1
- package/lib/utils/tpl.js +1 -1
- package/lib/utils/uncontrollable.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/package.json +5 -5
package/esm/renderers/Item.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface FormBaseControl extends BaseSchemaWithoutType {
|
|
|
31
31
|
* 字段名,表单提交时的 key,支持多层级,用.连接,如: a.b.c
|
|
32
32
|
*/
|
|
33
33
|
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
36
|
+
*/
|
|
37
|
+
extraName?: string;
|
|
34
38
|
/**
|
|
35
39
|
* 显示一个小图标, 鼠标放上去的时候显示提示内容
|
|
36
40
|
*/
|
|
@@ -492,7 +496,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
492
496
|
storeType: string;
|
|
493
497
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
494
498
|
readonly fetcher: any;
|
|
495
|
-
readonly notify: any;
|
|
499
|
+
readonly notify: any; /**
|
|
500
|
+
* 只读条件
|
|
501
|
+
*/
|
|
496
502
|
readonly isCancel: (value: any) => boolean;
|
|
497
503
|
readonly __: import("..").TranslateFn<any>;
|
|
498
504
|
getStoreById(id: string): {
|
|
@@ -509,14 +515,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
509
515
|
readonly children: any[];
|
|
510
516
|
} & {
|
|
511
517
|
/**
|
|
512
|
-
*
|
|
518
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
513
519
|
*/
|
|
514
520
|
onChildStoreDispose(child: any): void;
|
|
515
521
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
516
522
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
517
|
-
addChildId: (id: string) => void;
|
|
518
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
519
|
-
*/
|
|
523
|
+
addChildId: (id: string) => void;
|
|
520
524
|
removeChildId: (id: string) => void;
|
|
521
525
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
522
526
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -532,14 +536,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
532
536
|
readonly children: any[];
|
|
533
537
|
} & {
|
|
534
538
|
/**
|
|
535
|
-
*
|
|
539
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
536
540
|
*/
|
|
537
541
|
onChildStoreDispose(child: any): void;
|
|
538
542
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
539
543
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
540
|
-
addChildId: (id: string) => void;
|
|
541
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
542
|
-
*/
|
|
544
|
+
addChildId: (id: string) => void;
|
|
543
545
|
removeChildId: (id: string) => void;
|
|
544
546
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
545
547
|
readonly stores: {
|
|
@@ -557,14 +559,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
557
559
|
readonly children: any[];
|
|
558
560
|
} & {
|
|
559
561
|
/**
|
|
560
|
-
*
|
|
562
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
561
563
|
*/
|
|
562
564
|
onChildStoreDispose(child: any): void;
|
|
563
565
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
564
566
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
565
|
-
addChildId: (id: string) => void;
|
|
566
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
567
|
-
*/
|
|
567
|
+
addChildId: (id: string) => void;
|
|
568
568
|
removeChildId: (id: string) => void;
|
|
569
569
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
570
570
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -580,14 +580,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
580
580
|
readonly children: any[];
|
|
581
581
|
} & {
|
|
582
582
|
/**
|
|
583
|
-
*
|
|
583
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
584
584
|
*/
|
|
585
585
|
onChildStoreDispose(child: any): void;
|
|
586
586
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
587
587
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
588
|
-
addChildId: (id: string) => void;
|
|
589
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
590
|
-
*/
|
|
588
|
+
addChildId: (id: string) => void;
|
|
591
589
|
removeChildId: (id: string) => void;
|
|
592
590
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
593
591
|
};
|
|
@@ -612,14 +610,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
612
610
|
readonly children: any[];
|
|
613
611
|
} & {
|
|
614
612
|
/**
|
|
615
|
-
*
|
|
613
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
616
614
|
*/
|
|
617
615
|
onChildStoreDispose(child: any): void;
|
|
618
616
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
619
617
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
620
|
-
addChildId: (id: string) => void;
|
|
621
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
622
|
-
*/
|
|
618
|
+
addChildId: (id: string) => void;
|
|
623
619
|
removeChildId: (id: string) => void;
|
|
624
620
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
625
621
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -635,14 +631,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
635
631
|
readonly children: any[];
|
|
636
632
|
} & {
|
|
637
633
|
/**
|
|
638
|
-
*
|
|
634
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
639
635
|
*/
|
|
640
636
|
onChildStoreDispose(child: any): void;
|
|
641
637
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
642
638
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
643
|
-
addChildId: (id: string) => void;
|
|
644
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
645
|
-
*/
|
|
639
|
+
addChildId: (id: string) => void;
|
|
646
640
|
removeChildId: (id: string) => void;
|
|
647
641
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
648
642
|
removeStore(store: {
|
|
@@ -659,14 +653,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
659
653
|
readonly children: any[];
|
|
660
654
|
} & {
|
|
661
655
|
/**
|
|
662
|
-
*
|
|
656
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
663
657
|
*/
|
|
664
658
|
onChildStoreDispose(child: any): void;
|
|
665
659
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
666
660
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
667
|
-
addChildId: (id: string) => void;
|
|
668
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
669
|
-
*/
|
|
661
|
+
addChildId: (id: string) => void;
|
|
670
662
|
removeChildId: (id: string) => void;
|
|
671
663
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
672
664
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -682,21 +674,21 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
682
674
|
readonly children: any[];
|
|
683
675
|
} & {
|
|
684
676
|
/**
|
|
685
|
-
*
|
|
677
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
686
678
|
*/
|
|
687
679
|
onChildStoreDispose(child: any): void;
|
|
688
680
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
689
681
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
690
|
-
addChildId: (id: string) => void;
|
|
691
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
692
|
-
*/
|
|
682
|
+
addChildId: (id: string) => void;
|
|
693
683
|
removeChildId: (id: string) => void;
|
|
694
684
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
695
685
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
696
686
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
697
687
|
}, {
|
|
698
688
|
readonly fetcher: any;
|
|
699
|
-
readonly notify: any;
|
|
689
|
+
readonly notify: any; /**
|
|
690
|
+
* 只读条件
|
|
691
|
+
*/
|
|
700
692
|
readonly isCancel: (value: any) => boolean;
|
|
701
693
|
readonly __: import("..").TranslateFn<any>;
|
|
702
694
|
getStoreById(id: string): {
|
|
@@ -713,14 +705,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
713
705
|
readonly children: any[];
|
|
714
706
|
} & {
|
|
715
707
|
/**
|
|
716
|
-
*
|
|
708
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
717
709
|
*/
|
|
718
710
|
onChildStoreDispose(child: any): void;
|
|
719
711
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
720
712
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
721
|
-
addChildId: (id: string) => void;
|
|
722
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
723
|
-
*/
|
|
713
|
+
addChildId: (id: string) => void;
|
|
724
714
|
removeChildId: (id: string) => void;
|
|
725
715
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
726
716
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -736,14 +726,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
736
726
|
readonly children: any[];
|
|
737
727
|
} & {
|
|
738
728
|
/**
|
|
739
|
-
*
|
|
729
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
740
730
|
*/
|
|
741
731
|
onChildStoreDispose(child: any): void;
|
|
742
732
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
743
733
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
744
|
-
addChildId: (id: string) => void;
|
|
745
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
746
|
-
*/
|
|
734
|
+
addChildId: (id: string) => void;
|
|
747
735
|
removeChildId: (id: string) => void;
|
|
748
736
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
749
737
|
readonly stores: {
|
|
@@ -761,14 +749,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
761
749
|
readonly children: any[];
|
|
762
750
|
} & {
|
|
763
751
|
/**
|
|
764
|
-
*
|
|
752
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
765
753
|
*/
|
|
766
754
|
onChildStoreDispose(child: any): void;
|
|
767
755
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
768
756
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
769
|
-
addChildId: (id: string) => void;
|
|
770
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
771
|
-
*/
|
|
757
|
+
addChildId: (id: string) => void;
|
|
772
758
|
removeChildId: (id: string) => void;
|
|
773
759
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
774
760
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -784,14 +770,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
784
770
|
readonly children: any[];
|
|
785
771
|
} & {
|
|
786
772
|
/**
|
|
787
|
-
*
|
|
773
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
788
774
|
*/
|
|
789
775
|
onChildStoreDispose(child: any): void;
|
|
790
776
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
791
777
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
792
|
-
addChildId: (id: string) => void;
|
|
793
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
794
|
-
*/
|
|
778
|
+
addChildId: (id: string) => void;
|
|
795
779
|
removeChildId: (id: string) => void;
|
|
796
780
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
797
781
|
};
|
|
@@ -816,14 +800,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
816
800
|
readonly children: any[];
|
|
817
801
|
} & {
|
|
818
802
|
/**
|
|
819
|
-
*
|
|
803
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
820
804
|
*/
|
|
821
805
|
onChildStoreDispose(child: any): void;
|
|
822
806
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
823
807
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
824
|
-
addChildId: (id: string) => void;
|
|
825
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
826
|
-
*/
|
|
808
|
+
addChildId: (id: string) => void;
|
|
827
809
|
removeChildId: (id: string) => void;
|
|
828
810
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
829
811
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -839,14 +821,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
839
821
|
readonly children: any[];
|
|
840
822
|
} & {
|
|
841
823
|
/**
|
|
842
|
-
*
|
|
824
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
843
825
|
*/
|
|
844
826
|
onChildStoreDispose(child: any): void;
|
|
845
827
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
846
828
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
847
|
-
addChildId: (id: string) => void;
|
|
848
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
849
|
-
*/
|
|
829
|
+
addChildId: (id: string) => void;
|
|
850
830
|
removeChildId: (id: string) => void;
|
|
851
831
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
852
832
|
removeStore(store: {
|
|
@@ -863,14 +843,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
863
843
|
readonly children: any[];
|
|
864
844
|
} & {
|
|
865
845
|
/**
|
|
866
|
-
*
|
|
846
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
867
847
|
*/
|
|
868
848
|
onChildStoreDispose(child: any): void;
|
|
869
849
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
870
850
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
871
|
-
addChildId: (id: string) => void;
|
|
872
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
873
|
-
*/
|
|
851
|
+
addChildId: (id: string) => void;
|
|
874
852
|
removeChildId: (id: string) => void;
|
|
875
853
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
876
854
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -886,14 +864,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
886
864
|
readonly children: any[];
|
|
887
865
|
} & {
|
|
888
866
|
/**
|
|
889
|
-
*
|
|
867
|
+
* 额外的字段名,当为范围组件时可以用来将另外一个值打平出来
|
|
890
868
|
*/
|
|
891
869
|
onChildStoreDispose(child: any): void;
|
|
892
870
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
893
871
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
894
|
-
addChildId: (id: string) => void;
|
|
895
|
-
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
896
|
-
*/
|
|
872
|
+
addChildId: (id: string) => void;
|
|
897
873
|
removeChildId: (id: string) => void;
|
|
898
874
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
|
|
899
875
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
package/esm/renderers/Item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v3.
|
|
2
|
+
* amis-core v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -33,8 +33,8 @@ import 'lodash/isObject';
|
|
|
33
33
|
import 'lodash/isString';
|
|
34
34
|
import 'lodash/isBoolean';
|
|
35
35
|
import { getVariable } from '../utils/getVariable.js';
|
|
36
|
-
import 'lodash';
|
|
37
36
|
import '../utils/image.js';
|
|
37
|
+
import 'lodash/isEqual';
|
|
38
38
|
import '../actions/Action.js';
|
|
39
39
|
import 'lodash/cloneDeep';
|
|
40
40
|
import '../utils/resize-sensor.js';
|
|
@@ -433,11 +433,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
433
433
|
tooltip: labelRemark,
|
|
434
434
|
useMobileUI: useMobileUI,
|
|
435
435
|
className: cx("Form-labelRemark"),
|
|
436
|
-
container: props.popOverContainer
|
|
437
|
-
? props.popOverContainer
|
|
438
|
-
: env && env.getModalContainer
|
|
439
|
-
? env.getModalContainer
|
|
440
|
-
: undefined
|
|
436
|
+
container: props.popOverContainer || env.getModalContainer
|
|
441
437
|
})
|
|
442
438
|
: null))) : null,
|
|
443
439
|
React.createElement("div", { className: cx("Form-value", (_c = {},
|
|
@@ -457,11 +453,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
457
453
|
tooltip: remark,
|
|
458
454
|
className: cx("Form-remark"),
|
|
459
455
|
useMobileUI: useMobileUI,
|
|
460
|
-
container: props.popOverContainer
|
|
461
|
-
? props.popOverContainer
|
|
462
|
-
: env && env.getModalContainer
|
|
463
|
-
? env.getModalContainer
|
|
464
|
-
: undefined
|
|
456
|
+
container: props.popOverContainer || env.getModalContainer
|
|
465
457
|
})
|
|
466
458
|
: null,
|
|
467
459
|
hint && model && model.isFocused
|
|
@@ -502,11 +494,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
502
494
|
tooltip: labelRemark,
|
|
503
495
|
className: cx("Form-lableRemark"),
|
|
504
496
|
useMobileUI: useMobileUI,
|
|
505
|
-
container: props.popOverContainer
|
|
506
|
-
? props.popOverContainer
|
|
507
|
-
: env && env.getModalContainer
|
|
508
|
-
? env.getModalContainer
|
|
509
|
-
: undefined
|
|
497
|
+
container: props.popOverContainer || env.getModalContainer
|
|
510
498
|
})
|
|
511
499
|
: null))) : null,
|
|
512
500
|
mobileUI ? (React.createElement("div", { className: cx('Form-item-controlBox') },
|
|
@@ -523,9 +511,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
523
511
|
className: cx("Form-remark"),
|
|
524
512
|
tooltip: remark,
|
|
525
513
|
useMobileUI: useMobileUI,
|
|
526
|
-
container:
|
|
527
|
-
? env.getModalContainer
|
|
528
|
-
: undefined
|
|
514
|
+
container: props.popOverContainer || env.getModalContainer
|
|
529
515
|
})
|
|
530
516
|
: null,
|
|
531
517
|
hint && model && model.isFocused
|
|
@@ -555,9 +541,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
555
541
|
className: cx("Form-remark"),
|
|
556
542
|
tooltip: remark,
|
|
557
543
|
useMobileUI: useMobileUI,
|
|
558
|
-
container:
|
|
559
|
-
? env.getModalContainer
|
|
560
|
-
: undefined
|
|
544
|
+
container: props.popOverContainer || env.getModalContainer
|
|
561
545
|
})
|
|
562
546
|
: null,
|
|
563
547
|
hint && model && model.isFocused
|
|
@@ -598,11 +582,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
598
582
|
tooltip: labelRemark,
|
|
599
583
|
className: cx("Form-lableRemark"),
|
|
600
584
|
useMobileUI: useMobileUI,
|
|
601
|
-
container: props.popOverContainer
|
|
602
|
-
? props.popOverContainer
|
|
603
|
-
: env && env.getModalContainer
|
|
604
|
-
? env.getModalContainer
|
|
605
|
-
: undefined
|
|
585
|
+
container: props.popOverContainer || env.getModalContainer
|
|
606
586
|
})
|
|
607
587
|
: null))) : null,
|
|
608
588
|
React.createElement("div", { className: cx("Form-value") },
|
|
@@ -619,11 +599,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
619
599
|
className: cx("Form-remark"),
|
|
620
600
|
tooltip: remark,
|
|
621
601
|
useMobileUI: useMobileUI,
|
|
622
|
-
container: props.popOverContainer
|
|
623
|
-
? props.popOverContainer
|
|
624
|
-
: env && env.getModalContainer
|
|
625
|
-
? env.getModalContainer
|
|
626
|
-
: undefined
|
|
602
|
+
container: props.popOverContainer || env.getModalContainer
|
|
627
603
|
})
|
|
628
604
|
: null,
|
|
629
605
|
hint && model && model.isFocused
|
|
@@ -663,11 +639,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
663
639
|
tooltip: labelRemark,
|
|
664
640
|
className: cx("Form-lableRemark"),
|
|
665
641
|
useMobileUI: useMobileUI,
|
|
666
|
-
container: props.popOverContainer
|
|
667
|
-
? props.popOverContainer
|
|
668
|
-
: env && env.getModalContainer
|
|
669
|
-
? env.getModalContainer
|
|
670
|
-
: undefined
|
|
642
|
+
container: props.popOverContainer || env.getModalContainer
|
|
671
643
|
})
|
|
672
644
|
: null))) : null,
|
|
673
645
|
renderControl(),
|
|
@@ -682,9 +654,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
682
654
|
icon: remark.icon || 'warning-mark',
|
|
683
655
|
className: cx("Form-remark"),
|
|
684
656
|
tooltip: remark,
|
|
685
|
-
container:
|
|
686
|
-
? env.getModalContainer
|
|
687
|
-
: undefined
|
|
657
|
+
container: props.popOverContainer || env.getModalContainer
|
|
688
658
|
})
|
|
689
659
|
: null),
|
|
690
660
|
hint && model && model.isFocused
|
package/esm/renderers/Options.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v3.
|
|
2
|
+
* amis-core v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -34,7 +34,6 @@ import 'classnames';
|
|
|
34
34
|
import 'lodash/isObject';
|
|
35
35
|
import 'lodash/isString';
|
|
36
36
|
import 'lodash/isBoolean';
|
|
37
|
-
import 'lodash';
|
|
38
37
|
import '../utils/image.js';
|
|
39
38
|
import { keyToPath } from '../utils/keyToPath.js';
|
|
40
39
|
import { resolveEventData } from '../utils/renderer-event.js';
|
package/esm/renderers/builtin.js
CHANGED