From fd77788013a0f9ce588065a595644bc7848f2628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oo=E5=B0=8F=E5=88=9AoO?= Date: Thu, 28 Nov 2019 11:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAFormBuilder=E4=B8=AD=E7=9A=84fieldlist?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0table=E5=B8=83=E5=B1=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/fast/Form.php | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/extend/fast/Form.php b/extend/fast/Form.php index 7d5933cc..343676fb 100644 --- a/extend/fast/Form.php +++ b/extend/fast/Form.php @@ -666,11 +666,28 @@ EOD; if (is_null($title)) { $title = [__('Key'), __('Value')]; } - $ins = implode("\n", array_map(function ($value) { - return "{$value}"; - }, $title)); $value = is_array($value) ? json_encode($value) : $value; - $html = <<{$value}"; + }, $title)); + $html = << + + + {$th} + + +
操作
+ {$append} + + +EOD; + }else{ + $ins = implode("\n", array_map(function ($value) { + return "{$value}"; + }, $title)); + $html = <<
{$ins} @@ -679,6 +696,7 @@ EOD; EOD; + } return $html; }