diff --git a/README.md b/README.md index 7447ec7..ff575f8 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ### 安装依赖 ``` -npm install +npm install --registry=https://registry.npm.taobao.org ``` ### 开发调试 diff --git a/install-render.js b/install-render.js index 6d84cfb..549b0ab 100644 --- a/install-render.js +++ b/install-render.js @@ -1,5 +1,8 @@ import VFormRender from '@/components/form-render/index.vue' -import axios from "axios"; +import {loadExtension} from "@/extension/extension-loader" +import axios from "axios" + +loadExtension() VFormRender.install = function (Vue) { Vue.component(VFormRender.name, VFormRender) diff --git a/install.js b/install.js index c33565a..ec1ea65 100644 --- a/install.js +++ b/install.js @@ -2,11 +2,14 @@ import axios from 'axios' import VFormDesigner from '@/components/form-designer/index.vue' import VFormRender from '@/components/form-render/index.vue' +import {loadExtension} from "@/extension/extension-loader" import '@/utils/directive' import '@/icons' import '@/iconfont/iconfont.css' +loadExtension() + VFormDesigner.install = function (Vue) { Vue.component(VFormDesigner.name, VFormDesigner) } diff --git a/package.json b/package.json index 73d5134..2085820 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "variant-form", - "version": "2.1.1", + "version": "2.1.2", "private": false, "scripts": { "serve": "vue-cli-service serve --open src/main.js", diff --git a/src/utils/config.js b/src/utils/config.js index 3aa2204..6721e92 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -8,7 +8,7 @@ export const DESIGNER_OPTIONS = { } -export const VARIANT_FORM_VERSION = '2.1.1' +export const VARIANT_FORM_VERSION = '2.1.2' export const MOCK_CASE_URL = 'https://www.fastmock.site/mock/2de212e0dc4b8e0885fea44ab9f2e1d0/vform/'