feat:【antd】【mall】point 优化完善

This commit is contained in:
puhui999
2025-12-20 08:56:32 +08:00
parent f99d708c97
commit f429e74e79
3 changed files with 5 additions and 7 deletions

View File

@@ -1,2 +1,2 @@
export { default as PointShowcase } from './point-showcase.vue';
export { default as PointTableSelect } from './point-table-select.vue';
export { default as PointShowcase } from './showcase.vue';
export { default as PointTableSelect } from './table-select.vue';

View File

@@ -1,5 +1,4 @@
<!-- 积分商城活动橱窗组件用于展示和选择积分商城活动 -->
<!-- TODO @puhui999不需要 point- 前缀 --->
<script lang="ts" setup>
import type { MallPointActivityApi } from '#/api/mall/promotion/point';
@@ -11,7 +10,7 @@ import { Image, Tooltip } from 'ant-design-vue';
import { getPointActivityListByIds } from '#/api/mall/promotion/point';
import PointTableSelect from './point-table-select.vue';
import TableSelect from './table-select.vue';
interface PointShowcaseProps {
modelValue?: number | number[];
@@ -28,7 +27,7 @@ const props = withDefaults(defineProps<PointShowcaseProps>(), {
const emit = defineEmits(['update:modelValue', 'change']);
const pointActivityList = ref<MallPointActivityApi.PointActivity[]>([]); //
const pointTableSelectRef = ref<InstanceType<typeof PointTableSelect>>(); //
const pointTableSelectRef = ref<InstanceType<typeof TableSelect>>(); //
const isMultiple = computed(() => props.limit !== 1); //
/** 计算是否可以添加 */
@@ -141,7 +140,7 @@ function emitActivityChange() {
</div>
<!-- 活动选择对话框 -->
<PointTableSelect
<TableSelect
ref="pointTableSelectRef"
:multiple="isMultiple"
@change="handleActivitySelected"

View File

@@ -1,5 +1,4 @@
<!-- 积分商城活动选择弹窗组件 -->
<!-- TODO @puhui999不需要 point- 前缀 --->
<script lang="ts" setup>
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';