0.0.5 • Published 11 months ago

vue-transfer-three v0.0.5

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

vue-transfer-three 三栏穿梭框

transferThree component ,the components is based on ElementUI's transfer component, it has three transfer

该三栏穿梭框是基于element中的transfer穿梭框实现的,目前如果需要使用该组件需要引入elementui框架,后续会抽离出来使其不安装element也能使用。也会继续优化该插件的。

Build Setup

# if you need to use this component,your vue project must install ElementUI and use it
npm i element-ui -S

# use it in your project,for example

  import transferThree from 'vue-transfer-three/packages/transferThree'
  export default {
    components: {
      transferThree
    }
  }

Attributes

参数说明类型可选值默认值
data中间Transfer的数据源array[{ key, label, disabled }][ ]
leftData左边Transfer的数据源array[{ key, label, disabled }][ ]
rightData右边Transfer的数据源array[{ key, label, disabled }][ ]
titles自定义列表标题array['列表 1', '列表 2','列表 3']
left-default-checked初始状态下左侧列表的已勾选项的 key 数组array[ ]
source-default-checked初始状态下中间列表的已勾选项的 key 数组array[ ]
right-default-checked初始状态下右侧列表的已勾选项的 key 数组array[ ]
filterable是否可搜索booleanfalse
filter-placeholder搜索框占位符string请输入搜索内容
filter-method自定义搜索方法function
render-content自定义数据项渲染函数function(h, option)

Slot

name说明
left-footer左侧列表底部的内容
source-footer中间列表底部的内容
right-footer右侧列表底部的内容

Methods

方法名说明参数
clearQuery清空某个面板的搜索关键词'left' / 'middle' /'right',指定需要清空的面板

Events

事件名称说明回调参数
change列表元素发生变化时触发数据移动的方向、发生移动的数据key数组 、左侧数据列表、中间数据列表、右边数据列表
left-check-change左侧列表元素被用户选中 / 取消选中时触发当前被选中的元素的 key 数组、选中状态发生变化的元素的 key 数组
middle-check-change中间列表元素被用户选中 / 取消选中时触发当前被选中的元素的 key 数组、选中状态发生变化的元素的 key 数组
right-check-change右侧列表元素被用户选中 / 取消选中时触发当前被选中的元素的 key 数组、选中状态发生变化的元素的 key 数组
0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.1.0

11 months ago