50], [['redirect'], 'string', 'max' => 255], [['menuUrl'], 'unique'], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'menuUrl' => '菜单地址', 'menuName' => '菜单名称', 'parentPath' => '上级路由', 'routeName' => '路由name', 'redirect' => '是否隐藏', 'icon' => '菜单图标', 'sort' => 'Sort', 'cacheable' => '是否缓存', 'hidden' => '是否隐藏', 'affix' => '是否固定标题栏', ]; } }