@kep-platform/basic-component 1.0.9 → 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.
@@ -6,7 +6,7 @@ export type ButtonProps = {
6
6
  children: ReactNode;
7
7
  } & HtmlHTMLAttributes<HTMLButtonElement>;
8
8
  declare const Button: React.ForwardRefExoticComponent<{
9
- type?: "default" | "primary" | "danger" | undefined;
9
+ type?: "default" | "danger" | "primary" | undefined;
10
10
  size?: SizeType | undefined;
11
11
  children: ReactNode;
12
12
  } & React.HtmlHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex").FlexItemProps | keyof React.HtmlHTMLAttributes<HTMLDivElement>> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
2
+ export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HtmlHTMLAttributes<HTMLDivElement> | keyof import("../Flex").FlexItemProps> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
4
4
  }, never>> & string;
5
5
  type MainPropertyProps = {
@@ -18,8 +18,9 @@ export type TreeProps = {
18
18
  bordered?: boolean;
19
19
  hideColumns?: boolean;
20
20
  loadData?: (node: TreeNodeType) => Promise<any>;
21
+ loadedKeys?: Key[];
21
22
  };
22
- declare const Tree: (({ treeData, columns, fieldNames, title: treeTitle, titleWidth, titleRender, selectedKeys, expandedKeys, isFlex, onSelect, onExpand, contextMenuRender, onContextMenuItemSelect, loadData, multiple, bordered, hideColumns, }: TreeProps) => React.JSX.Element) & {
23
+ declare const Tree: (({ treeData, columns, fieldNames, title: treeTitle, titleWidth, titleRender, selectedKeys, expandedKeys, isFlex, onSelect, onExpand, contextMenuRender, onContextMenuItemSelect, loadData, loadedKeys: loadedKeysProps, multiple, bordered, hideColumns, }: TreeProps) => React.JSX.Element) & {
23
24
  displayName: string;
24
25
  };
25
26
  export default Tree;
package/dist/Tree/Tree.js CHANGED
@@ -11,7 +11,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
11
11
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
13
  import { observer } from 'mobx-react-lite';
14
- import React, { useCallback, useMemo, useRef, useState } from 'react';
14
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
15
15
  import styled, { css } from 'styled-components';
16
16
  import { BoxShadowBox } from "../BoxShadowBox";
17
17
  import { Column, Columns } from "../Columns";
@@ -68,6 +68,8 @@ var Tree = observer(function (_ref) {
68
68
  contextMenuRender = _ref.contextMenuRender,
69
69
  onContextMenuItemSelect = _ref.onContextMenuItemSelect,
70
70
  loadData = _ref.loadData,
71
+ _ref$loadedKeys = _ref.loadedKeys,
72
+ loadedKeysProps = _ref$loadedKeys === void 0 ? [] : _ref$loadedKeys,
71
73
  _ref$multiple = _ref.multiple,
72
74
  multiple = _ref$multiple === void 0 ? false : _ref$multiple,
73
75
  _ref$bordered = _ref.bordered,
@@ -140,10 +142,13 @@ var Tree = observer(function (_ref) {
140
142
  boxShadowBox.current.style.left = treeContainer.scrollLeft + titleWidth + 'px';
141
143
  }
142
144
  }, [titleWidth]);
143
- var _useState = useState([]),
145
+ var _useState = useState(loadedKeysProps),
144
146
  _useState2 = _slicedToArray(_useState, 2),
145
147
  loadedKeys = _useState2[0],
146
148
  setLoadedKeys = _useState2[1];
149
+ useEffect(function () {
150
+ if (loadedKeysProps) setLoadedKeys(loadedKeysProps);
151
+ }, [loadedKeysProps]);
147
152
 
148
153
  /* 树组件的结构其实比较简单,就是一个树标题(TableMode下),然后树节点形成的列表 */
149
154
  return /*#__PURE__*/React.createElement(TreeContainer, {
package/dist/Tree/test.js CHANGED
@@ -90,7 +90,7 @@ var mystore = new MyStore([{
90
90
  children: []
91
91
  }]
92
92
  }, {
93
- key: '2121212121212',
93
+ key: '2',
94
94
  title: '2',
95
95
  count: 1,
96
96
  groupBy: [{
@@ -193,6 +193,7 @@ export default (function () {
193
193
  dataIndex: 'count',
194
194
  align: 'center'
195
195
  }],
196
+ loadedKeys: ['2'],
196
197
  hideColumns: true,
197
198
  selectedKeys: selectedKeys,
198
199
  expandedKeys: expandedKeys,
@@ -11,8 +11,8 @@ import React, { useCallback, useEffect, useRef } from 'react';
11
11
  import styled from 'styled-components';
12
12
  import { RippleManagerStore } from "./Ripple";
13
13
  import { ViewPortWindow } from "./ViewPortWindow";
14
- var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n border: 1px solid #eee;\n box-shadow: 0 0 7px 0 inset #fefefe;\n"])));
15
- var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n"])));
14
+ var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: relative;\n\tborder: 1px solid #eee;\n\tbox-shadow: 0 0 7px 0 inset #fefefe;\n"])));
15
+ var Content = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tposition: absolute;\n"])));
16
16
  var Overlay = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([""])));
17
17
  var rippleManagerStore = new RippleManagerStore();
18
18
  var ViewPortComponent = observer(function (props) {
@@ -32,19 +32,6 @@ var ViewPortComponent = observer(function (props) {
32
32
  var contentRef = useRef(null);
33
33
  var containerRef = useRef(null);
34
34
  var pointerDownTimer = useRef();
35
- var createRipple = function createRipple(event) {
36
- var _containerRef$current;
37
- event.preventDefault();
38
- event.stopPropagation();
39
- var rect = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect();
40
- if (!rect) return;
41
- var left = event.clientX - rect.left;
42
- var top = event.clientY - rect.top;
43
- rippleManagerStore.addRipple(left, top);
44
- setTimeout(function () {
45
- rippleManagerStore.clearList();
46
- }, 30000);
47
- };
48
35
  useEffect(function () {
49
36
  if (transform) {
50
37
  viewPortStore.move(transform);
@@ -54,7 +41,7 @@ var ViewPortComponent = observer(function (props) {
54
41
  }
55
42
  }, [transform]);
56
43
  useEffect(function () {
57
- var _contentRef$current;
44
+ var _contentRef$current, _contentRef$current2, _contentRef$current3;
58
45
  function scaleHandler(e) {
59
46
  e.stopPropagation();
60
47
  e.preventDefault();
@@ -65,21 +52,30 @@ var ViewPortComponent = observer(function (props) {
65
52
  }
66
53
  onScale === null || onScale === void 0 || onScale(viewPortStore.transform.left, viewPortStore.transform.top, viewPortStore.scale, viewPortStore.ratio);
67
54
  }
55
+ function onContentTransitionEnd(e) {
56
+ if (e.target === contentRef.current) {
57
+ runInAction(function () {
58
+ viewPortStore.isTransition = false;
59
+ });
60
+ }
61
+ }
62
+ function onContentTransitionStart(e) {
63
+ if (e.target === contentRef.current) {
64
+ runInAction(function () {
65
+ viewPortStore.isTransition = true;
66
+ });
67
+ }
68
+ }
68
69
  (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 || _contentRef$current.addEventListener('wheel', scaleHandler, {
69
70
  passive: false
70
71
  });
72
+ (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.addEventListener('transitionend', onContentTransitionEnd);
73
+ (_contentRef$current3 = contentRef.current) === null || _contentRef$current3 === void 0 || _contentRef$current3.addEventListener('transitionstart', onContentTransitionStart);
71
74
  return function () {
72
- var _contentRef$current2;
73
- (_contentRef$current2 = contentRef.current) === null || _contentRef$current2 === void 0 || _contentRef$current2.removeEventListener('wheel', scaleHandler);
75
+ var _contentRef$current4;
76
+ (_contentRef$current4 = contentRef.current) === null || _contentRef$current4 === void 0 || _contentRef$current4.removeEventListener('wheel', scaleHandler);
74
77
  };
75
78
  }, []);
76
- var onContentTransitionEnd = useCallback(function (e) {
77
- if (e.target === contentRef.current) {
78
- runInAction(function () {
79
- viewPortStore.isTransition = false;
80
- });
81
- }
82
- }, []);
83
79
  var onContentPointerDownHandler = useCallback(function (e) {
84
80
  if (viewPortStore.isTransition) return;
85
81
  //鼠标点击的时候,先清除定时器,然后再异步触发pointerDown操作,这样保证doubleClick的优先级高于pointerDown
@@ -108,7 +104,15 @@ var ViewPortComponent = observer(function (props) {
108
104
  }, attributes, {
109
105
  onPointerDown: onContentPointerDownHandler,
110
106
  onPointerUp: onContentPointerUpHandler,
111
- onTransitionEnd: onContentTransitionEnd,
107
+ onDoubleClick: function onDoubleClick(e) {
108
+ if (viewPortStore.scale !== 1 / viewPortStore.ratio) {
109
+ viewPortStore.unfocus();
110
+ return;
111
+ }
112
+ var target = e.target;
113
+ var rect = target.getBoundingClientRect();
114
+ viewPortStore.focus(e.clientX - rect.left, e.clientY - rect.top);
115
+ },
112
116
  style: viewPortStore.contentStyle
113
117
  }), children));
114
118
  });
@@ -127,14 +127,12 @@ export var ViewPortStore = /*#__PURE__*/function () {
127
127
  value: function focus(left, top) {
128
128
  this.setScale(1);
129
129
  this.setTransform((1 - this.ratio) * left + this.offsetLeft, (1 - this.ratio) * top + this.offsetTop);
130
- this.isTransition = true;
131
130
  }
132
131
  }, {
133
132
  key: "unfocus",
134
133
  value: function unfocus() {
135
134
  this.setScale(1 / this.ratio);
136
135
  this.setTransform(0, 0);
137
- this.isTransition = true;
138
136
  }
139
137
  }, {
140
138
  key: "move",
@@ -26,6 +26,7 @@ export declare class ViewPortWindowStore extends WindowStore {
26
26
  transformOrigin?: undefined;
27
27
  };
28
28
  focus(): void;
29
+ get isActive(): boolean;
29
30
  calculateTransform(transform: Transform): {
30
31
  x: number;
31
32
  y: number;
@@ -33,6 +34,7 @@ export declare class ViewPortWindowStore extends WindowStore {
33
34
  controll(transform: Transform, type: WindowControllerType): void;
34
35
  centerDisplay(): void;
35
36
  fullscreenWindow(func?: () => void): void;
37
+ toggleWindow(): void;
36
38
  constructor(id: string, viewPort: ViewPortStore, onClosedHandler?: (id: string) => void);
37
39
  get disabled(): boolean;
38
40
  }
@@ -42,68 +42,75 @@ export var ViewPortWindowStore = /*#__PURE__*/function (_WindowStore) {
42
42
  _createClass(ViewPortWindowStore, [{
43
43
  key: "style",
44
44
  get: function get() {
45
- if (this.isClosed) {
46
- return {
47
- left: this.left + 'px',
48
- top: this.top + 'px',
49
- width: this.width + 'px',
50
- height: this.height + 'px',
51
- zIndex: this.zIndex,
52
- transform: 'scale(0)',
53
- transformOrigin: 'center center',
54
- transition: 'all 0.3s ease-out'
55
- };
45
+ switch (this.status) {
46
+ case 'closed':
47
+ return {
48
+ left: this.left + 'px',
49
+ top: this.top + 'px',
50
+ width: this.width + 'px',
51
+ height: this.height + 'px',
52
+ zIndex: this.zIndex,
53
+ transform: 'scale(0)',
54
+ transformOrigin: 'center center',
55
+ transition: 'all 0.3s ease-out'
56
+ };
57
+ case 'minimize':
58
+ return {
59
+ left: this.minimizePos.left + 'px',
60
+ top: this.minimizePos.top + 'px',
61
+ width: this.width + 'px',
62
+ height: this.height + 'px',
63
+ zIndex: this.zIndex,
64
+ transform: 'scale(0)',
65
+ transformOrigin: 'left top',
66
+ transition: "all ".concat(0.5 + this.viewPortStore.scale, "s ease-out")
67
+ };
68
+ case 'fullscreen':
69
+ return {
70
+ left: this.fullscreenPos.left + 'px',
71
+ top: this.fullscreenPos.top + 'px',
72
+ width: this.fullscreenPos.width * this.viewPortStore.scale + 'px',
73
+ height: this.fullscreenPos.height * this.viewPortStore.scale + 'px',
74
+ transform: "scale(".concat(1 / this.viewPortStore.scale, ")"),
75
+ zIndex: this.zIndex,
76
+ transformOrigin: 'left top',
77
+ transition: 'width height 0.5s ease-out'
78
+ };
79
+ case 'normal':
80
+ default:
81
+ if (this.isMoving || this.isResizing) {
82
+ return {
83
+ left: this.left + 'px',
84
+ top: this.top + 'px',
85
+ width: this.width + 'px',
86
+ height: this.height + 'px',
87
+ zIndex: this.zIndex,
88
+ transform: 'none',
89
+ transition: 'none'
90
+ };
91
+ } else {
92
+ return {
93
+ left: this.left + 'px',
94
+ top: this.top + 'px',
95
+ width: this.width + 'px',
96
+ height: this.height + 'px',
97
+ zIndex: this.zIndex,
98
+ transform: 'none',
99
+ transition: 'all 0.3s ease-out'
100
+ };
101
+ }
56
102
  }
57
- if (this.isMinimize && this.minimizePos) {
58
- return {
59
- left: this.minimizePos.left + 'px',
60
- top: this.minimizePos.top + 'px',
61
- width: this.width + 'px',
62
- height: this.height + 'px',
63
- zIndex: this.zIndex,
64
- transform: 'scale(0)',
65
- transformOrigin: 'left top',
66
- transition: "all ".concat(0.5 + this.viewPortStore.scale, "s ease-out")
67
- };
68
- }
69
- if (this.fullscreen) {
70
- return {
71
- left: this.fullscreenPos.left + 'px',
72
- top: this.fullscreenPos.top + 'px',
73
- width: this.fullscreenPos.width * this.viewPortStore.scale + 'px',
74
- height: this.fullscreenPos.height * this.viewPortStore.scale + 'px',
75
- transform: "scale(".concat(1 / this.viewPortStore.scale, ")"),
76
- zIndex: this.zIndex,
77
- transformOrigin: 'left top',
78
- transition: 'width height 0.5s ease-out'
79
- };
80
- }
81
- if (this.isMoving || this.isResizing) {
82
- return {
83
- left: this.left + 'px',
84
- top: this.top + 'px',
85
- width: this.width + 'px',
86
- height: this.height + 'px',
87
- zIndex: this.zIndex,
88
- transform: 'none',
89
- transition: 'none'
90
- };
91
- }
92
- return {
93
- left: this.left + 'px',
94
- top: this.top + 'px',
95
- width: this.width + 'px',
96
- height: this.height + 'px',
97
- zIndex: this.zIndex,
98
- transform: 'none',
99
- transition: 'all 0.3s ease-out'
100
- };
101
103
  }
102
104
  }, {
103
105
  key: "focus",
104
106
  value: function focus() {
105
107
  this.zIndex = ++this.viewPortStore.maxZIndex;
106
108
  }
109
+ }, {
110
+ key: "isActive",
111
+ get: function get() {
112
+ return this.zIndex === this.viewPortStore.maxZIndex;
113
+ }
107
114
  }, {
108
115
  key: "calculateTransform",
109
116
  value: function calculateTransform(transform) {
@@ -160,6 +167,29 @@ export var ViewPortWindowStore = /*#__PURE__*/function (_WindowStore) {
160
167
  func === null || func === void 0 || func();
161
168
  this.fullscreenPos = this.viewPortStore.viewPortRect;
162
169
  }
170
+ }, {
171
+ key: "toggleWindow",
172
+ value: function toggleWindow() {
173
+ switch (this.status) {
174
+ case 'normal':
175
+ if (this.isActive) {
176
+ this.minimizeWindow();
177
+ } else {
178
+ this.normalizeWindow();
179
+ }
180
+ break;
181
+ case 'minimize':
182
+ this.normalizeWindow();
183
+ break;
184
+ case 'fullscreen':
185
+ if (!this.isActive) {
186
+ this.normalizeWindow();
187
+ } else this.minimizeWindow();
188
+ break;
189
+ default:
190
+ break;
191
+ }
192
+ }
163
193
  }, {
164
194
  key: "disabled",
165
195
  get: function get() {
@@ -16,7 +16,7 @@ import { Button, GlobalStyles } from '..';
16
16
  import ViewPort from "./ViewPort";
17
17
  import { ViewPortStore } from "./ViewPortStore";
18
18
  import { ViewPortWindowStore } from "./ViewPortWindow";
19
- var viewPortStore = new ViewPortStore(600, 600, 5);
19
+ var viewPortStore = new ViewPortStore(600, 600, 1);
20
20
  var WindowManager = /*#__PURE__*/function () {
21
21
  function WindowManager() {
22
22
  _classCallCheck(this, WindowManager);
@@ -35,6 +35,16 @@ var WindowManager = /*#__PURE__*/function () {
35
35
  return window.id !== id;
36
36
  });
37
37
  }
38
+ }, {
39
+ key: "toggleWindowIdIsJss",
40
+ value: function toggleWindowIdIsJss() {
41
+ var window = this.windows.find(function (window) {
42
+ return window.id === 'jss';
43
+ });
44
+ if (window) {
45
+ window.toggleWindow();
46
+ }
47
+ }
38
48
  }, {
39
49
  key: "report",
40
50
  get: function get() {
@@ -46,7 +56,7 @@ var WindowManager = /*#__PURE__*/function () {
46
56
  return WindowManager;
47
57
  }();
48
58
  var windowManager = new WindowManager();
49
- var StyledViewPort = styled(ViewPort)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: 1px solid #eee;\n"])));
59
+ var StyledViewPort = styled(ViewPort)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tborder: 1px solid #eee;\n"])));
50
60
  export default observer(function Test() {
51
61
  useEffect(function () {
52
62
  function setWidthHeight() {
@@ -67,13 +77,17 @@ export default observer(function Test() {
67
77
  onClick: function onClick() {
68
78
  windowManager.createWindow();
69
79
  }
70
- }, "\u65B0\u589E"), /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(StyledViewPort, {
80
+ }, "\u65B0\u589E"), /*#__PURE__*/React.createElement(Button, {
81
+ onClick: function onClick() {
82
+ windowManager.toggleWindowIdIsJss();
83
+ }
84
+ }, "\u5207\u6362"), /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(StyledViewPort, {
71
85
  viewPortStore: viewPortStore
72
86
  }, windowManager.windows.map(function (windowStore) {
73
87
  return /*#__PURE__*/React.createElement(ViewPort.Window, {
74
88
  window: windowStore,
75
89
  key: windowStore.id,
76
- title: 'xixi'
90
+ title: windowStore.id
77
91
  }, /*#__PURE__*/React.createElement("div", {
78
92
  style: {
79
93
  height: '2000px',
@@ -6,6 +6,7 @@ export type WindowProps = {
6
6
  title: ReactNode;
7
7
  onFullscreenHandler?: () => void;
8
8
  onFocusHandler?: () => void;
9
+ onShareWindow?: () => void;
9
10
  };
10
11
  declare const Window: ((props: WindowProps) => React.JSX.Element) & {
11
12
  displayName: string;
@@ -1,6 +1,6 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
- import { BorderOutlined, CloseOutlined, CompressOutlined, MinusOutlined } from '@ant-design/icons';
3
+ import { BorderOutlined, CloseOutlined, CompressOutlined, MinusOutlined, ShareAltOutlined } from '@ant-design/icons';
4
4
  import { runInAction } from 'mobx';
5
5
  import { observer } from 'mobx-react-lite';
6
6
  import React, { useEffect, useRef } from 'react';
@@ -11,45 +11,74 @@ var WindowContainer = styled.div.withConfig({
11
11
  shouldForwardProp: function shouldForwardProp(prop) {
12
12
  return !['isMinimize'].includes(prop);
13
13
  }
14
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: ", ";\n position: absolute;\n padding: 0px;\n border-radius: ", ";\n background-color: #fff;\n overflow: hidden;\n border: 1px solid rgba(50, 58, 67, 0.15);\n"])), function (props) {
14
+ })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tbox-shadow: ", ";\n\tposition: absolute;\n\tpadding: 0px;\n\tborder-radius: ", ";\n\tbackground-color: #fff;\n\toverflow: hidden;\n\tborder: 1px solid rgba(50, 58, 67, 0.15);\n"])), function (props) {
15
15
  return props.isFullscreen ? 'none' : 'var(--kep-platform-box-shadow)';
16
16
  }, function (props) {
17
17
  return props.isFullscreen ? '4px' : '12px';
18
18
  });
19
- var WindowEntity = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n"])));
19
+ var WindowEntity = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n"])));
20
20
  var WindowHeader = styled.div.withConfig({
21
21
  shouldForwardProp: function shouldForwardProp(prop) {
22
22
  return !['isDragging'].includes(prop);
23
23
  }
24
- })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 40px;\n padding: 6px 12px;\n line-height: 26px;\n font-size: 16px;\n background-color: var(--kep-platform-color-bg-layout-header);\n transition: margin 0.35s, opacity 0.7s, box-shadow 0.7s;\n position: relative;\n color: #000;\n cursor: move;\n & > h5 {\n color: #000;\n }\n"])));
25
- var WindowHeaderOptions = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n height: 100%;\n display: flex;\n z-index: 3;\n"])));
26
- var WindowBody = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: auto;\n padding: 12px;\n flex: 1;\n"])));
27
- var WindowControllerLeft = styled(WindowController)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n left: 0;\n top: 0;\n bottom: 0;\n cursor: e-resize;\n z-index: 2;\n"])));
28
- var WindowControllerRight = styled(WindowController)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n height: 100%;\n right: 0;\n top: 0;\n bottom: 0;\n cursor: e-resize;\n z-index: 2;\n"])));
29
- var WindowControllerTop = styled(WindowController)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n height: 6px;\n left: 0;\n right: 0;\n top: 0;\n cursor: n-resize;\n z-index: 2;\n"])));
30
- var WindowControllerBottom = styled(WindowController)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n height: 6px;\n left: 0;\n right: 0;\n bottom: 0;\n cursor: n-resize;\n z-index: 2;\n"])));
31
- var WindowControllerLeftTop = styled(WindowController)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n height: 6px;\n left: 0;\n top: 0;\n cursor: nwse-resize;\n z-index: 2;\n"])));
32
- var WindowControllerLeftBottom = styled(WindowController)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n height: 6px;\n left: 0;\n bottom: 0;\n cursor: nesw-resize;\n z-index: 2;\n"])));
33
- var WindowControllerRightTop = styled(WindowController)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n height: 6px;\n right: 0;\n top: 0;\n cursor: nesw-resize;\n z-index: 2;\n"])));
34
- var WindowControllerRightBottom = styled(WindowController)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n position: absolute;\n width: 6px;\n height: 6px;\n right: 0;\n bottom: 0;\n cursor: nwse-resize;\n z-index: 2;\n"])));
24
+ })(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\theight: 40px;\n\tpadding: 6px 12px;\n\tline-height: 26px;\n\tfont-size: 16px;\n\tbackground-color: var(--kep-platform-color-bg-layout-header);\n\ttransition: margin 0.35s, opacity 0.7s, box-shadow 0.7s;\n\tposition: relative;\n\tcolor: #000;\n\tcursor: move;\n\t& > h5 {\n\t\tcolor: #000;\n\t}\n"])));
25
+ var WindowHeaderOptions = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\theight: 100%;\n\tdisplay: flex;\n\tz-index: 3;\n"])));
26
+ var WindowBody = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n\toverflow: auto;\n\tpadding: 12px;\n\tflex: 1;\n"])));
27
+ var WindowControllerLeft = styled(WindowController)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\tleft: 0;\n\ttop: 0;\n\tbottom: 0;\n\tcursor: e-resize;\n\tz-index: 2;\n"])));
28
+ var WindowControllerRight = styled(WindowController)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\theight: 100%;\n\tright: 0;\n\ttop: 0;\n\tbottom: 0;\n\tcursor: e-resize;\n\tz-index: 2;\n"])));
29
+ var WindowControllerTop = styled(WindowController)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 100%;\n\theight: 6px;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\tcursor: n-resize;\n\tz-index: 2;\n"])));
30
+ var WindowControllerBottom = styled(WindowController)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 100%;\n\theight: 6px;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tcursor: n-resize;\n\tz-index: 2;\n"])));
31
+ var WindowControllerLeftTop = styled(WindowController)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\theight: 6px;\n\tleft: 0;\n\ttop: 0;\n\tcursor: nwse-resize;\n\tz-index: 2;\n"])));
32
+ var WindowControllerLeftBottom = styled(WindowController)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\theight: 6px;\n\tleft: 0;\n\tbottom: 0;\n\tcursor: nesw-resize;\n\tz-index: 2;\n"])));
33
+ var WindowControllerRightTop = styled(WindowController)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\theight: 6px;\n\tright: 0;\n\ttop: 0;\n\tcursor: nesw-resize;\n\tz-index: 2;\n"])));
34
+ var WindowControllerRightBottom = styled(WindowController)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 6px;\n\theight: 6px;\n\tright: 0;\n\tbottom: 0;\n\tcursor: nwse-resize;\n\tz-index: 2;\n"])));
35
35
  var Window = observer(function (props) {
36
36
  var window = props.window,
37
37
  title = props.title,
38
38
  children = props.children,
39
39
  onFullscreenHandler = props.onFullscreenHandler,
40
- onFocusHandler = props.onFocusHandler;
40
+ onFocusHandler = props.onFocusHandler,
41
+ onShareWindow = props.onShareWindow;
41
42
  var windowContainerRef = useRef(null);
42
43
  useEffect(function () {
43
- var _windowContainerRef$c;
44
+ var _windowContainerRef$c, _windowContainerRef$c2, _windowContainerRef$c3;
44
45
  function stopWheel(e) {
45
46
  e.stopPropagation();
46
47
  }
48
+ function startTransition(e) {
49
+ e.stopPropagation();
50
+ if (e.target === e.currentTarget) {
51
+ runInAction(function () {
52
+ window.isTransition = true;
53
+ });
54
+ }
55
+ }
56
+ function stopTransition(e) {
57
+ e.stopPropagation();
58
+ if (e.target === e.currentTarget) {
59
+ runInAction(function () {
60
+ window.isTransition = false;
61
+ });
62
+ }
63
+ if (e.target === e.currentTarget && window.isClosed && e.propertyName === 'transform') {
64
+ var _window$onClosedHandl;
65
+ (_window$onClosedHandl = window.onClosedHandler) === null || _window$onClosedHandl === void 0 || _window$onClosedHandl.call(window, window.id);
66
+ }
67
+ }
47
68
  (_windowContainerRef$c = windowContainerRef.current) === null || _windowContainerRef$c === void 0 || _windowContainerRef$c.addEventListener('wheel', stopWheel, {
48
69
  passive: false
49
70
  });
71
+ (_windowContainerRef$c2 = windowContainerRef.current) === null || _windowContainerRef$c2 === void 0 || _windowContainerRef$c2.addEventListener('transitionstart', startTransition, {
72
+ passive: false
73
+ });
74
+ (_windowContainerRef$c3 = windowContainerRef.current) === null || _windowContainerRef$c3 === void 0 || _windowContainerRef$c3.addEventListener('transitionend', stopTransition, {
75
+ passive: false
76
+ });
50
77
  return function () {
51
- var _windowContainerRef$c2;
52
- (_windowContainerRef$c2 = windowContainerRef.current) === null || _windowContainerRef$c2 === void 0 || _windowContainerRef$c2.removeEventListener('wheel', stopWheel);
78
+ var _windowContainerRef$c4, _windowContainerRef$c5, _windowContainerRef$c6;
79
+ (_windowContainerRef$c4 = windowContainerRef.current) === null || _windowContainerRef$c4 === void 0 || _windowContainerRef$c4.removeEventListener('wheel', stopWheel);
80
+ (_windowContainerRef$c5 = windowContainerRef.current) === null || _windowContainerRef$c5 === void 0 || _windowContainerRef$c5.removeEventListener('transitionstart', startTransition);
81
+ (_windowContainerRef$c6 = windowContainerRef.current) === null || _windowContainerRef$c6 === void 0 || _windowContainerRef$c6.removeEventListener('transitionend', stopTransition);
53
82
  };
54
83
  }, []);
55
84
 
@@ -59,18 +88,6 @@ var Window = observer(function (props) {
59
88
  style: window.style,
60
89
  isMinimize: !!window.isMinimize,
61
90
  isFullscreen: !!window.fullscreen,
62
- onTransitionEnd: function onTransitionEnd(e) {
63
- e.stopPropagation();
64
- if (e.target === e.currentTarget) {
65
- runInAction(function () {
66
- window.isTransition = false;
67
- });
68
- }
69
- if (e.target === e.currentTarget && window.isClosed && e.nativeEvent.propertyName === 'transform') {
70
- var _window$onClosedHandl;
71
- (_window$onClosedHandl = window.onClosedHandler) === null || _window$onClosedHandl === void 0 || _window$onClosedHandl.call(window, window.id);
72
- }
73
- },
74
91
  onDoubleClick: function onDoubleClick(e) {
75
92
  e.stopPropagation();
76
93
  },
@@ -126,6 +143,9 @@ var Window = observer(function (props) {
126
143
  e.stopPropagation();
127
144
  }
128
145
  }, /*#__PURE__*/React.createElement(WindowOption, {
146
+ icon: /*#__PURE__*/React.createElement(ShareAltOutlined, null),
147
+ onClick: onShareWindow
148
+ }), /*#__PURE__*/React.createElement(WindowOption, {
129
149
  icon: /*#__PURE__*/React.createElement(MinusOutlined, null),
130
150
  onClick: function onClick() {
131
151
  if (window.disabled) return;
@@ -1,6 +1,7 @@
1
1
  import { Transform } from '@dnd-kit/utilities';
2
2
  import { CSSProperties } from 'react';
3
3
  import { WindowControllerType } from './WindowController';
4
+ type WindowStatus = 'normal' | 'minimize' | 'fullscreen' | 'closed';
4
5
  export default class WindowStore {
5
6
  width: number;
6
7
  height: number;
@@ -42,8 +43,11 @@ export default class WindowStore {
42
43
  endControll(): void;
43
44
  minimizeWindow(): void;
44
45
  normalizeWindow(): void;
46
+ restoreWindow(): void;
45
47
  closeWindow(): void;
46
48
  focus(): void;
49
+ get status(): WindowStatus;
47
50
  get style(): CSSProperties;
48
51
  get info(): string;
49
52
  }
53
+ export {};
@@ -55,6 +55,7 @@ var WindowStore = /*#__PURE__*/function () {
55
55
  fullscreenPos: observable.struct,
56
56
  minimizeWindow: action,
57
57
  normalizeWindow: action,
58
+ restoreWindow: action,
58
59
  closeWindow: action,
59
60
  resetState: action,
60
61
  focus: action,
@@ -69,14 +70,13 @@ var WindowStore = /*#__PURE__*/function () {
69
70
  value: function fullscreenWindow(func) {
70
71
  this.resetState();
71
72
  this.fullscreen = true;
72
- this.isTransition = true;
73
+ this.focus();
73
74
  func === null || func === void 0 || func();
74
75
  }
75
76
  }, {
76
77
  key: "fullscreenExitWindow",
77
78
  value: function fullscreenExitWindow() {
78
79
  this.resetState();
79
- this.isTransition = true;
80
80
  this.fullscreen = false;
81
81
  }
82
82
  }, {
@@ -140,23 +140,27 @@ var WindowStore = /*#__PURE__*/function () {
140
140
  key: "minimizeWindow",
141
141
  value: function minimizeWindow() {
142
142
  this.isMinimize = true;
143
- this.fullscreen = false;
144
- this.isTransition = true;
145
143
  this.resetState();
146
144
  }
147
145
  }, {
148
146
  key: "normalizeWindow",
149
147
  value: function normalizeWindow() {
148
+ this.isMinimize = false;
149
+ this.resetState();
150
+ this.focus();
151
+ }
152
+ }, {
153
+ key: "restoreWindow",
154
+ value: function restoreWindow() {
150
155
  this.isMinimize = false;
151
156
  this.fullscreen = false;
152
- this.isTransition = true;
153
157
  this.resetState();
158
+ this.focus();
154
159
  }
155
160
  }, {
156
161
  key: "closeWindow",
157
162
  value: function closeWindow() {
158
163
  this.isClosed = true;
159
- this.isTransition = true;
160
164
  this.resetState();
161
165
  }
162
166
  }, {
@@ -165,63 +169,79 @@ var WindowStore = /*#__PURE__*/function () {
165
169
  this.zIndex++;
166
170
  }
167
171
  }, {
168
- key: "style",
172
+ key: "status",
169
173
  get: function get() {
170
174
  if (this.isClosed) {
171
- return {
172
- left: this.left + 'px',
173
- top: this.top + 'px',
174
- width: this.width + 'px',
175
- height: this.height + 'px',
176
- zIndex: this.zIndex,
177
- transform: 'scale(0)',
178
- transformOrigin: 'center center',
179
- transition: 'all 0.3s ease-in-out'
180
- };
175
+ return 'closed';
181
176
  }
182
177
  if (this.isMinimize && this.minimizePos) {
183
- return {
184
- left: this.minimizePos.left + 'px',
185
- top: this.minimizePos.top + 'px',
186
- width: this.width + 'px',
187
- height: this.width + 'px',
188
- zIndex: this.zIndex,
189
- transform: 'scale(0)',
190
- transformOrigin: 'left top',
191
- transition: 'all 0.3s ease-in-out'
192
- };
178
+ return 'minimize';
193
179
  }
194
180
  if (this.fullscreen) {
195
- return {
196
- left: this.fullscreenPos.left + 'px',
197
- top: this.fullscreenPos.top + 'px',
198
- width: this.fullscreenPos.width + 'px',
199
- height: this.fullscreenPos.height + 'px',
200
- zIndex: this.zIndex,
201
- transform: 'none',
202
- transition: 'all 0.3s ease-in-out'
203
- };
181
+ return 'fullscreen';
204
182
  }
205
- if (this.isMoving || this.isResizing) {
206
- return {
207
- left: this.left + 'px',
208
- top: this.top + 'px',
209
- width: this.width + 'px',
210
- height: this.height + 'px',
211
- zIndex: this.zIndex,
212
- transform: 'none',
213
- transition: 'none'
214
- };
183
+ return 'normal';
184
+ }
185
+ }, {
186
+ key: "style",
187
+ get: function get() {
188
+ switch (this.status) {
189
+ case 'closed':
190
+ return {
191
+ left: this.left + 'px',
192
+ top: this.top + 'px',
193
+ width: this.width + 'px',
194
+ height: this.height + 'px',
195
+ zIndex: this.zIndex,
196
+ transform: 'scale(0)',
197
+ transformOrigin: 'center center',
198
+ transition: 'all 0.3s ease-in-out'
199
+ };
200
+ case 'minimize':
201
+ return {
202
+ left: this.minimizePos.left + 'px',
203
+ top: this.minimizePos.top + 'px',
204
+ width: this.width + 'px',
205
+ height: this.width + 'px',
206
+ zIndex: this.zIndex,
207
+ transform: 'scale(0)',
208
+ transformOrigin: 'left top',
209
+ transition: 'all 0.3s ease-in-out'
210
+ };
211
+ case 'fullscreen':
212
+ return {
213
+ left: this.fullscreenPos.left + 'px',
214
+ top: this.fullscreenPos.top + 'px',
215
+ width: this.fullscreenPos.width + 'px',
216
+ height: this.fullscreenPos.height + 'px',
217
+ zIndex: this.zIndex,
218
+ transform: 'none',
219
+ transition: 'all 0.3s ease-in-out'
220
+ };
221
+ case 'normal':
222
+ default:
223
+ if (this.isMoving || this.isResizing) {
224
+ return {
225
+ left: this.left + 'px',
226
+ top: this.top + 'px',
227
+ width: this.width + 'px',
228
+ height: this.height + 'px',
229
+ zIndex: this.zIndex,
230
+ transform: 'none',
231
+ transition: 'none'
232
+ };
233
+ } else {
234
+ return {
235
+ left: this.left + 'px',
236
+ top: this.top + 'px',
237
+ width: this.width + 'px',
238
+ height: this.height + 'px',
239
+ zIndex: this.zIndex,
240
+ transform: 'none',
241
+ transition: 'all 0.3s ease-in-out'
242
+ };
243
+ }
215
244
  }
216
- return {
217
- left: this.left + 'px',
218
- top: this.top + 'px',
219
- width: this.width + 'px',
220
- height: this.height + 'px',
221
- zIndex: this.zIndex,
222
- transform: 'none',
223
- transition: 'all 0.3s ease-in-out'
224
- };
225
245
  }
226
246
  }, {
227
247
  key: "info",
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { GlobalStyles } from "../__styles";
5
5
  import Window from "./Window";
6
6
  import { WindowStore } from "./index";
7
+ import { Button } from "../Button";
7
8
  export default observer(function Test() {
8
9
  var windowStore = useLocalObservable(function () {
9
10
  return new WindowStore('jss');
@@ -15,7 +16,11 @@ export default observer(function Test() {
15
16
  position: 'relative',
16
17
  height: '1000px'
17
18
  }
18
- }, /*#__PURE__*/React.createElement(Window, {
19
+ }, /*#__PURE__*/React.createElement(Button, {
20
+ onClick: function onClick() {
21
+ windowStore.normalizeWindow();
22
+ }
23
+ }, "\u6B63\u5E38\u5316"), /*#__PURE__*/React.createElement(Window, {
19
24
  window: windowStore,
20
25
  key: windowStore.id,
21
26
  title: 'xixi'
@@ -24,5 +29,5 @@ export default observer(function Test() {
24
29
  backgroundColor: 'pink',
25
30
  width: '1000px'
26
31
  }
27
- }, "121asdjklfjikasdhujikfh awkldjnfhb qweuijfklasdbnhuifwoqnf jkhweuof jkhwuifhqwdh jknwjkd klfhwdujih fuoqwjn klnfkmsdhnajikfh jklasdkl jdklajkl jfklasdjkl jkldjiof1huihfklnsdjklf2", /*#__PURE__*/React.createElement("br", null), "asdjklfjasdklj kljasdkldjf iawhjio jkldjnsajhnfujihnfffffffffffffffffffffffffffffffffffffffffffffffffklasdnmkdlf djkafljkdlfjkl;asdf fjklasdjkl;fjdaskl;jfk;asdf asdjfkasdjkf;f asjfiko;djaskl;fjas fjikasdjfk;asd", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "djklasdjkl;jaksdjkl; askdjkl jaksdjk l;asd"))));
32
+ }, "\u7A97\u4F53\u72B6\u6001\uFF1A", windowStore.status, /*#__PURE__*/React.createElement("br", null), "\u7A97\u4F53\u662F\u5426\u7981\u64CD\u4F5C\uFF1A", windowStore.disabled ? 'disabled' : 'enabled', /*#__PURE__*/React.createElement("br", null), "121asdjklfjikasdhujikfh awkldjnfhb qweuijfklasdbnhuifwoqnf jkhweuof jkhwuifhqwdh jknwjkd klfhwdujih fuoqwjn klnfkmsdhnajikfh jklasdkl jdklajkl jfklasdjkl jkldjiof1huihfklnsdjklf2", /*#__PURE__*/React.createElement("br", null), "asdjklfjasdklj kljasdkldjf iawhjio jkldjnsajhnfujihnfffffffffffffffffffffffffffffffffffffffffffffffffklasdnmkdlf djkafljkdlfjkl;asdf fjklasdjkl;fjdaskl;jfk;asdf asdjfkasdjkf;f asjfiko;djaskl;fjas fjikasdjfk;asd", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "djklasdjkl;jaksdjkl; askdjkl jaksdjk l;asd"))));
28
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -86,5 +86,5 @@
86
86
  "authors": [
87
87
  "less-step-jss 1599925910@qq.com"
88
88
  ],
89
- "gitHead": "ce7e7adcdcf7ef892a49c26794c1be61da0f18dd"
89
+ "gitHead": "24bd8f4141e73bce455a993625a05cb91b10fc25"
90
90
  }