You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
3.7 KiB
142 lines
3.7 KiB
<?php
|
|
|
|
return [
|
|
'base_module'=>['article','message','page'],
|
|
'field_types'=> [
|
|
'text'=>'单行文本',
|
|
'textarea'=>'多行文本',
|
|
'radio'=>'单选按钮',
|
|
// 'checkbox'=>'多选按钮',
|
|
'date'=>'日期',
|
|
// 'time'=>'时间',
|
|
'datetime'=>'日期时间',
|
|
'daterange'=>'日期范围',
|
|
// 'tag'=>'标签',
|
|
'number'=>'数字',
|
|
'password'=>'密码',
|
|
'select'=>'下拉菜单',
|
|
// 'select2'=>'高级下拉菜单',
|
|
'image'=>'单张图片',
|
|
'images'=>'多张图片',
|
|
'file'=>'单文件上传',
|
|
// 'files'=>'多文件上传',
|
|
'editor'=>'编辑器',
|
|
// 'hidden'=>'隐藏域',
|
|
],
|
|
'data_orig'=>[
|
|
0 => '字段本身',
|
|
1 => '系统字典',
|
|
3 => '关联模型',
|
|
],
|
|
'field_set_ups'=> [
|
|
'text' => [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'textarea'=> [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'text',
|
|
],
|
|
'radio'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'checkbox'=> [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'date'=> [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'time'=> [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'int',
|
|
],
|
|
'datetime' => [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'int',
|
|
],
|
|
'daterange' => [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'tag' => [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'number'=> [
|
|
'default' => '0',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'int',
|
|
],
|
|
'password' => [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'select'=> [
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'select2'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'image'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'images'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'text',
|
|
],
|
|
'file'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'varchar',
|
|
],
|
|
'files'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'text',
|
|
],
|
|
'editor'=>[
|
|
'default' => '',
|
|
'extra_attr' => '',
|
|
'extra_class' => '',
|
|
'fieldtype' => 'longtext',
|
|
],
|
|
// 'hidden'=>'隐藏域',
|
|
],
|
|
];
|