From 8a2b297d6454c0e8a0ab42ce0f4e71ef589fe449 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 30 Aug 2023 13:48:18 +0800 Subject: [PATCH] * Change section title allow empty. --- lib/zin/wg/section/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/section/v1.php b/lib/zin/wg/section/v1.php index 3e9b055e6e..95318cf247 100644 --- a/lib/zin/wg/section/v1.php +++ b/lib/zin/wg/section/v1.php @@ -5,7 +5,7 @@ namespace zin; class section extends wg { protected static array $defineProps = array( - 'title: string', // 标题 + 'title?: string', // 标题 'content?: string|array', // 内容 'useHtml?: bool=false', // 内容是否解析 HTML 标签 );