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/README.md +10 -3
- package/lib/twComp.common.js +68 -155
- package/lib/twComp.css +1 -1
- package/lib/twComp.umd.js +68 -155
- package/lib/twComp.umd.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -539,7 +539,7 @@ stepData:{
|
|
539
539
|
|
540
540
|
#### 6、table组件
|
541
541
|
```
|
542
|
-
<TwTable :tableInit="tableInit" :tableData="tableData" :columns="columns" @cellClick="cellClick"
|
542
|
+
<TwTable :tableInit="tableInit" :tableData="tableData" :columns="columns" @cellClick="cellClick" @addNewBack="addNewBack"
|
543
543
|
@cellClickFBC="cellClickFBC" @changePage="changePage" @selectRow="selectRow" @selectChange="selectChange"></TwTable>
|
544
544
|
|
545
545
|
//表格整体设置
|
@@ -547,6 +547,9 @@ stepData:{
|
|
547
547
|
tableClassName:'tableClass',//给表格添加样式名(内置默认样式名:twTableStyle,自带样式,注意覆盖情况)
|
548
548
|
tableHeadClass:'twTableHeadClass',//给表头添加样式名(内置默认样式名:tableHeadClass,自带样式,注意覆盖情况)
|
549
549
|
size:'small',//表格大小:middle 默认small,
|
550
|
+
hideHeader:false,//隐藏表头
|
551
|
+
addNewRow:true,//新增一行,使用时,请配合操作列中,添加删除按钮进行新增数据的删除。同时结合addNewBack这个回调,调整新增行数据的特殊值的初始化。
|
552
|
+
border:false,//单元格是否要线框
|
550
553
|
select:false,//开启左侧select选项 不要与selectRow同时使用,不然勾选后,selectRow修改的行样式会消失。
|
551
554
|
height:'500',//表格高
|
552
555
|
width:'',//表格宽
|
@@ -571,6 +574,7 @@ stepData:{
|
|
571
574
|
{
|
572
575
|
title: 'Name',
|
573
576
|
dataIndex: 'name',
|
577
|
+
rowHide:true,//隐藏列
|
574
578
|
tableSort:true,//开启当前页前端的简单排序
|
575
579
|
align:'left',//对齐方式'left' | 'right' | 'center'
|
576
580
|
fixed:'left',//开启固定列,left/right;使用fixed时,必须使用width固定宽度,否则样式会有问题
|
@@ -671,8 +675,8 @@ stepData:{
|
|
671
675
|
},
|
672
676
|
{
|
673
677
|
title: '操作',
|
674
|
-
isBtn:{btnList:[{name:'查看',color:'#3399ff'},{name:'编辑',icon:'el-icon-edit'},{name:'删除',color:'red',icon:'el-icon-delete'}]}
|
675
|
-
//自定义按钮:统一按钮为文字按钮,name名称 color颜色 icon图标 自带点击事件
|
678
|
+
isBtn:{btnList:[{name:'查看',color:'#3399ff'},{name:'编辑',icon:'el-icon-edit',hideBtn:true},{name:'删除',color:'red',icon:'el-icon-delete'}]}
|
679
|
+
//自定义按钮:统一按钮为文字按钮,name名称 color颜色 icon图标 自带点击事件 hideBtn隐藏按钮
|
676
680
|
},
|
677
681
|
];
|
678
682
|
|
@@ -680,6 +684,9 @@ stepData:{
|
|
680
684
|
tableData
|
681
685
|
|
682
686
|
//对应事件
|
687
|
+
addNewBack(params){//新增行数据的回调,用于新增行数据后,某些字段需要特殊处理或者初始化一些值
|
688
|
+
params//tableData的整个数组对象,修改最后一个对象就行了。建议用$set赋值
|
689
|
+
}
|
683
690
|
cellClick(params){//单元格的点击事件
|
684
691
|
params = {
|
685
692
|
currDataItem:currDataItem,//tableData中的行数据
|
package/lib/twComp.common.js
CHANGED
@@ -1045,6 +1045,17 @@ module.exports = function (key) {
|
|
1045
1045
|
};
|
1046
1046
|
|
1047
1047
|
|
1048
|
+
/***/ }),
|
1049
|
+
|
1050
|
+
/***/ "25c5":
|
1051
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1052
|
+
|
1053
|
+
"use strict";
|
1054
|
+
/* 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");
|
1055
|
+
/* 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__);
|
1056
|
+
/* unused harmony reexport * */
|
1057
|
+
/* 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);
|
1058
|
+
|
1048
1059
|
/***/ }),
|
1049
1060
|
|
1050
1061
|
/***/ "262e":
|
@@ -6363,6 +6374,13 @@ $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !US
|
|
6363
6374
|
});
|
6364
6375
|
|
6365
6376
|
|
6377
|
+
/***/ }),
|
6378
|
+
|
6379
|
+
/***/ "ee38":
|
6380
|
+
/***/ (function(module, exports, __webpack_require__) {
|
6381
|
+
|
6382
|
+
// extracted by mini-css-extract-plugin
|
6383
|
+
|
6366
6384
|
/***/ }),
|
6367
6385
|
|
6368
6386
|
/***/ "eec6":
|
@@ -9555,25 +9573,25 @@ twFormItem_src_main.install = function (Vue) {
|
|
9555
9573
|
};
|
9556
9574
|
|
9557
9575
|
/* harmony default export */ var twFormItem = (twFormItem_src_main);
|
9558
|
-
// 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=
|
9559
|
-
var
|
9560
|
-
var
|
9576
|
+
// 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&
|
9577
|
+
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)}
|
9578
|
+
var mainvue_type_template_id_57c43650_staticRenderFns = []
|
9561
9579
|
|
9562
9580
|
|
9563
|
-
// CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=
|
9581
|
+
// CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=57c43650&
|
9564
9582
|
|
9565
|
-
// 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=
|
9566
|
-
var
|
9583
|
+
// 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&
|
9584
|
+
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){
|
9567
9585
|
var setSelectedKeys = ref.setSelectedKeys;
|
9568
9586
|
var selectedKeys = ref.selectedKeys;
|
9569
9587
|
var confirm = ref.confirm;
|
9570
9588
|
var clearFilters = ref.clearFilters;
|
9571
9589
|
var column = ref.column;
|
9572
|
-
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)}
|
9573
|
-
var
|
9590
|
+
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)}
|
9591
|
+
var twTablevue_type_template_id_0fff130a_scoped_true_staticRenderFns = []
|
9574
9592
|
|
9575
9593
|
|
9576
|
-
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=
|
9594
|
+
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=0fff130a&scoped=true&
|
9577
9595
|
|
9578
9596
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.6.5@core-js/modules/es.array.for-each.js
|
9579
9597
|
var es_array_for_each = __webpack_require__("fe59");
|
@@ -9822,6 +9840,9 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9822
9840
|
//
|
9823
9841
|
//
|
9824
9842
|
//
|
9843
|
+
//
|
9844
|
+
//
|
9845
|
+
//
|
9825
9846
|
|
9826
9847
|
/* harmony default export */ var twTablevue_type_script_lang_js_ = ({
|
9827
9848
|
components: {
|
@@ -9857,9 +9878,27 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9857
9878
|
}
|
9858
9879
|
},
|
9859
9880
|
mounted: function mounted() {
|
9860
|
-
this.tableData.
|
9881
|
+
if (this.tableData.length > 0) {
|
9882
|
+
this.tableData.splice(0, 1, this.tableData[0]);
|
9883
|
+
}
|
9861
9884
|
},
|
9862
9885
|
methods: {
|
9886
|
+
addLine: function addLine() {
|
9887
|
+
//添加一行空数据
|
9888
|
+
var newLine = {};
|
9889
|
+
this.columns.map(function (i) {
|
9890
|
+
if (i.isEdit && i.isEdit.type === 'checkBox') {
|
9891
|
+
newLine[i.dataIndex] = [];
|
9892
|
+
} else if (i.isEdit && i.isEdit.type === 'switch') {
|
9893
|
+
newLine[i.dataIndex] = false;
|
9894
|
+
} else {
|
9895
|
+
newLine[i.dataIndex] = '';
|
9896
|
+
}
|
9897
|
+
});
|
9898
|
+
newLine.newRow = true;
|
9899
|
+
this.tableData.push(newLine);
|
9900
|
+
this.$emit('addNewBack', this.tableData);
|
9901
|
+
},
|
9863
9902
|
processDate: function processDate(item) {
|
9864
9903
|
//时间组件的最大最小时间限制设置
|
9865
9904
|
item = item.isEdit;
|
@@ -9871,16 +9910,17 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9871
9910
|
}
|
9872
9911
|
};
|
9873
9912
|
},
|
9874
|
-
clickBtn: function clickBtn(currDataItem, columnItem) {
|
9913
|
+
clickBtn: function clickBtn(currDataItem, columnItem, index) {
|
9875
9914
|
//按钮点击事件
|
9876
9915
|
this.$emit('cellClick', {
|
9877
9916
|
currDataItem: currDataItem,
|
9878
|
-
columnItem: columnItem
|
9917
|
+
columnItem: columnItem,
|
9918
|
+
index: index
|
9879
9919
|
});
|
9880
9920
|
},
|
9881
9921
|
onCellFBC: function onCellFBC(type, currDataItem, columnItem, val) {
|
9882
9922
|
//单元格的blur,focus,change事件
|
9883
|
-
if (
|
9923
|
+
if (columnItem.isEdit.cellBlur || columnItem.isEdit.cellFocus || columnItem.isEdit.cellChange) {
|
9884
9924
|
this.$emit('cellClickFBC', {
|
9885
9925
|
type: type,
|
9886
9926
|
currDataItem: currDataItem,
|
@@ -9946,6 +9986,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9946
9986
|
//表单数据初始化
|
9947
9987
|
list.map(function (i, j) {
|
9948
9988
|
if (i.tableRowSpan) {
|
9989
|
+
//行合并
|
9949
9990
|
i.customRender = function (text, row) {
|
9950
9991
|
return {
|
9951
9992
|
children: text,
|
@@ -10004,6 +10045,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10004
10045
|
}
|
10005
10046
|
|
10006
10047
|
if (i.children && i.children.length > 0) {
|
10048
|
+
//递归
|
10007
10049
|
_this2.initTableData(i.children);
|
10008
10050
|
|
10009
10051
|
_this2.columnsChild = _this2.columnsChild.concat(i.children);
|
@@ -10046,160 +10088,27 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10046
10088
|
}
|
10047
10089
|
}
|
10048
10090
|
});
|
10049
|
-
/*const tableData = [
|
10050
|
-
{
|
10051
|
-
key: '1',
|
10052
|
-
name: 'John Brown',
|
10053
|
-
age: 32,
|
10054
|
-
tel: '0571-22098909',
|
10055
|
-
phone: 18889898989,
|
10056
|
-
address: 'New York No. 1 Lake Park',
|
10057
|
-
state:'success',
|
10058
|
-
date:'',
|
10059
|
-
},
|
10060
|
-
{
|
10061
|
-
key: '2',
|
10062
|
-
name: 'Jim Green',
|
10063
|
-
tel: '0571-22098333',
|
10064
|
-
phone: 1888989888811,
|
10065
|
-
age: 42,
|
10066
|
-
address: 'London No. 1 Lake Park',
|
10067
|
-
state:'fail',
|
10068
|
-
date:'',
|
10069
|
-
},
|
10070
|
-
{
|
10071
|
-
key: '3',
|
10072
|
-
name: 'Joe Black',
|
10073
|
-
age: 32,
|
10074
|
-
tel: '0575-22098909',
|
10075
|
-
phone: 18900010002,
|
10076
|
-
address: 'Sidney No. 1 Lake Park',
|
10077
|
-
state:'warning',
|
10078
|
-
date:'',
|
10079
|
-
},
|
10080
|
-
{
|
10081
|
-
key: '4',
|
10082
|
-
name: 'Jim Red',
|
10083
|
-
age: 18,
|
10084
|
-
tel: '0575-22098909',
|
10085
|
-
phone: 18900010002,
|
10086
|
-
address: 'London No. 2 Lake Park',
|
10087
|
-
state:'danger',
|
10088
|
-
date:'',
|
10089
|
-
},
|
10090
|
-
{
|
10091
|
-
key: '5',
|
10092
|
-
name: 'Jim Red',
|
10093
|
-
age: 18,
|
10094
|
-
tel: '0575-22098909',
|
10095
|
-
phone: 18900010002,
|
10096
|
-
address: 'Dublin No. 2 Lake Park',
|
10097
|
-
state:'ing',
|
10098
|
-
date:'',
|
10099
|
-
},
|
10100
|
-
];
|
10101
|
-
const columns = [
|
10102
|
-
{
|
10103
|
-
title: 'basicInfo',
|
10104
|
-
fixed: 'left',
|
10105
|
-
children:[
|
10106
|
-
{
|
10107
|
-
title: 'Name',
|
10108
|
-
dataIndex: 'name',
|
10109
|
-
width:300,
|
10110
|
-
isSpecial:{
|
10111
|
-
textStyle:{"color":"red"}
|
10112
|
-
}
|
10113
|
-
},
|
10114
|
-
{
|
10115
|
-
title: 'Age',
|
10116
|
-
dataIndex: 'age',
|
10117
|
-
tableSort:true,
|
10118
|
-
width:80,
|
10119
|
-
isEdit:{type:'textBox',cellChange:true,cellFocus:true,cellBlur:true},
|
10120
|
-
},
|
10121
|
-
]
|
10122
|
-
},
|
10123
|
-
{
|
10124
|
-
title: '状态',
|
10125
|
-
dataIndex: 'state',
|
10126
|
-
isState:{//开启状态列
|
10127
|
-
isClick:true,//开启状态列点击事件
|
10128
|
-
stateList:[{name:'成功',value:'success',class:'stateColorBlue',icon:'el-icon-edit'},
|
10129
|
-
{name:'失败',value:'fail',class:'stateColorRed',styles:{color:'red'}},
|
10130
|
-
{name:'警告',value:'warning',class:'stateColorYellow'},
|
10131
|
-
{value:'danger',styles:{color:'red'},class:'stateColorGrey'},
|
10132
|
-
{value:'ing',styles:{color:'blue'},class:'stateColorGreen',img:require("../../../assets/logo.png")}]
|
10133
|
-
//状态列数组,name表示要显示的值,没有该字段时,就显示dataindex匹配的值。value就是dataindex的枚举,icon:element的图标库,img:本地图片,
|
10134
|
-
//styles表格中的样式, class内置了五种状态样式,写上class就行了(注意:styles里面的样式会覆盖class内的样式)
|
10135
|
-
}
|
10136
|
-
},
|
10137
|
-
{
|
10138
|
-
title: 'date',
|
10139
|
-
dataIndex: 'date',
|
10140
|
-
isEdit:{type:'date',cellChange:true,cellFocus:true,cellBlur:true,minDate:'2023-04-01',maxDate:'2023-05-01',dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
|
10141
|
-
//text,number,textarea,textBox,numberBox,textareaBox,select,radio,checkBox,switch,date
|
10142
|
-
},
|
10143
|
-
{
|
10144
|
-
title: 'Home phone',
|
10145
|
-
colSpan: 2,
|
10146
|
-
dataIndex: 'tel',
|
10147
|
-
isEdit:{type:'textBox',cellChange:true,cellFocus:true,cellBlur:true,dataList:[{value: '111',name: '黄金糕'}, {value: '222',name: '双皮奶'}]},
|
10148
|
-
//text,number,textarea,textBox,numberBox,textareaBox,select,radio,checkBox,switch,date
|
10149
|
-
},
|
10150
|
-
{
|
10151
|
-
title: 'Phone',
|
10152
|
-
colSpan: 0,
|
10153
|
-
dataIndex: 'phone',
|
10154
|
-
isSpecial:{//是否开启字段样式特殊处理
|
10155
|
-
isClick:true,//开启状态列点击事件
|
10156
|
-
textStyle:{"color":"red","border-bottom":"1px solid red","cursor":"pointer"}
|
10157
|
-
}
|
10158
|
-
},
|
10159
|
-
{
|
10160
|
-
title: 'Address',
|
10161
|
-
dataIndex: 'address',
|
10162
|
-
twEllipsis:1,//超出多少行出现省略号,目前支持1和2,twEllipsis会覆盖ellipsis的效果,并且会让表头搜索功能失效
|
10163
|
-
width:150,
|
10164
|
-
colSearch:true,//表头搜索功能,与twEllipsis冲突,不能共用,如果非要用,就使用ellipsis: true。但是没有twEllipsis悬浮框的效果
|
10165
|
-
ellipsis: true,//超出1行出现省略号,twEllipsis会覆盖ellipsis的效果。
|
10166
|
-
},
|
10167
|
-
{
|
10168
|
-
title: '操作',
|
10169
|
-
dataIndex: 'doSomething',
|
10170
|
-
isBtn:{btnList:[{name:'查看',color:'#3399ff'},{name:'编辑',icon:'el-icon-edit'},{name:'删除',color:'red',icon:'el-icon-delete'}]}
|
10171
|
-
//自定义按钮:统一按钮为文字按钮,name名称 color颜色 icon图标 自带点击事件
|
10172
|
-
},
|
10173
|
-
];
|
10174
|
-
const tableInit = {
|
10175
|
-
tableClassName:'tableClass',//表样式名
|
10176
|
-
size:'small',//表格大小:middle 默认small,
|
10177
|
-
select:false,//开启左侧select选项 不要与selectRow同时使用,不然勾选后,行样式会消失。
|
10178
|
-
height:'500',//表格高
|
10179
|
-
width:'',//表格宽
|
10180
|
-
selectRow:false,//开启选中行数据事件 点击后默认添加checkedRowClass行样式,可以在公共CSS里面强制覆盖改样式。
|
10181
|
-
pagination:{//是否开启分页,有值就开启
|
10182
|
-
total:200,
|
10183
|
-
currPage:2
|
10184
|
-
}
|
10185
|
-
}*/
|
10186
10091
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=script&lang=js&
|
10187
10092
|
/* harmony default export */ var twTable_twTablevue_type_script_lang_js_ = (twTablevue_type_script_lang_js_);
|
10093
|
+
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=0fff130a&scoped=true&lang=scss&
|
10094
|
+
var twTablevue_type_style_index_0_id_0fff130a_scoped_true_lang_scss_ = __webpack_require__("25c5");
|
10095
|
+
|
10188
10096
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue
|
10189
10097
|
|
10190
10098
|
|
10191
10099
|
|
10192
10100
|
|
10193
10101
|
|
10102
|
+
|
10194
10103
|
/* normalize component */
|
10195
10104
|
|
10196
10105
|
var twTable_component = Object(componentNormalizer["a" /* default */])(
|
10197
10106
|
twTable_twTablevue_type_script_lang_js_,
|
10198
|
-
|
10199
|
-
|
10107
|
+
twTablevue_type_template_id_0fff130a_scoped_true_render,
|
10108
|
+
twTablevue_type_template_id_0fff130a_scoped_true_staticRenderFns,
|
10200
10109
|
false,
|
10201
10110
|
null,
|
10202
|
-
"
|
10111
|
+
"0fff130a",
|
10203
10112
|
null
|
10204
10113
|
|
10205
10114
|
)
|
@@ -10226,6 +10135,10 @@ var twTable_component = Object(componentNormalizer["a" /* default */])(
|
|
10226
10135
|
},
|
10227
10136
|
mounted: function mounted() {},
|
10228
10137
|
methods: {
|
10138
|
+
addNewBack: function addNewBack(params) {
|
10139
|
+
//新增一行数据的回调
|
10140
|
+
this.$emit('addNewBack', params);
|
10141
|
+
},
|
10229
10142
|
cellClick: function cellClick(params) {
|
10230
10143
|
//单元格的点击事件
|
10231
10144
|
this.$emit('cellClick', params);
|
@@ -10261,8 +10174,8 @@ var twTable_component = Object(componentNormalizer["a" /* default */])(
|
|
10261
10174
|
|
10262
10175
|
var twTable_src_main_component = Object(componentNormalizer["a" /* default */])(
|
10263
10176
|
packages_twTable_src_mainvue_type_script_lang_js_,
|
10264
|
-
|
10265
|
-
|
10177
|
+
mainvue_type_template_id_57c43650_render,
|
10178
|
+
mainvue_type_template_id_57c43650_staticRenderFns,
|
10266
10179
|
false,
|
10267
10180
|
null,
|
10268
10181
|
null,
|