@zgfe/modules-settings 1.2.20-role.6 → 1.2.20-role.7

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.
@@ -6,8 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useState } from 'react';
8
8
  import { Radio } from 'antd';
9
- import { BizDialog } from '@zgfe/business-lib';
10
- // import { BizDialog, DemoWrapper, BizUserCondition } from '@zgfe/business-lib';
9
+ import { BizDialog, DemoWrapper, BizUserCondition } from '@zgfe/business-lib';
11
10
  import './index.less';
12
11
  var SetDataRangeDialog = function SetDataRangeDialog(props) {
13
12
  // authInfoParam: {
@@ -21,11 +20,14 @@ var SetDataRangeDialog = function SetDataRangeDialog(props) {
21
20
  _useState2 = _slicedToArray(_useState, 2),
22
21
  isRoleAuthStatus = _useState2[0],
23
22
  setIsRoleAuthStatus = _useState2[1];
24
- // const [condition, setCondition] = useState<any[]>([]);
25
- // function onChangeCondition(condition: any) {
26
- // console.log('condition', condition);
27
- // setCondition(condition);
28
- // }
23
+ var _useState3 = useState([]),
24
+ _useState4 = _slicedToArray(_useState3, 2),
25
+ condition = _useState4[0],
26
+ setCondition = _useState4[1];
27
+ function onChangeCondition(condition) {
28
+ console.log('condition', condition);
29
+ setCondition(condition);
30
+ }
29
31
  return /*#__PURE__*/React.createElement(BizDialog, {
30
32
  className: "set-data-dialog",
31
33
  title: dataRangeDialogTitle,
@@ -54,6 +56,20 @@ var SetDataRangeDialog = function SetDataRangeDialog(props) {
54
56
  className: "config-name"
55
57
  }, "\u5B9A\u4E49"), /*#__PURE__*/React.createElement("div", {
56
58
  className: "config-value"
57
- })) : null);
59
+ }), /*#__PURE__*/React.createElement(DemoWrapper, {
60
+ defaultApp: currentAppId
61
+ }, /*#__PURE__*/React.createElement(BizUserCondition, {
62
+ openCdpCondition: true,
63
+ openBusinessDataCondition: true,
64
+ openOrderDataCondition: true,
65
+ openTagCondition: true,
66
+ userTagsData: [],
67
+ defaultValue: condition,
68
+ onChange: onChangeCondition,
69
+ orConditionNum: 3,
70
+ andConditionNum: 8,
71
+ eventAttrNum: 3,
72
+ isRealTime: true
73
+ }))) : null);
58
74
  };
59
75
  export default SetDataRangeDialog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-settings",
3
- "version": "1.2.20-role.6",
3
+ "version": "1.2.20-role.7",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -51,7 +51,7 @@
51
51
  "umi-request": "^1.4.0",
52
52
  "yorkie": "^2.0.0"
53
53
  },
54
- "gitHead": "01556d45d5b25be88673b0dd4c0c277893bcbec8",
54
+ "gitHead": "992339d3299803dbe67044d60a7192cce75aa469",
55
55
  "gitHooks": {
56
56
  "pre-commit": "lint-staged"
57
57
  }