Skip to content

Commit 2bdcd2c

Browse files
author
hikki
committed
v3.7
1 parent f17c9ec commit 2bdcd2c

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

test/example.php

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -210,36 +210,36 @@ protected function form($id)
210210
public function blank()
211211
{
212212
$title = '<h1>松下紗栄子</h1>';
213-
/*弹窗模式 渲染自定义页模板 Plane::html*/
214-
$panel = new FormPanel();
215-
$panel->input('id','序号');
216-
$panel->textarea('description','描述');
217-
$panel->select('status','状态',[0],[0=>'开启',1=>'关闭',2=>'删除'],1);
218-
$panel->datepicker('time','时间');
219-
$panel->html('test','自定义html','<p>松下紗栄子</p>');
220-
/*多图上传样例*/
221-
$settings = [
222-
'uploadUrl' => 'https://...upload.file.url...',
223-
'uploadExtraData' => [
224-
'_token' => csrf_token(),
225-
'uploadAsync' => true,
226-
/*自定义加传参*/
227-
],
228-
'deleteUrl' => 'https://...delete.file.url...',
229-
'deleteExtraData' => [
230-
'_token' => csrf_token(),
231-
'uploadAsync' => true,
232-
/*自定义加传参*/
233-
],
234-
'maxFileCount' => 10,
235-
'maxFileSize' => 800 //单图限制800kb
236-
];
237-
$images = ['/image1...','/image2...','/image3...'];
238-
$panel->fileInput('photo','艳照',$settings,
239-
['files' => $images, 'url' => '/image.server...'],
240-
"accept='image/*'");
241-
242-
$html = $panel->compile();
213+
/*辅助表单内容组装器 FormPanel 参考以下*/
214+
$panel = new FormPanel();
215+
$panel->input('id','序号');
216+
$panel->textarea('description','描述');
217+
$panel->select('status','状态',[0],[0=>'开启',1=>'关闭',2=>'删除'],1);
218+
$panel->datepicker('time','时间');
219+
$panel->html('test','自定义html','<p>松下紗栄子</p>');
220+
/*多图上传样例*/
221+
$settings = [
222+
'uploadUrl' => 'https://...upload.file.url...',
223+
'uploadExtraData' => [
224+
'_token' => csrf_token(),
225+
'uploadAsync' => true,
226+
/*自定义加传参*/
227+
],
228+
'deleteUrl' => 'https://...delete.file.url...',
229+
'deleteExtraData' => [
230+
'_token' => csrf_token(),
231+
'uploadAsync' => true,
232+
/*自定义加传参*/
233+
],
234+
'maxFileCount' => 10,
235+
'maxFileSize' => 800 //单图限制800kb
236+
];
237+
$images = ['/image1...','/image2...','/image3...'];
238+
$panel->fileInput('photo','艳照',$settings,
239+
['files' => $images, 'url' => '/image.server...'],
240+
"accept='image/*'");
241+
$html = $panel->compile();
242+
/*弹窗模式 渲染自定义页模板 调用Plane::html*/
243243
return Plane::html($title.$html);
244244
}
245245

0 commit comments

Comments
 (0)