import { Time } from '/@/components/Time';
import { FormProps, BasicColumn } from '/@/components/Table';
import { h } from 'vue';
import { FormSchema } from '/@/components/Form/index';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();

export const columns: BasicColumn[] = [
  {
    title: 'cameraName',
    dataIndex: 'cameraName',
    ellipsis: false,
    width: 100,
  },
  {
    title: 'cameraType',
    dataIndex: 'cameraType',
    width: 80,
  },
  {
    title: 'sceneSource',
    dataIndex: 'sceneSource',
    width: 80,
  },
  {
    title: 'modelkind',
    dataIndex: 'modelkind',
    width: 80,
  },
  {
    title: 'sceneResolution',
    dataIndex: 'sceneResolution',
    width: 50,
  },
  {
    title: 'sceneFrom',
    dataIndex: 'sceneFrom',
    width: 100,
  },
  {
    title: 'sceneKind',
    dataIndex: 'sceneKind',
    // slots: { customRender: 'orderStatus' },
    width: 100,
  },
  {
    title: 'skyboxType',
    dataIndex: 'skyboxType',
    // slots: { customRender: 'orderStatus' },
    width: 100,
  },
  {
    title: 'appObjSplitType',
    dataIndex: 'appObjSplitType',
    // slots: { customRender: 'orderStatus' },
    width: 100,
  },
  {
    title: 'pcObjSplitType',
    dataIndex: 'pcObjSplitType',
    // slots: { customRender: 'orderStatus' },
    width: 100,
  },
];
export const searchForm: Partial<FormProps> = {
  labelWidth: 100,
  schemas: [
    {
      field: 'cameraName',
      label: '设备名称',
      component: 'Input',
      componentProps: {
        maxLength: 100,
      },
      colProps: {
        xl: 6,
        xxl: 6,
      },
    },
  ],
};
export const InvoiceSchemas: FormSchema[] = [
  {
    field: 'id',
    component: 'Input',
    label: 'id',
    ifShow: false,
    required: true,
    colProps: {
      span: 18,
    },
  },
  {
    field: 'cameraName',
    component: 'Input',
    required: true,
    label: 'cameraName',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'cameraType',
    required: true,
    component: 'Input',
    label: 'cameraType',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'sceneSource',
    component: 'Input',
    required: true,
    label: 'sceneSource',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'modelkind',
    component: 'Input',
    required: true,
    label: 'modelkind',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'sceneResolution',
    component: 'Input',
    required: true,
    label: 'sceneResolution',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'sceneFrom',
    component: 'Input',
    required: true,
    label: 'sceneFrom',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'sceneKind',
    component: 'Input',
    required: true,
    label: 'sceneKind',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'splitType',
    component: 'Input',
    required: true,
    label: 'splitType',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'skyboxType',
    component: 'Input',
    required: true,
    label: 'skyboxType',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'appObjSplitType',
    component: 'Input',
    required: true,
    label: 'appObjSplitType',
    colProps: {
      span: 18,
    },
  },
  {
    field: 'pcObjSplitType',
    component: 'Input',
    required: true,
    label: 'pcObjSplitType',
    colProps: {
      span: 18,
    },
  },
];
