mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
导航新增字段key
This commit is contained in:
@@ -45,8 +45,14 @@ class ColumnFormat
|
||||
->setLimit(30)
|
||||
->setDefault('');
|
||||
}
|
||||
public static function stringTypeStatus($name = 'type')
|
||||
{
|
||||
return Column::make($name,'string')
|
||||
->setLimit(80)
|
||||
->setDefault('');
|
||||
}
|
||||
|
||||
public static function integerTypeStatus($name,$default = 0)
|
||||
public static function integerTypeStatus($name = 'type',$default = 0)
|
||||
{
|
||||
return Column::make($name,'integer')
|
||||
->setLimit(10)
|
||||
@@ -61,4 +67,15 @@ class ColumnFormat
|
||||
->setLimit(20)
|
||||
->setSigned(false);
|
||||
}
|
||||
|
||||
public static function text($name)
|
||||
{
|
||||
return Column::make($name,'text')
|
||||
->setDefault('');
|
||||
}
|
||||
public static function textLong($name)
|
||||
{
|
||||
return Column::longText($name)
|
||||
->setDefault('');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user