review:【antd/ele】【mall】营销模块的迁移

This commit is contained in:
YunaiV
2025-12-15 19:29:47 +08:00
parent ef0f0a9a9d
commit 4ec82f0fd0
50 changed files with 317 additions and 263 deletions

View File

@@ -57,12 +57,11 @@ const [Grid, gridApi] = useVbenVxeGrid({
/** 打开弹窗 */
async function open() {
visible.value = true;
// 重置查询条件并重新加载数据,与 antd 行为一致
await gridApi.query();
}
/** 确认选择 */
async function handleConfirm() {
function handleConfirm() {
const selectedRecords = (gridApi.grid?.getCheckboxRecords() ||
[]) as MallCouponTemplateApi.CouponTemplate[];
emit('change', selectedRecords);
@@ -74,6 +73,7 @@ function closeModal() {
visible.value = false;
}
/** 对外暴露的方法 */
defineExpose({
open,
});