{"size": 66284, "ext": "js", "max_stars_repo_path": "ghpages/app.e3e70ad71e416e333831.js", "max_stars_repo_name": "tinper-acs/ref-filter-table", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ghpages/app.e3e70ad71e416e333831.js", "max_issues_repo_name": "tinper-acs/ref-filter-table", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ghpages/app.e3e70ad71e416e333831.js", "max_forks_repo_name": "tinper-acs/ref-filter-table", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 66284.0, "max_line_length": 66284, "alphanum_fraction": 0.7187707441}
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{153:function(module,exports,__webpack_require__){"use strict";(function(module){exports.__esModule=!0,exports.createRefMultipleTableModal=exports.createRefMultipleTable=exports.RefFilterTable=exports.RefFilterTableWithInput=void 0;var _assign=__webpack_require__(22),_assign2=_interopRequireDefault(_assign),_setPrototypeOf=__webpack_require__(17),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),_create=__webpack_require__(19),_create2=_interopRequireDefault(_create),_extends=_assign2.default||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_react=__webpack_require__(1),_react2=_interopRequireDefault(_react),_RefFilterTableBaseUI=__webpack_require__(481),_RefFilterTableBaseUI2=_interopRequireDefault(_RefFilterTableBaseUI),_RefCoreWithInput=__webpack_require__(611),_RefCoreWithInput2=_interopRequireDefault(_RefCoreWithInput),_createApi=__webpack_require__(661),_RefCoreGlobal=__webpack_require__(662),_RefCoreGlobal2=_interopRequireDefault(_RefCoreGlobal);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=(0,_create2.default)(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(e,a):e.__proto__=a)}function RefFilterTable(e){return _react2.default.createElement(_RefCoreGlobal2.default,e,_react2.default.createElement(_RefFilterTableBaseUI2.default,null))}function createRefMultipleTable(e,a,t){return(0,_createApi.createRefInput)(e,_react2.default.createElement(RefFilterTableWithInput,null),a,function(e){"function"==typeof t&&t(e)})}function createRefMultipleTableModal(e,a){return(0,_createApi.createRefModal)(_extends({component:_react2.default.createElement(RefFilterTable,null)},e),function(e){"function"==typeof a&&a(e)})}__webpack_require__(663),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).enterModule;e&&e(module)}();var RefFilterTableWithInput=function(_Component){function RefFilterTableWithInput(){return _classCallCheck(this,RefFilterTableWithInput),_possibleConstructorReturn(this,_Component.apply(this,arguments))}return _inherits(RefFilterTableWithInput,_Component),RefFilterTableWithInput.prototype.render=function(){return _react2.default.createElement(_RefCoreWithInput2.default,this.props,_react2.default.createElement(RefFilterTable,null))},RefFilterTableWithInput.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},RefFilterTableWithInput}(_react.Component),_default=_RefFilterTableBaseUI2.default;exports.default=_default,exports.RefFilterTableWithInput=RefFilterTableWithInput,exports.RefFilterTable=RefFilterTable,exports.createRefMultipleTable=createRefMultipleTable,exports.createRefMultipleTableModal=createRefMultipleTableModal,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).default;e&&(e.register(RefFilterTable,"RefFilterTable","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/index.js"),e.register(createRefMultipleTable,"createRefMultipleTable","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/index.js"),e.register(createRefMultipleTableModal,"createRefMultipleTableModal","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/index.js"),e.register(RefFilterTableWithInput,"RefFilterTableWithInput","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/index.js"),e.register(_default,"default","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/index.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(28)(module))},332:function(e,a,t){var n=t(664);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t(152)(n,r);n.locals&&(e.exports=n.locals)},340:function(module,exports,__webpack_require__){"use strict";(function(module){var _setPrototypeOf=__webpack_require__(17),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),_create=__webpack_require__(19),_create2=_interopRequireDefault(_create),_react=__webpack_require__(1),_react2=_interopRequireDefault(_react),_reactDom=__webpack_require__(3),_reactDom2=_interopRequireDefault(_reactDom),_beeLayout=__webpack_require__(351),_beePanel=__webpack_require__(357),_beeDrawer=__webpack_require__(393),_beeDrawer2=_interopRequireDefault(_beeDrawer),_beeClipboard=__webpack_require__(404),_beeClipboard2=_interopRequireDefault(_beeClipboard);__webpack_require__(476);var _Demo=__webpack_require__(480),_Demo2=_interopRequireDefault(_Demo),_Demo3=__webpack_require__(667),_Demo4=_interopRequireDefault(_Demo3);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=(0,_create2.default)(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(e,a):e.__proto__=a)}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).enterModule;e&&e(module)}();var DemoArray=[{example:_react2.default.createElement(_Demo2.default,null),title:" 行内搜索表格参照示例1",code:'/**\n *\n * @title 行内搜索表格参照示例1\n * @description 使用RefMultipleTableWalsinBaseUI,不带有input\n *\n */\nimport React, { Component } from \'react\';\nimport RefMultipleTableWalsinBaseUI from \'../../src/index\';\nimport  \'../../src/index.less\';\n\nimport { Button, Form } from \'tinper-bee\';\nconst props = {\n    placeholder: "自定义placeholder",\n    title: \'复杂表格参照\',\n    backdrop: true,\n    disabled: false,\n    multiple: true,\n    strictMode: false,\n    miniSearch: false,\n    emptyBut: true,\n    valueField: "refpk",\n    displayField: "{refname}",\n    className:\'ref-walsin-modal\',\n}\nclass Demo1 extends Component {\n\n    constructor(props) {\n        super(props);\n        this.state = {\n            showLoading:false,\n            showModal:false,\n        };\n        this.tableData = [{"rownum_":1,"code":"001","name":"人员1","mobile":"15011430230","refcode":"001","refpk":"cc791b77-bd18-49ab-b3ec-ee83cd40012a","id":"cc791b77-bd18-49ab-b3ec-ee83cd40012a","refname":"人员1","email":"11@11.com","key":"cc791b77-bd18-49ab-b3ec-ee83cd40012a"},{"rownum_":2,"code":"002","name":"人员2","mobile":"15011323234","refcode":"002","refpk":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","id":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","refname":"人员2","email":"22@11.com","key":"de2d4d09-51ec-4108-8def-d6a6c5393c3b"},{"rownum_":3,"code":"003","name":"人员3","mobile":"15011430232","refcode":"003","refpk":"004989bb-a705-45ce-88f3-662f87ee6e52","id":"004989bb-a705-45ce-88f3-662f87ee6e52","refname":"人员3","email":"33@33.com","key":"004989bb-a705-45ce-88f3-662f87ee6e52"},{"rownum_":4,"code":"004","name":"人员4","mobile":"15011430234","refcode":"004","refpk":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd","id":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd","refname":"人员4","email":"33@34.com","key":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd"},{"rownum_":5,"code":"005","name":"人员5","mobile":"15011430235","refcode":"005","refpk":"5e3a85ec-5e14-4734-8b3a-1e6168426c89","id":"5e3a85ec-5e14-4734-8b3a-1e6168426c89","refname":"人员5","email":"55@26.com","key":"5e3a85ec-5e14-4734-8b3a-1e6168426c89"},{"rownum_":6,"code":"006","name":"人员6","mobile":"15011323232","refcode":"006","refpk":"112621b9-b7ae-41b9-9428-61779334c5d6","id":"112621b9-b7ae-41b9-9428-61779334c5d6","refname":"人员6","email":"66@516.com","key":"112621b9-b7ae-41b9-9428-61779334c5d6"},{"rownum_":7,"code":"007","name":"人员7","mobile":"15011234567","refcode":"007","refpk":"394bba90-ed0f-4794-a44e-fd9ce6e9257d","id":"394bba90-ed0f-4794-a44e-fd9ce6e9257d","refname":"人员7","email":"55@4.com","key":"394bba90-ed0f-4794-a44e-fd9ce6e9257d"},{"rownum_":8,"code":"008","name":"人员8","mobile":"15011327890","refcode":"008","refpk":"a9f4c869-ca0b-4d12-847e-00eca08bfef6","id":"a9f4c869-ca0b-4d12-847e-00eca08bfef6","refname":"人员8","email":"55@556.com","key":"a9f4c869-ca0b-4d12-847e-00eca08bfef6"},{"rownum_":9,"code":"bpm01","name":"张一","mobile":"18777777777","refcode":"bpm01","refpk":"0dc47840-873a-4ed3-8ae7-c2335a76b385","id":"0dc47840-873a-4ed3-8ae7-c2335a76b385","refname":"张一","email":"bpm01@qq.com","key":"0dc47840-873a-4ed3-8ae7-c2335a76b385"},{"rownum_":10,"code":"bpm02","name":"张二","mobile":"18788888888","refcode":"bpm02","refpk":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550","id":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550","refname":"张二","email":"bpm02@qq.com","key":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550"}];\n        this.fliterColumn =  [{\n            dataIndex: "code",\n            filterDropdown: "show",\n            filterDropdownType: "string",\n            filterType: "text",\n            filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n        },{\n            dataIndex: "name",\n            filterDropdown: "show",\n            filterDropdownType: "string",\n            filterType: "text",\n            filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n        },{\n            dataIndex: "email",\n            filterDropdown: "show",\n            filterDropdownType: "string",\n            filterType: "dropdown",\n            filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n        },\n        {\n            dataIndex: "mobile",\n            filterDropdown: "show",\n            filterDropdownType: "string",\n            filterType: "dropdown",\n            filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n        }];\n        this.pageCount = 10;\n        this.pageSize= 10;\n        this.currPageIndex = 1;\n        this.fliterFormInputs = [];\n        this.filterInfo=\'\';\n\n    }\n    componentDidMount(){\n        let _this = this;\n        setTimeout(() => {\n            _this.tableData = [{"rownum_":1,"code":"0011","name":"人员122","mobile":"15011430230","refcode":"22001","refpk":"c22c791b77-bd18-49ab-b3ec-ee83cd40012a","id":"cc791b77-bd18-49ab-b3ec-ee83cd40012a","refname":"人员1","email":"11@11.com","key":"cc791b77-bd18-49ab-b3ec-ee83cd40012a"},{"rownum_":2,"code":"002","name":"人员2","mobile":"15011323234","refcode":"002","refpk":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","id":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","refname":"人员2","email":"22@11.com","key":"de2d4d09-51ec-4108-8def-d6a6c5393c3b"},{"rownum_":3,"code":"003","name":"人员3","mobile":"15011430232","refcode":"003","refpk":"004989bb-a705-45ce-88f3-662f87ee6e52","id":"004989bb-a705-45ce-88f3-662f87ee6e52","refname":"人员3","email":"33@33.com","key":"004989bb-a705-45ce-88f3-662f87ee6e52"},{"rownum_":4,"code":"004","name":"人员4","mobile":"15011430234","refcode":"004","refpk":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd","id":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd","refname":"人员4","email":"33@34.com","key":"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd"},{"rownum_":5,"code":"005","name":"人员5","mobile":"15011430235","refcode":"005","refpk":"5e3a85ec-5e14-4734-8b3a-1e6168426c89","id":"5e3a85ec-5e14-4734-8b3a-1e6168426c89","refname":"人员5","email":"55@26.com","key":"5e3a85ec-5e14-4734-8b3a-1e6168426c89"},{"rownum_":6,"code":"006","name":"人员6","mobile":"15011323232","refcode":"006","refpk":"112621b9-b7ae-41b9-9428-61779334c5d6","id":"112621b9-b7ae-41b9-9428-61779334c5d6","refname":"人员6","email":"66@516.com","key":"112621b9-b7ae-41b9-9428-61779334c5d6"},{"rownum_":7,"code":"007","name":"人员7","mobile":"15011234567","refcode":"007","refpk":"394bba90-ed0f-4794-a44e-fd9ce6e9257d","id":"394bba90-ed0f-4794-a44e-fd9ce6e9257d","refname":"人员7","email":"55@4.com","key":"394bba90-ed0f-4794-a44e-fd9ce6e9257d"},{"rownum_":8,"code":"008","name":"人员8","mobile":"15011327890","refcode":"008","refpk":"a9f4c869-ca0b-4d12-847e-00eca08bfef6","id":"a9f4c869-ca0b-4d12-847e-00eca08bfef6","refname":"人员8","email":"55@556.com","key":"a9f4c869-ca0b-4d12-847e-00eca08bfef6"},{"rownum_":9,"code":"bpm01","name":"张一","mobile":"18777777777","refcode":"bpm01","refpk":"0dc47840-873a-4ed3-8ae7-c2335a76b385","id":"0dc47840-873a-4ed3-8ae7-c2335a76b385","refname":"张一","email":"bpm01@qq.com","key":"0dc47840-873a-4ed3-8ae7-c2335a76b385"},{"rownum_":10,"code":"bpm02","name":"张二","mobile":"18788888888","refcode":"bpm02","refpk":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550","id":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550","refname":"张二","email":"bpm02@qq.com","key":"c97b59e2-9fa3-44d7-93b0-1be52f7aa550"}];\n            _this.setState({\n                number:Math.random()\n            })\n        }, 5000);\n    }\n\n    // 复杂查询\n    searchFilterInfo = (filterInfo) => {\n        console.log(filterInfo)\n    }\n    /** start:分页 */\n    /**\n     * 跳转到制定页数的操作\n     * @param {number} index 跳转页数\n     */\n    handlePagination = (index) => {\n        console.log(index)\n    }\n\t/**\n\t * 选择每页数据个数\n\t */\n    dataNumSelect = (index, pageSize) => {\n       console.log(index,pageSize)\n    }\n    /** end:分页*/\n    onSave = (item) => {\n        // console.log(\'save\',item);\n        this.checkedArray = item;\n        this.setState({ \n            showModal: false,\n            matchData:item,\n        })\n    }\n    onCancel = (item) => {\n        this.setState({ showModal: false })\n    }\n    getFilterColumn = () =>{\n        let keyList = ["code", "name", "email", "mobile"];\n        let titleList  = ["人员编码", "人员名称", "人员邮箱", "人员电话"];\n        let fMap = {};\n\t\tthis.fliterColumn.forEach(element => {\n\t\t\tfMap[element.dataIndex] = element;\n        });\n        let colunmsList = keyList.map((item, index) => {\n\t\t\treturn {\n\t\t\t\tkey: item,\n\t\t\t\tdataIndex: item,\n\t\t\t\ttitle: titleList[index],\n\t\t\t\t...fMap[item]\t\t\t\n\t\t\t}\n        });\n        if (colunmsList.length === 0) {\n\t\t\tcolunmsList = [{ title: "未传递表头数据", dataIndex: "nodata", key: "nodata" }];\n\t\t\t\n\t\t} else if(!props.multiple) {\n\t\t\t//单选时用对号符号标记当前行选中\n\t\t\tcolunmsList.unshift({\n\t\t\t\ttitle: " ",\n\t\t\t\tdataIndex: "a",\n\t\t\t\tkey: "a",\n\t\t\t\twidth: 45,\n\t\t\t\trender(text, record, index) {\n\t\t\t\t\treturn <div className={`ref-multiple-table-radio ${record._checked ? \'ref-multiple-table-radio-on\' : \'\'}`}/>//record._checked ? // <Icon className="uf-correct" style={{color: \'#0558f5\'}}/> : \'\'\n\t\t\t\t}\n\t\t\t})\n\t\t\t\n        }\n        this.columnsData = colunmsList;\n\n    }\n    onFilterChange = (field,value,condition) =>{\n        alert(`field=${field},value=${value},condition=${condition}`)\n    }\n    render() {\n        let { showLoading, showModal } = this.state;\n        let { columnsData, tableData, pageCount, pageSize, currPageIndex, \n            fliterFormInputs, filterInfo, checkedArray } = this;\n        let { dataNumSelect, handlePagination, searchFilterInfo } = this;\n        let childrenProps = Object.assign(Object.assign({}, props), {\n            showModal: showModal,\n            showLoading: showLoading,\n            columnsData: columnsData,\n            tableData: tableData,\n            checkedArray: checkedArray,\n            pageCount: pageCount,\n            pageSize: pageSize,\n            currPageIndex: currPageIndex,\n            fliterFormInputs: fliterFormInputs,\n            filterInfo: filterInfo,\n            dataNumSelect: dataNumSelect,\n            handlePagination: handlePagination,\n            searchFilterInfo: searchFilterInfo,\n            onSave: this.onSave,\n            onCancel: this.onCancel,\n            fliterColumn:this.fliterColumn,            \n        });\n        this.getFilterColumn()\n        return (\n            <div className="demoPadding">\n                <RefMultipleTableWalsinBaseUI\n                    {...childrenProps}\n                    matchData={this.state.matchData}\n                    onFilterChange={this.onFilterChange}\n                />\n                <Button\n                    colors="primary"\n                    onClick={() => {\n                        this.setState({ showModal: true })\n                    }}>打开参照</Button>\n            </div>\n        )\n    }\n}\n\n\n\n',desc:" 使用RefMultipleTableWalsinBaseUI,不带有input"},{example:_react2.default.createElement(_Demo4.default,null),title:" 行内搜索表格参照示例2",code:'/**\n *\n * @title 行内搜索表格参照示例2\n * @description 使用RefFilterTableWithInput，表格参照带有input\n *\n */\nimport React, { Component } from \'react\';\nimport { Button, Form } from \'tinper-bee\';\nimport { RefFilterTableWithInput }  from \'../../src/index\';\nimport  \'../../src/index.less\';\nlet props = {\n    placeholder: "placehholder",\n    title: \'复杂表格参照\',\n    backdrop: true,\n    disabled: false,\n    multiple: false,\n    strictMode: true,\n    miniSearch: false,\n    valueField: "refpk",\n    displayField: "{refname}",\n    tableData: [{ "rownum_": 1, "code": "001", "name": "人员1", "mobile": "15011430230", "refcode": "001", "refpk": "cc791b77-bd18-49ab-b3ec-ee83cd40012a", "id": "cc791b77-bd18-49ab-b3ec-ee83cd40012a", "refname": "人员1", "email": "11@11.com", "key": "cc791b77-bd18-49ab-b3ec-ee83cd40012a" }, { "rownum_": 2, "code": "002", "name": "人员2", "mobile": "15011323234", "refcode": "002", "refpk": "de2d4d09-51ec-4108-8def-d6a6c5393c3b", "id": "de2d4d09-51ec-4108-8def-d6a6c5393c3b", "refname": "人员2", "email": "22@11.com", "key": "de2d4d09-51ec-4108-8def-d6a6c5393c3b" }, { "rownum_": 3, "code": "003", "name": "人员3", "mobile": "15011430232", "refcode": "003", "refpk": "004989bb-a705-45ce-88f3-662f87ee6e52", "id": "004989bb-a705-45ce-88f3-662f87ee6e52", "refname": "人员3", "email": "33@33.com", "key": "004989bb-a705-45ce-88f3-662f87ee6e52" }, { "rownum_": 4, "code": "004", "name": "人员4", "mobile": "15011430234", "refcode": "004", "refpk": "3570cbde-0d43-49ce-ad53-ab27ee6ee7dd", "id": "3570cbde-0d43-49ce-ad53-ab27ee6ee7dd", "refname": "人员4", "email": "33@34.com", "key": "3570cbde-0d43-49ce-ad53-ab27ee6ee7dd" }, { "rownum_": 5, "code": "005", "name": "人员5", "mobile": "15011430235", "refcode": "005", "refpk": "5e3a85ec-5e14-4734-8b3a-1e6168426c89", "id": "5e3a85ec-5e14-4734-8b3a-1e6168426c89", "refname": "人员5", "email": "55@26.com", "key": "5e3a85ec-5e14-4734-8b3a-1e6168426c89" }, { "rownum_": 6, "code": "006", "name": "人员6", "mobile": "15011323232", "refcode": "006", "refpk": "112621b9-b7ae-41b9-9428-61779334c5d6", "id": "112621b9-b7ae-41b9-9428-61779334c5d6", "refname": "人员6", "email": "66@516.com", "key": "112621b9-b7ae-41b9-9428-61779334c5d6" }, { "rownum_": 7, "code": "007", "name": "人员7", "mobile": "15011234567", "refcode": "007", "refpk": "394bba90-ed0f-4794-a44e-fd9ce6e9257d", "id": "394bba90-ed0f-4794-a44e-fd9ce6e9257d", "refname": "人员7", "email": "55@4.com", "key": "394bba90-ed0f-4794-a44e-fd9ce6e9257d" }, { "rownum_": 8, "code": "008", "name": "人员8", "mobile": "15011327890", "refcode": "008", "refpk": "a9f4c869-ca0b-4d12-847e-00eca08bfef6", "id": "a9f4c869-ca0b-4d12-847e-00eca08bfef6", "refname": "人员8", "email": "55@556.com", "key": "a9f4c869-ca0b-4d12-847e-00eca08bfef6" }, { "rownum_": 9, "code": "bpm01", "name": "张一", "mobile": "18777777777", "refcode": "bpm01", "refpk": "0dc47840-873a-4ed3-8ae7-c2335a76b385", "id": "0dc47840-873a-4ed3-8ae7-c2335a76b385", "refname": "张一", "email": "bpm01@qq.com", "key": "0dc47840-873a-4ed3-8ae7-c2335a76b385" }, { "rownum_": 10, "code": "bpm02", "name": "张二", "mobile": "18788888888", "refcode": "bpm02", "refpk": "c97b59e2-9fa3-44d7-93b0-1be52f7aa550", "id": "c97b59e2-9fa3-44d7-93b0-1be52f7aa550", "refname": "张二", "email": "bpm02@qq.com", "key": "c97b59e2-9fa3-44d7-93b0-1be52f7aa550" }],\n    fliterColumn: [{\n        dataIndex: "code",\n        filterDropdown: "show",\n        filterDropdownType: "string",\n        filterType: "text",\n        filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n    },{\n        dataIndex: "name",\n        filterDropdown: "show",\n        filterDropdownType: "string",\n        filterType: "text",\n        filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n    },{\n        dataIndex: "email",\n        filterDropdown: "show",\n        filterDropdownType: "string",\n        filterType: "dropdown",\n        filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n    },\n    {\n        dataIndex: "mobile",\n        filterDropdown: "show",\n        filterDropdownType: "string",\n        filterType: "dropdown",\n        filterDropdownIncludeKeys: [\'LIKE\', \'ULIKE\', \'EQ\']\n    }],\n    showLoading:false,\n    className:\'ref-walsin-modal\',\n}\nclass Demo2 extends Component {\n    onSave = (item) => {\n        console.log(\'save\', JSON.stringify(item))\n    }\n    onCancel = () => {\n    }\n    launchTableHeader = () => {\n        let data = {\n            strFieldCode: ["code", "name", "email", "mobile"],\n            strFieldName: ["人员编码", "人员名称", "人员邮箱", "人员电话"]\n        }\n        let keyList = data.strFieldCode || [];\n        let titleList = data.strFieldName || [];\n        let fMap = {};\n\t\tprops.fliterColumn.forEach(element => {\n\t\t\tfMap[element.dataIndex] = element;\n        });\n        let colunmsList = keyList.map((item, index) => {\n\t\t\treturn {\n\t\t\t\tkey: item,\n\t\t\t\tdataIndex: item,\n\t\t\t\ttitle: titleList[index],\n\t\t\t\t...fMap[item]\t\t\t\n\t\t\t}\n        });\n        if (colunmsList.length === 0) {\n\t\t\tcolunmsList = [{ title: "未传递表头数据", dataIndex: "nodata", key: "nodata" }];\n\t\t\t\n\t\t} else if(!props.multiple) {\n\t\t\t//单选时用对号符号标记当前行选中\n\t\t\tcolunmsList.unshift({\n\t\t\t\ttitle: " ",\n\t\t\t\tdataIndex: "a",\n\t\t\t\tkey: "a",\n\t\t\t\twidth: 45,\n\t\t\t\trender(text, record, index) {\n\t\t\t\t\treturn <div className={`ref-multiple-table-radio ${record._checked ? \'ref-multiple-table-radio-on\' : \'\'}`}/>//record._checked ? // <Icon className="uf-correct" style={{color: \'#0558f5\'}}/> : \'\'\n\t\t\t\t}\n\t\t\t})\n\t\t\t\n        }\n        props["columnsData"] = colunmsList;\n    }\n    setMatchData = () =>{\n        //设置选中数据\n        props[\'matchData\'] = [{"_checked":true,"rownum_":2,"code":"002","name":"人员2","mobile":"15011323234","refcode":"002","refpk":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","id":"de2d4d09-51ec-4108-8def-d6a6c5393c3b","refname":"人员2","email":"22@11.com","key":"de2d4d09-51ec-4108-8def-d6a6c5393c3b"}];\n    }\n    onFilterChange = (field,value,condition) =>{\n        alert(`field=${field},value=${value},condition=${condition}`)\n    }\n    render() {\n        this.launchTableHeader();\n        this.setMatchData();\n        const { getFieldError, getFieldProps } = this.props.form;\n        return (\n            <div>\n                <RefFilterTableWithInput\n                    {...props}\n                    onSave={this.onSave}\n                    onCancel={this.onCancel}\n                    onFilterChange={this.onFilterChange}\n                    {...getFieldProps(\'valueField\', {\n                        initialValue:\'{"refname":"人员2","refpk":"de2d4d09-51ec-4108-8def-d6a6c5393c3b"}\',\n                        rules: [{\n                            message: \'请输入姓名\',\n                            pattern: /[^{"refname":"","refpk":""}]/\n                        }]\n                    })}\n                >\n                </RefFilterTableWithInput>\n                <span className=\'error\'>\n                    {getFieldError(\'valueField\')}\n                </span>\n\n                <Button onClick={() => {\n                    this.props.form.validateFields((err, values) => {\n                        console.log(err, values)\n                    });\n                }}>submit</Button>\n            </div>\n\n        )\n    }\n}\n',desc:" 使用RefFilterTableWithInput，表格参照带有input"}],Demo=function(_Component){function Demo(e){_classCallCheck(this,Demo);var a=_possibleConstructorReturn(this,_Component.call(this,e));return a.handleClick=function(){a.setState({open:!a.state.open})},a.fCloseDrawer=function(){a.setState({open:!1})},a.state={open:!1},a}return _inherits(Demo,_Component),Demo.prototype.render=function(){var e=this.props,a=e.title,t=e.example,n=e.code,r=e.desc,o=e.scss_code,l=_react2.default.createElement("div",null,_react2.default.createElement("p",{className:"component-title"},a),_react2.default.createElement("p",null,r),_react2.default.createElement("span",{className:"component-code",onClick:this.handleClick}," 查看源码 ",_react2.default.createElement("i",{className:"uf uf-arrow-right"})," "));return _react2.default.createElement(_beeLayout.Col,{md:12,id:a.trim(),className:"component-demo"},_react2.default.createElement(_beePanel.Panel,{header:l},t),_react2.default.createElement(_beeDrawer2.default,{className:"component-drawerc",title:a,show:this.state.open,placement:"right",onClose:this.fCloseDrawer},_react2.default.createElement("div",{className:"component-code-copy"}," JS代码",_react2.default.createElement(_beeClipboard2.default,{action:"copy",text:n})),_react2.default.createElement("pre",{className:"pre-js"},_react2.default.createElement("code",{className:"hljs javascript"},n)),o?_react2.default.createElement("div",{className:"component-code-copy copy-css"}," SCSS代码",_react2.default.createElement(_beeClipboard2.default,{action:"copy",text:o})):null,o?_react2.default.createElement("pre",{className:"pre-css"},_react2.default.createElement("code",{className:"hljs css"},o)):null))},Demo.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},Demo}(_react.Component),DemoGroup=function(_Component2){function DemoGroup(e){return _classCallCheck(this,DemoGroup),_possibleConstructorReturn(this,_Component2.call(this,e))}return _inherits(DemoGroup,_Component2),DemoGroup.prototype.render=function(){return _react2.default.createElement(_beeLayout.Row,null,DemoArray.map(function(e,a){return _react2.default.createElement(Demo,{example:e.example,title:e.title,code:e.code,scss_code:e.scss_code,desc:e.desc,key:a})}))},DemoGroup.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},DemoGroup}(_react.Component);_reactDom2.default.render(_react2.default.createElement(DemoGroup,null),document.getElementById("root")),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).default;e&&(e.register(DemoArray,"DemoArray","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/index.js"),e.register(Demo,"Demo","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/index.js"),e.register(DemoGroup,"DemoGroup","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/index.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(28)(module))},480:function(module,exports,__webpack_require__){"use strict";(function(module){exports.__esModule=!0;var _setPrototypeOf=__webpack_require__(17),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),_create=__webpack_require__(19),_create2=_interopRequireDefault(_create),_assign=__webpack_require__(22),_assign2=_interopRequireDefault(_assign),_extends=_assign2.default||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_class,_temp,_initialiseProps,_react=__webpack_require__(1),_react2=_interopRequireDefault(_react),_index=__webpack_require__(153),_index2=_interopRequireDefault(_index);__webpack_require__(332);var _tinperBee=__webpack_require__(333);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=(0,_create2.default)(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(e,a):e.__proto__=a)}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).enterModule;e&&e(module)}();var props={placeholder:"自定义placeholder",title:"复杂表格参照",backdrop:!0,disabled:!1,multiple:!0,strictMode:!1,miniSearch:!1,emptyBut:!0,valueField:"refpk",displayField:"{refname}"},Demo1=(_temp=_class=function(_Component){function Demo1(e){_classCallCheck(this,Demo1);var a=_possibleConstructorReturn(this,_Component.call(this,e));return _initialiseProps.call(a),a.state={showLoading:!1,showModal:!1},a.tableData=[{rownum_:1,code:"001",name:"人员1",mobile:"15011430230",refcode:"001",refpk:"cc791b77-bd18-49ab-b3ec-ee83cd40012a",id:"cc791b77-bd18-49ab-b3ec-ee83cd40012a",refname:"人员1",email:"11@11.com",key:"cc791b77-bd18-49ab-b3ec-ee83cd40012a"},{rownum_:2,code:"002",name:"人员2",mobile:"15011323234",refcode:"002",refpk:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",id:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",refname:"人员2",email:"22@11.com",key:"de2d4d09-51ec-4108-8def-d6a6c5393c3b"},{rownum_:3,code:"003",name:"人员3",mobile:"15011430232",refcode:"003",refpk:"004989bb-a705-45ce-88f3-662f87ee6e52",id:"004989bb-a705-45ce-88f3-662f87ee6e52",refname:"人员3",email:"33@33.com",key:"004989bb-a705-45ce-88f3-662f87ee6e52"},{rownum_:4,code:"004",name:"人员4",mobile:"15011430234",refcode:"004",refpk:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",id:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",refname:"人员4",email:"33@34.com",key:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd"},{rownum_:5,code:"005",name:"人员5",mobile:"15011430235",refcode:"005",refpk:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",id:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",refname:"人员5",email:"55@26.com",key:"5e3a85ec-5e14-4734-8b3a-1e6168426c89"},{rownum_:6,code:"006",name:"人员6",mobile:"15011323232",refcode:"006",refpk:"112621b9-b7ae-41b9-9428-61779334c5d6",id:"112621b9-b7ae-41b9-9428-61779334c5d6",refname:"人员6",email:"66@516.com",key:"112621b9-b7ae-41b9-9428-61779334c5d6"},{rownum_:7,code:"007",name:"人员7",mobile:"15011234567",refcode:"007",refpk:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",id:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",refname:"人员7",email:"55@4.com",key:"394bba90-ed0f-4794-a44e-fd9ce6e9257d"},{rownum_:8,code:"008",name:"人员8",mobile:"15011327890",refcode:"008",refpk:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",id:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",refname:"人员8",email:"55@556.com",key:"a9f4c869-ca0b-4d12-847e-00eca08bfef6"},{rownum_:9,code:"bpm01",name:"张一",mobile:"18777777777",refcode:"bpm01",refpk:"0dc47840-873a-4ed3-8ae7-c2335a76b385",id:"0dc47840-873a-4ed3-8ae7-c2335a76b385",refname:"张一",email:"bpm01@qq.com",key:"0dc47840-873a-4ed3-8ae7-c2335a76b385"},{rownum_:10,code:"bpm02",name:"张二",mobile:"18788888888",refcode:"bpm02",refpk:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",id:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",refname:"张二",email:"bpm02@qq.com",key:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550"}],a.filterColumn=[{dataIndex:"code",filterDropdown:"show",filterDropdownType:"string",filterType:"text",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"name",filterDropdown:"show",filterDropdownType:"string",filterType:"text",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"email",filterDropdown:"show",filterDropdownType:"string",filterType:"dropdown",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"mobile",filterDropdown:"show",filterDropdownType:"string",filterType:"dropdown",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]}],a.pageCount=10,a.pageSize=10,a.currPageIndex=1,a.fliterFormInputs=[],a.filterInfo="",a}return _inherits(Demo1,_Component),Demo1.prototype.componentDidMount=function(){var e=this;setTimeout(function(){e.tableData=[{rownum_:1,code:"0011",name:"人员122",mobile:"15011430230",refcode:"22001",refpk:"c22c791b77-bd18-49ab-b3ec-ee83cd40012a",id:"cc791b77-bd18-49ab-b3ec-ee83cd40012a",refname:"人员1",email:"11@11.com",key:"cc791b77-bd18-49ab-b3ec-ee83cd40012a"},{rownum_:2,code:"002",name:"人员2",mobile:"15011323234",refcode:"002",refpk:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",id:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",refname:"人员2",email:"22@11.com",key:"de2d4d09-51ec-4108-8def-d6a6c5393c3b"},{rownum_:3,code:"003",name:"人员3",mobile:"15011430232",refcode:"003",refpk:"004989bb-a705-45ce-88f3-662f87ee6e52",id:"004989bb-a705-45ce-88f3-662f87ee6e52",refname:"人员3",email:"33@33.com",key:"004989bb-a705-45ce-88f3-662f87ee6e52"},{rownum_:4,code:"004",name:"人员4",mobile:"15011430234",refcode:"004",refpk:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",id:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",refname:"人员4",email:"33@34.com",key:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd"},{rownum_:5,code:"005",name:"人员5",mobile:"15011430235",refcode:"005",refpk:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",id:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",refname:"人员5",email:"55@26.com",key:"5e3a85ec-5e14-4734-8b3a-1e6168426c89"},{rownum_:6,code:"006",name:"人员6",mobile:"15011323232",refcode:"006",refpk:"112621b9-b7ae-41b9-9428-61779334c5d6",id:"112621b9-b7ae-41b9-9428-61779334c5d6",refname:"人员6",email:"66@516.com",key:"112621b9-b7ae-41b9-9428-61779334c5d6"},{rownum_:7,code:"007",name:"人员7",mobile:"15011234567",refcode:"007",refpk:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",id:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",refname:"人员7",email:"55@4.com",key:"394bba90-ed0f-4794-a44e-fd9ce6e9257d"},{rownum_:8,code:"008",name:"人员8",mobile:"15011327890",refcode:"008",refpk:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",id:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",refname:"人员8",email:"55@556.com",key:"a9f4c869-ca0b-4d12-847e-00eca08bfef6"},{rownum_:9,code:"bpm01",name:"张一",mobile:"18777777777",refcode:"bpm01",refpk:"0dc47840-873a-4ed3-8ae7-c2335a76b385",id:"0dc47840-873a-4ed3-8ae7-c2335a76b385",refname:"张一",email:"bpm01@qq.com",key:"0dc47840-873a-4ed3-8ae7-c2335a76b385"},{rownum_:10,code:"bpm02",name:"张二",mobile:"18788888888",refcode:"bpm02",refpk:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",id:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",refname:"张二",email:"bpm02@qq.com",key:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550"}],e.setState({number:Math.random()})},5e3)},Demo1.prototype.render=function(){var e=this,a=this.state,t=a.showLoading,n=a.showModal,r=this.columnsData,o=this.tableData,l=this.pageCount,i=this.pageSize,c=this.currPageIndex,d=this.fliterFormInputs,s=this.filterInfo,f=this.checkedArray,u=this.dataNumSelect,p=this.handlePagination,m=this.searchFilterInfo,b=(0,_assign2.default)((0,_assign2.default)({},props),{showModal:n,showLoading:t,columnsData:r,tableData:o,checkedArray:f,pageCount:l,pageSize:i,currPageIndex:c,fliterFormInputs:d,filterInfo:s,dataNumSelect:u,handlePagination:p,searchFilterInfo:m,onSave:this.onSave,onCancel:this.onCancel,filterColumn:this.filterColumn});return this.getFilterColumn(),_react2.default.createElement("div",{className:"demoPadding"},_react2.default.createElement(_index2.default,_extends({},b,{matchData:this.state.matchData,onFilterChange:this.onFilterChange})),_react2.default.createElement(_tinperBee.Button,{colors:"primary",onClick:function(){e.setState({showModal:!0})}},"打开参照"))},Demo1.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},Demo1}(_react.Component),_initialiseProps=function(){var e=this;this.searchFilterInfo=function(e){console.log(e)},this.handlePagination=function(e){console.log(e)},this.dataNumSelect=function(e,a){console.log(e,a)},this.onSave=function(a){e.checkedArray=a,e.setState({showModal:!1,matchData:a})},this.onCancel=function(a){e.setState({showModal:!1})},this.getFilterColumn=function(){var a=["人员编码","人员名称","人员邮箱","人员电话"],t={};e.filterColumn.forEach(function(e){t[e.dataIndex]=e});var n=["code","name","email","mobile"].map(function(e,n){return _extends({key:e,dataIndex:e,title:a[n]},t[e])});0===n.length?n=[{title:"未传递表头数据",dataIndex:"nodata",key:"nodata"}]:props.multiple||n.unshift({title:" ",dataIndex:"a",key:"a",width:45,render:function(e,a,t){return _react2.default.createElement("div",{className:"ref-multiple-table-radio "+(a._checked?"ref-multiple-table-radio-on":"")})}}),e.columnsData=n},this.onFilterChange=function(e,a,t){alert("field="+e+",value="+a+",condition="+t)}},_temp),_default=_tinperBee.Form.createForm()(Demo1);exports.default=_default,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).default;e&&(e.register(props,"props","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo1.js"),e.register(Demo1,"Demo1","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo1.js"),e.register(_default,"default","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo1.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(28)(module))},481:function(module,exports,__webpack_require__){"use strict";(function(module){exports.__esModule=!0;var _setPrototypeOf=__webpack_require__(17),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),_create=__webpack_require__(19),_create2=_interopRequireDefault(_create),_keys=__webpack_require__(154),_keys2=_interopRequireDefault(_keys),_assign=__webpack_require__(22),_assign2=_interopRequireDefault(_assign),_react=__webpack_require__(1),_react2=_interopRequireDefault(_react),_shallowequal=__webpack_require__(482),_shallowequal2=_interopRequireDefault(_shallowequal),_RefCoreError=__webpack_require__(487),_RefCoreError2=_interopRequireDefault(_RefCoreError),_RefCoreButton=__webpack_require__(489),_RefCoreButton2=_interopRequireDefault(_RefCoreButton),_RefCoreTab=__webpack_require__(492),_RefCoreTab2=_interopRequireDefault(_RefCoreTab),_RefCoreSearch=__webpack_require__(500),_RefCoreSearch2=_interopRequireDefault(_RefCoreSearch),_locale=__webpack_require__(506),_beeCheckbox=__webpack_require__(507),_beeCheckbox2=_interopRequireDefault(_beeCheckbox),_beeModal=__webpack_require__(143),_beeModal2=_interopRequireDefault(_beeModal),_beePagination=__webpack_require__(509),_beePagination2=_interopRequireDefault(_beePagination),_beeTable=__webpack_require__(543),_beeTable2=_interopRequireDefault(_beeTable),_multiSelect=__webpack_require__(607),_multiSelect2=_interopRequireDefault(_multiSelect),_beeLoading=__webpack_require__(319),_beeLoading2=_interopRequireDefault(_beeLoading),_utils=__webpack_require__(609);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=(0,_create2.default)(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(e,a):e.__proto__=a)}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).enterModule;e&&e(module)}();var RefFilterTableBaseUI=function(_Component){function RefFilterTableBaseUI(e){_classCallCheck(this,RefFilterTableBaseUI);var a=_possibleConstructorReturn(this,_Component.call(this,e));return a.columnsData=[],a.tableData=[],a.pageCount=1,a.pageSize="10",a.currPageIndex=1,a.fliterFormInputs=[],a.filterInfo={},a.initComponent=function(){var e=a.props,t=e.value,n=e.matchData,r=void 0===n?[]:n,o=e.valueField,l=void 0===o?"refpk":o,i=(0,_utils.refValParse)(t);0==a.checkedArray.length&&i[l]&&r.length>0&&(a.checkedMap={},a.checkedArray=r.map(function(e){return e.key=e[l],e._checked=!0,a.checkedMap[e.key]=e,e}),a.setState({selectedDataLength:a.checkedArray.length,mustRender:Math.random()}))},a.handleBtnSave=function(){a.props.onSave((0,_assign2.default)([],a.checkedArray))},a.handleBtnCancel=function(){a.props.onCancel()},a.onClickBtn=function(e){switch(e){case"save":a.handleBtnSave();break;case"cancel":a.handleBtnCancel();break;case"clear":a.checkedArray=[],a.checkedMap={},a.setState({selectedDataLength:0,mustRender:Math.random()})}},a.onSelectTabItem=function(e,t){"selecting"===t?a.setState({tableIsSelecting:!0}):a.setState({tableIsSelecting:!1})},a.putRowKey=function(e,a){return e.key},a.renderRowClassName=function(e){if(!a.props.multiple)return e._checked?"ref-multiple-table-row-selected":""},a.getSelectedDataFunc=function(e,t){if(a.props.multiple){var n=a,r=a.props.valueField,o=void 0===r?"refpk":r;if(t)t._checked&&!n.checkedMap[t[o]]?(n.checkedArray.push(t),n.checkedMap[t[o]]=t):!t._checked&&a.checkedMap[t[o]]&&(delete n.checkedMap[t[o]],n.checkedArray=[],(0,_keys2.default)(n.checkedMap).forEach(function(e){n.checkedArray.push(a.checkedMap[e])}));else n.checkedArray=[],a.state.tableIsSelecting?(e.length>0?n.props.tableData.forEach(function(e){n.checkedMap.hasOwnProperty(e[o])||(n.checkedMap[e[o]]=e)}):n.props.tableData.forEach(function(e){n.checkedMap.hasOwnProperty(e[o])&&delete n.checkedMap[e[o]]}),n.checkedArray=(0,_keys2.default)(n.checkedMap).map(function(e){return n.checkedMap[e]})):e.length<=0&&(n.checkedMap={},n.checkedArray=[]);n.setState({selectedDataLength:e.length,mustRender:Math.random()})}},a.onRowDoubleClick=function(e){if(!a.props.multiple){var t=a.props.valueField,n=void 0===t?"refpk":t;e._checked=!0,a.checkedArray=[e],a.checkedMap={},a.checkedMap[e[n]]=e,a.handleBtnSave()}},a.onRowClick=function(e){if(!a.props.multiple){var t=a,n=t.props.valueField,r=void 0===n?"refpk":n;if(t.checkedMap.hasOwnProperty(e[r]))t.checkedArray=[],t.checkedMap={},t.setState({mustRender:Math.random()});else{var o=(0,_assign2.default)({_checked:!0},e);t.checkedArray=[o],t.checkedMap={},t.checkedMap[o[r]]=o,t.setState({mustRender:Math.random()})}}},a.state={selectedDataLength:0,tableIsSelecting:!0},a.checkedArray=[],a.checkedMap={},a.TableView=e.multiple?(0,_multiSelect2.default)(_beeTable2.default,_beeCheckbox2.default):_beeTable2.default,a}return _inherits(RefFilterTableBaseUI,_Component),RefFilterTableBaseUI.prototype.shouldComponentUpdate=function(e,a){var t=e.tableData===this.props.tableData&&e.columnsData===this.props.columnsData&&e.fliterFormInputs===this.props.fliterFormInputs;return!(0,_shallowequal2.default)(a,this.state)||!t||e.showModal!==this.props.showModal},RefFilterTableBaseUI.prototype.componentWillReceiveProps=function(e){var a=this,t=e.strictMode,n=e.valueField,r=void 0===n?"refpk":n;e.matchData,e.value;e.showModal&&!this.props.showModal&&(!t&&this.columnsData.length&&1===this.currPageIndex||this.initComponent(),this.checkedArray=(0,_assign2.default)([],e.matchData||[]),this.checkedMap={},this.checkedArray.forEach(function(e){a.checkedMap[e[r]]=e}),this.setState({selectedDataLength:this.checkedArray.length,tableIsSelecting:!0}))},RefFilterTableBaseUI.prototype.render=function(){var e=this,a=this.props,t=a.className,n=a.title,r=void 0===n?"":n,o=a.backdrop,l=a.size,i=void 0===l?"lg":l,c=a.showModal,d=a.lang,s=void 0===d?"zh_CN":d,f=a.valueField,u=a.emptyBut,p=void 0!==u&&u,m=a.buttons,b=a.filterColumn,_=void 0===b?[]:b,h=a.showLoading,w=a.tableData,k=a.pageCount,y=a.currPageIndex,g=a.columnsData,D=a.totalElements,x=a.theme,v=void 0===x?"ref-red":x,C=a.onFilterChange,I=void 0===C?function(){}:C,R=this.checkedArray,j=this.checkedMap,q=this.state,E=q.selectedDataLength,F=q.tableIsSelecting,T=w.map(function(e){return e._checked=j.hasOwnProperty(e[f]),e});return R.forEach(function(e){e._checked=!0}),0===R.length&&(p=!1),_react2.default.createElement(_beeModal2.default,{show:c,className:" "+v+" "+t+" ref-core ref-filter-table ref-core-modal",backdrop:o,size:i,onHide:this.handleBtnCancel,autoFocus:!1},_react2.default.createElement(_beeModal2.default.Header,{closeButton:!0},_react2.default.createElement(_beeModal2.default.Title,null," ",r)),_react2.default.createElement(_beeModal2.default.Body,{ref:function(a){return e.modalRef=a}},_react2.default.createElement(_beeLoading2.default,{container:this.modalRef,show:h}),_react2.default.createElement(_RefCoreTab2.default,{className:"ref-filter-table-tab",selectedData:R,selectedDataLength:E,selecteing:F,language:s,onSelectTabItem:this.onSelectTabItem}),F&&_react2.default.createElement(_beePagination2.default,{first:!0,last:!0,prev:!0,next:!0,showJump:!0,boundaryLinks:!0,className:k>1?"":"ref-filter-table-pagination-hide",items:k,maxButtons:5,total:D,activePage:y,onDataNumSelect:this.props.dataNumSelect,onSelect:this.props.handlePagination,locale:(0,_locale.paginationLocale)(s)}),g&&g.length?_react2.default.createElement(this.TableView,{bordered:!0,scroll:{x:!1,y:!0},columns:g,rowClassName:this.renderRowClassName,data:F?T:R,getSelectedDataFunc:this.getSelectedDataFunc,onRowDoubleClick:this.onRowDoubleClick,onRowClick:this.onRowClick,rowKey:this.putRowKey,columnFilterAble:!1,showFilterMenu:!0,onFilterChange:I,filterDelay:500,filterable:Boolean(_.length)}):_react2.default.createElement(_RefCoreError2.default,{show:!Boolean(T.length),language:s})),_react2.default.createElement(_beeModal2.default.Footer,{className:"ref-core-modal-footer "},_react2.default.createElement(_RefCoreButton2.default,{language:s,buttons:m,emptyBut:p,onClickBtn:this.onClickBtn})))},RefFilterTableBaseUI.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},RefFilterTableBaseUI}(_react.Component),_default=RefFilterTableBaseUI;exports.default=_default,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).default;e&&(e.register(RefFilterTableBaseUI,"RefFilterTableBaseUI","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/components/RefFilterTableBaseUI.js"),e.register(_default,"default","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/components/RefFilterTableBaseUI.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(28)(module))},567:function(e,a,t){var n={"./af":179,"./af.js":179,"./ar":180,"./ar-dz":181,"./ar-dz.js":181,"./ar-kw":182,"./ar-kw.js":182,"./ar-ly":183,"./ar-ly.js":183,"./ar-ma":184,"./ar-ma.js":184,"./ar-sa":185,"./ar-sa.js":185,"./ar-tn":186,"./ar-tn.js":186,"./ar.js":180,"./az":187,"./az.js":187,"./be":188,"./be.js":188,"./bg":189,"./bg.js":189,"./bm":190,"./bm.js":190,"./bn":191,"./bn.js":191,"./bo":192,"./bo.js":192,"./br":193,"./br.js":193,"./bs":194,"./bs.js":194,"./ca":195,"./ca.js":195,"./cs":196,"./cs.js":196,"./cv":197,"./cv.js":197,"./cy":198,"./cy.js":198,"./da":199,"./da.js":199,"./de":200,"./de-at":201,"./de-at.js":201,"./de-ch":202,"./de-ch.js":202,"./de.js":200,"./dv":203,"./dv.js":203,"./el":204,"./el.js":204,"./en-SG":205,"./en-SG.js":205,"./en-au":206,"./en-au.js":206,"./en-ca":207,"./en-ca.js":207,"./en-gb":117,"./en-gb.js":117,"./en-ie":208,"./en-ie.js":208,"./en-il":209,"./en-il.js":209,"./en-nz":210,"./en-nz.js":210,"./eo":211,"./eo.js":211,"./es":212,"./es-do":213,"./es-do.js":213,"./es-us":214,"./es-us.js":214,"./es.js":212,"./et":215,"./et.js":215,"./eu":216,"./eu.js":216,"./fa":217,"./fa.js":217,"./fi":218,"./fi.js":218,"./fo":219,"./fo.js":219,"./fr":220,"./fr-ca":221,"./fr-ca.js":221,"./fr-ch":222,"./fr-ch.js":222,"./fr.js":220,"./fy":223,"./fy.js":223,"./ga":224,"./ga.js":224,"./gd":225,"./gd.js":225,"./gl":226,"./gl.js":226,"./gom-latn":227,"./gom-latn.js":227,"./gu":228,"./gu.js":228,"./he":229,"./he.js":229,"./hi":230,"./hi.js":230,"./hr":231,"./hr.js":231,"./hu":232,"./hu.js":232,"./hy-am":233,"./hy-am.js":233,"./id":234,"./id.js":234,"./is":235,"./is.js":235,"./it":236,"./it-ch":237,"./it-ch.js":237,"./it.js":236,"./ja":238,"./ja.js":238,"./jv":239,"./jv.js":239,"./ka":240,"./ka.js":240,"./kk":241,"./kk.js":241,"./km":242,"./km.js":242,"./kn":243,"./kn.js":243,"./ko":244,"./ko.js":244,"./ku":245,"./ku.js":245,"./ky":246,"./ky.js":246,"./lb":247,"./lb.js":247,"./lo":248,"./lo.js":248,"./lt":249,"./lt.js":249,"./lv":250,"./lv.js":250,"./me":251,"./me.js":251,"./mi":252,"./mi.js":252,"./mk":253,"./mk.js":253,"./ml":254,"./ml.js":254,"./mn":255,"./mn.js":255,"./mr":256,"./mr.js":256,"./ms":257,"./ms-my":258,"./ms-my.js":258,"./ms.js":257,"./mt":259,"./mt.js":259,"./my":260,"./my.js":260,"./nb":261,"./nb.js":261,"./ne":262,"./ne.js":262,"./nl":263,"./nl-be":264,"./nl-be.js":264,"./nl.js":263,"./nn":265,"./nn.js":265,"./pa-in":266,"./pa-in.js":266,"./pl":267,"./pl.js":267,"./pt":268,"./pt-br":269,"./pt-br.js":269,"./pt.js":268,"./ro":270,"./ro.js":270,"./ru":271,"./ru.js":271,"./sd":272,"./sd.js":272,"./se":273,"./se.js":273,"./si":274,"./si.js":274,"./sk":275,"./sk.js":275,"./sl":276,"./sl.js":276,"./sq":277,"./sq.js":277,"./sr":278,"./sr-cyrl":279,"./sr-cyrl.js":279,"./sr.js":278,"./ss":280,"./ss.js":280,"./sv":281,"./sv.js":281,"./sw":282,"./sw.js":282,"./ta":283,"./ta.js":283,"./te":284,"./te.js":284,"./tet":285,"./tet.js":285,"./tg":286,"./tg.js":286,"./th":287,"./th.js":287,"./tl-ph":288,"./tl-ph.js":288,"./tlh":289,"./tlh.js":289,"./tr":290,"./tr.js":290,"./tzl":291,"./tzl.js":291,"./tzm":292,"./tzm-latn":293,"./tzm-latn.js":293,"./tzm.js":292,"./ug-cn":294,"./ug-cn.js":294,"./uk":295,"./uk.js":295,"./ur":296,"./ur.js":296,"./uz":297,"./uz-latn":298,"./uz-latn.js":298,"./uz.js":297,"./vi":299,"./vi.js":299,"./x-pseudo":300,"./x-pseudo.js":300,"./yo":301,"./yo.js":301,"./zh-cn":78,"./zh-cn.js":78,"./zh-hk":302,"./zh-hk.js":302,"./zh-tw":303,"./zh-tw.js":303};function r(e){var a=o(e);return t(a)}function o(e){if(!t.o(n,e)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=o,e.exports=r,r.id=567},609:function(e,a,t){"use strict";(function(e){a.__esModule=!0,function(){var a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:t(11)).enterModule;a&&a(e)}();var n=function(e){if(!e)return{refname:"",refpk:""};try{var a=JSON.parse(e);return a.hasOwnProperty("refname")&&a.hasOwnProperty("refpk")?JSON.parse(e):{refname:"",refpk:""}}catch(e){return{refname:"",refpk:""}}};a.refValParse=n,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:t(11)).default;e&&e.register(n,"refValParse","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/src/utils.js")}(),function(){var a=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:t(11)).leaveModule;a&&a(e)}()}).call(this,t(28)(e))},664:function(e,a,t){(a=e.exports=t(76)(!1)).i(t(665),""),a.push([e.i,".ref-filter-table-pagination-hide {\n  display: none !important;\n}\n.ref-filter-table .ref-core-error {\n  padding: 0px;\n}\n.ref-filter-table .u-table-tbody {\n  background-color: #FFF;\n}\n.ref-filter-table.ref-red .selectedItemSum {\n  color: #f53c32;\n}\n.ref-filter-table.ref-red .ref-core-button-empty {\n  color: #f53c32 !important;\n}\n.ref-filter-table.ref-red .ref-filter-table-row-selected {\n  background-color: #FFF7E7;\n}\n.ref-filter-table.ref-red .u-table tr:hover {\n  background: #EBECF0;\n}\n.ref-filter-table.ref-blue .selectedItemSum {\n  color: #1e88e5;\n}\n.ref-filter-table.ref-blue .ref-core-button-empty {\n  color: #1e88e5;\n}\n.ref-filter-table.ref-blue .u-table tr:hover {\n  background: #EBECF0;\n}\n.ref-filter-table.ref-blue .ref-filter-table-row-selected {\n  background-color: #DEEBFF;\n}\n.ref-filter-table .u-radio-group {\n  position: relative;\n  display: block;\n}\n.ref-walsin-modal.ref-core .u-table {\n  padding: 0;\n}\n.ref-walsin-modal .u-modal-body .selectedItemSum {\n  color: #004898;\n}\n.ref-walsin-modal .u-checkbox.is-checked .u-checkbox-label:before {\n  box-shadow: inset 0 0 0 10px #004898;\n  border-color: #004898;\n}\n.ref-walsin-modal .u-checkbox.u-checkbox-indeterminate .u-checkbox-label:before {\n  box-shadow: inset 0 0 0 10px #004898;\n  border-color: #004898;\n}\n.ref-walsin-modal .u-modal-body {\n  min-height: 419px;\n}\n.ref-walsin-modal .ref-core-button .u-button {\n  background-color: #004898;\n  color: #fff;\n  height: 30px;\n  line-height: 1;\n  font-size: 14px;\n}\n.ref-walsin-modal .ref-core-button .u-button.u-button-primary {\n  border: 1px #004898 solid;\n}\n.ref-walsin-modal .ref-core-button .u-button:first-child {\n  margin-right: 10px;\n}\n.ref-walsin-modal .ref-core-button .u-button:hover {\n  background-color: #0052CC;\n}\n.ref-walsin-modal .ref-core-button-hide {\n  display: none;\n}\n.ref-walsin-modal .u-modal-footer {\n  text-align: left;\n}\n.ref-walsin-modal-pagination-hide {\n  display: none !important;\n}\n.ref-walsin-modal .ref-core-error {\n  padding: 0px;\n}\n.ref-walsin-modal .u-table-tbody {\n  background-color: #FFF;\n}\n.ref-walsin-modal-row-selected {\n  background: #e3f2fd;\n}\n.ref-walsin-modal .u-pagination {\n  margin-left: 16px;\n  font-size: 12px;\n  display: flex;\n  align-items: center;\n  margin: 0 5px 5px 16px !important;\n}\n.ref-walsin-modal .u-pagination .u-select-open .u-select-selection {\n  border-color: #004898;\n}\n.ref-walsin-modal .u-pagination .u-pagination-total,\n.ref-walsin-modal .u-pagination .page_jump_value {\n  height: 32px ;\n  line-height: 32px ;\n}\n.ref-walsin-modal .u-pagination .page_jump > span {\n  line-height: 32px;\n}\n.ref-walsin-modal .u-pagination .page_jump_btn {\n  border-color: #004898;\n  height: 32px ;\n  line-height: 32px;\n  background: #004898;\n  color: #fff;\n  padding: 0px 8px;\n  margin-top: 0px;\n}\n.ref-walsin-modal .u-pagination .page_jump_btn:focus,\n.ref-walsin-modal .u-pagination .page_jump_btn:hover,\n.ref-walsin-modal .u-pagination .page_jump_btn:active {\n  background: #0052cc;\n  color: #fff;\n}\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-child(1) a,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-child(2) a,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-last-child(1) a,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-last-child(2) a {\n  padding-top: 0px;\n  padding-bottom: 0px;\n}\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-child(1) a span,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-child(2) a span,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-last-child(1) a span,\n.ref-walsin-modal .u-pagination .u-pagination-list li:nth-last-child(2) a span {\n  font-size: 24px;\n  display: block;\n  margin-top: -2px;\n}\n.ref-walsin-modal .u-pagination .u-pagination-list li a {\n  padding: 0px 11px;\n  line-height: 32px;\n  height: 32px;\n  box-sizing: border-box;\n}\n.ref-walsin-modal .u-pagination .data_per_select > span {\n  line-height: 32px;\n}\n.ref-walsin-modal .u-pagination .data_per_select .u-select {\n  width: 60px;\n  height: 32px;\n}\n.ref-walsin-modal .u-pagination .data_per_select .u-select .u-select-selection {\n  height: 32px;\n}\n.ref-walsin-modal .u-pagination .data_per_select .u-select .u-select-selection .u-select-selection-rendered {\n  line-height: 32px;\n}\n.ref-walsin-modal .u-pagination-list > .active > a,\n.ref-walsin-modal .u-pagination-list > .active > span,\n.ref-walsin-modal .u-pagination-list > .active > a:hover,\n.ref-walsin-modal .u-pagination-list > .active > span:hover,\n.ref-walsin-modal .u-pagination-list > .active > a:focus,\n.ref-walsin-modal .u-pagination-list > .active > span:focus {\n  background: #004898;\n  border-color: #004898;\n}\n@media (max-width: 1024px) {\n  .ref-walsin-modal .u-pagination .u-pagination-list {\n    flex-shrink: 0;\n    margin-right: 2px;\n  }\n  .ref-walsin-modal .u-pagination .u-pagination-list li a {\n    padding: 0px 6px;\n  }\n  .ref-walsin-modal .u-pagination .u-pagination-total {\n    margin: 0px;\n  }\n  .ref-walsin-modal .u-pagination .data_per_select {\n    min-width: 45px;\n  }\n  .ref-walsin-modal .u-pagination .data_per_select .u-select {\n    width: 48px !important;\n  }\n  .ref-walsin-modal .u-pagination .page_jump {\n    margin-left: 0px;\n    margin-right: 0px;\n  }\n  .ref-walsin-modal .u-pagination .page_jump_value {\n    width: 30px;\n  }\n  .ref-walsin-modal .u-pagination .page_jump_btn {\n    min-width: 10px;\n  }\n}\n.ref-walsin-modal .u-checkbox.is-checked .u-checkbox-label:after,\n.ref-walsin-modal .u-checkbox.u-checkbox-indeterminate .u-checkbox-label:after,\n.ref-walsin-modal .u-checkbox input[type=checkbox]:focus + .u-checkbox-label:before {\n  color: #fff;\n  border-color: #004898;\n}\n.ref-walsin-modal.ref-red .ref-core-button-empty {\n  color: #004898 !important;\n}\n.ref-walsin-modal .u-select-focused .u-select-selection,\n.ref-walsin-modal .u-select-selection:focus,\n.ref-walsin-modal .u-select-selection:active {\n  border-color: #004898;\n}\n.ref-walsin-modal .u-table th,\n.ref-walsin-modal .u-table td {\n  padding: 10px 8px;\n}\n.ref-walsin-modal .u-table th {\n  word-break: keep-all;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.ref-walsin-modal .u-table tr.filterable th {\n  padding: 0px 2px;\n  height: 39px;\n}\n.ref-walsin-modal .u-table-row.u-table-row-level-0 td {\n  height: 32px !important;\n  padding: 0 8px;\n}\n.ref-walsin-modal .u-table-filter-column-filter-icon {\n  right: 15px;\n}\n",""])},667:function(module,exports,__webpack_require__){"use strict";(function(module){exports.__esModule=!0;var _assign=__webpack_require__(22),_assign2=_interopRequireDefault(_assign),_setPrototypeOf=__webpack_require__(17),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),_create=__webpack_require__(19),_create2=_interopRequireDefault(_create),_stringify=__webpack_require__(120),_stringify2=_interopRequireDefault(_stringify),_extends=_assign2.default||function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},_react=__webpack_require__(1),_react2=_interopRequireDefault(_react),_tinperBee=__webpack_require__(333),_index=__webpack_require__(153);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function _inherits(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=(0,_create2.default)(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(e,a):e.__proto__=a)}__webpack_require__(332),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).enterModule;e&&e(module)}();var props={placeholder:"placehholder",title:"复杂表格参照",backdrop:!0,disabled:!1,multiple:!1,strictMode:!0,miniSearch:!1,valueField:"refpk",displayField:"{refname}",tableData:[{rownum_:1,code:"001",name:"人员1",mobile:"15011430230",refcode:"001",refpk:"cc791b77-bd18-49ab-b3ec-ee83cd40012a",id:"cc791b77-bd18-49ab-b3ec-ee83cd40012a",refname:"人员1",email:"11@11.com",key:"cc791b77-bd18-49ab-b3ec-ee83cd40012a"},{rownum_:2,code:"002",name:"人员2",mobile:"15011323234",refcode:"002",refpk:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",id:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",refname:"人员2",email:"22@11.com",key:"de2d4d09-51ec-4108-8def-d6a6c5393c3b"},{rownum_:3,code:"003",name:"人员3",mobile:"15011430232",refcode:"003",refpk:"004989bb-a705-45ce-88f3-662f87ee6e52",id:"004989bb-a705-45ce-88f3-662f87ee6e52",refname:"人员3",email:"33@33.com",key:"004989bb-a705-45ce-88f3-662f87ee6e52"},{rownum_:4,code:"004",name:"人员4",mobile:"15011430234",refcode:"004",refpk:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",id:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd",refname:"人员4",email:"33@34.com",key:"3570cbde-0d43-49ce-ad53-ab27ee6ee7dd"},{rownum_:5,code:"005",name:"人员5",mobile:"15011430235",refcode:"005",refpk:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",id:"5e3a85ec-5e14-4734-8b3a-1e6168426c89",refname:"人员5",email:"55@26.com",key:"5e3a85ec-5e14-4734-8b3a-1e6168426c89"},{rownum_:6,code:"006",name:"人员6",mobile:"15011323232",refcode:"006",refpk:"112621b9-b7ae-41b9-9428-61779334c5d6",id:"112621b9-b7ae-41b9-9428-61779334c5d6",refname:"人员6",email:"66@516.com",key:"112621b9-b7ae-41b9-9428-61779334c5d6"},{rownum_:7,code:"007",name:"人员7",mobile:"15011234567",refcode:"007",refpk:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",id:"394bba90-ed0f-4794-a44e-fd9ce6e9257d",refname:"人员7",email:"55@4.com",key:"394bba90-ed0f-4794-a44e-fd9ce6e9257d"},{rownum_:8,code:"008",name:"人员8",mobile:"15011327890",refcode:"008",refpk:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",id:"a9f4c869-ca0b-4d12-847e-00eca08bfef6",refname:"人员8",email:"55@556.com",key:"a9f4c869-ca0b-4d12-847e-00eca08bfef6"},{rownum_:9,code:"bpm01",name:"张一",mobile:"18777777777",refcode:"bpm01",refpk:"0dc47840-873a-4ed3-8ae7-c2335a76b385",id:"0dc47840-873a-4ed3-8ae7-c2335a76b385",refname:"张一",email:"bpm01@qq.com",key:"0dc47840-873a-4ed3-8ae7-c2335a76b385"},{rownum_:10,code:"bpm02",name:"张二",mobile:"18788888888",refcode:"bpm02",refpk:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",id:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550",refname:"张二",email:"bpm02@qq.com",key:"c97b59e2-9fa3-44d7-93b0-1be52f7aa550"}],filterColumn:[{dataIndex:"code",filterDropdown:"show",filterDropdownType:"string",filterType:"text",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"name",filterDropdown:"show",filterDropdownType:"string",filterType:"text",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"email",filterDropdown:"show",filterDropdownType:"string",filterType:"dropdown",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]},{dataIndex:"mobile",filterDropdown:"show",filterDropdownType:"string",filterType:"dropdown",filterDropdownIncludeKeys:["LIKE","ULIKE","EQ"]}],showLoading:!1},Demo2=function(_Component){function Demo2(){var e,a;_classCallCheck(this,Demo2);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=a=_possibleConstructorReturn(this,_Component.call.apply(_Component,[this].concat(n))),a.onSave=function(e){console.log("save",(0,_stringify2.default)(e))},a.onCancel=function(){},a.launchTableHeader=function(){var e={strFieldCode:["code","name","email","mobile"],strFieldName:["人员编码","人员名称","人员邮箱","人员电话"]},a=e.strFieldCode||[],t=e.strFieldName||[],n={};props.filterColumn.forEach(function(e){n[e.dataIndex]=e});var r=a.map(function(e,a){return _extends({key:e,dataIndex:e,title:t[a]},n[e])});0===r.length?r=[{title:"未传递表头数据",dataIndex:"nodata",key:"nodata"}]:props.multiple||r.unshift({title:" ",dataIndex:"a",key:"a",width:45,render:function(e,a,t){return _react2.default.createElement(_tinperBee.Radio.RadioGroup,{name:a[props.valueField],selectedValue:a._checked?a[props.valueField]:null},_react2.default.createElement(_tinperBee.Radio,{value:a[props.valueField]}))}}),props.columnsData=r},a.setMatchData=function(){props.matchData=[{_checked:!0,rownum_:2,code:"002",name:"人员2",mobile:"15011323234",refcode:"002",refpk:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",id:"de2d4d09-51ec-4108-8def-d6a6c5393c3b",refname:"人员2",email:"22@11.com",key:"de2d4d09-51ec-4108-8def-d6a6c5393c3b"}]},a.onFilterChange=function(e,a,t){alert("field="+e+",value="+a+",condition="+t)},_possibleConstructorReturn(a,e)}return _inherits(Demo2,_Component),Demo2.prototype.render=function(){var e=this;this.launchTableHeader(),this.setMatchData();var a=this.props.form,t=a.getFieldError,n=a.getFieldProps;return _react2.default.createElement("div",null,_react2.default.createElement(_index.RefFilterTableWithInput,_extends({},props,{onSave:this.onSave,onCancel:this.onCancel,onFilterChange:this.onFilterChange},n("valueField",{initialValue:'{"refname":"人员2","refpk":"de2d4d09-51ec-4108-8def-d6a6c5393c3b"}',rules:[{message:"请输入姓名",pattern:/[^{"refname":"","refpk":""}]/}]}))),_react2.default.createElement("span",{className:"error"},t("valueField")),_react2.default.createElement(_tinperBee.Button,{onClick:function(){e.props.form.validateFields(function(e,a){console.log(e,a)})}},"submit"))},Demo2.prototype.__reactstandin__regenerateByEval=function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)},Demo2}(_react.Component),_default=_tinperBee.Form.createForm()(Demo2);exports.default=_default,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).default;e&&(e.register(props,"props","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo2.js"),e.register(Demo2,"Demo2","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo2.js"),e.register(_default,"default","/Users/yaoxin/Downloads/workspace/aacanzhao/tinper-acs/ref-filter-table/demo/demolist/Demo2.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(11)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(28)(module))}},[[340,1,2,3]]]);