dcp-design-react 1.10.18 → 1.11.0

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 (54) hide show
  1. package/lib/form/src/form.d.ts +2 -1
  2. package/lib/form/src/types.d.ts +5 -1
  3. package/lib/index.d.ts +4 -0
  4. package/lib/index.esm.js +1 -1
  5. package/lib/index.full.js +1 -1
  6. package/lib/index.js +1 -1
  7. package/lib/locale/lang/en.d.ts +4 -0
  8. package/lib/locale/lang/en.js +5 -1
  9. package/lib/locale/lang/zh-cn.d.ts +4 -0
  10. package/lib/locale/lang/zh-cn.js +5 -1
  11. package/lib/pivot-grid/index.d.ts +3 -0
  12. package/lib/pivot-grid/src/config/index.d.ts +9 -0
  13. package/lib/pivot-grid/src/grid-layout/Body.d.ts +3 -0
  14. package/lib/pivot-grid/src/grid-layout/Context.d.ts +20 -0
  15. package/lib/pivot-grid/src/grid-layout/CountPanel.d.ts +7 -0
  16. package/lib/pivot-grid/src/grid-layout/Footer.d.ts +3 -0
  17. package/lib/pivot-grid/src/grid-layout/GroupCard.d.ts +10 -0
  18. package/lib/pivot-grid/src/grid-layout/Header.d.ts +3 -0
  19. package/lib/pivot-grid/src/grid-layout/List.d.ts +7 -0
  20. package/lib/pivot-grid/src/grid-layout/ResizeBar.d.ts +7 -0
  21. package/lib/pivot-grid/src/grid-layout/index.d.ts +3 -0
  22. package/lib/pivot-grid/src/main/Context.d.ts +39 -0
  23. package/lib/pivot-grid/src/main/index.d.ts +3 -0
  24. package/lib/pivot-grid/src/main/types.d.ts +8 -0
  25. package/lib/pivot-grid/src/top-bar/FieldsPanel.d.ts +3 -0
  26. package/lib/pivot-grid/src/top-bar/FilterPanel.d.ts +3 -0
  27. package/lib/pivot-grid/src/top-bar/GroupPanel.d.ts +3 -0
  28. package/lib/pivot-grid/src/top-bar/LineHeightPanel.d.ts +3 -0
  29. package/lib/pivot-grid/src/top-bar/SearchPanel.d.ts +3 -0
  30. package/lib/pivot-grid/src/top-bar/SorterPanel.d.ts +3 -0
  31. package/lib/pivot-grid/src/top-bar/ViewMode.d.ts +3 -0
  32. package/lib/pivot-grid/src/top-bar/index.d.ts +3 -0
  33. package/lib/pivot-grid/src/utils/index.d.ts +2 -0
  34. package/lib/pivot-grid/style/grid-layout.less +234 -0
  35. package/lib/pivot-grid/style/index.less +10 -0
  36. package/lib/pivot-grid/style/main.less +43 -0
  37. package/lib/pivot-grid/style/top-bar.less +105 -0
  38. package/lib/pivot-grid/style/variable.less +9 -0
  39. package/lib/style/index.css +436 -3
  40. package/lib/style/index.less +2 -1
  41. package/lib/style/index.min.css +1 -1
  42. package/lib/table/src/body/DraggableTr.d.ts +26 -0
  43. package/lib/table/src/body/dragUtils.d.ts +43 -0
  44. package/lib/table/src/body/useDragSort.d.ts +24 -0
  45. package/lib/table/src/context/index.d.ts +1 -0
  46. package/lib/table/src/hooks/useTableMemo.d.ts +1 -0
  47. package/lib/table/src/pivot-grid/index.d.ts +7 -0
  48. package/lib/table/src/table/props.d.ts +3 -1
  49. package/lib/table/src/table/types.d.ts +6 -1
  50. package/lib/table/src/toolbox/index.d.ts +1 -0
  51. package/lib/table/style/body.less +103 -77
  52. package/lib/table/style/index.less +31 -30
  53. package/lib/table/style/pivot-grid.less +19 -0
  54. package/package.json +1 -1
@@ -30,7 +30,8 @@ declare class QmForm extends Component<IProps, IState> {
30
30
  layout: import("prop-types").Requireable<string>;
31
31
  size: (props: any, propName: any, componentName: any) => void;
32
32
  cols: import("prop-types").Requireable<number>;
33
- customClass: import("prop-types").Requireable<string>;
33
+ className: import("prop-types").Requireable<string>;
34
+ style: import("prop-types").Requireable<object>;
34
35
  compactMode: import("prop-types").Requireable<boolean>;
35
36
  labelWidth: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
36
37
  labelAlign: import("prop-types").Requireable<string>;
@@ -295,7 +295,10 @@ export type IFormProps = {
295
295
  layout?: IFormLayout;
296
296
  size?: ComponentSize;
297
297
  cols?: number;
298
+ /** @deprecated use `className` instead, and it will be deprecated in the next major version */
298
299
  customClass?: string;
300
+ className?: string;
301
+ style?: CSSProperties;
299
302
  compactMode?: boolean;
300
303
  labelWidth?: number | string;
301
304
  labelAlign?: ILabelAlign;
@@ -331,7 +334,8 @@ export declare const propTypes: {
331
334
  layout: PropTypes.Requireable<string>;
332
335
  size: (props: any, propName: any, componentName: any) => void;
333
336
  cols: PropTypes.Requireable<number>;
334
- customClass: PropTypes.Requireable<string>;
337
+ className: PropTypes.Requireable<string>;
338
+ style: PropTypes.Requireable<object>;
335
339
  compactMode: PropTypes.Requireable<boolean>;
336
340
  labelWidth: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
337
341
  labelAlign: PropTypes.Requireable<string>;
package/lib/index.d.ts CHANGED
@@ -66,6 +66,8 @@ export type { LazyLoadProps as QmLazyLoadProps } from './lazy-load';
66
66
  export { default as QmLazyLoad } from './lazy-load';
67
67
  export type { SignatureRef as QmSignatureRef, SignatureProps as QmSignatureProps } from './signature';
68
68
  export { default as QmSignature } from './signature';
69
+ export type { PivotGridRef as QmPivotGridRef, PivotGridProps as QmPivotGridProps } from './pivot-grid';
70
+ export { default as QmPivotGrid } from './pivot-grid';
69
71
  export type { ConfigProviderProps as DcpConfigProviderProps } from './config-provider';
70
72
  export { default as DcpConfigProvider } from './config-provider';
71
73
  export type { ButtonProps as DcpButtonProps } from './button';
@@ -134,6 +136,8 @@ export type { LazyLoadProps as DcpLazyLoadProps } from './lazy-load';
134
136
  export { default as DcpLazyLoad } from './lazy-load';
135
137
  export type { SignatureRef as DcpSignatureRef, SignatureProps as DcpSignatureProps } from './signature';
136
138
  export { default as DcpSignature } from './signature';
139
+ export type { PivotGridRef as DcpPivotGridRef, PivotGridProps as DcpPivotGridProps } from './pivot-grid';
140
+ export { default as DcpPivotGrid } from './pivot-grid';
137
141
  export { default as pinyin } from './pinyin';
138
142
  export { default as version } from './version';
139
143
  export * from './antd';