@zgfe/business-lib 1.2.17-heyh.2 → 1.2.18-mintai.2

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 (118) hide show
  1. package/es/AUMFormulaTarget/components/formulaItem/index.d.ts +4 -1
  2. package/es/AUMFormulaTarget/components/panel/item.d.ts +4 -1
  3. package/es/AUMFormulaTarget/components/symbol/index.d.ts +4 -1
  4. package/es/AUMFormulaTarget/index.d.ts +4 -1
  5. package/es/addToPanel/components/addPanel.d.ts +4 -1
  6. package/es/addToPanel/components/numberChart.d.ts +4 -1
  7. package/es/addToPanel/components/radioGroup.d.ts +4 -1
  8. package/es/addToPanel/components/radioGroup.js +3 -11
  9. package/es/addToPanel/components/styleList.d.ts +4 -1
  10. package/es/addToPanel/components/styleList.js +0 -3
  11. package/es/addToPanel/index.d.ts +4 -1
  12. package/es/addToPanel/index.js +1 -4
  13. package/es/addToScene/addGroup.d.ts +4 -1
  14. package/es/addToScene/index.d.ts +4 -1
  15. package/es/addToScene/index.js +1 -1
  16. package/es/assets/demo/index.d.ts +4 -1
  17. package/es/attrCondition/group.js +0 -3
  18. package/es/attrCondition/index.d.ts +4 -1
  19. package/es/attrConditions/components/operateList.d.ts +4 -1
  20. package/es/attrConditions/components/stringList.d.ts +4 -1
  21. package/es/attrConditions/components/valuesList.d.ts +4 -1
  22. package/es/attrConditions/index.d.ts +4 -1
  23. package/es/attrConditions/index.js +2 -5
  24. package/es/attributeSelector/index.d.ts +4 -1
  25. package/es/attributeSelector/listPanel.d.ts +4 -1
  26. package/es/attributeSelector/option.d.ts +4 -1
  27. package/es/colorIcon/index.d.ts +4 -1
  28. package/es/context/types.d.ts +8 -4
  29. package/es/cycleTime/index.d.ts +4 -1
  30. package/es/cycleTime/month.d.ts +4 -1
  31. package/es/dataSetGroup/index.d.ts +4 -1
  32. package/es/dataSetGroup/overlay.d.ts +4 -1
  33. package/es/datePicker/datePicker.d.ts +4 -1
  34. package/es/datePicker/datePicker.js +1 -1
  35. package/es/datePicker/demo/index.js +1 -0
  36. package/es/datePicker/index.d.ts +4 -1
  37. package/es/datePicker/shortcut.d.ts +4 -1
  38. package/es/demoWrapper/content.d.ts +4 -1
  39. package/es/demoWrapper/head.d.ts +4 -1
  40. package/es/demoWrapper/index.d.ts +4 -1
  41. package/es/demoWrapper/innerDemo.d.ts +4 -1
  42. package/es/demoWrapper/types.d.ts +4 -1
  43. package/es/dialog/index.d.ts +4 -1
  44. package/es/dnd/index.d.ts +4 -1
  45. package/es/dnd/item.d.ts +4 -1
  46. package/es/dnd/item.js +1 -1
  47. package/es/eventSelector/index.d.ts +4 -1
  48. package/es/eventSelector/listPanel.d.ts +5 -2
  49. package/es/eventSelector/option.d.ts +4 -1
  50. package/es/formulaTarget/components/formulaItem/index.d.ts +4 -1
  51. package/es/formulaTarget/components/panel/item.d.ts +4 -1
  52. package/es/formulaTarget/components/symbol/index.d.ts +4 -1
  53. package/es/formulaTarget/index.d.ts +4 -1
  54. package/es/icon/iconFont.d.ts +4 -1
  55. package/es/layout/analysisLayout/index.d.ts +4 -1
  56. package/es/layout/columnLayout/index.d.ts +4 -1
  57. package/es/layout/detail/index.d.ts +4 -1
  58. package/es/layout/optionTitle/components/btnMenu/api.d.ts +6 -2
  59. package/es/layout/optionTitle/components/btnMenu/index.d.ts +4 -1
  60. package/es/layout/optionTitle/index.d.ts +4 -1
  61. package/es/layout/optionTitle/typesValue.d.ts +6 -2
  62. package/es/loading/index.d.ts +4 -1
  63. package/es/loginForm/index.d.ts +4 -1
  64. package/es/productCondition/conditionTypeList.d.ts +4 -1
  65. package/es/productCondition/conditionWrap.d.ts +4 -1
  66. package/es/productCondition/conditions/cdpCshCondition.d.ts +4 -1
  67. package/es/productCondition/conditions/eventCondition.d.ts +4 -1
  68. package/es/productCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  69. package/es/productCondition/conditions/order/runTimesCondition.d.ts +4 -1
  70. package/es/productCondition/conditions/periodCondition.d.ts +4 -1
  71. package/es/productCondition/conditions/propCondition.d.ts +4 -1
  72. package/es/productCondition/conditions/runTimesCondition.d.ts +4 -1
  73. package/es/productCondition/conditions/textDesc.d.ts +4 -1
  74. package/es/productCondition/conditions/timeDimension.d.ts +4 -1
  75. package/es/productCondition/index.d.ts +4 -1
  76. package/es/productCondition/orConditions.d.ts +4 -1
  77. package/es/productCondition/relationLabel.d.ts +4 -1
  78. package/es/quickDatePicker/index.d.ts +4 -1
  79. package/es/searchInput/index.d.ts +4 -1
  80. package/es/select/index.d.ts +4 -1
  81. package/es/select/option.d.ts +5 -2
  82. package/es/table/index.d.ts +4 -1
  83. package/es/targetConditionGroup/components/targetDimension.d.ts +4 -1
  84. package/es/targetConditionGroup/index.d.ts +4 -1
  85. package/es/targetSelector/editBox.d.ts +4 -1
  86. package/es/targetSelector/index.d.ts +4 -1
  87. package/es/targetSelector/optionIcon.d.ts +4 -1
  88. package/es/targetSelector/types.d.ts +9 -5
  89. package/es/userCondition/conditionTypeList.d.ts +4 -1
  90. package/es/userCondition/conditionWrap.d.ts +4 -1
  91. package/es/userCondition/conditions/business/operatorCondition.d.ts +4 -1
  92. package/es/userCondition/conditions/business/paramsCondition.d.ts +4 -1
  93. package/es/userCondition/conditions/businessCondition.d.ts +4 -1
  94. package/es/userCondition/conditions/cdpCondition.d.ts +4 -1
  95. package/es/userCondition/conditions/cdpCshCondition.d.ts +4 -1
  96. package/es/userCondition/conditions/dataAttribute.d.ts +4 -1
  97. package/es/userCondition/conditions/eventCondition.d.ts +4 -1
  98. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  99. package/es/userCondition/conditions/order/runTimesCondition.d.ts +4 -1
  100. package/es/userCondition/conditions/periodCondition.d.ts +4 -1
  101. package/es/userCondition/conditions/propCondition.d.ts +4 -1
  102. package/es/userCondition/conditions/runTimesCondition.d.ts +4 -1
  103. package/es/userCondition/conditions/tagsCondition.d.ts +4 -1
  104. package/es/userCondition/conditions/textDesc.d.ts +4 -1
  105. package/es/userCondition/conditions/timeDimension.d.ts +4 -1
  106. package/es/userCondition/index.d.ts +4 -1
  107. package/es/userCondition/orConditions.d.ts +4 -1
  108. package/es/userCondition/relationLabel.d.ts +4 -1
  109. package/es/userGroup/index.d.ts +4 -1
  110. package/es/userGroup/overlay.d.ts +4 -1
  111. package/es/userGroupHeader/index.d.ts +4 -1
  112. package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
  113. package/es/userTagsSelector/components/search/index.d.ts +4 -1
  114. package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
  115. package/es/userTagsSelector/groups/index.d.ts +4 -1
  116. package/es/userTagsSelector/index.d.ts +4 -1
  117. package/es/userTagsSelector/multipleCheckPanel/index.d.ts +4 -1
  118. package/package.json +2 -2
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FormulaItemProps } from './types';
3
- declare const FormulaItem: React.FC<FormulaItemProps>;
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const FormulaItem: FCWithDefaultProps<FormulaItemProps>;
4
7
  export default FormulaItem;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  import { PanelItemProps } from './types';
