cnhis-design-vue 3.1.16-beta.6 → 3.1.16-beta.9
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/es/packages/big-table/index.d.ts +1 -1
- package/es/packages/big-table/src/BigTable.vue.d.ts +2 -23
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +4 -2
- package/es/packages/big-table/src/hooks/useAnchor.d.ts +1 -1
- package/es/packages/big-table/src/hooks/useAnchor.js +20 -12
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/packages/fabric-chart/src/hooks/constant.js +4 -4
- package/es/packages/fabric-chart/src/hooks/useCenter.js +20 -23
- package/es/packages/fabric-chart/src/hooks/useDraw.js +11 -4
- package/es/packages/fabric-chart/src/hooks/useEvent.js +11 -3
- package/es/packages/fabric-chart/src/hooks/useTop.js +5 -8
- package/es/packages/form-config/index.d.ts +100 -3335
- package/es/packages/form-config/src/FormConfig.js +42 -34
- package/es/packages/form-config/src/FormConfig.vue.d.ts +137 -3372
- package/es/packages/form-config/src/components/FormConfigCreator.js +13 -11
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +19 -7
- package/es/packages/form-config/src/components/FormConfigEdit.js +1 -1
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +69 -32
- package/es/packages/form-config/src/constants/index.d.ts +20 -20
- package/es/packages/form-config/src/constants/index.js +27 -36
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +2 -1
- package/es/packages/form-config/src/hooks/useConfigurationField.js +28 -42
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +2 -3
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +16 -19
- package/es/packages/form-config/src/hooks/useSortable.js +1 -1
- package/es/packages/form-config/src/types/index.d.ts +21 -4
- package/es/packages/form-config/src/utils/index.d.ts +2 -0
- package/es/packages/form-config/src/utils/index.js +15 -0
- package/es/packages/form-config/style/index.css +26 -2
- package/es/packages/form-render/index.d.ts +9 -0
- package/es/packages/form-render/src/FormRender.js +1 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +10 -1
- package/es/packages/form-render/src/components/renderer/cascader.d.ts +2 -14
- package/es/packages/form-render/src/components/renderer/select.d.ts +1 -10
- package/es/packages/form-render/src/components/renderer/select.js +7 -4
- package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +5 -2
- package/es/packages/form-render/src/hooks/useBusinessBinding.js +9 -5
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +5 -2
- package/es/packages/form-render/src/hooks/useFormContext.js +1 -1
- package/es/packages/form-render/src/types/fieldItem.d.ts +11 -12
- package/es/packages/form-render/src/types/index.d.ts +7 -0
- package/es/packages/index.css +26 -2
- package/es/packages/shortcut-setter/index.d.ts +14 -5
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +14 -5
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, createTextVNode } from 'vue';
|
|
2
|
+
import { pick } from 'lodash-es';
|
|
2
3
|
import { NButtonGroup, NPopconfirm, NButton } from 'naive-ui';
|
|
3
4
|
import { EditAbleField } from '../../../../packages/form-config/src/constants';
|
|
4
5
|
import { useConfigurationField } from '../../../../packages/form-config/src/hooks/useConfigurationField';
|
|
@@ -15,20 +16,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
16
|
},
|
|
16
17
|
setup(__props, { emit }) {
|
|
17
18
|
const linebarField = useConfigurationField().generateFieldListByKeys([
|
|
18
|
-
EditAbleField.
|
|
19
|
-
EditAbleField.
|
|
20
|
-
EditAbleField.
|
|
21
|
-
EditAbleField.
|
|
19
|
+
EditAbleField.NAME,
|
|
20
|
+
EditAbleField.LAYOUT_WIDTH_ENUM,
|
|
21
|
+
EditAbleField.DEFAULT_EXPAND,
|
|
22
|
+
EditAbleField.FOLD
|
|
22
23
|
]);
|
|
23
24
|
const linebarFormRef = ref();
|
|
24
25
|
const lineBreakFormRef = ref();
|
|
25
|
-
const initialData = {
|
|
26
|
-
async function submit(
|
|
26
|
+
const initialData = { defaultExpand: true, fold: true, layoutWidthEnum: "ALL_LINE" };
|
|
27
|
+
async function submit(type, formRef) {
|
|
27
28
|
if (!formRef)
|
|
28
29
|
return;
|
|
29
30
|
await formRef.validate();
|
|
30
31
|
const formData = formRef.getFormValues();
|
|
31
|
-
emit("submit", { ...formData,
|
|
32
|
+
emit("submit", { layoutWidthEnum: "ALL_LINE", ...formData, type, key: formData.name });
|
|
32
33
|
}
|
|
33
34
|
return (_ctx, _cache) => {
|
|
34
35
|
return openBlock(), createBlock(unref(NButtonGroup), { size: "small" }, {
|
|
@@ -37,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
38
|
width: "200px",
|
|
38
39
|
"show-icon": false,
|
|
39
40
|
"show-arrow": false,
|
|
40
|
-
onPositiveClick: _cache[0] || (_cache[0] = ($event) => submit("
|
|
41
|
+
onPositiveClick: _cache[0] || (_cache[0] = ($event) => submit("NEWLINE", lineBreakFormRef.value))
|
|
41
42
|
}, {
|
|
42
43
|
trigger: withCtx(() => [
|
|
43
44
|
createVNode(unref(NButton), null, {
|
|
@@ -51,11 +52,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
52
|
createVNode(unref(FormRender), {
|
|
52
53
|
ref_key: "lineBreakFormRef",
|
|
53
54
|
ref: lineBreakFormRef,
|
|
55
|
+
"initial-data": unref(pick)(initialData, ["layoutWidthEnum"]),
|
|
54
56
|
size: "small",
|
|
55
57
|
"label-width": "auto",
|
|
56
58
|
"label-placement": "left",
|
|
57
|
-
fieldList: unref(linebarField).slice(0,
|
|
58
|
-
}, null, 8, ["fieldList"])
|
|
59
|
+
fieldList: unref(linebarField).slice(0, 2)
|
|
60
|
+
}, null, 8, ["initial-data", "fieldList"])
|
|
59
61
|
]),
|
|
60
62
|
_: 1
|
|
61
63
|
}),
|
|
@@ -63,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
65
|
width: "300px",
|
|
64
66
|
"show-icon": false,
|
|
65
67
|
"show-arrow": false,
|
|
66
|
-
onPositiveClick: _cache[1] || (_cache[1] = ($event) => submit("
|
|
68
|
+
onPositiveClick: _cache[1] || (_cache[1] = ($event) => submit("LINE_BAR", linebarFormRef.value))
|
|
67
69
|
}, {
|
|
68
70
|
trigger: withCtx(() => [
|
|
69
71
|
createVNode(unref(NButton), null, {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
+
/// <reference types="lodash" />
|
|
2
3
|
import { FieldItem, FormRenderExpose } from '../../../../../es/packages/form-render';
|
|
4
|
+
import { FormConfigItem } from '../../..';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
6
|
linebarField: FieldItem[];
|
|
5
7
|
linebarFormRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
6
8
|
lineBreakFormRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
7
|
-
initialData:
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
initialData: Partial<FormConfigItem>;
|
|
10
|
+
emit: (event: "submit", payload: FormConfigItem) => void;
|
|
11
|
+
submit: (type: string, formRef?: FormRenderExpose) => Promise<void>;
|
|
12
|
+
pick: {
|
|
13
|
+
<T extends object, U extends keyof T>(object: T, ...props: import("lodash").Many<U>[]): Pick<T, U>;
|
|
14
|
+
<T_1>(object: T_1 | null | undefined, ...props: import("lodash").PropertyPath[]): Partial<T_1>;
|
|
10
15
|
};
|
|
11
|
-
emit: (event: "submit", payload: FieldItem) => void;
|
|
12
|
-
submit: (html_type: string, formRef?: FormRenderExpose) => Promise<void>;
|
|
13
16
|
NButton: import("vue").DefineComponent<{
|
|
14
17
|
readonly color: StringConstructor;
|
|
15
18
|
readonly textColor: StringConstructor;
|
|
@@ -3370,6 +3373,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3370
3373
|
type: NumberConstructor;
|
|
3371
3374
|
default: number;
|
|
3372
3375
|
};
|
|
3376
|
+
businessFormatter: {
|
|
3377
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
3378
|
+
};
|
|
3373
3379
|
schema: {
|
|
3374
3380
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
3375
3381
|
[key: symbol]: any;
|
|
@@ -3482,6 +3488,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3482
3488
|
type: NumberConstructor;
|
|
3483
3489
|
default: number;
|
|
3484
3490
|
};
|
|
3491
|
+
businessFormatter: {
|
|
3492
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
3493
|
+
};
|
|
3485
3494
|
schema: {
|
|
3486
3495
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
3487
3496
|
[key: symbol]: any;
|
|
@@ -4979,6 +4988,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
4979
4988
|
type: NumberConstructor;
|
|
4980
4989
|
default: number;
|
|
4981
4990
|
};
|
|
4991
|
+
businessFormatter: {
|
|
4992
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
4993
|
+
};
|
|
4982
4994
|
schema: {
|
|
4983
4995
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
4984
4996
|
[key: symbol]: any;
|
|
@@ -5076,8 +5088,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5076
5088
|
consumer: boolean;
|
|
5077
5089
|
}>>;
|
|
5078
5090
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5079
|
-
submit: (payload:
|
|
5091
|
+
submit: (payload: FormConfigItem) => FormConfigItem;
|
|
5080
5092
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5081
|
-
onSubmit?: ((payload:
|
|
5093
|
+
onSubmit?: ((payload: FormConfigItem) => any) | undefined;
|
|
5082
5094
|
}, {}>;
|
|
5083
5095
|
export default _default;
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
prevOldField = field;
|
|
38
|
-
initialData.value = {
|
|
38
|
+
initialData.value = { editable: true, ...cloneDeep(toRaw(field)) };
|
|
39
39
|
fieldList.value = generateFieldListByFieldItem(field);
|
|
40
40
|
key.value++;
|
|
41
41
|
}, { immediate: true });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import { AnyObject } from '../../../../../es/src/types';
|
|
3
2
|
import { nextTick } from 'vue';
|
|
4
3
|
import { FieldItem, FormChangePayload, FormRenderExpose } from '../../../../../es/packages/form-render';
|
|
4
|
+
import { FormConfigItem } from '../../../../../es/packages/index';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
6
6
|
key: import("vue").Ref<number>;
|
|
7
7
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
8
|
-
currentActiveField: import("vue").Ref<import("../../../../../es/src/types").WithUndefined<
|
|
8
|
+
currentActiveField: import("vue").Ref<import("../../../../../es/src/types").WithUndefined<FormConfigItem>>;
|
|
9
9
|
fieldList: import("vue").Ref<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
val_key: string;
|
|
@@ -76,16 +76,16 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
76
76
|
date_format?: string | undefined;
|
|
77
77
|
step_length?: string | number | undefined;
|
|
78
78
|
urlConfig?: {
|
|
79
|
-
url
|
|
80
|
-
method?: "
|
|
79
|
+
url: string;
|
|
80
|
+
method?: import("../../../../../es/packages/form-render").FormRequestType | undefined;
|
|
81
|
+
nameKey?: string | undefined;
|
|
82
|
+
valueKey?: string | undefined;
|
|
83
|
+
params?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
81
84
|
dependKey?: string | Record<string, string> | (string | {
|
|
82
85
|
paramName: string;
|
|
83
86
|
paramValue?: string | undefined;
|
|
84
87
|
required?: boolean | undefined;
|
|
85
88
|
})[] | undefined;
|
|
86
|
-
params?: AnyObject | undefined;
|
|
87
|
-
nameKey?: string | undefined;
|
|
88
|
-
valueKey?: string | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
suffixConfig?: any | any[] | undefined;
|
|
91
91
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
@@ -94,8 +94,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
94
94
|
maxGroupNum?: number | undefined;
|
|
95
95
|
children?: any[] | undefined;
|
|
96
96
|
properties?: any[] | undefined;
|
|
97
|
-
componentProps?: AnyObject | undefined;
|
|
98
|
-
decoratorProps?: AnyObject | undefined;
|
|
97
|
+
componentProps?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
98
|
+
decoratorProps?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
99
99
|
noDecorator?: {
|
|
100
100
|
valueOf: () => boolean;
|
|
101
101
|
} | undefined;
|
|
@@ -1637,11 +1637,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1637
1637
|
target?: string | undefined;
|
|
1638
1638
|
when?: string | boolean | undefined;
|
|
1639
1639
|
fulfill?: {
|
|
1640
|
-
state?: AnyObject | undefined;
|
|
1640
|
+
state?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
1641
1641
|
run?: string | undefined;
|
|
1642
1642
|
} | undefined;
|
|
1643
1643
|
otherwise?: {
|
|
1644
|
-
state?: AnyObject | undefined;
|
|
1644
|
+
state?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
1645
1645
|
run?: string | undefined;
|
|
1646
1646
|
} | undefined;
|
|
1647
1647
|
} | {
|
|
@@ -1650,17 +1650,45 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1650
1650
|
target?: string | undefined;
|
|
1651
1651
|
when?: string | boolean | undefined;
|
|
1652
1652
|
fulfill?: {
|
|
1653
|
-
state?: AnyObject | undefined;
|
|
1653
|
+
state?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
1654
1654
|
run?: string | undefined;
|
|
1655
1655
|
} | undefined;
|
|
1656
1656
|
otherwise?: {
|
|
1657
|
-
state?: AnyObject | undefined;
|
|
1657
|
+
state?: import("../../../../../es/src/types").AnyObject | undefined;
|
|
1658
1658
|
run?: string | undefined;
|
|
1659
1659
|
} | undefined;
|
|
1660
1660
|
}[] | undefined;
|
|
1661
1661
|
}[]>;
|
|
1662
|
-
initialData: import("vue").Ref<
|
|
1663
|
-
|
|
1662
|
+
initialData: import("vue").Ref<{
|
|
1663
|
+
key?: string | undefined;
|
|
1664
|
+
layoutWidthEnum?: import("../../../../../es/packages/index").FormConfigWidth | undefined;
|
|
1665
|
+
type?: string | undefined;
|
|
1666
|
+
name?: string | undefined;
|
|
1667
|
+
show?: boolean | undefined;
|
|
1668
|
+
defaultValue?: any;
|
|
1669
|
+
defaultExpand?: boolean | undefined;
|
|
1670
|
+
fold?: boolean | undefined;
|
|
1671
|
+
required?: boolean | undefined;
|
|
1672
|
+
editable?: boolean | undefined;
|
|
1673
|
+
notes?: string | undefined;
|
|
1674
|
+
desc?: string | undefined;
|
|
1675
|
+
children?: {
|
|
1676
|
+
key: string;
|
|
1677
|
+
layoutWidthEnum: import("../../../../../es/packages/index").FormConfigWidth;
|
|
1678
|
+
type: string;
|
|
1679
|
+
name: string;
|
|
1680
|
+
show?: boolean | undefined;
|
|
1681
|
+
defaultValue?: any;
|
|
1682
|
+
defaultExpand?: boolean | undefined;
|
|
1683
|
+
fold?: boolean | undefined;
|
|
1684
|
+
required?: boolean | undefined;
|
|
1685
|
+
editable?: boolean | undefined;
|
|
1686
|
+
notes?: string | undefined;
|
|
1687
|
+
desc?: string | undefined;
|
|
1688
|
+
children?: any[] | undefined;
|
|
1689
|
+
}[] | undefined;
|
|
1690
|
+
}>;
|
|
1691
|
+
generateFieldListByFieldItem: (fieldItem: FormConfigItem) => FieldItem[];
|
|
1664
1692
|
showModal: import("vue").Ref<boolean>;
|
|
1665
1693
|
onPositiveClick: () => Promise<void>;
|
|
1666
1694
|
prevOldField: null;
|
|
@@ -3594,7 +3622,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3594
3622
|
type: import("vue").PropType<FieldItem[]>;
|
|
3595
3623
|
};
|
|
3596
3624
|
initialData: {
|
|
3597
|
-
type: import("vue").PropType<AnyObject>;
|
|
3625
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3598
3626
|
default: () => {};
|
|
3599
3627
|
};
|
|
3600
3628
|
fieldVisitor: {
|
|
@@ -3616,6 +3644,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3616
3644
|
type: NumberConstructor;
|
|
3617
3645
|
default: number;
|
|
3618
3646
|
};
|
|
3647
|
+
businessFormatter: {
|
|
3648
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
3649
|
+
};
|
|
3619
3650
|
schema: {
|
|
3620
3651
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
3621
3652
|
[key: symbol]: any;
|
|
@@ -3680,11 +3711,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3680
3711
|
default: () => {};
|
|
3681
3712
|
};
|
|
3682
3713
|
scope: {
|
|
3683
|
-
type: import("vue").PropType<AnyObject>;
|
|
3714
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3684
3715
|
default: () => {};
|
|
3685
3716
|
};
|
|
3686
3717
|
annotation: {
|
|
3687
|
-
type: import("vue").PropType<AnyObject>;
|
|
3718
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3688
3719
|
};
|
|
3689
3720
|
consumer: {
|
|
3690
3721
|
type: BooleanConstructor;
|
|
@@ -3696,8 +3727,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3696
3727
|
lifeCycle: {
|
|
3697
3728
|
type: import("vue").PropType<Partial<{
|
|
3698
3729
|
onSetup(): void;
|
|
3699
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<AnyObject>;
|
|
3700
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
3730
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/src/types").AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<import("../../../../../es/src/types").AnyObject>;
|
|
3731
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/src/types").AnyObject[];
|
|
3701
3732
|
}>>;
|
|
3702
3733
|
};
|
|
3703
3734
|
}, {
|
|
@@ -3706,7 +3737,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3706
3737
|
type: import("vue").PropType<FieldItem[]>;
|
|
3707
3738
|
};
|
|
3708
3739
|
initialData: {
|
|
3709
|
-
type: import("vue").PropType<AnyObject>;
|
|
3740
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3710
3741
|
default: () => {};
|
|
3711
3742
|
};
|
|
3712
3743
|
fieldVisitor: {
|
|
@@ -3728,6 +3759,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3728
3759
|
type: NumberConstructor;
|
|
3729
3760
|
default: number;
|
|
3730
3761
|
};
|
|
3762
|
+
businessFormatter: {
|
|
3763
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
3764
|
+
};
|
|
3731
3765
|
schema: {
|
|
3732
3766
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
3733
3767
|
[key: symbol]: any;
|
|
@@ -3792,11 +3826,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3792
3826
|
default: () => {};
|
|
3793
3827
|
};
|
|
3794
3828
|
scope: {
|
|
3795
|
-
type: import("vue").PropType<AnyObject>;
|
|
3829
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3796
3830
|
default: () => {};
|
|
3797
3831
|
};
|
|
3798
3832
|
annotation: {
|
|
3799
|
-
type: import("vue").PropType<AnyObject>;
|
|
3833
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
3800
3834
|
};
|
|
3801
3835
|
consumer: {
|
|
3802
3836
|
type: BooleanConstructor;
|
|
@@ -3808,8 +3842,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3808
3842
|
lifeCycle: {
|
|
3809
3843
|
type: import("vue").PropType<Partial<{
|
|
3810
3844
|
onSetup(): void;
|
|
3811
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<AnyObject>;
|
|
3812
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
3845
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/src/types").AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<import("../../../../../es/src/types").AnyObject>;
|
|
3846
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/src/types").AnyObject[];
|
|
3813
3847
|
}>>;
|
|
3814
3848
|
};
|
|
3815
3849
|
}>> & {
|
|
@@ -5203,7 +5237,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5203
5237
|
type: import("vue").PropType<FieldItem[]>;
|
|
5204
5238
|
};
|
|
5205
5239
|
initialData: {
|
|
5206
|
-
type: import("vue").PropType<AnyObject>;
|
|
5240
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
5207
5241
|
default: () => {};
|
|
5208
5242
|
};
|
|
5209
5243
|
fieldVisitor: {
|
|
@@ -5225,6 +5259,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5225
5259
|
type: NumberConstructor;
|
|
5226
5260
|
default: number;
|
|
5227
5261
|
};
|
|
5262
|
+
businessFormatter: {
|
|
5263
|
+
type: import("vue").PropType<import("../../../../../es/packages/form-render").FormBusinessFormatter>;
|
|
5264
|
+
};
|
|
5228
5265
|
schema: {
|
|
5229
5266
|
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
5230
5267
|
[key: symbol]: any;
|
|
@@ -5289,11 +5326,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5289
5326
|
default: () => {};
|
|
5290
5327
|
};
|
|
5291
5328
|
scope: {
|
|
5292
|
-
type: import("vue").PropType<AnyObject>;
|
|
5329
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
5293
5330
|
default: () => {};
|
|
5294
5331
|
};
|
|
5295
5332
|
annotation: {
|
|
5296
|
-
type: import("vue").PropType<AnyObject>;
|
|
5333
|
+
type: import("vue").PropType<import("../../../../../es/src/types").AnyObject>;
|
|
5297
5334
|
};
|
|
5298
5335
|
consumer: {
|
|
5299
5336
|
type: BooleanConstructor;
|
|
@@ -5305,8 +5342,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5305
5342
|
lifeCycle: {
|
|
5306
5343
|
type: import("vue").PropType<Partial<{
|
|
5307
5344
|
onSetup(): void;
|
|
5308
|
-
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<AnyObject>;
|
|
5309
|
-
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
5345
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/src/types").AnyObject | undefined): void | import("../../../../../es/src/types").WithUndefined<import("../../../../../es/src/types").AnyObject>;
|
|
5346
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/src/types").AnyObject[];
|
|
5310
5347
|
}>>;
|
|
5311
5348
|
};
|
|
5312
5349
|
}>> & {
|
|
@@ -5316,9 +5353,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
5316
5353
|
maxHeight: string | number;
|
|
5317
5354
|
column: number;
|
|
5318
5355
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
5319
|
-
initialData: AnyObject;
|
|
5356
|
+
initialData: import("../../../../../es/src/types").AnyObject;
|
|
5320
5357
|
parallelism: number;
|
|
5321
|
-
scope: AnyObject;
|
|
5358
|
+
scope: import("../../../../../es/src/types").AnyObject;
|
|
5322
5359
|
consumer: boolean;
|
|
5323
5360
|
}>>;
|
|
5324
5361
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { WithUndefined } from '../../../../../es/src/types';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { FormConfigItem } from '../../../../../es/packages/form-config';
|
|
4
4
|
export declare const WidgetTextMap: Map<string, string>;
|
|
5
5
|
export declare enum EditAbleField {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
NAME = "name",
|
|
7
|
+
NOTES = "notes",
|
|
8
|
+
DEFAULT_VALUE = "defaultValue",
|
|
9
|
+
LAYOUT_WIDTH_ENUM = "layoutWidthEnum",
|
|
10
|
+
DESC = "desc",
|
|
11
|
+
DEFAULT_EXPAND = "defaultExpand",
|
|
12
|
+
FOLD = "fold",
|
|
13
|
+
REQUIRED = "required",
|
|
14
|
+
EDITABLE = "editable"
|
|
15
15
|
}
|
|
16
16
|
export declare function widgetWidthOptionConfig(): {
|
|
17
17
|
option: {
|
|
18
18
|
text: string;
|
|
19
|
-
value:
|
|
19
|
+
value: string;
|
|
20
20
|
}[];
|
|
21
21
|
};
|
|
22
22
|
export declare function isShowOptionConfig(): {
|
|
23
23
|
open: {
|
|
24
24
|
describe: string;
|
|
25
|
-
value:
|
|
25
|
+
value: boolean;
|
|
26
26
|
};
|
|
27
27
|
close: {
|
|
28
28
|
describe: string;
|
|
29
|
-
value:
|
|
29
|
+
value: boolean;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
export declare function isNotFoldOptionConfig(): {
|
|
33
33
|
open: {
|
|
34
34
|
describe: string;
|
|
35
|
-
value:
|
|
35
|
+
value: boolean;
|
|
36
36
|
};
|
|
37
37
|
close: {
|
|
38
38
|
describe: string;
|
|
39
|
-
value:
|
|
39
|
+
value: boolean;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
export declare function isEditOptionConfig(): {
|
|
43
43
|
open: {
|
|
44
44
|
describe: string;
|
|
45
|
-
value:
|
|
45
|
+
value: boolean;
|
|
46
46
|
};
|
|
47
47
|
close: {
|
|
48
48
|
describe: string;
|
|
49
|
-
value:
|
|
49
|
+
value: boolean;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
export declare function isNullOptionConfig(): {
|
|
53
53
|
open: {
|
|
54
54
|
describe: string;
|
|
55
|
-
value:
|
|
55
|
+
value: boolean;
|
|
56
56
|
};
|
|
57
57
|
close: {
|
|
58
58
|
describe: string;
|
|
59
|
-
value:
|
|
59
|
+
value: boolean;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
export declare const InjectionActiveFieldItem: InjectionKey<Ref<WithUndefined<
|
|
62
|
+
export declare const InjectionActiveFieldItem: InjectionKey<Ref<WithUndefined<FormConfigItem>>>;
|
|
@@ -1,64 +1,55 @@
|
|
|
1
1
|
const WidgetTextMap = /* @__PURE__ */ new Map([
|
|
2
|
-
["
|
|
3
|
-
["
|
|
4
|
-
["TEXTAREA", "\u6587\u672C\u57DF"],
|
|
5
|
-
["CASCADER", "\u7EA7\u8054\u4E0B\u62C9\u6846"],
|
|
6
|
-
["SWITCH", "\u5F00\u5173"],
|
|
7
|
-
["RADIO", "\u5355\u9009"],
|
|
8
|
-
["TEXT", "\u6587\u672C"],
|
|
9
|
-
["BUTTON", "\u6309\u94AE"],
|
|
10
|
-
["CHECKBOX", "\u591A\u9009"],
|
|
11
|
-
["LINEBAR", "\u5206\u884C\u7B26"],
|
|
12
|
-
["LINE_BREAKS", "\u5206\u7EBF\u680F"]
|
|
2
|
+
["LINE_BAR", "\u5206\u7EBF\u680F"],
|
|
3
|
+
["NEWLINE", "\u5206\u884C\u7B26"]
|
|
13
4
|
]);
|
|
14
5
|
var EditAbleField = /* @__PURE__ */ ((EditAbleField2) => {
|
|
15
|
-
EditAbleField2["
|
|
16
|
-
EditAbleField2["
|
|
17
|
-
EditAbleField2["
|
|
18
|
-
EditAbleField2["
|
|
19
|
-
EditAbleField2["
|
|
20
|
-
EditAbleField2["
|
|
21
|
-
EditAbleField2["
|
|
22
|
-
EditAbleField2["
|
|
23
|
-
EditAbleField2["
|
|
6
|
+
EditAbleField2["NAME"] = "name";
|
|
7
|
+
EditAbleField2["NOTES"] = "notes";
|
|
8
|
+
EditAbleField2["DEFAULT_VALUE"] = "defaultValue";
|
|
9
|
+
EditAbleField2["LAYOUT_WIDTH_ENUM"] = "layoutWidthEnum";
|
|
10
|
+
EditAbleField2["DESC"] = "desc";
|
|
11
|
+
EditAbleField2["DEFAULT_EXPAND"] = "defaultExpand";
|
|
12
|
+
EditAbleField2["FOLD"] = "fold";
|
|
13
|
+
EditAbleField2["REQUIRED"] = "required";
|
|
14
|
+
EditAbleField2["EDITABLE"] = "editable";
|
|
24
15
|
return EditAbleField2;
|
|
25
16
|
})(EditAbleField || {});
|
|
26
17
|
function widgetWidthOptionConfig() {
|
|
27
18
|
return {
|
|
28
19
|
option: [
|
|
29
|
-
{ text: "\u6574\u884C", value:
|
|
30
|
-
{ text: "\u534A\u884C", value:
|
|
31
|
-
{ text: "5/6", value:
|
|
32
|
-
{ text: "2/3", value:
|
|
33
|
-
{ text: "1/3", value:
|
|
34
|
-
{ text: "3/4", value:
|
|
35
|
-
{ text: "1/4", value:
|
|
36
|
-
{ text: "1/6", value:
|
|
20
|
+
{ text: "\u6574\u884C", value: "ALL_LINE" },
|
|
21
|
+
{ text: "\u534A\u884C", value: "HALF_LINE" },
|
|
22
|
+
{ text: "5/6", value: "FIVE_SIX" },
|
|
23
|
+
{ text: "2/3", value: "TWO_THREE" },
|
|
24
|
+
{ text: "1/3", value: "ONE_THREE" },
|
|
25
|
+
{ text: "3/4", value: "THREE_FOUR" },
|
|
26
|
+
{ text: "1/4", value: "ONE_FOUR" },
|
|
27
|
+
{ text: "1/6", value: "ONE_SIX" }
|
|
37
28
|
]
|
|
38
29
|
};
|
|
39
30
|
}
|
|
40
31
|
function isShowOptionConfig() {
|
|
41
32
|
return {
|
|
42
|
-
open: { describe: "\u9ED8\u8BA4\u5C55\u5F00", value:
|
|
43
|
-
close: { describe: "\u9ED8\u8BA4\u6536\u8D77", value:
|
|
33
|
+
open: { describe: "\u9ED8\u8BA4\u5C55\u5F00", value: true },
|
|
34
|
+
close: { describe: "\u9ED8\u8BA4\u6536\u8D77", value: false }
|
|
44
35
|
};
|
|
45
36
|
}
|
|
46
37
|
function isNotFoldOptionConfig() {
|
|
47
38
|
return {
|
|
48
|
-
open: { describe: "\u53EF\u6298\u53E0", value:
|
|
49
|
-
close: { describe: "\u4E0D\u53EF\u6298\u53E0", value:
|
|
39
|
+
open: { describe: "\u53EF\u6298\u53E0", value: true },
|
|
40
|
+
close: { describe: "\u4E0D\u53EF\u6298\u53E0", value: false }
|
|
50
41
|
};
|
|
51
42
|
}
|
|
52
43
|
function isEditOptionConfig() {
|
|
53
44
|
return {
|
|
54
|
-
open: { describe: "\u53EF\u7F16\u8F91", value:
|
|
55
|
-
close: { describe: "\u4E0D\u53EF\u7F16\u8F91", value:
|
|
45
|
+
open: { describe: "\u53EF\u7F16\u8F91", value: true },
|
|
46
|
+
close: { describe: "\u4E0D\u53EF\u7F16\u8F91", value: false }
|
|
56
47
|
};
|
|
57
48
|
}
|
|
58
49
|
function isNullOptionConfig() {
|
|
59
50
|
return {
|
|
60
|
-
open: { describe: "\u5FC5\u586B", value:
|
|
61
|
-
close: { describe: "\u4E0D\u5FC5\u586B", value:
|
|
51
|
+
open: { describe: "\u5FC5\u586B", value: true },
|
|
52
|
+
close: { describe: "\u4E0D\u5FC5\u586B", value: false }
|
|
62
53
|
};
|
|
63
54
|
}
|
|
64
55
|
const InjectionActiveFieldItem = Symbol("InjectionActiveFieldItem");
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FormConfigItem } from '../../../../../es/packages/form-config';
|
|
1
2
|
import { EditAbleField } from '../../../../../es/packages/form-config/src/constants';
|
|
2
3
|
import { FieldItem } from '../../../../../es/packages/form-render';
|
|
3
4
|
export declare function useConfigurationField(): {
|
|
4
5
|
generateFieldListByKeys: (keyList: EditAbleField[]) => FieldItem[];
|
|
5
|
-
generateFieldListByFieldItem: (fieldItem:
|
|
6
|
+
generateFieldListByFieldItem: (fieldItem: FormConfigItem) => FieldItem[];
|
|
6
7
|
};
|