diff --git a/src/select/hooks/useSelectOptions.ts b/src/select/hooks/useSelectOptions.ts index 94310f080..64e9c94c2 100644 --- a/src/select/hooks/useSelectOptions.ts +++ b/src/select/hooks/useSelectOptions.ts @@ -57,6 +57,10 @@ export default function useSelectOptions(props: TdSelectProps, context: SetupCon if (isArray(res)) { res.forEach((child) => { groupOption.children.push({ + // 单独处理 style 和 class 参数的透传 + class: child.data.staticClass, + style: child.data.staticStyle, + // 透传其他常规参数 ...child.componentOptions.propsData, slots: () => child.componentOptions.children, index: dynamicIndex,