chore: add trailingComma
This commit is contained in:
@@ -47,22 +47,22 @@ export default {
|
||||
dashed: '虚线',
|
||||
withText: '展示文本',
|
||||
contentPosition: '内容位置',
|
||||
customStyle: '自定义样式'
|
||||
customStyle: '自定义样式',
|
||||
},
|
||||
'en-US': {
|
||||
text: 'Text',
|
||||
dashed: 'Dashed',
|
||||
withText: 'With Text',
|
||||
contentPosition: 'Content Position',
|
||||
customStyle: 'Custom Style'
|
||||
}
|
||||
customStyle: 'Custom Style',
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
BLUE
|
||||
BLUE,
|
||||
};
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ function Divider(
|
||||
class={bem({
|
||||
dashed: props.dashed,
|
||||
hairline: props.hairline,
|
||||
[`content-${props.contentPosition}`]: slots.default
|
||||
[`content-${props.contentPosition}`]: slots.default,
|
||||
})}
|
||||
{...inherit(ctx, true)}
|
||||
>
|
||||
@@ -40,12 +40,12 @@ Divider.props = {
|
||||
dashed: Boolean,
|
||||
hairline: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
default: true,
|
||||
},
|
||||
contentPosition: {
|
||||
type: String,
|
||||
default: 'center'
|
||||
}
|
||||
default: 'center',
|
||||
},
|
||||
};
|
||||
|
||||
export default createComponent<DividerProps>(Divider);
|
||||
|
||||
Reference in New Issue
Block a user