@zgfe/business-lib 1.0.8 → 1.0.11

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.
Files changed (80) hide show
  1. package/es/addToPanel/components/addPanel.d.ts +7 -0
  2. package/es/addToPanel/components/addPanel.js +101 -0
  3. package/es/addToPanel/components/radioGroup.d.ts +7 -0
  4. package/es/addToPanel/components/radioGroup.js +29 -0
  5. package/es/addToPanel/components/styleList.d.ts +5 -0
  6. package/es/{dialog/components/tab.js → addToPanel/components/styleList.js} +9 -6
  7. package/es/{dialog/demo/index2.d.ts → addToPanel/demo/edit.d.ts} +0 -0
  8. package/es/{dialog/components/list.js → addToPanel/demo/edit.js} +63 -44
  9. package/es/{dialog/demo/index3.d.ts → addToPanel/demo/index.d.ts} +0 -0
  10. package/es/addToPanel/demo/index.js +78 -0
  11. package/es/addToPanel/index.d.ts +6 -0
  12. package/es/addToPanel/index.js +253 -0
  13. package/es/addToPanel/styles/addPanel.less +25 -0
  14. package/es/addToPanel/styles/index.less +6 -0
  15. package/es/{dialog/components/styles/tab.less → addToPanel/styles/style.less} +7 -2
  16. package/es/addToPanel/types.d.ts +56 -0
  17. package/es/addToPanel/types.js +1 -0
  18. package/es/addToScene/addGroup.d.ts +11 -0
  19. package/es/addToScene/addGroup.js +34 -0
  20. package/es/addToScene/demo/index.d.ts +2 -0
  21. package/es/addToScene/demo/index.js +34 -0
  22. package/es/addToScene/index.d.ts +6 -0
  23. package/es/addToScene/index.js +192 -0
  24. package/es/addToScene/styles/index.less +23 -0
  25. package/es/addToScene/types.d.ts +29 -0
  26. package/es/addToScene/types.js +1 -0
  27. package/es/analysisLayout/demo/index.d.ts +1 -0
  28. package/es/analysisLayout/demo/index.js +7 -1
  29. package/es/analysisLayout/index.d.ts +1 -0
  30. package/es/analysisLayout/index.js +2 -1
  31. package/es/analysisLayout/index.less +3 -2
  32. package/es/assets/styles/chunks.less +19 -3
  33. package/es/assets/styles/resetAntd.less +61 -20
  34. package/es/assets/styles/variable.less +8 -1
  35. package/es/assets/theme.d.ts +3 -0
  36. package/es/assets/theme.js +4 -1
  37. package/es/attrConditions/components/stringList.js +4 -3
  38. package/es/attributeSelector/demo/index.js +1 -1
  39. package/es/attributeSelector/index.js +12 -2
  40. package/es/attributeSelector/styles/index.less +2 -1
  41. package/es/chart/demo/index.js +36 -4
  42. package/es/chart/index.d.ts +1 -1
  43. package/es/chart/index.js +16 -5
  44. package/es/config.d.ts +15 -0
  45. package/es/config.js +8 -0
  46. package/es/constants/apis.d.ts +8 -0
  47. package/es/constants/apis.js +8 -0
  48. package/es/datePicker/styles/index.less +4 -0
  49. package/es/dialog/demo/index.d.ts +0 -29
  50. package/es/dialog/demo/index.js +6 -130
  51. package/es/dialog/index.d.ts +1 -2
  52. package/es/dialog/index.js +15 -183
  53. package/es/dialog/types.d.ts +2 -74
  54. package/es/eventSelector/listPanel.js +8 -0
  55. package/es/eventSelector/styles/index.less +11 -5
  56. package/es/index.d.ts +4 -1
  57. package/es/index.js +4 -1
  58. package/es/select/index.js +4 -2
  59. package/es/select/overlay.js +3 -1
  60. package/es/select/styles/handle.less +2 -0
  61. package/es/select/styles/index.less +0 -3
  62. package/es/select/types.d.ts +2 -0
  63. package/es/targetSelector/styles/index.less +3 -1
  64. package/es/userGroup/demo/index.js +4 -1
  65. package/es/userGroup/index.js +1 -1
  66. package/es/utils/ajax.d.ts +33 -7
  67. package/es/utils/ajax.js +212 -111
  68. package/package.json +4 -3
  69. package/es/dialog/components/itemNode.d.ts +0 -10
  70. package/es/dialog/components/itemNode.js +0 -109
  71. package/es/dialog/components/list.d.ts +0 -5
  72. package/es/dialog/components/selectToInput.d.ts +0 -6
  73. package/es/dialog/components/selectToInput.js +0 -175
  74. package/es/dialog/components/styles/handle.less +0 -39
  75. package/es/dialog/components/styles/list.less +0 -60
  76. package/es/dialog/components/tab.d.ts +0 -5
  77. package/es/dialog/data/data.d.ts +0 -20
  78. package/es/dialog/data/data.js +0 -73
  79. package/es/dialog/demo/index2.js +0 -109
  80. package/es/dialog/demo/index3.js +0 -61
