@ccs-ui/rc-pro 2.4.1-beta.2 → 2.4.1-beta.3
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/404.html +2 -2
- package/docs-dist/form__demos.5b7514be.async.js +1 -0
- package/docs-dist/guide/index.html +2 -2
- package/docs-dist/index.html +2 -2
- package/docs-dist/log/index.html +2 -2
- package/docs-dist/{meta__packages.08a752fe.async.js → meta__packages.87f18465.async.js} +289 -1587
- package/docs-dist/packages__rc-pro__src__pro-table__index.md.19bb480f.async.js +1 -0
- package/docs-dist/plugins/index.html +2 -2
- package/docs-dist/{preload_helper.2ab9c970.js → preload_helper.375fddac.js} +1 -1
- package/docs-dist/pro-table__demos.262fdc92.async.js +1 -0
- package/docs-dist/rc-pro/button/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/DialogFieldNames.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/TableFieldNames.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorProps.md/index.html +2 -2
- package/docs-dist/rc-pro/ellipsis/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/ellipsis/_api/interfaces/EllipsisProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/interfaces/FormItemUpdateProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/index.html +2 -2
- package/docs-dist/rc-pro/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/interfaces/KeepAliveTabsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-keep-alive/_api/type-aliases/MenuType.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-single-page/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/layout-single-page/_api/interfaces/SinglePageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/loading/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/loading/_api/interfaces/LoadingProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/enumerations/TableEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableEventHandle.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +2 -2
- package/docs-dist/rc-pros/auth/index.html +2 -2
- package/docs-dist/rc-pros/button/index.html +2 -2
- package/docs-dist/rc-pros/cascader/index.html +2 -2
- package/docs-dist/rc-pros/date-picker/index.html +2 -2
- package/docs-dist/rc-pros/dialog/index.html +2 -2
- package/docs-dist/rc-pros/editor/index.html +2 -2
- package/docs-dist/rc-pros/ellipsis/index.html +2 -2
- package/docs-dist/rc-pros/form/index.html +2 -2
- package/docs-dist/rc-pros/index.html +2 -2
- package/docs-dist/rc-pros/interval-button/index.html +2 -2
- package/docs-dist/rc-pros/layout-keep-alive/index.html +2 -2
- package/docs-dist/rc-pros/loading/index.html +2 -2
- package/docs-dist/rc-pros/pro-table/index.html +2 -2
- package/docs-dist/rc-pros/pro-tabs/index.html +2 -2
- package/docs-dist/rc-pros/result/index.html +2 -2
- package/docs-dist/rc-pros/select/index.html +2 -2
- package/docs-dist/rc-pros/time-picker/index.html +2 -2
- package/docs-dist/rc-pros/water-mark/index.html +2 -2
- package/docs-dist/{umi.f650eab0.js → umi.8fc48e0d.js} +3 -3
- package/docs-dist/utils/index.html +2 -2
- package/docs-dist/~demos/:id/index.html +2 -2
- package/docs-dist/~demos/auth-demo-basic/index.html +2 -2
- package/docs-dist/~demos/button-demo-button/index.html +2 -2
- package/docs-dist/~demos/button-demo-group/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-basic/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-cache/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-range/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-demos/index.html +2 -2
- package/docs-dist/~demos/editor-demo-demos/index.html +2 -2
- package/docs-dist/~demos/ellipsis-demo-demos/index.html +2 -2
- package/docs-dist/~demos/form-demo-demos/index.html +2 -2
- package/docs-dist/~demos/interval-button-demo-basic/index.html +2 -2
- package/docs-dist/~demos/loading-demo-basic/index.html +2 -2
- package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-show-depend/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +2 -2
- package/docs-dist/~demos/result-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-api/index.html +2 -2
- package/docs-dist/~demos/select-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize-label/index.html +2 -2
- package/docs-dist/~demos/time-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/water-mark-demo-basic/index.html +2 -2
- package/es/dialog/button.d.ts +1 -1
- package/es/ellipsis/index.js +57 -80
- package/es/form/_api.d.ts +17 -16
- package/es/form/item.js +4 -9
- package/package.json +1 -1
- package/docs-dist/form__demos.fb4a5587.async.js +0 -1
- package/docs-dist/packages__rc-pro__src__pro-table__index.md.e8f8a54b.async.js +0 -1
- package/docs-dist/pro-table__demos.03de51dc.async.js +0 -1
- package/docs-dist/~demos/pro-table-demo-basic/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-cascade/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-extra/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-filter/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-refresh/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-selection/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-tree-async/index.html +0 -15
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
7
|
<link rel="shortcut icon" href="/favicon.png">
|
|
8
8
|
<link rel="stylesheet" href="/ccs-ui/umi.cfe6e1b0.css">
|
|
9
|
-
<script src="/ccs-ui/preload_helper.
|
|
9
|
+
<script src="/ccs-ui/preload_helper.375fddac.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
13
|
-
<script src="/ccs-ui/umi.
|
|
13
|
+
<script src="/ccs-ui/umi.8fc48e0d.js"></script>
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DialogFormRef } from './form';
|
|
|
5
5
|
export type DialogButtonRef = {
|
|
6
6
|
onSetButtons: (e: React.ReactElement) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onOk" | "
|
|
8
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onOk" | "auth" | "request" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
9
9
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
10
10
|
formInitialValues: FormProps['initialValues'];
|
|
11
11
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/ellipsis/index.js
CHANGED
|
@@ -21,10 +21,8 @@ var measureStyle = {
|
|
|
21
21
|
};
|
|
22
22
|
var MEASURE_STATUS = /*#__PURE__*/function (MEASURE_STATUS) {
|
|
23
23
|
MEASURE_STATUS[MEASURE_STATUS["INIT"] = 99] = "INIT";
|
|
24
|
-
MEASURE_STATUS[MEASURE_STATUS["CONTENT_INIT"] = 100] = "CONTENT_INIT";
|
|
25
24
|
MEASURE_STATUS[MEASURE_STATUS["NO_ELLIPSIS"] = 0] = "NO_ELLIPSIS";
|
|
26
25
|
MEASURE_STATUS[MEASURE_STATUS["MEASURE_WALKING"] = 200] = "MEASURE_WALKING";
|
|
27
|
-
MEASURE_STATUS[MEASURE_STATUS["MEASURE_ADD_WALKING"] = 300] = "MEASURE_ADD_WALKING";
|
|
28
26
|
MEASURE_STATUS[MEASURE_STATUS["STABLE_ELLIPSIS"] = 400] = "STABLE_ELLIPSIS";
|
|
29
27
|
return MEASURE_STATUS;
|
|
30
28
|
}(MEASURE_STATUS || {}); // 稳定省略号
|
|
@@ -42,20 +40,10 @@ function Ellipsis(_ref) {
|
|
|
42
40
|
_ref$direction = _ref.direction,
|
|
43
41
|
direction = _ref$direction === void 0 ? 'end' : _ref$direction,
|
|
44
42
|
showTooltip = _ref.showTooltip;
|
|
45
|
-
var containerRef = useRef(null);
|
|
46
|
-
// 记录单号高度
|
|
47
|
-
var rowHeightRef = useRef(0);
|
|
48
43
|
// 计算单行高度的容器
|
|
49
44
|
var singleRowRef = React.useRef(null);
|
|
50
|
-
// 计算内容高度内容容器
|
|
51
|
-
var contentRef = React.useRef(null);
|
|
52
45
|
// 计算省略号内容容器
|
|
53
46
|
var walkingContentRef = React.useRef(null);
|
|
54
|
-
// 最大高度
|
|
55
|
-
var _useState = useState(0),
|
|
56
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
57
|
-
maxHeight = _useState2[0],
|
|
58
|
-
setMaxHeight = _useState2[1];
|
|
59
47
|
// 测量状态
|
|
60
48
|
var _React$useState = React.useState(MEASURE_STATUS.INIT),
|
|
61
49
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -66,67 +54,71 @@ function Ellipsis(_ref) {
|
|
|
66
54
|
return runes(!!content ? content : '');
|
|
67
55
|
}, [content]);
|
|
68
56
|
// 文字裁剪位置
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
indexNumber =
|
|
72
|
-
setIndexNumber =
|
|
57
|
+
var _useState = useState(0),
|
|
58
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
+
indexNumber = _useState2[0],
|
|
60
|
+
setIndexNumber = _useState2[1];
|
|
61
|
+
// 数据引用
|
|
62
|
+
var dataRef = useRef({
|
|
63
|
+
maxHeight: 0,
|
|
64
|
+
step: 0
|
|
65
|
+
});
|
|
73
66
|
useEffect(function () {
|
|
67
|
+
var chatLength = contentChars.length;
|
|
68
|
+
// 设置最大显示高度,防止数据抖动
|
|
74
69
|
if (status === MEASURE_STATUS.INIT) {
|
|
75
|
-
var _singleRowRef$current
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
if (status === MEASURE_STATUS.CONTENT_INIT) {
|
|
81
|
-
if (contentRef.current.offsetHeight === contentRef.current.scrollHeight) {
|
|
82
|
-
// 内容没有超出最大高度,不需要省略号
|
|
83
|
-
setStatus(MEASURE_STATUS.NO_ELLIPSIS);
|
|
84
|
-
} else {
|
|
85
|
-
// 当前内容最大行
|
|
86
|
-
var maxRow = contentRef.current.scrollHeight / rowHeightRef.current;
|
|
70
|
+
var _singleRowRef$current;
|
|
71
|
+
var maxHeight = (((_singleRowRef$current = singleRowRef.current) === null || _singleRowRef$current === void 0 ? void 0 : _singleRowRef$current.offsetHeight) || 0) * rows;
|
|
72
|
+
dataRef.current.maxHeight = maxHeight;
|
|
73
|
+
dataRef.current.step = chatLength;
|
|
87
74
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// 省略中间,根据最大行数,计算初始字段大致位置
|
|
95
|
-
if (direction === 'middle') {
|
|
96
|
-
var len = Math.floor(contentChars.length * (rows / maxRow));
|
|
97
|
-
var middleLen = Math.floor(len / 2);
|
|
98
|
-
setIndexNumber(middleLen);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 内容超出最大高度,需要省略号
|
|
102
|
-
setStatus(MEASURE_STATUS.MEASURE_WALKING);
|
|
103
|
-
}
|
|
75
|
+
// 开始测量
|
|
76
|
+
setIndexNumber(chatLength);
|
|
77
|
+
setStatus(MEASURE_STATUS.MEASURE_WALKING);
|
|
78
|
+
return;
|
|
104
79
|
}
|
|
105
80
|
|
|
106
81
|
// 测量省略号
|
|
107
82
|
if (status === MEASURE_STATUS.MEASURE_WALKING) {
|
|
108
|
-
//
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
83
|
+
// 二分量
|
|
84
|
+
var newStepNum = Math.floor(dataRef.current.step / 2);
|
|
85
|
+
dataRef.current.step = newStepNum;
|
|
86
|
+
var dom = walkingContentRef.current;
|
|
87
|
+
// 内容没有超出最大高度
|
|
88
|
+
if (dom.offsetHeight === dom.scrollHeight) {
|
|
89
|
+
// 内容没有超出最大高度,不需要省略号
|
|
90
|
+
if (indexNumber === chatLength) {
|
|
91
|
+
setStatus(MEASURE_STATUS.NO_ELLIPSIS);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
117
94
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
95
|
+
// 没有可增加量,测量结束
|
|
96
|
+
if (newStepNum === 0) {
|
|
97
|
+
setStatus(MEASURE_STATUS.STABLE_ELLIPSIS);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 二分增加字量
|
|
102
|
+
setIndexNumber(function (state) {
|
|
103
|
+
return state + newStepNum;
|
|
104
|
+
});
|
|
124
105
|
} else {
|
|
125
|
-
//
|
|
126
|
-
|
|
106
|
+
// 减少量为0,测量结束
|
|
107
|
+
if (newStepNum === 0) {
|
|
108
|
+
setIndexNumber(function (state) {
|
|
109
|
+
return state - 1;
|
|
110
|
+
});
|
|
111
|
+
setStatus(MEASURE_STATUS.STABLE_ELLIPSIS);
|
|
112
|
+
}
|
|
113
|
+
// 二分减少
|
|
114
|
+
setIndexNumber(function (state) {
|
|
115
|
+
return state - newStepNum;
|
|
116
|
+
});
|
|
127
117
|
}
|
|
128
118
|
}
|
|
129
119
|
}, [status, indexNumber]);
|
|
120
|
+
|
|
121
|
+
// 字符拼接
|
|
130
122
|
var renderContent = function renderContent() {
|
|
131
123
|
if (direction === 'start') {
|
|
132
124
|
return "".concat(ELLIPSIS_TEXT).concat(contentChars.slice(contentChars.length - indexNumber).join(''));
|
|
@@ -135,17 +127,10 @@ function Ellipsis(_ref) {
|
|
|
135
127
|
return "".concat(contentChars.slice(0, indexNumber).join('')).concat(ELLIPSIS_TEXT);
|
|
136
128
|
}
|
|
137
129
|
if (direction === 'middle') {
|
|
138
|
-
|
|
130
|
+
var start = Math.floor(indexNumber / 2);
|
|
131
|
+
return "".concat(contentChars.slice(0, start).join('')).concat(ELLIPSIS_TEXT).concat(contentChars.slice(contentChars.length - (indexNumber - start)).join(''));
|
|
139
132
|
}
|
|
140
133
|
};
|
|
141
|
-
|
|
142
|
-
// 容器尺寸改变
|
|
143
|
-
// const onResize: ResizeObserverProps['onResize'] = (size) => {
|
|
144
|
-
// if (size.width === 0) return;
|
|
145
|
-
// setStatus(MEASURE_STATUS.INIT);
|
|
146
|
-
// setIndexNumber(0);
|
|
147
|
-
// };
|
|
148
|
-
|
|
149
134
|
if (status === MEASURE_STATUS.NO_ELLIPSIS) return content;
|
|
150
135
|
if (status === MEASURE_STATUS.STABLE_ELLIPSIS) {
|
|
151
136
|
if (!showTooltip) return renderContent();
|
|
@@ -189,23 +174,15 @@ function Ellipsis(_ref) {
|
|
|
189
174
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
190
175
|
children: /*#__PURE__*/_jsxs("div", {
|
|
191
176
|
className: "ccs-ellipsis",
|
|
192
|
-
ref: containerRef,
|
|
193
177
|
children: [status === MEASURE_STATUS.INIT && /*#__PURE__*/_jsx("div", {
|
|
194
178
|
"aria-hidden": true,
|
|
195
179
|
ref: singleRowRef,
|
|
196
180
|
style: measureStyle,
|
|
197
181
|
children: "\xA0"
|
|
198
|
-
}, "stable"), status === MEASURE_STATUS.
|
|
199
|
-
ref: contentRef,
|
|
200
|
-
style: {
|
|
201
|
-
maxHeight: maxHeight
|
|
202
|
-
},
|
|
203
|
-
className: "ccs-ellipsis-scroll",
|
|
204
|
-
children: content
|
|
205
|
-
}, "content-init"), (status === MEASURE_STATUS.MEASURE_WALKING || status === MEASURE_STATUS.MEASURE_ADD_WALKING) && /*#__PURE__*/_jsx("div", {
|
|
182
|
+
}, "stable"), status === MEASURE_STATUS.MEASURE_WALKING && /*#__PURE__*/_jsx("div", {
|
|
206
183
|
ref: walkingContentRef,
|
|
207
184
|
style: {
|
|
208
|
-
maxHeight: maxHeight
|
|
185
|
+
maxHeight: dataRef.current.maxHeight
|
|
209
186
|
},
|
|
210
187
|
className: "ccs-ellipsis-scroll",
|
|
211
188
|
children: renderContent()
|
package/es/form/_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormItemProps as AntdFormItemProps, ButtonProps, Form, FormListOperation } from 'antd';
|
|
1
|
+
import { FormItemProps as AntdFormItemProps, ButtonProps, Form, FormInstance, FormListOperation } from 'antd';
|
|
2
2
|
import { NamePath } from 'antd/es/form/interface';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { PropsWithCss } from '../ccs';
|
|
@@ -6,8 +6,20 @@ export type FormItem = typeof Form.Item;
|
|
|
6
6
|
export type RuleType = 'select' | 'input' | 'email' | 'url' | 'phone' | 'idcard' | RegExp;
|
|
7
7
|
/** 依赖更新的值,数组的每个元素是一个字段的值 */
|
|
8
8
|
export type ShowValidateEvent = (values: any[]) => boolean;
|
|
9
|
+
type RenderChildren<Values = any> = (form: FormInstance<Values>,
|
|
10
|
+
/** 表单项更新时的依赖字段值和所有表单项的值 */
|
|
11
|
+
changes: any[]) => React.ReactNode;
|
|
12
|
+
type ChildrenType<Values = any> = RenderChildren<Values> | React.ReactNode;
|
|
13
|
+
export type FormItemChildren<ValueType = any> = {
|
|
14
|
+
/** 表单项值 */
|
|
15
|
+
value?: ValueType;
|
|
16
|
+
/** 表单项值变化时的回调函数 */
|
|
17
|
+
onChange?: (value: ValueType, ...args: any[]) => void;
|
|
18
|
+
/** 表单项更新时的依赖字段值和所有表单项的值 */
|
|
19
|
+
changes?: any[];
|
|
20
|
+
};
|
|
9
21
|
/** CcsForm.Item 表单项组件属性 */
|
|
10
|
-
export type FormItemProps = Omit<AntdFormItemProps
|
|
22
|
+
export type FormItemProps<Values = any> = Omit<AntdFormItemProps<Values>, 'shouldUpdate' | 'children'> & {
|
|
11
23
|
/**
|
|
12
24
|
* 依赖字段,当依赖字段变化时,才会触发 shouldUpdate, 多个字段时,只要有一个字段变化,就会触发 shouldUpdate
|
|
13
25
|
* 如果依赖字段是一个数组中的某个字段,则在数组的索引位置用空标识,例如:['listName', '', 'fieldName']
|
|
@@ -24,6 +36,8 @@ export type FormItemProps = Omit<AntdFormItemProps, 'shouldUpdate'> & {
|
|
|
24
36
|
mb?: number;
|
|
25
37
|
/** 分组表单项,将解构name,生成独立的字段值,如时间范围选择,将数组结果解构成独立的字段值 */
|
|
26
38
|
isGroupName?: boolean;
|
|
39
|
+
/** 子项渲染函数 */
|
|
40
|
+
children?: ChildrenType<Values>;
|
|
27
41
|
};
|
|
28
42
|
export type RenderItemButton = (props: ButtonProps) => ReactNode;
|
|
29
43
|
export type RenderItemProps = Pick<FormListOperation, 'remove'> & {
|
|
@@ -54,17 +68,4 @@ export type FormListProps = PropsWithCss & {
|
|
|
54
68
|
};
|
|
55
69
|
/** 列表项删除按钮 */
|
|
56
70
|
export type ListItemBtnProps = Omit<ButtonProps, 'onClick'> & {};
|
|
57
|
-
|
|
58
|
-
export interface FormItemUpdateProps {
|
|
59
|
-
/** 表单项更新的值 */
|
|
60
|
-
value?: any;
|
|
61
|
-
/** 表单项更新的值变化时的回调函数 */
|
|
62
|
-
onChange?: (value: any) => void;
|
|
63
|
-
/** 表单项更新时的依赖字段值和所有表单项的值 */
|
|
64
|
-
update?: {
|
|
65
|
-
/** 依赖字段的值 */
|
|
66
|
-
changeValues: any[];
|
|
67
|
-
/** 所有表单项的值 */
|
|
68
|
-
fieldsValue: any[];
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
+
export {};
|