* zin: refactor

This commit is contained in:
Hao Sun
2023-03-03 16:14:24 +08:00
parent a624bcd448
commit 16149f65e4
+3 -8
View File
@@ -5,14 +5,9 @@ class pagebase extends wg
{
static $tag = 'html';
static $defineProps = array
(
'metas' => array('type' => 'string|array', 'default' => array('<meta charset="utf-8">', '<meta http-equiv="X-UA-Compatible" content="IE=edge">', '<meta name="viewport" content="width=device-width, initial-scale=1">', '<meta name="renderer" content="webkit">')),
'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('<meta charset="utf-8">', '<meta http-equiv="X-UA-Compatible" content="IE=edge">', '<meta name="viewport" content="width=device-width, initial-scale=1">', '<meta name="renderer" content="webkit">'));
protected function created()
{