@zgfe/modules-attribution 1.0.1-alpha.24 → 1.0.1-alpha.25

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.
@@ -2,6 +2,7 @@ import React, { useContext } from 'react';
2
2
  import { Table } from 'antd';
3
3
  import './styles/index.less';
4
4
  import { AttributableContext } from '../../types';
5
+ import empty from '../../images/empty.png';
5
6
  var TableList = function TableList(props) {
6
7
  var classPrefix = 'table-list';
7
8
  var tableDataList = props.tableDataList,
@@ -10,9 +11,11 @@ var TableList = function TableList(props) {
10
11
  searching = _useContext.searching;
11
12
  return /*#__PURE__*/React.createElement("div", {
12
13
  className: classPrefix
13
- }, !tableDataList.dataSource && !searching && /*#__PURE__*/React.createElement("p", {
14
+ }, !tableDataList.dataSource && !searching && /*#__PURE__*/React.createElement("div", {
14
15
  className: "".concat(classPrefix, "-empty-tips")
15
- }, "\u8BF7\u9009\u62E9\u6761\u4EF6\u8FDB\u884C\u67E5\u8BE2"), (tableDataList.dataSource || searching) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Table, {
16
+ }, /*#__PURE__*/React.createElement("img", {
17
+ src: empty
18
+ }), /*#__PURE__*/React.createElement("p", null, "\u8BF7\u9009\u62E9\u6761\u4EF6\u8FDB\u884C\u67E5\u8BE2")), (tableDataList.dataSource || searching) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Table, {
16
19
  dataSource: tableDataList.dataSource,
17
20
  columns: tableDataList.columns,
18
21
  rowKey: "key",
@@ -1,7 +1,15 @@
1
1
  .table-list {
2
2
  margin-top: 25px;
3
3
  &-empty-tips {
4
- margin-top: 150px;
4
+ margin-top: 112px;
5
5
  text-align: center;
6
+ img{
7
+ width: 88px;
8
+ height: 88px;
9
+ }
10
+ p{
11
+ color: #354354;
12
+ line-height: 20px;
13
+ }
6
14
  }
7
15
  }
Binary file
@@ -130,8 +130,8 @@ var AttributableEvents = function AttributableEvents(props) {
130
130
  message.error('请先选择待归因事件');
131
131
  return;
132
132
  }
133
- if (count >= 10) {
134
- message.error('最多可添加10条属性筛选');
133
+ if (count >= 5) {
134
+ message.error('最多可添加5条属性筛选');
135
135
  return;
136
136
  }
137
137
  setIsAdd(true);
@@ -241,6 +241,7 @@ var AttributableEvents = function AttributableEvents(props) {
241
241
  })))), /*#__PURE__*/React.createElement("div", null, (filters || isAdd) && /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
242
242
  ref: conditionRef,
243
243
  value: filters,
244
+ onlyAnd: true,
244
245
  enableEventProp: true,
245
246
  enableDelete: true,
246
247
  eventIdList: [eventId],
@@ -146,6 +146,7 @@ var TargetEvent = function TargetEvent(props) {
146
146
  }))), /*#__PURE__*/React.createElement("div", null, (filters || isAdd) && /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
147
147
  ref: conditionRef,
148
148
  value: filters,
149
+ onlyAnd: true,
149
150
  enableEventProp: true,
150
151
  enableDelete: true,
151
152
  eventIdList: [eventId],
@@ -302,9 +302,10 @@ var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
302
302
  width: 80
303
303
  },
304
304
  value: windowCnt,
305
+ min: 1,
306
+ max: 365,
305
307
  onChange: function onChange(e) {
306
- if (e !== null && e <= 0) return;
307
- setWindowCnt(e);
308
+ setWindowCnt(Number(e));
308
309
  }
309
310
  }), /*#__PURE__*/React.createElement(Select, {
310
311
  value: windowTypeUnit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-attribution",
3
- "version": "1.0.1-alpha.24",
3
+ "version": "1.0.1-alpha.25",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -50,5 +50,5 @@
50
50
  "react": "^16.12.0 || ^17.0.0",
51
51
  "yorkie": "^2.0.0"
52
52
  },
53
- "gitHead": "2d3ab096fd12d162ccc7b0b9128ed188b2086cfd"
53
+ "gitHead": "570f07d37e23c8c3152253e91955edd97f8a7cb3"
54
54
  }