ant-design-vue/components/transfer/demo/index.vue

62 lines
1.8 KiB
Vue
Raw Normal View History

2018-04-06 16:20:45 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Basic from './basic.md';
import Search from './search.md';
import Advanced from './advanced.md';
import CustomItem from './custom-item.md';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-04-06 16:20:45 +00:00
const md = {
cn: `# 穿梭框
双栏穿梭选择框
## 何时使用
- 需要在多个可选项中进行多选时
- 比起 Select TreeSelect穿梭框占据更大的空间可以展示可选项的更多信息
穿梭选择框用直观的方式在两栏中移动元素完成选择行为
2018-04-06 16:20:45 +00:00
选择一个或以上的选项后点击对应的方向键可以把选中的选项移动到另一栏
其中左边一栏为 \`source\`,右边一栏为 \`target\`API 的设计也反映了这两个概念。
2018-04-06 16:20:45 +00:00
## 代码演示`,
us: `# Transfer
Double column transfer choice box.
## When To Use
- It is a select control essentially which can be use for selecting multiple items.
- Transfer can display more information for items and take up more space.
Transfer the elements between two columns in an intuitive and efficient way.
One or more elements can be selected from either column, one click on the proper \`direction\` button, and the transfer is done. The left column is considered the \`source\` and the right column is considered the \`target\`. As you can see in the API description, these names are reflected in.
2018-04-06 16:20:45 +00:00
## Examples
`,
2019-01-12 03:33:27 +00:00
};
2018-04-06 16:20:45 +00:00
export default {
category: 'Components',
subtitle: '穿梭框',
type: 'Data Entry',
title: 'Transfer',
cols: '1',
2019-09-28 12:45:07 +00:00
render() {
2018-04-06 16:20:45 +00:00
return (
<div>
2019-09-28 12:45:07 +00:00
<md cn={md.cn} us={md.us} />
2018-04-06 16:20:45 +00:00
<Basic />
<Search />
<Advanced />
<CustomItem />
<api>
2019-09-28 12:45:07 +00:00
<template slot="cn">
<CN />
2018-04-06 16:20:45 +00:00
</template>
2019-09-28 12:45:07 +00:00
<US />
2018-04-06 16:20:45 +00:00
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-04-06 16:20:45 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-04-06 16:20:45 +00:00
</script>