修复SFC生成的小bug。

This commit is contained in:
vdpAdmin 2022-05-19 09:33:06 +08:00
parent 5915983063
commit 75f08c4065
2 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,9 @@
### 立即体验VForm 3
[在线Demo](http://120.92.142.115:81/vform3/)
### 立即体验VForm 3 Pro高级版提供商业支持
[VForm 3 Pro Demo](http://120.92.142.115:81/vform3pro/)
### 适合Vue 2的版本看这里
[点此查看](https://gitee.com/vdpadmin/variant-form)
@ -162,6 +165,8 @@ Gitee仓库<a href="https://gitee.com/vdpadmin/variant-form3-vite" target="_b
更新日志:<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

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