From c42999e8c6fb6093f8565b5c96abe3f52e48ef78 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 4 Sep 2024 14:18:25 +0800 Subject: [PATCH] * [misc] add fileTitle for filelist. --- lib/zin/wg/filelist/v1.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/filelist/v1.php b/lib/zin/wg/filelist/v1.php index 4b7f28e7ee..47edaa535c 100644 --- a/lib/zin/wg/filelist/v1.php +++ b/lib/zin/wg/filelist/v1.php @@ -13,6 +13,7 @@ class fileList extends wg 'showDelete?:bool=true', 'showEdit?:bool=true', 'extra?:string=""', + 'fileTitle?:string=""', 'object?:object', 'padding?:bool=true', 'objectType?:string=""', @@ -81,11 +82,12 @@ class fileList extends wg $this->fileList() ); + $fileTitle = $this->prop('fileTitle') ? $this->prop('fileTitle') : $lang->files; return $fieldset ? new section ( setClass('files', 'pt-4', 'canvas'), $this->prop('padding') ? setClass($px, $pb) : null, - set::title($lang->files), + set::title($fileTitle), set($this->getRestProps()), to::actions (