sone-ui-component-3.2.4 2.1.46 → 2.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sone-ui.common.js +101 -80
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +101 -80
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/table/index.js +2 -2
- package/src/index.js +1 -1
package/lib/sone-ui.common.js
CHANGED
|
@@ -28233,19 +28233,19 @@ dialog_src_main.install = function(Vue) {
|
|
|
28233
28233
|
|
|
28234
28234
|
/* harmony default export */ var dialog = (dialog_src_main);
|
|
28235
28235
|
|
|
28236
|
-
// 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/
|
|
28237
|
-
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)}
|
|
28238
|
-
var
|
|
28236
|
+
// 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/mainNew.vue?vue&type=template&id=37384247&
|
|
28237
|
+
var mainNewvue_type_template_id_37384247_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},"save":_vm.save,"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":String(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":String(_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":String(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":String(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,3828237939)}):_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('span',{staticClass:"over_title",attrs:{"title":scope.row[column.prop]}},[_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('span',{staticClass:"over_title",attrs:{"title":scope.row[childColumn.prop]}},[_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)}
|
|
28238
|
+
var mainNewvue_type_template_id_37384247_staticRenderFns = []
|
|
28239
28239
|
|
|
28240
28240
|
|
|
28241
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
28241
|
+
// CONCATENATED MODULE: ./packages/table/src/mainNew.vue?vue&type=template&id=37384247&
|
|
28242
28242
|
|
|
28243
|
-
// 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/
|
|
28244
|
-
var
|
|
28245
|
-
var
|
|
28243
|
+
// 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/columnTransferNew.vue?vue&type=template&id=62f1a822&
|
|
28244
|
+
var columnTransferNewvue_type_template_id_62f1a822_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('div',[_c('el-button',{staticClass:"rigth_button",attrs:{"type":"text"},on:{"click":_vm.save}},[_vm._v("保存")]),_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('leftColumns', index, item)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在右侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-down1",on:{"click":function($event){return _vm.selectFixed('leftColumns', index, 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('rightColumns', index, item)}}})]),_c('el-tooltip',{attrs:{"placement":"top","content":"固定在左侧","effect":"light"}},[_c('i',{staticClass:"iconfont iconfont-action icon-up1",on:{"click":function($event){return _vm.selectFixed('rightColumns', index, 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('noColumns', index, 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('noColumns', index, item,'right')}}})])],1)])}),0)],1)])])])],1)}
|
|
28245
|
+
var columnTransferNewvue_type_template_id_62f1a822_staticRenderFns = []
|
|
28246
28246
|
|
|
28247
28247
|
|
|
28248
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
28248
|
+
// CONCATENATED MODULE: ./packages/table/src/columnTransferNew.vue?vue&type=template&id=62f1a822&
|
|
28249
28249
|
|
|
28250
28250
|
// CONCATENATED MODULE: ./node_modules/sortablejs/modular/sortable.esm.js
|
|
28251
28251
|
/**!
|
|
@@ -32022,14 +32022,7 @@ Sortable.mount(Remove, Revert);
|
|
|
32022
32022
|
/* harmony default export */ var sortable_esm = (Sortable);
|
|
32023
32023
|
|
|
32024
32024
|
|
|
32025
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/
|
|
32026
|
-
//
|
|
32027
|
-
//
|
|
32028
|
-
//
|
|
32029
|
-
//
|
|
32030
|
-
//
|
|
32031
|
-
//
|
|
32032
|
-
//
|
|
32025
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/columnTransferNew.vue?vue&type=script&lang=js&
|
|
32033
32026
|
//
|
|
32034
32027
|
//
|
|
32035
32028
|
//
|
|
@@ -32181,7 +32174,7 @@ Sortable.mount(Remove, Revert);
|
|
|
32181
32174
|
|
|
32182
32175
|
|
|
32183
32176
|
|
|
32184
|
-
/* harmony default export */ var
|
|
32177
|
+
/* harmony default export */ var columnTransferNewvue_type_script_lang_js_ = ({
|
|
32185
32178
|
name: "columnTransfer",
|
|
32186
32179
|
props: {
|
|
32187
32180
|
columns: {
|
|
@@ -32239,7 +32232,7 @@ Sortable.mount(Remove, Revert);
|
|
|
32239
32232
|
onEnd({ newIndex, oldIndex }) {
|
|
32240
32233
|
const currRow = _this.noColumns.splice(oldIndex, 1)[0]
|
|
32241
32234
|
_this.noColumns.splice(newIndex, 0, currRow)
|
|
32242
|
-
_this.handleColumnsDrag()
|
|
32235
|
+
// _this.handleColumnsDrag()
|
|
32243
32236
|
}
|
|
32244
32237
|
})
|
|
32245
32238
|
},
|
|
@@ -32251,7 +32244,7 @@ Sortable.mount(Remove, Revert);
|
|
|
32251
32244
|
onEnd({ newIndex, oldIndex }) {
|
|
32252
32245
|
const currRow = _this.leftColumns.splice(oldIndex, 1)[0]
|
|
32253
32246
|
_this.leftColumns.splice(newIndex, 0, currRow)
|
|
32254
|
-
_this.handleColumnsDrag()
|
|
32247
|
+
// _this.handleColumnsDrag()
|
|
32255
32248
|
}
|
|
32256
32249
|
})
|
|
32257
32250
|
},
|
|
@@ -32263,27 +32256,35 @@ Sortable.mount(Remove, Revert);
|
|
|
32263
32256
|
onEnd({ newIndex, oldIndex }) {
|
|
32264
32257
|
const currRow = _this.rightColumns.splice(oldIndex, 1)[0]
|
|
32265
32258
|
_this.rightColumns.splice(newIndex, 0, currRow)
|
|
32266
|
-
_this.handleColumnsDrag()
|
|
32259
|
+
// _this.handleColumnsDrag()
|
|
32267
32260
|
}
|
|
32268
32261
|
})
|
|
32269
32262
|
},
|
|
32270
32263
|
|
|
32271
32264
|
//type为false的时候为不固定,left为固定左侧,right为右侧
|
|
32272
|
-
selectFixed(column, type) {
|
|
32265
|
+
selectFixed(parentName, index, column, type = 'none') {
|
|
32273
32266
|
// let aTemp = [...this.leftColumns, ...this.noColumns, ...this.rightColumns];
|
|
32274
|
-
let aTemp = deepClone(this.columns);
|
|
32275
|
-
aTemp.some(item => {
|
|
32276
|
-
|
|
32277
|
-
|
|
32278
|
-
|
|
32279
|
-
|
|
32280
|
-
|
|
32281
|
-
|
|
32282
|
-
|
|
32283
|
-
|
|
32284
|
-
|
|
32285
|
-
})
|
|
32286
|
-
this.$emit('selectFixed', aTemp)
|
|
32267
|
+
// let aTemp = deepClone(this.columns);
|
|
32268
|
+
// aTemp.some(item => {
|
|
32269
|
+
// if (item.label === column.label) {
|
|
32270
|
+
// if (this.columnsCheckList.includes(item.label)) {
|
|
32271
|
+
// this.$set(item, 'istrue', true)
|
|
32272
|
+
// } else {
|
|
32273
|
+
// this.$set(item, 'istrue', false)
|
|
32274
|
+
// }
|
|
32275
|
+
// this.$set(item, 'fixed', type)
|
|
32276
|
+
// return true
|
|
32277
|
+
// }
|
|
32278
|
+
// })
|
|
32279
|
+
// this.$emit('selectFixed', aTemp)
|
|
32280
|
+
this[parentName].splice(index, 1);
|
|
32281
|
+
if(type === 'left'){ //固定左侧
|
|
32282
|
+
this.leftColumns.push({ ...column, fixed: 'left' })
|
|
32283
|
+
}else if(type === 'right'){ //固定右侧
|
|
32284
|
+
this.rightColumns.push({ ...column, fixed: 'right' })
|
|
32285
|
+
}else{ //不固定
|
|
32286
|
+
this.noColumns[column.fixed === 'left' ? 'unshift' : 'push']({ ...column, fixed: false });
|
|
32287
|
+
}
|
|
32287
32288
|
},
|
|
32288
32289
|
|
|
32289
32290
|
handleCheckedColumns() { // 初始化 - 判断是否默认全部选中
|
|
@@ -32295,11 +32296,11 @@ Sortable.mount(Remove, Revert);
|
|
|
32295
32296
|
handleColumnsCheckListChange(value) {
|
|
32296
32297
|
this.columnsCheckList = value ? this.columns.map(item => item.label) : [];
|
|
32297
32298
|
this.isIndeterminate = false;
|
|
32298
|
-
let returnColumns = this.columns.map(column => {
|
|
32299
|
-
|
|
32300
|
-
|
|
32301
|
-
})
|
|
32302
|
-
this.$emit('handleCheckedColumnChange', this.columnsCheckList, null)
|
|
32299
|
+
// let returnColumns = this.columns.map(column => {
|
|
32300
|
+
// this.$set(column, 'istrue', value);
|
|
32301
|
+
// return column
|
|
32302
|
+
// })
|
|
32303
|
+
// this.$emit('handleCheckedColumnChange', this.columnsCheckList, null)
|
|
32303
32304
|
},
|
|
32304
32305
|
handleCheckedColumnChange(value) {
|
|
32305
32306
|
let filteredValues = value.filter(v => v);
|
|
@@ -32313,7 +32314,18 @@ Sortable.mount(Remove, Revert);
|
|
|
32313
32314
|
this.$set(column, 'istrue', value);
|
|
32314
32315
|
}
|
|
32315
32316
|
})
|
|
32316
|
-
this.$emit('handleCheckedColumnChange', filteredValues, null)
|
|
32317
|
+
// this.$emit('handleCheckedColumnChange', filteredValues, null)
|
|
32318
|
+
},
|
|
32319
|
+
save(){
|
|
32320
|
+
let newColumns = [...this.leftColumns, ...this.noColumns, ...this.rightColumns];
|
|
32321
|
+
newColumns.forEach(d => {
|
|
32322
|
+
if(!this.columnsCheckList.includes(d.label)){
|
|
32323
|
+
this.$set(d, 'istrue', false)
|
|
32324
|
+
}else{
|
|
32325
|
+
this.$set(d, 'istrue', true)
|
|
32326
|
+
}
|
|
32327
|
+
})
|
|
32328
|
+
this.$emit('save', newColumns)
|
|
32317
32329
|
},
|
|
32318
32330
|
//列显隐 重置
|
|
32319
32331
|
resetList() {
|
|
@@ -32331,14 +32343,14 @@ Sortable.mount(Remove, Revert);
|
|
|
32331
32343
|
/* 处理列拖动 */
|
|
32332
32344
|
handleColumnsDrag(newVal) {
|
|
32333
32345
|
let newColumns = [...this.leftColumns, ...this.noColumns, ...this.rightColumns];
|
|
32334
|
-
this.$emit('dropdownList', newColumns)
|
|
32346
|
+
// this.$emit('dropdownList', newColumns)
|
|
32335
32347
|
}
|
|
32336
32348
|
}
|
|
32337
32349
|
});
|
|
32338
32350
|
|
|
32339
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
32340
|
-
/* harmony default export */ var
|
|
32341
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
32351
|
+
// CONCATENATED MODULE: ./packages/table/src/columnTransferNew.vue?vue&type=script&lang=js&
|
|
32352
|
+
/* harmony default export */ var src_columnTransferNewvue_type_script_lang_js_ = (columnTransferNewvue_type_script_lang_js_);
|
|
32353
|
+
// CONCATENATED MODULE: ./packages/table/src/columnTransferNew.vue
|
|
32342
32354
|
|
|
32343
32355
|
|
|
32344
32356
|
|
|
@@ -32346,10 +32358,10 @@ Sortable.mount(Remove, Revert);
|
|
|
32346
32358
|
|
|
32347
32359
|
/* normalize component */
|
|
32348
32360
|
|
|
32349
|
-
var
|
|
32350
|
-
|
|
32351
|
-
|
|
32352
|
-
|
|
32361
|
+
var columnTransferNew_component = normalizeComponent(
|
|
32362
|
+
src_columnTransferNewvue_type_script_lang_js_,
|
|
32363
|
+
columnTransferNewvue_type_template_id_62f1a822_render,
|
|
32364
|
+
columnTransferNewvue_type_template_id_62f1a822_staticRenderFns,
|
|
32353
32365
|
false,
|
|
32354
32366
|
null,
|
|
32355
32367
|
null,
|
|
@@ -32357,8 +32369,9 @@ var columnTransfer_component = normalizeComponent(
|
|
|
32357
32369
|
|
|
32358
32370
|
)
|
|
32359
32371
|
|
|
32360
|
-
/* harmony default export */ var
|
|
32361
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/
|
|
32372
|
+
/* harmony default export */ var columnTransferNew = (columnTransferNew_component.exports);
|
|
32373
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/table/src/mainNew.vue?vue&type=script&lang=js&
|
|
32374
|
+
//
|
|
32362
32375
|
//
|
|
32363
32376
|
//
|
|
32364
32377
|
//
|
|
@@ -33008,9 +33021,9 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33008
33021
|
|
|
33009
33022
|
|
|
33010
33023
|
|
|
33011
|
-
/* harmony default export */ var
|
|
33024
|
+
/* harmony default export */ var mainNewvue_type_script_lang_js_ = ({
|
|
33012
33025
|
name: "SoneTable",
|
|
33013
|
-
components: { columnTransfer:
|
|
33026
|
+
components: { columnTransfer: columnTransferNew,IconButton: IconButton },
|
|
33014
33027
|
props: {
|
|
33015
33028
|
showMenuLeft: {
|
|
33016
33029
|
type: Boolean,
|
|
@@ -33684,7 +33697,7 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33684
33697
|
this.$emit(functionName, scope, id)
|
|
33685
33698
|
},
|
|
33686
33699
|
doLayout() {
|
|
33687
|
-
this.$refs[this.tabelRef].doLayout();
|
|
33700
|
+
this.$refs[this.tabelRef] && this.$refs[this.tabelRef].doLayout();
|
|
33688
33701
|
},
|
|
33689
33702
|
/* 表格-列显隐-下拉菜单 */
|
|
33690
33703
|
onColumnVisibleMenu(flag){
|
|
@@ -33705,6 +33718,14 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33705
33718
|
]
|
|
33706
33719
|
this.$emit('headerDragend', newWidth, oldWidth, column, arr, event);
|
|
33707
33720
|
},
|
|
33721
|
+
save(arr){
|
|
33722
|
+
this.internalColumns = deepClone(arr);
|
|
33723
|
+
this.isTable = false
|
|
33724
|
+
this.$nextTick(() => {
|
|
33725
|
+
this.isTable = true
|
|
33726
|
+
})
|
|
33727
|
+
this.$emit('save', arr);
|
|
33728
|
+
},
|
|
33708
33729
|
/* 用于单选表格,设定某一行为选中行,如果调用时不加参数,则会取消目前高亮行的选中状态。 */
|
|
33709
33730
|
setCurrentRow(row){
|
|
33710
33731
|
this.$refs[this.tabelRef] && this.$refs[this.tabelRef].setCurrentRow(row);
|
|
@@ -33719,9 +33740,9 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33719
33740
|
},
|
|
33720
33741
|
});
|
|
33721
33742
|
|
|
33722
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
33723
|
-
/* harmony default export */ var
|
|
33724
|
-
// CONCATENATED MODULE: ./packages/table/src/
|
|
33743
|
+
// CONCATENATED MODULE: ./packages/table/src/mainNew.vue?vue&type=script&lang=js&
|
|
33744
|
+
/* harmony default export */ var src_mainNewvue_type_script_lang_js_ = (mainNewvue_type_script_lang_js_);
|
|
33745
|
+
// CONCATENATED MODULE: ./packages/table/src/mainNew.vue
|
|
33725
33746
|
|
|
33726
33747
|
|
|
33727
33748
|
|
|
@@ -33729,10 +33750,10 @@ var columnTransfer_component = normalizeComponent(
|
|
|
33729
33750
|
|
|
33730
33751
|
/* normalize component */
|
|
33731
33752
|
|
|
33732
|
-
var
|
|
33733
|
-
|
|
33734
|
-
|
|
33735
|
-
|
|
33753
|
+
var mainNew_component = normalizeComponent(
|
|
33754
|
+
src_mainNewvue_type_script_lang_js_,
|
|
33755
|
+
mainNewvue_type_template_id_37384247_render,
|
|
33756
|
+
mainNewvue_type_template_id_37384247_staticRenderFns,
|
|
33736
33757
|
false,
|
|
33737
33758
|
null,
|
|
33738
33759
|
null,
|
|
@@ -33740,7 +33761,7 @@ var table_src_main_component = normalizeComponent(
|
|
|
33740
33761
|
|
|
33741
33762
|
)
|
|
33742
33763
|
|
|
33743
|
-
/* harmony default export */ var
|
|
33764
|
+
/* harmony default export */ var mainNew = (mainNew_component.exports);
|
|
33744
33765
|
// CONCATENATED MODULE: ./packages/table/index.js
|
|
33745
33766
|
/*
|
|
33746
33767
|
* @Description:
|
|
@@ -33749,15 +33770,15 @@ var table_src_main_component = normalizeComponent(
|
|
|
33749
33770
|
* @LastEditTime: 2021-08-27 16:11:37
|
|
33750
33771
|
* @LastEditors: songlin
|
|
33751
33772
|
*/
|
|
33773
|
+
// import Table from './src/main';
|
|
33752
33774
|
|
|
33753
|
-
// import Table from './src/mainNew';
|
|
33754
33775
|
|
|
33755
|
-
|
|
33756
|
-
Vue.component(
|
|
33776
|
+
mainNew.install = function(Vue) {
|
|
33777
|
+
Vue.component(mainNew.name, mainNew);
|
|
33757
33778
|
};
|
|
33758
33779
|
|
|
33759
33780
|
|
|
33760
|
-
/* harmony default export */ var table = (
|
|
33781
|
+
/* harmony default export */ var table = (mainNew);
|
|
33761
33782
|
|
|
33762
33783
|
// 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/mainNew.vue?vue&type=template&id=70f1f37e&
|
|
33763
33784
|
var mainNewvue_type_template_id_70f1f37e_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',[_c('IconButton',{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},"save":_vm.save,"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,"select":_vm.selectChange,"select-all":_vm.selectAll,"sort-change":_vm.sortChange}},[(_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 [(!_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&&_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)?_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,2049157449)}):_vm._e(),(_vm.option.index)?_c('el-table-column',{attrs:{"fixed":"","type":"index","width":_vm.option.indexWidth||50,"label":_vm.option.indexLabel ? _vm.option.indexLabel : '序号',"index":_vm.indexMethod}}):_vm._e(),(_vm.option.selection)?_c('el-table-column',{attrs:{"fixed":"","type":"selection","show-overflow-tooltip":false,"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":column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false,"filter-placement":"bottom-end","sortable":column.sortable,"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}):[_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)}
|
|
@@ -33885,7 +33906,7 @@ var columnTransferNewvue_type_template_id_26eb7b8c_staticRenderFns = []
|
|
|
33885
33906
|
|
|
33886
33907
|
|
|
33887
33908
|
|
|
33888
|
-
/* harmony default export */ var
|
|
33909
|
+
/* harmony default export */ var normalTable_src_columnTransferNewvue_type_script_lang_js_ = ({
|
|
33889
33910
|
name: "columnTransfer",
|
|
33890
33911
|
props: {
|
|
33891
33912
|
columns: {
|
|
@@ -34022,7 +34043,7 @@ var columnTransferNewvue_type_template_id_26eb7b8c_staticRenderFns = []
|
|
|
34022
34043
|
});
|
|
34023
34044
|
|
|
34024
34045
|
// CONCATENATED MODULE: ./packages/normalTable/src/columnTransferNew.vue?vue&type=script&lang=js&
|
|
34025
|
-
/* harmony default export */ var
|
|
34046
|
+
/* harmony default export */ var packages_normalTable_src_columnTransferNewvue_type_script_lang_js_ = (normalTable_src_columnTransferNewvue_type_script_lang_js_);
|
|
34026
34047
|
// CONCATENATED MODULE: ./packages/normalTable/src/columnTransferNew.vue
|
|
34027
34048
|
|
|
34028
34049
|
|
|
@@ -34031,8 +34052,8 @@ var columnTransferNewvue_type_template_id_26eb7b8c_staticRenderFns = []
|
|
|
34031
34052
|
|
|
34032
34053
|
/* normalize component */
|
|
34033
34054
|
|
|
34034
|
-
var
|
|
34035
|
-
|
|
34055
|
+
var src_columnTransferNew_component = normalizeComponent(
|
|
34056
|
+
packages_normalTable_src_columnTransferNewvue_type_script_lang_js_,
|
|
34036
34057
|
columnTransferNewvue_type_template_id_26eb7b8c_render,
|
|
34037
34058
|
columnTransferNewvue_type_template_id_26eb7b8c_staticRenderFns,
|
|
34038
34059
|
false,
|
|
@@ -34042,7 +34063,7 @@ var columnTransferNew_component = normalizeComponent(
|
|
|
34042
34063
|
|
|
34043
34064
|
)
|
|
34044
34065
|
|
|
34045
|
-
/* harmony default export */ var
|
|
34066
|
+
/* harmony default export */ var src_columnTransferNew = (src_columnTransferNew_component.exports);
|
|
34046
34067
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/normalTable/src/mainNew.vue?vue&type=script&lang=js&
|
|
34047
34068
|
//
|
|
34048
34069
|
//
|
|
@@ -34287,9 +34308,9 @@ var columnTransferNew_component = normalizeComponent(
|
|
|
34287
34308
|
|
|
34288
34309
|
|
|
34289
34310
|
|
|
34290
|
-
/* harmony default export */ var
|
|
34311
|
+
/* harmony default export */ var normalTable_src_mainNewvue_type_script_lang_js_ = ({
|
|
34291
34312
|
name: "SoneNormalTable",
|
|
34292
|
-
components: { ColumnTransfer:
|
|
34313
|
+
components: { ColumnTransfer: src_columnTransferNew, IconButton: IconButton },
|
|
34293
34314
|
props: {
|
|
34294
34315
|
showMenuLeft: {
|
|
34295
34316
|
type: Boolean,
|
|
@@ -34551,7 +34572,7 @@ var columnTransferNew_component = normalizeComponent(
|
|
|
34551
34572
|
});
|
|
34552
34573
|
|
|
34553
34574
|
// CONCATENATED MODULE: ./packages/normalTable/src/mainNew.vue?vue&type=script&lang=js&
|
|
34554
|
-
/* harmony default export */ var
|
|
34575
|
+
/* harmony default export */ var packages_normalTable_src_mainNewvue_type_script_lang_js_ = (normalTable_src_mainNewvue_type_script_lang_js_);
|
|
34555
34576
|
// CONCATENATED MODULE: ./packages/normalTable/src/mainNew.vue
|
|
34556
34577
|
|
|
34557
34578
|
|
|
@@ -34560,8 +34581,8 @@ var columnTransferNew_component = normalizeComponent(
|
|
|
34560
34581
|
|
|
34561
34582
|
/* normalize component */
|
|
34562
34583
|
|
|
34563
|
-
var
|
|
34564
|
-
|
|
34584
|
+
var src_mainNew_component = normalizeComponent(
|
|
34585
|
+
packages_normalTable_src_mainNewvue_type_script_lang_js_,
|
|
34565
34586
|
mainNewvue_type_template_id_70f1f37e_render,
|
|
34566
34587
|
mainNewvue_type_template_id_70f1f37e_staticRenderFns,
|
|
34567
34588
|
false,
|
|
@@ -34571,7 +34592,7 @@ var mainNew_component = normalizeComponent(
|
|
|
34571
34592
|
|
|
34572
34593
|
)
|
|
34573
34594
|
|
|
34574
|
-
/* harmony default export */ var
|
|
34595
|
+
/* harmony default export */ var src_mainNew = (src_mainNew_component.exports);
|
|
34575
34596
|
// CONCATENATED MODULE: ./packages/normalTable/index.js
|
|
34576
34597
|
/*
|
|
34577
34598
|
* @Description:
|
|
@@ -34585,12 +34606,12 @@ var mainNew_component = normalizeComponent(
|
|
|
34585
34606
|
// import Table from './src/main'; //原来的表格
|
|
34586
34607
|
//带保存的列显隐
|
|
34587
34608
|
|
|
34588
|
-
|
|
34589
|
-
Vue.component(
|
|
34609
|
+
src_mainNew.install = function(Vue) {
|
|
34610
|
+
Vue.component(src_mainNew.name, src_mainNew);
|
|
34590
34611
|
};
|
|
34591
34612
|
|
|
34592
34613
|
|
|
34593
|
-
/* harmony default export */ var normalTable = (
|
|
34614
|
+
/* harmony default export */ var normalTable = (src_mainNew);
|
|
34594
34615
|
|
|
34595
34616
|
// 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=67f667d2&
|
|
34596
34617
|
var mainvue_type_template_id_67f667d2_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){
|
|
@@ -38048,7 +38069,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
38048
38069
|
}
|
|
38049
38070
|
|
|
38050
38071
|
/* harmony default export */ var src_0 = ({
|
|
38051
|
-
version: '2.1.
|
|
38072
|
+
version: '2.1.47',
|
|
38052
38073
|
locale: locale.use,
|
|
38053
38074
|
i18n: locale.i18n,
|
|
38054
38075
|
install,
|