Skip to content

Commit

Permalink
notice
Browse files Browse the repository at this point in the history
sunkangchina committed Sep 17, 2024
1 parent 031f416 commit 6e630f4
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions form.php
Original file line number Diff line number Diff line change
@@ -31,14 +31,14 @@ public static function create($arr = [])
public static function element($v = [])
{
global $vue;
$file = $v['file'] ?: __DIR__.'/form/'.$v['type'].'.php';
$file = $v['file'] ?? __DIR__.'/form/'.$v['type'].'.php';
$content = '';
if(file_exists($file)) {
$model = self::$model;
$label = $v['label'];
$name = $v['name'];
$attr = $v['attr'];
$js = $v['js'];
$attr = $v['attr']??[];
$js = $v['js']??'';
$attr_element = $v['attr_element'];
$attr_element_pre = $v['attr_element_pre'];
$attr_element_next = $v['attr_element_next'];
2 changes: 1 addition & 1 deletion table.php
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ public static function create($arr = [])
}
public static function open($arr = [])
{
$arr['type'] = $arr['type'] ?: 'small';
$arr['type'] = $arr['type'] ?? 'small';
return "<el-table " . element_to_str($arr)." border>\n";
}
public static function column($arr = [])

0 comments on commit 6e630f4

Please sign in to comment.