@ccs-ui/rc-pro 2.3.6-alpha-30 → 2.3.6-alpha-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/docs-dist/2179.b80aa159.async.js +22 -0
- package/docs-dist/2191.275582c6.async.js +6 -0
- package/docs-dist/27.82086704.async.js +11 -0
- package/docs-dist/3249.edb38f0f.async.js +28 -0
- package/docs-dist/404.html +15 -0
- package/docs-dist/5171.198d8c6e.async.js +8 -0
- package/docs-dist/7024.588d984f.async.js +22 -0
- package/docs-dist/7488.2db563fb.async.js +137 -0
- package/docs-dist/751.bb8cce69.async.js +1 -0
- package/docs-dist/8784.91b4ab45.async.js +598 -0
- package/docs-dist/9591.06d066b1.async.js +1 -0
- package/docs-dist/9600.78d67888.async.js +16 -0
- package/docs-dist/9600.e8c51481.chunk.css +5 -0
- package/docs-dist/auth__demos.32e710d5.async.js +1 -0
- package/docs-dist/auth__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/auth__index.md.e0b5996f.async.js +1 -0
- package/docs-dist/button__demos.a20990de.async.js +1 -0
- package/docs-dist/button__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/button__index.md.43fe8c62.async.js +1 -0
- package/docs-dist/cascader__demos.cb1e67f3.async.js +1 -0
- package/docs-dist/cascader__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/cascader__index.md.cafec622.async.js +1 -0
- package/docs-dist/components/auth/index.html +15 -0
- package/docs-dist/components/button/index.html +15 -0
- package/docs-dist/components/cascader/index.html +15 -0
- package/docs-dist/components/date-picker/index.html +15 -0
- package/docs-dist/components/dialog/index.html +15 -0
- package/docs-dist/components/editor/index.html +15 -0
- package/docs-dist/components/group-form-item/index.html +15 -0
- package/docs-dist/components/index.html +15 -0
- package/docs-dist/components/interval-button/index.html +15 -0
- package/docs-dist/components/layout-keep-alive/index.html +15 -0
- package/docs-dist/components/loading/index.html +15 -0
- package/docs-dist/components/pro-grid/index.html +15 -0
- package/docs-dist/components/pro-table/index.html +15 -0
- package/docs-dist/components/pro-tabs/index.html +15 -0
- package/docs-dist/components/result/index.html +15 -0
- package/docs-dist/components/select/index.html +15 -0
- package/docs-dist/components/time-picker/index.html +15 -0
- package/docs-dist/components/trigger/index.html +15 -0
- package/docs-dist/components/virtual-list/index.html +15 -0
- package/docs-dist/components/water-mark/index.html +15 -0
- package/docs-dist/date-picker__demos.4cf5ef3e.async.js +1 -0
- package/docs-dist/date-picker__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/date-picker__index.md.c27e69b2.async.js +1 -0
- package/docs-dist/dialog__demos.14d31789.async.js +1 -0
- package/docs-dist/dialog__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/dialog__index.md.665375f8.async.js +1 -0
- package/docs-dist/docs__index.md.0a458278.async.js +1 -0
- package/docs-dist/docs__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__log.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__log.md.af406e13.async.js +1 -0
- package/docs-dist/docs__utils.md.33be0665.chunk.css +1 -0
- package/docs-dist/docs__utils.md.e1ca1150.async.js +1 -0
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b4f42a14.async.js +233 -0
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b9764392.chunk.css +1 -0
- package/docs-dist/editor__demos.f5ff3638.async.js +6 -0
- package/docs-dist/editor__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/editor__index.md.b4f3c5a3.async.js +1 -0
- package/docs-dist/favicon.png +0 -0
- package/docs-dist/group-form-item__demos.3197aa4d.async.js +1 -0
- package/docs-dist/group-form-item__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/group-form-item__index.md.63bf18f4.async.js +1 -0
- package/docs-dist/index.html +15 -0
- package/docs-dist/index.md.1621f8b8.async.js +1 -0
- package/docs-dist/index.md.33be0665.chunk.css +1 -0
- package/docs-dist/interval-button__demos.ff98564f.async.js +1 -0
- package/docs-dist/interval-button__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/interval-button__index.md.54c9da91.async.js +1 -0
- package/docs-dist/layout-keep-alive__demos.c12a544d.async.js +1 -0
- package/docs-dist/layout-keep-alive__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/layout-keep-alive__index.md.90ef1c2b.async.js +1 -0
- package/docs-dist/loading__demos.8ac9187d.async.js +1 -0
- package/docs-dist/loading__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/loading__index.md.d52a9847.async.js +1 -0
- package/docs-dist/log/index.html +15 -0
- package/docs-dist/logo.svg +48 -0
- package/docs-dist/meta__auth.2fdb9639.async.js +12 -0
- package/docs-dist/meta__auth.b9764392.chunk.css +1 -0
- package/docs-dist/meta__button.420ed66c.async.js +8759 -0
- package/docs-dist/meta__button.b9764392.chunk.css +1 -0
- package/docs-dist/meta__cascader.79f5fc28.async.js +103 -0
- package/docs-dist/meta__cascader.b9764392.chunk.css +1 -0
- package/docs-dist/meta__date-picker.79265ba8.async.js +72 -0
- package/docs-dist/meta__date-picker.b9764392.chunk.css +1 -0
- package/docs-dist/meta__dialog.1ca8b654.async.js +502 -0
- package/docs-dist/meta__dialog.b9764392.chunk.css +1 -0
- package/docs-dist/meta__docs.5dbc484a.async.js +1 -0
- package/docs-dist/meta__editor.11adf92c.async.js +37 -0
- package/docs-dist/meta__editor.b9764392.chunk.css +1 -0
- package/docs-dist/meta__group-form-item.a6e6163c.async.js +36 -0
- package/docs-dist/meta__group-form-item.b9764392.chunk.css +1 -0
- package/docs-dist/meta__index.md.3fe47f24.async.js +1 -0
- package/docs-dist/meta__interval-button.72bce101.async.js +17 -0
- package/docs-dist/meta__interval-button.b9764392.chunk.css +1 -0
- package/docs-dist/meta__layout-keep-alive.3997804f.async.js +17 -0
- package/docs-dist/meta__layout-keep-alive.b9764392.chunk.css +1 -0
- package/docs-dist/meta__loading.b9764392.chunk.css +1 -0
- package/docs-dist/meta__loading.cd39daf6.async.js +24 -0
- package/docs-dist/meta__pro-grid.b9764392.chunk.css +1 -0
- package/docs-dist/meta__pro-grid.be34bc7a.async.js +21 -0
- package/docs-dist/meta__pro-table.b9764392.chunk.css +1 -0
- package/docs-dist/meta__pro-table.d318e6ac.async.js +609 -0
- package/docs-dist/meta__pro-tabs.2d66cb0d.async.js +104 -0
- package/docs-dist/meta__pro-tabs.b9764392.chunk.css +1 -0
- package/docs-dist/meta__result.12e85cae.async.js +20 -0
- package/docs-dist/meta__result.b9764392.chunk.css +1 -0
- package/docs-dist/meta__select.91395de5.async.js +337 -0
- package/docs-dist/meta__select.b9764392.chunk.css +1 -0
- package/docs-dist/meta__time-picker.5ae1cf72.async.js +24 -0
- package/docs-dist/meta__time-picker.b9764392.chunk.css +1 -0
- package/docs-dist/meta__trigger.0368918c.async.js +451 -0
- package/docs-dist/meta__trigger.b9764392.chunk.css +1 -0
- package/docs-dist/meta__virtual-list.71ae35a9.async.js +35 -0
- package/docs-dist/meta__virtual-list.b9764392.chunk.css +1 -0
- package/docs-dist/meta__water-mark.b9764392.chunk.css +1 -0
- package/docs-dist/meta__water-mark.f487e8dd.async.js +15 -0
- package/docs-dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__404.c319e0a3.async.js +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +1 -0
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.7e033f2b.async.js +1 -0
- package/docs-dist/nm__dumi__theme-default__layouts__DocLayout__index.8a08baa2.async.js +1 -0
- package/docs-dist/preload_helper.9430b29d.js +1 -0
- package/docs-dist/pro-grid__demos.81d67052.async.js +1 -0
- package/docs-dist/pro-grid__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-grid__index.md.a6b9c956.async.js +1 -0
- package/docs-dist/pro-table__demos.254e5b3a.async.js +1 -0
- package/docs-dist/pro-table__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-table__index.md.607fa3d4.async.js +1 -0
- package/docs-dist/pro-tabs__demos.2f05143c.async.js +1 -0
- package/docs-dist/pro-tabs__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/pro-tabs__index.md.61a7d2c1.async.js +1 -0
- package/docs-dist/result__demos.689a5a17.async.js +1 -0
- package/docs-dist/result__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/result__index.md.7cac7890.async.js +1 -0
- package/docs-dist/select__demos.c77af292.async.js +1 -0
- package/docs-dist/select__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/select__index.md.f818a939.async.js +2 -0
- package/docs-dist/time-picker__demos.48d5025e.async.js +1 -0
- package/docs-dist/time-picker__index.md.25b2d39e.async.js +1 -0
- package/docs-dist/time-picker__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/trigger__demos.2f9bf9f4.async.js +1 -0
- package/docs-dist/trigger__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/trigger__index.md.7e0b7729.async.js +1 -0
- package/docs-dist/umi.52ae6580.js +110 -0
- package/docs-dist/umi.8c46519e.css +1 -0
- package/docs-dist/utils/index.html +15 -0
- package/docs-dist/virtual-list__demos.b1f5e707.async.js +1 -0
- package/docs-dist/virtual-list__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/virtual-list__index.md.47c7bdca.async.js +1 -0
- package/docs-dist/water-mark__demos.f7bcee8a.async.js +1 -0
- package/docs-dist/water-mark__index.md.33be0665.chunk.css +1 -0
- package/docs-dist/water-mark__index.md.e5555c25.async.js +1 -0
- package/docs-dist/~demos/:id/index.html +15 -0
- package/docs-dist/~demos/auth-demo-basic/index.html +15 -0
- package/docs-dist/~demos/button-demo-button/index.html +15 -0
- package/docs-dist/~demos/button-demo-group/index.html +15 -0
- package/docs-dist/~demos/cascader-demo-basic/index.html +15 -0
- package/docs-dist/~demos/cascader-demo-cache/index.html +15 -0
- package/docs-dist/~demos/date-picker-demo-basic/index.html +15 -0
- package/docs-dist/~demos/date-picker-demo-range/index.html +15 -0
- package/docs-dist/~demos/dialog-demo-demos/index.html +15 -0
- package/docs-dist/~demos/editor-demo-demos/index.html +15 -0
- package/docs-dist/~demos/group-form-item-demo-basic/index.html +15 -0
- package/docs-dist/~demos/interval-button-demo-basic/index.html +15 -0
- package/docs-dist/~demos/layout-keep-alive-demo-basic/index.html +15 -0
- package/docs-dist/~demos/loading-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-grid-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +15 -0
- package/docs-dist/~demos/pro-table-demo-selection/index.html +15 -0
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +15 -0
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +15 -0
- package/docs-dist/~demos/result-demo-basic/index.html +15 -0
- package/docs-dist/~demos/select-demo-api/index.html +15 -0
- package/docs-dist/~demos/select-demo-basic/index.html +15 -0
- package/docs-dist/~demos/select-demo-customize/index.html +15 -0
- package/docs-dist/~demos/select-demo-customize-label/index.html +15 -0
- package/docs-dist/~demos/time-picker-demo-basic/index.html +15 -0
- package/docs-dist/~demos/trigger-demo-basic/index.html +15 -0
- package/docs-dist/~demos/virtual-list-demo-basic/index.html +15 -0
- package/docs-dist/~demos/water-mark-demo-basic/index.html +15 -0
- package/es/auth/index.d.ts +7 -0
- package/es/auth/index.js +14 -0
- package/es/ccs.d.ts +1 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/layout-single-page/index.d.ts +1 -1
- package/es/layout-single-page/index.js +3 -0
- package/package.json +3 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<link rel="shortcut icon" href="/favicon.png">
|
|
8
|
+
<link rel="stylesheet" href="/rc-pro/umi.8c46519e.css">
|
|
9
|
+
<script src="/rc-pro/preload_helper.9430b29d.js"></script>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
<script src="/rc-pro/umi.52ae6580.js"></script>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/es/auth/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export type CcsAuthProps = {
|
|
|
8
8
|
export declare function ModalConfirm({ modalRef }: {
|
|
9
9
|
modalRef: any;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* 权限控制组件,用于根据用户权限决定是否渲染子组件
|
|
13
|
+
* @param {CcsAuthProps} props - 组件属性
|
|
14
|
+
* @param {string} [props.auth] - 权限标识,用于权限校验
|
|
15
|
+
* @param {ReactElement} props.children - 当用户有权限时要渲染的子组件
|
|
16
|
+
* @returns {ReactElement|null} - 权限验证通过时返回子组件,否则返回null
|
|
17
|
+
*/
|
|
11
18
|
declare function CcsAuth({ auth, children }: CcsAuthProps): ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
12
19
|
declare namespace CcsAuth {
|
|
13
20
|
var displayName: string;
|
package/es/auth/index.js
CHANGED
|
@@ -22,14 +22,28 @@ export function ModalConfirm(_ref) {
|
|
|
22
22
|
children: [" ", contextHolder]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 权限控制组件,用于根据用户权限决定是否渲染子组件
|
|
28
|
+
* @param {CcsAuthProps} props - 组件属性
|
|
29
|
+
* @param {string} [props.auth] - 权限标识,用于权限校验
|
|
30
|
+
* @param {ReactElement} props.children - 当用户有权限时要渲染的子组件
|
|
31
|
+
* @returns {ReactElement|null} - 权限验证通过时返回子组件,否则返回null
|
|
32
|
+
*/
|
|
25
33
|
function CcsAuth(_ref2) {
|
|
26
34
|
var auth = _ref2.auth,
|
|
27
35
|
children = _ref2.children;
|
|
36
|
+
// 从useCcsPage钩子获取权限验证函数
|
|
28
37
|
var _ref3 = useCcsPage() || {},
|
|
29
38
|
onAuth = _ref3.onAuth;
|
|
39
|
+
|
|
40
|
+
// 如果存在权限验证函数且提供了权限标识,则进行权限校验
|
|
30
41
|
if (onAuth && auth) {
|
|
42
|
+
// 有权限则渲染子组件,无权限则不渲染任何内容
|
|
31
43
|
return onAuth(auth) ? children : null;
|
|
32
44
|
}
|
|
45
|
+
|
|
46
|
+
// 如果没有权限验证函数或没有提供权限标识,则默认渲染子组件
|
|
33
47
|
return children;
|
|
34
48
|
}
|
|
35
49
|
if (process.env.NODE_ENV !== 'production') {
|
package/es/ccs.d.ts
CHANGED
package/es/dialog/button.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
|
|
|
16
16
|
export type DialogButtonRef = {
|
|
17
17
|
onSetButtons: (e: React.ReactElement) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "
|
|
19
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onClose" | "auth" | "onOk" | "request" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|
|
@@ -4,7 +4,7 @@ import './index.less';
|
|
|
4
4
|
type PropsType = {
|
|
5
5
|
appName: string;
|
|
6
6
|
menuItems: CCS.MenuType[];
|
|
7
|
-
breadcrumbStyle
|
|
7
|
+
breadcrumbStyle?: CSSProperties;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
};
|
|
10
10
|
declare function SinglePage({ appName, menuItems, breadcrumbStyle, children, }: PropsType): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccs-ui/rc-pro",
|
|
3
|
-
"version": "2.3.6-alpha-
|
|
3
|
+
"version": "2.3.6-alpha-32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"module": "es/index.js",
|
|
13
13
|
"types": "es/index.d.ts",
|
|
14
14
|
"files": [
|
|
15
|
-
"es"
|
|
15
|
+
"es",
|
|
16
|
+
"docs-dist"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "father build",
|