We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vben Admin V5
{ fieldName: 'aiSceneSessionExpressList', component: 'TableItem', labelWidth: 0, formItemClass: 'lg:col-span-6', componentProps: { minHeight: 300, tableTitle: '课文生词列表', tableTitleHelp: '点击表格中某一项即可进入编辑状态', columns: [ { field: 'orderNo', title: '顺序号', width: 120, editRender: { name: 'input', placeholder: '请输入', }, }, ], editRules: { orderNo: [{ required: true, message: '必须填写' }], }, }, },
<template #aiSceneSessionExpressList="slotProps"> <TableItem v-bind="slotProps" /> </template>
子组件主要代码
async function validate() { const errMap = await gridApi.grid.validate(true); return !errMap; } defineExpose({ validate, });
我想通过 editRules 传到子组件里, TableItem 是插槽中的自定义组件,抛出了一个 validate 事件,我应该怎么做呢˛
TableItem
validate
No response
The text was updated successfully, but these errors were encountered:
这个应该怎么做,困扰我好久了,我不想单独去针对每个去在 submit 时去校验
Sorry, something went wrong.
No branches or pull requests
Version
Vben Admin V5
Description
子组件主要代码
Proposed Solution
我想通过 editRules 传到子组件里,
TableItem
是插槽中的自定义组件,抛出了一个validate
事件,我应该怎么做呢˛Alternatives Considered
No response
Additional Context
No response
Validations
The text was updated successfully, but these errors were encountered: