chore: improve code style

This commit is contained in:
陈嘉涵
2019-12-16 11:29:59 +08:00
parent a7535cc948
commit 0f4ddbf13f
5 changed files with 42 additions and 21 deletions
+1 -1
View File
@@ -94,8 +94,8 @@ function AddressItem(
return (
<Cell
class={bem({ disabled })}
valueClass={bem('value')}
border={false}
valueClass={bem('value')}
clickable={switchable && !disabled}
scopedSlots={{
default: genContent,
+5 -5
View File
@@ -64,11 +64,11 @@ function AddressList(
return (
<div class={bem()} {...inherit(ctx)}>
{slots.top && slots.top()}
{slots.top?.()}
<RadioGroup value={props.value}>{List}</RadioGroup>
{props.disabledText && <div class={bem('disabled-text')}>{props.disabledText}</div>}
{DisabledList}
{slots.default && slots.default()}
{slots.default?.()}
<div class={bem('bottom')}>
<Button
round
@@ -87,15 +87,15 @@ function AddressList(
AddressList.props = {
list: Array,
value: [Number, String],
disabledList: Array,
disabledText: String,
addButtonText: String,
value: [Number, String],
defaultTagText: String,
switchable: {
type: Boolean,
default: true
},
defaultTagText: String
}
};
export default createComponent<AddressListProps>(AddressList);