提交 850149c5 编写于 作者: Y yurj26

fix: radio兼容旧版本样式

上级 1b684e69
......@@ -122,7 +122,11 @@ export default /*#__PURE__*/ defineBuiltInComponent({
<uni-radio {...booleanAttrs} onClick={_onClick}>
<div
class="uni-radio-wrapper"
style={{ '--HOVER-BD-COLOR': props.activeBorderColor }}
style={{
'--HOVER-BD-COLOR': !radioChecked.value
? props.activeBorderColor
: radioStyle.value.borderColor,
}}
>
<div
class="uni-radio-input"
......
......@@ -5470,7 +5470,7 @@ const index$o = /* @__PURE__ */ defineBuiltInComponent({
}), [vue.createVNode("div", {
"class": "uni-radio-wrapper",
"style": {
"--HOVER-BD-COLOR": props2.activeBorderColor
"--HOVER-BD-COLOR": !radioChecked.value ? props2.activeBorderColor : radioStyle.value.borderColor
}
}, [vue.createVNode("div", {
"class": ["uni-radio-input", {
......
......@@ -12739,7 +12739,7 @@ const index$m = /* @__PURE__ */ defineBuiltInComponent({
}), [createVNode("div", {
"class": "uni-radio-wrapper",
"style": {
"--HOVER-BD-COLOR": props2.activeBorderColor
"--HOVER-BD-COLOR": !radioChecked.value ? props2.activeBorderColor : radioStyle.value.borderColor
}
}, [createVNode("div", {
"class": ["uni-radio-input", {
......
......@@ -5470,7 +5470,7 @@ const index$o = /* @__PURE__ */ defineBuiltInComponent({
}), [vue.createVNode("div", {
"class": "uni-radio-wrapper",
"style": {
"--HOVER-BD-COLOR": props2.activeBorderColor
"--HOVER-BD-COLOR": !radioChecked.value ? props2.activeBorderColor : radioStyle.value.borderColor
}
}, [vue.createVNode("div", {
"class": ["uni-radio-input", {
......
......@@ -12729,7 +12729,7 @@ const index$m = /* @__PURE__ */ defineBuiltInComponent({
}), [createVNode("div", {
"class": "uni-radio-wrapper",
"style": {
"--HOVER-BD-COLOR": props2.activeBorderColor
"--HOVER-BD-COLOR": !radioChecked.value ? props2.activeBorderColor : radioStyle.value.borderColor
}
}, [createVNode("div", {
"class": ["uni-radio-input", {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册