From 16149f65e4e1a9be9fbc7e39e5e613227506ece8 Mon Sep 17 00:00:00 2001 From: Hao Sun Date: Fri, 3 Mar 2023 16:14:24 +0800 Subject: [PATCH] * zin: refactor --- zin/wg/pagebase/v1.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/zin/wg/pagebase/v1.php b/zin/wg/pagebase/v1.php index 58a171ee92..470441e278 100644 --- a/zin/wg/pagebase/v1.php +++ b/zin/wg/pagebase/v1.php @@ -5,14 +5,9 @@ class pagebase extends wg { static $tag = 'html'; - static $defineProps = array - ( - 'metas' => array('type' => 'string|array', 'default' => array('', '', '', '')), - 'title' => array('type' => 'string'), - 'bodyProps' => array('type' => 'array', 'optional' => true), - 'zui' => array('type' => 'bool', 'default' => false), - 'display' => array('type' => 'bool', 'default' => true) - ); + static $defineProps = 'metas?: string|array, title?: string, bodyProps?: array, zui?: bool, display?: bool'; + + static $defaultProps = array('zui' => false, 'display' => true, 'metas' => array('', '', '', '')); protected function created() {