* 对照AntDesign,实现了Divider分割线组件的Vue版本
* 完成了Divider分割线组件演示代码
This commit is contained in:
parent
320fba546b
commit
b26389a034
8 changed files with 282 additions and 1 deletions
|
@ -62,6 +62,7 @@ nav {
|
|||
<li><router-link to="/color-picker">ColorPicker</router-link></li>
|
||||
<li><router-link to="/auto-complete">AutoComplete</router-link></li>
|
||||
<li><router-link to="/scroll">Scroll</router-link></li>
|
||||
<li><router-link to="/divider">Divider</router-link></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<router-view></router-view>
|
||||
|
|
|
@ -202,6 +202,10 @@ const router = new VueRouter({
|
|||
{
|
||||
path: '/scroll',
|
||||
component: (resolve) => require(['./routers/scroll.vue'], resolve)
|
||||
},
|
||||
{
|
||||
path: '/divider',
|
||||
component: (resolve) => require(['./routers/divider.vue'], resolve)
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
65
examples/routers/divider.vue
Normal file
65
examples/routers/divider.vue
Normal file
|
@ -0,0 +1,65 @@
|
|||
<template>
|
||||
<Row :gutter="16">
|
||||
<Col span="12">
|
||||
<Card title="horizontal divider">
|
||||
<div>
|
||||
<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.</p>
|
||||
|
||||
<Divider />
|
||||
|
||||
<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.</p>
|
||||
|
||||
<Divider>iView </Divider>
|
||||
|
||||
<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.</p>
|
||||
|
||||
<Divider dashed />
|
||||
|
||||
<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.</p>
|
||||
|
||||
<Divider orientation="left">iView</Divider>
|
||||
|
||||
<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.</p>
|
||||
|
||||
<Divider orientation="right">iView</Divider>
|
||||
|
||||
<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.</p>
|
||||
|
||||
</div>
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span="12">
|
||||
<Card title="vertical divider">
|
||||
<div>
|
||||
iView
|
||||
<Divider type="vertical divider" />
|
||||
<a href="#">Components</a>
|
||||
<Divider type="vertical" />
|
||||
<a href="#">Divider</a>
|
||||
</div>
|
||||
</Card>
|
||||
</Col>
|
||||
</Row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue