From ad40ae6fa8e4c3081eccb30bf560355bad9cc2ac Mon Sep 17 00:00:00 2001 From: vdpAdmin Date: Mon, 24 Oct 2022 23:02:03 +0800 Subject: [PATCH] =?UTF-8?q?2022.10.24=E6=9B=B4=E6=96=B0=EF=BC=9A=201.=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E5=8D=87=E7=BA=A7=E5=88=B03.0.9?= =?UTF-8?q?=EF=BC=9B=202.=20=E5=90=8C=E6=AD=A5=E5=8F=91=E5=B8=83=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=ACnpm=E5=8C=85=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/form-render/index.vue | 4 ++++ src/utils/config.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9a12f1..34fced4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "variant-form3", - "version": "3.0.8", + "version": "3.0.9", "private": false, "scripts": { "serve": "vite", diff --git a/src/components/form-render/index.vue b/src/components/form-render/index.vue index 078f4c8..2afb50b 100644 --- a/src/components/form-render/index.vue +++ b/src/components/form-render/index.vue @@ -383,6 +383,10 @@ return this.$refs['renderForm'] }, + getFormRef() { + return this + }, + getWidgetRef(widgetName, showError = false) { let foundRef = this.widgetRefList[widgetName] if (!foundRef && !!showError) { diff --git a/src/utils/config.js b/src/utils/config.js index ba4b9b1..8129c75 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -1,4 +1,4 @@ -export const VARIANT_FORM_VERSION = '3.0.8' +export const VARIANT_FORM_VERSION = '3.0.9' //export const MOCK_CASE_URL = 'https://www.fastmock.site/mock/2de212e0dc4b8e0885fea44ab9f2e1d0/vform/' export const MOCK_CASE_URL = 'https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/'