4
- declare const PanelItem: React.FC<PanelItemProps>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const PanelItem: FCWithDefaultProps<PanelItemProps>;
5
8
  export default PanelItem;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- declare const FormulaSymbol: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const FormulaSymbol: FCWithDefaultProps<{
4
7
  value?: string;
5
8
  onChange?: (symbol: string) => void;
6
9
  }>;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import './styles/index.less';
3
3
  import { BizFormulaTargetTypes } from './types';
4
- declare const BizFormulaTarget: React.FC<BizFormulaTargetTypes.Props>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizFormulaTarget: FCWithDefaultProps<BizFormulaTargetTypes.Props>;
5
8
  export default BizFormulaTarget;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import '../styles/addPanel.less';
3
3
  import AddToPanel from '../types';
4
- declare const AddPanel: React.FC<{
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const AddPanel: FCWithDefaultProps<{
5
8
  onChange?: (panel: AddToPanel.PanelOption) => void;
6
9
  onBack?: () => void;
7
10
  }>;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
- declare const NumberChart: React.FC<{
2
+ type FCWithDefaultProps<P> = React.FC<P> & {
3
+ defaultProps?: Partial<P>;
4
+ };
5
+ declare const NumberChart: FCWithDefaultProps<{
3
6
  options?: any[];
4
7
  onChange?: (value: any) => void;
5
8
  }>;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
- declare const RadioGroup: React.FC<{
2
+ type FCWithDefaultProps<P> = React.FC<P> & {
3
+ defaultProps?: Partial<P>;
4
+ };
5
+ declare const RadioGroup: FCWithDefaultProps<{
3
6
  value?: string;
4
7
  options?: any[];
5
8
  onChange?: (value: any) => void;
@@ -2,10 +2,11 @@ import { Radio, Space } from 'antd';
2
2
  import React from 'react';
3
3
  var RadioGroup = function RadioGroup(props) {
4
4
  var options = props.options,
5
- onChange = props.onChange;
5
+ onChange = props.onChange,
6
+ value = props.value;
6
7
  return /*#__PURE__*/React.createElement(Radio.Group, {
7
8
  onChange: onChange,
8
- defaultValue: props.value,
9
+ defaultValue: value,
9
10
  className: "biz-addtopanel-show"
10
11
  }, /*#__PURE__*/React.createElement(Space, {
11
12
  direction: "vertical"
@@ -16,13 +17,4 @@ var RadioGroup = function RadioGroup(props) {
16
17
  }, item.label);
17
18
  })));
18
19
  };
19
- RadioGroup.defaultProps = {
20
- options: [{
21
- label: '动态显示数据最多的10个分组',
22
- value: 'dynamic'
23
- }, {
24
- label: '固定显示当前选择的分组',
25
- value: 'fix'
26
- }]
27
- };
28
20
  export default RadioGroup;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import AddToPanel from '../types';
3
3
  import '../styles/style.less';
4
- declare const StyleList: React.FC<AddToPanel.StyleProps>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const StyleList: FCWithDefaultProps<AddToPanel.StyleProps>;
5
8
  export default StyleList;
@@ -71,7 +71,4 @@ var StyleList = function StyleList(props) {
71
71
  }), /*#__PURE__*/React.createElement("span", null, item.label)));
