update Divider

This commit is contained in:
梁灏 2018-06-20 11:31:38 +08:00
parent 32fd4ffa06
commit e9ad2b7a94
2 changed files with 104 additions and 98 deletions

View file

@ -1,63 +1,73 @@
<template>
<Row :gutter="16">
<Col span="12">
<i-col span="12">
<Card title="horizontal divider">
<div>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
<Divider/>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
<Divider>iView </Divider>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
<Divider dashed/>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
<Divider orientation="left">iView</Divider>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
<Divider orientation="right">iView</Divider>
<p>iView is a set of UI components and widgets built on Vue.js.
<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.</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.
</p>
</div>
</Card>
</Col>
<Col span="12">
</i-col>
<i-col span="12">
<Card title="vertical divider">
<div>
iView
<Divider type="vertical divider" />
<Divider type="vertical" />
<a href="#">Components</a>
<Divider type="vertical" />
<a href="#">Divider</a>
</div>
</Card>
</Col>
</i-col>
</Row>
</template>
<script>
export default {
}
export default {}
</script>
<style>

View file

@ -16,14 +16,14 @@ export default {
props: {
type: {
type: String,
default() { return 'horizontal'; },
default: 'horizontal',
validator (value) {
return oneOf(value, ['horizontal', 'vertical']);
}
},
orientation: {
type: String,
default() { return 'left'; },
default: 'left',
validator (value) {
return oneOf(value, ['left', 'right']);
}
@ -55,7 +55,3 @@ export default {
}
}
</script>
<style>
</style>