1.1.2 • Published 7 months ago

custom-transfer v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

custom-transfer

介绍

基于 vue2+element-ui 自定义的穿梭框、切换左侧数据源保留右侧数据、可以对数据进行过滤

使用方式 cdn

https://cdn.jsdelivr.net/npm/custom-transfer

使用方式 npm

npm i custom-tramsfer -S

main.js

import Vue from "vue";
import App from "./App.vue";
import customTransfer from "custom-transfer";
import "custom-transfer/custom-transfer.css";
Vue.use(customTransfer);
new Vue({
	el: "#app",
	render: h => h(App),
});

在线体验

https://mygirs.github.io/transfer-demo/index.html

源码地址

https://github.com/MyGirs/custorm-transfer

Attributes

参数说明类型默认值
sourceList数据源Array[]
leftButtonText左边按钮文案String到左边
rightButtonText右边按钮文案String到右边
leftText左边全选文案String全选
rightText右边全选文案String全选
leftIcon左边按钮 iconStringel-icon-arrow-left
rightIcon右边按钮 iconStringel-icon-arrow-right
pageSize分页显示数 isPaging=true 的时候有效Number20
isPaging是否分页Booleantrue
options配置项 index 用于排序 name 展示名称 parent 对应的父级节点 id 唯一标识 这些参数必有Object{ index: "index", name: "name", parent: "parent", id: "id" }

Methods

事件名称说明参数
clearSelectedList清空右侧数据
clearSelectedValue清除右侧勾选状态
getSelectedValue获取右侧勾选数据返回 selectedIdList Array
getSelectedList获取右侧数据返回 selectedList Array
1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

8 months ago