import type { PickerFieldProps } from "@/components/form/PickerField.vue";

export interface PickerIdFieldOption {
  text: string,
  value: string|number,
}

export interface PickerIdFieldProps extends Omit<PickerFieldProps, 'columns'> {
  /**
   * 是否禁用
   */
  disabled?: boolean;
  /**
   * 加载选项数据
   * @returns 
   */
  loadData: () => Promise<PickerIdFieldOption[]>;
}