@@ -506,6 +506,13 @@ return /******/ (function(modules) { // webpackBootstrap
506506 offset : 0
507507 } , this . actionsDef ) ;
508508
509+ this . innerRowActionDef = this . rowActionDef . map ( function ( el ) {
510+ if ( ! el . type ) {
511+ el . type = 'text' ;
512+ }
513+ return el ;
514+ } ) ;
515+
509516 this . innerCheckboxFilterDef = ( 0 , _assign2 . default ) ( { } , {
510517 props : undefined ,
511518 def : [ ] ,
@@ -550,6 +557,9 @@ return /******/ (function(modules) { // webpackBootstrap
550557 return true ;
551558 }
552559 } ,
560+ tableProps : {
561+ type : Object
562+ } ,
553563 actionsDef : {
554564 type : Object ,
555565 default : function _default ( ) {
@@ -583,6 +593,7 @@ return /******/ (function(modules) { // webpackBootstrap
583593 default : true
584594 } ,
585595 actionColWidth : String ,
596+ actionColFixed : [ String , Boolean ] ,
586597 colNotRowClick : {
587598 type : Array ,
588599 default : function _default ( ) {
@@ -1524,7 +1535,7 @@ return /******/ (function(modules) { // webpackBootstrap
15241535 _vm . searchKey = $$v
15251536 }
15261537 }
1527- } ) ] , 1 ) : _vm . _e ( ) ] , 1 ) , _c ( 'el-table' , {
1538+ } ) ] , 1 ) : _vm . _e ( ) ] , 1 ) , _c ( 'el-table' , _vm . _b ( {
15281539 staticStyle : {
15291540 "width" : "100%"
15301541 } ,
@@ -1542,28 +1553,29 @@ return /******/ (function(modules) { // webpackBootstrap
15421553 "select-all" : _vm . handleSelectAll ,
15431554 "current-change" : _vm . handleCurrentRowChange
15441555 }
1545- } , [ _vm . _t ( "default" ) , ( _vm . hasActionCol ) ? _c ( 'el-table-column' , {
1556+ } , 'el-table' , _vm . tableProps ) , [ _vm . _t ( "default" ) , ( _vm . hasActionCol ) ? _c ( 'el-table-column' , {
15461557 attrs : {
15471558 "label" : _vm . actionColLabel ,
15481559 "prop" : "innerRowActions" ,
1549- "min-width" : _vm . actionColWidth
1560+ "min-width" : _vm . actionColWidth ,
1561+ "fixed" : _vm . actionColFixed
15501562 } ,
15511563 inlineTemplate : {
15521564 render : function ( ) {
15531565 var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
15541566 return _c ( 'div' , {
15551567 staticClass : "action-list"
1556- } , _vm . _l ( ( _vm . rowActionDef ) , function ( action ) {
1557- return _c ( 'span' , [ _c ( 'el-button' , {
1568+ } , _vm . _l ( ( _vm . innerRowActionDef ) , function ( action ) {
1569+ return _c ( 'span' , [ _c ( 'el-button' , _vm . _b ( {
15581570 attrs : {
1559- "type" : "text"
1571+ "type" : action . type
15601572 } ,
15611573 on : {
15621574 "click" : function ( $event ) {
15631575 action . handler ( _vm . row )
15641576 }
15651577 }
1566- } , [ _vm . _v ( _vm . _s ( action . name ) ) ] ) ] , 1 )
1578+ } , 'el-button' , action . buttonProps ) , [ _vm . _v ( _vm . _s ( action . name ) ) ] ) ] , 1 )
15671579 } ) )
15681580
15691581 } ,
0 commit comments