@@ -132,6 +132,8 @@ protected function form($id)
132
132
* attribute.width 设置宽度 默认100%
133
133
* attribute.height 设置高度 默认200px
134
134
* attribute.limit 选择限制数 默认0:无限
135
+ * attribute.menu_mode 组件模式设置 false:默认模式 true:下拉列表模式
136
+ * attribute.menu_placeholder 下拉列表模式 默认未选择占位
135
137
*/
136
138
$ form ->Dot ('dot ' ,'标签选择器 ' )
137
139
->options ([1 =>'松下紗栄子 ' ,2 =>'上原亜衣 ' ,3 =>'白石茉莉奈 ' ,4 =>'美谷朱里 ' ,5 =>'沖田杏梨 ' ,6 =>'由愛可奈 ' ,7 =>'七瀬あいり ' ,8 =>'五十嵐星蘭 ' ,9 =>'仲里紗羽 ' ,10 =>'波多野結衣 ' ])
@@ -161,7 +163,7 @@ protected function form($id)
161
163
* columns[column...] 列数据格式配置
162
164
* column.name 列表头名称
163
165
* column.type 列数据 输出格式input,text,hidden,datetime,date,select,image,file
164
- * column.insert_type 增加列格式(默认不填同type ) hidden表示置空
166
+ * column.insert_type 增加列格式(不填时默认等同于type值 ) hidden表示置空
165
167
* column.options insert_type或type为select时 多选项
166
168
* column.options_limit insert_type或type为select时 多选项选择限制数 默认0:无限制
167
169
* column.style 自定义style格式
@@ -174,7 +176,7 @@ protected function form($id)
174
176
->columns ([
175
177
'name ' => ['name ' => '名称 ' , 'type ' => 'input ' ],
176
178
'meta ' => ['name ' => '信息 ' , 'type ' => 'input ' ,'insert_type ' =>'hidden ' ],
177
- 'url ' => ['name ' => '链接 ' , 'type ' => 'image ' , ' insert_type ' => ' image ' ],
179
+ 'url ' => ['name ' => '链接 ' , 'type ' => 'image ' ],
178
180
'time ' => ['name ' => '更新时间 ' , 'type ' => 'text ' ,'insert_type ' =>'datetime ' ],
179
181
'is-small ' => ['name ' => '高清 ' , 'type ' => 'select ' ,'options ' =>[1 =>'是 ' ,2 =>'否 ' ],'options_limit ' =>1 , 'style ' => 'width:60px ' ]
180
182
])
@@ -206,9 +208,16 @@ protected function form($id)
206
208
207
209
public function blank ()
208
210
{
209
- $ html = '<h1>松下紗栄子 </h1> ' ;
211
+ $ html = '<h1>弹窗模式 自定页 </h1> ' ;
210
212
/*弹窗模式 渲染自定义页模板 Plane::html*/
211
- return Plane::html ($ html );
213
+ $ panel = new FormPanel ();
214
+ $ panel ->input ('id ' ,'序号 ' );
215
+ $ panel ->textarea ('description ' ,'描述 ' );
216
+ $ panel ->select ('status ' ,'状态 ' ,[0 ],[0 =>'开启 ' ,1 =>'关闭 ' ,2 =>'删除 ' ],1 );
217
+ $ panel ->datepicker ('time ' ,'时间 ' );
218
+ $ panel ->html ('test ' ,'自定义 ' ,'<p>松下紗栄子</p> ' );
219
+ $ html = $ panel ->compile ();
220
+ return Plane::html ($ title .$ html );
212
221
}
213
222
214
223
private function cascadeExampleData ()
0 commit comments