修改$refs->$ref

This commit is contained in:
catchonme 2019-06-21 18:04:28 +08:00
parent 2e6ae1fc53
commit 337fedb8c7
3 changed files with 12 additions and 12 deletions

View File

@ -126,10 +126,10 @@ exports[`factory:definitions 1`] = `
> >
<input <input
autocomplete="off" autocomplete="off"
name="refs1" name="ref1"
placeholder="" placeholder=""
type="text" type="text"
value="refs value" value="ref value"
/> />
</div> </div>
</div> </div>
@ -217,7 +217,7 @@ exports[`factory:definitions 1`] = `
name="value" name="value"
placeholder="" placeholder=""
type="text" type="text"
value="refs value" value="ref value"
/> />
</div> </div>
</div> </div>
@ -417,7 +417,7 @@ exports[`factory:definitions override 1`] = `
> >
<input <input
autocomplete="off" autocomplete="off"
name="refs1" name="ref1"
placeholder="" placeholder=""
type="text" type="text"
value="" value=""

View File

@ -126,7 +126,7 @@ test('factory:definitions', () => {
aa: { aa: {
type: 'text', type: 'text',
name: 'jack', name: 'jack',
value: 'refs value', value: 'ref value',
remark: '通过<code>\\$ref</code>引入的组件' remark: '通过<code>\\$ref</code>引入的组件'
}, },
bb: { bb: {
@ -164,12 +164,12 @@ test('factory:definitions', () => {
{ {
label: 'text2', label: 'text2',
$ref: 'aa', $ref: 'aa',
name: 'refs1' name: 'ref1'
}, },
{ {
label: 'combo', label: 'combo',
$ref: 'bb', $ref: 'bb',
name: 'refs2' name: 'ref2'
} }
] ]
} }
@ -227,12 +227,12 @@ test('factory:definitions override', () => {
{ {
label: 'text2', label: 'text2',
$ref: 'aa', $ref: 'aa',
name: 'refs1' name: 'ref1'
}, },
{ {
label: 'combo', label: 'combo',
$ref: 'bb', $ref: 'bb',
name: 'refs2', name: 'ref2',
type: 'checkboxes', type: 'checkboxes',
value: 1, value: 1,
options: [ options: [

View File

@ -8,7 +8,7 @@
"aa": { "aa": {
"type": "text", "type": "text",
"name": "jack", "name": "jack",
"value": "refs value", "value": "ref value",
"remark": "通过<code>\\$ref</code>引入的组件" "remark": "通过<code>\\$ref</code>引入的组件"
}, },
"bb": { "bb": {
@ -47,12 +47,12 @@
{ {
"label": "text2", "label": "text2",
"$ref": "aa", "$ref": "aa",
"name": "refs1" "name": "ref1"
}, },
{ {
"label": "combo", "label": "combo",
"$ref": "bb", "$ref": "bb",
"name": "refs2" "name": "ref2"
} }
] ]
}, },