commonUtil.d.ts 1.0 KB

123456789101112131415161718
  1. import type { DefaultOptionType, FieldNames, InternalFieldNames, InternalValueType, SingleValueType } from '../Cascader';
  2. export declare const VALUE_SPLIT = "__RC_CASCADER_SPLIT__";
  3. export declare const SHOW_PARENT = "SHOW_PARENT";
  4. export declare const SHOW_CHILD = "SHOW_CHILD";
  5. /**
  6. * Will convert value to string, and join with `VALUE_SPLIT`
  7. */
  8. export declare function toPathKey(value: SingleValueType): string;
  9. /**
  10. * Batch convert value to string, and join with `VALUE_SPLIT`
  11. */
  12. export declare function toPathKeys(value: SingleValueType[]): string[];
  13. export declare function toPathValueStr(pathKey: string): string[];
  14. export declare function fillFieldNames(fieldNames?: FieldNames): InternalFieldNames;
  15. export declare function isLeaf(option: DefaultOptionType, fieldNames: FieldNames): any;
  16. export declare function scrollIntoParentView(element: HTMLElement): void;
  17. export declare function getFullPathKeys(options: DefaultOptionType[], fieldNames: FieldNames): any[];
  18. export declare function toRawValues(value?: InternalValueType): SingleValueType[];