18 lines
633 B
TypeScript
18 lines
633 B
TypeScript
import type { AtransResult } from '@/utils/page/config'
|
|
const configData = ref<AtransResult>()
|
|
export const initConfig = () => {
|
|
configData.value = pageConfig({
|
|
dialog: [
|
|
{
|
|
title: { label: '商品标题', class: '!w-full', rule: true },
|
|
appCategoryIds: { label: 'app类目', slot: 'appCategoryId', rule: true },
|
|
mainImageUrl: { label: '主图', slot: 'mainFile' },
|
|
videoUrl: { label: '视频', slot: 'videoFile' },
|
|
subImageUrl: { label: '副图', slot: 'subFile' },
|
|
fileReviewList: { label: '图片预览', slot: 'fileReviewList' }
|
|
}
|
|
]
|
|
})
|
|
return configData
|
|
}
|