如图所示,我选中职称,点击添加的时候,想把默认值传递到表单。使用 defaultItems 是不会生效的。有什么好的实现方案吗。谢谢
建议看下表格开发示例,表单绑定值是可以动态、随时修改的
已解决。实现方法有很多。 { defaultItems: computed(() => ({ status: '1', category: currentCategory.value, })), } 直接用 computed 了
建议看下表格开发示例,表单绑定值是可以动态、随时修改的
已解决。实现方法有很多。
{
defaultItems: computed(() => ({
status: '1',
category: currentCategory.value,
})),
}
直接用 computed 了
- 1
前往