@para-ui/core 4.0.29 → 4.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/AutoButton/index.d.ts +41 -0
  2. package/AutoButton/index.js +213 -0
  3. package/AutoButton/lang/en_US.d.ts +4 -0
  4. package/AutoButton/lang/index.d.ts +9 -0
  5. package/AutoButton/lang/zh_CN.d.ts +4 -0
  6. package/Badge/index.d.ts +3 -1
  7. package/Badge/index.js +15 -5
  8. package/Card/index.d.ts +53 -0
  9. package/Card/index.js +218 -0
  10. package/Card/lang/en_US.d.ts +5 -0
  11. package/Card/lang/index.d.ts +11 -0
  12. package/Card/lang/zh_CN.d.ts +5 -0
  13. package/Cascader/index.js +6 -7
  14. package/ComboSelect/index.js +7 -4
  15. package/CycleSelector/index.js +3 -1
  16. package/DatePicker/index.js +3 -1
  17. package/DragVerify/index.js +7 -2
  18. package/DynamicMultiBox/index.js +8 -6
  19. package/Form/index.js +8 -5
  20. package/FormItem/index.js +8 -5
  21. package/Image/index.js +3 -4
  22. package/PopConfirm/index.js +2 -2
  23. package/PopMenu/index.js +16 -5
  24. package/QuickReply/index.js +1 -1
  25. package/README.md +14 -0
  26. package/RangeInput/index.d.ts +59 -0
  27. package/RangeInput/index.js +193 -0
  28. package/Select/index.js +2 -2
  29. package/Selector/index.js +282 -548
  30. package/SelectorPicker/index.js +5 -5
  31. package/SingleBox/index.js +2 -2
  32. package/SortBox/index.d.ts +27 -0
  33. package/SortBox/index.js +64 -0
  34. package/Stepper/index.js +1 -1
  35. package/Switch/index.js +2 -2
  36. package/Table/index.js +471 -409
  37. package/Tabs/index.js +2 -2
  38. package/Tag/index.js +82 -53
  39. package/TextEditor/index.js +3 -3
  40. package/TimePicker/index.js +3 -1
  41. package/Timeline/index.js +14 -20
  42. package/ToggleButton/index.js +25 -26
  43. package/Transfer/index.js +48 -43
  44. package/Tree/index.js +8 -5
  45. package/Upload/ImageUpload/index.d.ts +2 -7
  46. package/Upload/index.js +848 -495
  47. package/Upload/interface.d.ts +18 -0
  48. package/_verture/{Portal-5bd49559.js → Portal-edd94cac.js} +2 -2
  49. package/_verture/{index-15a0b6a6.js → index-3795d730.js} +1 -1
  50. package/_verture/{index-e9405e35.js → index-567b5779.js} +395 -313
  51. package/_verture/{index-68f0506c.js → index-8752ccab.js} +4 -5
  52. package/_verture/index-94e24006.js +327 -0
  53. package/_verture/{slicedToArray-a8206399.js → slicedToArray-75fa4188.js} +15 -2
  54. package/_verture/{toConsumableArray-8f4c9589.js → toConsumableArray-c7a8028f.js} +1 -1
  55. package/index.d.ts +8 -0
  56. package/index.js +16 -11
  57. package/locale/en-US.d.ts +7 -0
  58. package/locale/index.d.ts +14 -0
  59. package/locale/index.js +14 -0
  60. package/locale/zh-CN.d.ts +7 -0
  61. package/package.json +2 -4
  62. package/umd/AutoButton.js +43 -0
  63. package/umd/Badge.js +1 -1
  64. package/umd/Card.js +1 -0
  65. package/umd/DragVerify.js +1 -1
  66. package/umd/FunctionModal.js +3 -3
  67. package/umd/Modal.js +2 -2
  68. package/umd/PopMenu.js +2 -2
  69. package/umd/RangeInput.js +43 -0
  70. package/umd/SortBox.js +41 -0
  71. package/umd/Upload.js +4 -4
  72. package/umd/locale.js +1 -1
  73. package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
  74. /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
  75. /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
@@ -44,6 +44,22 @@ export interface IShowUploadList {
44
44
  previewIcon?: React.ReactNode;
45
45
  }
46
46
  type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
47
+ export interface DefaultImage {
48
+ /** 图片地址 */
49
+ imageUrl: string;
50
+ /** 图片名称 */
51
+ imageName?: string;
52
+ }
53
+ export interface AvatarProps {
54
+ /** 圆角 */
55
+ borderRadius?: string | number;
56
+ /** 是否展示重置按钮 */
57
+ showReset?: boolean;
58
+ /** 图片地址 */
59
+ defaultImage?: DefaultImage;
60
+ /** 是否展示图片名称 */
61
+ showName?: boolean;
62
+ }
47
63
  export interface UploadProps<T = any> {
48
64
  /**上传类型*/
49
65
  type?: UploadType;
@@ -73,6 +89,8 @@ export interface UploadProps<T = any> {
73
89
  accept?: string;
74
90
  /**是否支持多选文件,开启后按住 ctrl 可选择多个文件*/
75
91
  multiple?: boolean;
92
+ /** 头像 */
93
+ avatarProps?: boolean | AvatarProps;
76
94
  /**上传文件改变时的状态*/
77
95
  onChange?: (info: UploadFile[]) => void;
78
96
  /**上传开始*/
@@ -1,8 +1,8 @@
1
- import { _ as _slicedToArray } from './slicedToArray-a8206399.js';
1
+ import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
2
2
  import * as React from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { _ as _typeof } from './typeof-adeedc13.js';
5
- import { _ as _toConsumableArray } from './toConsumableArray-8f4c9589.js';
5
+ import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
6
6
  import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
7
7
 
8
8
  function _extends() {
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import React__default from 'react';
3
3
  import { TextField } from '../TextField/index.js';
4
- import { _ as _slicedToArray } from './slicedToArray-a8206399.js';
4
+ import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
5
5
  import { RadioGroup } from '../RadioGroup/index.js';
6
6
  import Select from '../Select/index.js';
7
7
  import { CheckboxGroup } from '../CheckboxGroup/index.js';