|
@ -1,12 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="u-radio" :style="[radioStyle]"> |
|
|
<view class="u-radio" :style="[radioStyle]"> |
|
|
<view class="u-radio__icon-wrap" @tap="toggle" :class="[iconClass]" :style="[iconStyle]"> |
|
|
<view class="u-radio__icon-wrap" @tap="toggle" :class="[iconClass]" :style="[iconStyle]"> |
|
|
<u-icon |
|
|
<u-icon class="u-radio__icon-wrap__icon" name="checkbox-mark" :size="elIconSize" :color="iconColor" /> |
|
|
class="u-radio__icon-wrap__icon" |
|
|
|
|
|
name="checkbox-mark" |
|
|
|
|
|
:size="elIconSize" |
|
|
|
|
|
:color="iconColor" |
|
|
|
|
|
/> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="u-radio__label" @tap="onClickLabel" :style="{ fontSize: $u.addUnit(labelSize) }"> |
|
|
<view class="u-radio__label" @tap="onClickLabel" :style="{ fontSize: $u.addUnit(labelSize) }"> |
|
|
<slot /> |
|
|
<slot /> |
|
@ -15,262 +10,276 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
/** |
|
|
/** |
|
|
* radio 单选框 |
|
|
* radio 单选框 |
|
|
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio-group使用 |
|
|
* @description 单选框用于有一个选择,用户只能选择其中一个的场景。搭配u-radio-group使用 |
|
|
* @tutorial https://www.uviewui.com/components/radio.html |
|
|
* @tutorial https://www.uviewui.com/components/radio.html |
|
|
* @property {String Number} icon-size 图标大小,单位rpx(默认24) |
|
|
* @property {String Number} icon-size 图标大小,单位rpx(默认24) |
|
|
* @property {String Number} label-size label字体大小,单位rpx(默认28) |
|
|
* @property {String Number} label-size label字体大小,单位rpx(默认28) |
|
|
* @property {String Number} name radio组件的标示符 |
|
|
* @property {String Number} name radio组件的标示符 |
|
|
* @property {String} shape 形状,见上方说明(默认circle) |
|
|
* @property {String} shape 形状,见上方说明(默认circle) |
|
|
* @property {Boolean} disabled 是否禁用(默认false) |
|
|
* @property {Boolean} disabled 是否禁用(默认false) |
|
|
* @property {Boolean} label-disabled 点击文本是否可以操作radio(默认true) |
|
|
* @property {Boolean} label-disabled 点击文本是否可以操作radio(默认true) |
|
|
* @property {String} active-color 选中时的颜色,如设置parent的active-color将失效 |
|
|
* @property {String} active-color 选中时的颜色,如设置parent的active-color将失效 |
|
|
* @event {Function} change 某个radio状态发生变化时触发(选中状态) |
|
|
* @event {Function} change 某个radio状态发生变化时触发(选中状态) |
|
|
* @example <u-radio :label-disabled="false">门掩黄昏,无计留春住</u-radio> |
|
|
* @example <u-radio :label-disabled="false">门掩黄昏,无计留春住</u-radio> |
|
|
*/ |
|
|
*/ |
|
|
export default { |
|
|
export default { |
|
|
name: "u-radio", |
|
|
name: "u-radio", |
|
|
emits: ["change"], |
|
|
emits: ["change"], |
|
|
props: { |
|
|
props: { |
|
|
// radio的名称 |
|
|
// radio的名称 |
|
|
name: { |
|
|
name: { |
|
|
type: [String, Number], |
|
|
type: [String, Number], |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// 组件的整体大小 |
|
|
// 组件的整体大小 |
|
|
size: { |
|
|
size: { |
|
|
type: [String, Number], |
|
|
type: [String, Number], |
|
|
default: 34 |
|
|
default: 34 |
|
|
}, |
|
|
}, |
|
|
// 形状,square为方形,circle为原型 |
|
|
// 形状,square为方形,circle为原型 |
|
|
shape: { |
|
|
shape: { |
|
|
type: String, |
|
|
type: String, |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// 是否禁用 |
|
|
// 是否禁用 |
|
|
disabled: { |
|
|
disabled: { |
|
|
type: [String, Boolean], |
|
|
type: [String, Boolean], |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// 是否禁止点击提示语选中复选框 |
|
|
// 是否禁止点击提示语选中复选框 |
|
|
labelDisabled: { |
|
|
labelDisabled: { |
|
|
type: [String, Boolean], |
|
|
type: [String, Boolean], |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 |
|
|
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值 |
|
|
activeColor: { |
|
|
activeColor: { |
|
|
type: String, |
|
|
type: String, |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// 图标的大小,单位rpx |
|
|
// 图标的大小,单位rpx |
|
|
iconSize: { |
|
|
iconSize: { |
|
|
type: [String, Number], |
|
|
type: [String, Number], |
|
|
default: "" |
|
|
default: "" |
|
|
}, |
|
|
}, |
|
|
// label的字体大小,rpx单位 |
|
|
// label的字体大小,rpx单位 |
|
|
labelSize: { |
|
|
labelSize: { |
|
|
type: [String, Number], |
|
|
type: [String, Number], |
|
|
default: "" |
|
|
default: "" |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
// 父组件的默认值,因为头条小程序不支持在computed中使用this.parent.shape的形式 |
|
|
|
|
|
// 故只能使用如此方法 |
|
|
|
|
|
parentData: { |
|
|
|
|
|
iconSize: null, |
|
|
|
|
|
labelDisabled: null, |
|
|
|
|
|
disabled: null, |
|
|
|
|
|
shape: null, |
|
|
|
|
|
activeColor: null, |
|
|
|
|
|
size: null, |
|
|
|
|
|
width: null, |
|
|
|
|
|
height: null, |
|
|
|
|
|
value: null, |
|
|
|
|
|
wrap: null |
|
|
|
|
|
} |
|
|
} |
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.parent = false; |
|
|
|
|
|
// 支付宝小程序不支持provide/inject,所以使用这个方法获取整个父组件,在created定义,避免循环引用 |
|
|
|
|
|
this.updateParentData(); |
|
|
|
|
|
this.parent.children.push(this); |
|
|
|
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
// 是否禁用,如果父组件u-raios-group禁用的话,将会忽略子组件的配置 |
|
|
|
|
|
elDisabled() { |
|
|
|
|
|
return this.disabled !== ""? this.disabled: this.parentData.disabled !== null? this.parentData.disabled: false; |
|
|
|
|
|
}, |
|
|
|
|
|
// 是否禁用label点击 |
|
|
|
|
|
elLabelDisabled() { |
|
|
|
|
|
return this.labelDisabled !== ""? this.labelDisabled: this.parentData.labelDisabled !== null? this.parentData.labelDisabled: false; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件尺寸,对应size的值,默认值为34rpx |
|
|
|
|
|
elSize() { |
|
|
|
|
|
return this.size ? this.size : this.parentData.size ? this.parentData.size : 34; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件的勾选图标的尺寸,默认20 |
|
|
|
|
|
elIconSize() { |
|
|
|
|
|
return this.iconSize? this.iconSize: this.parentData.iconSize? this.parentData.iconSize: 20; |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 组件选中激活时的颜色 |
|
|
data() { |
|
|
elActiveColor() { |
|
|
return { |
|
|
return this.activeColor? this.activeColor: this.parentData.activeColor? this.parentData.activeColor: "primary"; |
|
|
// 父组件的默认值,因为头条小程序不支持在computed中使用this.parent.shape的形式 |
|
|
|
|
|
// 故只能使用如此方法 |
|
|
|
|
|
parentData: { |
|
|
|
|
|
iconSize: null, |
|
|
|
|
|
labelDisabled: null, |
|
|
|
|
|
disabled: null, |
|
|
|
|
|
shape: null, |
|
|
|
|
|
activeColor: null, |
|
|
|
|
|
size: null, |
|
|
|
|
|
width: null, |
|
|
|
|
|
height: null, |
|
|
|
|
|
value: null, |
|
|
|
|
|
wrap: null |
|
|
|
|
|
}, |
|
|
|
|
|
select: false |
|
|
|
|
|
}; |
|
|
}, |
|
|
}, |
|
|
// 组件的形状 |
|
|
created() { |
|
|
elShape() { |
|
|
this.parent = false; |
|
|
return this.shape ? this.shape : this.parentData.shape ? this.parentData.shape : "circle"; |
|
|
// 支付宝小程序不支持provide/inject,所以使用这个方法获取整个父组件,在created定义,避免循环引用 |
|
|
|
|
|
this.updateParentData(); |
|
|
|
|
|
this.parent.children.push(this); |
|
|
}, |
|
|
}, |
|
|
// 设置radio的状态,要求radio的name等于parent的value时才为选中状态 |
|
|
computed: { |
|
|
iconStyle() { |
|
|
// 是否禁用,如果父组件u-raios-group禁用的话,将会忽略子组件的配置 |
|
|
let style = {}; |
|
|
elDisabled() { |
|
|
if (this.elActiveColor && this.parentData.value === this.name && !this.elDisabled) { |
|
|
return this.disabled !== "" ? this.disabled : this.parentData.disabled !== null ? this.parentData |
|
|
style.borderColor = this.elActiveColor; |
|
|
.disabled : false; |
|
|
style.backgroundColor = this.elActiveColor; |
|
|
}, |
|
|
|
|
|
// 是否禁用label点击 |
|
|
|
|
|
elLabelDisabled() { |
|
|
|
|
|
return this.labelDisabled !== "" ? this.labelDisabled : this.parentData.labelDisabled !== null ? this |
|
|
|
|
|
.parentData.labelDisabled : false; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件尺寸,对应size的值,默认值为34rpx |
|
|
|
|
|
elSize() { |
|
|
|
|
|
return this.size ? this.size : this.parentData.size ? this.parentData.size : 34; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件的勾选图标的尺寸,默认20 |
|
|
|
|
|
elIconSize() { |
|
|
|
|
|
return this.iconSize ? this.iconSize : this.parentData.iconSize ? this.parentData.iconSize : 20; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件选中激活时的颜色 |
|
|
|
|
|
elActiveColor() { |
|
|
|
|
|
return this.activeColor ? this.activeColor : this.parentData.activeColor ? this.parentData.activeColor : |
|
|
|
|
|
"primary"; |
|
|
|
|
|
}, |
|
|
|
|
|
// 组件的形状 |
|
|
|
|
|
elShape() { |
|
|
|
|
|
return this.shape ? this.shape : this.parentData.shape ? this.parentData.shape : "circle"; |
|
|
|
|
|
}, |
|
|
|
|
|
// 设置radio的状态,要求radio的name等于parent的value时才为选中状态 |
|
|
|
|
|
iconStyle() { |
|
|
|
|
|
let style = {}; |
|
|
|
|
|
if (this.elActiveColor && this.parentData.value === this.name && !this.elDisabled) { |
|
|
|
|
|
style.borderColor = this.elActiveColor; |
|
|
|
|
|
style.backgroundColor = this.elActiveColor; |
|
|
|
|
|
} |
|
|
|
|
|
style.width = this.$u.addUnit(this.elSize); |
|
|
|
|
|
style.height = this.$u.addUnit(this.elSize); |
|
|
|
|
|
return style; |
|
|
|
|
|
}, |
|
|
|
|
|
iconColor() { |
|
|
|
|
|
return this.name === this.parentData.value ? "#ffffff" : "transparent"; |
|
|
|
|
|
}, |
|
|
|
|
|
iconClass() { |
|
|
|
|
|
let classes = []; |
|
|
|
|
|
classes.push("u-radio__icon-wrap--" + this.elShape); |
|
|
|
|
|
if (this.name === this.parentData.value) classes.push("u-radio__icon-wrap--checked"); |
|
|
|
|
|
if (this.elDisabled) classes.push("u-radio__icon-wrap--disabled"); |
|
|
|
|
|
if (this.name === this.parentData.value && this.elDisabled) |
|
|
|
|
|
classes.push("u-radio__icon-wrap--disabled--checked"); |
|
|
|
|
|
// 支付宝小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效 |
|
|
|
|
|
return classes.join(" "); |
|
|
|
|
|
}, |
|
|
|
|
|
radioStyle() { |
|
|
|
|
|
let style = {}; |
|
|
|
|
|
if (this.parentData.width) { |
|
|
|
|
|
style.width = this.$u.addUnit(this.parentData.width); |
|
|
|
|
|
// #ifdef MP |
|
|
|
|
|
// 各家小程序因为它们特殊的编译结构,使用float布局 |
|
|
|
|
|
style.float = "left"; |
|
|
|
|
|
// #endif |
|
|
|
|
|
// #ifndef MP |
|
|
|
|
|
// H5和APP使用flex布局 |
|
|
|
|
|
style.flex = `0 0 ${this.$u.addUnit(this.parentData.width)}`; |
|
|
|
|
|
// #endif |
|
|
|
|
|
} |
|
|
|
|
|
if (this.parentData.wrap) { |
|
|
|
|
|
style.width = "100%"; |
|
|
|
|
|
// #ifndef MP |
|
|
|
|
|
// H5和APP使用flex布局,将宽度设置100%,即可自动换行 |
|
|
|
|
|
style.flex = "0 0 100%"; |
|
|
|
|
|
// #endif |
|
|
|
|
|
} |
|
|
|
|
|
return style; |
|
|
} |
|
|
} |
|
|
style.width = this.$u.addUnit(this.elSize); |
|
|
|
|
|
style.height = this.$u.addUnit(this.elSize); |
|
|
|
|
|
return style; |
|
|
|
|
|
}, |
|
|
}, |
|
|
iconColor() { |
|
|
methods: { |
|
|
return this.name === this.parentData.value ? "#ffffff" : "transparent"; |
|
|
updateParentData() { |
|
|
}, |
|
|
this.getParentData("u-radio-group"); |
|
|
iconClass() { |
|
|
}, |
|
|
let classes = []; |
|
|
onClickLabel() { |
|
|
classes.push("u-radio__icon-wrap--" + this.elShape); |
|
|
if (!this.elLabelDisabled && !this.elDisabled) { |
|
|
if (this.name === this.parentData.value) classes.push("u-radio__icon-wrap--checked"); |
|
|
this.setRadioCheckedStatus(); |
|
|
if (this.elDisabled) classes.push("u-radio__icon-wrap--disabled"); |
|
|
} |
|
|
if (this.name === this.parentData.value && this.elDisabled) |
|
|
}, |
|
|
classes.push("u-radio__icon-wrap--disabled--checked"); |
|
|
toggle() { |
|
|
// 支付宝小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效 |
|
|
if (!this.elDisabled) { |
|
|
return classes.join(" "); |
|
|
this.setRadioCheckedStatus(); |
|
|
}, |
|
|
} |
|
|
radioStyle() { |
|
|
}, |
|
|
let style = {}; |
|
|
emitEvent() { |
|
|
if (this.parentData.width) { |
|
|
// u-radio的name不等于父组件的v-model的值时(意味着未选中),才发出事件,避免多次点击触发事件 |
|
|
style.width = this.$u.addUnit(this.parentData.width); |
|
|
if (this.parentData.value != this.name) this.$emit("change", this.name); |
|
|
// #ifdef MP |
|
|
}, |
|
|
// 各家小程序因为它们特殊的编译结构,使用float布局 |
|
|
// 改变组件选中状态 |
|
|
style.float = "left"; |
|
|
// 这里的改变的依据是,更改本组件的parentData.value值为本组件的name值,同时通过父组件遍历所有u-radio实例 |
|
|
// #endif |
|
|
// 将本组件外的其他u-radio的parentData.value都设置为空(由computed计算后,都被取消选中状态),因而只剩下一个为选中状态 |
|
|
// #ifndef MP |
|
|
setRadioCheckedStatus() { |
|
|
// H5和APP使用flex布局 |
|
|
this.emitEvent(); |
|
|
style.flex = `0 0 ${this.$u.addUnit(this.parentData.width)}`; |
|
|
// if (this.parent) { |
|
|
// #endif |
|
|
// this.parent.setValue(this.name); |
|
|
} |
|
|
// this.parentData.value = this.name; |
|
|
if (this.parentData.wrap) { |
|
|
// } |
|
|
style.width = "100%"; |
|
|
if (this.parent) { |
|
|
// #ifndef MP |
|
|
if (this.parentData.value !== this.name) { |
|
|
// H5和APP使用flex布局,将宽度设置100%,即可自动换行 |
|
|
this.parent.setValue(this.name); |
|
|
style.flex = "0 0 100%"; |
|
|
this.parentData.value = this.name; |
|
|
// #endif |
|
|
} else { |
|
|
|
|
|
this.parent.setValue(''); |
|
|
|
|
|
this.parentData.value = ''; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
return style; |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}; |
|
|
methods: { |
|
|
|
|
|
updateParentData() { |
|
|
|
|
|
this.getParentData("u-radio-group"); |
|
|
|
|
|
}, |
|
|
|
|
|
onClickLabel() { |
|
|
|
|
|
if (!this.elLabelDisabled && !this.elDisabled) { |
|
|
|
|
|
this.setRadioCheckedStatus(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
toggle() { |
|
|
|
|
|
if (!this.elDisabled) { |
|
|
|
|
|
this.setRadioCheckedStatus(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
emitEvent() { |
|
|
|
|
|
// u-radio的name不等于父组件的v-model的值时(意味着未选中),才发出事件,避免多次点击触发事件 |
|
|
|
|
|
if (this.parentData.value != this.name) this.$emit("change", this.name); |
|
|
|
|
|
}, |
|
|
|
|
|
// 改变组件选中状态 |
|
|
|
|
|
// 这里的改变的依据是,更改本组件的parentData.value值为本组件的name值,同时通过父组件遍历所有u-radio实例 |
|
|
|
|
|
// 将本组件外的其他u-radio的parentData.value都设置为空(由computed计算后,都被取消选中状态),因而只剩下一个为选中状态 |
|
|
|
|
|
setRadioCheckedStatus() { |
|
|
|
|
|
this.emitEvent(); |
|
|
|
|
|
if (this.parent) { |
|
|
|
|
|
this.parent.setValue(this.name); |
|
|
|
|
|
this.parentData.value = this.name; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
@import "../../libs/css/style.components.scss"; |
|
|
@import "../../libs/css/style.components.scss"; |
|
|
|
|
|
|
|
|
.u-radio { |
|
|
|
|
|
/* #ifndef APP-NVUE */ |
|
|
|
|
|
display: inline-flex; |
|
|
|
|
|
/* #endif */ |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
user-select: none; |
|
|
|
|
|
line-height: 1.8; |
|
|
|
|
|
|
|
|
|
|
|
&__icon-wrap { |
|
|
.u-radio { |
|
|
color: $u-content-color; |
|
|
/* #ifndef APP-NVUE */ |
|
|
@include vue-flex; |
|
|
display: inline-flex; |
|
|
flex: none; |
|
|
/* #endif */ |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
overflow: hidden; |
|
|
box-sizing: border-box; |
|
|
user-select: none; |
|
|
width: 42rpx; |
|
|
line-height: 1.8; |
|
|
height: 42rpx; |
|
|
|
|
|
color: transparent; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
transition-property: color, border-color, background-color; |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
border: 1px solid #c8c9cc; |
|
|
|
|
|
transition-duration: 0.2s; |
|
|
|
|
|
|
|
|
|
|
|
/* #ifdef MP-TOUTIAO */ |
|
|
&__icon-wrap { |
|
|
// 头条小程序兼容性问题,需要设置行高为0,否则图标偏下 |
|
|
color: $u-content-color; |
|
|
&__icon { |
|
|
@include vue-flex; |
|
|
line-height: 0; |
|
|
flex: none; |
|
|
} |
|
|
align-items: center; |
|
|
/* #endif */ |
|
|
justify-content: center; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
width: 42rpx; |
|
|
|
|
|
height: 42rpx; |
|
|
|
|
|
color: transparent; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
transition-property: color, border-color, background-color; |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
border: 1px solid #c8c9cc; |
|
|
|
|
|
transition-duration: 0.2s; |
|
|
|
|
|
|
|
|
&--circle { |
|
|
/* #ifdef MP-TOUTIAO */ |
|
|
border-radius: 100%; |
|
|
// 头条小程序兼容性问题,需要设置行高为0,否则图标偏下 |
|
|
} |
|
|
&__icon { |
|
|
|
|
|
line-height: 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
&--square { |
|
|
/* #endif */ |
|
|
border-radius: 3px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&--checked { |
|
|
&--circle { |
|
|
color: #fff; |
|
|
border-radius: 100%; |
|
|
background-color: #2979ff; |
|
|
} |
|
|
border-color: #2979ff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&--disabled { |
|
|
&--square { |
|
|
background-color: #ebedf0; |
|
|
border-radius: 3px; |
|
|
border-color: #c8c9cc; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
&--checked { |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
background-color: #2979ff; |
|
|
|
|
|
border-color: #2979ff; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
&--disabled--checked { |
|
|
&--disabled { |
|
|
color: #c8c9cc !important; |
|
|
background-color: #ebedf0; |
|
|
|
|
|
border-color: #c8c9cc; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&--disabled--checked { |
|
|
|
|
|
color: #c8c9cc !important; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&__label { |
|
|
&__label { |
|
|
word-wrap: break-word; |
|
|
word-wrap: break-word; |
|
|
margin-left: 10rpx; |
|
|
margin-left: 10rpx; |
|
|
margin-right: 24rpx; |
|
|
margin-right: 24rpx; |
|
|
color: $u-content-color; |
|
|
color: $u-content-color; |
|
|
font-size: 30rpx; |
|
|
font-size: 30rpx; |
|
|
|
|
|
|
|
|
&--disabled { |
|
|
&--disabled { |
|
|
color: #c8c9cc; |
|
|
color: #c8c9cc; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|