<?php
return array
(
    'list' => array
    (
        'field'      => array
        (
            'sort' => array
            (
                'type' => 'input',
            ),
            'name' => array
            (
                //'tip' => false,
            ),
            'cate' => array
            (
                'show' => 'Dever::call("content/cate.getInfo", array("func", "{cate}"))',
            ),
            'status' => array
            (
                'type' => 'switch',
                'show'  => '{status}',
                'active_value' => 1,
                'inactive_value' => 2,
            ),
            'cdate',
        ),
        'button' => array
        (
            '新增' => array('add'),
        ),
        'data_button' => array
        (
            '编辑' => 'edit',
        ),
        'search'    => array
        (
            'cate' => array
            (
                'type' => 'cascader',
                'option'    => 'Dever::call("content/cate.getList", array("func"))',
            ),
            'status',
            'name',
        ),
    ),
    'update' => array
    (
        'tab' => array
        (
            '基本信息' => 'name,cate,price,info',
            //'附件信息' => 'content/info_value',
        ),
        //'desc' => '原创声明：',
        'field'    => array
        (
            'name' => array
            (
                'rules' => true,
            ),
            'info' => array
            (
                'type' => 'textarea',
                //'rows' => 4,
                'autosize' => array('minRows' => 4),
            ),
            'cate' => array
            (
                'rules' => true,
                'type' => 'cascader',
                'option'    => 'Dever::call("content/cate.getList", array("func"))',
            ),
            'price' => array
            (
                //'rules' => true,
                'desc' => '单位为元',
                'default' => '0',
            ),
        ),
    ),
);