sone-ui-component-3.2.4 2.1.16 → 2.1.18

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.
@@ -28089,12 +28089,12 @@ dialog_src_main.install = function(Vue) {
28089
28089
 
28090
28090
  /* harmony default export */ var dialog = (dialog_src_main);
28091
28091
 
28092
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/main.vue?vue&type=template&id=42183766&
28093
- var mainvue_type_template_id_42183766_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone_table_box"},[(_vm.showMenuLeft)?_c('div',{staticClass:"table-menu-left"},[_vm._t("menuLeft")],2):_vm._e(),(_vm.showMenuRight)?_c('div',{staticClass:"table-menu-right"},[_vm._t("menuRight"),(_vm.showColumnHandleBtn)?_c('el-dropdown',{attrs:{"hide-on-click":false},on:{"visible-change":_vm.onColumnVisibleMenu}},[_c('icon-button',{staticClass:"sort-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"content":"列展示","icon":"el-icon-s-operation"}}),_c('column-transfer',{ref:"column-transfer",attrs:{"columns":_vm.internalColumns},on:{"update:columns":function($event){_vm.internalColumns=$event},"dropdownList":_vm.dropdownList,"handleCheckedColumnChange":_vm.handleCheckedColumnChange,"selectFixed":_vm.selectFixed,"resetColumnTransfer":function($event){return _vm.$emit('resetColumnTransfer')}}})],1):_vm._e(),_vm._t("transferRight")],2):_vm._e(),(_vm.isTable)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tabelRef,class:'sone-table ' + _vm.className,staticStyle:{"width":"100%"},attrs:{"useVirtual":_vm.option.useVirtual,"rowHeight":_vm.option.rowHeight,"excessRows":_vm.option.excessRows,"cell-class-name":_vm.option.cellClassName,"cell-style":_vm.option.cellStyle,"data":_vm.tableData,"header-cell-class-name":_vm.option.headerCellClassName,"header-cell-style":_vm.option.headerCellStyle,"header-row-class-name":_vm.option.headerRowClassName,"header-row-style":_vm.option.headerRowStyle,"height":_vm.option.height,"highlight-current-row":_vm.option.highlightRow,"max-height":_vm.option.maxHeight,"default-expand-all":_vm.option.defaultExpandAll,"expand-row-keys":_vm.option.expandRowKeys,"row-class-name":_vm.tableRowClassName,"row-key":_vm.option.rowKey,"row-style":_vm.option.rowStyle,"show-summary":_vm.option.showSummary,"render-header":_vm.option.renderHeader,"span-method":_vm.spanMethod,"show-header":_vm.showHeader,"stripe":_vm.stripe,"border":_vm.border,"sum-text":_vm.option.sumText,"summary-method":_vm.summaryMethod,"lazy":_vm.lazy,"load":_vm.load},on:{"cell-mouse-enter":_vm.cellMouseEnter,"cell-mouse-leave":_vm.cellMouseLeave,"filter-change":_vm.filterChange,"header-click":_vm.headerClick,"header-contextmenu":_vm.headerContextmenu,"row-click":_vm.rowClick,"row-contextmenu":_vm.rowContextmenu,"row-dblclick":_vm.rowDblclick,"header-dragend":_vm.onHeaderDragend,"expand-change":_vm.expandChange}},[(_vm.operation)?_c('el-table-column',{attrs:{"width":_vm.operation.width,"fixed":"","label":_vm.operation.label ? _vm.operation.label : '操作',"type":"index","resizable":_vm.operation.hasOwnProperty('resizable') ? _vm.operation.resizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.hideButtonMode)?[(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isShow),expression:"scope.row.buttonShow.find(i=>i.id===item.id).isShow"}],key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"disabled":scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isDisabled || false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]})],2):_vm._e(),(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button"},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(2,scope.row.buttonShow.filter(function (d){ return d.isShow; }).length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1)],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function,scope, item.id)}}})],1)]})],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList.slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList.slice(2,_vm.operation.buttonList.length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)],2):_vm._e()]:[(scope.row.buttonShow)?_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.filter(function (d){ return d.isShow; }).length > 0),expression:"scope.row.buttonShow.filter(d=>d.isShow).length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; })),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"type":"text","title":_vm.operation.buttonList.find(function (d){ return d.id === item.id; }).label},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1):_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.operation.buttonList.length > 0),expression:"operation.buttonList.length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":item.label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)]]}}],null,false,2245244563)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"width":_vm.option.indexWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","index":_vm.indexMethod,"resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true}}):(_vm.option.indexRadio)?_c('el-table-column',{attrs:{"width":_vm.option.indexRadioWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box"},[_c('el-radio',{staticClass:"table-checked",class:{ 'in-block': _vm.radioRow && _vm.radioRow === scope.row[_vm.option.rowKey] },attrs:{"label":scope.row[_vm.option.rowKey]},on:{"change":function($event){return _vm.handleRadioChange(scope.row, scope.$index)}},model:{value:(scope.row[_vm.option.rowKey]),callback:function ($$v) {_vm.$set(scope.row, _vm.option.rowKey, $$v)},expression:"scope.row[option.rowKey]"}}),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])],1)]}}],null,false,420954598)}):(_vm.option.indexCheck)?_c('el-table-column',{attrs:{"width":_vm.option.indexCheckWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"header",fn:function(ref){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.checkList || _vm.checkList.length < 1),expression:"!checkList || checkList.length < 1"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.option.indexLabel ? _vm.option.indexLabel : '序号'))]),_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': _vm.checkAll, 'in-block': _vm.checkList && _vm.checkList.length > 0 }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': _vm.checkAll, 'is-indeterminate': _vm.checkIndeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckAllChange(!_vm.checkAll)}}})])])])]}},{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': scope.row.checked, 'in-block': scope.row.checked }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': scope.row.checked, 'is-indeterminate': scope.row.indeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckedChange(scope.row.checked, scope.row, scope.$index)}}})])]),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])])]}}],null,false,993569738)}):_vm._e(),_vm._l((_vm.internalColumns),function(column,index){return [(column.slot && column.istrue)?_vm._t(column.slot):(column.hasOwnProperty('istrue')?column.istrue:true)?_c('el-table-column',{key:("col_" + (column.prop) + "_" + (column.label)),attrs:{"filter-method":column.filters ? _vm.filterHandler : null,"filters":column.filters,"fixed":column.fixed,"label":column.label,"min-width":column.minWidth,"prop":column.prop,"width":column.width,"align":column.hasOwnProperty('align') ? column.align : 'left',"show-overflow-tooltip":false,"filter-placement":"bottom-end","header-align":column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left',"column-key":column.hasOwnProperty('elementId')? column.elementId:column.prop,"resizable":column.hasOwnProperty('resizable') ? column.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(column.slotColumnHeader && _vm.isShow)?_vm._t(column.slotColumnHeader,null,{"header":{column: scope.column, $index:scope.$index }}):_vm._e(),(!column.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(column.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(column.label))]),_c('span',{staticClass:"hide"},[(column.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":column.headerDescribe}}):_vm._e(),(column.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === column.prop + 'ascending', 'descending': _vm.sortVal === column.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(column.slotCell)?_vm._t(column.slotCell,null,{"index":scope.$index,"row":scope.row}):[_c('el-tooltip',{attrs:{"content":scope.row[column.prop],"placement":"top","effect":"light","popper-class":"over_popper"}},[_c('span',{staticClass:"over_title"},[_vm._v(_vm._s(scope.row[column.prop]))])])]]}}],null,true)},[(_vm.isMultipleHeader)?[_vm._l((column.children),function(childColumn,childIdx){return [(childColumn.hasOwnProperty('istrue')?childColumn.istrue:true)?_c('el-table-column',{key:("col_" + index + "_" + childIdx),attrs:{"filter-method":childColumn.filters ? _vm.filterHandler : null,"filters":childColumn.filters,"fixed":childColumn.fixed,"label":childColumn.label,"min-width":childColumn.minWidth,"prop":childColumn.prop,"width":childColumn.width,"show-overflow-tooltip":false,"align":childColumn.hasOwnProperty('align') ? childColumn.align : 'left',"filter-placement":"bottom-end","header-align":childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left',"column-key":childColumn.prop,"resizable":childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(childColumn.slotColumnHeader && _vm.isShow)?_vm._t(childColumn.slotColumnHeader,null,{"header":scope}):_vm._e(),(!childColumn.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(childColumn.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(childColumn.label))]),_c('span',{staticClass:"hide"},[(childColumn.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":childColumn.headerDescribe}}):_vm._e(),(childColumn.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === childColumn.prop + 'ascending', 'descending': _vm.sortVal === childColumn.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(childColumn.slotCell)?_vm._t(childColumn.slotCell,null,{"index":scope.$index,"row":scope.row}):[_c('el-tooltip',{attrs:{"content":scope.row[childColumn.prop],"placement":"top","effect":"light","popper-class":"over_popper"}},[_c('span',{staticClass:"over_title"},[_vm._v(_vm._s(scope.row[childColumn.prop]))])])]]}}],null,true)}):_vm._e()]})]:_vm._e()],2):_vm._e()]})],2):_vm._e(),(_vm.page && _vm.page.total > 0)?_c('div',{staticClass:"pagination-box"},[_c('el-pagination',{attrs:{"current-page":_vm.page.current,"layout":_vm.page.layout ? _vm.page.layout : 'total, sizes, prev, pager, next, jumper',"page-size":_vm.page.size,"page-sizes":_vm.page.pageSizes,"total":_vm.page.total,"page-count":_vm.page.pageCount,"pager-count":_vm.page.pagerCount,"background":""},on:{"current-change":_vm.currentChange,"size-change":_vm.sizeChange}})],1):_vm._e()],1)}
28094
- var mainvue_type_template_id_42183766_staticRenderFns = []
28092
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/main.vue?vue&type=template&id=19c6a969&
28093
+ var mainvue_type_template_id_19c6a969_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone_table_box"},[(_vm.showMenuLeft)?_c('div',{staticClass:"table-menu-left"},[_vm._t("menuLeft")],2):_vm._e(),(_vm.showMenuRight)?_c('div',{staticClass:"table-menu-right"},[_vm._t("menuRight"),(_vm.showColumnHandleBtn)?_c('el-dropdown',{attrs:{"hide-on-click":false},on:{"visible-change":_vm.onColumnVisibleMenu}},[_c('icon-button',{staticClass:"sort-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"content":"列展示","icon":"el-icon-s-operation"}}),_c('column-transfer',{ref:"column-transfer",attrs:{"columns":_vm.internalColumns},on:{"update:columns":function($event){_vm.internalColumns=$event},"dropdownList":_vm.dropdownList,"handleCheckedColumnChange":_vm.handleCheckedColumnChange,"selectFixed":_vm.selectFixed,"resetColumnTransfer":function($event){return _vm.$emit('resetColumnTransfer')}}})],1):_vm._e(),_vm._t("transferRight")],2):_vm._e(),(_vm.isTable)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tabelRef,class:'sone-table ' + _vm.className,staticStyle:{"width":"100%"},attrs:{"cell-class-name":_vm.option.cellClassName,"cell-style":_vm.option.cellStyle,"data":_vm.tableData,"header-cell-class-name":_vm.option.headerCellClassName,"header-cell-style":_vm.option.headerCellStyle,"header-row-class-name":_vm.option.headerRowClassName,"header-row-style":_vm.option.headerRowStyle,"height":_vm.option.height,"highlight-current-row":_vm.option.highlightRow,"max-height":_vm.option.maxHeight,"default-expand-all":_vm.option.defaultExpandAll,"expand-row-keys":_vm.option.expandRowKeys,"row-class-name":_vm.tableRowClassName,"row-key":_vm.option.rowKey,"row-style":_vm.option.rowStyle,"show-summary":_vm.option.showSummary,"render-header":_vm.option.renderHeader,"span-method":_vm.spanMethod,"show-header":_vm.showHeader,"stripe":_vm.stripe,"border":_vm.border,"sum-text":_vm.option.sumText,"summary-method":_vm.summaryMethod,"lazy":_vm.lazy,"load":_vm.load},on:{"cell-mouse-enter":_vm.cellMouseEnter,"cell-mouse-leave":_vm.cellMouseLeave,"filter-change":_vm.filterChange,"header-click":_vm.headerClick,"header-contextmenu":_vm.headerContextmenu,"row-click":_vm.rowClick,"row-contextmenu":_vm.rowContextmenu,"row-dblclick":_vm.rowDblclick,"header-dragend":_vm.onHeaderDragend,"expand-change":_vm.expandChange}},[(_vm.operation)?_c('el-table-column',{attrs:{"width":_vm.operation.width,"fixed":"","label":_vm.operation.label ? _vm.operation.label : '操作',"type":"index","resizable":_vm.operation.hasOwnProperty('resizable') ? _vm.operation.resizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.hideButtonMode)?[(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isShow),expression:"scope.row.buttonShow.find(i=>i.id===item.id).isShow"}],key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"disabled":scope.row.buttonShow.find(function (i){ return i.id===item.id; }).isDisabled || false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]})],2):_vm._e(),(scope.row.buttonShow&&scope.row.buttonShow.filter(function (d){ return d.isShow; }).length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button"},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; }).slice(2,scope.row.buttonShow.filter(function (d){ return d.isShow; }).length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1)],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length<=3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function,scope, item.id)}}})],1)]})],2):_vm._e(),(!scope.row.buttonShow&&_vm.operation.buttonList.length>3)?_c('div',{staticClass:"sone-table-buttonList"},[_vm._l((_vm.operation.buttonList.slice(0,2)),function(item,index){return [_c('el-tooltip',{key:index,attrs:{"content":item.label,"effect":"light","placement":"top"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"circle":"","type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}})],1)]}),_c('el-dropdown',{staticClass:"dropdown_box_button",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList.slice(2,_vm.operation.buttonList.length)),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)],2):_vm._e()]:[(scope.row.buttonShow)?_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.filter(function (d){ return d.isShow; }).length > 0),expression:"scope.row.buttonShow.filter(d=>d.isShow).length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; })),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"type":"text","title":_vm.operation.buttonList.find(function (d){ return d.id === item.id; }).label},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(" "+_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label)+" ")])],1)}),1)],1):_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.operation.buttonList.length > 0),expression:"operation.buttonList.length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":item.label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}},[_vm._v(" "+_vm._s(item.label)+" ")])],1)}),1)],1)]]}}],null,false,2245244563)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"width":_vm.option.indexWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","index":_vm.indexMethod,"resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true}}):(_vm.option.indexRadio)?_c('el-table-column',{attrs:{"width":_vm.option.indexRadioWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box"},[_c('el-radio',{staticClass:"table-checked",class:{ 'in-block': _vm.radioRow && _vm.radioRow === scope.row[_vm.option.rowKey] },attrs:{"label":scope.row[_vm.option.rowKey]},on:{"change":function($event){return _vm.handleRadioChange(scope.row, scope.$index)}},model:{value:(scope.row[_vm.option.rowKey]),callback:function ($$v) {_vm.$set(scope.row, _vm.option.rowKey, $$v)},expression:"scope.row[option.rowKey]"}}),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.radioRow || _vm.radioRow !== scope.row[_vm.option.rowKey]),expression:"!radioRow || radioRow !== scope.row[option.rowKey]"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])],1)]}}],null,false,420954598)}):(_vm.option.indexCheck)?_c('el-table-column',{attrs:{"width":_vm.option.indexCheckWidth||70,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true},scopedSlots:_vm._u([{key:"header",fn:function(ref){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(!_vm.checkList || _vm.checkList.length < 1),expression:"!checkList || checkList.length < 1"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.option.indexLabel ? _vm.option.indexLabel : '序号'))]),_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': _vm.checkAll, 'in-block': _vm.checkList && _vm.checkList.length > 0 }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': _vm.checkAll, 'is-indeterminate': _vm.checkIndeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckAllChange(!_vm.checkAll)}}})])])])]}},{key:"default",fn:function(scope){return [_c('div',{staticClass:"index-check-box",on:{"click":function($event){$event.stopPropagation();}}},[_c('label',{staticClass:"el-checkbox table-checked",class:{ 'is-checked': scope.row.checked, 'in-block': scope.row.checked }},[_c('span',{staticClass:"el-checkbox__input",class:{ 'is-checked': scope.row.checked, 'is-indeterminate': scope.row.indeterminate }},[_c('span',{staticClass:"el-checkbox__inner",on:{"click":function($event){$event.stopPropagation();return _vm.handleCheckedChange(scope.row.checked, scope.row, scope.$index)}}})])]),(_vm.page)?_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s(_vm.indexMethod ? _vm.indexMethod(scope.$index) : (_vm.page.current - 1) * _vm.page.size + scope.$index + 1))]):_c('span',{directives:[{name:"show",rawName:"v-show",value:(!scope.row.checked),expression:"!scope.row.checked"}],staticClass:"table-index"},[_vm._v(_vm._s((_vm.indexMethod ? _vm.indexMethod(scope.$index) : scope.$index + 1)))])])]}}],null,false,993569738)}):_vm._e(),_vm._l((_vm.internalColumns),function(column,index){return [(column.slot && column.istrue)?_vm._t(column.slot):(column.hasOwnProperty('istrue')?column.istrue:true)?_c('el-table-column',{key:("col_" + (column.prop) + "_" + (column.label)),attrs:{"filter-method":column.filters ? _vm.filterHandler : null,"filters":column.filters,"fixed":column.fixed,"label":column.label,"min-width":column.minWidth,"prop":column.prop,"width":column.width,"align":column.hasOwnProperty('align') ? column.align : 'left',"show-overflow-tooltip":false,"filter-placement":"bottom-end","header-align":column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left',"column-key":column.hasOwnProperty('elementId')? column.elementId:column.prop,"resizable":column.hasOwnProperty('resizable') ? column.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(column.slotColumnHeader && _vm.isShow)?_vm._t(column.slotColumnHeader,null,{"header":{column: scope.column, $index:scope.$index }}):_vm._e(),(!column.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(column.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(column.label))]),_c('span',{staticClass:"hide"},[(column.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":column.headerDescribe}}):_vm._e(),(column.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === column.prop + 'ascending', 'descending': _vm.sortVal === column.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(column.slotCell)?_vm._t(column.slotCell,null,{"index":scope.$index,"row":scope.row}):[_c('el-tooltip',{attrs:{"content":scope.row[column.prop],"placement":"top","effect":"light","popper-class":"over_popper"}},[_c('span',{staticClass:"over_title"},[_vm._v(_vm._s(scope.row[column.prop]))])])]]}}],null,true)},[(_vm.isMultipleHeader)?[_vm._l((column.children),function(childColumn,childIdx){return [(childColumn.hasOwnProperty('istrue')?childColumn.istrue:true)?_c('el-table-column',{key:("col_" + index + "_" + childIdx),attrs:{"filter-method":childColumn.filters ? _vm.filterHandler : null,"filters":childColumn.filters,"fixed":childColumn.fixed,"label":childColumn.label,"min-width":childColumn.minWidth,"prop":childColumn.prop,"width":childColumn.width,"show-overflow-tooltip":false,"align":childColumn.hasOwnProperty('align') ? childColumn.align : 'left',"filter-placement":"bottom-end","header-align":childColumn.hasOwnProperty('headerAlign') ? childColumn.headerAlign : 'left',"column-key":childColumn.prop,"resizable":childColumn.hasOwnProperty('resizable') ? childColumn.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(childColumn.slotColumnHeader && _vm.isShow)?_vm._t(childColumn.slotColumnHeader,null,{"header":scope}):_vm._e(),(!childColumn.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(childColumn.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(childColumn.label))]),_c('span',{staticClass:"hide"},[(childColumn.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":childColumn.headerDescribe}}):_vm._e(),(childColumn.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === childColumn.prop + 'ascending', 'descending': _vm.sortVal === childColumn.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(childColumn.prop, childIdx, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(childColumn.slotCell)?_vm._t(childColumn.slotCell,null,{"index":scope.$index,"row":scope.row}):[_c('el-tooltip',{attrs:{"content":scope.row[childColumn.prop],"placement":"top","effect":"light","popper-class":"over_popper"}},[_c('span',{staticClass:"over_title"},[_vm._v(_vm._s(scope.row[childColumn.prop]))])])]]}}],null,true)}):_vm._e()]})]:_vm._e()],2):_vm._e()]})],2):_vm._e(),(_vm.page && _vm.page.total > 0)?_c('div',{staticClass:"pagination-box"},[_c('el-pagination',{attrs:{"current-page":_vm.page.current,"layout":_vm.page.layout ? _vm.page.layout : 'total, sizes, prev, pager, next, jumper',"page-size":_vm.page.size,"page-sizes":_vm.page.pageSizes,"total":_vm.page.total,"page-count":_vm.page.pageCount,"pager-count":_vm.page.pagerCount,"background":""},on:{"current-change":_vm.currentChange,"size-change":_vm.sizeChange}})],1):_vm._e()],1)}
28094
+ var mainvue_type_template_id_19c6a969_staticRenderFns = []
28095
28095
 
28096
28096
 
28097
- // CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=template&id=42183766&
28097
+ // CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=template&id=19c6a969&
28098
28098
 
28099
28099
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/columnTransfer.vue?vue&type=template&id=14f18798&
28100
28100
  var columnTransfervue_type_template_id_14f18798_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('div',{staticClass:"dropdown_box"},[_c('div',{staticClass:"dropdown_title"},[_c('el-checkbox',{attrs:{"indeterminate":_vm.isIndeterminate},on:{"change":_vm.handleColumnsCheckListChange},model:{value:(_vm.columnsCheckAll),callback:function ($$v) {_vm.columnsCheckAll=$$v},expression:"columnsCheckAll"}},[_vm._v("列展示")]),_c('el-tooltip',{attrs:{"effect":"light","content":"重置","placement":"top"}},[_c('el-button',{staticClass:"rigth_button",attrs:{"type":"text"},on:{"click":_vm.resetList}},[_vm._v("重置")])],1)],1),_c('div',{staticClass:"dropdown_content",class:[_vm.dragTarClass]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.leftColumns.length),expression:"leftColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在左侧")]),_c('el-checkbox-group',{staticClass:"item1",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.leftColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item,false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-down1",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.rightColumns.length),expression:"rightColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在右侧")]),_c('el-checkbox-group',{staticClass:"item2",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.rightColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item, false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-up1",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noColumns.length),expression:"noColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("不固定")]),_c('el-checkbox-group',{staticClass:"item",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.noColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-up1",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-down1",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1)])])])],1)}
@@ -32859,9 +32859,6 @@ var columnTransfer_component = normalizeComponent(
32859
32859
  //
32860
32860
  //
32861
32861
  //
32862
- //
32863
- //
32864
- //
32865
32862
 
32866
32863
 
32867
32864
 
@@ -33252,76 +33249,1102 @@ var columnTransfer_component = normalizeComponent(
33252
33249
  this.calcCheck(data);
33253
33250
  this.calcHalfCheck(data);
33254
33251
  }
33255
-
33256
- this.checkList = [];
33257
- this.calcCheckList(data);
33258
-
33259
- // 显示本页选中状态
33260
- if (this.checkList.length === dataLength) {
33261
- this.checkAll = true
33262
- this.checkIndeterminate = false
33263
- } else if (this.checkList.length === 0) {
33264
- this.checkAll = false
33265
- this.checkIndeterminate = false
33266
- } else {
33267
- this.checkAll = false
33268
- this.checkIndeterminate = true
33252
+
33253
+ this.checkList = [];
33254
+ this.calcCheckList(data);
33255
+
33256
+ // 显示本页选中状态
33257
+ if (this.checkList.length === dataLength) {
33258
+ this.checkAll = true
33259
+ this.checkIndeterminate = false
33260
+ } else if (this.checkList.length === 0) {
33261
+ this.checkAll = false
33262
+ this.checkIndeterminate = false
33263
+ } else {
33264
+ this.checkAll = false
33265
+ this.checkIndeterminate = true
33266
+ }
33267
+ this.$emit('update:tableData', data)
33268
+ },
33269
+ //神TMcheckbox要放在序号上的需求。
33270
+ calcCheck(data){
33271
+ let checkedCount = 0;
33272
+ data.forEach(d => {
33273
+ if(d.checked && !d.indeterminate) checkedCount++; //选中且非半选
33274
+ if(d.indeterminate && d.children && d.children.length > 0){//半选有子集
33275
+ if(d.children.length === this.calcCheck(d.children)){//子集全部选中
33276
+ d.indeterminate = false; //关闭父级的半选
33277
+ }else{
33278
+ if(this.calcCheck(d.children) === 0){//子集全部未选中
33279
+ d.checked = false; //父级取消选中
33280
+ d.indeterminate = false; //父级隐藏半选
33281
+ checkedCount = checkedCount - 1;
33282
+ }else{//子集部分选中
33283
+ d.indeterminate = true; //父级半选
33284
+ d.checked = true; //父级选中
33285
+ }
33286
+ }
33287
+ }
33288
+ })
33289
+ return checkedCount;
33290
+ },
33291
+ calcHalfCheck(data){
33292
+ data.forEach(d => {
33293
+ if(d.children && d.children.length > 0){
33294
+ let hasHalf = d.children.find(t => t.checked && t.indeterminate);
33295
+ if(hasHalf){
33296
+ d.indeterminate = true;
33297
+ d.checked = true;
33298
+ }else{
33299
+ let noCheck = d.children.find(t => !t.checked);
33300
+ if(!noCheck){
33301
+ d.indeterminate = false;
33302
+ d.checked = true;
33303
+ }
33304
+ }
33305
+ this.calcHalfCheck(d.children);
33306
+ }
33307
+ });
33308
+ },
33309
+ calcCheckList(data){
33310
+ data.forEach(d => {
33311
+ if(d.checked){
33312
+ if(this.onlyLeaf){
33313
+ if(!d.hasOwnProperty('children')) this.checkList.push(d[this.option.rowKey]);
33314
+ else{
33315
+ if(this.onlyCur) this.checkList.push(d[this.option.rowKey]);
33316
+ }
33317
+ }else{
33318
+ this.checkList.push(d[this.option.rowKey]);
33319
+ }
33320
+ }
33321
+ if(d.children && d.children.length > 0) this.calcCheckList(d.children);
33322
+ })
33323
+ },
33324
+ // 下拉button
33325
+ handleCommand(columnName, columnIndex, data) {
33326
+ let tableData = deepClone(this.tableData)
33327
+ if (data.command === "ascending" || data.command === "descending") {
33328
+ if (this.sortVal && this.sortVal.indexOf(data.command) > -1) {
33329
+ this.sortVal = ''
33330
+ } else {
33331
+ this.sortVal = columnName + data.command
33332
+ }
33333
+ if (this.option.defineSort) {
33334
+ this.$emit('handleColumnFilter', columnName, columnIndex, data, !!!this.sortVal)
33335
+ } else {
33336
+ let isIncludeNaN = tableData.some(item => isNaN(Number(item[columnName])))
33337
+ if ( isIncludeNaN ) { // 数据非纯数字使用原生ele方法
33338
+ if(this.sortVal){
33339
+ this.$refs[this.tabelRef].sort(columnName, data.command);
33340
+ } else {
33341
+ this.$refs[this.tabelRef].clearSort();
33342
+ }
33343
+ } else { // 纯数字使用sort排序
33344
+ tableData.sort((a, b) => {
33345
+ return data.command === 'ascending' ? a[columnName] - b[columnName] : b[columnName] - a[columnName]
33346
+ })
33347
+ this.$emit('update:tableData', tableData)
33348
+ }
33349
+ }
33350
+ } else {
33351
+ this.$emit('handleColumnFilter', columnName, columnIndex, data)
33352
+ }
33353
+ },
33354
+ // 翻页
33355
+ sizeChange(val) {
33356
+ this.$emit('sizeChange', val)
33357
+ },
33358
+ currentChange(val) {
33359
+ this.$emit('currentChange', val)
33360
+ },
33361
+ // 合计
33362
+ summaryMethod({ columns, data }) {
33363
+ if (this.option.summaryMethod) {
33364
+ return this.option.summaryMethod({ columns, data })
33365
+ }
33366
+ let _columns = deepClone(this.internalColumns);
33367
+ const sums = [];
33368
+ // 固定列会导致窜行 待改
33369
+ if ( !!this.operation ) sums.push(this.option.sumText || '合计')
33370
+ if ( this.option.indexCheck || this.option.index ) {
33371
+ !!this.operation ? sums.push('') : sums.push('合计')
33372
+ }
33373
+ if ( this.isMultipleHeader ) { // 多级表头 只拿底层表头进行合计
33374
+ _columns = []
33375
+ this.internalColumns.forEach(item => {
33376
+ item.children.forEach(item2 => {
33377
+ _columns.push(item2)
33378
+ })
33379
+ })
33380
+ }
33381
+ _columns.forEach((column, index) => {
33382
+ if ( column.istrue ) {
33383
+ let num = 0
33384
+ data.forEach(item => num += Number(item[column.prop]))
33385
+ if ( isNaN(num) || !column.summary ) {
33386
+ sums.push('')
33387
+ } else if ( String(num).indexOf('.') != -1 && this.summaryToFixed ) {
33388
+ sums.push(num.toFixed(this.summaryToFixed))
33389
+ } else {
33390
+ sums.push(num)
33391
+ }
33392
+ }
33393
+ // const columnObj = _columns.find(d => d.prop === column.property);
33394
+ // if (!columnObj || !columnObj.summary) return;
33395
+ // const values = data.map(item => Number(item[column.property]));
33396
+ // if (!values.every(value => isNaN(value))) {
33397
+ // sums[index] = values.reduce((prev, curr) => {
33398
+ // const value = Number(curr);
33399
+ // if (!isNaN(value)) {
33400
+ // return prev + curr;
33401
+ // } else {
33402
+ // return prev;
33403
+ // }
33404
+ // }, 0);
33405
+ // sums[index] += '';
33406
+ // } else {
33407
+ // sums[index] = '';
33408
+ // }
33409
+ });
33410
+ // console.log('sums:',sums)
33411
+ return sums;
33412
+ },
33413
+
33414
+ // 单元格移入移出
33415
+ cellMouseEnter(row, column, cell, event) {
33416
+ this.$emit('cellMouseEnter', row, column, cell, event)
33417
+ },
33418
+ cellMouseLeave(row, column, cell, event) {
33419
+ this.$emit('cellMouseLeave', row, column, cell, event)
33420
+ },
33421
+ // 行点击
33422
+ rowClick(row, column, event) {
33423
+ // 判断点击行是否联动选择复选框
33424
+ if (!this.option.clickRowNoCheck) {
33425
+ if (this.option.indexCheck) {
33426
+ // 有复选框-行点击选中/取消选中
33427
+ if (this.checkList.indexOf(row[this.option.rowKey]) > -1) {
33428
+ this.checkList.splice(this.checkList.indexOf(row[this.option.rowKey]), 1)
33429
+ } else {
33430
+ this.checkList.push(row[this.option.rowKey])
33431
+ }
33432
+ // 全选/半全选标记
33433
+ this.handleCheckedChange(row.checked, row)
33434
+ } else if (this.option.indexRadio) {
33435
+ this.radioRow = row[this.option.rowKey]
33436
+ this.handleRadioChange(row)
33437
+ }
33438
+ }
33439
+ //
33440
+ this.$emit('rowClick', row, column, event)
33441
+ },
33442
+
33443
+ // 行双击
33444
+ rowDblclick(row, column, event) {
33445
+ this.$emit('rowDblclick', row, column, event)
33446
+ },
33447
+
33448
+ // 行拖拽
33449
+ rowDrop() {
33450
+ const tbody = document.querySelector(`.${!!this.className ? this.className : 'sone-table'} .el-table__body-wrapper tbody`)
33451
+ // console.log('tbody:', tbody)
33452
+ const _this = this
33453
+ sortable_esm.create(tbody, {
33454
+ sort:_this.dropSort,
33455
+ onEnd ( obj ) {
33456
+ let currRow = {}
33457
+ let { newIndex, oldIndex } = obj
33458
+ let tableData = deepClone(_this.tableData)
33459
+ let isTreeTable = tableData.filter(item => Array.isArray(item.children) && item.children.length != 0)
33460
+ if ( isTreeTable.length == 0 ) { // 普通表格
33461
+ if ( _this.isUpdateData ) {
33462
+ currRow = _this.tableData.splice(oldIndex, 1)[0]
33463
+ _this.tableData.splice(newIndex, 0, currRow)
33464
+ }
33465
+ } else { // 树形表格
33466
+ let tableDataList = []
33467
+ function recursionData(data) {
33468
+ data.forEach(item => {
33469
+ tableDataList.push(item)
33470
+ if ( Array.isArray(item.children) && item.children.length != 0 ) {
33471
+ recursionData(item.children)
33472
+ }
33473
+ })
33474
+ }
33475
+ recursionData(tableData)
33476
+ currRow = tableDataList[newIndex]
33477
+ }
33478
+
33479
+ _this.$emit('dropRow', _this.tableData, currRow, newIndex, oldIndex, obj)
33480
+ }
33481
+ })
33482
+ },
33483
+
33484
+ // 当某一列的表头被点击时
33485
+ headerClick(column, event) {
33486
+ this.$emit('rowContextmenu', column, event)
33487
+ },
33488
+ // 当某一列的表头被鼠标右键点击时
33489
+ headerContextmenu(column, event) {
33490
+ this.$emit('headerContextmenu', column, event)
33491
+ },
33492
+ // 行被鼠标右键点击时
33493
+ rowContextmenu(row, column, event) {
33494
+ this.$emit('rowContextmenu', row, column, event)
33495
+ },
33496
+ filterChange(filters) {
33497
+ let data = deepClone(this.tableData)
33498
+ // 判断是哪一列筛选
33499
+ if (filters.name) {
33500
+ data.name = filters.name[0]
33501
+ }
33502
+ this.$emit('update:tableData', data)
33503
+ // this.getTableList(); // 通过接口获取数据的方法
33504
+ },
33505
+ formatter(row, column) {
33506
+ return row.address;
33507
+ },
33508
+
33509
+ filterTag(value, row) {
33510
+ return row.tag === value;
33511
+ },
33512
+ //过滤
33513
+ filterHandler(value, row, column) {
33514
+ const property = column['property'];
33515
+ return row[property] === value;
33516
+ },
33517
+
33518
+ // class
33519
+ tableRowClassName({ row, rowIndex }) {
33520
+ let rowClass = ''
33521
+ if (this.option.rowClassName) {
33522
+ rowClass = this.option.rowClassName({ row, rowIndex })
33523
+ }
33524
+ // if (this.checkList.indexOf(row[this.option.rowKey]) > -1 || this.radioRow === row[this.option.rowKey]) {
33525
+ // return (rowClass + ' table-row-checked')
33526
+ // } else {
33527
+ // return rowClass
33528
+ // }
33529
+
33530
+ if(this.option.indexRadio === true && this.radioRow === row[this.option.rowKey]){
33531
+ return `current-row ${rowClass}`;
33532
+ }
33533
+ if(this.option.indexCheck === true && row.checked === true && !this.option['clickRowNoCheck']){
33534
+ return `current-row ${rowClass}`;
33535
+ }
33536
+ return rowClass;
33537
+ },
33538
+
33539
+ handButton(functionName, scope, id) {
33540
+ this.$emit(functionName, scope, id)
33541
+ },
33542
+ doLayout() {
33543
+ this.$refs[this.tabelRef].doLayout();
33544
+ },
33545
+ /* 表格-列显隐-下拉菜单 */
33546
+ onColumnVisibleMenu(flag){
33547
+ let arr = [
33548
+ ...this.$refs['column-transfer'].leftColumns,
33549
+ ...this.$refs['column-transfer'].noColumns,
33550
+ ...this.$refs['column-transfer'].rightColumns
33551
+ ]
33552
+ // this.$emit('columnsVisibleMenu', flag, this.internalColumns );
33553
+ this.$emit('columnsVisibleMenu', flag, arr );
33554
+ },
33555
+ /* 当拖动表头改变了列的宽度的时候会触发该事件 */
33556
+ onHeaderDragend(newWidth, oldWidth, column, event){
33557
+ let arr = [
33558
+ ...this.$refs['column-transfer'].leftColumns,
33559
+ ...this.$refs['column-transfer'].noColumns,
33560
+ ...this.$refs['column-transfer'].rightColumns
33561
+ ]
33562
+ this.$emit('headerDragend', newWidth, oldWidth, column, arr, event);
33563
+ },
33564
+ /* 用于单选表格,设定某一行为选中行,如果调用时不加参数,则会取消目前高亮行的选中状态。 */
33565
+ setCurrentRow(row){
33566
+ this.$refs[this.tabelRef] && this.$refs[this.tabelRef].setCurrentRow(row);
33567
+ this.$emit('setCurrentRow', row);
33568
+ },
33569
+ updateColumn(){
33570
+
33571
+ },
33572
+ expandChange(row, expend){
33573
+ this.$emit('expandChange', row, expend)
33574
+ }
33575
+ },
33576
+ });
33577
+
33578
+ // CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=script&lang=js&
33579
+ /* harmony default export */ var packages_table_src_mainvue_type_script_lang_js_ = (table_src_mainvue_type_script_lang_js_);
33580
+ // CONCATENATED MODULE: ./packages/table/src/main.vue
33581
+
33582
+
33583
+
33584
+
33585
+
33586
+ /* normalize component */
33587
+
33588
+ var table_src_main_component = normalizeComponent(
33589
+ packages_table_src_mainvue_type_script_lang_js_,
33590
+ mainvue_type_template_id_19c6a969_render,
33591
+ mainvue_type_template_id_19c6a969_staticRenderFns,
33592
+ false,
33593
+ null,
33594
+ null,
33595
+ null
33596
+
33597
+ )
33598
+
33599
+ /* harmony default export */ var table_src_main = (table_src_main_component.exports);
33600
+ // CONCATENATED MODULE: ./packages/table/index.js
33601
+ /*
33602
+ * @Description:
33603
+ * @Author: songlin
33604
+ * @Date: 2021-08-26 16:39:21
33605
+ * @LastEditTime: 2021-08-27 16:11:37
33606
+ * @LastEditors: songlin
33607
+ */
33608
+
33609
+
33610
+ table_src_main.install = function(Vue) {
33611
+ Vue.component(table_src_main.name, table_src_main);
33612
+ };
33613
+
33614
+
33615
+ /* harmony default export */ var table = (table_src_main);
33616
+
33617
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/normalTable/src/main.vue?vue&type=template&id=066b5256&
33618
+ var mainvue_type_template_id_066b5256_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sone_table_box"},[(_vm.showMenuLeft)?_c('div',{staticClass:"table-menu-left"},[_vm._t("menuLeft")],2):_vm._e(),(_vm.showMenuRight)?_c('div',{staticClass:"table-menu-right"},[_vm._t("menuRight"),(_vm.showColumnHandleBtn)?_c('el-dropdown',{attrs:{"hide-on-click":false},on:{"visible-change":_vm.onColumnVisibleMenu}},[_c('icon-button',{staticClass:"sort-btn",attrs:{"iconfont":false,"tooltipDisabled":_vm.tooltipDisabled,"content":"列展示","icon":"el-icon-s-operation"}}),_c('ColumnTransfer',{ref:"column-transfer",attrs:{"columns":_vm.internalColumns},on:{"update:columns":function($event){_vm.internalColumns=$event},"dropdownList":_vm.dropdownList,"handleCheckedColumnChange":_vm.handleCheckedColumnChange,"selectFixed":_vm.selectFixed,"resetColumnTransfer":function($event){return _vm.$emit('resetColumnTransfer')}}})],1):_vm._e(),_vm._t("transferRight")],2):_vm._e(),(_vm.isTable)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],ref:_vm.tabelRef,class:'sone-table ' + _vm.className,staticStyle:{"width":"100%"},attrs:{"cell-class-name":_vm.option.cellClassName,"cell-style":_vm.option.cellStyle,"data":_vm.tableData,"header-cell-class-name":_vm.option.headerCellClassName,"header-cell-style":_vm.option.headerCellStyle,"header-row-class-name":_vm.option.headerRowClassName,"header-row-style":_vm.option.headerRowStyle,"height":_vm.option.height,"highlight-current-row":_vm.option.highlightRow,"max-height":_vm.option.maxHeight,"row-class-name":_vm.tableRowClassName,"row-key":_vm.option.rowKey,"row-style":_vm.option.rowStyle,"show-summary":_vm.option.showSummary,"render-header":_vm.option.renderHeader,"span-method":_vm.spanMethod,"show-header":_vm.showHeader,"stripe":_vm.stripe,"border":_vm.border,"sum-text":_vm.option.sumText,"summary-method":_vm.summaryMethod},on:{"filter-change":_vm.filterChange,"row-click":_vm.rowClick,"header-dragend":_vm.onHeaderDragend,"selection-change":_vm.handleSelectionChange}},[(_vm.operation)?_c('el-table-column',{attrs:{"fixed":"","type":"index","width":_vm.operation.width,"label":_vm.operation.label ? _vm.operation.label : '操作',"resizable":_vm.operation.hasOwnProperty('resizable') ? _vm.operation.resizable : true},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.buttonShow)?_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList"},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(scope.row.buttonShow.filter(function (d){ return d.isShow; }).length > 0),expression:"scope.row.buttonShow.filter(d=>d.isShow).length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((scope.row.buttonShow.filter(function (d){ return d.isShow; })),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).color}),attrs:{"icon":_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).icon,"disabled":item.hasOwnProperty('isDisabled') ? item.isDisabled : false,"type":"text","title":_vm.operation.buttonList.find(function (d){ return d.id === item.id; }).label},nativeOn:{"click":function($event){$event.stopPropagation();_vm.handButton(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).function, scope, item.id)}}},[_vm._v(_vm._s(_vm.operation.buttonList.find(function (d){ return d.id===item.id; }).label))])],1)}),1)],1):_c('el-dropdown',{staticClass:"dropdown_box_button sone-table-buttonList",on:{"command":function($event){$event.stopPropagation();return (function (command){_vm.handleCommand(command,_vm.row)}).apply(null, arguments)}}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.operation.buttonList.length > 0),expression:"operation.buttonList.length > 0"}],staticClass:"el-dropdown-link color-span menu-more"},[_c('el-button',{attrs:{"type":"text"}},[_c('i',{staticClass:"el-icon-more more-handel",style:({color:_vm.operation.moreIconColor})})])],1),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},_vm._l((_vm.operation.buttonList),function(item,i){return _c('el-dropdown-item',{key:i,staticClass:"sone-table-dropdown",attrs:{"command":"copy"}},[_c('el-button',{style:({color:item.color}),attrs:{"icon":item.icon,"title":item.label,"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handButton(item.function, scope, item.id)}}},[_vm._v(_vm._s(item.label))])],1)}),1)],1)]}}],null,false,1578741255)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"width":_vm.option.indexWidth||50,"fixed":"","label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"type":"index","index":_vm.indexMethod,"resizable":_vm.option.hasOwnProperty('indexResizable') ? _vm.option.indexResizable : true}}):_vm._e(),(_vm.option.hasOwnProperty('selection') ? _vm.option.selection : false)?_c('el-table-column',{attrs:{"type":"selection","width":_vm.option.selectionWidth || 45}}):_vm._e(),_vm._l((_vm.internalColumns),function(column,index){return [(column.slot && column.istrue)?_vm._t(column.slot):(column.hasOwnProperty('istrue')?column.istrue:true)?_c('el-table-column',{key:("col_" + (column.prop) + "_" + (column.label)),attrs:{"filter-method":column.filters ? _vm.filterHandler : null,"filters":column.filters,"fixed":column.fixed,"label":column.label,"min-width":column.minWidth,"prop":column.prop,"width":column.width,"align":column.hasOwnProperty('align') ? column.align : 'left',"show-overflow-tooltip":false,"filter-placement":"bottom-end","header-align":column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left',"column-key":column.hasOwnProperty('elementId')? column.elementId:column.prop,"resizable":column.hasOwnProperty('resizable') ? column.resizable : true},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [(column.slotColumnHeader && _vm.isShow)?_vm._t(column.slotColumnHeader,null,{"header":{column: scope.column, $index:scope.$index }}):_vm._e(),(!column.slotColumnHeader && _vm.isShow)?[_c('div',{staticClass:"slot_header_class"},[(column.isRequire)?_c('span',{staticClass:"table-header-isRequire"},[_vm._v("*")]):_vm._e(),_c('span',[_vm._v(_vm._s(column.label))]),_c('span',{staticClass:"hide"},[(column.headerDescribe)?_c('i',{staticClass:"iconfont icon-help icon_describe",attrs:{"title":column.headerDescribe}}):_vm._e(),(column.headerFilterSort)?_c('span',{staticClass:"caret-wrapper",class:{ 'ascending': _vm.sortVal === column.prop + 'ascending', 'descending': _vm.sortVal === column.prop + 'descending' }},[_c('i',{staticClass:"sort-caret ascending",attrs:{"title":"升序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'ascending' })}}}),_c('i',{staticClass:"sort-caret descending",attrs:{"title":"降序"},on:{"click":function($event){return _vm.handleCommand(column.prop, index, { command: 'descending' })}}})]):_vm._e()])])]:_vm._e()]}},{key:"default",fn:function(scope){return [(column.slotCell)?_vm._t(column.slotCell,null,{"index":scope.$index,"row":scope.row}):[_c('el-tooltip',{attrs:{"content":String(scope.row[column.prop]),"placement":"top","effect":"light","popper-class":"over_popper"}},[_c('span',{staticClass:"over_title"},[_vm._v(_vm._s(scope.row[column.prop]))])])]]}}],null,true)}):_vm._e()]})],2):_vm._e(),(_vm.page && _vm.page.total > 0)?_c('div',{staticClass:"pagination-box"},[_c('el-pagination',{attrs:{"current-page":_vm.page.current,"layout":_vm.page.layout ? _vm.page.layout : 'total, sizes, prev, pager, next, jumper',"page-size":_vm.page.size,"page-sizes":_vm.page.pageSizes,"total":_vm.page.total,"page-count":_vm.page.pageCount,"pager-count":_vm.page.pagerCount,"background":""},on:{"current-change":_vm.currentChange,"size-change":_vm.sizeChange}})],1):_vm._e()],1)}
33619
+ var mainvue_type_template_id_066b5256_staticRenderFns = []
33620
+
33621
+
33622
+ // CONCATENATED MODULE: ./packages/normalTable/src/main.vue?vue&type=template&id=066b5256&
33623
+
33624
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/normalTable/src/columnTransfer.vue?vue&type=template&id=1726edc2&
33625
+ var columnTransfervue_type_template_id_1726edc2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('div',{staticClass:"dropdown_box"},[_c('div',{staticClass:"dropdown_title"},[_c('el-checkbox',{attrs:{"indeterminate":_vm.isIndeterminate},on:{"change":_vm.handleColumnsCheckListChange},model:{value:(_vm.columnsCheckAll),callback:function ($$v) {_vm.columnsCheckAll=$$v},expression:"columnsCheckAll"}},[_vm._v("列展示")]),_c('el-tooltip',{attrs:{"effect":"light","content":"重置","placement":"top"}},[_c('el-button',{staticClass:"rigth_button",attrs:{"type":"text"},on:{"click":_vm.resetList}},[_vm._v("重置")])],1)],1),_c('div',{staticClass:"dropdown_content",class:[_vm.dragTarClass]},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.leftColumns.length),expression:"leftColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在左侧")]),_c('el-checkbox-group',{staticClass:"item1",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.leftColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item,false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-down1",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.rightColumns.length),expression:"rightColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("固定在右侧")]),_c('el-checkbox-group',{staticClass:"item2",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.rightColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"不固定","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-close",on:{"click":function($event){return _vm.selectFixed(item, false)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-up1",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})])],1)])}),0)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.noColumns.length),expression:"noColumns.length"}]},[_c('p',{staticClass:"title"},[_vm._v("不固定")]),_c('el-checkbox-group',{staticClass:"item",on:{"change":_vm.handleCheckedColumnChange},model:{value:(_vm.columnsCheckList),callback:function ($$v) {_vm.columnsCheckList=$$v},expression:"columnsCheckList"}},_vm._l((_vm.noColumns),function(item,index){return _c('div',{key:item.prop+'#'+item.istrue + index,staticClass:"hover_label"},[_c('label',{staticClass:"el-checkbox is-checked"},[_c('el-checkbox',{attrs:{"label":item.label}})],1),_c('span',{staticClass:"icon_display"},[_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-up1",on:{"click":function($event){return _vm.selectFixed(item,'left')}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-down1",on:{"click":function($event){return _vm.selectFixed(item,'right')}}})])],1)])}),0)],1)])])])],1)}
33626
+ var columnTransfervue_type_template_id_1726edc2_staticRenderFns = []
33627
+
33628
+
33629
+ // CONCATENATED MODULE: ./packages/normalTable/src/columnTransfer.vue?vue&type=template&id=1726edc2&
33630
+
33631
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/normalTable/src/columnTransfer.vue?vue&type=script&lang=js&
33632
+ //
33633
+ //
33634
+ //
33635
+ //
33636
+ //
33637
+ //
33638
+ //
33639
+ //
33640
+ //
33641
+ //
33642
+ //
33643
+ //
33644
+ //
33645
+ //
33646
+ //
33647
+ //
33648
+ //
33649
+ //
33650
+ //
33651
+ //
33652
+ //
33653
+ //
33654
+ //
33655
+ //
33656
+ //
33657
+ //
33658
+ //
33659
+ //
33660
+ //
33661
+ //
33662
+ //
33663
+ //
33664
+ //
33665
+ //
33666
+ //
33667
+ //
33668
+ //
33669
+ //
33670
+ //
33671
+ //
33672
+ //
33673
+ //
33674
+ //
33675
+ //
33676
+ //
33677
+ //
33678
+ //
33679
+ //
33680
+ //
33681
+ //
33682
+ //
33683
+ //
33684
+ //
33685
+ //
33686
+ //
33687
+ //
33688
+ //
33689
+ //
33690
+ //
33691
+ //
33692
+ //
33693
+ //
33694
+ //
33695
+ //
33696
+ //
33697
+ //
33698
+ //
33699
+ //
33700
+ //
33701
+ //
33702
+ //
33703
+ //
33704
+ //
33705
+ //
33706
+ //
33707
+ //
33708
+ //
33709
+ //
33710
+ //
33711
+ //
33712
+ //
33713
+ //
33714
+ //
33715
+ //
33716
+ //
33717
+ //
33718
+ //
33719
+ //
33720
+ //
33721
+ //
33722
+ //
33723
+ //
33724
+ //
33725
+ //
33726
+ //
33727
+ //
33728
+ //
33729
+ //
33730
+ //
33731
+ //
33732
+ //
33733
+ //
33734
+ //
33735
+ //
33736
+ //
33737
+ //
33738
+ //
33739
+ //
33740
+ //
33741
+ //
33742
+ //
33743
+ //
33744
+ //
33745
+ //
33746
+ //
33747
+ //
33748
+ //
33749
+ //
33750
+ //
33751
+ //
33752
+ //
33753
+ //
33754
+ //
33755
+ //
33756
+ //
33757
+ //
33758
+ //
33759
+ //
33760
+ //
33761
+ //
33762
+ //
33763
+ //
33764
+ //
33765
+ //
33766
+ //
33767
+ //
33768
+ //
33769
+ //
33770
+ //
33771
+ //
33772
+ //
33773
+ //
33774
+ //
33775
+ //
33776
+ //
33777
+ //
33778
+ //
33779
+ //
33780
+ //
33781
+ //
33782
+ //
33783
+ //
33784
+ //
33785
+ //
33786
+ //
33787
+
33788
+
33789
+
33790
+ /* harmony default export */ var normalTable_src_columnTransfervue_type_script_lang_js_ = ({
33791
+ name: "columnTransfer",
33792
+ props: {
33793
+ columns: {
33794
+ type: Array,
33795
+ },
33796
+ },
33797
+ data() {
33798
+ return {
33799
+ dragTarClass: 'drag' + Math.random().toString(36).slice(10),
33800
+ columnsCheckList: this.columns.map(item => { if (item.istrue) { return item.label } }).filter(v => v),
33801
+
33802
+ leftColumns: [],
33803
+ rightColumns: [],
33804
+ noColumns: [], //不定位的数组
33805
+ copyColumns: [],
33806
+
33807
+ columnsCheckAll: false,
33808
+ isIndeterminate: false,
33809
+ dialogVisible: false,
33810
+ }
33811
+ },
33812
+ watch: {
33813
+ columns: {
33814
+ deep: true,
33815
+ handler(){
33816
+ this.columnsCheckList = this.columns.map(item => { if (item.istrue) { return item.label } }).filter(v => v);
33817
+ this.copyColumns = deepClone(this.columns);
33818
+ this.handleCheckedColumns()
33819
+ this.int(this.copyColumns)
33820
+ }
33821
+ }
33822
+ },
33823
+ created() {
33824
+ this.copyColumns = deepClone(this.columns);
33825
+ this.handleCheckedColumns()
33826
+ this.int(this.copyColumns)
33827
+ },
33828
+ mounted() {
33829
+ this.rowDrop()
33830
+ this.rowDrop1()
33831
+ this.rowDrop2()
33832
+ },
33833
+ methods: {
33834
+ int(columns) {
33835
+ let data = deepClone(columns)
33836
+ this.leftColumns = data.filter(item => ["left", true].includes(item.fixed))
33837
+ this.rightColumns = data.filter(item => item.fixed == 'right')
33838
+ this.noColumns = data.filter(item => !item.fixed)
33839
+ },
33840
+ rowDrop() {
33841
+ const item = document.querySelector(`.${this.dragTarClass} .item`)
33842
+ const _this = this
33843
+ sortable_esm.create(item, {
33844
+ ghostClass: 'table-drag-ghost',
33845
+ onEnd({ newIndex, oldIndex }) {
33846
+ const currRow = _this.noColumns.splice(oldIndex, 1)[0]
33847
+ _this.noColumns.splice(newIndex, 0, currRow)
33848
+ _this.handleColumnsDrag()
33849
+ }
33850
+ })
33851
+ },
33852
+ rowDrop1() {
33853
+ const item = document.querySelector(`.${this.dragTarClass} .item1`)
33854
+ const _this = this
33855
+ sortable_esm.create(item, {
33856
+ ghostClass: 'table-drag-ghost',
33857
+ onEnd({ newIndex, oldIndex }) {
33858
+ const currRow = _this.leftColumns.splice(oldIndex, 1)[0]
33859
+ _this.leftColumns.splice(newIndex, 0, currRow)
33860
+ _this.handleColumnsDrag()
33861
+ }
33862
+ })
33863
+ },
33864
+ rowDrop2() {
33865
+ const item = document.querySelector(`.${this.dragTarClass} .item2`)
33866
+ const _this = this
33867
+ sortable_esm.create(item, {
33868
+ ghostClass: 'table-drag-ghost',
33869
+ onEnd({ newIndex, oldIndex }) {
33870
+ const currRow = _this.rightColumns.splice(oldIndex, 1)[0]
33871
+ _this.rightColumns.splice(newIndex, 0, currRow)
33872
+ _this.handleColumnsDrag()
33873
+ }
33874
+ })
33875
+ },
33876
+
33877
+ //type为false的时候为不固定,left为固定左侧,right为右侧
33878
+ selectFixed(column, type) {
33879
+ // let aTemp = [...this.leftColumns, ...this.noColumns, ...this.rightColumns];
33880
+ let aTemp = deepClone(this.columns);
33881
+ aTemp.some(item => {
33882
+ if (item.label === column.label) {
33883
+ if (this.columnsCheckList.includes(item.label)) {
33884
+ this.$set(item, 'istrue', true)
33885
+ } else {
33886
+ this.$set(item, 'istrue', false)
33887
+ }
33888
+ this.$set(item, 'fixed', type)
33889
+ return true
33890
+ }
33891
+ })
33892
+ this.$emit('selectFixed', aTemp)
33893
+ },
33894
+
33895
+ handleCheckedColumns() { // 初始化 - 判断是否默认全部选中
33896
+ let checkedCount = this.columnsCheckList.length;
33897
+ this.columnsCheckAll = checkedCount === this.columns.length;
33898
+ this.isIndeterminate = checkedCount > 0 && checkedCount < this.columns.length;
33899
+ },
33900
+ //事件-是否勾选-列展示
33901
+ handleColumnsCheckListChange(value) {
33902
+ this.columnsCheckList = value ? this.columns.map(item => item.label) : [];
33903
+ this.isIndeterminate = false;
33904
+ let returnColumns = this.columns.map(column => {
33905
+ this.$set(column, 'istrue', value);
33906
+ return column
33907
+ })
33908
+ this.$emit('handleCheckedColumnChange', this.columnsCheckList, null)
33909
+ },
33910
+ handleCheckedColumnChange(value) {
33911
+ let filteredValues = value.filter(v => v);
33912
+ let checkedCount = filteredValues.length;
33913
+ this.columnsCheckAll = checkedCount === this.copyColumns.length;
33914
+ this.isIndeterminate = checkedCount > 0 && checkedCount < this.columns.map(item => item.label).length;
33915
+
33916
+ let returnColumns = deepClone(this.columns);
33917
+ returnColumns.forEach(column => {
33918
+ if (filteredValues.includes(column.label)) {
33919
+ this.$set(column, 'istrue', value);
33920
+ }
33921
+ })
33922
+ this.$emit('handleCheckedColumnChange', filteredValues, null)
33923
+ },
33924
+ //列显隐 重置
33925
+ resetList() {
33926
+ // this.columnsCheckList = this.copyColumns.map(item => { if (item.istrue) { return item.label } }).filter(v => v);
33927
+ // let checkedCount = this.columnsCheckList.length;
33928
+ // this.columnsCheckAll = checkedCount === this.columns.length;
33929
+ // this.isIndeterminate = checkedCount > 0 && checkedCount < this.columns.length;
33930
+
33931
+ // this.leftColumns = []
33932
+ // this.rightColumns = []
33933
+ // this.noColumns = deepClone(this.copyColumns)
33934
+ // this.$emit('handleCheckedColumnChange', null, this.copyColumns)
33935
+ this.$emit('resetColumnTransfer')
33936
+ },
33937
+ /* 处理列拖动 */
33938
+ handleColumnsDrag(newVal) {
33939
+ let newColumns = [...this.leftColumns, ...this.noColumns, ...this.rightColumns];
33940
+ this.$emit('dropdownList', newColumns)
33941
+ }
33942
+ }
33943
+ });
33944
+
33945
+ // CONCATENATED MODULE: ./packages/normalTable/src/columnTransfer.vue?vue&type=script&lang=js&
33946
+ /* harmony default export */ var packages_normalTable_src_columnTransfervue_type_script_lang_js_ = (normalTable_src_columnTransfervue_type_script_lang_js_);
33947
+ // CONCATENATED MODULE: ./packages/normalTable/src/columnTransfer.vue
33948
+
33949
+
33950
+
33951
+
33952
+
33953
+ /* normalize component */
33954
+
33955
+ var src_columnTransfer_component = normalizeComponent(
33956
+ packages_normalTable_src_columnTransfervue_type_script_lang_js_,
33957
+ columnTransfervue_type_template_id_1726edc2_render,
33958
+ columnTransfervue_type_template_id_1726edc2_staticRenderFns,
33959
+ false,
33960
+ null,
33961
+ null,
33962
+ null
33963
+
33964
+ )
33965
+
33966
+ /* harmony default export */ var src_columnTransfer = (src_columnTransfer_component.exports);
33967
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/normalTable/src/main.vue?vue&type=script&lang=js&
33968
+ //
33969
+ //
33970
+ //
33971
+ //
33972
+ //
33973
+ //
33974
+ //
33975
+ //
33976
+ //
33977
+ //
33978
+ //
33979
+ //
33980
+ //
33981
+ //
33982
+ //
33983
+ //
33984
+ //
33985
+ //
33986
+ //
33987
+ //
33988
+ //
33989
+ //
33990
+ //
33991
+ //
33992
+ //
33993
+ //
33994
+ //
33995
+ //
33996
+ //
33997
+ //
33998
+ //
33999
+ //
34000
+ //
34001
+ //
34002
+ //
34003
+ //
34004
+ //
34005
+ //
34006
+ //
34007
+ //
34008
+ //
34009
+ //
34010
+ //
34011
+ //
34012
+ //
34013
+ //
34014
+ //
34015
+ //
34016
+ //
34017
+ //
34018
+ //
34019
+ //
34020
+ //
34021
+ //
34022
+ //
34023
+ //
34024
+ //
34025
+ //
34026
+ //
34027
+ //
34028
+ //
34029
+ //
34030
+ //
34031
+ //
34032
+ //
34033
+ //
34034
+ //
34035
+ //
34036
+ //
34037
+ //
34038
+ //
34039
+ //
34040
+ //
34041
+ //
34042
+ //
34043
+ //
34044
+ //
34045
+ //
34046
+ //
34047
+ //
34048
+ //
34049
+ //
34050
+ //
34051
+ //
34052
+ //
34053
+ //
34054
+ //
34055
+ //
34056
+ //
34057
+ //
34058
+ //
34059
+ //
34060
+ //
34061
+ //
34062
+ //
34063
+ //
34064
+ //
34065
+ //
34066
+ //
34067
+ //
34068
+ //
34069
+ //
34070
+ //
34071
+ //
34072
+ //
34073
+ //
34074
+ //
34075
+ //
34076
+ //
34077
+ //
34078
+ //
34079
+ //
34080
+ //
34081
+ //
34082
+ //
34083
+ //
34084
+ //
34085
+ //
34086
+ //
34087
+ //
34088
+ //
34089
+ //
34090
+ //
34091
+ //
34092
+ //
34093
+ //
34094
+ //
34095
+ //
34096
+ //
34097
+ //
34098
+ //
34099
+ //
34100
+ //
34101
+ //
34102
+ //
34103
+ //
34104
+ //
34105
+ //
34106
+ //
34107
+ //
34108
+ //
34109
+ //
34110
+ //
34111
+ //
34112
+ //
34113
+ //
34114
+ //
34115
+ //
34116
+ //
34117
+ //
34118
+ //
34119
+ //
34120
+ //
34121
+ //
34122
+ //
34123
+ //
34124
+ //
34125
+ //
34126
+ //
34127
+ //
34128
+ //
34129
+ //
34130
+ //
34131
+ //
34132
+ //
34133
+ //
34134
+ //
34135
+ //
34136
+ //
34137
+ //
34138
+ //
34139
+ //
34140
+ //
34141
+ //
34142
+ //
34143
+ //
34144
+ //
34145
+ //
34146
+ //
34147
+ //
34148
+ //
34149
+ //
34150
+ //
34151
+ //
34152
+ //
34153
+ //
34154
+ //
34155
+ //
34156
+ //
34157
+ //
34158
+ //
34159
+ //
34160
+ //
34161
+ //
34162
+ //
34163
+ //
34164
+ //
34165
+ //
34166
+ //
34167
+ //
34168
+ //
34169
+ //
34170
+ //
34171
+ //
34172
+ //
34173
+ //
34174
+ //
34175
+ //
34176
+ //
34177
+ //
34178
+ //
34179
+
34180
+
34181
+
34182
+ /* harmony default export */ var normalTable_src_mainvue_type_script_lang_js_ = ({
34183
+ name: "SoneNormalTable",
34184
+ components: { ColumnTransfer: src_columnTransfer },
34185
+ props: {
34186
+ showMenuLeft: {
34187
+ type: Boolean,
34188
+ default: false
34189
+ },
34190
+ showMenuRight: {
34191
+ type: Boolean,
34192
+ default: true
34193
+ },
34194
+ showColumnHandleBtn: {
34195
+ type: Boolean,
34196
+ default: true
34197
+ },
34198
+ hideButtonMode: {
34199
+ type: Boolean,
34200
+ default: false
34201
+ },
34202
+ tabelRef: {
34203
+ type: String,
34204
+ default: 'tableDataRef'
34205
+ },
34206
+ loading: {
34207
+ type: Boolean,
34208
+ default: false,
34209
+ },
34210
+ showHeader: {
34211
+ type: Boolean,
34212
+ default: true,
34213
+ },
34214
+ stripe: {
34215
+ type: Boolean,
34216
+ default: true,
34217
+ },
34218
+ border: {
34219
+ type: Boolean,
34220
+ default: true,
34221
+ },
34222
+ option: {
34223
+ type: Object,
34224
+ default: () => {
34225
+ return {
34226
+ index: true,
34227
+ indexWidth: 70,
34228
+ height: 'auto',
34229
+ maxHeight: 'auto',
34230
+
34231
+ }
34232
+ }
34233
+ },
34234
+ operation: {
34235
+ type: [Object, Boolean],
34236
+ default: () => {
34237
+ return {
34238
+ width: 82,
34239
+ label: '操作',
34240
+ buttonList: [
34241
+ {
34242
+ label: '删除',
34243
+ icon: 'el-icon-remove-outline',
34244
+ function: 'handDetele',
34245
+ tooltipContent: '删除',
34246
+ color: 'red'
34247
+ }, {
34248
+ label: '添加',
34249
+ icon: 'el-icon-circle-plus-outline',
34250
+ function: 'hand',
34251
+ tooltipContent: '删除',
34252
+ color: 'red'
34253
+ }
34254
+ ]
34255
+ }
34256
+ }
34257
+ },
34258
+ page: {
34259
+ type: Object,
34260
+ },
34261
+ columns: {
34262
+ type: Array,
34263
+ default: () => []
34264
+ },
34265
+ tableData: {
34266
+ type: Array,
34267
+ default: () => []
34268
+ },
34269
+ // 表格className
34270
+ className:{
34271
+ type:String,
34272
+ default:''
34273
+ },
34274
+ // 合计小数位数
34275
+ summaryToFixed:{
34276
+ type:[Number, String],
34277
+ default:''
34278
+ },
34279
+ spanMethod: Function,
34280
+ indexMethod: Function,
34281
+ // 默认显示按钮图标加提示,
34282
+ tooltipDisabled: {
34283
+ type: Boolean,
34284
+ default: false,
34285
+ },
34286
+ },
34287
+ data() {
34288
+ return {
34289
+ internalColumns: deepClone(this.columns).filter(d => d && !d.isHidden),
34290
+ sortVal: '', // 排序
34291
+ isShow: true,
34292
+ isTable: true
34293
+ }
34294
+ },
34295
+ watch: {
34296
+ columns: {
34297
+ deep: true,
34298
+ handler() {
34299
+ this.internalColumns = deepClone(this.columns).filter(d => d && !d.isHidden);
34300
+ }
34301
+ },
34302
+ internalColumns: {
34303
+ deep: true,
34304
+ handler() {
34305
+ this.isShow = false
34306
+ this.$nextTick(() => { //不放在这里面会导致视图不刷新
34307
+ this.isShow = true;
34308
+ })
34309
+ this.$refs[this.tabelRef] && this.$refs[this.tabelRef].doLayout();
33269
34310
  }
33270
- this.$emit('update:tableData', data)
33271
34311
  },
33272
- //神TMcheckbox要放在序号上的需求。
33273
- calcCheck(data){
33274
- let checkedCount = 0;
33275
- data.forEach(d => {
33276
- if(d.checked && !d.indeterminate) checkedCount++; //选中且非半选
33277
- if(d.indeterminate && d.children && d.children.length > 0){//半选有子集
33278
- if(d.children.length === this.calcCheck(d.children)){//子集全部选中
33279
- d.indeterminate = false; //关闭父级的半选
33280
- }else{
33281
- if(this.calcCheck(d.children) === 0){//子集全部未选中
33282
- d.checked = false; //父级取消选中
33283
- d.indeterminate = false; //父级隐藏半选
33284
- checkedCount = checkedCount - 1;
33285
- }else{//子集部分选中
33286
- d.indeterminate = true; //父级半选
33287
- d.checked = true; //父级选中
33288
- }
33289
- }
34312
+ },
34313
+ methods: {
34314
+ columnsCheckList(valArr) {
34315
+ this.internalColumns.forEach(i => {
34316
+ if (valArr.includes(i.label)) {
34317
+ this.$set(i, 'istrue', true)
34318
+ } else {
34319
+ this.$set(i, 'istrue', false)
33290
34320
  }
33291
- })
33292
- return checkedCount;
34321
+ });
34322
+ this.$nextTick(() => {
34323
+ this.$refs[this.tabelRef] && this.$refs[this.tabelRef].doLayout();
34324
+ });
33293
34325
  },
33294
- calcHalfCheck(data){
33295
- data.forEach(d => {
33296
- if(d.children && d.children.length > 0){
33297
- let hasHalf = d.children.find(t => t.checked && t.indeterminate);
33298
- if(hasHalf){
33299
- d.indeterminate = true;
33300
- d.checked = true;
33301
- }else{
33302
- let noCheck = d.children.find(t => !t.checked);
33303
- if(!noCheck){
33304
- d.indeterminate = false;
33305
- d.checked = true;
33306
- }
33307
- }
33308
- this.calcHalfCheck(d.children);
33309
- }
34326
+ selectFixed(items) {
34327
+ this.internalColumns = deepClone(items);
34328
+ this.$nextTick(() => {
34329
+ this.$refs[this.tabelRef] && this.$refs[this.tabelRef].doLayout();
33310
34330
  });
34331
+
33311
34332
  },
33312
- calcCheckList(data){
33313
- data.forEach(d => {
33314
- if(d.checked){
33315
- if(this.onlyLeaf){
33316
- if(!d.hasOwnProperty('children')) this.checkList.push(d[this.option.rowKey]);
33317
- else{
33318
- if(this.onlyCur) this.checkList.push(d[this.option.rowKey]);
33319
- }
33320
- }else{
33321
- this.checkList.push(d[this.option.rowKey]);
33322
- }
33323
- }
33324
- if(d.children && d.children.length > 0) this.calcCheckList(d.children);
34333
+ handleCheckedColumnChange(data, internalColumns) {
34334
+ if(data){
34335
+ this.columnsCheckList(data)
34336
+ }
34337
+ if(internalColumns && internalColumns.length){
34338
+ this.$nextTick(() => {
34339
+ this.internalColumns = deepClone(internalColumns);
34340
+ });
34341
+ }
34342
+ },
34343
+ dropdownList(itemset) {
34344
+ this.internalColumns = deepClone(itemset);
34345
+ this.isTable = false
34346
+ this.$nextTick(() => {
34347
+ this.isTable = true
33325
34348
  })
33326
34349
  },
33327
34350
  // 下拉button
@@ -33354,6 +34377,18 @@ var columnTransfer_component = normalizeComponent(
33354
34377
  this.$emit('handleColumnFilter', columnName, columnIndex, data)
33355
34378
  }
33356
34379
  },
34380
+ handleSelectionChange(val){
34381
+ this.$emit('handleChecked', val);
34382
+ },
34383
+ toggleSelection(rows, selected = true) {
34384
+ if (rows) {
34385
+ rows.forEach(row => {
34386
+ this.$refs[this.tabelRef].toggleRowSelection(row, selected);
34387
+ });
34388
+ } else {
34389
+ this.$refs[this.tabelRef].clearSelection();
34390
+ }
34391
+ },
33357
34392
  // 翻页
33358
34393
  sizeChange(val) {
33359
34394
  this.$emit('sizeChange', val)
@@ -33373,14 +34408,6 @@ var columnTransfer_component = normalizeComponent(
33373
34408
  if ( this.option.indexCheck || this.option.index ) {
33374
34409
  !!this.operation ? sums.push('') : sums.push('合计')
33375
34410
  }
33376
- if ( this.isMultipleHeader ) { // 多级表头 只拿底层表头进行合计
33377
- _columns = []
33378
- this.internalColumns.forEach(item => {
33379
- item.children.forEach(item2 => {
33380
- _columns.push(item2)
33381
- })
33382
- })
33383
- }
33384
34411
  _columns.forEach((column, index) => {
33385
34412
  if ( column.istrue ) {
33386
34413
  let num = 0
@@ -33393,109 +34420,13 @@ var columnTransfer_component = normalizeComponent(
33393
34420
  sums.push(num)
33394
34421
  }
33395
34422
  }
33396
- // const columnObj = _columns.find(d => d.prop === column.property);
33397
- // if (!columnObj || !columnObj.summary) return;
33398
- // const values = data.map(item => Number(item[column.property]));
33399
- // if (!values.every(value => isNaN(value))) {
33400
- // sums[index] = values.reduce((prev, curr) => {
33401
- // const value = Number(curr);
33402
- // if (!isNaN(value)) {
33403
- // return prev + curr;
33404
- // } else {
33405
- // return prev;
33406
- // }
33407
- // }, 0);
33408
- // sums[index] += '';
33409
- // } else {
33410
- // sums[index] = '';
33411
- // }
33412
34423
  });
33413
- // console.log('sums:',sums)
33414
34424
  return sums;
33415
34425
  },
33416
-
33417
- // 单元格移入移出
33418
- cellMouseEnter(row, column, cell, event) {
33419
- this.$emit('cellMouseEnter', row, column, cell, event)
33420
- },
33421
- cellMouseLeave(row, column, cell, event) {
33422
- this.$emit('cellMouseLeave', row, column, cell, event)
33423
- },
33424
34426
  // 行点击
33425
34427
  rowClick(row, column, event) {
33426
- // 判断点击行是否联动选择复选框
33427
- if (!this.option.clickRowNoCheck) {
33428
- if (this.option.indexCheck) {
33429
- // 有复选框-行点击选中/取消选中
33430
- if (this.checkList.indexOf(row[this.option.rowKey]) > -1) {
33431
- this.checkList.splice(this.checkList.indexOf(row[this.option.rowKey]), 1)
33432
- } else {
33433
- this.checkList.push(row[this.option.rowKey])
33434
- }
33435
- // 全选/半全选标记
33436
- this.handleCheckedChange(row.checked, row)
33437
- } else if (this.option.indexRadio) {
33438
- this.radioRow = row[this.option.rowKey]
33439
- this.handleRadioChange(row)
33440
- }
33441
- }
33442
- //
33443
34428
  this.$emit('rowClick', row, column, event)
33444
34429
  },
33445
-
33446
- // 行双击
33447
- rowDblclick(row, column, event) {
33448
- this.$emit('rowDblclick', row, column, event)
33449
- },
33450
-
33451
- // 行拖拽
33452
- rowDrop() {
33453
- const tbody = document.querySelector(`.${!!this.className ? this.className : 'sone-table'} .el-table__body-wrapper tbody`)
33454
- // console.log('tbody:', tbody)
33455
- const _this = this
33456
- sortable_esm.create(tbody, {
33457
- sort:_this.dropSort,
33458
- onEnd ( obj ) {
33459
- let currRow = {}
33460
- let { newIndex, oldIndex } = obj
33461
- let tableData = deepClone(_this.tableData)
33462
- let isTreeTable = tableData.filter(item => Array.isArray(item.children) && item.children.length != 0)
33463
- if ( isTreeTable.length == 0 ) { // 普通表格
33464
- if ( _this.isUpdateData ) {
33465
- currRow = _this.tableData.splice(oldIndex, 1)[0]
33466
- _this.tableData.splice(newIndex, 0, currRow)
33467
- }
33468
- } else { // 树形表格
33469
- let tableDataList = []
33470
- function recursionData(data) {
33471
- data.forEach(item => {
33472
- tableDataList.push(item)
33473
- if ( Array.isArray(item.children) && item.children.length != 0 ) {
33474
- recursionData(item.children)
33475
- }
33476
- })
33477
- }
33478
- recursionData(tableData)
33479
- currRow = tableDataList[newIndex]
33480
- }
33481
-
33482
- _this.$emit('dropRow', _this.tableData, currRow, newIndex, oldIndex, obj)
33483
- }
33484
- })
33485
- },
33486
-
33487
- // 当某一列的表头被点击时
33488
- headerClick(column, event) {
33489
- this.$emit('rowContextmenu', column, event)
33490
- },
33491
- // 当某一列的表头被鼠标右键点击时
33492
- headerContextmenu(column, event) {
33493
- this.$emit('headerContextmenu', column, event)
33494
- },
33495
- // 行被鼠标右键点击时
33496
- rowContextmenu(row, column, event) {
33497
- this.$emit('rowContextmenu', row, column, event)
33498
- },
33499
34430
  filterChange(filters) {
33500
34431
  let data = deepClone(this.tableData)
33501
34432
  // 判断是哪一列筛选
@@ -33503,14 +34434,6 @@ var columnTransfer_component = normalizeComponent(
33503
34434
  data.name = filters.name[0]
33504
34435
  }
33505
34436
  this.$emit('update:tableData', data)
33506
- // this.getTableList(); // 通过接口获取数据的方法
33507
- },
33508
- formatter(row, column) {
33509
- return row.address;
33510
- },
33511
-
33512
- filterTag(value, row) {
33513
- return row.tag === value;
33514
34437
  },
33515
34438
  //过滤
33516
34439
  filterHandler(value, row, column) {
@@ -33524,21 +34447,11 @@ var columnTransfer_component = normalizeComponent(
33524
34447
  if (this.option.rowClassName) {
33525
34448
  rowClass = this.option.rowClassName({ row, rowIndex })
33526
34449
  }
33527
- // if (this.checkList.indexOf(row[this.option.rowKey]) > -1 || this.radioRow === row[this.option.rowKey]) {
33528
- // return (rowClass + ' table-row-checked')
33529
- // } else {
33530
- // return rowClass
33531
- // }
33532
-
33533
- if(this.option.indexRadio === true && this.radioRow === row[this.option.rowKey]){
33534
- return `current-row ${rowClass}`;
33535
- }
33536
34450
  if(this.option.indexCheck === true && row.checked === true && !this.option['clickRowNoCheck']){
33537
34451
  return `current-row ${rowClass}`;
33538
34452
  }
33539
34453
  return rowClass;
33540
34454
  },
33541
-
33542
34455
  handButton(functionName, scope, id) {
33543
34456
  this.$emit(functionName, scope, id)
33544
34457
  },
@@ -33569,18 +34482,12 @@ var columnTransfer_component = normalizeComponent(
33569
34482
  this.$refs[this.tabelRef] && this.$refs[this.tabelRef].setCurrentRow(row);
33570
34483
  this.$emit('setCurrentRow', row);
33571
34484
  },
33572
- updateColumn(){
33573
-
33574
- },
33575
- expandChange(row, expend){
33576
- this.$emit('expandChange', row, expend)
33577
- }
33578
34485
  },
33579
34486
  });
33580
34487
 
33581
- // CONCATENATED MODULE: ./packages/table/src/main.vue?vue&type=script&lang=js&
33582
- /* harmony default export */ var packages_table_src_mainvue_type_script_lang_js_ = (table_src_mainvue_type_script_lang_js_);
33583
- // CONCATENATED MODULE: ./packages/table/src/main.vue
34488
+ // CONCATENATED MODULE: ./packages/normalTable/src/main.vue?vue&type=script&lang=js&
34489
+ /* harmony default export */ var packages_normalTable_src_mainvue_type_script_lang_js_ = (normalTable_src_mainvue_type_script_lang_js_);
34490
+ // CONCATENATED MODULE: ./packages/normalTable/src/main.vue
33584
34491
 
33585
34492
 
33586
34493
 
@@ -33588,10 +34495,10 @@ var columnTransfer_component = normalizeComponent(
33588
34495
 
33589
34496
  /* normalize component */
33590
34497
 
33591
- var table_src_main_component = normalizeComponent(
33592
- packages_table_src_mainvue_type_script_lang_js_,
33593
- mainvue_type_template_id_42183766_render,
33594
- mainvue_type_template_id_42183766_staticRenderFns,
34498
+ var normalTable_src_main_component = normalizeComponent(
34499
+ packages_normalTable_src_mainvue_type_script_lang_js_,
34500
+ mainvue_type_template_id_066b5256_render,
34501
+ mainvue_type_template_id_066b5256_staticRenderFns,
33595
34502
  false,
33596
34503
  null,
33597
34504
  null,
@@ -33599,8 +34506,8 @@ var table_src_main_component = normalizeComponent(
33599
34506
 
33600
34507
  )
33601
34508
 
33602
- /* harmony default export */ var table_src_main = (table_src_main_component.exports);
33603
- // CONCATENATED MODULE: ./packages/table/index.js
34509
+ /* harmony default export */ var normalTable_src_main = (normalTable_src_main_component.exports);
34510
+ // CONCATENATED MODULE: ./packages/normalTable/index.js
33604
34511
  /*
33605
34512
  * @Description:
33606
34513
  * @Author: songlin
@@ -33610,12 +34517,12 @@ var table_src_main_component = normalizeComponent(
33610
34517
  */
33611
34518
 
33612
34519
 
33613
- table_src_main.install = function(Vue) {
33614
- Vue.component(table_src_main.name, table_src_main);
34520
+ normalTable_src_main.install = function(Vue) {
34521
+ Vue.component(normalTable_src_main.name, normalTable_src_main);
33615
34522
  };
33616
34523
 
33617
34524
 
33618
- /* harmony default export */ var table = (table_src_main);
34525
+ /* harmony default export */ var normalTable = (normalTable_src_main);
33619
34526
 
33620
34527
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"de981356-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/main.vue?vue&type=template&id=bd9422c6&
33621
34528
  var mainvue_type_template_id_bd9422c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-select',{staticClass:"sone-select",attrs:{"value":_vm.model,"placeholder":_vm.placeholder,"clearable":_vm.clearable,"multiple":_vm.multiple,"disabled":_vm.disabled,"collapse-tags":"","filterable":"","popper-class":_vm.popperClass,"popper-append-to-body":_vm.popperAppendToBody,"filter-method":_vm.onFilterOption},on:{"visible-change":_vm.handleVisible,"change":_vm.onChange,"clear":_vm.onClear,"remove-tag":_vm.onRemoveTag,"blur":function (e) { return _vm.$emit('blur', e); },"focus":function (e) { return _vm.$emit('focus', e); }}},[(_vm.type === 'normal')?[_vm._t("default",function(){return _vm._l((_vm.internalOptions),function(item){return _c('el-option',{key:item[_vm.props.value],attrs:{"label":item[_vm.props.label],"disabled":item[_vm.props.disabled],"value":item[_vm.props.value]}})})})]:(_vm.type === 'tree')?[_c('el-tree',{ref:"treeRef",staticClass:"sone-select-tree",attrs:{"data":_vm.internalOptions,"props":_vm.props,"node-key":_vm.props.value,"default-expand-all":"","default-checked-keys":_vm.checkedNodes,"show-checkbox":_vm.multiple,"check-strictly":_vm.checkStrictly,"expand-on-click-node":false,"highlight-current":false,"filter-node-method":_vm.onFilterNode},on:{"check":_vm.onCheckNode},scopedSlots:_vm._u([{key:"default",fn:function(ref){
@@ -37008,6 +37915,7 @@ external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.directive('dialog
37008
37915
 
37009
37916
 
37010
37917
 
37918
+
37011
37919
 
37012
37920
 
37013
37921
 
@@ -37020,6 +37928,7 @@ const components = [
37020
37928
  packages_form,
37021
37929
  dialog,
37022
37930
  table,
37931
+ normalTable,
37023
37932
  packages_select,
37024
37933
  datePicker,
37025
37934
  datePickerRange,
@@ -37047,7 +37956,7 @@ if (typeof window !== 'undefined' && window.Vue) {
37047
37956
  }
37048
37957
 
37049
37958
  /* harmony default export */ var src_0 = ({
37050
- version: '2.1.16',
37959
+ version: '2.1.18',
37051
37960
  locale: locale.use,
37052
37961
  i18n: locale.i18n,
37053
37962
  install,
@@ -37060,6 +37969,7 @@ if (typeof window !== 'undefined' && window.Vue) {
37060
37969
  Form: packages_form,
37061
37970
  Dialog: dialog,
37062
37971
  Table: table,
37972
+ NormalTable: normalTable,
37063
37973
  Select: packages_select,
37064
37974
  DatePicker: datePicker,
37065
37975
  DatePickerRange: datePickerRange,