twmodule 0.0.62 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/twComp.umd.js CHANGED
@@ -1054,6 +1054,17 @@ module.exports = function (key) {
1054
1054
  };
1055
1055
 
1056
1056
 
1057
+ /***/ }),
1058
+
1059
+ /***/ "25c5":
1060
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1061
+
1062
+ "use strict";
1063
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_0fff130a_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ee38");
1064
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_0fff130a_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_0fff130a_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
1065
+ /* unused harmony reexport * */
1066
+ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_0fff130a_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
1067
+
1057
1068
  /***/ }),
1058
1069
 
1059
1070
  /***/ "262e":
@@ -6372,6 +6383,13 @@ $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !US
6372
6383
  });
6373
6384
 
6374
6385
 
6386
+ /***/ }),
6387
+
6388
+ /***/ "ee38":
6389
+ /***/ (function(module, exports, __webpack_require__) {
6390
+
6391
+ // extracted by mini-css-extract-plugin
6392
+
6375
6393
  /***/ }),
6376
6394
 
6377
6395
  /***/ "eec6":
@@ -9564,25 +9582,25 @@ twFormItem_src_main.install = function (Vue) {
9564
9582
  };
9565
9583
 
9566
9584
  /* harmony default export */ var twFormItem = (twFormItem_src_main);
9567
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./packages/twTable/src/main.vue?vue&type=template&id=1d2ff46b&
9568
- var mainvue_type_template_id_1d2ff46b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('TwTableModule',{attrs:{"tableInits":_vm.tableInit,"tableData":_vm.tableData,"columns":_vm.columns},on:{"cellClick":_vm.cellClick,"cellClickFBC":_vm.cellClickFBC,"changePage":_vm.changePage,"selectRow":_vm.selectRow,"selectChange":_vm.selectChange}})],1)}
9569
- var mainvue_type_template_id_1d2ff46b_staticRenderFns = []
9585
+ // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./packages/twTable/src/main.vue?vue&type=template&id=57c43650&
9586
+ var mainvue_type_template_id_57c43650_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('TwTableModule',{attrs:{"tableInits":_vm.tableInit,"tableData":_vm.tableData,"columns":_vm.columns},on:{"cellClick":_vm.cellClick,"addNewBack":_vm.addNewBack,"cellClickFBC":_vm.cellClickFBC,"changePage":_vm.changePage,"selectRow":_vm.selectRow,"selectChange":_vm.selectChange}})],1)}
9587
+ var mainvue_type_template_id_57c43650_staticRenderFns = []
9570
9588
 
9571
9589
 
9572
- // CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=1d2ff46b&
9590
+ // CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=57c43650&
9573
9591
 
