ant-design-x-vue-next
Version:
Ant Design X for Vue — community continuation aligned with @ant-design/x
32 lines (31 loc) • 779 B
JavaScript
const d = (r) => {
const { componentCls: c, antCls: o } = r, l = `${c}-switch`;
return {
[c]: {
[`&${l}-rtl`]: {
direction: "rtl"
},
[`&${l}`]: {
display: "inline-block",
[`${o}-btn:not(:disabled):not(${o}-btn-disabled):hover`]: {
background: r.colorFillSecondary,
borderColor: r.colorBorder,
color: r.colorText
},
[`&${l}-checked`]: {
[`${o}-btn:not(:disabled):not(${o}-btn-disabled):hover`]: {
background: r.colorPrimaryBgHover,
borderColor: r.colorPrimary,
color: r.colorPrimary
},
[`${l}-content`]: {
background: r.colorPrimaryBg
}
}
}
}
};
};
export {
d as default
};