(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1461:function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[[e("demo-box",{attrs:{jsfiddle:{html:'\n
\n \n \n
\n',script:"\n export default {\n data() {\n const mockData = [];\n for (let i = 0; i < 20; i++) {\n mockData.push({\n key: i.toString(),\n title: `content${i + 1}`,\n description: `description of content${i + 1}`,\n disabled: i % 3 < 1,\n });\n }\n\n const oriTargetKeys = mockData.filter(item => +item.key % 3 > 1).map(item => item.key);\n return {\n mockData,\n targetKeys: oriTargetKeys,\n selectedKeys: ['1', '4'],\n disabled: false,\n };\n },\n methods: {\n handleChange(nextTargetKeys, direction, moveKeys) {\n this.targetKeys = nextTargetKeys;\n\n console.log('targetKeys: ', nextTargetKeys);\n console.log('direction: ', direction);\n console.log('moveKeys: ', moveKeys);\n },\n handleSelectChange(sourceSelectedKeys, targetSelectedKeys) {\n this.selectedKeys = [...sourceSelectedKeys, ...targetSelectedKeys];\n\n console.log('sourceSelectedKeys: ', sourceSelectedKeys);\n console.log('targetSelectedKeys: ', targetSelectedKeys);\n },\n handleScroll(direction, e) {\n console.log('direction:', direction);\n console.log('target:', e.target);\n },\n handleDisable(disabled) {\n this.disabled = disabled;\n },\n },\n };\n",style:null,us:"\n#### Basic\nThe most basic usage of `Transfer` involves providing the source data and target keys arrays, plus the rendering and some callback functions.\n",cn:"\n#### 基本用法\n最基本的用法,展示了 `dataSource`、`targetKeys`、每行的渲染函数 `render` 以及回调函数 `change` `selectChange` `scroll` 的用法。\n",sourceCode:'\n