amis-core 6.13.0-beta.23 → 6.13.0-beta.24
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.js +1 -1
- package/esm/SchemaRenderer.js +1 -1
- package/esm/Scoped.js +1 -1
- package/esm/StatusScoped.js +1 -1
- package/esm/StyleManager.js +1 -1
- package/esm/WithRootStore.js +1 -1
- package/esm/WithStore.js +1 -1
- package/esm/actions/Action.js +1 -1
- package/esm/actions/AjaxAction.js +1 -1
- package/esm/actions/BreakAction.js +1 -1
- package/esm/actions/BroadcastAction.js +1 -1
- package/esm/actions/CmptAction.js +1 -1
- package/esm/actions/ContinueAction.js +1 -1
- package/esm/actions/CopyAction.js +1 -1
- package/esm/actions/CustomAction.js +1 -1
- package/esm/actions/DialogAction.js +1 -1
- package/esm/actions/DrawerAction.js +1 -1
- package/esm/actions/EmailAction.js +1 -1
- package/esm/actions/EventAction.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/PrintAction.js +1 -1
- package/esm/actions/StatusAction.js +1 -1
- package/esm/actions/SwitchAction.js +1 -1
- package/esm/actions/ToastAction.js +1 -1
- package/esm/actions/WaitAction.js +1 -1
- package/esm/components/Animations.js +1 -1
- package/esm/components/CustomStyle.js +1 -1
- package/esm/components/ErrorBoundary.js +1 -1
- package/esm/components/LazyComponent.js +1 -1
- package/esm/components/Overlay.js +1 -1
- package/esm/components/PopOver.js +1 -1
- package/esm/env.js +1 -1
- package/esm/envOverwrite.js +1 -1
- package/esm/factory.js +1 -1
- package/esm/globalVar.js +1 -1
- package/esm/globalVarClientHandler.js +1 -1
- package/esm/globalVarDefaultValueHandler.js +1 -1
- package/esm/index.js +4 -4
- package/esm/locale.js +1 -1
- package/esm/polyfills.js +1 -1
- package/esm/renderers/Form.d.ts +2 -0
- package/esm/renderers/Form.js +3 -2
- package/esm/renderers/Item.d.ts +60 -24
- package/esm/renderers/Item.js +8 -2
- package/esm/renderers/Options.js +1 -1
- 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 +1 -1
- package/esm/store/app.js +1 -1
- package/esm/store/combo.js +1 -1
- package/esm/store/crud.js +1 -1
- package/esm/store/form.js +1 -1
- package/esm/store/formItem.js +1 -1
- package/esm/store/iRenderer.js +1 -1
- 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 +1 -1
- package/esm/store/service.js +1 -1
- package/esm/store/status.js +1 -1
- package/esm/store/table.js +1 -1
- package/esm/store/table2.js +1 -1
- package/esm/theme.js +1 -1
- 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/animations.js +1 -1
- package/esm/utils/api.js +1 -1
- package/esm/utils/arraySlice.js +1 -1
- package/esm/utils/attachmentAdpator.js +1 -1
- package/esm/utils/autobind.js +1 -1
- package/esm/utils/browser.js +1 -1
- package/esm/utils/columnsSplit.js +1 -1
- package/esm/utils/concatData.js +1 -1
- package/esm/utils/dataMapping.js +1 -1
- package/esm/utils/date.js +1 -1
- package/esm/utils/debug.js +1 -1
- 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.js +1 -1
- package/esm/utils/getPageId.js +1 -1
- 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.js +1 -1
- package/esm/utils/highlight.js +1 -1
- package/esm/utils/icon.js +1 -1
- package/esm/utils/image.js +1 -1
- package/esm/utils/index.js +1 -1
- 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/labelToString.js +1 -1
- package/esm/utils/loopTooMuch.js +1 -1
- package/esm/utils/makeSorter.js +1 -1
- package/esm/utils/math.js +1 -1
- 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.js +1 -1
- package/esm/utils/offset.js +1 -1
- package/esm/utils/offsetParent.js +1 -1
- package/esm/utils/optionValueCompare.js +1 -1
- package/esm/utils/position.js +1 -1
- package/esm/utils/prettyBytes.js +1 -1
- package/esm/utils/printElement.js +1 -1
- package/esm/utils/renderer-event.js +1 -1
- 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/validateId.js +1 -1
- package/esm/utils/validations.js +1 -1
- package/esm/utils/visitedCache.js +1 -1
- package/lib/Root.js +1 -1
- package/lib/RootRenderer.d.ts +1 -1
- package/lib/RootRenderer.js +1 -1
- package/lib/SchemaRenderer.js +1 -1
- package/lib/Scoped.js +1 -1
- package/lib/StatusScoped.js +1 -1
- package/lib/StyleManager.js +1 -1
- package/lib/WithRootStore.js +1 -1
- package/lib/WithStore.js +1 -1
- package/lib/actions/Action.js +1 -1
- package/lib/actions/AjaxAction.js +1 -1
- package/lib/actions/BreakAction.js +1 -1
- package/lib/actions/BroadcastAction.js +1 -1
- package/lib/actions/CmptAction.js +1 -1
- package/lib/actions/ContinueAction.js +1 -1
- package/lib/actions/CopyAction.js +1 -1
- package/lib/actions/CustomAction.js +1 -1
- package/lib/actions/DialogAction.js +1 -1
- package/lib/actions/DrawerAction.js +1 -1
- package/lib/actions/EmailAction.js +1 -1
- package/lib/actions/EventAction.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/PrintAction.js +1 -1
- package/lib/actions/StatusAction.js +1 -1
- package/lib/actions/SwitchAction.js +1 -1
- package/lib/actions/ToastAction.js +1 -1
- package/lib/actions/WaitAction.js +1 -1
- package/lib/components/Animations.js +1 -1
- package/lib/components/CustomStyle.js +1 -1
- package/lib/components/ErrorBoundary.js +1 -1
- package/lib/components/LazyComponent.js +1 -1
- package/lib/components/Overlay.js +1 -1
- package/lib/components/PopOver.js +1 -1
- package/lib/env.js +1 -1
- package/lib/envOverwrite.js +1 -1
- package/lib/factory.js +1 -1
- package/lib/globalVar.js +1 -1
- package/lib/globalVarClientHandler.js +1 -1
- package/lib/globalVarDefaultValueHandler.js +1 -1
- package/lib/index.js +4 -4
- package/lib/locale.js +1 -1
- package/lib/polyfills.js +1 -1
- package/lib/renderers/Form.d.ts +2 -0
- package/lib/renderers/Form.js +3 -2
- package/lib/renderers/Item.d.ts +61 -25
- package/lib/renderers/Item.js +8 -2
- package/lib/renderers/Options.js +1 -1
- 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 +1 -1
- package/lib/store/app.js +1 -1
- package/lib/store/combo.js +1 -1
- package/lib/store/crud.js +1 -1
- package/lib/store/form.js +1 -1
- package/lib/store/formItem.js +1 -1
- package/lib/store/iRenderer.js +1 -1
- 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 +1 -1
- package/lib/store/service.js +1 -1
- package/lib/store/status.js +1 -1
- package/lib/store/table.js +1 -1
- package/lib/store/table2.js +1 -1
- package/lib/theme.js +1 -1
- 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/animations.js +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/arraySlice.js +1 -1
- package/lib/utils/attachmentAdpator.js +1 -1
- package/lib/utils/autobind.js +1 -1
- package/lib/utils/browser.js +1 -1
- package/lib/utils/columnsSplit.js +1 -1
- package/lib/utils/concatData.js +1 -1
- package/lib/utils/dataMapping.js +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/debug.js +1 -1
- package/lib/utils/decodeEntity.js +1 -1
- package/lib/utils/dom.js +1 -1
- 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.js +1 -1
- package/lib/utils/getPageId.js +1 -1
- 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.js +1 -1
- package/lib/utils/highlight.js +1 -1
- package/lib/utils/icon.js +1 -1
- package/lib/utils/image.js +1 -1
- package/lib/utils/index.js +1 -1
- 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/labelToString.js +1 -1
- package/lib/utils/loopTooMuch.js +1 -1
- package/lib/utils/makeSorter.js +1 -1
- package/lib/utils/math.js +1 -1
- 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.js +1 -1
- package/lib/utils/offset.js +1 -1
- package/lib/utils/offsetParent.js +1 -1
- package/lib/utils/optionValueCompare.js +1 -1
- package/lib/utils/position.js +1 -1
- package/lib/utils/prettyBytes.js +1 -1
- package/lib/utils/printElement.js +1 -1
- package/lib/utils/renderer-event.js +1 -1
- 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/validateId.js +1 -1
- package/lib/utils/validations.js +1 -1
- package/lib/utils/visitedCache.js +1 -1
- package/package.json +2 -2
package/lib/renderers/Item.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export interface FormBaseControlWithoutSize {
|
|
|
20
20
|
* label自定义宽度,默认单位为px
|
|
21
21
|
*/
|
|
22
22
|
labelWidth?: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* label展示形式
|
|
25
|
+
*/
|
|
26
|
+
labelOverflow?: 'default' | 'ellipsis';
|
|
23
27
|
/**
|
|
24
28
|
* 配置 label className
|
|
25
29
|
*/
|
|
@@ -399,6 +403,8 @@ export interface FormItemProps extends RendererProps {
|
|
|
399
403
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
|
|
400
404
|
labelAlign?: LabelAlign;
|
|
401
405
|
labelWidth?: number | string;
|
|
406
|
+
formLabelOverflow?: string;
|
|
407
|
+
labelOverflow?: 'default' | 'ellipsis';
|
|
402
408
|
disabled?: boolean;
|
|
403
409
|
btnDisabled: boolean;
|
|
404
410
|
defaultValue: any;
|
|
@@ -613,7 +619,7 @@ export declare class FormItemWrap extends React.Component<FormItemProps> {
|
|
|
613
619
|
static layoutRenderers: {
|
|
614
620
|
[propsName: string]: (props: FormItemProps, renderControl: () => JSX.Element | null) => JSX.Element;
|
|
615
621
|
};
|
|
616
|
-
render():
|
|
622
|
+
render(): JSX.Element | null;
|
|
617
623
|
}
|
|
618
624
|
export declare const detectProps: string[];
|
|
619
625
|
export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (Control: FormControlComponent) => {
|
|
@@ -668,7 +674,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
668
674
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
669
675
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
670
676
|
addChildId: (id: string) => void;
|
|
671
|
-
removeChildId: (id: string) => void;
|
|
677
|
+
removeChildId: (id: string) => void; /**
|
|
678
|
+
* 是否只读
|
|
679
|
+
*/
|
|
672
680
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
673
681
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
674
682
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -686,7 +694,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
686
694
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
687
695
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
688
696
|
addChildId: (id: string) => void;
|
|
689
|
-
removeChildId: (id: string) => void;
|
|
697
|
+
removeChildId: (id: string) => void; /**
|
|
698
|
+
* 是否只读
|
|
699
|
+
*/
|
|
690
700
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
691
701
|
readonly stores: {
|
|
692
702
|
[propName: string]: {
|
|
@@ -706,7 +716,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
706
716
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
707
717
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
708
718
|
addChildId: (id: string) => void;
|
|
709
|
-
removeChildId: (id: string) => void;
|
|
719
|
+
removeChildId: (id: string) => void; /**
|
|
720
|
+
* 是否只读
|
|
721
|
+
*/
|
|
710
722
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
711
723
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
712
724
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -724,7 +736,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
724
736
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
725
737
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
726
738
|
addChildId: (id: string) => void;
|
|
727
|
-
removeChildId: (id: string) => void;
|
|
739
|
+
removeChildId: (id: string) => void; /**
|
|
740
|
+
* 是否只读
|
|
741
|
+
*/
|
|
728
742
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
729
743
|
};
|
|
730
744
|
} & {
|
|
@@ -732,9 +746,6 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
732
746
|
[propName: string]: any;
|
|
733
747
|
storeType: string;
|
|
734
748
|
id: string;
|
|
735
|
-
/**
|
|
736
|
-
* 只读条件
|
|
737
|
-
*/
|
|
738
749
|
path: string;
|
|
739
750
|
parentId?: string | undefined;
|
|
740
751
|
}): {
|
|
@@ -754,7 +765,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
754
765
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
755
766
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
756
767
|
addChildId: (id: string) => void;
|
|
757
|
-
removeChildId: (id: string) => void;
|
|
768
|
+
removeChildId: (id: string) => void; /**
|
|
769
|
+
* 是否只读
|
|
770
|
+
*/
|
|
758
771
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
759
772
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
760
773
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -772,7 +785,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
772
785
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
773
786
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
774
787
|
addChildId: (id: string) => void;
|
|
775
|
-
removeChildId: (id: string) => void;
|
|
788
|
+
removeChildId: (id: string) => void; /**
|
|
789
|
+
* 是否只读
|
|
790
|
+
*/
|
|
776
791
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
777
792
|
removeStore(store: {
|
|
778
793
|
id: string;
|
|
@@ -791,7 +806,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
791
806
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
792
807
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
793
808
|
addChildId: (id: string) => void;
|
|
794
|
-
removeChildId: (id: string) => void;
|
|
809
|
+
removeChildId: (id: string) => void; /**
|
|
810
|
+
* 是否只读
|
|
811
|
+
*/
|
|
795
812
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
796
813
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
797
814
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -809,8 +826,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
809
826
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
810
827
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
811
828
|
addChildId: (id: string) => void;
|
|
812
|
-
removeChildId: (id: string) => void;
|
|
813
|
-
|
|
829
|
+
removeChildId: (id: string) => void; /**
|
|
830
|
+
* 是否只读
|
|
831
|
+
*/
|
|
832
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void; /**
|
|
833
|
+
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
834
|
+
*/
|
|
814
835
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
815
836
|
storeType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
816
837
|
}, {
|
|
@@ -835,7 +856,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
835
856
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
836
857
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
837
858
|
addChildId: (id: string) => void;
|
|
838
|
-
removeChildId: (id: string) => void;
|
|
859
|
+
removeChildId: (id: string) => void; /**
|
|
860
|
+
* 是否只读
|
|
861
|
+
*/
|
|
839
862
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
840
863
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
841
864
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -853,7 +876,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
853
876
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
854
877
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
855
878
|
addChildId: (id: string) => void;
|
|
856
|
-
removeChildId: (id: string) => void;
|
|
879
|
+
removeChildId: (id: string) => void; /**
|
|
880
|
+
* 是否只读
|
|
881
|
+
*/
|
|
857
882
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
858
883
|
readonly stores: {
|
|
859
884
|
[propName: string]: {
|
|
@@ -873,7 +898,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
873
898
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
874
899
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
875
900
|
addChildId: (id: string) => void;
|
|
876
|
-
removeChildId: (id: string) => void;
|
|
901
|
+
removeChildId: (id: string) => void; /**
|
|
902
|
+
* 是否只读
|
|
903
|
+
*/
|
|
877
904
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
878
905
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
879
906
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -891,7 +918,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
891
918
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
892
919
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
893
920
|
addChildId: (id: string) => void;
|
|
894
|
-
removeChildId: (id: string) => void;
|
|
921
|
+
removeChildId: (id: string) => void; /**
|
|
922
|
+
* 是否只读
|
|
923
|
+
*/
|
|
895
924
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
896
925
|
};
|
|
897
926
|
} & {
|
|
@@ -899,9 +928,6 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
899
928
|
[propName: string]: any;
|
|
900
929
|
storeType: string;
|
|
901
930
|
id: string;
|
|
902
|
-
/**
|
|
903
|
-
* 只读条件
|
|
904
|
-
*/
|
|
905
931
|
path: string;
|
|
906
932
|
parentId?: string | undefined;
|
|
907
933
|
}): {
|
|
@@ -921,7 +947,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
921
947
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
922
948
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
923
949
|
addChildId: (id: string) => void;
|
|
924
|
-
removeChildId: (id: string) => void;
|
|
950
|
+
removeChildId: (id: string) => void; /**
|
|
951
|
+
* 是否只读
|
|
952
|
+
*/
|
|
925
953
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
926
954
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
927
955
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -939,7 +967,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
939
967
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
940
968
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
941
969
|
addChildId: (id: string) => void;
|
|
942
|
-
removeChildId: (id: string) => void;
|
|
970
|
+
removeChildId: (id: string) => void; /**
|
|
971
|
+
* 是否只读
|
|
972
|
+
*/
|
|
943
973
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
944
974
|
removeStore(store: {
|
|
945
975
|
id: string;
|
|
@@ -958,7 +988,9 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
958
988
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
959
989
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
960
990
|
addChildId: (id: string) => void;
|
|
961
|
-
removeChildId: (id: string) => void;
|
|
991
|
+
removeChildId: (id: string) => void; /**
|
|
992
|
+
* 是否只读
|
|
993
|
+
*/
|
|
962
994
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
963
995
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
964
996
|
path: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
@@ -976,8 +1008,12 @@ export declare function asFormItem(config: Omit<FormItemConfig, 'component'>): (
|
|
|
976
1008
|
syncProps(props: any, prevProps: any, list?: string[]): void;
|
|
977
1009
|
dispose: (callback?: (() => void) | undefined) => void;
|
|
978
1010
|
addChildId: (id: string) => void;
|
|
979
|
-
removeChildId: (id: string) => void;
|
|
980
|
-
|
|
1011
|
+
removeChildId: (id: string) => void; /**
|
|
1012
|
+
* 是否只读
|
|
1013
|
+
*/
|
|
1014
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void; /**
|
|
1015
|
+
* 当配置为水平布局的时候,用来配置具体的左右分配。
|
|
1016
|
+
*/
|
|
981
1017
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
982
1018
|
ComposedComponent: React.ComponentType<any>;
|
|
983
1019
|
} & hoistNonReactStatic.NonReactStatics<any, {}> & {
|
package/lib/renderers/Item.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-core v6.13.0-beta.
|
|
2
|
+
* amis-core v6.13.0-beta.24
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -538,6 +538,7 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
538
538
|
var labelAlign = (props.labelAlign !== 'inherit' && props.labelAlign) ||
|
|
539
539
|
props.formLabelAlign;
|
|
540
540
|
var labelWidth = props.labelWidth || props.formLabelWidth;
|
|
541
|
+
var labelOverflow = props.labelOverflow || props.formLabelOverflow;
|
|
541
542
|
return (_J$X_("div", { "data-role": "form-item", "data-amis-name": props.name, className: cx("Form-item Form-item--horizontal", isStatic && staticClassName ? staticClassName : className, (_a = {
|
|
542
543
|
'Form-item--horizontal-justify': horizontal.justify
|
|
543
544
|
},
|
|
@@ -552,7 +553,12 @@ var FormItemWrap = /** @class */ (function (_super) {
|
|
|
552
553
|
_b['Form-label--left'] = labelAlign === 'left',
|
|
553
554
|
_b['Form-label-noLabel'] = label === '',
|
|
554
555
|
_b), getItemLabelClassName(props)), style: labelWidth != null ? { width: labelWidth } : undefined },
|
|
555
|
-
_J$X_("span",
|
|
556
|
+
_J$X_("span", tslib.__assign({}, (labelOverflow === 'ellipsis'
|
|
557
|
+
? {
|
|
558
|
+
className: cx('Form-ellipsis'),
|
|
559
|
+
title: label
|
|
560
|
+
}
|
|
561
|
+
: {})),
|
|
556
562
|
label ? render('label', label) : null,
|
|
557
563
|
required && (label || labelRemark) ? (_J$X_("span", { className: cx("Form-star") }, "*")) : null,
|
|
558
564
|
labelRemark
|
package/lib/renderers/Options.js
CHANGED
package/lib/renderers/builtin.js
CHANGED
package/lib/store/app.js
CHANGED
package/lib/store/combo.js
CHANGED
package/lib/store/crud.js
CHANGED
package/lib/store/form.js
CHANGED
package/lib/store/formItem.js
CHANGED
package/lib/store/iRenderer.js
CHANGED
package/lib/store/index.js
CHANGED
package/lib/store/list.js
CHANGED
package/lib/store/manager.js
CHANGED
package/lib/store/modal.js
CHANGED
package/lib/store/node.js
CHANGED
package/lib/store/pagination.js
CHANGED
package/lib/store/root.js
CHANGED
package/lib/store/service.js
CHANGED
package/lib/store/status.js
CHANGED
package/lib/store/table.js
CHANGED
package/lib/store/table2.js
CHANGED
package/lib/theme.js
CHANGED
package/lib/utils/Animation.js
CHANGED
package/lib/utils/ColorScale.js
CHANGED
package/lib/utils/DataSchema.js
CHANGED
package/lib/utils/DataScope.js
CHANGED
package/lib/utils/RootClose.js
CHANGED
package/lib/utils/SimpleMap.js
CHANGED
package/lib/utils/animations.js
CHANGED
package/lib/utils/api.js
CHANGED
package/lib/utils/arraySlice.js
CHANGED
package/lib/utils/autobind.js
CHANGED
package/lib/utils/browser.js
CHANGED
package/lib/utils/concatData.js
CHANGED
package/lib/utils/dataMapping.js
CHANGED
package/lib/utils/date.js
CHANGED
package/lib/utils/debug.js
CHANGED
package/lib/utils/dom.js
CHANGED
package/lib/utils/errors.js
CHANGED
package/lib/utils/escapeHtml.js
CHANGED
package/lib/utils/filter.js
CHANGED
package/lib/utils/formula.js
CHANGED