Files
mp-vue/src/views/house/reservation/components/search.vue
赵忠林 a7e88a8f0c feat(house-info): 新增房源与预订相关接口及房源编辑组件
- 新增房源信息和预订信息的数据模型定义
- 实现房源信息和预订信息的增删改查及批量操作API
- 新增房源编辑弹窗组件,实现房源信息的填写、编辑与预览
- 实现房源编辑中图片、视频上传及地理位置选择功能
- 新增房源搜索组件,支持用户、区域及关键词筛选
- 新增房源列表页面,支持房源状态、推荐、必看开关操作及数据展示
- 优化房源编辑表单显示与校验规则
- 支持房源标签多选及办公室配套和详细介绍的富文本编辑
2026-06-01 18:12:17 +08:00

43 lines
835 B
Vue

<!-- 搜索表单 -->
<template>
<a-space :size="10" style="flex-wrap: wrap">
<a-button type="primary" class="ele-btn-icon">
<template #icon>
<PlusOutlined />
</template>
<span>添加</span>
</a-button>
</a-space>
</template>
<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';
import type { GradeParam } from '@/api/user/grade/model';
import { watch } from 'vue';
const props = withDefaults(
defineProps<{
// 选中的角色
selection?: [];
}>(),
{}
);
const emit = defineEmits<{
(e: 'search', where?: GradeParam): void;
(e: 'add'): void;
(e: 'remove'): void;
(e: 'batchMove'): void;
}>();
// 新增
const add = () => {
emit('add');
};
watch(
() => props.selection,
() => {}
);
</script>