From 06d740ba230b5c5028ed9b278725d685b50ff6e8 Mon Sep 17 00:00:00 2001 From: catchonme Date: Fri, 21 Jun 2019 18:04:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9$refs->$ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __tests__/__snapshots__/factory.test.tsx.snap | 8 ++++---- __tests__/factory.test.tsx | 10 +++++----- docs/renderers/Definitions.md | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) 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" } ] },