diff --git a/README.md b/README.md
index 18e27d3..0364be9 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,10 @@
[在线Demo](http://120.92.142.115/)
+### 立即体验VForm Pro高级版(提供商业支持)
+[Pro Demo](http://120.92.142.115/pro)
+
+
### Vue 3正式版已发布
[立即进入](https://gitee.com/vdpadmin/variant-form3-vite)
@@ -180,6 +184,8 @@ VS Code插件:https://www.vform666.com/changelog.html
+订阅Pro版:https://www.vform666.com/pages/pro/
+
技术交流群:扫如下二维码加群

diff --git a/src/components/form-designer/index.vue b/src/components/form-designer/index.vue
index 84f7d73..4491a56 100644
--- a/src/components/form-designer/index.vue
+++ b/src/components/form-designer/index.vue
@@ -15,7 +15,7 @@
VForm {{i18nt('application.productTitle')}} Ver {{vFormVersion}}
-
+
{{curLangName}}
{{i18nt('application.zh-CN')}}
diff --git a/src/components/form-render/index.vue b/src/components/form-render/index.vue
index 16bb813..8aa6baf 100644
--- a/src/components/form-render/index.vue
+++ b/src/components/form-render/index.vue
@@ -154,9 +154,11 @@
this.handleOnMounted()
},
methods: {
- initFormObject() {
+ initFormObject(insertHtmlCodeFlag = true) {
this.formId = 'vfRender' + generateId()
- this.insertCustomStyleAndScriptNode()
+ if (!!insertHtmlCodeFlag) {
+ this.insertCustomStyleAndScriptNode()
+ }
this.addFieldChangeEventHandler()
this.addFieldValidateEventHandler()
this.registerFormToRefList()
@@ -422,8 +424,9 @@
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
+ this.insertCustomStyleAndScriptNode() /* 必须先插入表单全局函数,否则VForm内部引用全局函数会报错!!! */
this.$nextTick(() => {
- this.initFormObject()
+ this.initFormObject(false)
this.handleOnMounted()
})
} else {
diff --git a/src/utils/sfc-generator.js b/src/utils/sfc-generator.js
index 8476947..314d055 100644
--- a/src/utils/sfc-generator.js
+++ b/src/utils/sfc-generator.js
@@ -210,7 +210,7 @@ function buildCheckboxChildren(widget, formConfig) {
function buildSelectChildren(widget, formConfig) {
let wop = widget.options
const childTag = 'el-option'
- return `<${childTag} v-for="(item, index) in ${wop.name}Options" :key="index" :label="item.value"
+ return `<${childTag} v-for="(item, index) in ${wop.name}Options" :key="index" :label="item.label"
:value="item.value" :disabled="item.disabled">${childTag}>`
}