@oceanbase/ui 0.2.0 → 0.2.1
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/BackgroundTaskManager/constants.d.ts +6 -0
- package/es/BasicLayout/locale/en-US.d.ts +12 -0
- package/es/BasicLayout/locale/zh-CN.d.ts +12 -0
- package/es/BasicLayout/locale/zh-TW.d.ts +12 -0
- package/es/BatchOperationBar/locale/en-US.d.ts +7 -0
- package/es/BatchOperationBar/locale/zh-CN.d.ts +7 -0
- package/es/BatchOperationBar/locale/zh-TW.d.ts +7 -0
- package/es/Boundary/IBoundary.d.ts +10 -0
- package/es/Boundary/constant.d.ts +26 -0
- package/es/Boundary/locale/en-US.d.ts +11 -0
- package/es/Boundary/locale/zh-CN.d.ts +11 -0
- package/es/Boundary/locale/zh-TW.d.ts +11 -0
- package/es/Boundary/utils.d.ts +1 -0
- package/es/Dialog/Anchor.d.ts +19 -0
- package/es/Dialog/Dock.d.ts +6 -0
- package/es/Dialog/EventProxy.d.ts +2 -0
- package/es/Dialog/locale/en-US.d.ts +5 -0
- package/es/Dialog/locale/zh-CN.d.ts +5 -0
- package/es/Dialog/locale/zh-TW.d.ts +5 -0
- package/es/DocDialog/locale/en-US.d.ts +2 -0
- package/es/DocDialog/locale/zh-CN.d.ts +2 -0
- package/es/DocDialog/locale/zh-TW.d.ts +2 -0
- package/es/FullscreenBox/locale/en-US.d.ts +2 -0
- package/es/FullscreenBox/locale/zh-CN.d.ts +2 -0
- package/es/FullscreenBox/locale/zh-TW.d.ts +2 -0
- package/es/GraphToolbar/locale/en-US.d.ts +9 -0
- package/es/GraphToolbar/locale/zh-CN.d.ts +9 -0
- package/es/GraphToolbar/locale/zh-TW.d.ts +9 -0
- package/es/Highlight/DiffView/DiffCells.d.ts +17 -0
- package/es/Highlight/HighlightCell.d.ts +18 -0
- package/es/Highlight/locale/en-US.d.ts +2 -0
- package/es/Highlight/locale/zh-CN.d.ts +2 -0
- package/es/Highlight/locale/zh-TW.d.ts +2 -0
- package/es/Highlight/useKeyDownCopyEvent.d.ts +6 -0
- package/es/Login/locale/en-US.d.ts +27 -0
- package/es/Login/locale/zh-CN.d.ts +28 -0
- package/es/Login/locale/zh-TW.d.ts +27 -0
- package/es/Lottie/index.d.ts +10 -0
- package/es/PageContainer/ItemRender.d.ts +7 -0
- package/es/PageContainer/locale/en-US.d.ts +4 -0
- package/es/PageContainer/locale/zh-CN.d.ts +4 -0
- package/es/PageContainer/locale/zh-TW.d.ts +4 -0
- package/es/Password/locale/en-US.d.ts +13 -0
- package/es/Password/locale/zh-CN.d.ts +13 -0
- package/es/Password/locale/zh-TW.d.ts +13 -0
- package/es/Ranger/constant/index.d.ts +27 -0
- package/es/Ranger/locale/en-US.d.ts +28 -0
- package/es/Ranger/locale/zh-CN.d.ts +4 -0
- package/es/Ranger/locale/zh-TW.d.ts +4 -0
- package/es/Ranger/typing.d.ts +12 -0
- package/es/SideTip/IconLoading.d.ts +0 -1
- package/es/SideTip/locale/en-US.d.ts +2 -0
- package/es/SideTip/locale/zh-CN.d.ts +2 -0
- package/es/SideTip/locale/zh-TW.d.ts +2 -0
- package/es/SideTip/utils.d.ts +8 -0
- package/es/TaskGraph/locale/en-US.d.ts +13 -0
- package/es/TaskGraph/locale/zh-CN.d.ts +13 -0
- package/es/TaskGraph/locale/zh-TW.d.ts +13 -0
- package/es/Welcome/locale/en-US.d.ts +5 -0
- package/es/Welcome/locale/zh-CN.d.ts +5 -0
- package/es/Welcome/locale/zh-TW.d.ts +5 -0
- package/es/_util/index.d.ts +18 -0
- package/es/_util/useHistory.d.ts +4 -0
- package/es/constant/index.d.ts +7 -0
- package/es/interface.d.ts +1 -0
- package/es/locale/en-US.d.ts +3 -0
- package/es/locale/index.d.ts +4 -0
- package/es/locale/zh-CN.d.ts +3 -0
- package/es/locale/zh-TW.d.ts +3 -0
- package/lib/BackgroundTaskManager/constants.d.ts +6 -0
- package/lib/BasicLayout/locale/en-US.d.ts +12 -0
- package/lib/BasicLayout/locale/zh-CN.d.ts +12 -0
- package/lib/BasicLayout/locale/zh-TW.d.ts +12 -0
- package/lib/BatchOperationBar/locale/en-US.d.ts +7 -0
- package/lib/BatchOperationBar/locale/zh-CN.d.ts +7 -0
- package/lib/BatchOperationBar/locale/zh-TW.d.ts +7 -0
- package/lib/Boundary/IBoundary.d.ts +10 -0
- package/lib/Boundary/constant.d.ts +26 -0
- package/lib/Boundary/locale/en-US.d.ts +11 -0
- package/lib/Boundary/locale/zh-CN.d.ts +11 -0
- package/lib/Boundary/locale/zh-TW.d.ts +11 -0
- package/lib/Boundary/utils.d.ts +1 -0
- package/lib/Dialog/Anchor.d.ts +19 -0
- package/lib/Dialog/Dock.d.ts +6 -0
- package/lib/Dialog/EventProxy.d.ts +2 -0
- package/lib/Dialog/locale/en-US.d.ts +5 -0
- package/lib/Dialog/locale/zh-CN.d.ts +5 -0
- package/lib/Dialog/locale/zh-TW.d.ts +5 -0
- package/lib/DocDialog/locale/en-US.d.ts +2 -0
- package/lib/DocDialog/locale/zh-CN.d.ts +2 -0
- package/lib/DocDialog/locale/zh-TW.d.ts +2 -0
- package/lib/FullscreenBox/locale/en-US.d.ts +2 -0
- package/lib/FullscreenBox/locale/zh-CN.d.ts +2 -0
- package/lib/FullscreenBox/locale/zh-TW.d.ts +2 -0
- package/lib/GraphToolbar/locale/en-US.d.ts +9 -0
- package/lib/GraphToolbar/locale/zh-CN.d.ts +9 -0
- package/lib/GraphToolbar/locale/zh-TW.d.ts +9 -0
- package/lib/Highlight/DiffView/DiffCells.d.ts +17 -0
- package/lib/Highlight/HighlightCell.d.ts +18 -0
- package/lib/Highlight/locale/en-US.d.ts +2 -0
- package/lib/Highlight/locale/zh-CN.d.ts +2 -0
- package/lib/Highlight/locale/zh-TW.d.ts +2 -0
- package/lib/Highlight/useKeyDownCopyEvent.d.ts +6 -0
- package/lib/Login/locale/en-US.d.ts +27 -0
- package/lib/Login/locale/zh-CN.d.ts +28 -0
- package/lib/Login/locale/zh-TW.d.ts +27 -0
- package/lib/Lottie/index.d.ts +10 -0
- package/lib/PageContainer/ItemRender.d.ts +7 -0
- package/lib/PageContainer/locale/en-US.d.ts +4 -0
- package/lib/PageContainer/locale/zh-CN.d.ts +4 -0
- package/lib/PageContainer/locale/zh-TW.d.ts +4 -0
- package/lib/Password/locale/en-US.d.ts +13 -0
- package/lib/Password/locale/zh-CN.d.ts +13 -0
- package/lib/Password/locale/zh-TW.d.ts +13 -0
- package/lib/Ranger/constant/index.d.ts +27 -0
- package/lib/Ranger/locale/en-US.d.ts +28 -0
- package/lib/Ranger/locale/zh-CN.d.ts +4 -0
- package/lib/Ranger/locale/zh-TW.d.ts +4 -0
- package/lib/Ranger/typing.d.ts +12 -0
- package/lib/SideTip/IconLoading.d.ts +0 -1
- package/lib/SideTip/locale/en-US.d.ts +2 -0
- package/lib/SideTip/locale/zh-CN.d.ts +2 -0
- package/lib/SideTip/locale/zh-TW.d.ts +2 -0
- package/lib/SideTip/utils.d.ts +8 -0
- package/lib/TaskGraph/locale/en-US.d.ts +13 -0
- package/lib/TaskGraph/locale/zh-CN.d.ts +13 -0
- package/lib/TaskGraph/locale/zh-TW.d.ts +13 -0
- package/lib/Welcome/locale/en-US.d.ts +5 -0
- package/lib/Welcome/locale/zh-CN.d.ts +5 -0
- package/lib/Welcome/locale/zh-TW.d.ts +5 -0
- package/lib/_util/index.d.ts +18 -0
- package/lib/_util/useHistory.d.ts +4 -0
- package/lib/constant/index.d.ts +7 -0
- package/lib/interface.d.ts +1 -0
- package/lib/locale/en-US.d.ts +3 -0
- package/lib/locale/index.d.ts +4 -0
- package/lib/locale/zh-CN.d.ts +3 -0
- package/lib/locale/zh-TW.d.ts +3 -0
- package/package.json +5 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getScrollOffsets: (dom?: HTMLElement) => {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const getClientHeight: (dom?: HTMLElement) => number;
|
|
6
|
+
export declare const getClientWidth: (dom?: HTMLElement) => number;
|
|
7
|
+
export declare const getScrollBarSize: (fresh?: boolean, dom?: HTMLElement) => any;
|
|
8
|
+
export declare const isFixedElem: (element: any) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取基于 Umi 框架应用的语言
|
|
3
|
+
* @returns string
|
|
4
|
+
*/
|
|
5
|
+
export declare function getLocale(): string;
|
|
6
|
+
/**
|
|
7
|
+
* 设置基于 Umi 框架应用的语言
|
|
8
|
+
* @param locale 语言的 key
|
|
9
|
+
*/
|
|
10
|
+
export declare function setLocale(locale: string): void;
|
|
11
|
+
export declare function directTo(url: string, blank?: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* 将 path 拆分成多个匹配路径
|
|
14
|
+
* 例如: /userinfo/2144/id => ['/userinfo','/useinfo/2144,'/userindo/2144/id']
|
|
15
|
+
* */
|
|
16
|
+
export declare function urlToList(url?: string): string[];
|
|
17
|
+
export declare function isEnglish(): boolean;
|
|
18
|
+
export declare const getPrefix: (cls: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type Locale = 'zh-TW' | 'zh-CN' | 'en-US';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"OceanBase",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"react",
|
|
11
11
|
"component"
|
|
12
12
|
],
|
|
13
|
-
"homepage": "https://github.com/oceanbase/design",
|
|
13
|
+
"homepage": "https://github.com/oceanbase/design/packages/ui",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git@github.com:oceanbase/design.git"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@ant-design/cssinjs": "^1.9.1",
|
|
38
38
|
"@ant-design/icons": "^4.2.1",
|
|
39
39
|
"@ant-design/pro-components": "^2.4.12",
|
|
40
|
-
"@oceanbase/design": "^0.2.
|
|
41
|
-
"@oceanbase/util": "^0.
|
|
40
|
+
"@oceanbase/design": "^0.2.1",
|
|
41
|
+
"@oceanbase/util": "^0.2.0",
|
|
42
42
|
"ahooks": "^2.10.0",
|
|
43
43
|
"classnames": "^2.2.6",
|
|
44
44
|
"dayjs": "^1.11.6",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-dom": "^16.9.0",
|
|
67
67
|
"react-router-dom": ">=5.2.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d7c5c1d62f48b75337d34c2d7ba03f4bb1b2a068"
|
|
70
70
|
}
|