| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { CommonInfoModel } from "@/api/inhert/VillageInfoApi";
- import { villageCommonContent } from "./common";
- import type { SingleForm } from "../forms";
- export const villageInfoStoryFormItems: SingleForm = [CommonInfoModel, (r) => ({
- formItems: [
- {
- label: '标题',
- name: 'name',
- type: 'text',
- defaultValue: '',
- additionalProps: {
- placeholder: '请输入标题',
- },
- rules: [{
- required: true,
- message: '请输入标题',
- }]
- },
- ...villageCommonContent(r, {
- title: '掌故轶事',
- showTitle: false,
- }).formItems
- ]
- }), { title: '掌故轶事', typeName: '', }]
- export const villageInfoFigureFormItems: SingleForm = [CommonInfoModel, (r) => ({
- formItems: [
- {
- label: '历史人物名称',
- name: 'name',
- type: 'text',
- defaultValue: '',
- additionalProps: {
- placeholder: '请输入标题',
- },
- rules: [{
- required: true,
- message: '请输入标题',
- }]
- },
- ...villageCommonContent(r, {
- title: '历史人物',
- showTitle: false,
- }).formItems
- ]
- }), { title: '历史人物', typeName: '', }]
|