@zgfe/modules-event 0.1.0 → 0.1.2
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.
|
@@ -70,9 +70,14 @@
|
|
|
70
70
|
.tooltip-name-box {
|
|
71
71
|
display: flex;
|
|
72
72
|
&-market {
|
|
73
|
-
|
|
73
|
+
max-width: calc(100% - 20px);
|
|
74
74
|
margin-right: 8px;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
white-space: nowrap;
|
|
77
|
+
text-overflow: ellipsis;
|
|
75
78
|
cursor: pointer;
|
|
79
|
+
-webkit-line-clamp: 1;
|
|
80
|
+
-webkit-box-orient: vertical;
|
|
76
81
|
.shoucang {
|
|
77
82
|
color: #fd9f41;
|
|
78
83
|
font-size: 16px !important;
|
|
@@ -142,7 +142,9 @@ var EventContent = function EventContent(props) {
|
|
|
142
142
|
setSearchData(function (_searchData) {
|
|
143
143
|
var _data = _objectSpread(_objectSpread({}, _searchData), {}, {
|
|
144
144
|
dimension: data.dimension,
|
|
145
|
-
filters: data.filters
|
|
145
|
+
filters: data.filters,
|
|
146
|
+
id: data.id,
|
|
147
|
+
name: data.name
|
|
146
148
|
}, data);
|
|
147
149
|
return _objectSpread({}, _data);
|
|
148
150
|
});
|
|
@@ -43,7 +43,7 @@ export default (function () {
|
|
|
43
43
|
};
|
|
44
44
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
45
45
|
needMeta: true,
|
|
46
|
-
defaultApp:
|
|
46
|
+
defaultApp: 461
|
|
47
47
|
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
48
48
|
onClick: function onClick() {
|
|
49
49
|
return setIsDetail(false);
|
package/es/utils/formData.js
CHANGED
|
@@ -65,12 +65,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
65
65
|
title: val
|
|
66
66
|
}, /*#__PURE__*/React.createElement("div", {
|
|
67
67
|
className: "tooltip-name-box-market"
|
|
68
|
-
},
|
|
69
|
-
maxLength: 9,
|
|
70
|
-
beginLength: 9,
|
|
71
|
-
endLength: 0,
|
|
72
|
-
replaceStr: '...'
|
|
73
|
-
}))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
68
|
+
}, val)), /*#__PURE__*/React.createElement(Tooltip, {
|
|
74
69
|
title: "\u590D\u5236"
|
|
75
70
|
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
76
71
|
text: val,
|
|
@@ -90,7 +85,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
90
85
|
paddingLeft: '16px'
|
|
91
86
|
}
|
|
92
87
|
}, "\u4E8B\u4EF6"),
|
|
93
|
-
width:
|
|
88
|
+
width: 200,
|
|
94
89
|
dataIndex: 'eventName',
|
|
95
90
|
key: 'eventName',
|
|
96
91
|
ellipsis: true,
|
|
@@ -109,12 +104,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
109
104
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
110
105
|
type: "shoucang",
|
|
111
106
|
className: "".concat(marketEventNameList.indexOf(_val) === -1 ? 'notshoucang' : '')
|
|
112
|
-
}),
|
|
113
|
-
maxLength: 9,
|
|
114
|
-
beginLength: 9,
|
|
115
|
-
endLength: 0,
|
|
116
|
-
replaceStr: '...'
|
|
117
|
-
}))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
107
|
+
}), _val)), /*#__PURE__*/React.createElement(Tooltip, {
|
|
118
108
|
title: "\u590D\u5236"
|
|
119
109
|
}, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
120
110
|
text: _val,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "df27e42a22cf203f4434d64ec4dcd6c519779e3a",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|