twmodule 0.0.66 → 0.0.68
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.common.js +44 -31
- package/lib/twComp.css +1 -1
- package/lib/twComp.umd.js +44 -31
- package/lib/twComp.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/twComp.umd.js
CHANGED
@@ -3085,17 +3085,6 @@ module.exports = Array.isArray || function isArray(arg) {
|
|
3085
3085
|
};
|
3086
3086
|
|
3087
3087
|
|
3088
|
-
/***/ }),
|
3089
|
-
|
3090
|
-
/***/ "7689":
|
3091
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3092
|
-
|
3093
|
-
"use strict";
|
3094
|
-
/* 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_d9c4af18_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8bc8");
|
3095
|
-
/* 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_d9c4af18_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_d9c4af18_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
3096
|
-
/* unused harmony reexport * */
|
3097
|
-
/* 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_d9c4af18_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
3098
|
-
|
3099
3088
|
/***/ }),
|
3100
3089
|
|
3101
3090
|
/***/ "77ad":
|
@@ -3526,13 +3515,6 @@ module.exports = function (it) {
|
|
3526
3515
|
};
|
3527
3516
|
|
3528
3517
|
|
3529
|
-
/***/ }),
|
3530
|
-
|
3531
|
-
/***/ "8bc8":
|
3532
|
-
/***/ (function(module, exports, __webpack_require__) {
|
3533
|
-
|
3534
|
-
// extracted by mini-css-extract-plugin
|
3535
|
-
|
3536
3518
|
/***/ }),
|
3537
3519
|
|
3538
3520
|
/***/ "8d44":
|
@@ -6055,6 +6037,17 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
6055
6037
|
};
|
6056
6038
|
|
6057
6039
|
|
6040
|
+
/***/ }),
|
6041
|
+
|
6042
|
+
/***/ "df81":
|
6043
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6044
|
+
|
6045
|
+
"use strict";
|
6046
|
+
/* 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_6e57e0c2_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f4dd");
|
6047
|
+
/* 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_6e57e0c2_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_6e57e0c2_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
6048
|
+
/* unused harmony reexport * */
|
6049
|
+
/* 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_6e57e0c2_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
6050
|
+
|
6058
6051
|
/***/ }),
|
6059
6052
|
|
6060
6053
|
/***/ "e055":
|
@@ -6838,6 +6831,13 @@ module.exports = function (exec, SKIP_CLOSING) {
|
|
6838
6831
|
};
|
6839
6832
|
|
6840
6833
|
|
6834
|
+
/***/ }),
|
6835
|
+
|
6836
|
+
/***/ "f4dd":
|
6837
|
+
/***/ (function(module, exports, __webpack_require__) {
|
6838
|
+
|
6839
|
+
// extracted by mini-css-extract-plugin
|
6840
|
+
|
6841
6841
|
/***/ }),
|
6842
6842
|
|
6843
6843
|
/***/ "f4e3":
|
@@ -9589,18 +9589,18 @@ var mainvue_type_template_id_57c43650_staticRenderFns = []
|
|
9589
9589
|
|
9590
9590
|
// CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=57c43650&
|
9591
9591
|
|
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=
|
9593
|
-
var
|
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=6e57e0c2&scoped=true&
|
9593
|
+
var twTablevue_type_template_id_6e57e0c2_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){
|
9594
9594
|
var setSelectedKeys = ref.setSelectedKeys;
|
9595
9595
|
var selectedKeys = ref.selectedKeys;
|
9596
9596
|
var confirm = ref.confirm;
|
9597
9597
|
var clearFilters = ref.clearFilters;
|
9598
9598
|
var column = ref.column;
|
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',[(item.isSpecial.type === 'num')?_c('span',{class:item.isSpecial.class,on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,item.isSpecial.numType)))]):_vm._e(),(item.isSpecial.type === 'img')?_c('img',{class:item.isSpecial.class,attrs:{"src":item.isSpecial.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e(),_vm._l((item.isSpecial.imgList),function(imgItem){return (item.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{class:item.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e()}),(item.isSpecial.type === 'style')?_c('span',{class:item.isSpecial.class,style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((item.isSpecial.textStyleList),function(styleItem){return (item.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{class:item.isSpecial.class,style:(styleItem.style),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_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',{class:stateItem.imgClass,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
|
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',[(item.isSpecial.type === 'num')?_c('span',{class:item.isSpecial.class,on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,item.isSpecial.numType)))]):_vm._e(),(item.isSpecial.type === 'img')?_c('img',{class:item.isSpecial.class,attrs:{"src":item.isSpecial.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e(),_vm._l((item.isSpecial.imgList),function(imgItem){return (item.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{class:item.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e()}),(item.isSpecial.type === 'style')?_c('span',{class:item.isSpecial.class,style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((item.isSpecial.textStyleList),function(styleItem){return (item.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{class:item.isSpecial.class,style:(styleItem.style),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_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',{class:stateItem.imgClass,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',[(itemChild.isSpecial.type === 'num')?_c('span',{class:itemChild.isSpecial.class,on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,itemChild.isSpecial.numType)))]):_vm._e(),(itemChild.isSpecial.type === 'img')?_c('img',{class:itemChild.isSpecial.class,attrs:{"src":itemChild.isSpecial.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e(),_vm._l((itemChild.isSpecial.imgList),function(imgItem){return (itemChild.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{class:itemChild.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e()}),(itemChild.isSpecial.type === 'style')?_c('span',{class:itemChild.isSpecial.class,style:(itemChild.isSpecial.textStyle),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((itemChild.isSpecial.textStyleList),function(styleItem){return (itemChild.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{class:itemChild.isSpecial.class,style:(styleItem.style),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_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_6e57e0c2_scoped_true_staticRenderFns = []
|
9601
9601
|
|
9602
9602
|
|
9603
|
-
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=
|
9603
|
+
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=6e57e0c2&scoped=true&
|
9604
9604
|
|
9605
9605
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.6.5@core-js/modules/es.array.for-each.js
|
9606
9606
|
var es_array_for_each = __webpack_require__("fe59");
|
@@ -9857,6 +9857,11 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9857
9857
|
//
|
9858
9858
|
//
|
9859
9859
|
//
|
9860
|
+
//
|
9861
|
+
//
|
9862
|
+
//
|
9863
|
+
//
|
9864
|
+
//
|
9860
9865
|
|
9861
9866
|
/* harmony default export */ var twTablevue_type_script_lang_js_ = ({
|
9862
9867
|
components: {
|
@@ -10075,15 +10080,23 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10075
10080
|
var count = 1;
|
10076
10081
|
|
10077
10082
|
for (var j = i + 1; j < tableData.length; j++) {
|
10083
|
+
// 如果是同一个值,往后递增
|
10078
10084
|
if (item[key] === tableData[j][key]) {
|
10079
|
-
count++;
|
10080
|
-
|
10081
|
-
|
10085
|
+
count++; // 往后相同的值都设为空单元格
|
10086
|
+
|
10087
|
+
tableData[j]["".concat(key, "RowSpan")] = 0; // 只有同值第一个才设置合并的单元格数
|
10088
|
+
|
10089
|
+
item["".concat(key, "RowSpan")] = count; // 所有都是为同一个值的情况
|
10090
|
+
// 如果到了尾部,则循环结束
|
10082
10091
|
|
10083
10092
|
if (j === tableData.length - 1) {
|
10084
10093
|
return;
|
10085
10094
|
}
|
10086
10095
|
} else {
|
10096
|
+
// 指针跳转到下一个,从下一排开始
|
10097
|
+
i = j - 1;
|
10098
|
+
count = 1;
|
10099
|
+
tableData[j]["".concat(key, "RowSpan")] = 0;
|
10087
10100
|
break;
|
10088
10101
|
}
|
10089
10102
|
}
|
@@ -10104,8 +10117,8 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10104
10117
|
});
|
10105
10118
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=script&lang=js&
|
10106
10119
|
/* harmony default export */ var twTable_twTablevue_type_script_lang_js_ = (twTablevue_type_script_lang_js_);
|
10107
|
-
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=
|
10108
|
-
var
|
10120
|
+
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=6e57e0c2&scoped=true&lang=scss&
|
10121
|
+
var twTablevue_type_style_index_0_id_6e57e0c2_scoped_true_lang_scss_ = __webpack_require__("df81");
|
10109
10122
|
|
10110
10123
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue
|
10111
10124
|
|
@@ -10118,11 +10131,11 @@ var twTablevue_type_style_index_0_id_d9c4af18_scoped_true_lang_scss_ = __webpack
|
|
10118
10131
|
|
10119
10132
|
var twTable_component = Object(componentNormalizer["a" /* default */])(
|
10120
10133
|
twTable_twTablevue_type_script_lang_js_,
|
10121
|
-
|
10122
|
-
|
10134
|
+
twTablevue_type_template_id_6e57e0c2_scoped_true_render,
|
10135
|
+
twTablevue_type_template_id_6e57e0c2_scoped_true_staticRenderFns,
|
10123
10136
|
false,
|
10124
10137
|
null,
|
10125
|
-
"
|
10138
|
+
"6e57e0c2",
|
10126
10139
|
null
|
10127
10140
|
|
10128
10141
|
)
|