-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
可复现的链接:
问题描述与截图:
见下图,使用ElSelect配置的代码摘要如下:
const xFormOpt: VxeFormProps = reactive({
span: 24,
titleWidth: "100px",
loading: false,
/** 是否显示标题冒号 */
titleColon: false,
/** 项列表 */
items: [
{
title: "必填项",
span: 12,
children: [
{
field: "craft",
title: "工艺",
itemRender: {
name: "$select",
options: [
{ value: "DIP", label: "直插" },
{ value: "SMD", label: "贴片" }
]
}
},
{
field: "preferred_level",
title: "优选等级",
itemRender: {
name: "ElSelect",
options: [
{ value: "Optional", label: "可选" },
{ value: "Trial", label: "试用" },
{ value: "Stop Production", label: "停产" },
{ value: "Unavailable", label: "不可用" },
{ value: "Not Recommended", label: "不推荐" }
]
}
}]})
<template>
<div class="app-container">
<!-- 表格 -->
<vxe-grid ref="xGridDom" v-bind="xGridOpt">
<!-- 左侧按钮列表 -->
<template #toolbar-btns>
<vxe-button status="primary" icon="vxe-icon-add" @click="crudStore.onShowModal()" circle />
<vxe-button status="danger" icon="vxe-icon-delete" circle />
</template>
<!-- 操作 -->
<template #row-operate="{ row }">
<el-button link type="primary" @click="crudStore.onShowModal(row)">修改</el-button>
<el-button link type="danger" @click="crudStore.onDelete(row)">删除</el-button>
</template>
</vxe-grid>
<!-- 弹窗 -->
<vxe-modal ref="xModalDom" v-bind="xModalOpt" width="1270" height="800" resize>
<!-- 表单 -->
<vxe-form ref="xFormDom" v-bind="xFormOpt" />
</vxe-modal>
</div>
</template>
现在的问题是表单已经加载了ElSelect,但是没有正确的将options
加载出来,见下图
我感觉是我没有正确配置,但是看文档的配置方式应该是这样添加下拉选项的
使用的库的版本信息:
- "element-plus": "2.6.2",
- "vue": "3.4.21",
- "vue-router": "4.3.0",
- "vxe-table": "4.5.21",
- "vxe-table-plugin-element": "4.0.2",
期望的结果:
ElSelect可以正确的显示下拉列表选项
操作系统:
Windows 11
浏览器版本:
Edge 123.0.2420.65; Firefox 125.03
vue 版本:
3.4.21
vxe-table 版本:
4.5.21
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working