@zgfe/modules-interval 1.0.3-alpha.1 → 1.0.3-alpha.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.
@@ -118,7 +118,7 @@ var TopBar = function TopBar(props) {
118
118
  type: "primary",
119
119
  disabled: showLoading,
120
120
  onClick: function onClick() {
121
- props.onUserDrill({
121
+ props.onJumpWarning({
122
122
  appId: Number(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId),
123
123
  module: 'interval',
124
124
  platform: 0,
@@ -1,4 +1,5 @@
1
- import { ResponseDataProps, SearchValue, UserDrillParamsProp } from '../../types';
1
+ import { IntervalProps } from '../../modules/home/types';
2
+ import { ResponseDataProps, SearchValue } from '../../types';
2
3
  export interface TopBarProps {
3
4
  /**
4
5
  * @description 标题
@@ -6,6 +7,6 @@ export interface TopBarProps {
6
7
  searchData?: SearchValue;
7
8
  loading?: boolean;
8
9
  eventData?: ResponseDataProps;
9
- onUserDrill: (data: UserDrillParamsProp, searchData: SearchValue) => void;
10
+ onJumpWarning: IntervalProps.Props['onJumpWarning'];
10
11
  platformChange: (data: number) => void;
11
12
  }
@@ -195,7 +195,7 @@ var EventContent = function EventContent(props) {
195
195
  loading: loading,
196
196
  eventData: eventData,
197
197
  platformChange: platformChange,
198
- onUserDrill: props.onUserDrill
198
+ onJumpWarning: props.onJumpWarning
199
199
  }), /*#__PURE__*/React.createElement(BizLayout, {
200
200
  showTitle: false,
201
201
  hasCollapse: true,
@@ -1,4 +1,5 @@
1
1
  import { SearchValue, UserDrillParamsProp } from '../../types';
2
+ import { IntervalProps } from '../home/types';
2
3
  export declare namespace EventContentProps {
3
4
  interface Props {
4
5
  /**
@@ -19,6 +20,7 @@ export declare namespace EventContentProps {
19
20
  */
20
21
  onSearching?: (flag: boolean) => void;
21
22
  onUserDrill: (data: UserDrillParamsProp, searchData: SearchValue) => void;
23
+ onJumpWarning: IntervalProps.Props['onJumpWarning'];
22
24
  /**
23
25
  * 查询条件回调
24
26
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import './styles/index.less';
3
- import { EventProps } from './types';
4
- declare const ModuleInterval: React.FC<EventProps.Props>;
3
+ import { IntervalProps } from './types';
4
+ declare const ModuleInterval: React.FC<IntervalProps.Props>;
5
5
  export default ModuleInterval;
@@ -126,7 +126,8 @@ var ModuleInterval = function ModuleInterval(props) {
126
126
  enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
127
127
  changeLoading: changeLoading,
128
128
  afterEditTarget: props.afterEditTarget,
129
- onUserDrill: props.onUserDrill
129
+ onUserDrill: props.onUserDrill,
130
+ onJumpWarning: props.onJumpWarning
130
131
  }
131
132
  }, /*#__PURE__*/React.createElement(EventContent, {
132
133
  defaultValue: props.defaultValue ? props.defaultValue.data : undefined,
@@ -134,6 +135,7 @@ var ModuleInterval = function ModuleInterval(props) {
134
135
  show: showList,
135
136
  urlParam: props.urlParam,
136
137
  onUserDrill: props.onUserDrill,
138
+ onJumpWarning: props.onJumpWarning,
137
139
  onChange: setSearchData,
138
140
  initSearch: initSearch
139
141
  })));
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { SearchValue, UserDrillParamsProp } from '../../types';
3
- export declare namespace EventProps {
3
+ export declare namespace IntervalProps {
4
4
  interface Props {
5
5
  /**
6
6
  * @description 默认查询值
@@ -24,6 +24,7 @@ export declare namespace EventProps {
24
24
  * 用户钻取
25
25
  */
26
26
  onUserDrill: (data: UserDrillParamsProp) => void;
27
+ onJumpWarning: (data: Record<string, any>, searchData: SearchValue) => void;
27
28
  }
28
29
  interface Value {
29
30
  /**
@@ -1,2 +1,2 @@
1
- export var EventProps;
2
- (function (_EventProps) {})(EventProps || (EventProps = {}));
1
+ export var IntervalProps;
2
+ (function (_IntervalProps) {})(IntervalProps || (IntervalProps = {}));
@@ -1,7 +1,7 @@
1
1
  import type { ColumnsType } from 'antd/es/table';
2
2
  import { EventGroup, UserProp, EnvProp } from '@zgfe/business-lib/es/attributeSelector/types';
3
3
  import { ResponseDataProps, SearchValue, SeriesProps } from '../types';
4
- import { EventProps } from '../modules/home/types';
4
+ import { IntervalProps } from '../modules/home/types';
5
5
  import '../style/index.less';
6
6
  import { DisplaySetup } from '../components/searchPanel/types';
7
7
  /**
@@ -9,7 +9,7 @@ import { DisplaySetup } from '../components/searchPanel/types';
9
9
  * @param columnData xAxis
10
10
  * @returns column fields
11
11
  */
12
- export declare function getColumns(eventGroupList: EventGroup[] | undefined, userPropList: UserProp[] | undefined, eventEnvList: EnvProp[] | undefined, columnData: string[], dataSource: ResponseDataProps, userGroup: number[], searchData: SearchValue, showList: string[], onUserDrill: EventProps.Props['onUserDrill']): ColumnsType<EventProps.ColumnsDataType>;
12
+ export declare function getColumns(eventGroupList: EventGroup[] | undefined, userPropList: UserProp[] | undefined, eventEnvList: EnvProp[] | undefined, columnData: string[], dataSource: ResponseDataProps, userGroup: number[], searchData: SearchValue, showList: string[], onUserDrill: IntervalProps.Props['onUserDrill']): ColumnsType<IntervalProps.ColumnsDataType>;
13
13
  /**
14
14
  * 获取属性的label
15
15
  * @param attrData 当前属性
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.3-alpha.1",
3
+ "version": "1.0.3-alpha.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -62,5 +62,5 @@
62
62
  "umi-request": "^1.4.0",
63
63
  "yorkie": "^2.0.0"
64
64
  },
65
- "gitHead": "e7b84465ea7400217d91c9140e2f7a2773ba6383"
65
+ "gitHead": "680096640933239c71ddd9636ed7cc86dc20e40f"
66
66
  }