72
72
  }));
73
73
  };
74
- StyleList.defaultProps = {
75
- options: []
76
- };
77
74
  export default StyleList;
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import AddToPanel from './types';
3
3
  import './styles/index.less';
4
4
  export declare const classPrefix = "biz-addtopanel";
5
- declare const BizAddToPanel: React.FC<AddToPanel.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizAddToPanel: FCWithDefaultProps<AddToPanel.Props>;
6
9
  export default BizAddToPanel;
@@ -26,7 +26,7 @@ import BizGlobalDataContext from '../context';
26
26
  import _ from 'lodash';
27
27
  export var classPrefix = 'biz-addtopanel';
28
28
  var BizAddToPanel = function BizAddToPanel(props) {
29
- var refForm = useRef();
29
+ var refForm = useRef(null);
30
30
  var _useState = useState(false),
31
31
  _useState2 = _slicedToArray(_useState, 2),
32
32
  addMode = _useState2[0],
@@ -285,7 +285,4 @@ var BizAddToPanel = function BizAddToPanel(props) {
285
285
  return showBox(type);
286
286
  })));
287
287
  };
288
- BizAddToPanel.defaultProps = {
289
- showList: []
290
- };
291
288
  export default BizAddToPanel;
@@ -3,7 +3,10 @@ interface Val {
3
3
  groupName: string;
4
4
  groupId: number;
5
5
  }
