Skip to content

Commit

Permalink
Update table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkangchina committed Sep 17, 2024
1 parent 6e630f4 commit beb0a87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions table.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ public static function column($arr = [])
$str = "<el-table-column " . element_to_str($arr).">\n";
if($tpl) {
$str .= "<template slot-scope='scope'>\n";
if($tpl['type']){
if($tpl['type'] == 'html' || $tpl['html']){
$str .= $tpl['html'];
if(iseet($tpl['type'])){
if($tpl['type'] == 'html' || iseet($tpl['html'])){
$str .= $tpl['html']??'';
}else{
$str .= self::element($tpl);
}
}else{
foreach($tpl as $k => $v) {
if($v['type'] == 'html'){
if(isset($v['type']) && $v['type'] == 'html'){
$str .= $v['html'];
}else{
$str .= self::element($v);
Expand Down

0 comments on commit beb0a87

Please sign in to comment.