import { ref, h } from "vue";
import { ElMessageBox, ElSelect, ElOption} from "element-plus";
const transfer_to = ref(""); //重要 必须是ref响应式数据
let options = totalDesigner.value.map((item) => {
return h(ElOption, {
label: item.designer_name,
value: item.designer_id,
key: item.designer_id,
});
});
ElMessageBox({
title: "请选择转交设计师",
confirmButtonText: "确定",
message: () =>
h(
ElSelect,
{
filterable: true,
placeholder: "请选择",
clearable: true,
modelValue: transfer_to.value,
"onUpdate:modelValue": (val) => {
transfer_to.value = val;
},
},
options
),
})
messagebox内容为elselect
于 2023-02-10 18:52:01 首次发布