import { FormType } from "@/components/form/interface";
import { UserDataType } from "@/model/userModel";
import { ColumnsType } from "antd/lib/table";
export const columns: ColumnsType<UserDataType> = [
  {
    title: "法规标题",
    dataIndex: "title",
  },
  {
    title: "法规副标题",
    dataIndex: "sub_title",
  },
  {
    title: "法规内容",
    dataIndex: "content",
    width: 300,
    ellipsis: true,
  },
  {
    title: "政策法规分类",
    dataIndex: "storage_name",
  },
];

export const defaultConfig = [
 
  {
    type: FormType.input,
    label: "法规标题",
    name: "title",
    value: "",
    rules: [{ required: true, message: "请输入法规标题!" }],
  },
 
  {
    type: FormType.input,
    label: "法规副标题",
    name: "sub_title",
    value: "",
    rules: [{ required: true, message: "请输入法规副标题!" }],
  },
  {
    type: "editor",
    label: "内容",
    name: "content",
    value: "",
    rules: [{ required: true, message: "请填写内容" }],
  },
  {
    type: "upload",
    label: "附件图片",
    name: "file_url",
    value: [],
  },
];
