@ccs-ui/rc-pro 2.3.6-alpha-32 → 2.3.6-alpha-33
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/package.json +4 -26
- package/LICENSE +0 -21
- package/README.md +0 -37
- package/docs-dist/2179.b80aa159.async.js +0 -22
- package/docs-dist/2191.275582c6.async.js +0 -6
- package/docs-dist/27.82086704.async.js +0 -11
- package/docs-dist/3249.edb38f0f.async.js +0 -28
- package/docs-dist/404.html +0 -15
- package/docs-dist/5171.198d8c6e.async.js +0 -8
- package/docs-dist/7024.588d984f.async.js +0 -22
- package/docs-dist/7488.2db563fb.async.js +0 -137
- package/docs-dist/751.bb8cce69.async.js +0 -1
- package/docs-dist/8784.91b4ab45.async.js +0 -598
- package/docs-dist/9591.06d066b1.async.js +0 -1
- package/docs-dist/9600.78d67888.async.js +0 -16
- package/docs-dist/9600.e8c51481.chunk.css +0 -5
- package/docs-dist/auth__demos.32e710d5.async.js +0 -1
- package/docs-dist/auth__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/auth__index.md.e0b5996f.async.js +0 -1
- package/docs-dist/button__demos.a20990de.async.js +0 -1
- package/docs-dist/button__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/button__index.md.43fe8c62.async.js +0 -1
- package/docs-dist/cascader__demos.cb1e67f3.async.js +0 -1
- package/docs-dist/cascader__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/cascader__index.md.cafec622.async.js +0 -1
- package/docs-dist/components/auth/index.html +0 -15
- package/docs-dist/components/button/index.html +0 -15
- package/docs-dist/components/cascader/index.html +0 -15
- package/docs-dist/components/date-picker/index.html +0 -15
- package/docs-dist/components/dialog/index.html +0 -15
- package/docs-dist/components/editor/index.html +0 -15
- package/docs-dist/components/group-form-item/index.html +0 -15
- package/docs-dist/components/index.html +0 -15
- package/docs-dist/components/interval-button/index.html +0 -15
- package/docs-dist/components/layout-keep-alive/index.html +0 -15
- package/docs-dist/components/loading/index.html +0 -15
- package/docs-dist/components/pro-grid/index.html +0 -15
- package/docs-dist/components/pro-table/index.html +0 -15
- package/docs-dist/components/pro-tabs/index.html +0 -15
- package/docs-dist/components/result/index.html +0 -15
- package/docs-dist/components/select/index.html +0 -15
- package/docs-dist/components/time-picker/index.html +0 -15
- package/docs-dist/components/trigger/index.html +0 -15
- package/docs-dist/components/virtual-list/index.html +0 -15
- package/docs-dist/components/water-mark/index.html +0 -15
- package/docs-dist/date-picker__demos.4cf5ef3e.async.js +0 -1
- package/docs-dist/date-picker__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/date-picker__index.md.c27e69b2.async.js +0 -1
- package/docs-dist/dialog__demos.14d31789.async.js +0 -1
- package/docs-dist/dialog__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/dialog__index.md.665375f8.async.js +0 -1
- package/docs-dist/docs__index.md.0a458278.async.js +0 -1
- package/docs-dist/docs__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/docs__log.md.33be0665.chunk.css +0 -1
- package/docs-dist/docs__log.md.af406e13.async.js +0 -1
- package/docs-dist/docs__utils.md.33be0665.chunk.css +0 -1
- package/docs-dist/docs__utils.md.e1ca1150.async.js +0 -1
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b4f42a14.async.js +0 -233
- package/docs-dist/dumi__tmp-production__dumi__theme__ContextWrapper.b9764392.chunk.css +0 -1
- package/docs-dist/editor__demos.f5ff3638.async.js +0 -6
- package/docs-dist/editor__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/editor__index.md.b4f3c5a3.async.js +0 -1
- package/docs-dist/favicon.png +0 -0
- package/docs-dist/group-form-item__demos.3197aa4d.async.js +0 -1
- package/docs-dist/group-form-item__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/group-form-item__index.md.63bf18f4.async.js +0 -1
- package/docs-dist/index.html +0 -15
- package/docs-dist/index.md.1621f8b8.async.js +0 -1
- package/docs-dist/index.md.33be0665.chunk.css +0 -1
- package/docs-dist/interval-button__demos.ff98564f.async.js +0 -1
- package/docs-dist/interval-button__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/interval-button__index.md.54c9da91.async.js +0 -1
- package/docs-dist/layout-keep-alive__demos.c12a544d.async.js +0 -1
- package/docs-dist/layout-keep-alive__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/layout-keep-alive__index.md.90ef1c2b.async.js +0 -1
- package/docs-dist/loading__demos.8ac9187d.async.js +0 -1
- package/docs-dist/loading__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/loading__index.md.d52a9847.async.js +0 -1
- package/docs-dist/log/index.html +0 -15
- package/docs-dist/logo.svg +0 -48
- package/docs-dist/meta__auth.2fdb9639.async.js +0 -12
- package/docs-dist/meta__auth.b9764392.chunk.css +0 -1
- package/docs-dist/meta__button.420ed66c.async.js +0 -8759
- package/docs-dist/meta__button.b9764392.chunk.css +0 -1
- package/docs-dist/meta__cascader.79f5fc28.async.js +0 -103
- package/docs-dist/meta__cascader.b9764392.chunk.css +0 -1
- package/docs-dist/meta__date-picker.79265ba8.async.js +0 -72
- package/docs-dist/meta__date-picker.b9764392.chunk.css +0 -1
- package/docs-dist/meta__dialog.1ca8b654.async.js +0 -502
- package/docs-dist/meta__dialog.b9764392.chunk.css +0 -1
- package/docs-dist/meta__docs.5dbc484a.async.js +0 -1
- package/docs-dist/meta__editor.11adf92c.async.js +0 -37
- package/docs-dist/meta__editor.b9764392.chunk.css +0 -1
- package/docs-dist/meta__group-form-item.a6e6163c.async.js +0 -36
- package/docs-dist/meta__group-form-item.b9764392.chunk.css +0 -1
- package/docs-dist/meta__index.md.3fe47f24.async.js +0 -1
- package/docs-dist/meta__interval-button.72bce101.async.js +0 -17
- package/docs-dist/meta__interval-button.b9764392.chunk.css +0 -1
- package/docs-dist/meta__layout-keep-alive.3997804f.async.js +0 -17
- package/docs-dist/meta__layout-keep-alive.b9764392.chunk.css +0 -1
- package/docs-dist/meta__loading.b9764392.chunk.css +0 -1
- package/docs-dist/meta__loading.cd39daf6.async.js +0 -24
- package/docs-dist/meta__pro-grid.b9764392.chunk.css +0 -1
- package/docs-dist/meta__pro-grid.be34bc7a.async.js +0 -21
- package/docs-dist/meta__pro-table.b9764392.chunk.css +0 -1
- package/docs-dist/meta__pro-table.d318e6ac.async.js +0 -609
- package/docs-dist/meta__pro-tabs.2d66cb0d.async.js +0 -104
- package/docs-dist/meta__pro-tabs.b9764392.chunk.css +0 -1
- package/docs-dist/meta__result.12e85cae.async.js +0 -20
- package/docs-dist/meta__result.b9764392.chunk.css +0 -1
- package/docs-dist/meta__select.91395de5.async.js +0 -337
- package/docs-dist/meta__select.b9764392.chunk.css +0 -1
- package/docs-dist/meta__time-picker.5ae1cf72.async.js +0 -24
- package/docs-dist/meta__time-picker.b9764392.chunk.css +0 -1
- package/docs-dist/meta__trigger.0368918c.async.js +0 -451
- package/docs-dist/meta__trigger.b9764392.chunk.css +0 -1
- package/docs-dist/meta__virtual-list.71ae35a9.async.js +0 -35
- package/docs-dist/meta__virtual-list.b9764392.chunk.css +0 -1
- package/docs-dist/meta__water-mark.b9764392.chunk.css +0 -1
- package/docs-dist/meta__water-mark.f487e8dd.async.js +0 -15
- package/docs-dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +0 -1
- package/docs-dist/nm__dumi__dist__client__pages__404.c319e0a3.async.js +0 -1
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +0 -1
- package/docs-dist/nm__dumi__dist__client__pages__Demo__index.7e033f2b.async.js +0 -1
- package/docs-dist/nm__dumi__theme-default__layouts__DocLayout__index.8a08baa2.async.js +0 -1
- package/docs-dist/preload_helper.9430b29d.js +0 -1
- package/docs-dist/pro-grid__demos.81d67052.async.js +0 -1
- package/docs-dist/pro-grid__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/pro-grid__index.md.a6b9c956.async.js +0 -1
- package/docs-dist/pro-table__demos.254e5b3a.async.js +0 -1
- package/docs-dist/pro-table__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/pro-table__index.md.607fa3d4.async.js +0 -1
- package/docs-dist/pro-tabs__demos.2f05143c.async.js +0 -1
- package/docs-dist/pro-tabs__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/pro-tabs__index.md.61a7d2c1.async.js +0 -1
- package/docs-dist/result__demos.689a5a17.async.js +0 -1
- package/docs-dist/result__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/result__index.md.7cac7890.async.js +0 -1
- package/docs-dist/select__demos.c77af292.async.js +0 -1
- package/docs-dist/select__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/select__index.md.f818a939.async.js +0 -2
- package/docs-dist/time-picker__demos.48d5025e.async.js +0 -1
- package/docs-dist/time-picker__index.md.25b2d39e.async.js +0 -1
- package/docs-dist/time-picker__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/trigger__demos.2f9bf9f4.async.js +0 -1
- package/docs-dist/trigger__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/trigger__index.md.7e0b7729.async.js +0 -1
- package/docs-dist/umi.52ae6580.js +0 -110
- package/docs-dist/umi.8c46519e.css +0 -1
- package/docs-dist/utils/index.html +0 -15
- package/docs-dist/virtual-list__demos.b1f5e707.async.js +0 -1
- package/docs-dist/virtual-list__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/virtual-list__index.md.47c7bdca.async.js +0 -1
- package/docs-dist/water-mark__demos.f7bcee8a.async.js +0 -1
- package/docs-dist/water-mark__index.md.33be0665.chunk.css +0 -1
- package/docs-dist/water-mark__index.md.e5555c25.async.js +0 -1
- package/docs-dist/~demos/:id/index.html +0 -15
- package/docs-dist/~demos/auth-demo-basic/index.html +0 -15
- package/docs-dist/~demos/button-demo-button/index.html +0 -15
- package/docs-dist/~demos/button-demo-group/index.html +0 -15
- package/docs-dist/~demos/cascader-demo-basic/index.html +0 -15
- package/docs-dist/~demos/cascader-demo-cache/index.html +0 -15
- package/docs-dist/~demos/date-picker-demo-basic/index.html +0 -15
- package/docs-dist/~demos/date-picker-demo-range/index.html +0 -15
- package/docs-dist/~demos/dialog-demo-demos/index.html +0 -15
- package/docs-dist/~demos/editor-demo-demos/index.html +0 -15
- package/docs-dist/~demos/group-form-item-demo-basic/index.html +0 -15
- package/docs-dist/~demos/interval-button-demo-basic/index.html +0 -15
- package/docs-dist/~demos/layout-keep-alive-demo-basic/index.html +0 -15
- package/docs-dist/~demos/loading-demo-basic/index.html +0 -15
- package/docs-dist/~demos/pro-grid-demo-basic/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-basic/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +0 -15
- package/docs-dist/~demos/pro-table-demo-selection/index.html +0 -15
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +0 -15
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +0 -15
- package/docs-dist/~demos/result-demo-basic/index.html +0 -15
- package/docs-dist/~demos/select-demo-api/index.html +0 -15
- package/docs-dist/~demos/select-demo-basic/index.html +0 -15
- package/docs-dist/~demos/select-demo-customize/index.html +0 -15
- package/docs-dist/~demos/select-demo-customize-label/index.html +0 -15
- package/docs-dist/~demos/time-picker-demo-basic/index.html +0 -15
- package/docs-dist/~demos/trigger-demo-basic/index.html +0 -15
- package/docs-dist/~demos/virtual-list-demo-basic/index.html +0 -15
- package/docs-dist/~demos/water-mark-demo-basic/index.html +0 -15
- package/es/aj-captcha/index.d.ts +0 -34
- package/es/aj-captcha/index.js +0 -302
- package/es/aj-captcha/index.less +0 -89
- package/es/auth/index.d.ts +0 -22
- package/es/auth/index.js +0 -52
- package/es/breadcrumb.d.ts +0 -8
- package/es/breadcrumb.js +0 -40
- package/es/button/dropdown.d.ts +0 -6
- package/es/button/dropdown.js +0 -72
- package/es/button/group.d.ts +0 -2
- package/es/button/group.js +0 -176
- package/es/button/index.d.ts +0 -65
- package/es/button/index.js +0 -133
- package/es/cascader/index.d.ts +0 -33
- package/es/cascader/index.js +0 -120
- package/es/ccs.d.ts +0 -131
- package/es/ccs.js +0 -1
- package/es/color-picker/index.d.ts +0 -7
- package/es/color-picker/index.js +0 -142
- package/es/color-picker/index.less +0 -8
- package/es/config.d.ts +0 -6
- package/es/config.js +0 -126
- package/es/context/index.d.ts +0 -115
- package/es/context/index.js +0 -6
- package/es/date-picker/index.d.ts +0 -19
- package/es/date-picker/index.js +0 -72
- package/es/dialog/HookDrawer.d.ts +0 -9
- package/es/dialog/HookDrawer.js +0 -156
- package/es/dialog/HookModal.d.ts +0 -10
- package/es/dialog/HookModal.js +0 -213
- package/es/dialog/button.d.ts +0 -24
- package/es/dialog/button.js +0 -256
- package/es/dialog/context.d.ts +0 -25
- package/es/dialog/context.js +0 -13
- package/es/dialog/drawer-footer.d.ts +0 -16
- package/es/dialog/drawer-footer.js +0 -43
- package/es/dialog/form.d.ts +0 -16
- package/es/dialog/form.js +0 -53
- package/es/dialog/hook.d.ts +0 -80
- package/es/dialog/hook.js +0 -234
- package/es/dialog/index.d.ts +0 -19
- package/es/dialog/index.js +0 -14
- package/es/dialog/usePatchElement.d.ts +0 -5
- package/es/dialog/usePatchElement.js +0 -35
- package/es/editor/index.d.ts +0 -22
- package/es/editor/index.js +0 -18
- package/es/editor/index.less +0 -19
- package/es/editor/javascript.d.ts +0 -2
- package/es/editor/javascript.js +0 -56
- package/es/editor/json.d.ts +0 -7
- package/es/editor/json.js +0 -82
- package/es/editor/sql.d.ts +0 -2
- package/es/editor/sql.js +0 -54
- package/es/ellipsis/index.d.ts +0 -22
- package/es/ellipsis/index.js +0 -129
- package/es/ellipsis/index.less +0 -5
- package/es/ellipsis/useMeasure.d.ts +0 -9
- package/es/ellipsis/useMeasure.js +0 -142
- package/es/ellipsis/useResizeEffect.d.ts +0 -2
- package/es/ellipsis/useResizeEffect.js +0 -14
- package/es/ellipsis/withStopPropagation.d.ts +0 -4
- package/es/ellipsis/withStopPropagation.js +0 -38
- package/es/full-screen/index.d.ts +0 -3
- package/es/full-screen/index.js +0 -49
- package/es/group-form-item/index.d.ts +0 -11
- package/es/group-form-item/index.js +0 -124
- package/es/hooks/use-app.d.ts +0 -25
- package/es/hooks/use-app.js +0 -52
- package/es/hooks/use-event.d.ts +0 -10
- package/es/hooks/use-event.js +0 -69
- package/es/hooks/use-once-event.d.ts +0 -2
- package/es/hooks/use-once-event.js +0 -16
- package/es/hooks/use-page.d.ts +0 -10
- package/es/hooks/use-page.js +0 -10
- package/es/hooks/use-selection.d.ts +0 -17
- package/es/hooks/use-selection.js +0 -172
- package/es/hooks/use-tabs.d.ts +0 -2
- package/es/hooks/use-tabs.js +0 -10
- package/es/hooks/use-window.d.ts +0 -8
- package/es/hooks/use-window.js +0 -15
- package/es/index.d.ts +0 -37
- package/es/index.js +0 -37
- package/es/interval-button/index.d.ts +0 -14
- package/es/interval-button/index.js +0 -128
- package/es/layout-keep-alive/index.d.ts +0 -29
- package/es/layout-keep-alive/index.js +0 -400
- package/es/layout-keep-alive/index.less +0 -79
- package/es/layout-keep-alive/page.d.ts +0 -14
- package/es/layout-keep-alive/page.js +0 -53
- package/es/layout-single-page/index.d.ts +0 -14
- package/es/layout-single-page/index.js +0 -71
- package/es/layout-single-page/index.less +0 -15
- package/es/layout-single-page/page.d.ts +0 -13
- package/es/layout-single-page/page.js +0 -41
- package/es/loading/index.d.ts +0 -14
- package/es/loading/index.js +0 -43
- package/es/pro-grid/index.d.ts +0 -15
- package/es/pro-grid/index.js +0 -58
- package/es/pro-table/_utils.d.ts +0 -12
- package/es/pro-table/_utils.js +0 -94
- package/es/pro-table/form-item.d.ts +0 -9
- package/es/pro-table/form-item.js +0 -44
- package/es/pro-table/head.d.ts +0 -16
- package/es/pro-table/head.js +0 -225
- package/es/pro-table/index.d.ts +0 -23
- package/es/pro-table/index.js +0 -37
- package/es/pro-table/index.less +0 -82
- package/es/pro-table/operation.d.ts +0 -14
- package/es/pro-table/operation.js +0 -194
- package/es/pro-table/selection-alert.d.ts +0 -20
- package/es/pro-table/selection-alert.js +0 -64
- package/es/pro-table/size.d.ts +0 -10
- package/es/pro-table/size.js +0 -17
- package/es/pro-table/summary.d.ts +0 -8
- package/es/pro-table/summary.js +0 -32
- package/es/pro-table/table.d.ts +0 -104
- package/es/pro-table/table.js +0 -712
- package/es/pro-table/tree.d.ts +0 -24
- package/es/pro-table/tree.js +0 -197
- package/es/pro-tabs/index.d.ts +0 -9
- package/es/pro-tabs/index.js +0 -174
- package/es/resize-observer.d.ts +0 -15
- package/es/resize-observer.js +0 -37
- package/es/result/icon.d.ts +0 -3
- package/es/result/icon.js +0 -3
- package/es/result/index.d.ts +0 -12
- package/es/result/index.js +0 -68
- package/es/select/ modal.d.ts +0 -10
- package/es/select/ modal.js +0 -141
- package/es/select/api.d.ts +0 -25
- package/es/select/api.js +0 -67
- package/es/select/customize.d.ts +0 -25
- package/es/select/customize.js +0 -139
- package/es/select/index.d.ts +0 -31
- package/es/select/index.js +0 -108
- package/es/status-tag/index.d.ts +0 -13
- package/es/status-tag/index.js +0 -31
- package/es/table/index.d.ts +0 -19
- package/es/table/index.js +0 -253
- package/es/table/index.less +0 -29
- package/es/theme-dialog.d.ts +0 -28
- package/es/theme-dialog.js +0 -81
- package/es/time-picker/index.d.ts +0 -15
- package/es/time-picker/index.js +0 -49
- package/es/trigger/index.d.ts +0 -43
- package/es/trigger/index.js +0 -298
- package/es/trigger/index.less +0 -42
- package/es/types.d.ts +0 -0
- package/es/types.js +0 -0
- package/es/upload/index.d.ts +0 -42
- package/es/upload/index.js +0 -167
- package/es/upload/upload-image.d.ts +0 -6
- package/es/upload/upload-image.js +0 -205
- package/es/virtual-list/index.d.ts +0 -51
- package/es/virtual-list/index.js +0 -132
- package/es/water-mark/index.d.ts +0 -65
- package/es/water-mark/index.js +0 -141
- package/es/water-mark/relative.d.ts +0 -62
- package/es/water-mark/relative.js +0 -130
package/es/pro-table/index.less
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// table buttons
|
|
2
|
-
.buttons {
|
|
3
|
-
button:not(:last-child)::after {
|
|
4
|
-
margin: 0 4px 0 6px;
|
|
5
|
-
color: #e8e8e8;
|
|
6
|
-
content: '|';
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.dark-table {
|
|
11
|
-
::-webkit-scrollbar {
|
|
12
|
-
width: 12px;
|
|
13
|
-
height: 12px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
::-webkit-scrollbar-thumb {
|
|
17
|
-
background: rgb(42, 44, 44);
|
|
18
|
-
border-radius: 3px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ccs-pl.css-table-full {
|
|
23
|
-
position: fixed;
|
|
24
|
-
left: 0;
|
|
25
|
-
right: 0;
|
|
26
|
-
top: 0;
|
|
27
|
-
bottom: 0;
|
|
28
|
-
z-index: 9999;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ccs-table-pagination {
|
|
32
|
-
margin: 0 !important;
|
|
33
|
-
padding: 12px 16px;
|
|
34
|
-
text-align: right;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ccs-pl {
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
|
|
41
|
-
&-icon {
|
|
42
|
-
// color: rgb(0 0 0 / 75%);
|
|
43
|
-
font-size: 16;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-table-content {
|
|
47
|
-
position: relative;
|
|
48
|
-
flex: auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&-form-collapse {
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: flex-end;
|
|
54
|
-
flex-wrap: wrap;
|
|
55
|
-
column-gap: 10px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&-form-expand {
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: flex-start;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
column-gap: 10px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-adaptation-form {
|
|
66
|
-
flex: 1 1 auto;
|
|
67
|
-
overflow: hidden;
|
|
68
|
-
|
|
69
|
-
&::-webkit-scrollbar {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&-form-item {
|
|
75
|
-
margin-bottom: 10px !important;
|
|
76
|
-
margin-inline-end: 0 !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&-toolbar {
|
|
80
|
-
flex: 0 0 auto;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TableProps } from 'antd';
|
|
3
|
-
import { TableRefType } from '../table';
|
|
4
|
-
type PropsType = {
|
|
5
|
-
/** 显示列 */
|
|
6
|
-
columns?: any;
|
|
7
|
-
tableRowSize: TableProps['size'];
|
|
8
|
-
tableRef: React.MutableRefObject<TableRefType | undefined>;
|
|
9
|
-
onReset: () => void;
|
|
10
|
-
onFullScreen: (isFull: boolean) => void;
|
|
11
|
-
onChangeRowSize: (e: TableProps['size']) => void;
|
|
12
|
-
};
|
|
13
|
-
export default function TableOperation({ columns, tableRef, tableRowSize, onReset, onFullScreen, onChangeRowSize, }: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
|
-
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."); }
|
|
7
|
-
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); }
|
|
8
|
-
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; }
|
|
9
|
-
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; } }
|
|
10
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import { ColumnHeightOutlined, RedoOutlined, SettingOutlined } from '@ant-design/icons';
|
|
12
|
-
import { Button, Checkbox, Divider, Dropdown, Popover, Tooltip } from 'antd';
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { CcsFullScreenButton } from '..';
|
|
15
|
-
import { classPrefix } from "./table";
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
export default function TableOperation(_ref) {
|
|
20
|
-
var columns = _ref.columns,
|
|
21
|
-
tableRef = _ref.tableRef,
|
|
22
|
-
tableRowSize = _ref.tableRowSize,
|
|
23
|
-
onReset = _ref.onReset,
|
|
24
|
-
onFullScreen = _ref.onFullScreen,
|
|
25
|
-
onChangeRowSize = _ref.onChangeRowSize;
|
|
26
|
-
var _useState = useState(columns),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
filterColumns = _useState2[0],
|
|
29
|
-
setFilterColumns = _useState2[1];
|
|
30
|
-
var _useState3 = useState(false),
|
|
31
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
-
dropdownVisible = _useState4[0],
|
|
33
|
-
setDropdownVisible = _useState4[1];
|
|
34
|
-
var _useState5 = useState(true),
|
|
35
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
36
|
-
isCheckAll = _useState6[0],
|
|
37
|
-
setIsCheckAll = _useState6[1];
|
|
38
|
-
|
|
39
|
-
// 获取全选初始状态
|
|
40
|
-
var getHalfCheckState = function getHalfCheckState() {
|
|
41
|
-
var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : columns;
|
|
42
|
-
var col = cols === null || cols === void 0 ? void 0 : cols.filter(function (t) {
|
|
43
|
-
return t.dataIndex;
|
|
44
|
-
});
|
|
45
|
-
return (col === null || col === void 0 ? void 0 : col.every(function (c) {
|
|
46
|
-
return !c.hidden;
|
|
47
|
-
})) || (col === null || col === void 0 ? void 0 : col.every(function (c) {
|
|
48
|
-
return c.hidden;
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
var _useState7 = useState(getHalfCheckState),
|
|
52
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
53
|
-
isHalfCheck = _useState8[0],
|
|
54
|
-
setIsHalfCheck = _useState8[1];
|
|
55
|
-
|
|
56
|
-
// 全选、取消全选
|
|
57
|
-
var onCheckAllChange = function onCheckAllChange(e) {
|
|
58
|
-
var _tableRef$current;
|
|
59
|
-
// 隐藏的列key
|
|
60
|
-
var columnHiddenKeys = [];
|
|
61
|
-
filterColumns.forEach(function (t) {
|
|
62
|
-
var s = t;
|
|
63
|
-
if (s.dataIndex) s.hidden = !e.target.checked;
|
|
64
|
-
if (s.hidden) columnHiddenKeys.push(t.dataIndex);
|
|
65
|
-
});
|
|
66
|
-
setFilterColumns(_toConsumableArray(filterColumns));
|
|
67
|
-
setIsCheckAll(e.target.checked);
|
|
68
|
-
setIsHalfCheck(true);
|
|
69
|
-
|
|
70
|
-
// 列改变
|
|
71
|
-
(_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || _tableRef$current.onColumnFilter({
|
|
72
|
-
columnHiddenKeys: columnHiddenKeys
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
// 列选中事件
|
|
77
|
-
var onCheckChange = function onCheckChange(checked, index) {
|
|
78
|
-
var _tableRef$current2;
|
|
79
|
-
filterColumns[index].hidden = !checked;
|
|
80
|
-
setFilterColumns(_toConsumableArray(filterColumns));
|
|
81
|
-
var isHalf = getHalfCheckState(filterColumns);
|
|
82
|
-
if (isHalf !== isHalfCheck) {
|
|
83
|
-
setIsHalfCheck(isHalf);
|
|
84
|
-
}
|
|
85
|
-
if (isHalf) {
|
|
86
|
-
setIsCheckAll(checked);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// 计算隐藏的列key
|
|
90
|
-
var columnHiddenKeys = [];
|
|
91
|
-
filterColumns.forEach(function (t) {
|
|
92
|
-
if (t.hidden) columnHiddenKeys.push(t.dataIndex);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// 发布列改变通知
|
|
96
|
-
(_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 || _tableRef$current2.onColumnFilter({
|
|
97
|
-
columnHiddenKeys: columnHiddenKeys
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// 列过滤
|
|
102
|
-
var renderCheck = function renderCheck() {
|
|
103
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
104
|
-
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
105
|
-
indeterminate: !isHalfCheck,
|
|
106
|
-
onChange: onCheckAllChange,
|
|
107
|
-
checked: isCheckAll,
|
|
108
|
-
children: "\u5168\u9009"
|
|
109
|
-
}), /*#__PURE__*/_jsx(Divider, {
|
|
110
|
-
style: {
|
|
111
|
-
margin: '4px 0'
|
|
112
|
-
}
|
|
113
|
-
}), filterColumns.map(function (c, index) {
|
|
114
|
-
return c.dataIndex ? /*#__PURE__*/_jsx("div", {
|
|
115
|
-
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
116
|
-
checked: !c.hidden,
|
|
117
|
-
onChange: function onChange(e) {
|
|
118
|
-
return onCheckChange(e.target.checked, index);
|
|
119
|
-
},
|
|
120
|
-
children: c.title
|
|
121
|
-
})
|
|
122
|
-
}, c.dataIndex) : null;
|
|
123
|
-
})]
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
127
|
-
children: [/*#__PURE__*/_jsx(Tooltip, {
|
|
128
|
-
title: "\u91CD\u7F6E",
|
|
129
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
130
|
-
onClick: onReset,
|
|
131
|
-
icon: /*#__PURE__*/_jsx(RedoOutlined, {
|
|
132
|
-
className: "".concat(classPrefix, "-icon")
|
|
133
|
-
}),
|
|
134
|
-
type: "text",
|
|
135
|
-
style: {
|
|
136
|
-
width: 24,
|
|
137
|
-
marginLeft: 4
|
|
138
|
-
}
|
|
139
|
-
})
|
|
140
|
-
}), filterColumns && /*#__PURE__*/_jsx(Popover, {
|
|
141
|
-
content: renderCheck(),
|
|
142
|
-
trigger: ['click'],
|
|
143
|
-
open: dropdownVisible,
|
|
144
|
-
onOpenChange: function onOpenChange(flag) {
|
|
145
|
-
return setDropdownVisible(flag);
|
|
146
|
-
},
|
|
147
|
-
placement: "bottomLeft",
|
|
148
|
-
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
149
|
-
title: "\u5217\u8BBE\u7F6E",
|
|
150
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
151
|
-
icon: /*#__PURE__*/_jsx(SettingOutlined, {
|
|
152
|
-
className: "".concat(classPrefix, "-icon")
|
|
153
|
-
}),
|
|
154
|
-
type: "text",
|
|
155
|
-
style: {
|
|
156
|
-
width: 24
|
|
157
|
-
}
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
}), /*#__PURE__*/_jsx(Dropdown, {
|
|
161
|
-
placement: "bottomRight",
|
|
162
|
-
menu: {
|
|
163
|
-
activeKey: tableRowSize,
|
|
164
|
-
items: [{
|
|
165
|
-
key: 'large',
|
|
166
|
-
label: '默认'
|
|
167
|
-
}, {
|
|
168
|
-
key: 'middle',
|
|
169
|
-
label: '中等'
|
|
170
|
-
}, {
|
|
171
|
-
key: 'small',
|
|
172
|
-
label: '紧凑'
|
|
173
|
-
}],
|
|
174
|
-
onClick: function onClick(e) {
|
|
175
|
-
onChangeRowSize(e.key);
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
179
|
-
title: "\u5BC6\u5EA6",
|
|
180
|
-
children: /*#__PURE__*/_jsx(Button, {
|
|
181
|
-
icon: /*#__PURE__*/_jsx(ColumnHeightOutlined, {
|
|
182
|
-
className: "".concat(classPrefix, "-icon")
|
|
183
|
-
}),
|
|
184
|
-
type: "text",
|
|
185
|
-
style: {
|
|
186
|
-
width: 24
|
|
187
|
-
}
|
|
188
|
-
})
|
|
189
|
-
})
|
|
190
|
-
}), /*#__PURE__*/_jsx(CcsFullScreenButton, {
|
|
191
|
-
onFullScreen: onFullScreen
|
|
192
|
-
})]
|
|
193
|
-
});
|
|
194
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TagProps } from 'antd';
|
|
2
|
-
import React, { CSSProperties } from 'react';
|
|
3
|
-
interface PropsType {
|
|
4
|
-
data: any[];
|
|
5
|
-
color?: TagProps['color'];
|
|
6
|
-
fieldNames: {
|
|
7
|
-
key: string;
|
|
8
|
-
label: string;
|
|
9
|
-
};
|
|
10
|
-
onClear: (key?: React.Key) => void;
|
|
11
|
-
style?: CSSProperties;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 显示table行选中项
|
|
16
|
-
* @param PropsType
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export default function SelectionAlert({ data, color, style, className, fieldNames, onClear, }: PropsType): import("react/jsx-runtime").JSX.Element | undefined;
|
|
20
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
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; }
|
|
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; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { DeleteOutlined } from '@ant-design/icons';
|
|
8
|
-
import { Button, Space, Tag, theme } from 'antd';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
/**
|
|
13
|
-
* 显示table行选中项
|
|
14
|
-
* @param PropsType
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
export default function SelectionAlert(_ref) {
|
|
18
|
-
var data = _ref.data,
|
|
19
|
-
color = _ref.color,
|
|
20
|
-
style = _ref.style,
|
|
21
|
-
className = _ref.className,
|
|
22
|
-
_ref$fieldNames = _ref.fieldNames,
|
|
23
|
-
fieldNames = _ref$fieldNames === void 0 ? {
|
|
24
|
-
key: 'key',
|
|
25
|
-
label: 'label'
|
|
26
|
-
} : _ref$fieldNames,
|
|
27
|
-
onClear = _ref.onClear;
|
|
28
|
-
var _theme$useToken = theme.useToken(),
|
|
29
|
-
token = _theme$useToken.token;
|
|
30
|
-
if (!data || data.length === 0) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
var px = "".concat(token.paddingSM, "px");
|
|
34
|
-
return /*#__PURE__*/_jsxs(Space, {
|
|
35
|
-
size: 4,
|
|
36
|
-
wrap: true,
|
|
37
|
-
style: _objectSpread({
|
|
38
|
-
padding: "0 ".concat(px, " ").concat(px, " ").concat(px)
|
|
39
|
-
}, style),
|
|
40
|
-
className: className,
|
|
41
|
-
children: [data.map(function () {
|
|
42
|
-
var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
43
|
-
return /*#__PURE__*/_jsx(Tag, {
|
|
44
|
-
color: color,
|
|
45
|
-
closable: true,
|
|
46
|
-
onClose: function onClose(e) {
|
|
47
|
-
onClear(row[fieldNames.key]);
|
|
48
|
-
e.preventDefault();
|
|
49
|
-
},
|
|
50
|
-
children: row[fieldNames.label || 'name']
|
|
51
|
-
}, row[fieldNames.key || 'key']);
|
|
52
|
-
}), data.length > 1 && /*#__PURE__*/_jsx(Button, {
|
|
53
|
-
size: "small",
|
|
54
|
-
onClick: function onClick(e) {
|
|
55
|
-
onClear();
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
},
|
|
58
|
-
icon: /*#__PURE__*/_jsx(DeleteOutlined, {}),
|
|
59
|
-
danger: true,
|
|
60
|
-
type: "text",
|
|
61
|
-
children: "\u6E05\u7A7A"
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
}
|
package/es/pro-table/size.d.ts
DELETED
package/es/pro-table/size.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useSize } from 'ahooks';
|
|
2
|
-
import { useEffect, useRef } from 'react';
|
|
3
|
-
export default function ResizeDom(_ref) {
|
|
4
|
-
var targetRef = _ref.targetRef,
|
|
5
|
-
onResize = _ref.onResize;
|
|
6
|
-
var sizeRef = useRef();
|
|
7
|
-
var size = useSize(targetRef);
|
|
8
|
-
useEffect(function () {
|
|
9
|
-
if (size) {
|
|
10
|
-
if (sizeRef.current) {
|
|
11
|
-
onResize(size);
|
|
12
|
-
}
|
|
13
|
-
sizeRef.current = size;
|
|
14
|
-
}
|
|
15
|
-
}, [size === null || size === void 0 ? void 0 : size.height, size === null || size === void 0 ? void 0 : size.width]);
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import CCS from '..';
|
|
2
|
-
interface PropsType {
|
|
3
|
-
data: Record<string, any>;
|
|
4
|
-
columns: CCS.TableColumns;
|
|
5
|
-
hasRowSelection: boolean;
|
|
6
|
-
}
|
|
7
|
-
export default function TableSummary({ data, columns, hasRowSelection, }: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
package/es/pro-table/summary.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Table } from 'antd';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
var SummaryIndex = -1;
|
|
5
|
-
export default function TableSummary(_ref) {
|
|
6
|
-
var _ref$data = _ref.data,
|
|
7
|
-
data = _ref$data === void 0 ? {} : _ref$data,
|
|
8
|
-
columns = _ref.columns,
|
|
9
|
-
hasRowSelection = _ref.hasRowSelection;
|
|
10
|
-
SummaryIndex = -1;
|
|
11
|
-
var renderCell = function renderCell(cs) {
|
|
12
|
-
return cs.map(function (d) {
|
|
13
|
-
if (d.children && d.children.length > 0) {
|
|
14
|
-
return renderCell(d.children);
|
|
15
|
-
}
|
|
16
|
-
SummaryIndex += 1;
|
|
17
|
-
return /*#__PURE__*/_jsx(Table.Summary.Cell, {
|
|
18
|
-
index: 0,
|
|
19
|
-
children: data[d.dataIndex]
|
|
20
|
-
}, SummaryIndex);
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
if (hasRowSelection) SummaryIndex += 1;
|
|
24
|
-
return /*#__PURE__*/_jsx(Table.Summary, {
|
|
25
|
-
fixed: true,
|
|
26
|
-
children: /*#__PURE__*/_jsxs(Table.Summary.Row, {
|
|
27
|
-
children: [hasRowSelection && /*#__PURE__*/_jsx(Table.Summary.Cell, {
|
|
28
|
-
index: SummaryIndex
|
|
29
|
-
}), renderCell(columns)]
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
}
|
package/es/pro-table/table.d.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { TableProps } from 'antd';
|
|
2
|
-
import { ColumnGroupType, ColumnType } from 'antd/es/table';
|
|
3
|
-
import { TableSticky } from 'rc-table/lib/interface';
|
|
4
|
-
import React, { CSSProperties, ReactNode } from 'react';
|
|
5
|
-
import CCS from '..';
|
|
6
|
-
import { PropsWithCss, PropsWithNodeChildren, TableColumns } from '../ccs';
|
|
7
|
-
import { CcsFieldNamesType } from '../context';
|
|
8
|
-
import { EllipsisProps } from '../ellipsis';
|
|
9
|
-
import './index.less';
|
|
10
|
-
type ParamType = Record<string, any>;
|
|
11
|
-
export type ShowDependType = {
|
|
12
|
-
name: string;
|
|
13
|
-
value: any;
|
|
14
|
-
};
|
|
15
|
-
export declare enum TableEvent {
|
|
16
|
-
Search = "search",// 查询
|
|
17
|
-
Reset = "reset",// 重置
|
|
18
|
-
Reload = "reload",// 刷新
|
|
19
|
-
ChangePage = "changePage",// 分页
|
|
20
|
-
InitSearch = "initSearch",// 初始化查询
|
|
21
|
-
FullScreen = "fullScreen",// 全屏
|
|
22
|
-
ColumnFilter = "columnFilter",// 列过滤
|
|
23
|
-
SelectedRows = "SelectedRows",// 选中行
|
|
24
|
-
Expand = "Expand",// 异步树展开
|
|
25
|
-
PartialReload = "PartialReload"
|
|
26
|
-
}
|
|
27
|
-
export type TableColumn<RecordType = any> = (Omit<ColumnGroupType<RecordType>, 'ellipsis'> | Omit<ColumnType<RecordType>, 'ellipsis'>) & {
|
|
28
|
-
dataIndex?: keyof RecordType;
|
|
29
|
-
/** 隐藏列 */
|
|
30
|
-
hidden?: boolean;
|
|
31
|
-
/** 省略显示行数,最大支持10行 */
|
|
32
|
-
ellipsis?: Omit<EllipsisProps, 'content'> | boolean | number;
|
|
33
|
-
};
|
|
34
|
-
export type CcsTableProps<T> = Omit<TableProps<T>, 'columns' | 'summary'> & {
|
|
35
|
-
data?: CCS.TableData<T>;
|
|
36
|
-
/** 为空时,默认一条数据 */
|
|
37
|
-
emptyDefaultOne?: boolean;
|
|
38
|
-
/** request 方法 */
|
|
39
|
-
request?: (params: any) => Promise<any>;
|
|
40
|
-
/** request 额外参数 */
|
|
41
|
-
requestParam?: ParamType;
|
|
42
|
-
/** 接口字段指定,默认: */
|
|
43
|
-
fieldNames?: CcsFieldNamesType;
|
|
44
|
-
/** class name */
|
|
45
|
-
className?: string;
|
|
46
|
-
/** style */
|
|
47
|
-
style?: CSSProperties;
|
|
48
|
-
/** 隐藏操作工具栏:刷新,列设置,密度设置,全屏 */
|
|
49
|
-
hideOperation?: boolean;
|
|
50
|
-
/** 列配置 */
|
|
51
|
-
columns?: TableColumns<T>;
|
|
52
|
-
/** table summary */
|
|
53
|
-
summary?: (data: readonly T[], columns: TableColumn<T>[]) => React.ReactNode;
|
|
54
|
-
};
|
|
55
|
-
export type TableEventHandle = (eventName: TableEvent, options?: any) => void;
|
|
56
|
-
export type CcsProTableProps<RecordType = any> = Pick<PropsWithCss, 'className'> & PropsWithNodeChildren & {
|
|
57
|
-
/** api权限标识 */
|
|
58
|
-
auth?: string | 'ignore';
|
|
59
|
-
/** 是否初始查询,默认true */
|
|
60
|
-
init?: boolean;
|
|
61
|
-
/** 标题 */
|
|
62
|
-
title?: string;
|
|
63
|
-
/** 查询条件集合 */
|
|
64
|
-
formItems?: CCS.TableFormItems;
|
|
65
|
-
/** form item label 宽度 */
|
|
66
|
-
formItemLabelWidth?: number | string;
|
|
67
|
-
/** 查询form 初始值 */
|
|
68
|
-
formInitValues?: ParamType;
|
|
69
|
-
/** 按钮 操作部分 */
|
|
70
|
-
toolbar?: ReactNode;
|
|
71
|
-
/** 边框 */
|
|
72
|
-
bordered?: boolean;
|
|
73
|
-
/** 展开查询条件,默认false */
|
|
74
|
-
expandForm?: boolean;
|
|
75
|
-
/** table 数据区域 */
|
|
76
|
-
table?: CcsTableProps<RecordType>;
|
|
77
|
-
/** 语义化styles */
|
|
78
|
-
styles?: {
|
|
79
|
-
root?: CSSProperties;
|
|
80
|
-
table?: CSSProperties;
|
|
81
|
-
};
|
|
82
|
-
/** 异步树父级值字段 */
|
|
83
|
-
parentFieldName?: string;
|
|
84
|
-
/** 异步树叶子节点标识字段或函数判断 */
|
|
85
|
-
leafNode?: string | ((record: RecordType) => boolean);
|
|
86
|
-
/** ref 回调方法 */
|
|
87
|
-
proRef?: CCS.TableInstanceRef<RecordType>;
|
|
88
|
-
/** 显示序号 */
|
|
89
|
-
showNumber?: boolean;
|
|
90
|
-
/** table 事件 */
|
|
91
|
-
onEvent?: TableEventHandle;
|
|
92
|
-
};
|
|
93
|
-
export type TableStickyProps = boolean | (TableSticky & {
|
|
94
|
-
isInDialog?: boolean;
|
|
95
|
-
});
|
|
96
|
-
export declare const classPrefix = "ccs-pl";
|
|
97
|
-
/**
|
|
98
|
-
* 布局组件 包括form、查询、toolbar、table 自动初始化数据
|
|
99
|
-
* @param CcsProTableType
|
|
100
|
-
* @param ref
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
declare const InternalProTable: <RecordType_1 extends object = any>(props: CcsProTableProps<RecordType_1>) => import("react/jsx-runtime").JSX.Element;
|
|
104
|
-
export default InternalProTable;
|