cosey 0.6.3 → 0.6.5
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.
|
@@ -47,15 +47,19 @@ var stdin_default = defineComponent(props => {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
const checkboxGroupVnode = h(ElCheckboxGroup, mergeProps(checkboxGroupProps.value, {
|
|
50
|
-
|
|
50
|
+
style: {
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexWrap: "wrap",
|
|
53
|
+
columnGap: "32px"
|
|
54
|
+
}
|
|
51
55
|
}), () => convertedOptions.value.map(item => h(checkboxType.value, mergeProps({
|
|
52
56
|
...item,
|
|
53
57
|
key: item.value
|
|
54
58
|
}, {
|
|
55
59
|
style: {
|
|
56
|
-
width: checkboxWidth.value
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
width: checkboxWidth.value,
|
|
61
|
+
margin: 0
|
|
62
|
+
}
|
|
59
63
|
}))));
|
|
60
64
|
return componentProps.value.indeterminate ? h(stdin_default$1, {
|
|
61
65
|
modelValue: checkboxGroupProps.value.modelValue,
|
|
@@ -251,9 +251,10 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
251
251
|
getProp
|
|
252
252
|
}) ?? []).map(item => {
|
|
253
253
|
if (isVNode(item) && (item.type.name === "ElFormItem" || item.type.name === "CoFormItem")) {
|
|
254
|
+
const props2 = item.props || {};
|
|
254
255
|
return {
|
|
255
|
-
...
|
|
256
|
-
required:
|
|
256
|
+
...props2,
|
|
257
|
+
required: props2.required || props2.required === "" || (Array.isArray(props2.rules) ? props2.rules : props2.rules ? [props2.rules] : []).some(rule => !!rule.required)
|
|
257
258
|
};
|
|
258
259
|
}
|
|
259
260
|
return;
|