Divier add plain prop

This commit is contained in:
梁灏 2021-01-14 16:27:52 +08:00
parent 6f22675f39
commit 2bae54e9fe
3 changed files with 17 additions and 4 deletions

View file

@ -37,6 +37,11 @@
return oneOf(value, ['small', 'default']);
},
default: 'default'
},
// 4.5.0
plain: {
type: Boolean,
default: false
}
},
computed: {
@ -51,7 +56,8 @@
{
[`${prefixCls}-with-text`]: this.hasSlot && this.orientation === 'center',
[`${prefixCls}-with-text-${this.orientation}`]: this.hasSlot,
[`${prefixCls}-dashed`]: !!this.dashed
[`${prefixCls}-dashed`]: !!this.dashed,
[`${prefixCls}-plain`]: this.plain
}
];
},
@ -62,4 +68,4 @@
}
}
};
</script>
</script>