@zgfe/modules-attribution 1.1.6-alpha.1 → 1.1.13-zhongyuan.0
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/option/index.js +26 -19
- package/es/components/option/styles/index.less +9 -4
- package/es/components/option/types.d.ts +1 -0
- package/es/components/searchTime/index.js +12 -8
- package/es/components/searchTime/styles/index.less +0 -1
- package/es/components/title/index.js +27 -25
- package/es/components/title/searchTitle.js +8 -8
- package/es/components/title/styles/index.less +2 -2
- package/es/modules/chart/demo/index.d.ts +2 -1
- package/es/modules/chart/index.js +42 -16
- package/es/modules/chart/types.d.ts +2 -0
- package/es/modules/content/index.js +65 -15
- package/es/modules/content/styles/index.less +32 -0
- package/es/modules/content/types.d.ts +1 -0
- package/es/modules/content/utils.js +7 -3
- package/es/modules/home/demo/create.d.ts +2 -1
- package/es/modules/home/demo/create.js +1 -1
- package/es/modules/home/demo/edit.d.ts +2 -1
- package/es/modules/home/demo/edit.js +90 -89
- package/es/modules/home/demo/index.d.ts +2 -1
- package/es/modules/home/demo/index.js +5 -1
- package/es/modules/home/demo/scene.d.ts +2 -1
- package/es/modules/home/demo/scene.js +1 -0
- package/es/modules/home/index.js +53 -36
- package/es/modules/home/styles/index.less +1 -1
- package/es/modules/searchPanel/components/attributableEvents.js +15 -14
- package/es/modules/searchPanel/components/globalAttribute.js +16 -14
- package/es/modules/searchPanel/components/index.js +19 -9
- package/es/modules/searchPanel/components/targetEvent.js +11 -9
- package/es/modules/searchPanel/index.js +24 -14
- package/es/modules/searchPanel/styles/index.less +8 -8
- package/es/types.d.ts +5 -0
- package/package.json +3 -3
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
function
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
-
function _unsupportedIterableToArray(
|
|
7
|
-
function _arrayLikeToArray(
|
|
8
|
-
function _iterableToArrayLimit(
|
|
9
|
-
function _arrayWithHoles(
|
|
10
|
-
import React, { useEffect, useState, useRef } from 'react';
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
import React, { useEffect, useState, useRef, useContext } from 'react';
|
|
14
|
+
import { BizPlatformSelector, IconFont } from '@zgfe/business-lib';
|
|
11
15
|
import SearchPanel from '../searchPanel';
|
|
12
16
|
import './styles/index.less';
|
|
13
17
|
import { OptionGroup, SearchTime } from '../../components';
|
|
14
18
|
import AttributeChart from '../chart';
|
|
19
|
+
import { AttributableContext } from '../../types';
|
|
20
|
+
import { Button } from 'antd';
|
|
15
21
|
var classPrefix = 'attribution-content';
|
|
16
22
|
var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
17
23
|
var _useState = useState(props.value),
|
|
@@ -30,6 +36,15 @@ var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
30
36
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
31
37
|
params = _useState8[0],
|
|
32
38
|
setParams = _useState8[1];
|
|
39
|
+
var _useState9 = useState((searchData === null || searchData === void 0 ? void 0 : searchData.platform) === undefined ? 0 : searchData.platform),
|
|
40
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
41
|
+
selectPlatform = _useState10[0],
|
|
42
|
+
setselectPlatform = _useState10[1];
|
|
43
|
+
var _useContext = useContext(AttributableContext),
|
|
44
|
+
refreshLoading = _useContext.refreshLoading,
|
|
45
|
+
setRefreshLoading = _useContext.setRefreshLoading,
|
|
46
|
+
buttonDisable = _useContext.buttonDisable,
|
|
47
|
+
searching = _useContext.searching;
|
|
33
48
|
useEffect(function () {
|
|
34
49
|
if (searchData.sourceFilters && searchData.sourceFilters[0].eventId === -100) return;
|
|
35
50
|
if (!isFetchRequest) return;
|
|
@@ -52,6 +67,13 @@ var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
52
67
|
return _objectSpread(_objectSpread({}, value), data);
|
|
53
68
|
});
|
|
54
69
|
};
|
|
70
|
+
var onPlatformChange = function onPlatformChange(platform) {
|
|
71
|
+
setSearchData(function (value) {
|
|
72
|
+
return _objectSpread(_objectSpread({}, value), {}, {
|
|
73
|
+
platform: platform
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
};
|
|
55
77
|
var SearchPanelRef = useRef(null);
|
|
56
78
|
var onGetSearchData = function onGetSearchData() {
|
|
57
79
|
if (SearchPanelRef) {
|
|
@@ -65,11 +87,31 @@ var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
65
87
|
});
|
|
66
88
|
});
|
|
67
89
|
};
|
|
90
|
+
var refreshHandle = function refreshHandle() {
|
|
91
|
+
SearchPanelRef.current.refresh();
|
|
92
|
+
};
|
|
68
93
|
return /*#__PURE__*/React.createElement("div", {
|
|
69
94
|
className: classPrefix
|
|
70
95
|
}, /*#__PURE__*/React.createElement("div", {
|
|
71
96
|
className: "".concat(classPrefix, "-top-content")
|
|
72
97
|
}, /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "".concat(classPrefix, "-top-content-head")
|
|
99
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: "".concat(classPrefix, "-top-content-head-title")
|
|
101
|
+
}, !props.panelId ? '归因' : ''), /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: "".concat(classPrefix, "-top-content-head-right")
|
|
103
|
+
}, searchData && (/*#__PURE__*/React.createElement(OptionGroup, {
|
|
104
|
+
refreshHandle: refreshHandle,
|
|
105
|
+
ref: ref,
|
|
106
|
+
searchData: searchData,
|
|
107
|
+
onGetSearchData: onGetSearchData
|
|
108
|
+
})), /*#__PURE__*/React.createElement(BizPlatformSelector, {
|
|
109
|
+
value: selectPlatform,
|
|
110
|
+
onChange: function onChange(val) {
|
|
111
|
+
setselectPlatform(val.key);
|
|
112
|
+
onPlatformChange(val.key);
|
|
113
|
+
}
|
|
114
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
73
115
|
className: "".concat(classPrefix, "-top-content-box")
|
|
74
116
|
}, /*#__PURE__*/React.createElement(SearchPanel, {
|
|
75
117
|
ref: SearchPanelRef,
|
|
@@ -83,14 +125,22 @@ var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
83
125
|
}, /*#__PURE__*/React.createElement(SearchTime, {
|
|
84
126
|
time: searchData === null || searchData === void 0 ? void 0 : searchData.time,
|
|
85
127
|
onChange: onChangeContent
|
|
86
|
-
}),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
128
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
129
|
+
className: "".concat(classPrefix, "-refresh"),
|
|
130
|
+
disabled: buttonDisable || searching,
|
|
131
|
+
loading: refreshLoading,
|
|
132
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
133
|
+
type: "zhongxinjiazai"
|
|
134
|
+
}),
|
|
135
|
+
onClick: function onClick() {
|
|
136
|
+
return refreshHandle();
|
|
137
|
+
}
|
|
138
|
+
}, "\u5237\u65B0")), /*#__PURE__*/React.createElement(AttributeChart, {
|
|
91
139
|
params: params,
|
|
92
140
|
onChangeLoading: setLoading,
|
|
93
|
-
searchType: 0
|
|
141
|
+
searchType: 0,
|
|
142
|
+
refreshLoading: refreshLoading,
|
|
143
|
+
setRefreshLoading: setRefreshLoading
|
|
94
144
|
})));
|
|
95
145
|
});
|
|
96
146
|
export default AttributionContent;
|
|
@@ -5,3 +5,35 @@
|
|
|
5
5
|
// // margin-bottom: 16px;
|
|
6
6
|
// }
|
|
7
7
|
// }
|
|
8
|
+
.attribution-container-content {
|
|
9
|
+
border-top: none;
|
|
10
|
+
}
|
|
11
|
+
.attribution-content {
|
|
12
|
+
&-top-content {
|
|
13
|
+
padding-top: 0 !important;
|
|
14
|
+
&-head {
|
|
15
|
+
background: #fafafb;
|
|
16
|
+
width: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
padding: 8px 0;
|
|
21
|
+
&-title {
|
|
22
|
+
color: var(--io-N-, #021429);
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-family: 'PingFang SC';
|
|
26
|
+
font-style: normal;
|
|
27
|
+
line-height: 20px; /* 125% */
|
|
28
|
+
letter-spacing: 0.016px;
|
|
29
|
+
}
|
|
30
|
+
&-right {
|
|
31
|
+
display: flex;
|
|
32
|
+
.option-group {
|
|
33
|
+
margin-right: 16px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
function
|
|
2
|
-
function
|
|
3
|
-
function
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
7
|
import { nanoid } from 'nanoid';
|
|
5
8
|
export var handleTableData = function handleTableData(data) {
|
|
6
9
|
var tableData = {};
|
|
@@ -25,5 +28,6 @@ export var handleTableData = function handleTableData(data) {
|
|
|
25
28
|
});
|
|
26
29
|
tableData.dataSource = dataSource;
|
|
27
30
|
tableData.columns = columns;
|
|
31
|
+
tableData.delEvent = data.delEvent;
|
|
28
32
|
return tableData;
|
|
29
33
|
};
|
|
@@ -15,7 +15,7 @@ export default (function () {
|
|
|
15
15
|
};
|
|
16
16
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
17
17
|
needMeta: true,
|
|
18
|
-
defaultApp:
|
|
18
|
+
defaultApp: 461
|
|
19
19
|
}, /*#__PURE__*/React.createElement(AttributionHome, {
|
|
20
20
|
defaultValue: defaultValue,
|
|
21
21
|
afterEditTarget: afterEditTarget
|
|
@@ -4,112 +4,113 @@ import { AttributionHome } from '@zgfe/modules-attribution';
|
|
|
4
4
|
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
5
5
|
var defaultValue = {
|
|
6
6
|
data: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
app_id: 331,
|
|
8
|
+
module: 'attribution',
|
|
9
|
+
targetFilters: [{
|
|
10
|
+
eventId: 4024,
|
|
11
|
+
eventName: '收入',
|
|
12
|
+
filters: {
|
|
13
|
+
relation: 'and',
|
|
14
|
+
conditions: [{
|
|
15
|
+
attrId: 31331,
|
|
16
|
+
propCategory: 'eventProp',
|
|
17
|
+
type: 2,
|
|
18
|
+
operator: 'gt',
|
|
19
|
+
values: ['88'],
|
|
20
|
+
dimensionSub: 'event_attr',
|
|
21
|
+
label: 'price',
|
|
22
|
+
attrName: 'price'
|
|
23
23
|
}, {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
attrId: 31328,
|
|
25
|
+
propCategory: 'eventProp',
|
|
26
|
+
type: 2,
|
|
27
|
+
operator: 'gt',
|
|
28
|
+
values: ['99'],
|
|
29
|
+
dimensionSub: 'event_attr',
|
|
30
|
+
label: 'total',
|
|
31
|
+
attrName: 'total'
|
|
32
32
|
}]
|
|
33
33
|
}
|
|
34
34
|
}],
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
sourceFilters: [{
|
|
36
|
+
eventId: 4023,
|
|
37
|
+
eventName: '查看商品',
|
|
38
|
+
filters: {
|
|
39
|
+
relation: 'and',
|
|
40
|
+
conditions: [{
|
|
41
|
+
attrId: 31321,
|
|
42
|
+
propCategory: 'eventProp',
|
|
43
|
+
type: 2,
|
|
44
|
+
operator: 'gt',
|
|
45
|
+
values: ['77'],
|
|
46
|
+
dimensionSub: 'event_attr',
|
|
47
|
+
label: '商品价格',
|
|
48
|
+
attrName: '商品价格'
|
|
49
49
|
}, {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
attrId: 31332,
|
|
51
|
+
propCategory: 'eventProp',
|
|
52
|
+
type: 1,
|
|
53
|
+
operator: 'equal',
|
|
54
|
+
values: ['移动电话'],
|
|
55
|
+
dimensionSub: 'event_attr',
|
|
56
|
+
label: '商品类型',
|
|
57
|
+
attrName: '商品类型'
|
|
58
58
|
}]
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
attributionSubdivision: {
|
|
61
|
+
relation: 'and',
|
|
62
|
+
conditions: {
|
|
63
|
+
propCategory: 'eventProp',
|
|
64
|
+
type: 1,
|
|
65
|
+
attrId: 31332
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}, {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
69
|
+
eventId: 4026,
|
|
70
|
+
eventName: '加购商品',
|
|
71
|
+
filters: {
|
|
72
|
+
relation: 'and',
|
|
73
|
+
conditions: [{
|
|
74
|
+
attrId: 31334,
|
|
75
|
+
propCategory: 'eventProp',
|
|
76
|
+
type: 2,
|
|
77
|
+
operator: 'gt',
|
|
78
|
+
values: ['66'],
|
|
79
|
+
dimensionSub: 'event_attr',
|
|
80
|
+
label: '商品价格',
|
|
81
|
+
attrName: '商品价格'
|
|
82
82
|
}, {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
attrId: 31336,
|
|
84
|
+
propCategory: 'eventProp',
|
|
85
|
+
type: 1,
|
|
86
|
+
operator: 'equal',
|
|
87
|
+
values: ['移动电话'],
|
|
88
|
+
dimensionSub: 'event_attr',
|
|
89
|
+
label: '商品类型',
|
|
90
|
+
attrName: '商品类型'
|
|
91
91
|
}]
|
|
92
92
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
attributionSubdivision: {
|
|
94
|
+
relation: 'and',
|
|
95
|
+
conditions: {
|
|
96
|
+
propCategory: 'eventProp',
|
|
97
|
+
type: 1,
|
|
98
|
+
attrId: 31329
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}],
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
attributionType: 3,
|
|
103
|
+
platform: 0,
|
|
104
|
+
otherEvent: true,
|
|
105
|
+
windowCnt: 2,
|
|
106
|
+
windowType: 'hour',
|
|
107
|
+
time: {
|
|
108
|
+
unit: 'day',
|
|
109
|
+
relative: [14, 0],
|
|
110
|
+
begin: '2023-05-29',
|
|
111
|
+
end: '2023-06-12'
|
|
111
112
|
},
|
|
112
|
-
|
|
113
|
+
chartType: 'grid'
|
|
113
114
|
}
|
|
114
115
|
};
|
|
115
116
|
export default (function () {
|
|
@@ -10,10 +10,14 @@ export default (function () {
|
|
|
10
10
|
var afterEditTarget = function afterEditTarget(type, data) {
|
|
11
11
|
console.log("".concat(type, "\u56DE\u8C03"), data);
|
|
12
12
|
};
|
|
13
|
+
var platformChange = function platformChange(platform) {
|
|
14
|
+
console.log('platform', platform);
|
|
15
|
+
};
|
|
13
16
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
14
17
|
needMeta: true,
|
|
15
18
|
defaultApp: 328
|
|
16
19
|
}, /*#__PURE__*/React.createElement(AttributionHome, {
|
|
17
|
-
afterEditTarget: afterEditTarget
|
|
20
|
+
afterEditTarget: afterEditTarget,
|
|
21
|
+
platformChange: platformChange
|
|
18
22
|
}));
|
|
19
23
|
});
|