* Replace control(array('type' => 'xxx')) to control(array('control' => 'xxx')).

This commit is contained in:
liumengyi
2024-02-29 16:10:27 +08:00
committed by caoyanyi
parent 63c28d7648
commit 2a3cce20b0
11 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -265,7 +265,7 @@ $config->testcase->importfromlib->dtable->fieldList['id']['fixed'] = false;
$config->testcase->importfromlib->dtable->fieldList['branch']['name'] = 'branch';
$config->testcase->importfromlib->dtable->fieldList['branch']['title'] = $lang->testcase->branch;
$config->testcase->importfromlib->dtable->fieldList['branch']['type'] = 'control';
$config->testcase->importfromlib->dtable->fieldList['branch']['control'] = array('type' => 'picker', 'props' => array('required' => true));
$config->testcase->importfromlib->dtable->fieldList['branch']['control'] = array('control' => 'picker', 'props' => array('required' => true));
$config->testcase->importfromlib->dtable->fieldList['branch']['width'] = '200px';
$config->testcase->importfromlib->dtable->fieldList['pri']['name'] = 'pri';
@@ -286,7 +286,7 @@ $config->testcase->importfromlib->dtable->fieldList['fromModule']['type'] = 'ca
$config->testcase->importfromlib->dtable->fieldList['module']['name'] = 'module';
$config->testcase->importfromlib->dtable->fieldList['module']['title'] = $lang->testcase->module;
$config->testcase->importfromlib->dtable->fieldList['module']['type'] = 'control';
$config->testcase->importfromlib->dtable->fieldList['module']['control'] = array('type' => 'picker', 'props' => "RAWJS<window.getModuleCellProps>RAWJS");
$config->testcase->importfromlib->dtable->fieldList['module']['control'] = array('control' => 'picker', 'props' => "RAWJS<window.getModuleCellProps>RAWJS");
$config->testcase->importfromlib->dtable->fieldList['module']['width'] = '200px';
$config->testcase->importfromlib->dtable->fieldList['type']['name'] = 'type';
+2 -2
View File
@@ -63,7 +63,7 @@ $items[] = array
'name' => 'module',
'label' => $lang->testcase->module,
'hidden' => zget($visibleFields, 'module', true, false),
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => $moduleOptionMenu,
'value' => $currentModuleID,
'width' => '200px',
@@ -77,7 +77,7 @@ $items[] = array
'name' => 'scene',
'label' => $lang->testcase->scene,
'hidden' => zget($visibleFields, 'scene', true, false),
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => $sceneOptionMenu,
'value' => $currentSceneID,
'width' => '200px',
+5 -5
View File
@@ -65,7 +65,7 @@ else
'name' => 'pri',
'label' => $lang->priAB,
'width' => '100px',
'control' => array('type' => 'priPicker', 'required' => true),
'control' => array('control' => 'priPicker', 'required' => true),
'items' => $lang->testcase->priList,
'ditto' => true,
'hidden' => !isset($visibleFields['pri']),
@@ -77,7 +77,7 @@ else
'name' => 'status',
'label' => $lang->statusAB,
'width' => '120px',
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => $lang->testcase->statusList,
'hidden' => !isset($visibleFields['status']),
'required' => isset($requiredFields['status'])
@@ -96,7 +96,7 @@ else
'name' => 'module',
'label' => $lang->testcase->module,
'width' => '180px',
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => array(),
'hidden' => !isset($visibleFields['module']),
'required' => isset($requiredFields['module'])
@@ -106,7 +106,7 @@ else
'name' => 'scene',
'label' => $lang->testcase->scene,
'width' => '180px',
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => array(),
'hidden' => ($isLibCase || !isset($visibleFields['scene'])),
'required' => isset($requiredFields['scene'])
@@ -136,7 +136,7 @@ else
'name' => 'type',
'label' => $lang->testcase->type,
'width' => '140px',
'control' => array('type' => 'picker', 'required' => true),
'control' => array('control' => 'picker', 'required' => true),
'items' => $lang->testcase->typeList,
'ditto' => true,
'required' => isset($requiredFields['type']),
+1 -1
View File
@@ -29,7 +29,7 @@ $fields->field('story')
->itemBegin()->control('btn', array('url' => helper::createLink('story', 'view', 'storyID=' . data('case.story')), 'data-toggle' => 'modal', 'data-size' => 'lg'))->className('hidden', empty(data('case.story')))->icon('eye text-primary')->hint($lang->preview)->id('preview')->itemEnd();
$fields->field('scene')
->control(array('type' => 'picker', 'required' => true))
->control(array('control' => 'picker', 'required' => true))
->items(data('sceneOptionMenu'))
->value(data('currentSceneID'));