var commonObj = { x: { required: true, type: 'number', message: '请输入坐标X' }, y: { required: true, type: 'number', message: '请输入坐标Y' }, w: { required: true, type: 'number', message: '请输入区域宽度' }, h: { required: true, type: 'number', message: '请输入区域高度' } } export default { basicSet: { titleImg: { required: true, message: '请选择标题栏图片' }, titleColor: { required: true, message: '请选择标题栏底色' }, bgImg: { required: true, type: 'array', message: '请选择背景图片' } }, customPage: { ...commonObj // img: { required: true, message: '热区图片与跳转链接至少有一个必填' } }, bulletinBoard: { ...commonObj, noticeList: { required: true, type: 'array', message: '请选择公告' } }, carousel: { ...commonObj, banners: { required: true, type: 'array', message: '请选择轮播图片' }, switchTime: { required: true, type: 'number', message: '请输入自动切换间隔' }, switchAnimationTime: { required: true, type: 'number', message: '请输入切换动画时间' } }, search: { ...commonObj, fontSize: { required: true, type: 'number', message: '请输入文字大小' }, borderRadius: { required: true, type: 'number', message: '请输入圆角大小' }, strokeSize: { required: true, type: 'number', message: '请输入描边大小' } }, proDetails: { ...commonObj, spuId: { required: true, message: '请选择商品' } }, actDetails: { ...commonObj, content: { required: true, message: '请选择活动' } }, proCategory: { ...commonObj, catId: { required: true, message: '请选择商品分类' } }, playVideo: { ...commonObj, videoUrl: { required: true, message: '请选择视频' } }, backToTop: { ...commonObj }, slide3d: { ...commonObj, banners: { required: true, type: 'array', message: '请选择滑动图片' } } }