This commit is contained in:
梁灏 2019-03-05 09:18:44 +08:00
parent b778e4ff4f
commit f308dcac80
3 changed files with 16 additions and 3 deletions

View file

@ -17,7 +17,7 @@
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.
</p> </p>
<Divider>iView </Divider> <Divider size="small">iView</Divider>
<p> <p>
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.
@ -31,7 +31,7 @@
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.
</p> </p>
<Divider dashed orientation="left">iView Developer</Divider> <Divider dashed orientation="left" size="small">iView Developer</Divider>
<p> <p>
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.
iView is a set of UI components and widgets built on Vue.js. iView is a set of UI components and widgets built on Vue.js.

View file

@ -31,6 +31,12 @@
dashed: { dashed: {
type: Boolean, type: Boolean,
default: false, default: false,
},
size: {
validator (value) {
return oneOf(value, ['small', 'default']);
},
default: 'default'
} }
}, },
computed: { computed: {
@ -41,6 +47,7 @@
return [ return [
`${prefixCls}`, `${prefixCls}`,
`${prefixCls}-${this.type}`, `${prefixCls}-${this.type}`,
`${prefixCls}-${this.size}`,
{ {
[`${prefixCls}-with-text`]: this.hasSlot && this.orientation === 'center', [`${prefixCls}-with-text`]: this.hasSlot && this.orientation === 'center',
[`${prefixCls}-with-text-${this.orientation}`]: this.hasSlot, [`${prefixCls}-with-text-${this.orientation}`]: this.hasSlot,

View file

@ -45,9 +45,15 @@
} }
} }
&-horizontal&-small&-with-text-center,
&-horizontal&-small&-with-text-left,
&-horizontal&-small&-with-text-right{
font-size: @font-size-base;
margin: 8px 0;
}
&-horizontal&-with-text-left, &-horizontal&-with-text-left,
&-horizontal&-with-text-right { &-horizontal&-with-text-right {
font-size: @font-size-base;
.@{divider-prefix-cls}-inner-text { .@{divider-prefix-cls}-inner-text {
display: inline-block; display: inline-block;
padding: 0 10px; padding: 0 10px;