@oceanbase/ui 0.2.30 → 0.2.32
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/Group.js +1 -0
- package/es/Action/index.d.ts +1 -0
- package/es/BasicLayout/Header.js +1 -1
- package/es/BasicLayout/style/index.js +4 -3
- package/es/BatchOperationBar/index.d.ts +1 -1
- package/es/ContentWithQuestion/index.js +0 -2
- package/es/Dialog/index.d.ts +5 -5
- package/es/DocDialog/index.d.ts +4 -4
- package/es/FooterToolbar/index.d.ts +5 -0
- package/es/FooterToolbar/index.js +30 -0
- package/es/FooterToolbar/style/index.d.ts +9 -0
- package/es/FooterToolbar/style/index.js +35 -0
- package/es/Highlight/index.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/Login/index.js +1 -1
- package/es/Lottie/index.d.ts +2 -15
- package/es/Lottie/index.js +1 -65
- package/es/NavMenu/index.d.ts +5 -5
- package/es/PageContainer/index.js +3 -3
- package/es/PageContainer/style/index.js +10 -17
- package/es/Ranger/Ranger.d.ts +14 -0
- package/es/TreeSearch/index.d.ts +2 -2
- package/es/Welcome/step.js +2 -2
- package/es/index.d.ts +26 -4
- package/es/index.js +5 -4
- package/lib/Action/Group.js +1 -0
- package/lib/Action/index.d.ts +1 -0
- package/lib/BasicLayout/Header.js +1 -1
- package/lib/BasicLayout/style/index.js +4 -3
- package/lib/BatchOperationBar/index.d.ts +1 -1
- package/lib/ContentWithQuestion/index.js +0 -1
- package/lib/Dialog/index.d.ts +5 -5
- package/lib/DocDialog/index.d.ts +4 -4
- package/lib/FooterToolbar/index.d.ts +5 -0
- package/lib/FooterToolbar/index.js +52 -0
- package/lib/FooterToolbar/style/index.d.ts +9 -0
- package/lib/FooterToolbar/style/index.js +59 -0
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/Login/index.js +1 -1
- package/lib/Lottie/index.d.ts +2 -15
- package/lib/Lottie/index.js +3 -56
- package/lib/NavMenu/index.d.ts +5 -5
- package/lib/PageContainer/index.js +3 -3
- package/lib/PageContainer/style/index.js +5 -16
- package/lib/Ranger/Ranger.d.ts +14 -0
- package/lib/TreeSearch/index.d.ts +2 -2
- package/lib/Welcome/step.js +2 -2
- package/lib/index.d.ts +26 -4
- package/lib/index.js +6 -3
- package/package.json +5 -6
package/es/Action/Group.js
CHANGED
|
@@ -88,6 +88,7 @@ export default (function (_ref2) {
|
|
|
88
88
|
size: 8,
|
|
89
89
|
children: [mainActions.map(function (action) {
|
|
90
90
|
return /*#__PURE__*/React.cloneElement(action, _objectSpread(_objectSpread({}, action.props), {}, {
|
|
91
|
+
key: action.key,
|
|
91
92
|
enableLoading: enableLoading,
|
|
92
93
|
disabled: isBoolean(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key)
|
|
93
94
|
}));
|
package/es/Action/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActionButton, ActionLink } from './Item';
|
|
2
|
+
export type { GroupProps as ActionGroupProps } from './Group';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
Group: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: import("./Group").GroupProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
4
5
|
Button: typeof ActionButton;
|
package/es/BasicLayout/Header.js
CHANGED
|
@@ -257,7 +257,7 @@ var Header = function Header(_ref) {
|
|
|
257
257
|
className: "".concat(prefixCls, "-copyright"),
|
|
258
258
|
children: [locale.right, " ", /*#__PURE__*/_jsx(CopyrightOutlined, {}), " ", moment().year(), " ", locale.company]
|
|
259
259
|
}), /*#__PURE__*/_jsx("img", {
|
|
260
|
-
src: theme.isDark ? logoImgDark : logoImg,
|
|
260
|
+
src: theme !== null && theme !== void 0 && theme.isDark ? logoImgDark : logoImg,
|
|
261
261
|
alt: "",
|
|
262
262
|
style: {
|
|
263
263
|
height: 12
|
|
@@ -8,6 +8,7 @@ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
|
8
8
|
export var genBasicLayoutStyle = function genBasicLayoutStyle(token) {
|
|
9
9
|
var _objectSpread2, _$concat2, _$concat5, _$concat8, _$concat$concat$conca2, _$concat9, _$concat12, _$concat13, _$concat14, _$concat16, _$concat17, _$concat18, _$concat19, _mediaMinWidth$, _$concat22, _objectSpread3;
|
|
10
10
|
var antCls = token.antCls,
|
|
11
|
+
iconCls = token.iconCls,
|
|
11
12
|
componentCls = token.componentCls,
|
|
12
13
|
proComponentsCls = token.proComponentsCls,
|
|
13
14
|
colorBgLayout = token.colorBgLayout,
|
|
@@ -87,7 +88,7 @@ export var genBasicLayoutStyle = function genBasicLayoutStyle(token) {
|
|
|
87
88
|
borderRadius: '10px',
|
|
88
89
|
cursor: 'pointer',
|
|
89
90
|
opacity: 0
|
|
90
|
-
},
|
|
91
|
+
}, iconCls, {
|
|
91
92
|
fontSize: 'px',
|
|
92
93
|
display: 'block',
|
|
93
94
|
lineHeight: '42px'
|
|
@@ -104,7 +105,7 @@ export var genBasicLayoutStyle = function genBasicLayoutStyle(token) {
|
|
|
104
105
|
marginLeft: 'auto',
|
|
105
106
|
color: colorText,
|
|
106
107
|
backgroundColor: 'transparent'
|
|
107
|
-
},
|
|
108
|
+
}, iconCls, {
|
|
108
109
|
// 图标尺寸设为 18px,因为设计侧给到的图标内侧有间距,需要适当加大尺寸
|
|
109
110
|
width: '18px',
|
|
110
111
|
height: '18px',
|
|
@@ -116,7 +117,7 @@ export var genBasicLayoutStyle = function genBasicLayoutStyle(token) {
|
|
|
116
117
|
marginLeft: 'auto',
|
|
117
118
|
color: colorText,
|
|
118
119
|
backgroundColor: 'transparent'
|
|
119
|
-
},
|
|
120
|
+
}, iconCls, {
|
|
120
121
|
// 图标尺寸设为 18px,因为设计侧给到的图标内侧有间距,需要适当加大尺寸
|
|
121
122
|
width: '18px',
|
|
122
123
|
height: '18px',
|
|
@@ -10,7 +10,7 @@ export interface AlertRenderParams {
|
|
|
10
10
|
export type RenderFun = ((props: AlertRenderParams) => ReactNode) | false;
|
|
11
11
|
export type Vertical = 'top' | 'bottom';
|
|
12
12
|
export type Horizontal = 'left' | 'right';
|
|
13
|
-
export interface
|
|
13
|
+
export interface BatchOperationBarProps extends LocaleWrapperProps {
|
|
14
14
|
width?: number | string;
|
|
15
15
|
title?: ReactNode;
|
|
16
16
|
selectedRows?: any[];
|
|
@@ -39,8 +39,6 @@ var ContentWithQuestion = function ContentWithQuestion(_ref) {
|
|
|
39
39
|
})) : null;
|
|
40
40
|
};
|
|
41
41
|
return wrapSSR( /*#__PURE__*/_jsx("span", _objectSpread(_objectSpread({
|
|
42
|
-
// eslint-disable-next-line react/no-unknown-property
|
|
43
|
-
prefixCls: customizePrefixCls,
|
|
44
42
|
className: classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-item"), true), _defineProperty(_classNames, className, !!className), _classNames))
|
|
45
43
|
}, restProps), {}, {
|
|
46
44
|
children: /*#__PURE__*/_jsxs(Space, {
|
package/es/Dialog/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
3
3
|
import './index.less';
|
|
4
|
-
export interface
|
|
4
|
+
export interface DialogLocale {
|
|
5
5
|
helpDocument: string;
|
|
6
6
|
openHelpCenter: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface DialogExtLink {
|
|
9
9
|
text?: string;
|
|
10
10
|
link: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface DialogProps extends LocaleWrapperProps {
|
|
13
13
|
className?: string;
|
|
14
14
|
visible?: boolean;
|
|
15
15
|
children?: React.ReactNode;
|
|
@@ -26,8 +26,8 @@ export interface IDialogProps extends LocaleWrapperProps {
|
|
|
26
26
|
resizable?: boolean;
|
|
27
27
|
draggable?: boolean;
|
|
28
28
|
enableMaximization?: boolean;
|
|
29
|
-
locale?:
|
|
30
|
-
extLink?:
|
|
29
|
+
locale?: DialogLocale;
|
|
30
|
+
extLink?: DialogExtLink;
|
|
31
31
|
setRootWidth?: (newWidth: string) => void;
|
|
32
32
|
isEmbed?: boolean;
|
|
33
33
|
}
|
package/es/DocDialog/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LocaleWrapperProps } from '../locale/LocaleWrapper';
|
|
2
|
-
interface
|
|
2
|
+
interface DialogConfig {
|
|
3
3
|
height?: number;
|
|
4
4
|
width?: number;
|
|
5
5
|
top?: number;
|
|
@@ -7,13 +7,13 @@ interface IDialogConfig {
|
|
|
7
7
|
min?: [number, number];
|
|
8
8
|
max?: [number, number];
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface DocDialogProps extends LocaleWrapperProps {
|
|
11
11
|
className?: string;
|
|
12
12
|
title?: string;
|
|
13
13
|
fallbackUrl: string;
|
|
14
14
|
docUrls?: Record<string, string>;
|
|
15
|
-
embedConfig?:
|
|
16
|
-
normalConfig?:
|
|
15
|
+
embedConfig?: DialogConfig;
|
|
16
|
+
normalConfig?: DialogConfig;
|
|
17
17
|
normalModeWidth?: number;
|
|
18
18
|
defautTop?: number;
|
|
19
19
|
visible: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FooterToolbarProps as AntFooterToolbarProps } from '@ant-design/pro-layout/es/components/FooterToolbar';
|
|
3
|
+
export type FooterToolbarProps = AntFooterToolbarProps;
|
|
4
|
+
declare const FooterToolbar: React.FC<FooterToolbarProps>;
|
|
5
|
+
export default FooterToolbar;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["portalDom", "prefixCls"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import React, { useContext } from 'react';
|
|
11
|
+
import { FooterToolbar as AntFooterToolbar } from '@ant-design/pro-components';
|
|
12
|
+
import { ConfigProvider } from '@oceanbase/design';
|
|
13
|
+
import useStyle from "./style";
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
var FooterToolbar = function FooterToolbar(_ref) {
|
|
16
|
+
var _ref$portalDom = _ref.portalDom,
|
|
17
|
+
portalDom = _ref$portalDom === void 0 ? false : _ref$portalDom,
|
|
18
|
+
customizePrefixCls = _ref.prefixCls,
|
|
19
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
21
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
22
|
+
var prefixCls = getPrefixCls('pro-footer-bar', customizePrefixCls);
|
|
23
|
+
var _useStyle = useStyle(prefixCls),
|
|
24
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
25
|
+
return wrapSSR( /*#__PURE__*/_jsx(AntFooterToolbar, _objectSpread({
|
|
26
|
+
portalDom: portalDom,
|
|
27
|
+
prefixCls: customizePrefixCls
|
|
28
|
+
}, restProps)));
|
|
29
|
+
};
|
|
30
|
+
export default FooterToolbar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FooterToolBarToken } from '@ant-design/pro-layout/es/components/FooterToolbar/style';
|
|
3
|
+
import type { GenerateStyle } from '@oceanbase/design/es/theme';
|
|
4
|
+
export declare const genFooterToolbarStyle: GenerateStyle<FooterToolBarToken>;
|
|
5
|
+
declare const _default: (prefixCls: string) => {
|
|
6
|
+
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
|
|
7
|
+
hashId: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
|
+
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
6
|
+
export var genFooterToolbarStyle = function genFooterToolbarStyle(token) {
|
|
7
|
+
var _$concat;
|
|
8
|
+
var antCls = token.antCls,
|
|
9
|
+
componentCls = token.componentCls,
|
|
10
|
+
colorBgBase = token.colorBgBase,
|
|
11
|
+
borderRadius = token.borderRadius,
|
|
12
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
|
13
|
+
controlHeightLG = token.controlHeightLG;
|
|
14
|
+
var height = controlHeightLG;
|
|
15
|
+
var lineHeight = "".concat(controlHeightLG, "px");
|
|
16
|
+
return _defineProperty({}, "".concat(componentCls), (_$concat = {
|
|
17
|
+
width: '100%',
|
|
18
|
+
backgroundColor: colorBgBase,
|
|
19
|
+
borderRadius: borderRadius,
|
|
20
|
+
boxShadow: boxShadowSecondary,
|
|
21
|
+
borderBlockStart: 'none'
|
|
22
|
+
}, _defineProperty(_$concat, "".concat(antCls, "-btn:not(").concat(antCls, "-input-search-button)"), {
|
|
23
|
+
minWidth: 68,
|
|
24
|
+
height: height
|
|
25
|
+
}), _defineProperty(_$concat, "".concat(antCls, "-radio-button-wrapper"), {
|
|
26
|
+
height: height,
|
|
27
|
+
lineHeight: lineHeight
|
|
28
|
+
}), _$concat));
|
|
29
|
+
};
|
|
30
|
+
export default (function (prefixCls) {
|
|
31
|
+
var useStyle = genComponentStyleHook('FooterToolbar', function (token) {
|
|
32
|
+
return [genFooterToolbarStyle(token)];
|
|
33
|
+
});
|
|
34
|
+
return useStyle(prefixCls);
|
|
35
|
+
});
|
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" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "bash" | "json" | "java" | "go" | "javascript" | "typescript" | "groovy" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "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
package/es/Login/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var Login = function Login(props) {
|
|
|
182
182
|
paddingLeft: showAuthCode ? 96 : 0
|
|
183
183
|
},
|
|
184
184
|
children: /*#__PURE__*/_jsx("img", {
|
|
185
|
-
src: theme.isDark ? logoImgDark : logoImg,
|
|
185
|
+
src: theme !== null && theme !== void 0 && theme.isDark ? logoImgDark : logoImg,
|
|
186
186
|
alt: "",
|
|
187
187
|
className: "".concat(prefix, "-watermark")
|
|
188
188
|
})
|
package/es/Lottie/index.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export interface LottieProps extends Omit<AnimationConfig, 'container'> {
|
|
4
|
-
path?: string;
|
|
5
|
-
animationData?: any;
|
|
6
|
-
mode?: 'default' | 'icon';
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
speed?: number;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
export interface LottieRef {
|
|
13
|
-
animation: AnimationItem;
|
|
14
|
-
}
|
|
15
|
-
declare const Lottie: React.ForwardRefExoticComponent<LottieProps & React.RefAttributes<LottieRef>>;
|
|
1
|
+
import { Lottie } from '@oceanbase/design';
|
|
2
|
+
export type { LottieProps, LottieRef } from '@oceanbase/design';
|
|
16
3
|
export default Lottie;
|
package/es/Lottie/index.js
CHANGED
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var _excluded = ["mode", "loop", "speed", "className", "style"];
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
-
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."); }
|
|
10
|
-
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); }
|
|
11
|
-
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; }
|
|
12
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
-
import lottie from 'lottie-web';
|
|
17
|
-
import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
|
|
18
|
-
import { useUpdateEffect } from 'ahooks';
|
|
19
|
-
import classNames from 'classnames';
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
var Lottie = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22
|
-
var _ref$mode = _ref.mode,
|
|
23
|
-
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
24
|
-
_ref$loop = _ref.loop,
|
|
25
|
-
loop = _ref$loop === void 0 ? true : _ref$loop,
|
|
26
|
-
_ref$speed = _ref.speed,
|
|
27
|
-
speed = _ref$speed === void 0 ? 1 : _ref$speed,
|
|
28
|
-
className = _ref.className,
|
|
29
|
-
style = _ref.style,
|
|
30
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
31
|
-
var _useState = useState(),
|
|
32
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
33
|
-
animation = _useState2[0],
|
|
34
|
-
setAnimation = _useState2[1];
|
|
35
|
-
var containerRef = useRef();
|
|
36
|
-
useEffect(function () {
|
|
37
|
-
if (!animation) {
|
|
38
|
-
// ref: https://github.com/airbnb/lottie-web/blob/master/index.d.ts#L129
|
|
39
|
-
var newAnimation = lottie.loadAnimation(_objectSpread({
|
|
40
|
-
container: containerRef.current,
|
|
41
|
-
renderer: 'svg',
|
|
42
|
-
loop: loop
|
|
43
|
-
}, restProps));
|
|
44
|
-
setAnimation(newAnimation);
|
|
45
|
-
}
|
|
46
|
-
}, []);
|
|
47
|
-
useUpdateEffect(function () {
|
|
48
|
-
if (animation) {
|
|
49
|
-
animation.setLoop(loop);
|
|
50
|
-
animation.setSpeed(speed);
|
|
51
|
-
}
|
|
52
|
-
}, [loop, speed]);
|
|
53
|
-
useImperativeHandle(ref, function () {
|
|
54
|
-
return {
|
|
55
|
-
animation: animation
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
return /*#__PURE__*/_jsx("div", {
|
|
59
|
-
ref: containerRef,
|
|
60
|
-
className: classNames(className, _defineProperty({}, 'anticon', mode === 'icon')),
|
|
61
|
-
style: _objectSpread({
|
|
62
|
-
display: 'inline-block'
|
|
63
|
-
}, style)
|
|
64
|
-
});
|
|
65
|
-
});
|
|
1
|
+
import { Lottie } from '@oceanbase/design';
|
|
66
2
|
export default Lottie;
|
package/es/NavMenu/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export interface
|
|
3
|
+
export interface NavMenuItem {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
|
6
6
|
link: string | string[];
|
|
@@ -8,12 +8,12 @@ export interface IMenu {
|
|
|
8
8
|
openNewTab?: boolean;
|
|
9
9
|
href?: boolean;
|
|
10
10
|
id?: string;
|
|
11
|
-
children?:
|
|
11
|
+
children?: NavMenuItem[];
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
14
|
-
menuList:
|
|
13
|
+
export interface NavMenuProps {
|
|
14
|
+
menuList: NavMenuItem[];
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props:
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
19
19
|
export default _default;
|
|
@@ -76,10 +76,10 @@ var PageContainer = function PageContainer(_ref) {
|
|
|
76
76
|
extraContent: extraContent,
|
|
77
77
|
tabList: tabList,
|
|
78
78
|
tabBarExtraContent: tabBarExtraContent,
|
|
79
|
-
footerToolBarProps: _objectSpread(
|
|
80
|
-
// render footer
|
|
79
|
+
footerToolBarProps: _objectSpread({
|
|
80
|
+
// render footer under parent instead of body by default
|
|
81
81
|
portalDom: false
|
|
82
|
-
})
|
|
82
|
+
}, footerToolBarProps)
|
|
83
83
|
}, restProps)));
|
|
84
84
|
};
|
|
85
85
|
export default LocaleWrapper({
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
7
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
8
|
+
import { genFooterToolbarStyle } from "../../FooterToolbar/style";
|
|
6
9
|
export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
7
|
-
var _$concat, _$concat$concat, _$concat2,
|
|
10
|
+
var _$concat, _$concat$concat, _$concat2, _objectSpread2;
|
|
8
11
|
var antCls = token.antCls,
|
|
9
12
|
proComponentsCls = token.proComponentsCls,
|
|
10
13
|
componentCls = token.componentCls,
|
|
@@ -18,7 +21,7 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
18
21
|
paddingLG = token.paddingLG;
|
|
19
22
|
var height = controlHeightLG;
|
|
20
23
|
var lineHeight = "".concat(controlHeightLG, "px");
|
|
21
|
-
return
|
|
24
|
+
return _objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(componentCls), (_$concat2 = {
|
|
22
25
|
minHeight: '100vh',
|
|
23
26
|
backgroundColor: colorBgLayout
|
|
24
27
|
}, _defineProperty(_$concat2, "".concat(proComponentsCls, "-grid-content"), {
|
|
@@ -56,23 +59,13 @@ export var genPageContainerStyle = function genPageContainerStyle(token) {
|
|
|
56
59
|
paddingBlockEnd: paddingLG
|
|
57
60
|
}), _defineProperty(_$concat2, "".concat(antCls, "-page-header:not(").concat(antCls, "-page-header-has-breadcrumb)"), _defineProperty({}, "".concat(antCls, "-page-header-heading"), {
|
|
58
61
|
paddingBlockStart: 0
|
|
59
|
-
})), _$concat2)), _defineProperty(
|
|
62
|
+
})), _$concat2)), _defineProperty(_objectSpread2, "".concat(componentCls, "-no-page-header"), _defineProperty({}, "".concat(componentCls, "-children-container"), {
|
|
60
63
|
paddingBlockStart: paddingLG
|
|
61
|
-
})), _defineProperty(
|
|
64
|
+
})), _defineProperty(_objectSpread2, "".concat(componentCls, "-with-footer "), {
|
|
62
65
|
paddingBottom: 64
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
borderRadius: borderRadius,
|
|
67
|
-
boxShadow: boxShadowSecondary,
|
|
68
|
-
borderBlockStart: 'none'
|
|
69
|
-
}, _defineProperty(_$concat4, "".concat(antCls, "-btn:not(").concat(antCls, "-input-search-button)"), {
|
|
70
|
-
minWidth: 68,
|
|
71
|
-
height: height
|
|
72
|
-
}), _defineProperty(_$concat4, "".concat(antCls, "-radio-button-wrapper"), {
|
|
73
|
-
height: height,
|
|
74
|
-
lineHeight: lineHeight
|
|
75
|
-
}), _$concat4)), _ref;
|
|
66
|
+
}), _objectSpread2), genFooterToolbarStyle(_objectSpread(_objectSpread({}, token), {}, {
|
|
67
|
+
componentCls: "".concat(proComponentsCls, "-footer-bar")
|
|
68
|
+
})));
|
|
76
69
|
};
|
|
77
70
|
export default (function (prefixCls) {
|
|
78
71
|
var useStyle = genComponentStyleHook('PageContainer', function (token) {
|
package/es/Ranger/Ranger.d.ts
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
import type { RangePickerProps } from '@oceanbase/design/es/date-picker';
|
|
1
2
|
import type { Dayjs } from 'dayjs';
|
|
2
3
|
import type { Moment } from 'moment';
|
|
3
4
|
import './index.less';
|
|
5
|
+
import type { RangeOption } from './typing';
|
|
4
6
|
export type RangeName = 'customize' | string;
|
|
5
7
|
export type RangeValue = [Moment, Moment] | [Dayjs, Dayjs];
|
|
6
8
|
export type RangeDateValue = {
|
|
7
9
|
name: RangeName;
|
|
8
10
|
range: RangeValue;
|
|
9
11
|
};
|
|
12
|
+
export interface RangerProps extends Omit<RangePickerProps, 'mode' | 'picker' | 'value' | 'defaultValue'> {
|
|
13
|
+
selects?: RangeOption[];
|
|
14
|
+
defaultQuickValue?: string;
|
|
15
|
+
mode?: 'default' | 'mini';
|
|
16
|
+
quickType?: 'select' | 'dropdown';
|
|
17
|
+
/** 是否只允许选择过去时间 */
|
|
18
|
+
pastOnly?: boolean;
|
|
19
|
+
stickRangeName?: boolean;
|
|
20
|
+
value?: RangeValue;
|
|
21
|
+
defaultValue?: RangeValue;
|
|
22
|
+
size?: 'small' | 'large' | 'middle';
|
|
23
|
+
}
|
|
10
24
|
declare const _default: any;
|
|
11
25
|
export default _default;
|
package/es/TreeSearch/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface TreeSearchRef {
|
|
|
17
17
|
checkAll: () => void;
|
|
18
18
|
invertSelect: () => void;
|
|
19
19
|
}
|
|
20
|
-
interface TreeSearchProps {
|
|
20
|
+
export interface TreeSearchProps {
|
|
21
21
|
treeData: Node[];
|
|
22
22
|
titleRender?: (nodeData: DataNode) => React.ReactNode;
|
|
23
23
|
checkable?: boolean;
|
|
@@ -32,7 +32,7 @@ interface TreeSearchProps {
|
|
|
32
32
|
followLeaf?: boolean;
|
|
33
33
|
/** 异步请求节点数据的回调函数 */
|
|
34
34
|
loadData?: (data: unknown) => Promise<void>;
|
|
35
|
-
searchStyle?:
|
|
35
|
+
searchStyle?: React.CSSProperties;
|
|
36
36
|
}
|
|
37
37
|
declare const _default: React.ForwardRefExoticComponent<TreeSearchProps & React.RefAttributes<TreeSearchRef>>;
|
|
38
38
|
export default _default;
|
package/es/Welcome/step.js
CHANGED
|
@@ -33,12 +33,12 @@ var WelcomeStep = function WelcomeStep(props) {
|
|
|
33
33
|
children: description
|
|
34
34
|
}), operations && /*#__PURE__*/_jsx("div", {
|
|
35
35
|
className: "".concat(prefix, "-operations"),
|
|
36
|
-
children: operations
|
|
36
|
+
children: operations === null || operations === void 0 ? void 0 : operations.map(function (operation, index) {
|
|
37
37
|
return /*#__PURE__*/_jsx("span", {
|
|
38
38
|
onClick: operation.onClick,
|
|
39
39
|
className: "".concat(prefix, "-operation"),
|
|
40
40
|
children: operation.text || locale.defaultOperation
|
|
41
|
-
});
|
|
41
|
+
}, index);
|
|
42
42
|
})
|
|
43
43
|
})]
|
|
44
44
|
})]
|
package/es/index.d.ts
CHANGED
|
@@ -1,31 +1,53 @@
|
|
|
1
1
|
import './index.less';
|
|
2
2
|
export * from '@ant-design/pro-components';
|
|
3
3
|
export { version } from '../package.json';
|
|
4
|
+
export * from './constant';
|
|
5
|
+
export * from './interface';
|
|
4
6
|
export { default as Action } from './Action';
|
|
5
|
-
export {
|
|
6
|
-
export type { BackgroundTaskManagerRef, ITaskMgrPreset, ITaskMgrQueue, TaskMgrID, } from './BackgroundTaskManager';
|
|
7
|
+
export type { ActionGroupProps } from './Action';
|
|
7
8
|
export { default as BasicLayout } from './BasicLayout';
|
|
9
|
+
export type { BasicLayoutProps } from './BasicLayout';
|
|
8
10
|
export { default as BatchOperationBar } from './BatchOperationBar';
|
|
11
|
+
export type { BatchOperationBarProps } from './BatchOperationBar';
|
|
9
12
|
export { default as Boundary } from './Boundary';
|
|
10
|
-
export * from './constant';
|
|
11
13
|
export { default as ContentWithQuestion } from './ContentWithQuestion';
|
|
14
|
+
export type { ContentWithQuestionProps } from './ContentWithQuestion';
|
|
12
15
|
export { default as ContentWithIcon } from './ContentWithIcon';
|
|
16
|
+
export type { ContentWithIconProps } from './ContentWithIcon';
|
|
13
17
|
export { default as Dialog } from './Dialog';
|
|
18
|
+
export type { DialogProps } from './Dialog';
|
|
14
19
|
export { default as DocDialog } from './DocDialog';
|
|
20
|
+
export type { DocDialogProps } from './DocDialog';
|
|
15
21
|
export { default as FullscreenBox } from './FullscreenBox';
|
|
22
|
+
export type { FullscreenBoxProps } from './FullscreenBox';
|
|
16
23
|
export { default as GraphToolbar } from './GraphToolbar';
|
|
24
|
+
export type { GraphToolbarProps } from './GraphToolbar';
|
|
17
25
|
export { default as Highlight } from './Highlight';
|
|
26
|
+
export type { HighlightProps } from './Highlight';
|
|
18
27
|
export { default as IconFont } from './IconFont';
|
|
19
|
-
export
|
|
28
|
+
export type { IconFontProps } from './IconFont';
|
|
20
29
|
export { default as Login } from './Login';
|
|
30
|
+
export type { LoginProps } from './Login';
|
|
21
31
|
export { default as Lottie } from './Lottie';
|
|
32
|
+
export type { LottieProps } from './Lottie';
|
|
22
33
|
export { default as NavMenu } from './NavMenu';
|
|
34
|
+
export type { NavMenuProps, NavMenuItem } from './NavMenu';
|
|
23
35
|
export { default as PageContainer } from './PageContainer';
|
|
24
36
|
export type { PageContainerProps } from './PageContainer';
|
|
37
|
+
export { default as FooterToolbar } from './FooterToolbar';
|
|
38
|
+
export type { FooterToolbarProps } from './FooterToolbar';
|
|
25
39
|
export { default as Password } from './Password';
|
|
40
|
+
export type { PasswordProps } from './Password';
|
|
26
41
|
export { default as Ranger } from './Ranger';
|
|
42
|
+
export type { RangerProps } from './Ranger';
|
|
27
43
|
export { default as SideTip } from './SideTip';
|
|
44
|
+
export type { SideTipProps } from './SideTip';
|
|
28
45
|
export { default as TaskGraph } from './TaskGraph';
|
|
46
|
+
export type { TaskGraphProps } from './TaskGraph';
|
|
29
47
|
export { default as TreeSearch } from './TreeSearch';
|
|
48
|
+
export type { TreeSearchProps, TreeSearchRef } from './TreeSearch';
|
|
30
49
|
export { default as Welcome } from './Welcome';
|
|
50
|
+
export type { WelcomeProps } from './Welcome';
|
|
31
51
|
export { default as TagSelect } from './TagSelect';
|
|
52
|
+
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager, } from './BackgroundTaskManager';
|
|
53
|
+
export type { BackgroundTaskManagerRef, ITaskMgrPreset, ITaskMgrQueue, TaskMgrID, } from './BackgroundTaskManager';
|
package/es/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
export * from '@ant-design/pro-components';
|
|
3
3
|
export { version } from "../package.json";
|
|
4
|
+
export * from "./constant";
|
|
5
|
+
export * from "./interface";
|
|
4
6
|
export { default as Action } from "./Action";
|
|
5
|
-
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager } from "./BackgroundTaskManager";
|
|
6
7
|
export { default as BasicLayout } from "./BasicLayout";
|
|
7
8
|
export { default as BatchOperationBar } from "./BatchOperationBar";
|
|
8
9
|
export { default as Boundary } from "./Boundary";
|
|
9
|
-
export * from "./constant";
|
|
10
10
|
export { default as ContentWithQuestion } from "./ContentWithQuestion";
|
|
11
11
|
export { default as ContentWithIcon } from "./ContentWithIcon";
|
|
12
12
|
export { default as Dialog } from "./Dialog";
|
|
@@ -15,15 +15,16 @@ export { default as FullscreenBox } from "./FullscreenBox";
|
|
|
15
15
|
export { default as GraphToolbar } from "./GraphToolbar";
|
|
16
16
|
export { default as Highlight } from "./Highlight";
|
|
17
17
|
export { default as IconFont } from "./IconFont";
|
|
18
|
-
export * from "./interface";
|
|
19
18
|
export { default as Login } from "./Login";
|
|
20
19
|
export { default as Lottie } from "./Lottie";
|
|
21
20
|
export { default as NavMenu } from "./NavMenu";
|
|
22
21
|
export { default as PageContainer } from "./PageContainer";
|
|
22
|
+
export { default as FooterToolbar } from "./FooterToolbar";
|
|
23
23
|
export { default as Password } from "./Password";
|
|
24
24
|
export { default as Ranger } from "./Ranger";
|
|
25
25
|
export { default as SideTip } from "./SideTip";
|
|
26
26
|
export { default as TaskGraph } from "./TaskGraph";
|
|
27
27
|
export { default as TreeSearch } from "./TreeSearch";
|
|
28
28
|
export { default as Welcome } from "./Welcome";
|
|
29
|
-
export { default as TagSelect } from "./TagSelect";
|
|
29
|
+
export { default as TagSelect } from "./TagSelect";
|
|
30
|
+
export { BackgroundTaskManagerConstants, default as BackgroundTaskManager } from "./BackgroundTaskManager";
|
package/lib/Action/Group.js
CHANGED
|
@@ -91,6 +91,7 @@ var Group_default = ({
|
|
|
91
91
|
return /* @__PURE__ */ import_react.default.createElement(import_design.Space, { size: 8 }, mainActions.map((action) => {
|
|
92
92
|
return import_react.default.cloneElement(action, {
|
|
93
93
|
...action.props,
|
|
94
|
+
key: action.key,
|
|
94
95
|
enableLoading,
|
|
95
96
|
disabled: (0, import_lodash.isBoolean)(action.props.disabled) ? action.props.disabled : getDefaultDisabled(action.key)
|
|
96
97
|
});
|
package/lib/Action/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActionButton, ActionLink } from './Item';
|
|
2
|
+
export type { GroupProps as ActionGroupProps } from './Group';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
Group: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: import("./Group").GroupProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
4
5
|
Button: typeof ActionButton;
|
|
@@ -156,7 +156,7 @@ var Header = ({
|
|
|
156
156
|
style: { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
157
157
|
},
|
|
158
158
|
/* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-copyright` }, locale.right, " ", /* @__PURE__ */ import_react.default.createElement(import_icons.CopyrightOutlined, null), " ", (0, import_moment.default)().year(), " ", locale.company),
|
|
159
|
-
/* @__PURE__ */ import_react.default.createElement("img", { src: theme.isDark ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default, alt: "", style: { height: 12 } })
|
|
159
|
+
/* @__PURE__ */ import_react.default.createElement("img", { src: (theme == null ? void 0 : theme.isDark) ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default, alt: "", style: { height: 12 } })
|
|
160
160
|
))))
|
|
161
161
|
)
|
|
162
162
|
)
|