9574
- // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=4adfd993&scoped=true&
9575
- var twTablevue_type_template_id_4adfd993_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('a-table',{class:_vm.tableInit.tableClassName?_vm.tableInit.tableClassName+' twTableStyle':'twTableStyle',attrs:{"columns":_vm.columns,"data-source":_vm.tableData,"bordered":"","rowKey":function (record, index) { return index },"pagination":false,"size":_vm.tableInit.size?_vm.tableInit.size:'small',"customRow":_vm.customRow,"customHeaderRow":_vm.customHeaderRow,"scroll":{y:_vm.tableInit.height?_vm.tableInit.height:'',x:_vm.tableInit.width?_vm.tableInit.width:''},"row-selection":_vm.tableInit.select?{ selectedRowKeys: _vm.selectedRowKeys, onChange: _vm.onSelectChange }:null,"rowClassName":_vm.rowClassName},scopedSlots:_vm._u([{key:"filterDropdown",fn:function(ref){
9592
+ // CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=0fff130a&scoped=true&
9593
+ var twTablevue_type_template_id_0fff130a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{style:({position:'relative','padding-bottom':(_vm.tableInit.addNewRow || _vm.tableInit.pagination)?'70px':'0'})},[_c('a-table',{class:_vm.tableInit.tableClassName?_vm.tableInit.tableClassName+' twTableStyle':'twTableStyle',attrs:{"columns":_vm.columns.filter(function (v) { return !v.rowHide; }),"data-source":_vm.tableData,"bordered":_vm.tableInit.border,"rowKey":function (record, index) { return index },"pagination":false,"size":_vm.tableInit.size?_vm.tableInit.size:'small',"customRow":_vm.customRow,"customHeaderRow":_vm.customHeaderRow,"scroll":{y:_vm.tableInit.height?_vm.tableInit.height:'',x:_vm.tableInit.width?_vm.tableInit.width:''},"row-selection":_vm.tableInit.select?{ selectedRowKeys: _vm.selectedRowKeys, onChange: _vm.onSelectChange }:null,"rowClassName":_vm.rowClassName,"showHeader":!_vm.tableInit.hideHeader},scopedSlots:_vm._u([{key:"filterDropdown",fn:function(ref){
9576
9594
  var setSelectedKeys = ref.setSelectedKeys;
9577
9595
  var selectedKeys = ref.selectedKeys;
9578
9596
  var confirm = ref.confirm;
9579
9597
  var clearFilters = ref.clearFilters;
9580
9598
  var column = ref.column;
9581
- return _c('div',{staticStyle:{"padding":"8px"}},[_c('a-input',{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:(function (c) { return (_vm.searchInput = c); }),expression:"c => (searchInput = c)"}],staticStyle:{"width":"188px","margin-bottom":"8px","display":"block"},attrs:{"placeholder":("搜索 " + (column.title)),"value":selectedKeys[0]},on:{"change":function (e) { return setSelectedKeys(e.target.value ? [e.target.value] : []); },"pressEnter":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}}),_c('a-button',{staticStyle:{"width":"80px","margin-right":"8px","padding-top":"1px"},attrs:{"type":"primary","icon":"search","size":"small"},on:{"click":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}},[_vm._v(" 查询 ")]),_c('a-button',{staticStyle:{"width":"80px","padding-top":"1px"},attrs:{"size":"small"},on:{"click":function () { return _vm.handleReset(clearFilters); }}},[_vm._v(" 重置 ")])],1)}},{key:"filterIcon",fn:function(filtered){return _c('a-icon',{style:({ color: filtered ? '#108ee9' : undefined }),attrs:{"type":"search"}})}},{key:"customRender",fn:function(text, record, index, column){return [(_vm.searchText && _vm.searchedColumn === column.dataIndex)?_c('span',[_vm._l((text.toString().split(new RegExp(("(?<=" + _vm.searchText + ")|(?=" + _vm.searchText + ")"), 'i'))),function(fragment,i){return [(fragment.toLowerCase() === _vm.searchText.toLowerCase())?_c('mark',{key:i,staticClass:"highlight"},[_vm._v(_vm._s(fragment))]):[_vm._v(_vm._s(fragment))]]})],2):[_vm._v(" "+_vm._s(text)+" ")]]}},_vm._l((_vm.columns),function(item,index){return {key:item.dataIndex,fn:function(text, record){return _c('div',{},[(item.isEdit)?_c('span',[(item.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"number"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"textarea"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini"},on:{"change":function($event){return _vm.clickBtn(record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(item.isEdit.type === 'radio')?_c('el-radio-group',{on:{"change":function($event){return _vm.clickBtn(record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(radioItem){return _c('el-radio',{attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(item.isEdit.type === 'checkBox')?_c('el-checkbox-group',{on:{"change":function($event){return _vm.clickBtn(record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(checkItem){return _c('el-checkbox',{attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(item.isEdit.type === 'switch')?_c('el-switch',{attrs:{"active-color":item.isEdit.activeColor?item.isEdit.activeColor:'',"inactive-color":item.isEdit.defaultColor?item.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":item.isEdit.dateType?item.isEdit.dateType:'date',"placeholder":"请选择","picker-options":_vm.processDate(item)},on:{"change":function($event){return _vm.clickBtn(record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e()],1):_vm._e(),(item.isBtn)?_c('span',_vm._l((item.isBtn.btnList),function(itemBtn){return _c('el-button',{style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn)}}},[_vm._v(_vm._s(itemBtn.name))])}),1):_vm._e(),(item.isSpecial)?_c('span',[_c('span',{style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item):''}}},[_vm._v(_vm._s(text))])]):_vm._e(),(item.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:item.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(item.isState)?_c('span',_vm._l((item.isState.stateList),function(stateItem){return (text === stateItem.value)?_c('span',{class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){item.isState.isClick?_vm.clickBtn(record,item):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(item.isHtml)?_c('div',_vm._l((item.isHtml),function(htmlItem){return (text === htmlItem.value)?_c('div',{domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e()])}}}),_vm._l((_vm.columnsChild),function(itemChild,index){return {key:itemChild.dataIndex,fn:function(text, record){return _c('div',{},[(itemChild.isEdit)?_c('span',[(itemChild.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"number"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"textarea"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini"},on:{"change":function($event){return _vm.clickBtn(record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(itemChild.isEdit.type === 'radio')?_c('el-radio-group',{on:{"change":function($event){return _vm.clickBtn(record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(radioItem){return _c('el-radio',{attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'checkBox')?_c('el-checkbox-group',{on:{"change":function($event){return _vm.clickBtn(record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(checkItem){return _c('el-checkbox',{attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'switch')?_c('el-switch',{attrs:{"active-color":itemChild.isEdit.activeColor?itemChild.isEdit.activeColor:'',"inactive-color":itemChild.isEdit.defaultColor?itemChild.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e()],1):_vm._e(),(itemChild.isBtn)?_c('span',_vm._l((itemChild.isBtn.btnList),function(itemBtn){return _c('el-button',{style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn)}}},[_vm._v(_vm._s(itemBtn.name))])}),1):_vm._e(),(itemChild.isSpecial)?_c('span',[_c('span',{style:(itemChild.isSpecial.textStyle),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild):''}}},[_vm._v(_vm._s(text))])]):_vm._e(),(itemChild.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:itemChild.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(itemChild.isState)?_c('span',_vm._l((itemChild.isState.stateList),function(stateItem){return (text === stateItem.value)?_c('span',{class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){itemChild.isState.isClick?_vm.clickBtn(record,itemChild):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(itemChild.isHtml)?_c('div',_vm._l((itemChild.isHtml),function(htmlItem){return (text === htmlItem.value)?_c('div',{domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e()])}}})],null,true)}),(_vm.tableInit.pagination)?_c('PaginationAnt',{staticStyle:{"float":"right"},attrs:{"total":_vm.tableInit.pagination.total,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":[10,20,30,50,100]},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
9582
- var twTablevue_type_template_id_4adfd993_scoped_true_staticRenderFns = []
9599
+ return _c('div',{staticStyle:{"padding":"8px"}},[_c('a-input',{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:(function (c) { return (_vm.searchInput = c); }),expression:"c => (searchInput = c)"}],staticStyle:{"width":"188px","margin-bottom":"8px","display":"block"},attrs:{"placeholder":("搜索 " + (column.title)),"value":selectedKeys[0]},on:{"change":function (e) { return setSelectedKeys(e.target.value ? [e.target.value] : []); },"pressEnter":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}}),_c('a-button',{staticStyle:{"width":"80px","margin-right":"8px","padding-top":"1px"},attrs:{"type":"primary","icon":"search","size":"small"},on:{"click":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}},[_vm._v(" 查询 ")]),_c('a-button',{staticStyle:{"width":"80px","padding-top":"1px"},attrs:{"size":"small"},on:{"click":function () { return _vm.handleReset(clearFilters); }}},[_vm._v(" 重置 ")])],1)}},{key:"filterIcon",fn:function(filtered){return _c('a-icon',{style:({ color: filtered ? '#108ee9' : undefined }),attrs:{"type":"search"}})}},{key:"customRender",fn:function(text, record, index, column){return [(_vm.searchText && _vm.searchedColumn === column.dataIndex)?_c('span',[_vm._l((text.toString().split(new RegExp(("(?<=" + _vm.searchText + ")|(?=" + _vm.searchText + ")"), 'i'))),function(fragment,i){return [(fragment.toLowerCase() === _vm.searchText.toLowerCase())?_c('mark',{key:i,staticClass:"highlight"},[_vm._v(_vm._s(fragment))]):[_vm._v(_vm._s(fragment))]]})],2):[_vm._v(" "+_vm._s(text)+" ")]]}},_vm._l((_vm.columns),function(item,itemIndex){return {key:item.dataIndex,fn:function(text, record, index){return _c('div',{},[(item.isEdit)?_c('span',[(item.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"number"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"textarea"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini"},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(item.isEdit.type === 'radio')?_c('el-radio-group',{on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(radioItem){return _c('el-radio',{attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(item.isEdit.type === 'checkBox')?_c('el-checkbox-group',{on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(checkItem){return _c('el-checkbox',{attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(item.isEdit.type === 'switch')?_c('el-switch',{attrs:{"active-color":item.isEdit.activeColor?item.isEdit.activeColor:'',"inactive-color":item.isEdit.defaultColor?item.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":item.isEdit.dateType?item.isEdit.dateType:'date',"placeholder":"请选择","picker-options":_vm.processDate(item)},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e()],1):_vm._e(),(item.isBtn)?_c('span',_vm._l((item.isBtn.btnList),function(itemBtn){return (!itemBtn.hideBtn)?_c('el-button',{style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))]):_vm._e()}),1):_vm._e(),(item.isSpecial)?_c('span',[_c('span',{style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))])]):_vm._e(),(item.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:item.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(item.isState)?_c('span',_vm._l((item.isState.stateList),function(stateItem){return (text === stateItem.value)?_c('span',{class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){item.isState.isClick?_vm.clickBtn(record,item,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(item.isHtml)?_c('div',_vm._l((item.isHtml),function(htmlItem){return (text === htmlItem.value)?_c('div',{domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e()])}}}),_vm._l((_vm.columnsChild),function(itemChild,itemChildIndex){return {key:itemChild.dataIndex,fn:function(text, record, index){return _c('div',{},[(itemChild.isEdit)?_c('span',[(itemChild.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"number"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":"请输入内容","size":"mini","type":"textarea"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":"请输入内容","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini"},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini"},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(item){return _c('el-option',{key:item.value,attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(itemChild.isEdit.type === 'radio')?_c('el-radio-group',{on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(radioItem){return _c('el-radio',{attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'checkBox')?_c('el-checkbox-group',{on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(checkItem){return _c('el-checkbox',{attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'switch')?_c('el-switch',{attrs:{"active-color":itemChild.isEdit.activeColor?itemChild.isEdit.activeColor:'',"inactive-color":itemChild.isEdit.defaultColor?itemChild.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e()],1):_vm._e(),(itemChild.isBtn)?_c('span',_vm._l((itemChild.isBtn.btnList),function(itemBtn){return _c('el-button',{style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))])}),1):_vm._e(),(itemChild.isSpecial)?_c('span',[_c('span',{style:(itemChild.isSpecial.textStyle),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))])]):_vm._e(),(itemChild.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:itemChild.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(itemChild.isState)?_c('span',_vm._l((itemChild.isState.stateList),function(stateItem){return (text === stateItem.value)?_c('span',{class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){itemChild.isState.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(itemChild.isHtml)?_c('div',_vm._l((itemChild.isHtml),function(htmlItem){return (text === htmlItem.value)?_c('div',{domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e()])}}})],null,true)}),(_vm.tableInit.addNewRow)?_c('div',{staticClass:"addLine"},[_c('el-button',{attrs:{"type":"text","icon":"el-icon-plus"},on:{"click":_vm.addLine}},[_vm._v("添加")])],1):_vm._e(),(_vm.tableInit.pagination)?_c('PaginationAnt',{staticStyle:{"float":"right"},attrs:{"total":_vm.tableInit.pagination.total,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":[10,20,30,50,100]},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
9600
+ var twTablevue_type_template_id_0fff130a_scoped_true_staticRenderFns = []
9583
9601
 
9584
9602
 
9585
- // CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=4adfd993&scoped=true&
9603
+ // CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=0fff130a&scoped=true&
9586
9604
 
9587
9605
  // EXTERNAL MODULE: ./node_modules/_core-js@3.6.5@core-js/modules/es.array.for-each.js
9588
9606
  var es_array_for_each = __webpack_require__("fe59");
@@ -9831,6 +9849,9 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
9831
9849
  //
9832
9850
  //
9833
9851
  //
9852
+ //
9853
+ //
9854
+ //
9834
9855
 
9835
9856
  /* harmony default export */ var twTablevue_type_script_lang_js_ = ({
9836
9857
  components: {
@@ -9866,9 +9887,27 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
9866
9887
  }
9867
9888
  },
9868
9889
  mounted: function mounted() {
9869
- this.tableData.splice(0, 1, this.tableData[0]);
9890
+ if (this.tableData.length > 0) {
9891
+ this.tableData.splice(0, 1, this.tableData[0]);
9892
+ }
9870
9893
  },
9871
9894
  methods: {
9895
+ addLine: function addLine() {
9896
+ //添加一行空数据
9897
+ var newLine = {};
9898
+ this.columns.map(function (i) {
9899
+ if (i.isEdit && i.isEdit.type === 'checkBox') {
9900
+ newLine[i.dataIndex] = [];
9901
+ } else if (i.isEdit && i.isEdit.type === 'switch') {
9902
+ newLine[i.dataIndex] = false;
9903
+ } else {
9904
+ newLine[i.dataIndex] = '';
9905
+ }
9906
+ });
9907
+ newLine.newRow = true;
9908
+ this.tableData.push(newLine);
9909
+ this.$emit('addNewBack', this.tableData);
9910
+ },
9872
9911
  processDate: function processDate(item) {
9873
9912
  //时间组件的最大最小时间限制设置
9874
9913
  item = item.isEdit;
@@ -9880,16 +9919,17 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
9880
9919
  }
9881
9920
  };
9882
9921
  },
9883
- clickBtn: function clickBtn(currDataItem, columnItem) {
9922
+ clickBtn: function clickBtn(currDataItem, columnItem, index) {
9884
9923
  //按钮点击事件
9885
9924
  this.$emit('cellClick', {
9886
9925
  currDataItem: currDataItem,
9887
- columnItem: columnItem
9926
+ columnItem: columnItem,
9927
+ index: index
9888
9928
  });
9889
9929
  },
9890
9930
  onCellFBC: function onCellFBC(type, currDataItem, columnItem, val) {
9891
9931
  //单元格的blur,focus,change事件
9892
- if (currDataItem.isEdit.cellBlur || currDataItem.isEdit.cellFocus || currDataItem.isEdit.cellChange) {
9932
+ if (columnItem.isEdit.cellBlur || columnItem.isEdit.cellFocus || columnItem.isEdit.cellChange) {
9893
9933
  this.$emit('cellClickFBC', {
9894
9934
  type: type,
9895
9935
  currDataItem: currDataItem,
@@ -9955,6 +9995,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
9955
9995
  //表单数据初始化
9956
9996
  list.map(function (i, j) {
9957
9997
  if (i.tableRowSpan) {
9998
+ //行合并
9958
9999
  i.customRender = function (text, row) {
9959
10000
  return {
9960
10001
  children: text,
@@ -10013,6 +10054,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
10013
10054
  }
10014
10055
 
10015
10056
  if (i.children && i.children.length > 0) {
10057
+ //递归
10016
10058
  _this2.initTableData(i.children);
10017
10059
 
10018
10060
  _this2.columnsChild = _this2.columnsChild.concat(i.children);
@@ -10055,160 +10097,27 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
10055
10097
  }
10056
10098
  }
10057
10099
  });
10058
- /*const tableData = [
10059
- {
10060
- key: '1',
10061
- name: 'John Brown',
10062
- age: 32,
10063
- tel: '0571-22098909',
10064
- phone: 18889898989,
10065
- address: 'New York No. 1 Lake Park',
10066
- state:'success',
10067
- date:'',
10068
- },
10069
- {
10070
- key: '2',
10071
- name: 'Jim Green',
10072
- tel: '0571-22098333',
10073
- phone: 1888989888811,
10074
- age: 42,
10075
- address: 'London No. 1 Lake Park',
10076
- state:'fail',
10077
- date:'',
10078
- },
10079
- {
10080
- key: '3',
10081
- name: 'Joe Black',
10082
- age: 32,
10083
- tel: '0575-22098909',
10084
- phone: 18900010002,
10085
- address: 'Sidney No. 1 Lake Park',
10086
- state:'warning',
10087
- date:'',
10088
- },
10089
- {
10090
- key: '4',
10091
- name: 'Jim Red',
10092
- age: 18,
10093
- tel: '0575-22098909',
10094
- phone: 18900010002,
10095
- address: 'London No. 2 Lake Park',
10096
- state:'danger',
10097
- date:'',
10098
- },
10099
- {
10100
- key: '5',
10101
- name: 'Jim Red',
10102
- age: 18,
10103
- tel: '0575-22098909',
10104
- phone: 18900010002,
10105
- address: 'Dublin No. 2 Lake Park',
10106
- state:'ing',
10107
- date:'',
10108
- },
10109
- ];
10110
- const columns = [
10111
- {
10112
- title: 'basicInfo',
10113
- fixed: 'left',
10114
- children:[
10115
- {
10116
- title: 'Name',
10117
- dataIndex: 'name',
10118
- width:300,
10119
- isSpecial:{
10120
- textStyle:{"color":"red"}
10121
- }
10122
- },
10123
- {
10124
- title: 'Age',
10125
- dataIndex: 'age',
10126
- tableSort:true,
10127
- width:80,
10128
- isEdit:{type:'textBox',cellChange:true,cellFocus:true,cellBlur:true},
10129
- },
10130
- ]
10131
- },
10132
- {
10133
- title: '状态',
10134
- dataIndex: 'state',
10135
- isState:{//开启状态列
10136
- isClick:true,//开启状态列点击事件
10137
- stateList:[{name:'成功',value:'success',class:'stateColorBlue',icon:'el-icon-edit'},
10138
- {name:'失败',value:'fail',class:'stateColorRed',styles:{color:'red'}},
10139
- {name:'警告',value:'warning',class:'stateColorYellow'},
10140
- {value:'danger',styles:{color:'red'},class:'stateColorGrey'},
10141
- {value:'ing',styles:{color:'blue'},class:'stateColorGreen',img:require("../../../assets/logo.png")}]
10142
- //状态列数组,name表示要显示的值,没有该字段时,就显示dataindex匹配的值。value就是dataindex的枚举,icon:element的图标库,img:本地图片,
10143
- //styles表格中的样式, class内置了五种状态样式,写上class就行了(注意:styles里面的样式会覆盖class内的样式)
10144
- }
10145
- },
10146
- {
10147
- title: 'date',
10148
- dataIndex: 'date',
10149
- isEdit:{type:'date',cellChange:true,cellFocus:true,cellBlur:true,minDate:'2023-04-01',maxDate:'2023-05-01',dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
10150
- //text,number,textarea,textBox,numberBox,textareaBox,select,radio,checkBox,switch,date
10151
- },
10152
- {
10153
- title: 'Home phone',
10154
- colSpan: 2,
10155
- dataIndex: 'tel',
10156
- isEdit:{type:'textBox',cellChange:true,cellFocus:true,cellBlur:true,dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
10157
- //text,number,textarea,textBox,numberBox,textareaBox,select,radio,checkBox,switch,date
10158
- },
10159
- {
10160
- title: 'Phone',
10161
- colSpan: 0,
10162
- dataIndex: 'phone',
10163
- isSpecial:{//是否开启字段样式特殊处理
10164
- isClick:true,//开启状态列点击事件
10165
- textStyle:{"color":"red","border-bottom":"1px solid red","cursor":"pointer"}
10166
- }
10167
- },
10168
- {
10169
- title: 'Address',
10170
- dataIndex: 'address',
10171
- twEllipsis:1,//超出多少行出现省略号,目前支持1和2,twEllipsis会覆盖ellipsis的效果,并且会让表头搜索功能失效
10172
- width:150,
10173
- colSearch:true,//表头搜索功能,与twEllipsis冲突,不能共用,如果非要用,就使用ellipsis: true。但是没有twEllipsis悬浮框的效果
10174
- ellipsis: true,//超出1行出现省略号,twEllipsis会覆盖ellipsis的效果。
10175
- },
10176
- {
10177
- title: '操作',
10178
- dataIndex: 'doSomething',
10179
- isBtn:{btnList:[{name:'查看',color:'#3399ff'},{name:'编辑',icon:'el-icon-edit'},{name:'删除',color:'red',icon:'el-icon-delete'}]}
10180
- //自定义按钮:统一按钮为文字按钮,name名称 color颜色 icon图标 自带点击事件
10181
- },
10182
- ];
10183
- const tableInit = {
10184
- tableClassName:'tableClass',//表样式名
10185
- size:'small',//表格大小:middle 默认small,
10186
- select:false,//开启左侧select选项 不要与selectRow同时使用,不然勾选后,行样式会消失。
10187
- height:'500',//表格高
10188
- width:'',//表格宽
10189
- selectRow:false,//开启选中行数据事件 点击后默认添加checkedRowClass行样式,可以在公共CSS里面强制覆盖改样式。
10190
- pagination:{//是否开启分页,有值就开启
10191
- total:200,
10192
- currPage:2
10193
- }
10194
- }*/
10195
10100
  // CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=script&lang=js&
10196
10101
  /* harmony default export */ var twTable_twTablevue_type_script_lang_js_ = (twTablevue_type_script_lang_js_);
10102
+ // EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=0fff130a&scoped=true&lang=scss&
10103
+ var twTablevue_type_style_index_0_id_0fff130a_scoped_true_lang_scss_ = __webpack_require__("25c5");
10104
+
10197
10105
  // CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue
10198
10106
 
10199
10107
 
10200
10108
 
10201
10109
 
10202
10110
 
10111
+
10203
10112
  /* normalize component */
10204
10113
 
10205
10114
  var twTable_component = Object(componentNormalizer["a" /* default */])(
10206
10115
  twTable_twTablevue_type_script_lang_js_,
10207
- twTablevue_type_template_id_4adfd993_scoped_true_render,
10208
- twTablevue_type_template_id_4adfd993_scoped_true_staticRenderFns,
10116
+ twTablevue_type_template_id_0fff130a_scoped_true_render,
10117
+ twTablevue_type_template_id_0fff130a_scoped_true_staticRenderFns,
10209
10118
  false,
10210
10119
  null,
10211
- "4adfd993",
10120
+ "0fff130a",
10212
10121
  null
10213
10122
 
10214
10123
  )
@@ -10235,6 +10144,10 @@ var twTable_component = Object(componentNormalizer["a" /* default */])(
10235
10144
  },
10236
10145
  mounted: function mounted() {},
10237
10146
  methods: {
10147
+ addNewBack: function addNewBack(params) {
10148
+ //新增一行数据的回调
10149
+ this.$emit('addNewBack', params);
10150
+ },
10238
10151
  cellClick: function cellClick(params) {
10239
10152
  //单元格的点击事件
10240
10153
  this.$emit('cellClick', params);
@@ -10270,8 +10183,8 @@ var twTable_component = Object(componentNormalizer["a" /* default */])(
10270
10183
 
10271
10184
  var twTable_src_main_component = Object(componentNormalizer["a" /* default */])(
10272
10185
  packages_twTable_src_mainvue_type_script_lang_js_,
10273
- mainvue_type_template_id_1d2ff46b_render,
10274
- mainvue_type_template_id_1d2ff46b_staticRenderFns,
10186
+ mainvue_type_template_id_57c43650_render,
10187
+ mainvue_type_template_id_57c43650_staticRenderFns,
10275
10188
  false,
10276
10189
  null,
10277
10190
  null,