chosen.d.ts 754 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * 下拉控件 请求参数定义
  3. * @apiName biz.util.chosen
  4. */
  5. export interface IBizUtilChosenParams {
  6. /** 下拉控件的内容 */
  7. source: Array<{
  8. /** 显示文本 */
  9. key: string;
  10. /** 文本对应的值 */
  11. value: string;
  12. }>;
  13. /** 默认选中的key */
  14. selectedKey: string;
  15. }
  16. /**
  17. * 下拉控件 返回结果定义
  18. * @apiName biz.util.chosen
  19. */
  20. export interface IBizUtilChosenResult {
  21. /** 显示文本 */
  22. key: string;
  23. /** 文本对应的值 */
  24. value: string;
  25. }
  26. /**
  27. * 下拉控件
  28. * @apiName biz.util.chosen
  29. * @supportVersion ios: 2.4.0 android: 2.4.0
  30. */
  31. export declare function chosen$(params: IBizUtilChosenParams): Promise<IBizUtilChosenResult>;
  32. export default chosen$;