diff --git a/__tests__/__snapshots__/factory.test.tsx.snap b/__tests__/__snapshots__/factory.test.tsx.snap index 7859cf5f..536bd0b7 100644 --- a/__tests__/__snapshots__/factory.test.tsx.snap +++ b/__tests__/__snapshots__/factory.test.tsx.snap @@ -126,10 +126,10 @@ exports[`factory:definitions 1`] = ` > @@ -217,7 +217,7 @@ exports[`factory:definitions 1`] = ` name="value" placeholder="" type="text" - value="refs value" + value="ref value" /> @@ -417,7 +417,7 @@ exports[`factory:definitions override 1`] = ` > { aa: { type: 'text', name: 'jack', - value: 'refs value', + value: 'ref value', remark: '通过\\$ref引入的组件' }, 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: [ diff --git a/docs/renderers/Definitions.md b/docs/renderers/Definitions.md index 4d7235c1..de424ad3 100644 --- a/docs/renderers/Definitions.md +++ b/docs/renderers/Definitions.md @@ -8,7 +8,7 @@ "aa": { "type": "text", "name": "jack", - "value": "refs value", + "value": "ref value", "remark": "通过\\$ref引入的组件" }, "bb": { @@ -47,12 +47,12 @@ { "label": "text2", "$ref": "aa", - "name": "refs1" + "name": "ref1" }, { "label": "combo", "$ref": "bb", - "name": "refs2" + "name": "ref2" } ] },