<?php
return array
(
    'list' => array
    (
        'field'      => array
        (
            'name',
            'email_user',
        ),
        'data_button' => array
        (
            '编辑' => 'fastedit',
        ),
    ),
    'update' => array
    (
        # 展示左侧分栏
        'column' => array
        (
            'load' => 'channel/config',
            'add' => '新增',
            'key' => 'id',
            'data' => 'channel/config.getTree',
            'active' => 1,
            'where' => 'id',
        ),
        'field'    => array
        (
            'name',
            'email_user',
            'email_pass' => array
            (
                'desc' => '输入将更新旧密码',
                'type' => 'password',
                # 更新时的值，始终是空的，有值才更新
                'update' => '',
                # 空值不允许入库
                'empty'  => false,
                'rules'     => array
                (
                    array
                    (
                        # 仅限新增时必填，值为add/edit，不填则所有有效
                        'only' => 'add',
                        'required' => true,
                        'trigger' => 'blur',
                        'message' => '请输入密码',
                    ),
                ),
            ),
        ),
    ),
);