@vuecs/forms 5.1.1 → 5.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form-select/FormSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form-select/FormSelect.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EACR,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,aAAa,EAChB,MAAM,aAAa,CAAC;AAerB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EACR,sBAAsB,EACtB,QAAQ,EACR,KAAK,EAER,MAAM,KAAK,CAAC;AAMb,OAAO,EAGH,KAAK,eAAe,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,OAAO,QAAQ,aAAa,CAAC;IACzB,UAAU,aAAa;QACnB,UAAU,CAAC,EAAE,sBAAsB,CAAC,sBAAsB,CAAC,CAAC;KAC/D;IACD,UAAU,iBAAiB;QACvB,UAAU,CAAC,EAAE,sBAAsB,CAAC,kBA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;;;;;;;;4EAsEzD,CAAC"}
|
package/dist/index.mjs
CHANGED
|
@@ -1035,12 +1035,16 @@ var FormSelect_default = defineComponent({
|
|
|
1035
1035
|
setup(props, { attrs, emit }) {
|
|
1036
1036
|
const theme = useComponentTheme("formSelect", useFormInputThemeProps(props), formSelectThemeDefaults);
|
|
1037
1037
|
const defaults = useComponentDefaults("formSelect", props, behavioralDefaults$1);
|
|
1038
|
+
const renderItems = () => {
|
|
1039
|
+
const classes = theme.value;
|
|
1040
|
+
const items = [];
|
|
1041
|
+
for (const item of props.options) if (isFormOptionGroup(item)) items.push(renderGroup(item, classes));
|
|
1042
|
+
else items.push(renderItem(item, classes));
|
|
1043
|
+
return items;
|
|
1044
|
+
};
|
|
1038
1045
|
return () => {
|
|
1039
1046
|
const resolved = theme.value;
|
|
1040
1047
|
const { placeholder } = defaults.value;
|
|
1041
|
-
const items = [];
|
|
1042
|
-
for (const item of props.options) if (isFormOptionGroup(item)) items.push(renderGroup(item, resolved));
|
|
1043
|
-
else items.push(renderItem(item, resolved));
|
|
1044
1048
|
return h(SelectRoot, {
|
|
1045
1049
|
name: props.name,
|
|
1046
1050
|
modelValue: props.modelValue,
|
|
@@ -1055,7 +1059,7 @@ var FormSelect_default = defineComponent({
|
|
|
1055
1059
|
}), h(SelectIcon, { class: resolved.icon || void 0 }, () => "▾")]), h(SelectPortal, null, () => [h(SelectContent, {
|
|
1056
1060
|
class: resolved.content || void 0,
|
|
1057
1061
|
position: "popper"
|
|
1058
|
-
}, () => [h(SelectViewport, { class: resolved.viewport || void 0 }, () =>
|
|
1062
|
+
}, () => [h(SelectViewport, { class: resolved.viewport || void 0 }, () => renderItems())])])] });
|
|
1059
1063
|
};
|
|
1060
1064
|
}
|
|
1061
1065
|
});
|