import { h, Fragment } from "vue";
import { ElButton, ElImage, ElUpload } from "element-plus";
import {
  type PlusColumn,
  type FieldValues,
  PlusForm
} from "plus-pro-components";

export const useColumns = () => {
  const { pkg, lastBuildTime } = __APP_INFO__;
  const { version, engines } = pkg;
  const columns: PlusColumn[] = [
    {
      label: "启用保存历史数据",
      width: 120,
      prop: "hisDbSaveEnable",
      valueType: "input",
    },
    {
      label: "历史数据保存周期(s)",
      width: 120,
      prop: "hisDbSaveInterval",
      valueType: "input",
    },
  ]

  return {
    columns,
  };
}