@zgfe/modules-event 1.0.4 → 1.0.5-bug.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.
|
File without changes
|
|
@@ -140,7 +140,9 @@ var EventContent = function EventContent(props) {
|
|
|
140
140
|
}
|
|
141
141
|
var result = res.data;
|
|
142
142
|
var _data = searchData.dimension ? result : getChartDataEventAliasName(result, eventGroupList);
|
|
143
|
-
|
|
143
|
+
var list = _data ? getDefaultShow(_data) : [];
|
|
144
|
+
setShowList(list);
|
|
145
|
+
props.onChangeShow && props.onChangeShow(list);
|
|
144
146
|
if (['bar', 'pie', 'map'].indexOf(searchData.chartType) !== -1) {
|
|
145
147
|
_data = getSortData(_data);
|
|
146
148
|
}
|
|
@@ -169,6 +171,7 @@ var EventContent = function EventContent(props) {
|
|
|
169
171
|
};
|
|
170
172
|
var onChangeShow = function onChangeShow(data) {
|
|
171
173
|
setShowList(data);
|
|
174
|
+
props.onChangeShow && props.onChangeShow(data);
|
|
172
175
|
};
|
|
173
176
|
var platformChange = function platformChange(data) {
|
|
174
177
|
ajaxFlag = true;
|
package/es/modules/home/index.js
CHANGED
|
@@ -127,7 +127,8 @@ var ModuleEvent = function ModuleEvent(props) {
|
|
|
127
127
|
params: _objectSpread({
|
|
128
128
|
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
129
129
|
module: 'event'
|
|
130
|
-
}, searchData)
|
|
130
|
+
}, searchData),
|
|
131
|
+
showList: showList
|
|
131
132
|
}
|
|
132
133
|
} : undefined,
|
|
133
134
|
disabled: props === null || props === void 0 ? void 0 : props.panelDisabled,
|
|
@@ -163,7 +164,8 @@ var ModuleEvent = function ModuleEvent(props) {
|
|
|
163
164
|
elementId: elementId,
|
|
164
165
|
value: searchData,
|
|
165
166
|
show: showList,
|
|
166
|
-
initSearch: initSearch
|
|
167
|
+
initSearch: initSearch,
|
|
168
|
+
onChangeShow: setShowList
|
|
167
169
|
})));
|
|
168
170
|
};
|
|
169
171
|
ModuleEvent.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5-bug.0",
|
|
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": "c547470b1d32499155edbb36a23e1d9677ea2503",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|