修改$refs->$ref

This commit is contained in:
catchonme 2019-06-21 18:04:28 +08:00
parent 6ad3d33ae2
commit 06d740ba23
3 changed files with 12 additions and 12 deletions

View File

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

View File

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

View File

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