From e25ba875b25f2d163eafd9bd17fe167b9dbfe099 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 7 Jul 2023 14:50:14 +0800 Subject: [PATCH] * zin: fix datepicker not work. --- lib/zin/wg/datepicker/v1.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/datepicker/v1.php b/lib/zin/wg/datepicker/v1.php index 9e9904c018..fc8fda0fb7 100644 --- a/lib/zin/wg/datepicker/v1.php +++ b/lib/zin/wg/datepicker/v1.php @@ -13,11 +13,14 @@ class datePicker extends wg */ protected function build(): wg { + list($name, $id, $defaultValue) = $this->prop(array('name', 'id', 'defaultValue')); return zui::datePicker ( set::_class('form-group-wrapper'), + set::_map(array('value' => 'defaultValue')), set::icon('calendar'), - set($this->props) + set($this->props), + h::formHidden($name, $defaultValue, setID($id)) ); } }