@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.
- package/es/components/tableList/index.js +5 -2
- package/es/components/tableList/styles/index.less +9 -1
- package/es/images/empty.png +0 -0
- package/es/modules/searchPanel/components/attributableEvents.js +3 -2
- package/es/modules/searchPanel/components/targetEvent.js +1 -0
- package/es/modules/searchPanel/index.js +3 -2
- package/package.json +2 -2
|
@@ -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("
|
|
14
|
+
}, !tableDataList.dataSource && !searching && /*#__PURE__*/React.createElement("div", {
|
|
14
15
|
className: "".concat(classPrefix, "-empty-tips")
|
|
15
|
-
},
|
|
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",
|
|
Binary file
|
|
@@ -130,8 +130,8 @@ var AttributableEvents = function AttributableEvents(props) {
|
|
|
130
130
|
message.error('请先选择待归因事件');
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
if (count >=
|
|
134
|
-
message.error('最多可添加
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
53
|
+
"gitHead": "570f07d37e23c8c3152253e91955edd97f8a7cb3"
|
|
54
54
|
}
|