6
- declare const AddGroup: React.FC<{
6
+ type FCWithDefaultProps<P> = React.FC<P> & {
7
+ defaultProps?: Partial<P>;
8
+ };
9
+ declare const AddGroup: FCWithDefaultProps<{
7
10
  value?: Val;
8
11
  onChange?: (val: Val) => void;
9
12
  onBack: () => void;
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import AddToScene from './types';
3
3
  import './styles/index.less';
4
4
  export declare const classPrefix = "biz-addtoscene";
5
- declare const BizAddToScene: React.FC<AddToScene.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizAddToScene: FCWithDefaultProps<AddToScene.Props>;
6
9
  export default BizAddToScene;
@@ -32,7 +32,7 @@ var BizAddToScene = function BizAddToScene(props) {
32
32
  var _useContext = useContext(BizGlobalDataContext),
33
33
  currentApp = _useContext.currentApp,
34
34
  isDemo = _useContext.isDemo;
35
- var refForm = useRef();
35
+ var refForm = useRef(null);
36
36
  function toAddGroup() {
37
37
  var _refForm$current;
38
38
  (_refForm$current = refForm.current) === null || _refForm$current === void 0 ? void 0 : _refForm$current.resetFields(['group']);
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
3
- declare const AssetsDemo: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const AssetsDemo: FCWithDefaultProps<{
4
7
  children: any;
5
8
  }>;
6
9
  export default AssetsDemo;
@@ -63,7 +63,4 @@ var BizAttrConditionGroup = /*#__PURE__*/React.forwardRef(function (props, ref)
63
63
  }));
64
64
  }))));
65
65
  });
66
- BizAttrConditionGroup.defaultProps = {
67
- showHandle: true
68
- };
69
66
  export default BizAttrConditionGroup;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { AttrConditionTypes } from '../attrConditions/types';
3
3
  import './styles/index.less';
4
- declare const BizAttrCondition: React.FC<AttrConditionTypes.ItemProp>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizAttrCondition: FCWithDefaultProps<AttrConditionTypes.ItemProp>;
5
8
  export default BizAttrCondition;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { AttributeSelect } from '../../attributeSelector/types';
3
3
  import { BizSelectTypes } from '../../select/types';
