cnhis-design-vue 3.1.36-beta.8 → 3.1.36
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/components/form-config/index.d.ts +2 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/checkbox.js +2 -1
- package/es/components/form-render/src/components/renderer/radio.js +2 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +5 -0
- package/es/components/shortcut-setter/index.d.ts +2 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -0
- package/package.json +2 -2
|
@@ -985,6 +985,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
985
985
|
text: string;
|
|
986
986
|
value: any;
|
|
987
987
|
keyword?: string | undefined;
|
|
988
|
+
disabled?: boolean | undefined;
|
|
988
989
|
children?: any[] | undefined;
|
|
989
990
|
}[] | undefined;
|
|
990
991
|
multi_select?: import("..").FormCommonState | undefined;
|
|
@@ -1047,6 +1048,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1047
1048
|
valueOf: () => boolean;
|
|
1048
1049
|
} | undefined;
|
|
1049
1050
|
display?: "flex" | "grid" | undefined;
|
|
1051
|
+
slots?: Record<string, (...args: unknown[]) => unknown> | undefined;
|
|
1050
1052
|
wrapperStyle?: Record<string, string> | {
|
|
1051
1053
|
[x: `--${string}`]: string | number | undefined;
|
|
1052
1054
|
accentColor?: string | undefined;
|
|
@@ -986,6 +986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
986
986
|
text: string;
|
|
987
987
|
value: any;
|
|
988
988
|
keyword?: string | undefined;
|
|
989
|
+
disabled?: boolean | undefined;
|
|
989
990
|
children?: any[] | undefined;
|
|
990
991
|
}[] | undefined;
|
|
991
992
|
multi_select?: import("../..").FormCommonState | undefined;
|
|
@@ -1048,6 +1049,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1048
1049
|
valueOf: () => boolean;
|
|
1049
1050
|
} | undefined;
|
|
1050
1051
|
display?: "flex" | "grid" | undefined;
|
|
1052
|
+
slots?: Record<string, (...args: unknown[]) => unknown> | undefined;
|
|
1051
1053
|
wrapperStyle?: Record<string, string> | {
|
|
1052
1054
|
[x: `--${string}`]: string | number | undefined;
|
|
1053
1055
|
accentColor?: string | undefined;
|
|
@@ -69,6 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
69
|
text: string;
|
|
70
70
|
value: any;
|
|
71
71
|
keyword?: string | undefined;
|
|
72
|
+
disabled?: boolean | undefined;
|
|
72
73
|
children?: any[] | undefined;
|
|
73
74
|
}[] | undefined;
|
|
74
75
|
multi_select?: import("../../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -131,6 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
132
|
valueOf: () => boolean;
|
|
132
133
|
} | undefined;
|
|
133
134
|
display?: "flex" | "grid" | undefined;
|
|
135
|
+
slots?: Record<string, (...args: unknown[]) => unknown> | undefined;
|
|
134
136
|
wrapperStyle?: Record<string, string> | {
|
|
135
137
|
[x: `--${string}`]: string | number | undefined;
|
|
136
138
|
accentColor?: string | undefined;
|
|
@@ -62,7 +62,8 @@ const script = defineComponent({
|
|
|
62
62
|
var _a;
|
|
63
63
|
return [(_a = options.value) == null ? void 0 : _a.map((option) => createVNode(NCheckbox, {
|
|
64
64
|
"key": option[valueKey.value],
|
|
65
|
-
"value": option[valueKey.value]
|
|
65
|
+
"value": option[valueKey.value],
|
|
66
|
+
"disabled": option.disabled
|
|
66
67
|
}, {
|
|
67
68
|
default: () => [option[labelKey.value]]
|
|
68
69
|
}))];
|
|
@@ -83,7 +83,8 @@ const script = defineComponent({
|
|
|
83
83
|
default: () => [createVNode(NSpace, {
|
|
84
84
|
"vertical": props.vertical
|
|
85
85
|
}, _isSlot(_slot = options.value.map((option) => createVNode(NRadio, {
|
|
86
|
-
"value": option[valueKey.value]
|
|
86
|
+
"value": option[valueKey.value],
|
|
87
|
+
"disabled": option.disabled
|
|
87
88
|
}, {
|
|
88
89
|
default: () => [option[labelKey.value]]
|
|
89
90
|
}))) ? _slot : {
|
|
@@ -37,6 +37,7 @@ function useFieldListAdaptor(collector) {
|
|
|
37
37
|
(_b = (_a2 = item.componentProps) == null ? void 0 : _a2.onBlur) == null ? void 0 : _b.call(_a2, ...args);
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
+
"x-content": item.slots,
|
|
40
41
|
"x-display": item.is_show === "0" ? "hidden" : "visible",
|
|
41
42
|
"x-pattern": item.is_edit === "0" ? "disabled" : "editable"
|
|
42
43
|
};
|
|
@@ -26,6 +26,7 @@ interface OptionItem {
|
|
|
26
26
|
text: string;
|
|
27
27
|
value: any;
|
|
28
28
|
keyword?: string;
|
|
29
|
+
disabled?: boolean;
|
|
29
30
|
children?: OptionItem[];
|
|
30
31
|
}
|
|
31
32
|
interface FormRendererPayload {
|
|
@@ -241,6 +242,10 @@ export declare type FieldItem = {
|
|
|
241
242
|
* COMPLEX控件布局类型
|
|
242
243
|
*/
|
|
243
244
|
display: 'grid' | 'flex';
|
|
245
|
+
/**
|
|
246
|
+
* 控件插槽
|
|
247
|
+
*/
|
|
248
|
+
slots: Record<string, (...args: unknown[]) => unknown>;
|
|
244
249
|
/**
|
|
245
250
|
* COMPLEX控件额外样式
|
|
246
251
|
*/
|
|
@@ -88,6 +88,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
88
88
|
text: string;
|
|
89
89
|
value: any;
|
|
90
90
|
keyword?: string | undefined;
|
|
91
|
+
disabled?: boolean | undefined;
|
|
91
92
|
children?: any[] | undefined;
|
|
92
93
|
}[] | undefined;
|
|
93
94
|
multi_select?: import("..").FormCommonState | undefined;
|
|
@@ -150,6 +151,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
150
151
|
valueOf: () => boolean;
|
|
151
152
|
} | undefined;
|
|
152
153
|
display?: "flex" | "grid" | undefined;
|
|
154
|
+
slots?: Record<string, (...args: unknown[]) => unknown> | undefined;
|
|
153
155
|
wrapperStyle?: Record<string, string> | {
|
|
154
156
|
[x: `--${string}`]: string | number | undefined;
|
|
155
157
|
accentColor?: string | undefined;
|
|
@@ -90,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
text: string;
|
|
91
91
|
value: any;
|
|
92
92
|
keyword?: string | undefined;
|
|
93
|
+
disabled?: boolean | undefined;
|
|
93
94
|
children?: any[] | undefined;
|
|
94
95
|
}[] | undefined;
|
|
95
96
|
multi_select?: import("../../../../es/components/form-render").FormCommonState | undefined;
|
|
@@ -152,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
153
|
valueOf: () => boolean;
|
|
153
154
|
} | undefined;
|
|
154
155
|
display?: "flex" | "grid" | undefined;
|
|
156
|
+
slots?: Record<string, (...args: unknown[]) => unknown> | undefined;
|
|
155
157
|
wrapperStyle?: Record<string, string> | {
|
|
156
158
|
[x: `--${string}`]: string | number | undefined;
|
|
157
159
|
accentColor?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.36
|
|
3
|
+
"version": "3.1.36",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"iOS 7",
|
|
62
62
|
"last 3 iOS versions"
|
|
63
63
|
],
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "654504447191f49c05578798b6e17c1552ed29de"
|
|
65
65
|
}
|