@@ -0,0 +1,25 @@
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-addpanel {
4
+ &-input-row {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ &-switch {
10
+ margin-left: 8px;
11
+ cursor: pointer;
12
+
13
+ &:hover {
14
+ color: @primary-color;
15
+ }
16
+ }
17
+
18
+ &-icon-add {
19
+ cursor: pointer;
20
+ }
21
+
22
+ &-radio {
23
+ margin-top: 12px;
24
+ }
25
+ }
@@ -0,0 +1,6 @@
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-addtopanel {
3
+ &-btn-add.ant-btn-ghost {
4
+ .__text-btn();
5
+ }
6
+ }
@@ -1,6 +1,6 @@
1
- @import '../../../assets/styles/inner.less';
1
+ @import '../../assets/styles/inner.less';
2
2
 
3
- .biz-tab {
3
+ .biz-style {
4
4
  display: flex;
5
5
  color: @text-color-secondary;
6
6
 
@@ -45,6 +45,7 @@
45
45
  margin-right: 7px;
46
46
  font-size: 18px;
47
47
  }
48
+
48
49
  &-radio-icon {
49
50
  font-size: 18px;
50
51
  }
@@ -53,3 +54,7 @@
53
54
  .__select-panel();
54
55
  }
55
56
  }
57
+
58
+ .ant-radio-wrapper {
59
+ margin-right: 0;
60
+ }
@@ -0,0 +1,56 @@
1
+ declare namespace AddToPanel {
2
+ export interface Option {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export interface PanelOption {
7
+ id: number;
8
+ name: string;
9
+ [prop: string]: any;
10
+ }
11
+ export interface Props {
12
+ defaultValue?: Value;
13
+ params: Record<string, any>;
14
+ type?: string;
15
+ styleOptions: TabItem[];
16
+ showOptions?: Option[];
17
+ showList?: string[];
18
+ onOk?: () => void;
19
+ onCancel?: () => void;
20
+ }
21
+ interface PanelValue {
22
+ id: number;
23
+ name: string;
24
+ open_type: number;
25
+ }
26
+ export interface Value {
27
+ panel: PanelValue;
28
+ name: string;
29
+ chartType: string;
30
+ showList?: 'dynamic' | 'fix';
31
+ }
32
+ export interface AddPanelParam {
33
+ appId: number;
34
+ platform: number;
35
+ name: string;
36
+ panelId: number;
37
+ panelName?: string;
38
+ openType?: number;
39
+ webData: Record<string, any>;
40
+ mobileData: Record<string, any>;
41
+ }
42
+ export interface StyleProps {
43
+ value?: string;
44
+ options?: Array<TabItem>;
45
+ onChange?: (value: string) => void;
46
+ }
47
+ export interface TabItemChild extends Option {
48
+ icon: string;
49
+ disabled?: boolean;
50
+ }
51
+ export interface TabItem extends TabItemChild {
52
+ children?: Array<TabItemChild>;
53
+ }
54
+ export {};
55
+ }
56
+ export default AddToPanel;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface Val {
3
+ groupName: string;
4
+ groupId: number;
5
+ }
6
+ declare const AddGroup: React.FC<{
7
+ value?: Val;
8
+ onChange?: (val: Val) => void;
9
+ onBack: () => void;
10
+ }>;
11
+ export default AddGroup;
@@ -0,0 +1,34 @@
1
+ import { Button, Input } from 'antd';
2
+ import React from 'react';
3
+ import { classPrefix } from '.';
4
+ import IconFont from '../icon/iconFont';
5
+
6
+ var AddGroup = function AddGroup(props) {
7
+ var onBack = props.onBack;
8
+
9
+ function onInput(e) {
10
+ e.persist();
11
+ if (props.onChange) props.onChange({
12
+ groupName: e.target.value,
13
+ groupId: 0
14
+ });
15
+ }
16
+
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: "".concat(classPrefix, "-addgroup")
19
+ }, /*#__PURE__*/React.createElement(Input, {
20
+ placeholder: "\u6DFB\u52A0\u5206\u7C7B",
21
+ autoFocus: true,
22
+ onInput: onInput,
23
+ allowClear: true
24
+ }), /*#__PURE__*/React.createElement(Button, {
25
+ onClick: onBack,
26
+ icon: /*#__PURE__*/React.createElement(IconFont, {
27
+ type: "shurukuang_fanhui"
28
+ }),
29
+ className: "btn-back",
30
+ type: "ghost"
31
+ }));
32
+ };
33
+
34
+ export default AddGroup;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,34 @@
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 { Button } from 'antd';
14
+ import React, { useState } from 'react';
15
+ import { BizAddToScene } from '@zgfe/business-lib';
16
+ export default (function () {
17
+ var _useState = useState(false),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ showDialog = _useState2[0],
20
+ setShowDialog = _useState2[1];
21
+
22
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
23
+ onClick: function onClick() {
24
+ setShowDialog(true);
25
+ }
26
+ }, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showDialog && /*#__PURE__*/React.createElement(BizAddToScene, {
27
+ onOk: function onOk() {
28
+ setShowDialog(false);
29
+ },
30
+ onCancel: function onCancel() {
31
+ setShowDialog(false);
32
+ }
33
+ }));
34
+ });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import AddToScene from './types';
3
+ import './styles/index.less';
4
+ export declare const classPrefix = "biz-addtoscene";
5
+ declare const BizAddToScene: React.FC<AddToScene.Props>;
6
+ export default BizAddToScene;
@@ -0,0 +1,192 @@
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 { Button, Form, Input, notification } from 'antd';
14
+ import React, { useContext, useEffect, useRef, useState } from 'react';
15
+ import BizDialog from '../dialog';
16
+ import BizSelect from '../select';
17
+ import './styles/index.less';
18
+ import AddGroup from './addGroup';
19
+ import BizGlobalDataContext from '../context';
20
+ import Apis from '../constants/apis';
21
+ import request from '../utils/ajax';
22
+ import IconFont from '../icon/iconFont';
23
+ export var classPrefix = 'biz-addtoscene';
24
+
25
+ var BizAddToScene = function BizAddToScene(props) {
26
+ var params = props.params;
27
+
28
+ var _useState = useState([]),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ groupList = _useState2[0],
31
+ setGroupList = _useState2[1];
32
+
33
+ var _useState3 = useState(false),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ addMode = _useState4[0],
36
+ setAddMode = _useState4[1];
37
+
38
+ var _useState5 = useState(false),
39
+ _useState6 = _slicedToArray(_useState5, 2),
40
+ loading = _useState6[0],
41
+ setLoading = _useState6[1];
42
+
43
+ var _useContext = useContext(BizGlobalDataContext),
44
+ currentApp = _useContext.currentApp;
45
+
46
+ var refForm = useRef();
47
+
48
+ function toAddGroup() {
49
+ var _refForm$current;
50
+
51
+ (_refForm$current = refForm.current) === null || _refForm$current === void 0 ? void 0 : _refForm$current.resetFields(['group']);
52
+ setAddMode(true);
53
+ }
54
+
55
+ function onBack() {
56
+ var _refForm$current2;
57
+
58
+ (_refForm$current2 = refForm.current) === null || _refForm$current2 === void 0 ? void 0 : _refForm$current2.resetFields(['group']);
59
+ setAddMode(false);
60
+ }
61
+
62
+ function onSave() {
63
+ var _refForm$current3;
64
+
65
+ (_refForm$current3 = refForm.current) === null || _refForm$current3 === void 0 ? void 0 : _refForm$current3.submit();
66
+ }
67
+
68
+ function onCancel() {
69
+ if (props.onCancel) props.onCancel();
70
+ }
71
+
72
+ function onSubmit(form) {
73
+ setLoading(true);
74
+ var data = {
75
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
76
+ platform: 0,
77
+ groupId: form.group.groupId,
78
+ json: JSON.stringify(params),
79
+ name: form.name
80
+ };
81
+
82
+ if (form.group.groupId === 0) {
83
+ data.groupName = form.group.groupName;
84
+ }
85
+
86
+ request(Apis.addScene, {
87
+ method: 'post',
88
+ data: data
89
+ }).then(function (res) {
90
+ setLoading(false);
91
+ var result = res;
92
+
93
+ if (result.code === 10001) {
94
+ notification.success({
95
+ message: '添加成功'
96
+ });
97
+ if (props.onOk) props.onOk();
98
+ } else if (result.code === -10010) {
99
+ notification.error({
100
+ message: '添加失败',
101
+ description: data.groupId === 0 ? '场景分类已存在' : '场景名称已存在'
102
+ });
103
+ } else {
104
+ notification.error({
105
+ message: '添加失败'
106
+ });
107
+ }
108
+ }).catch(function () {
109
+ setLoading(false);
110
+ });
111
+ }
112
+
113
+ function queryGroups() {
114
+ request(Apis.querySceneGroup, {
115
+ method: 'post',
116
+ data: {
117
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
118
+ platform: 0
119
+ }
120
+ }).then(function (res) {
121
+ if (!res) {
122
+ notification.error({
123
+ message: '获取常用场景分类列表失败'
124
+ });
125
+ return;
126
+ }
127
+
128
+ setGroupList(res.groups);
129
+ });
130
+ }
131
+
132
+ useEffect(function () {
133
+ queryGroups();
134
+ }, []);
135
+ return /*#__PURE__*/React.createElement(BizDialog, {
136
+ title: "\u6DFB\u52A0\u5230\u5E38\u7528\u573A\u666F",
137
+ visible: true,
138
+ maskClosable: false,
139
+ onOk: onSave,
140
+ onCancel: onCancel,
141
+ confirmLoading: loading
142
+ }, /*#__PURE__*/React.createElement(Form, {
143
+ autoComplete: "off",
144
+ ref: refForm,
145
+ onFinish: onSubmit,
146
+ requiredMark: false
147
+ }, /*#__PURE__*/React.createElement(Form.Item, {
148
+ label: "\u573A\u666F\u5206\u7C7B",
149
+ name: "group",
150
+ rules: [{
151
+ validator: function validator(_, value) {
152
+ if (!value || !/\S+/.test(value.groupName)) return Promise.reject("\u8BF7".concat(addMode ? '输入' : '选择', "\u573A\u666F\u5206\u7C7B!"));
153
+ if (!/^[\S\s]{1,20}$/.test(value.groupName)) return Promise.reject('场景分类最多为20个字符!');
154
+ return Promise.resolve();
155
+ }
156
+ }]
157
+ }, addMode ? /*#__PURE__*/React.createElement(AddGroup, {
158
+ onBack: onBack
159
+ }) : /*#__PURE__*/React.createElement(BizSelect, {
160
+ options: groupList,
161
+ enableSearch: true,
162
+ keyField: "groupId",
163
+ labelField: "groupName",
164
+ dropdownExtra: /*#__PURE__*/React.createElement(Button, {
165
+ className: "".concat(classPrefix, "-btn-add"),
166
+ type: "ghost",
167
+ onClick: toAddGroup
168
+ }, /*#__PURE__*/React.createElement(IconFont, {
169
+ className: "".concat(classPrefix, "-icon-add"),
170
+ type: 'tianjia1'
171
+ }), " \u6DFB\u52A0\u5206\u7C7B")
172
+ })), /*#__PURE__*/React.createElement(Form.Item, {
173
+ label: "\u573A\u666F\u540D\u79F0",
174
+ name: "name",
175
+ rules: [{
176
+ validator: function validator(_, value) {
177
+ if (!value || !/\S+/.test(value)) return Promise.reject('请输入场景名称!');
178
+ if (!/^[\S\s]{1,20}$/.test(value)) return Promise.reject('场景名称最多为20个字符!');
179
+ return Promise.resolve();
180
+ }
181
+ }]
182
+ }, /*#__PURE__*/React.createElement(Input, {
183
+ placeholder: "\u573A\u666F\u540D\u79F0",
184
+ allowClear: {
185
+ clearIcon: /*#__PURE__*/React.createElement(IconFont, {
186
+ type: 'qingchu'
187
+ })
188
+ }
189
+ }))));
190
+ };
191
+
192
+ export default BizAddToScene;
@@ -0,0 +1,23 @@
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-addtoscene {
4
+ &-btn-add.ant-btn-ghost {
5
+ .__text-btn();
6
+ }
7
+
8
+ &-addgroup {
9
+ display: flex;
10
+ flex-direction: row;
11
+ align-items: center;
12
+
13
+ .ant-input {
14
+ flex: 1;
15
+ }
16
+
17
+ .btn-back {
18
+ flex: none;
19
+ border: none;
20
+ box-shadow: none;
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,29 @@
1
+ declare namespace AddToScene {
2
+ interface Props {
3
+ params: Record<string, any>;
4
+ onOk?: () => void;
5
+ onCancel?: () => void;
6
+ }
7
+ interface Scene {
8
+ groupId: number;
9
+ id: number;
10
+ json: Record<string, any>;
11
+ name: string;
12
+ }
13
+ interface Group {
14
+ appId: number;
15
+ groupId: number;
16
+ groupName: string;
17
+ platform: number;
18
+ scenes: Scene;
19
+ }
20
+ interface AddSceneParam {
21
+ appId: number;
22
+ platform: number;
23
+ groupId: number;
24
+ groupName?: string;
25
+ name: string;
26
+ json: string;
27
+ }
28
+ }
29
+ export default AddToScene;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
1
2
  import './index.less';
2
3
  declare const _default: () => JSX.Element;
3
4
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { BizAnalysisLayout } from '@zgfe/business-lib';
3
3
  import { Button } from 'antd';
4
+ import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
4
5
  import './index.less';
5
6
 
6
7
  var LeftContent = function LeftContent() {
@@ -19,12 +20,17 @@ var RightContent = function RightContent() {
19
20
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", null, "right"));
20
21
  };
21
22
 
23
+ var onCollapse = function onCollapse(flag) {
24
+ console.log('是否收起', flag);
25
+ };
26
+
22
27
  var LayoutDemo = function LayoutDemo() {
23
28
  return /*#__PURE__*/React.createElement("div", {
24
29
  className: "root"
25
30
  }, /*#__PURE__*/React.createElement(BizAnalysisLayout, {
26
31
  leftPanel: /*#__PURE__*/React.createElement(LeftContent, null),
27
- leftHandle: /*#__PURE__*/React.createElement(Footer, null)
32
+ leftHandle: /*#__PURE__*/React.createElement(Footer, null),
33
+ onCollapse: onCollapse
28
34
  }, /*#__PURE__*/React.createElement(RightContent, null)));
29
35
  };
30
36
 
@@ -9,6 +9,7 @@ declare type AnalysisLayoutProps = {
9
9
  defaultLeftWidth?: number;
10
10
  minWidthOfLeft?: number;
11
11
  maxWidthOfLeft?: number;
12
+ onCollapse?: (flag: boolean) => void;
12
13
  };
13
14
  declare const BizAnalysisLayout: React.FC<AnalysisLayoutProps>;
14
15
  export default BizAnalysisLayout;
@@ -77,6 +77,7 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
77
77
  };
78
78
 
79
79
  function onCollapse() {
80
+ if (props.onCollapse) props.onCollapse(showLeft);
80
81
  setShowLeft(function (show) {
81
82
  setWidth(show ? 56 : minWidthOfLeft);
82
83
  return !show;
@@ -129,7 +130,7 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
129
130
  })), /*#__PURE__*/React.createElement("div", {
130
131
  className: "biz-layout-right",
131
132
  style: {
132
- width: "calc(100% - ".concat(width, "px)")
133
+ width: "calc(100% - ".concat(width + 6, "px)")
133
134
  }
134
135
  }, /*#__PURE__*/React.createElement("div", {
135
136
  className: "biz-right-content"
@@ -21,9 +21,10 @@
21
21
  position: absolute;
22
22
  right: 0;
23
23
  bottom: 0;
24
- width: 1px;
24
+ width: 5px;
25
25
  height: 100%;
26
- background: #ecedf0;
26
+ background: transparent;
27
+ border-left: 1px solid #ecedf0;
27
28
  transform: matrix(-1, 0, 0, 1, 0, 0);
28
29
  cursor: ew-resize;
29
30
  }
@@ -10,6 +10,10 @@
10
10
  background: @primary-1;
11
11
  border-color: @primary-color;
12
12
  cursor: pointer;
13
+
14
+ .xiangxia {
15
+ color: @primary-color;
16
+ }
13
17
  }
14
18
 
15
19
  // focus 样式
@@ -42,7 +46,7 @@
42
46
  border-radius: @border-radius-normal;
43
47
  .__default-overflow();
44
48
 
45
- &:hover {
49
+ &:not(.disabled, .active):hover {
46
50
  .__default-hover();
47
51
  }
48
52
 
@@ -51,7 +55,7 @@
51
55
  background: @primary-color;
52
56
  }
53
57
 
54
- &.disabled {
58
+ &:not(.active).disabled {
55
59
  color: @disabled-color;
56
60
  cursor: not-allowed;
57
61
 
@@ -64,7 +68,7 @@
64
68
  // 暂无数据样式,目前用于下拉框
65
69
  .__select-nodata {
66
70
  height: @option-height;
67
- padding: 0 16px;
71
+ padding: 0 @padding-sm;
68
72
  line-height: @option-height;
69
73
  border-radius: @border-radius-normal;
70
74
  }
@@ -141,3 +145,15 @@
141
145
  }
142
146
  }
143
147
  }
148
+
149
+ // 文字按钮
150
+ .__text-btn {
151
+ width: fit-content;
152
+ padding: 2px 4px;
153
+ border: none;
154
+ border-radius: @border-radius-small;
155
+
156
+ &:hover {
157
+ .__default-hover();
158
+ }
159
+ }