1. 增加语言切换菜单显示延时;

2. 修复SFC生成小bug;
3. 修复异步加载表单时全局函数无法提前加载的问题。
master
vdpAdmin 2022-05-19 09:39:55 +08:00
parent 736e58a0f6
commit 54e047911e
4 changed files with 14 additions and 5 deletions

View File

@ -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插件<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>
订阅Pro版<a href="https://www.vform666.com/pages/pro/" target="_blank">https://www.vform666.com/pages/pro/</a>
技术交流群:扫如下二维码加群
![image](https://vform2022.ks3-cn-beijing.ksyuncs.com/vchat_qrcode.png)

View File

@ -15,7 +15,7 @@
<img src="../../assets/vform-logo.png" @click="openHome">
<span class="bold">VForm</span> {{i18nt('application.productTitle')}} <span class="version-span">Ver {{vFormVersion}}</span></div>
<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>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="zh-CN">{{i18nt('application.zh-CN')}}</el-dropdown-item>

View File

@ -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 //provideformConfig
this.$set(this.formJsonObj, 'widgetList', newFormJsonObj.widgetList)
this.insertCustomStyleAndScriptNode() /* 必须先插入表单全局函数否则VForm内部引用全局函数会报错 */
this.$nextTick(() => {
this.initFormObject()
this.initFormObject(false)
this.handleOnMounted()
})
} else {

View File

@ -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}>`
}