parent
736e58a0f6
commit
54e047911e
|
@ -9,6 +9,10 @@
|
||||||
[在线Demo](http://120.92.142.115/)
|
[在线Demo](http://120.92.142.115/)
|
||||||
|
|
||||||
|
|
||||||
|
### 立即体验VForm Pro高级版(提供商业支持)
|
||||||
|
[Pro Demo](http://120.92.142.115/pro)
|
||||||
|
|
||||||
|
|
||||||
### Vue 3正式版已发布
|
### Vue 3正式版已发布
|
||||||
[立即进入](https://gitee.com/vdpadmin/variant-form3-vite)
|
[立即进入](https://gitee.com/vdpadmin/variant-form3-vite)
|
||||||
|
|
||||||
|
@ -180,6 +184,8 @@ VS Code插件:<a href="https://www.vform666.com/pages/plugin/" target="_blank"
|
||||||
|
|
||||||
更新日志:<a href="https://www.vform666.com/changelog.html" target="_blank">https://www.vform666.com/changelog.html</a>
|
更新日志:<a href="https://www.vform666.com/changelog.html" target="_blank">https://www.vform666.com/changelog.html</a>
|
||||||
|
|
||||||
|
订阅Pro版:<a href="https://www.vform666.com/pages/pro/" target="_blank">https://www.vform666.com/pages/pro/</a>
|
||||||
|
|
||||||
技术交流群:扫如下二维码加群
|
技术交流群:扫如下二维码加群
|
||||||
|
|
||||||

|

|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<img src="../../assets/vform-logo.png" @click="openHome">
|
<img src="../../assets/vform-logo.png" @click="openHome">
|
||||||
<span class="bold">VForm</span> {{i18nt('application.productTitle')}} <span class="version-span">Ver {{vFormVersion}}</span></div>
|
<span class="bold">VForm</span> {{i18nt('application.productTitle')}} <span class="version-span">Ver {{vFormVersion}}</span></div>
|
||||||
<div class="float-right external-link">
|
<div class="float-right external-link">
|
||||||
<el-dropdown v-if="showLink('languageMenu')" @command="handleLanguageChanged">
|
<el-dropdown v-if="showLink('languageMenu')" :hide-timeout="2000" @command="handleLanguageChanged">
|
||||||
<span class="el-dropdown-link">{{curLangName}}<i class="el-icon-arrow-down el-icon--right"></i></span>
|
<span class="el-dropdown-link">{{curLangName}}<i class="el-icon-arrow-down el-icon--right"></i></span>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item command="zh-CN">{{i18nt('application.zh-CN')}}</el-dropdown-item>
|
<el-dropdown-item command="zh-CN">{{i18nt('application.zh-CN')}}</el-dropdown-item>
|
||||||
|
|
|
@ -154,9 +154,11 @@
|
||||||
this.handleOnMounted()
|
this.handleOnMounted()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initFormObject() {
|
initFormObject(insertHtmlCodeFlag = true) {
|
||||||
this.formId = 'vfRender' + generateId()
|
this.formId = 'vfRender' + generateId()
|
||||||
this.insertCustomStyleAndScriptNode()
|
if (!!insertHtmlCodeFlag) {
|
||||||
|
this.insertCustomStyleAndScriptNode()
|
||||||
|
}
|
||||||
this.addFieldChangeEventHandler()
|
this.addFieldChangeEventHandler()
|
||||||
this.addFieldValidateEventHandler()
|
this.addFieldValidateEventHandler()
|
||||||
this.registerFormToRefList()
|
this.registerFormToRefList()
|
||||||
|
@ -422,8 +424,9 @@
|
||||||
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
this._provided.formConfig = newFormJsonObj.formConfig //强制更新provide的formConfig对象
|
||||||
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
|
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
|
||||||
|
|
||||||
|
this.insertCustomStyleAndScriptNode() /* 必须先插入表单全局函数,否则VForm内部引用全局函数会报错!!! */
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.initFormObject()
|
this.initFormObject(false)
|
||||||
this.handleOnMounted()
|
this.handleOnMounted()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -210,7 +210,7 @@ function buildCheckboxChildren(widget, formConfig) {
|
||||||
function buildSelectChildren(widget, formConfig) {
|
function buildSelectChildren(widget, formConfig) {
|
||||||
let wop = widget.options
|
let wop = widget.options
|
||||||
const childTag = 'el-option'
|
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}>`
|
:value="item.value" :disabled="item.disabled"></${childTag}>`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue