@zgfe/modules-dm 1.0.1
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/README.md +37 -0
- package/es/components/demo.d.ts +8 -0
- package/es/components/demo.js +23 -0
- package/es/constants/api.d.ts +27 -0
- package/es/constants/api.js +58 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +5 -0
- package/es/modules/dataCollection/collectionAttributeList.d.ts +20 -0
- package/es/modules/dataCollection/collectionAttributeList.js +458 -0
- package/es/modules/dataCollection/collectionEventList.d.ts +13 -0
- package/es/modules/dataCollection/collectionEventList.js +317 -0
- package/es/modules/dataCollection/demo/index.d.ts +2 -0
- package/es/modules/dataCollection/demo/index.js +6 -0
- package/es/modules/dataCollection/index.d.ts +3 -0
- package/es/modules/dataCollection/index.js +97 -0
- package/es/modules/dataCollection/styles/index.less +249 -0
- package/es/modules/dataCollection/tablePlus.d.ts +34 -0
- package/es/modules/dataCollection/tablePlus.js +598 -0
- package/es/modules/dataManage/demo/index.d.ts +2 -0
- package/es/modules/dataManage/demo/index.js +6 -0
- package/es/modules/dataManage/index.d.ts +4 -0
- package/es/modules/dataManage/index.js +58 -0
- package/es/modules/dataManage/styles/index.less +26 -0
- package/es/modules/dataPlan/addEventOrUser.d.ts +34 -0
- package/es/modules/dataPlan/addEventOrUser.js +280 -0
- package/es/modules/dataPlan/addPlan.d.ts +10 -0
- package/es/modules/dataPlan/addPlan.js +644 -0
- package/es/modules/dataPlan/demo/index.d.ts +2 -0
- package/es/modules/dataPlan/demo/index.js +6 -0
- package/es/modules/dataPlan/eventList.d.ts +23 -0
- package/es/modules/dataPlan/eventList.js +21 -0
- package/es/modules/dataPlan/index.d.ts +4 -0
- package/es/modules/dataPlan/index.js +233 -0
- package/es/modules/dataPlan/search.d.ts +11 -0
- package/es/modules/dataPlan/search.js +42 -0
- package/es/modules/dataPlan/styles/index.less +269 -0
- package/es/modules/dataPlan/tablePlus.d.ts +22 -0
- package/es/modules/dataPlan/tablePlus.js +106 -0
- package/es/modules/dataPlan/userAttributeList.d.ts +19 -0
- package/es/modules/dataPlan/userAttributeList.js +77 -0
- package/es/types/flow.d.ts +395 -0
- package/es/types/flow.js +77 -0
- package/es/types.d.ts +412 -0
- package/es/types.js +106 -0
- package/es/utils/ajax.d.ts +3 -0
- package/es/utils/ajax.js +7 -0
- package/package.json +60 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
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."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import { IconFont } from '@zgfe/business-lib';
|
|
14
|
+
import { Menu } from 'antd';
|
|
15
|
+
import React, { useState } from 'react';
|
|
16
|
+
import './styles/index.less'; // import EventList from './eventList';
|
|
17
|
+
// import UserAttributeList from './userAttributeList';
|
|
18
|
+
|
|
19
|
+
import PlanList from '../dataPlan';
|
|
20
|
+
import DataCollection from '../dataCollection';
|
|
21
|
+
|
|
22
|
+
var DataManage = function DataManage(props) {
|
|
23
|
+
var classPrefix = 'data-manage';
|
|
24
|
+
|
|
25
|
+
var _useState = useState('1'),
|
|
26
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
|
+
menuTab = _useState2[0],
|
|
28
|
+
setMenuTab = _useState2[1];
|
|
29
|
+
|
|
30
|
+
var onSelect = function onSelect(e) {
|
|
31
|
+
setMenuTab(e.key);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var items = [{
|
|
35
|
+
label: '埋点管理',
|
|
36
|
+
key: '0',
|
|
37
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
38
|
+
type: "maidianguanli"
|
|
39
|
+
})
|
|
40
|
+
}, {
|
|
41
|
+
label: '埋点方案管理',
|
|
42
|
+
key: '1',
|
|
43
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
44
|
+
type: "maidianfanganguanli"
|
|
45
|
+
})
|
|
46
|
+
}];
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: classPrefix
|
|
49
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
+
className: "".concat(classPrefix, "-menu")
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Menu, {
|
|
52
|
+
defaultSelectedKeys: ['1'],
|
|
53
|
+
onSelect: onSelect,
|
|
54
|
+
items: items
|
|
55
|
+
})), menuTab == '0' && /*#__PURE__*/React.createElement(DataCollection, null), menuTab == '1' && /*#__PURE__*/React.createElement(PlanList, null));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default DataManage;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.__dumi-default-layout-content {
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.__dumi-default-menu {
|
|
10
|
+
width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.data-manage {
|
|
14
|
+
display: flex;
|
|
15
|
+
height: 100%;
|
|
16
|
+
background: #f5f5f5;
|
|
17
|
+
&-menu {
|
|
18
|
+
width: 240px;
|
|
19
|
+
margin-right: 24px;
|
|
20
|
+
// height: 100%;
|
|
21
|
+
background: #fff;
|
|
22
|
+
.ant-menu-item {
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
interface DataType {
|
|
4
|
+
key: string;
|
|
5
|
+
eventName: string;
|
|
6
|
+
eventActive: string;
|
|
7
|
+
attributeName: string[];
|
|
8
|
+
attributeActive: string[];
|
|
9
|
+
open: Boolean;
|
|
10
|
+
sheetName?: string;
|
|
11
|
+
attrName?: string;
|
|
12
|
+
dataIndex?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
interface userPropPlanListType {
|
|
16
|
+
key: string;
|
|
17
|
+
callTime?: string;
|
|
18
|
+
identify?: string;
|
|
19
|
+
propName: string;
|
|
20
|
+
value?: string;
|
|
21
|
+
dataStatus?: boolean;
|
|
22
|
+
}
|
|
23
|
+
interface AddDataProps {
|
|
24
|
+
type: 'event' | 'user';
|
|
25
|
+
visible: boolean;
|
|
26
|
+
setVisible: Function;
|
|
27
|
+
eventListData: {
|
|
28
|
+
[x: string]: DataType[];
|
|
29
|
+
}[];
|
|
30
|
+
addEventOrUserFun: Function;
|
|
31
|
+
userAttrData: userPropPlanListType[];
|
|
32
|
+
}
|
|
33
|
+
declare const addEventOrUser: React.FC<AddDataProps>;
|
|
34
|
+
export default addEventOrUser;
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
|
|
9
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
+
|
|
11
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
+
|
|
13
|
+
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."); }
|
|
14
|
+
|
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
+
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
18
|
+
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
20
|
+
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
|
|
23
|
+
import { IconFont } from '@zgfe/business-lib';
|
|
24
|
+
import { Input, Button, Select, Table, Modal, Form } from 'antd';
|
|
25
|
+
var Option = Select.Option;
|
|
26
|
+
import React, { useEffect, useState } from 'react';
|
|
27
|
+
import './styles/index.less';
|
|
28
|
+
import _ from 'lodash';
|
|
29
|
+
|
|
30
|
+
var addEventOrUser = function addEventOrUser(props) {
|
|
31
|
+
var classPrefix = 'add-event'; // console.log('----', props.type, props.eventListData, props.userAttrData);
|
|
32
|
+
|
|
33
|
+
var _Form$useForm = Form.useForm(),
|
|
34
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
35
|
+
form = _Form$useForm2[0]; // 随机数,避免相同key,影响勾选
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
function random(min, max) {
|
|
39
|
+
return Math.floor(Math.random() * (max - min)) + min;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var onFinish = function onFinish(data) {
|
|
43
|
+
form.validateFields().then(function (_res) {
|
|
44
|
+
// console.log('校验通过', data);
|
|
45
|
+
// 数据格式转换
|
|
46
|
+
var arr = [];
|
|
47
|
+
|
|
48
|
+
for (var key in data) {
|
|
49
|
+
if (Object.prototype.toString.call(arr[key.split('-')[1]]) != '[object Object]') {
|
|
50
|
+
arr[key.split('-')[1]] = _defineProperty({}, key.split('-')[0], data[key]);
|
|
51
|
+
} else {
|
|
52
|
+
arr[key.split('-')[1]][key.split('-')[0]] = data[key];
|
|
53
|
+
}
|
|
54
|
+
} // 数据更新
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
if (props.type == 'event') {
|
|
58
|
+
arr.map(function (item) {
|
|
59
|
+
item.key = item.eventName + '&*&' + random(1, 99999);
|
|
60
|
+
item.attributeName = [item.attrName];
|
|
61
|
+
item.attributeActive = ['无数据'];
|
|
62
|
+
item.eventActive = '无数据';
|
|
63
|
+
item.open = true;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
var _eventListData = _.cloneDeep(props.eventListData);
|
|
67
|
+
|
|
68
|
+
_eventListData.unshift({
|
|
69
|
+
手动添加: arr
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
props.addEventOrUserFun(_eventListData);
|
|
73
|
+
handleCancel();
|
|
74
|
+
} else {
|
|
75
|
+
// console.log('数据处理完毕', arr);
|
|
76
|
+
arr.map(function (item) {
|
|
77
|
+
item.key = item.propName + '&*&' + random(1, 99999);
|
|
78
|
+
});
|
|
79
|
+
props.addEventOrUserFun([].concat(arr, _toConsumableArray(props.userAttrData)));
|
|
80
|
+
handleCancel();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}; // 表格行数据
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
var _useState = useState([{
|
|
87
|
+
key: 0
|
|
88
|
+
}]),
|
|
89
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
90
|
+
tableRowData = _useState2[0],
|
|
91
|
+
setTableRowData = _useState2[1];
|
|
92
|
+
|
|
93
|
+
var handleRow = function handleRow(type, data) {
|
|
94
|
+
// console.log(type, data, tableRowData);
|
|
95
|
+
if (type == 'add') {
|
|
96
|
+
var newRows = {
|
|
97
|
+
key: tableRowData[tableRowData.length - 1].key + 1
|
|
98
|
+
};
|
|
99
|
+
setTableRowData([].concat(_toConsumableArray(tableRowData), [newRows]));
|
|
100
|
+
} else {
|
|
101
|
+
var _arr = Object.assign([], tableRowData).filter(function (item) {
|
|
102
|
+
if (item.key != (data === null || data === void 0 ? void 0 : data.key)) return item;
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
setTableRowData(_arr);
|
|
106
|
+
}
|
|
107
|
+
}; // 表格列数据处理
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
var handleColumnsData = function handleColumnsData(params) {
|
|
111
|
+
var rulesData = function rulesData(record) {
|
|
112
|
+
// console.log(record);
|
|
113
|
+
switch (record.dataIndex) {
|
|
114
|
+
case 'eventName':
|
|
115
|
+
return [{
|
|
116
|
+
required: true,
|
|
117
|
+
message: '请填写事件名称'
|
|
118
|
+
}];
|
|
119
|
+
|
|
120
|
+
case 'attrName':
|
|
121
|
+
return [{
|
|
122
|
+
required: true,
|
|
123
|
+
message: '请填写事件属性'
|
|
124
|
+
}];
|
|
125
|
+
|
|
126
|
+
case 'propName':
|
|
127
|
+
return [{
|
|
128
|
+
required: true,
|
|
129
|
+
message: '请填写属性名称'
|
|
130
|
+
}];
|
|
131
|
+
|
|
132
|
+
case 'identify':
|
|
133
|
+
return [{
|
|
134
|
+
required: true,
|
|
135
|
+
message: '请填写唯一标识'
|
|
136
|
+
}];
|
|
137
|
+
|
|
138
|
+
default:
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
var tableColumnsPropsRender = function tableColumnsPropsRender(item) {
|
|
144
|
+
var render = function render(text, record, index) {
|
|
145
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, item.dataIndex == 'set' ? /*#__PURE__*/React.createElement(Button, {
|
|
146
|
+
type: "text",
|
|
147
|
+
className: "".concat(classPrefix, "-table-del"),
|
|
148
|
+
onClick: function onClick() {
|
|
149
|
+
handleRow('del', record);
|
|
150
|
+
}
|
|
151
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
152
|
+
type: "shanchu1"
|
|
153
|
+
})) : /*#__PURE__*/React.createElement(Form.Item, {
|
|
154
|
+
name: "".concat(item.dataIndex, "-").concat(record.key),
|
|
155
|
+
rules: rulesData(item)
|
|
156
|
+
}, /*#__PURE__*/React.createElement(Input, null)));
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
title: /*#__PURE__*/React.createElement("span", {
|
|
161
|
+
style: {
|
|
162
|
+
marginLeft: '10px'
|
|
163
|
+
}
|
|
164
|
+
}, item.title),
|
|
165
|
+
dataIndex: item.key,
|
|
166
|
+
width: '16.66%',
|
|
167
|
+
render: render
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
var columns = [];
|
|
172
|
+
params === null || params === void 0 ? void 0 : params.map(function (item, _index) {
|
|
173
|
+
columns.push(tableColumnsPropsRender(item));
|
|
174
|
+
});
|
|
175
|
+
return columns;
|
|
176
|
+
}; // 表格列 - event
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
var _columns_event = [{
|
|
180
|
+
title: '*事件名称',
|
|
181
|
+
dataIndex: 'eventName',
|
|
182
|
+
key: 'eventName',
|
|
183
|
+
align: 'center'
|
|
184
|
+
}, {
|
|
185
|
+
title: '*事件属性',
|
|
186
|
+
dataIndex: 'attrName',
|
|
187
|
+
key: 'attrName',
|
|
188
|
+
align: 'center'
|
|
189
|
+
}, {
|
|
190
|
+
title: '操作',
|
|
191
|
+
dataIndex: 'set',
|
|
192
|
+
align: 'center'
|
|
193
|
+
}]; // 表格列 - user
|
|
194
|
+
|
|
195
|
+
var _columns_user = [{
|
|
196
|
+
title: '*唯一标识',
|
|
197
|
+
dataIndex: 'identify',
|
|
198
|
+
key: 'identify',
|
|
199
|
+
align: 'center'
|
|
200
|
+
}, {
|
|
201
|
+
title: '*属性名称',
|
|
202
|
+
dataIndex: 'propName',
|
|
203
|
+
key: 'propName',
|
|
204
|
+
align: 'center'
|
|
205
|
+
}, {
|
|
206
|
+
title: '值',
|
|
207
|
+
dataIndex: 'value',
|
|
208
|
+
key: 'value',
|
|
209
|
+
align: 'center'
|
|
210
|
+
}, {
|
|
211
|
+
title: '调用identify接口的时机',
|
|
212
|
+
dataIndex: 'callTime',
|
|
213
|
+
key: 'callTime',
|
|
214
|
+
align: 'center'
|
|
215
|
+
}, {
|
|
216
|
+
title: '操作',
|
|
217
|
+
dataIndex: 'set',
|
|
218
|
+
align: 'center'
|
|
219
|
+
}];
|
|
220
|
+
|
|
221
|
+
var _useState3 = useState([]),
|
|
222
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
223
|
+
columns = _useState4[0],
|
|
224
|
+
setColumns = _useState4[1];
|
|
225
|
+
|
|
226
|
+
useEffect(function () {
|
|
227
|
+
var _columns = props.type == 'event' ? _columns_event : _columns_user;
|
|
228
|
+
|
|
229
|
+
setColumns(handleColumnsData(_columns));
|
|
230
|
+
}, [tableRowData, props.type]);
|
|
231
|
+
|
|
232
|
+
var handleCancel = function handleCancel() {
|
|
233
|
+
props.setVisible(false);
|
|
234
|
+
form.resetFields();
|
|
235
|
+
setTableRowData([{
|
|
236
|
+
key: 0
|
|
237
|
+
}]);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
241
|
+
className: classPrefix,
|
|
242
|
+
width: "900px",
|
|
243
|
+
title: props.type == 'event' ? '添加事件' : '添加用户属性',
|
|
244
|
+
visible: props.visible,
|
|
245
|
+
onCancel: handleCancel,
|
|
246
|
+
getContainer: false,
|
|
247
|
+
okText: "\u4FDD\u5B58",
|
|
248
|
+
cancelText: "\u53D6\u6D88",
|
|
249
|
+
okButtonProps: {
|
|
250
|
+
htmlType: 'submit',
|
|
251
|
+
form: 'addEventForm'
|
|
252
|
+
}
|
|
253
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
254
|
+
id: "addEventForm",
|
|
255
|
+
form: form,
|
|
256
|
+
className: "".concat(classPrefix, "-form"),
|
|
257
|
+
autoComplete: "off",
|
|
258
|
+
onFinish: onFinish
|
|
259
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
260
|
+
className: "".concat(classPrefix, "-table"),
|
|
261
|
+
columns: columns,
|
|
262
|
+
dataSource: tableRowData,
|
|
263
|
+
// bordered
|
|
264
|
+
pagination: false
|
|
265
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
266
|
+
className: "".concat(classPrefix, "-add-button"),
|
|
267
|
+
type: "primary",
|
|
268
|
+
onClick: function onClick() {
|
|
269
|
+
handleRow('add');
|
|
270
|
+
}
|
|
271
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
272
|
+
type: "tianjia",
|
|
273
|
+
style: {
|
|
274
|
+
marginRight: '5px',
|
|
275
|
+
verticalAlign: '-2px'
|
|
276
|
+
}
|
|
277
|
+
}), props.type == 'event' ? '手动添加事件' : '手动添加用户属性'));
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export default addEventOrUser;
|