@zgfe/business-lib 1.1.33-visual.0 → 1.1.33

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.
@@ -11,17 +11,7 @@ export default (function () {
11
11
  var _Form$useForm = Form.useForm(),
12
12
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
13
13
  form = _Form$useForm2[0];
14
- var _useState = useState({
15
- condition: {
16
- attrId: 30183426,
17
- propCategory: 'eventProp',
18
- type: 1,
19
- operator: 'equal',
20
- values: [],
21
- dimensionSub: 'event_attr',
22
- attrName: '公众号名称'
23
- }
24
- }),
14
+ var _useState = useState({}),
25
15
  _useState2 = _slicedToArray(_useState, 2),
26
16
  formData = _useState2[0],
27
17
  setFormData = _useState2[1];
@@ -50,6 +50,7 @@ var BizConditionItem = function BizConditionItem(props) {
50
50
  propCategory: data.propCategory,
51
51
  type: data.type,
52
52
  key: data.attrId,
53
+ label: data.label,
53
54
  dimensionSub: data.dimensionSub || 'event_attr'
54
55
  };
55
56
  }
@@ -85,7 +86,7 @@ var BizConditionItem = function BizConditionItem(props) {
85
86
  operator: operate,
86
87
  values: values || [],
87
88
  dimensionSub: attr.dimensionSub,
88
- label: attr.label
89
+ label: attr.alias || attr.label
89
90
  };
90
91
  if (attr.propCategory === PropCategory.EventProp) {
91
92
  responseData.attrName = attr.label;
@@ -8,7 +8,6 @@ declare class SocketClient {
8
8
  private showLog;
9
9
  private pingTimer?;
10
10
  private appkey?;
11
- private token?;
12
11
  constructor(url: string, appkey: string, params?: Record<string, any>);
13
12
  emit(event: string, payload?: SocketClientTypes.Message['data']['payload']): void;
14
13
  on<T>(type: SocketClientTypes.EventType | string, handle: (data?: T) => void): void;
@@ -29,7 +29,6 @@ var SocketClient = /*#__PURE__*/function () {
29
29
  this.showLog = false;
30
30
  this.pingTimer = void 0;
31
31
  this.appkey = void 0;
32
- this.token = void 0;
33
32
  this.appkey = appkey;
34
33
  this.url = url;
35
34
  this.params = params;
@@ -123,7 +122,7 @@ var SocketClient = /*#__PURE__*/function () {
123
122
  _this = this;
124
123
  this.log('info', 'socket连接成功', event);
125
124
  (_this$listeners$conne = this.listeners['connected']) === null || _this$listeners$conne === void 0 ? void 0 : _this$listeners$conne.forEach(function (handle) {
126
- handle.call(undefined, _this.token);
125
+ handle.call(undefined);
127
126
  });
128
127
  this.log('info', 'clear catch', this.catch);
129
128
  this.catch.forEach(function (_ref) {
@@ -236,7 +235,6 @@ var SocketClient = /*#__PURE__*/function () {
236
235
  var _this4 = this;
237
236
  this.getToken().then(function (token) {
238
237
  _this4.params = params || _this4.params;
239
- _this4.token = token;
240
238
  if (_this4.client) _this4.close();
241
239
  var paramUrl = ["socketToken=".concat(token)];
242
240
  if (_this4.params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.33-visual.0",
3
+ "version": "1.1.33",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -59,5 +59,5 @@
59
59
  "react": "^16.12.0 || ^17.0.0",
60
60
  "yorkie": "^2.0.0"
61
61
  },
62
- "gitHead": "002fa6a9d6743b99fc8e3612269d7d028d4ae9f1"
62
+ "gitHead": "f99bb13a83815f2f29c8aaae71d8d93ca74a5742"
63
63
  }