4
- declare const BizOperateList: React.FC<{
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizOperateList: FCWithDefaultProps<{
5
8
  attr?: AttributeSelect.Value;
6
9
  defaultValue?: string;
7
10
  onChange?: (value: string) => void;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { AttributeSelect } from '../../attributeSelector/types';
3
3
  import { BizSelectTypes } from '../../select/types';
4
- declare const StringList: React.FC<{
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const StringList: FCWithDefaultProps<{
5
8
  attr: AttributeSelect.Value;
6
9
  operate: string;
7
10
  value?: string[];
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { AttributeSelect } from '../../attributeSelector/types';
3
3
  import { BizSelectTypes } from '../../select/types';
4
- declare const ValuesList: React.FC<{
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const ValuesList: FCWithDefaultProps<{
5
8
  attr?: AttributeSelect.Value;
6
9
  operate?: string;
7
10
  defaultValue?: string[];
@@ -3,6 +3,9 @@ import { AttributeSelect } from '../attributeSelector/types';
3
3
  import './styles/index.less';
4
4
  import { AttrConditionTypes, OperateTypes } from './types';
5
5
  export declare const classPrefix = "biz-condition-item";
6
+ type FCWithDefaultProps<P> = React.FC<P> & {
7
+ defaultProps?: Partial<P>;
8
+ };
6
9
  export declare function getCondition(attr: AttributeSelect.Value, operate: OperateTypes, values: string[]): AttrConditionTypes.ItemValue | undefined;
7
- declare const BizConditionItem: React.FC<AttrConditionTypes.ItemProp>;
10
+ declare const BizConditionItem: FCWithDefaultProps<AttrConditionTypes.ItemProp>;
8
11
  export default BizConditionItem;
@@ -41,8 +41,8 @@ var BizConditionItem = function BizConditionItem(props) {
41
41
  enableUserProp = props.enableUserProp,
42
42
  enableEnvProp = props.enableEnvProp,
43
43
  disableItemList = props.disableItemList,
44
- border = props.border,
45
- theme = props.theme;
44
+ theme = props.theme,
45
+ border = props.border;
46
46
  var _useAttrCondition = useAttrCondition(props),
47
47
  loading = _useAttrCondition.loading,
48
48
  attr = _useAttrCondition.attr,
@@ -90,7 +90,4 @@ var BizConditionItem = function BizConditionItem(props) {
90
90
  theme: theme
91
91
  }))));
92
92
  };
93
- BizConditionItem.defaultProps = {
94
- border: true
95
- };
96
93
  export default BizConditionItem;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { AttributeSelect } from './types';
3
3
  import './styles/index.less';
4
- declare const BizAttributeSelector: React.FC<AttributeSelect.Props>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizAttributeSelector: FCWithDefaultProps<AttributeSelect.Props>;
5
8
  export default BizAttributeSelector;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { AttributeSelect } from './types';
3
- declare const AttrListPanel: React.FC<AttributeSelect.Props>;
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const AttrListPanel: FCWithDefaultProps<AttributeSelect.Props>;
4
7
  export default AttrListPanel;
@@ -1,6 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { AttributeSelect } from './types';
3
- declare const Option: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const Option: FCWithDefaultProps<{
4
7
  option?: AttributeSelect.Value;
5
8
  group?: AttributeSelect.Option;
6
9
  disabled?: boolean;
@@ -5,5 +5,8 @@ interface Props {
5
5
  height?: number;
6
6
  className?: string;
7
7
  }
8
- declare const ColorIcon: React.FC<Props>;
8
+ type FCWithDefaultProps<P> = React.FC<P> & {
9
+ defaultProps?: Partial<P>;
10
+ };
11
+ declare const ColorIcon: FCWithDefaultProps<Props>;
9
12
  export default ColorIcon;
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { GlobalContextProps, Menu, UserInfo, AppInfoProps } from './index';
3
- export declare const GlobalContextProps_: React.FC<GlobalContextProps>;
4
- export declare const Menu_: React.FC<Menu>;
5
- export declare const UserInfo_: React.FC<UserInfo>;
6
- export declare const AppInfoProps_: React.FC<AppInfoProps>;
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ export declare const GlobalContextProps_: FCWithDefaultProps<GlobalContextProps>;
7
+ export declare const Menu_: FCWithDefaultProps<Menu>;
8
+ export declare const UserInfo_: FCWithDefaultProps<UserInfo>;
9
+ export declare const AppInfoProps_: FCWithDefaultProps<AppInfoProps>;
10
+ export {};
@@ -16,7 +16,10 @@ interface Value {
16
16
  day?: number[];
17
17
  time?: string;
18
18
  }
19
- declare const BizCycleTime: React.FC<{
19
+ type FCWithDefaultProps<P> = React.FC<P> & {
20
+ defaultProps?: Partial<P>;
21
+ };
22
+ declare const BizCycleTime: FCWithDefaultProps<{
20
23
  value?: Value;
21
24
  multiple?: boolean;
22
25
  placeholder?: string;
@@ -2,7 +2,10 @@ import React from 'react';
2
2
  import './styles/month.less';
3
3
  import { BaseOption } from '../utils/type';
4
4
  import { SizeType } from 'antd/es/config-provider/SizeContext';
5
- declare const MonthDay: React.FC<{
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const MonthDay: FCWithDefaultProps<{
6
9
  size?: SizeType;
7
10
  className?: string;
8
11
  defaultValue?: BaseOption<number>[];
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import './styles/index.less';
3
3
  import { UserGroupTypes } from './types';
4
4
  export declare const classPrefix = "biz-dataSet-group";
5
- declare const DataSetGroup: React.FC<UserGroupTypes.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const DataSetGroup: FCWithDefaultProps<UserGroupTypes.Props>;
6
9
  export default DataSetGroup;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { UserGroupTypes } from './types';
3
- declare const Overlay: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const Overlay: FCWithDefaultProps<{
4
7
  dataset: UserGroupTypes.Group[];
5
8
  onClose?: () => void;
6
9
  onClickCreate?: () => void;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
- declare const BizDate: React.FC<{
2
+ type FCWithDefaultProps<P> = React.FC<P> & {
3
+ defaultProps?: Partial<P>;
4
+ };
5
+ declare const BizDate: FCWithDefaultProps<{
3
6
  selectRange?: number;
4
7
  }>;
5
8
  export default BizDate;
@@ -21,7 +21,7 @@ var BizDate = function BizDate(_ref) {
21
21
  function disabledDate(current) {
22
22
  var step = includeToday ? 0 : 1;
23
23
  var max = moment().subtract(step, 'days');
24
- var _timeRangeOpen = 12;
24
+ var _timeRangeOpen = selectRange || 12;
25
25
  if (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) {
26
26
  _timeRangeOpen = typeof (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) === 'boolean' ? (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) ? 200 : 12 : envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen;
27
27
  }
@@ -35,6 +35,7 @@ export default (function () {
35
35
  defaultValue: {
36
36
  unit: 'day'
37
37
  },
38
+ selectRange: 36,
38
39
  key: "".concat(includeToday, "--1"),
39
40
  includeToday: includeToday
40
41
  }), /*#__PURE__*/React.createElement(BizDatePicker, {
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import { DatePickerTypes } from './types';
3
3
  import './styles/index.less';
4
4
  export declare const classPrefix = "biz-date-picker-wrap";
5
- declare const BizDatePicker: React.FC<DatePickerTypes.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizDatePicker: FCWithDefaultProps<DatePickerTypes.Props>;
6
9
  export default BizDatePicker;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const PickerShortcut: React.FC;
2
+ type FCWithDefaultProps<P> = React.FC<P> & {
3
+ defaultProps?: Partial<P>;
4
+ };
5
+ declare const PickerShortcut: FCWithDefaultProps<{}>;
3
6
  export default PickerShortcut;
@@ -1,6 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { AppInfoProps, GlobalContextProps } from '../context';
3
- declare const DemoContent: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const DemoContent: FCWithDefaultProps<{
4
7
  children?: ReactNode;
5
8
  needMeta?: boolean;
6
9
  currentApp?: AppInfoProps;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { AppInfoProps } from '../context';
3
- declare const DemoHeader: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const DemoHeader: FCWithDefaultProps<{
4
7
  defaultApp?: number;
5
8
  onChangeApp?: (app: AppInfoProps) => void;
6
9
  onLoading?: (loading: boolean) => void;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import DemoWrapperTypes from './types';
3
3
  import './index.less';
4
- declare const DemoWrapper: React.FC<DemoWrapperTypes.Props>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const DemoWrapper: FCWithDefaultProps<DemoWrapperTypes.Props>;
5
8
  export default DemoWrapper;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { GlobalContextProps } from '../context';
3
- declare const InnerDemo: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const InnerDemo: FCWithDefaultProps<{
4
7
  contextProps?: GlobalContextProps;
5
8
  children?: React.ReactNode;
6
9
  }>;
@@ -9,5 +9,8 @@ declare namespace DemoWrapperTypes {
9
9
  contextProps?: GlobalContextProps;
10
10
  }
11
11
  }
12
- export declare const Props: React.FC<DemoWrapperTypes.Props>;
12
+ type FCWithDefaultProps<P> = React.FC<P> & {
13
+ defaultProps?: Partial<P>;
14
+ };
15
+ export declare const Props: FCWithDefaultProps<DemoWrapperTypes.Props>;
13
16
  export default DemoWrapperTypes;
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import { DialogTypes } from './types';
3
3
  import './styles/index.less';
4
4
  export declare const classPrefix = "biz-dialog";
5
- declare const BizDialog: React.FC<DialogTypes.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizDialog: FCWithDefaultProps<DialogTypes.Props>;
6
9
  export default BizDialog;
package/es/dnd/index.d.ts CHANGED
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import { DndTypes } from './types';
3
3
  import './styles/index.less';
4
4
  export declare const classPrefix = "biz-dnd";
5
- declare const BizDnd: React.FC<DndTypes.ContainerProps>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizDnd: FCWithDefaultProps<DndTypes.ContainerProps>;
6
9
  export default BizDnd;
package/es/dnd/item.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DndTypes } from './types';
3
- declare const BizDndItem: React.FC<DndTypes.ItemProps>;
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const BizDndItem: FCWithDefaultProps<DndTypes.ItemProps>;
4
7
  export default BizDndItem;
package/es/dnd/item.js CHANGED
@@ -25,7 +25,7 @@ var BizDndItem = function BizDndItem(props) {
25
25
  _useState2 = _slicedToArray(_useState, 2),
26
26
  isDragging = _useState2[0],
27
27
  setIsDragging = _useState2[1];
28
- var ref = useRef();
28
+ var ref = useRef(null);
29
29
  function onMousedown(e) {
30
30
  var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
31
31
  top = _e$currentTarget$getB.top,
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import './styles/index.less';
3
3
  import { EventSelectTypes } from './types';
4
4
  export declare const classPrefix = "biz-event-select";
5
- declare const BizEventSelector: React.FC<EventSelectTypes.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizEventSelector: FCWithDefaultProps<EventSelectTypes.Props>;
6
9
  export default BizEventSelector;
@@ -1,8 +1,11 @@
1
1
  import React from 'react';
2
2
  import { AnalysisEvent } from '../attributeSelector/types';
3
3
  import { EventSelectTypes } from './types';
4
- declare const EventListPanel: React.FC<EventSelectTypes.DropdownProps>;
5
- export declare const InfiniteScrollList: React.FC<{
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const EventListPanel: FCWithDefaultProps<EventSelectTypes.DropdownProps>;
8
+ export declare const InfiniteScrollList: FCWithDefaultProps<{
6
9
  scrollableTarget: string;
7
10
  searchEventList: AnalysisEvent[];
8
11
  searchValue: string;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { AnalysisEvent, EventGroup } from '../attributeSelector/types';
3
- declare const EventListOption: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const EventListOption: FCWithDefaultProps<{
4
7
  showCount?: boolean;
5
8
  count?: number;
6
9
  label?: string;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FormulaItemProps } from './types';
3
- declare const FormulaItem: React.FC<FormulaItemProps>;
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const FormulaItem: FCWithDefaultProps<FormulaItemProps>;
4
7
  export default FormulaItem;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
3
  import { PanelItemProps } from './types';
4
- declare const PanelItem: React.FC<PanelItemProps>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const PanelItem: FCWithDefaultProps<PanelItemProps>;
5
8
  export default PanelItem;
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- declare const FormulaSymbol: React.FC<{
3
+ type FCWithDefaultProps<P> = React.FC<P> & {
4
+ defaultProps?: Partial<P>;
5
+ };
6
+ declare const FormulaSymbol: FCWithDefaultProps<{
4
7
  value?: string;
5
8
  onChange?: (symbol: string) => void;
6
9
  }>;