@oceanbase/ui 0.4.10 → 0.4.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.
- package/dist/ui.min.js +1 -1
- package/es/Action/Item.d.ts +2 -2
- package/es/DateRanger/PickerPanel.d.ts +1 -1
- package/es/Dialog/Anchor.d.ts +1 -1
- package/es/Dialog/EventProxy.d.ts +1 -1
- package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/es/Highlight/HighlightCell.d.ts +1 -1
- package/es/Highlight/JsonView.d.ts +1 -1
- package/es/Highlight/index.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/NavMenu/index.d.ts +1 -1
- package/es/PageContainer/ItemRender.d.ts +1 -1
- package/es/Ranger/QuickPicker.d.ts +1 -1
- package/es/SideTip/Dragger.d.ts +2 -1
- package/es/SideTip/Dragger.js +6 -2
- package/es/SideTip/IconLoading.d.ts +1 -1
- package/es/SideTip/index.d.ts +6 -0
- package/es/SideTip/index.js +3 -0
- package/lib/Action/Item.d.ts +2 -2
- package/lib/DateRanger/PickerPanel.d.ts +1 -1
- package/lib/Dialog/Anchor.d.ts +1 -1
- package/lib/Dialog/EventProxy.d.ts +1 -1
- package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/lib/Highlight/HighlightCell.d.ts +1 -1
- package/lib/Highlight/JsonView.d.ts +1 -1
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/NavMenu/index.d.ts +1 -1
- package/lib/PageContainer/ItemRender.d.ts +1 -1
- package/lib/Ranger/QuickPicker.d.ts +1 -1
- package/lib/SideTip/Dragger.d.ts +2 -1
- package/lib/SideTip/Dragger.js +6 -2
- package/lib/SideTip/IconLoading.d.ts +1 -1
- package/lib/SideTip/index.d.ts +6 -0
- package/lib/SideTip/index.js +3 -1
- package/package.json +2 -2
package/es/Action/Item.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
|
16
16
|
state: {
|
|
17
17
|
loading: boolean;
|
|
18
18
|
};
|
|
19
|
-
render(): import("@emotion/react/jsx-
|
|
19
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
22
22
|
static __DISPLAY_NAME: string;
|
|
@@ -24,5 +24,5 @@ export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
};
|
|
27
|
-
render(): import("@emotion/react/jsx-
|
|
27
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
28
28
|
}
|
|
@@ -19,5 +19,5 @@ export interface PickerPanelProps {
|
|
|
19
19
|
disabledDate: any;
|
|
20
20
|
locale: any;
|
|
21
21
|
}
|
|
22
|
-
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-
|
|
22
|
+
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
23
23
|
export default InternalPickerPanel;
|
package/es/Dialog/Anchor.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class Anchor extends React.Component<IAnchorProps> {
|
|
|
15
15
|
onDragStart: (event: PointerEvent) => void;
|
|
16
16
|
onDragMove: (event: PointerEvent) => void;
|
|
17
17
|
onDragEnd: (event: PointerEvent) => void;
|
|
18
|
-
render(): import("@emotion/react/jsx-
|
|
18
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/jsx-
|
|
2
|
+
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface DiffCellsProps {
|
|
|
14
14
|
onMouseDown?: React.MouseEventHandler;
|
|
15
15
|
hashId?: string;
|
|
16
16
|
}
|
|
17
|
-
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/jsx-
|
|
17
|
+
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface HighlightCellProps {
|
|
|
15
15
|
lineNumber?: boolean;
|
|
16
16
|
hashId?: string;
|
|
17
17
|
}
|
|
18
|
-
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/jsx-
|
|
18
|
+
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -3,5 +3,5 @@ import './index.less';
|
|
|
3
3
|
export interface JsonViewProps extends HighlightProps {
|
|
4
4
|
json: object;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-
|
|
6
|
+
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
7
7
|
export default _default;
|
package/es/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "go" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "go" | "java" | "python" | "sql" | "json" | "javascript" | "typescript" | "groovy" | "bash" | "cpp" | "http" | "markdown" | "nginx" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/es/IconFont/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface IconFontProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Please use `@oceanbase/icons` instead.
|
|
10
10
|
*/
|
|
11
|
-
declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-
|
|
11
|
+
declare const IconFont: (props: IconFontProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
12
12
|
export default IconFont;
|
package/es/NavMenu/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface NavMenuProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
export default _default;
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
17
17
|
export default _default;
|
package/es/SideTip/Dragger.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface DraggableProps {
|
|
|
17
17
|
id?: string;
|
|
18
18
|
getPopupContainer?: () => HTMLElement;
|
|
19
19
|
children?: any;
|
|
20
|
+
draggable?: boolean;
|
|
20
21
|
}
|
|
21
22
|
interface DraggableState {
|
|
22
23
|
dragged?: boolean;
|
|
@@ -40,6 +41,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
40
41
|
handleMouseDown: (e: any) => void;
|
|
41
42
|
handleMouseMove: (e: any) => void;
|
|
42
43
|
handleMouseUp: (e: any) => void;
|
|
43
|
-
render(): import("@emotion/react/jsx-
|
|
44
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
44
45
|
}
|
|
45
46
|
export default Draggable;
|
package/es/SideTip/Dragger.js
CHANGED
|
@@ -219,8 +219,10 @@ var Draggable = /*#__PURE__*/function (_React$Component) {
|
|
|
219
219
|
_createClass(Draggable, [{
|
|
220
220
|
key: "componentDidMount",
|
|
221
221
|
value: function componentDidMount() {
|
|
222
|
+
var _this$props$draggable = this.props.draggable,
|
|
223
|
+
draggable = _this$props$draggable === void 0 ? true : _this$props$draggable;
|
|
222
224
|
window.addEventListener('resize', this.handleResize, false);
|
|
223
|
-
window.addEventListener('mousemove', this.handleMouseMove, false);
|
|
225
|
+
if (draggable) window.addEventListener('mousemove', this.handleMouseMove, false);
|
|
224
226
|
window.addEventListener('mouseup', this.handleMouseUp, false);
|
|
225
227
|
window.addEventListener('load', this.overlapDetection, false);
|
|
226
228
|
var _this$nodeRef$current = this.nodeRef.current.getBoundingClientRect(),
|
|
@@ -232,8 +234,10 @@ var Draggable = /*#__PURE__*/function (_React$Component) {
|
|
|
232
234
|
}, {
|
|
233
235
|
key: "componentWillUnmount",
|
|
234
236
|
value: function componentWillUnmount() {
|
|
237
|
+
var _this$props$draggable2 = this.props.draggable,
|
|
238
|
+
draggable = _this$props$draggable2 === void 0 ? true : _this$props$draggable2;
|
|
235
239
|
window.removeEventListener('load', this.overlapDetection, false);
|
|
236
|
-
window.removeEventListener('mousemove', this.handleMouseMove, false);
|
|
240
|
+
if (draggable) window.removeEventListener('mousemove', this.handleMouseMove, false);
|
|
237
241
|
window.removeEventListener('mouseup', this.handleMouseUp, false);
|
|
238
242
|
window.removeEventListener('resize', this.handleResize, false);
|
|
239
243
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/jsx-
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/es/SideTip/index.d.ts
CHANGED
|
@@ -147,6 +147,12 @@ export interface SideTipProps extends LocaleWrapperProps {
|
|
|
147
147
|
*/
|
|
148
148
|
getPopupContainer?: () => HTMLElement;
|
|
149
149
|
children?: any;
|
|
150
|
+
/**
|
|
151
|
+
* @title 是否可拖拽
|
|
152
|
+
* @description 是否可拖拽
|
|
153
|
+
* @default true
|
|
154
|
+
*/
|
|
155
|
+
draggable?: boolean;
|
|
150
156
|
}
|
|
151
157
|
export interface SideTipState {
|
|
152
158
|
hide?: boolean;
|
package/es/SideTip/index.js
CHANGED
|
@@ -54,6 +54,8 @@ var SideTip = function SideTip(props) {
|
|
|
54
54
|
hideable = _props$hideable === void 0 ? true : _props$hideable,
|
|
55
55
|
_props$disabled = props.disabled,
|
|
56
56
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
57
|
+
_props$draggable = props.draggable,
|
|
58
|
+
draggable = _props$draggable === void 0 ? true : _props$draggable,
|
|
57
59
|
getPopupContainer = props.getPopupContainer;
|
|
58
60
|
var _useState = useState(hideable ? defaultHide === undefined ? window.localStorage.getItem(getLocalStorageKey(id)) === 'true' : !!defaultHide : false),
|
|
59
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -175,6 +177,7 @@ var SideTip = function SideTip(props) {
|
|
|
175
177
|
onDrag: onDrag,
|
|
176
178
|
getPopupContainer: getPopupContainer,
|
|
177
179
|
className: className,
|
|
180
|
+
draggable: draggable,
|
|
178
181
|
children: [tooltip && tooltip.title ? /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, tooltip), {}, {
|
|
179
182
|
getPopupContainer: function getPopupContainer() {
|
|
180
183
|
return buttonRef.current;
|
package/lib/Action/Item.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
|
16
16
|
state: {
|
|
17
17
|
loading: boolean;
|
|
18
18
|
};
|
|
19
|
-
render(): import("@emotion/react/jsx-
|
|
19
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
22
22
|
static __DISPLAY_NAME: string;
|
|
@@ -24,5 +24,5 @@ export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
};
|
|
27
|
-
render(): import("@emotion/react/jsx-
|
|
27
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
28
28
|
}
|
|
@@ -19,5 +19,5 @@ export interface PickerPanelProps {
|
|
|
19
19
|
disabledDate: any;
|
|
20
20
|
locale: any;
|
|
21
21
|
}
|
|
22
|
-
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-
|
|
22
|
+
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
23
23
|
export default InternalPickerPanel;
|
package/lib/Dialog/Anchor.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class Anchor extends React.Component<IAnchorProps> {
|
|
|
15
15
|
onDragStart: (event: PointerEvent) => void;
|
|
16
16
|
onDragMove: (event: PointerEvent) => void;
|
|
17
17
|
onDragEnd: (event: PointerEvent) => void;
|
|
18
|
-
render(): import("@emotion/react/jsx-
|
|
18
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/jsx-
|
|
2
|
+
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface DiffCellsProps {
|
|
|
14
14
|
onMouseDown?: React.MouseEventHandler;
|
|
15
15
|
hashId?: string;
|
|
16
16
|
}
|
|
17
|
-
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/jsx-
|
|
17
|
+
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface HighlightCellProps {
|
|
|
15
15
|
lineNumber?: boolean;
|
|
16
16
|
hashId?: string;
|
|
17
17
|
}
|
|
18
|
-
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/jsx-
|
|
18
|
+
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -3,5 +3,5 @@ import './index.less';
|
|
|
3
3
|
export interface JsonViewProps extends HighlightProps {
|
|
4
4
|
json: object;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-
|
|
6
|
+
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
7
7
|
export default _default;
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "go" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "go" | "java" | "python" | "sql" | "json" | "javascript" | "typescript" | "groovy" | "bash" | "cpp" | "http" | "markdown" | "nginx" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/lib/IconFont/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface IconFontProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Please use `@oceanbase/icons` instead.
|
|
10
10
|
*/
|
|
11
|
-
declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-
|
|
11
|
+
declare const IconFont: (props: IconFontProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
12
12
|
export default IconFont;
|
package/lib/NavMenu/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface NavMenuProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
export default _default;
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
17
17
|
export default _default;
|
package/lib/SideTip/Dragger.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface DraggableProps {
|
|
|
17
17
|
id?: string;
|
|
18
18
|
getPopupContainer?: () => HTMLElement;
|
|
19
19
|
children?: any;
|
|
20
|
+
draggable?: boolean;
|
|
20
21
|
}
|
|
21
22
|
interface DraggableState {
|
|
22
23
|
dragged?: boolean;
|
|
@@ -40,6 +41,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
40
41
|
handleMouseDown: (e: any) => void;
|
|
41
42
|
handleMouseMove: (e: any) => void;
|
|
42
43
|
handleMouseUp: (e: any) => void;
|
|
43
|
-
render(): import("@emotion/react/jsx-
|
|
44
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
44
45
|
}
|
|
45
46
|
export default Draggable;
|
package/lib/SideTip/Dragger.js
CHANGED
|
@@ -198,8 +198,10 @@ var Draggable = class extends import_react.default.Component {
|
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
componentDidMount() {
|
|
201
|
+
const { draggable = true } = this.props;
|
|
201
202
|
window.addEventListener("resize", this.handleResize, false);
|
|
202
|
-
|
|
203
|
+
if (draggable)
|
|
204
|
+
window.addEventListener("mousemove", this.handleMouseMove, false);
|
|
203
205
|
window.addEventListener("mouseup", this.handleMouseUp, false);
|
|
204
206
|
window.addEventListener("load", this.overlapDetection, false);
|
|
205
207
|
const { width } = this.nodeRef.current.getBoundingClientRect();
|
|
@@ -208,8 +210,10 @@ var Draggable = class extends import_react.default.Component {
|
|
|
208
210
|
});
|
|
209
211
|
}
|
|
210
212
|
componentWillUnmount() {
|
|
213
|
+
const { draggable = true } = this.props;
|
|
211
214
|
window.removeEventListener("load", this.overlapDetection, false);
|
|
212
|
-
|
|
215
|
+
if (draggable)
|
|
216
|
+
window.removeEventListener("mousemove", this.handleMouseMove, false);
|
|
213
217
|
window.removeEventListener("mouseup", this.handleMouseUp, false);
|
|
214
218
|
window.removeEventListener("resize", this.handleResize, false);
|
|
215
219
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/jsx-
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/lib/SideTip/index.d.ts
CHANGED
|
@@ -147,6 +147,12 @@ export interface SideTipProps extends LocaleWrapperProps {
|
|
|
147
147
|
*/
|
|
148
148
|
getPopupContainer?: () => HTMLElement;
|
|
149
149
|
children?: any;
|
|
150
|
+
/**
|
|
151
|
+
* @title 是否可拖拽
|
|
152
|
+
* @description 是否可拖拽
|
|
153
|
+
* @default true
|
|
154
|
+
*/
|
|
155
|
+
draggable?: boolean;
|
|
150
156
|
}
|
|
151
157
|
export interface SideTipState {
|
|
152
158
|
hide?: boolean;
|
package/lib/SideTip/index.js
CHANGED
|
@@ -71,6 +71,7 @@ var SideTip = (props) => {
|
|
|
71
71
|
id,
|
|
72
72
|
hideable = true,
|
|
73
73
|
disabled = false,
|
|
74
|
+
draggable = true,
|
|
74
75
|
getPopupContainer
|
|
75
76
|
} = props;
|
|
76
77
|
const [hide, setHide] = (0, import_react.useState)(
|
|
@@ -169,7 +170,8 @@ var SideTip = (props) => {
|
|
|
169
170
|
onDragEnd,
|
|
170
171
|
onDrag,
|
|
171
172
|
getPopupContainer,
|
|
172
|
-
className
|
|
173
|
+
className,
|
|
174
|
+
draggable
|
|
173
175
|
},
|
|
174
176
|
tooltip && tooltip.title ? /* @__PURE__ */ import_react.default.createElement(import_design.Tooltip, { ...tooltip, getPopupContainer: () => buttonRef.current }, BadgeButton) : BadgeButton,
|
|
175
177
|
hideable && hideIcon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": ">=16.9.0",
|
|
72
72
|
"react-dom": ">=16.9.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "94fed4fc95ce62f539ccc9f6c57a746d4a5e0f57"
|
|
75
75
|
}
|