@ztocwst/rc-pro-materials 0.2.1 → 0.2.3-4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +8 -8
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/designer.html +2 -2
- package/build/lowcode/index.html +2 -2
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +4 -5
- package/build/lowcode/render/default/view.css +1 -2
- package/build/lowcode/render/default/view.js +9 -58
- package/build/lowcode/view.css +1 -2
- package/build/lowcode/view.js +10 -59
- package/dist/SCM_Comps.css +2 -2
- package/dist/SCM_Comps.js +22 -53
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/es/components/z-Ellipsis/index.d.ts +3 -3
- package/es/components/z-agg-block/index.d.ts +3 -3
- package/es/components/z-agg-block/index.less +134 -134
- package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/es/components/z-agg-block/z-agg-block.js +1 -1
- package/es/components/z-auth/auth.d.ts +9 -9
- package/es/components/z-auth/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/index.d.ts +3 -3
- package/es/components/z-box/index.less +4 -4
- package/es/components/z-button/index.d.ts +3 -3
- package/es/components/z-button/z-button.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.js +45 -4
- package/es/components/z-config-provider/index.d.ts +3 -3
- package/es/components/z-data-table/data-table.d.ts +9 -0
- package/es/components/z-data-table/data-table.js +24 -0
- package/es/components/z-data-table/index.d.ts +3 -0
- package/es/components/z-data-table/index.js +2 -0
- package/es/components/z-div/div.d.ts +6 -6
- package/es/components/z-div/index.d.ts +2 -2
- package/es/components/z-editTable/editTable.d.ts +11 -11
- package/es/components/z-editTable/editTable.js +3 -4
- package/es/components/z-editTable/index.d.ts +2 -2
- package/es/components/z-form/index.d.ts +3 -3
- package/es/components/z-form/z-form.d.ts +10 -10
- package/es/components/z-form/z-form.js +1 -1
- package/es/components/z-list/index.d.ts +3 -3
- package/es/components/z-list/list.d.ts +17 -17
- package/es/components/z-list/list.js +3 -3
- package/es/components/z-operation-records/index.d.ts +3 -3
- package/es/components/z-operation-records/operationRecords.d.ts +4 -4
- package/es/components/z-pointer-block/index.d.ts +3 -3
- package/es/components/z-pointer-block/index.less +15 -15
- package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/es/components/z-preview/index.d.ts +3 -3
- package/es/components/z-preview/preview.d.ts +4 -4
- package/es/components/z-pro-provider/index.d.ts +3 -3
- package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/es/components/z-ranking-list/index.d.ts +2 -2
- package/es/components/z-ranking-list/index.less +49 -49
- package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/es/components/z-ranking-list/z-ranking-list.js +2 -3
- package/es/components/z-simple-bar/index.d.ts +3 -3
- package/es/components/z-simple-bar/index.less +9 -9
- package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/es/components/z-singleFactory/index.d.ts +2 -2
- package/es/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/es/components/z-slick/index.d.ts +3 -0
- package/es/components/z-slick/index.js +2 -0
- package/es/components/z-slick/slick.d.ts +47 -0
- package/es/components/z-slick/slick.js +35 -0
- package/es/components/z-statistic/index.d.ts +3 -3
- package/es/components/z-statistic/index.less +22 -22
- package/es/components/z-statistic/z-statistic.d.ts +13 -13
- package/es/components/z-table/index.d.ts +3 -3
- package/es/components/z-table/table.d.ts +8 -8
- package/es/components/z-table/table.js +1 -1
- package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/es/components/z-templates-data-common/components/chart-renderer/index.js +33 -13
- package/es/components/z-templates-data-common/data-common.d.ts +20 -105
- package/es/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/es/components/z-templates-data-common/data-common.helper.js +2 -336
- package/es/components/z-templates-data-common/data-common.js +81 -62
- package/es/components/z-templates-data-common/index.d.ts +3 -3
- package/es/components/z-tpl/index.d.ts +3 -3
- package/es/components/z-tpl/tpl.d.ts +23 -23
- package/es/components/z-tpl/tpl.js +3 -3
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/es/components/z-watermark/index.d.ts +3 -0
- package/es/components/z-watermark/index.js +2 -0
- package/es/components/z-watermark/zWatermark.d.ts +3 -0
- package/es/components/z-watermark/zWatermark.js +4 -0
- package/es/index.d.ts +44 -38
- package/es/index.js +4 -0
- package/es/index.scss +1 -1
- package/es/style.js +2 -6
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +13 -13
- package/es/utils/index.js +5 -1
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/common.d.ts +7 -1
- package/es/utils/props/common.js +17 -0
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/editTable.js +21 -14
- package/es/utils/props/form.d.ts +36 -0
- package/es/utils/props/form.js +33 -14
- package/es/utils/props/listTpl.d.ts +29 -29
- package/es/utils/props/microModal.d.ts +7 -7
- package/es/utils/props/microModal.js +0 -1
- package/es/utils/props/microSwitch.d.ts +1 -1
- package/es/utils/props/microSwitch.js +4 -3
- package/es/utils/props/modalSelect.d.ts +6 -6
- package/es/utils/props/operationRecords.d.ts +2 -2
- package/es/utils/props/operationRecords.js +4 -4
- package/es/utils/props/preview.d.ts +2 -2
- package/es/utils/props/preview.js +4 -4
- package/es/utils/props/tpl.d.ts +173 -162
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- package/es/utils/rcProRequest.d.ts +3 -3
- package/es/utils/rcProRequest.js +3 -3
- package/es/variables.scss +3 -3
- package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/lib/components/z-Ellipsis/ellipsis.js +3 -4
- package/lib/components/z-Ellipsis/index.d.ts +3 -3
- package/lib/components/z-Ellipsis/index.js +1 -2
- package/lib/components/z-agg-block/index.d.ts +3 -3
- package/lib/components/z-agg-block/index.js +1 -2
- package/lib/components/z-agg-block/index.less +134 -134
- package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/lib/components/z-agg-block/z-agg-block.js +2 -3
- package/lib/components/z-auth/auth.d.ts +9 -9
- package/lib/components/z-auth/auth.js +1 -2
- package/lib/components/z-auth/index.d.ts +3 -3
- package/lib/components/z-auth/index.js +1 -2
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/box.js +1 -2
- package/lib/components/z-box/index.d.ts +3 -3
- package/lib/components/z-box/index.js +1 -2
- package/lib/components/z-box/index.less +4 -4
- package/lib/components/z-button/index.d.ts +3 -3
- package/lib/components/z-button/index.js +1 -2
- package/lib/components/z-button/z-button.d.ts +4 -4
- package/lib/components/z-button/z-button.js +4 -4
- package/lib/components/z-config-provider/configProvider.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.js +47 -7
- package/lib/components/z-config-provider/index.d.ts +3 -3
- package/lib/components/z-config-provider/index.js +1 -2
- package/lib/components/z-data-table/data-table.d.ts +9 -0
- package/lib/components/z-data-table/data-table.js +27 -0
- package/lib/components/z-data-table/index.d.ts +3 -0
- package/lib/components/z-data-table/index.js +7 -0
- package/lib/components/z-div/div.d.ts +6 -6
- package/lib/components/z-div/div.js +1 -2
- package/lib/components/z-div/index.d.ts +2 -2
- package/lib/components/z-div/index.js +1 -2
- package/lib/components/z-editTable/editTable.d.ts +11 -11
- package/lib/components/z-editTable/editTable.js +7 -9
- package/lib/components/z-editTable/index.d.ts +2 -2
- package/lib/components/z-editTable/index.js +1 -2
- package/lib/components/z-form/index.d.ts +3 -3
- package/lib/components/z-form/index.js +1 -2
- package/lib/components/z-form/z-form.d.ts +10 -10
- package/lib/components/z-form/z-form.js +5 -6
- package/lib/components/z-list/index.d.ts +3 -3
- package/lib/components/z-list/index.js +1 -2
- package/lib/components/z-list/list.d.ts +17 -17
- package/lib/components/z-list/list.js +7 -8
- package/lib/components/z-operation-records/index.d.ts +3 -3
- package/lib/components/z-operation-records/index.js +1 -2
- package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
- package/lib/components/z-operation-records/operationRecords.js +3 -4
- package/lib/components/z-pointer-block/index.d.ts +3 -3
- package/lib/components/z-pointer-block/index.js +1 -2
- package/lib/components/z-pointer-block/index.less +15 -15
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/lib/components/z-pointer-block/z-pointer-block.js +1 -2
- package/lib/components/z-preview/index.d.ts +3 -3
- package/lib/components/z-preview/index.js +1 -2
- package/lib/components/z-preview/preview.d.ts +4 -4
- package/lib/components/z-preview/preview.js +3 -4
- package/lib/components/z-pro-provider/index.d.ts +3 -3
- package/lib/components/z-pro-provider/index.js +1 -2
- package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/lib/components/z-pro-provider/z-pro-provider.js +3 -4
- package/lib/components/z-ranking-list/index.d.ts +2 -2
- package/lib/components/z-ranking-list/index.js +1 -2
- package/lib/components/z-ranking-list/index.less +49 -49
- package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/lib/components/z-ranking-list/z-ranking-list.js +5 -7
- package/lib/components/z-simple-bar/index.d.ts +3 -3
- package/lib/components/z-simple-bar/index.js +1 -2
- package/lib/components/z-simple-bar/index.less +9 -9
- package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/lib/components/z-simple-bar/z-simple-bar.js +1 -2
- package/lib/components/z-singleFactory/index.d.ts +2 -2
- package/lib/components/z-singleFactory/index.js +1 -2
- package/lib/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/lib/components/z-singleFactory/zSingerFactory.js +3 -4
- package/lib/components/z-slick/index.d.ts +3 -0
- package/lib/components/z-slick/index.js +7 -0
- package/lib/components/z-slick/slick.d.ts +47 -0
- package/lib/components/z-slick/slick.js +39 -0
- package/lib/components/z-statistic/index.d.ts +3 -3
- package/lib/components/z-statistic/index.js +1 -2
- package/lib/components/z-statistic/index.less +22 -22
- package/lib/components/z-statistic/z-statistic.d.ts +13 -13
- package/lib/components/z-statistic/z-statistic.js +1 -2
- package/lib/components/z-table/index.d.ts +3 -3
- package/lib/components/z-table/index.js +1 -2
- package/lib/components/z-table/table.d.ts +8 -8
- package/lib/components/z-table/table.js +5 -6
- package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/lib/components/z-templates-data-common/components/chart-renderer/index.js +36 -17
- package/lib/components/z-templates-data-common/data-common.d.ts +20 -105
- package/lib/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/lib/components/z-templates-data-common/data-common.helper.js +3 -351
- package/lib/components/z-templates-data-common/data-common.js +85 -66
- package/lib/components/z-templates-data-common/index.d.ts +3 -3
- package/lib/components/z-templates-data-common/index.js +1 -2
- package/lib/components/z-tpl/index.d.ts +3 -3
- package/lib/components/z-tpl/index.js +1 -2
- package/lib/components/z-tpl/tpl.d.ts +23 -23
- package/lib/components/z-tpl/tpl.js +7 -8
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/index.js +1 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/lib/components/z-warehouse/zWarehouse.js +3 -4
- package/lib/components/z-watermark/index.d.ts +3 -0
- package/lib/components/z-watermark/index.js +7 -0
- package/lib/components/z-watermark/zWatermark.d.ts +3 -0
- package/lib/components/z-watermark/zWatermark.js +8 -0
- package/lib/index.d.ts +44 -38
- package/lib/index.js +8 -2
- package/lib/index.scss +1 -1
- package/lib/style.js +1 -3
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +13 -13
- package/lib/utils/index.js +7 -4
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/button.js +2 -3
- package/lib/utils/props/common.d.ts +7 -1
- package/lib/utils/props/common.js +19 -3
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/editTable.js +23 -17
- package/lib/utils/props/form.d.ts +36 -0
- package/lib/utils/props/form.js +35 -17
- package/lib/utils/props/listTpl.d.ts +29 -29
- package/lib/utils/props/listTpl.js +2 -3
- package/lib/utils/props/microModal.d.ts +7 -7
- package/lib/utils/props/microModal.js +1 -3
- package/lib/utils/props/microSwitch.d.ts +1 -1
- package/lib/utils/props/microSwitch.js +5 -4
- package/lib/utils/props/modalSelect.d.ts +6 -6
- package/lib/utils/props/modalSelect.js +2 -4
- package/lib/utils/props/operationRecords.d.ts +2 -2
- package/lib/utils/props/operationRecords.js +6 -7
- package/lib/utils/props/preview.d.ts +2 -2
- package/lib/utils/props/preview.js +6 -7
- package/lib/utils/props/tpl.d.ts +173 -162
- package/lib/utils/props/tpl.js +3 -5
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/utils/props/warehouseAndFactory.js +2 -3
- package/lib/utils/rcProRequest.d.ts +3 -3
- package/lib/utils/rcProRequest.js +3 -4
- package/lib/variables.scss +3 -3
- package/package.json +5 -5
- package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/es/components/z-templates-data-common/components/custom-renderer/index.js +0 -172
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -1
- package/es/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/dim-target/index.js +0 -430
- package/es/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -26
- package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/link-renderer/index.js +0 -320
- package/es/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/es/components/z-templates-data-common/components/table-renderer/index.js +0 -481
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -220
- package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/lib/components/z-templates-data-common/components/custom-renderer/index.js +0 -178
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -3
- package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/dim-target/index.js +0 -438
- package/lib/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -30
- package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/link-renderer/index.js +0 -326
- package/lib/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/lib/components/z-templates-data-common/components/table-renderer/index.js +0 -487
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -229
package/es/index.d.ts
CHANGED
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
-
export { default as ZButton } from './components/z-button';
|
|
3
|
-
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
-
export { default as ZForm } from './components/z-form';
|
|
5
|
-
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
-
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
-
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
-
export { default as ZTable } from './components/z-table';
|
|
9
|
-
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
-
export { default as ZPreview } from './components/z-preview';
|
|
11
|
-
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
-
export { default as ZList } from './components/z-list';
|
|
13
|
-
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
-
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
-
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
-
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
-
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
-
export { default as ZBox } from './components/z-box';
|
|
19
|
-
export { default as ZDiv } from './components/z-div';
|
|
20
|
-
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
-
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
-
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
-
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
-
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
-
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
-
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
-
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
-
export { default as ZAuth } from './components/z-auth';
|
|
29
|
-
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
-
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
-
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
-
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
-
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
-
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
-
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
-
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
-
export { default as
|
|
38
|
-
export type {
|
|
1
|
+
export type { ProButtonProps } from '@ztocwst/rc-pro/es/components/ProButton';
|
|
2
|
+
export { default as ZButton } from './components/z-button';
|
|
3
|
+
export type { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
4
|
+
export { default as ZForm } from './components/z-form';
|
|
5
|
+
export type { ProEllipsisProps } from '@ztocwst/rc-pro';
|
|
6
|
+
export { default as ZEllipsis } from './components/z-Ellipsis';
|
|
7
|
+
export type { ProTableProps } from '@ztocwst/rc-pro';
|
|
8
|
+
export { default as ZTable } from './components/z-table';
|
|
9
|
+
export type { ProPreviewProps } from '@ztocwst/rc-pro';
|
|
10
|
+
export { default as ZPreview } from './components/z-preview';
|
|
11
|
+
export type { RcListItem } from '@ztocwst/rc-pro';
|
|
12
|
+
export { default as ZList } from './components/z-list';
|
|
13
|
+
export type { RcPageProps } from '@ztocwst/rc-pro';
|
|
14
|
+
export { default as ZTpl } from './components/z-tpl';
|
|
15
|
+
export type { RcConfigConsumerProps } from '@ztocwst/rc-pro';
|
|
16
|
+
export { default as ZConfigProvider } from './components/z-config-provider';
|
|
17
|
+
export type { TypeZBoxProps } from './components/z-box';
|
|
18
|
+
export { default as ZBox } from './components/z-box';
|
|
19
|
+
export { default as ZDiv } from './components/z-div';
|
|
20
|
+
export type { TypeZStatisticProps } from './components/z-statistic';
|
|
21
|
+
export { default as ZStatistic } from './components/z-statistic';
|
|
22
|
+
export type { TypeZSimpleBarProps } from './components/z-simple-bar';
|
|
23
|
+
export { default as ZSimpleBar } from './components/z-simple-bar';
|
|
24
|
+
export { default as ZRankingList } from './components/z-ranking-list';
|
|
25
|
+
export { default as ZWarehouse } from './components/z-warehouse';
|
|
26
|
+
export { default as ZSingleFactory } from './components/z-singleFactory';
|
|
27
|
+
export { default as ZRcEditTable } from './components/z-editTable';
|
|
28
|
+
export { default as ZAuth } from './components/z-auth';
|
|
29
|
+
export type { TypeAuthProps } from './components/z-auth';
|
|
30
|
+
export { default as ZProProvider } from './components/z-pro-provider';
|
|
31
|
+
export type { TypeZProProviderProps } from './components/z-pro-provider';
|
|
32
|
+
export { default as ZOperationRecords } from './components/z-operation-records';
|
|
33
|
+
export { default as ZPointerBlock } from './components/z-pointer-block';
|
|
34
|
+
export type { TypeZPointerBlockProps } from './components/z-pointer-block';
|
|
35
|
+
export { default as ZAggBlock } from './components/z-agg-block';
|
|
36
|
+
export type { TypeAggBlockProps } from './components/z-agg-block';
|
|
37
|
+
export { default as ZDataTable } from './components/z-data-table';
|
|
38
|
+
export type { TypeZDataTableProps } from './components/z-data-table';
|
|
39
|
+
export { default as ZTemplatesDataCommon } from './components/z-templates-data-common';
|
|
40
|
+
export type { TypeZTemplatesDataCommonProps } from './components/z-templates-data-common';
|
|
41
|
+
export { default as ZSlick } from './components/z-slick';
|
|
42
|
+
export type { TypeZSlickProps } from './components/z-slick';
|
|
43
|
+
export { default as ZWatermark } from './components/z-watermark';
|
|
44
|
+
export type { TypeWatermarkProps } from './components/z-watermark';
|
package/es/index.js
CHANGED
|
@@ -22,7 +22,11 @@ export { default as ZOperationRecords } from "./components/z-operation-records";
|
|
|
22
22
|
export { default as ZPointerBlock } from "./components/z-pointer-block";
|
|
23
23
|
// 聚合指标
|
|
24
24
|
export { default as ZAggBlock } from "./components/z-agg-block";
|
|
25
|
+
// 数据表格
|
|
26
|
+
export { default as ZDataTable } from "./components/z-data-table";
|
|
25
27
|
export { default as ZTemplatesDataCommon } from "./components/z-templates-data-common";
|
|
28
|
+
export { default as ZSlick } from "./components/z-slick";
|
|
29
|
+
export { default as ZWatermark } from "./components/z-watermark";
|
|
26
30
|
|
|
27
31
|
// const bizCssPrefix = 'bizpack';
|
|
28
32
|
|
package/es/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
// @import './components/rc-button/index.scss';
|
|
1
|
+
// @import './components/rc-button/index.scss';
|
package/es/style.js
CHANGED
|
@@ -8,9 +8,7 @@ import 'antd/lib/row/style';
|
|
|
8
8
|
import 'antd/lib/col/style';
|
|
9
9
|
import 'antd/lib/message/style';
|
|
10
10
|
import 'antd/lib/tabs/style';
|
|
11
|
-
import 'antd/lib/
|
|
12
|
-
import 'antd/lib/radio/style';
|
|
13
|
-
import 'antd/lib/spin/style';
|
|
11
|
+
import 'antd/lib/carousel/style';
|
|
14
12
|
import 'antd/es/statistic/style';
|
|
15
13
|
import 'antd/es/progress/style';
|
|
16
14
|
import 'antd/es/table/style';
|
|
@@ -19,7 +17,5 @@ import 'antd/es/row/style';
|
|
|
19
17
|
import 'antd/es/col/style';
|
|
20
18
|
import 'antd/es/message/style';
|
|
21
19
|
import 'antd/es/tabs/style';
|
|
22
|
-
import 'antd/es/
|
|
23
|
-
import 'antd/es/radio/style';
|
|
24
|
-
import 'antd/es/spin/style';
|
|
20
|
+
import 'antd/es/carousel/style';
|
|
25
21
|
import './index.scss';
|
package/es/utils/hoc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 简单包装,不做任何处理
|
|
4
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
-
*/
|
|
6
|
-
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 简单包装,不做任何处理
|
|
4
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
5
|
+
*/
|
|
6
|
+
export declare function withWrap(Comp: ComponentType<any>): import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
package/es/utils/hoc.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* 简单包装,不做任何处理
|
|
6
|
-
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
4
|
+
/**
|
|
5
|
+
* 简单包装,不做任何处理
|
|
6
|
+
* 部分组件ref比较特殊,包一层会解决这个问题
|
|
7
7
|
*/
|
|
8
8
|
export function withWrap(Comp) {
|
|
9
9
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { processButtonProps } from './props/button';
|
|
2
|
-
import { processFormProps } from './props/form';
|
|
3
|
-
import { processListTplProps } from './props/listTpl';
|
|
4
|
-
import { processTplProps } from './props/tpl';
|
|
5
|
-
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
-
import { processMicroModalProps } from './props/microModal';
|
|
7
|
-
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
-
import { processEditTableProps } from './props/editTable';
|
|
9
|
-
import { processPreviewProps } from './props/preview';
|
|
10
|
-
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
-
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
|
-
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
-
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
1
|
+
import { processButtonProps } from './props/button';
|
|
2
|
+
import { processFormProps } from './props/form';
|
|
3
|
+
import { processListTplProps } from './props/listTpl';
|
|
4
|
+
import { processTplProps } from './props/tpl';
|
|
5
|
+
import { processMicroSwitchProps } from './props/microSwitch';
|
|
6
|
+
import { processMicroModalProps } from './props/microModal';
|
|
7
|
+
import { processWarehouseAndFactoryProps } from './props/warehouseAndFactory';
|
|
8
|
+
import { processEditTableProps } from './props/editTable';
|
|
9
|
+
import { processPreviewProps } from './props/preview';
|
|
10
|
+
import { processModalSelectProps, processModalSelectTablePropsColumns } from './props/modalSelect';
|
|
11
|
+
import { processOperationRecordsProps } from './props/operationRecords';
|
|
12
|
+
declare const processJsonOrFunctionProps: (props: any) => any;
|
|
13
|
+
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps, };
|
package/es/utils/index.js
CHANGED
|
@@ -10,6 +10,10 @@ import { processPreviewProps } from "./props/preview";
|
|
|
10
10
|
import { processModalSelectProps, processModalSelectTablePropsColumns } from "./props/modalSelect";
|
|
11
11
|
import { processOperationRecordsProps } from "./props/operationRecords";
|
|
12
12
|
var processJsonOrFunctionProps = function processJsonOrFunctionProps(props) {
|
|
13
|
-
|
|
13
|
+
try {
|
|
14
|
+
return typeof props === 'function' ? props === null || props === void 0 ? void 0 : props() : props;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
console.log(error);
|
|
17
|
+
}
|
|
14
18
|
};
|
|
15
19
|
export { processTplProps, processJsonOrFunctionProps, processFormProps, processListTplProps, processButtonProps, processMicroSwitchProps, processMicroModalProps, processPreviewProps, processWarehouseAndFactoryProps, processEditTableProps, processModalSelectProps, processModalSelectTablePropsColumns, processOperationRecordsProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
-
linkButton?: boolean;
|
|
4
|
-
}, extra?: {
|
|
5
|
-
tableRef?: any;
|
|
6
|
-
}) => {
|
|
7
|
-
items: any[];
|
|
8
|
-
type?: string;
|
|
9
|
-
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
10
|
-
size?: import("antd/lib/button").ButtonSize;
|
|
11
|
-
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
12
|
-
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
13
|
-
};
|
|
1
|
+
import { ProButtonItemsProps, ProButtonProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processButtonProps: (props: ProButtonProps & {
|
|
3
|
+
linkButton?: boolean;
|
|
4
|
+
}, extra?: {
|
|
5
|
+
tableRef?: any;
|
|
6
|
+
}) => {
|
|
7
|
+
items: any[];
|
|
8
|
+
type?: string;
|
|
9
|
+
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
10
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
11
|
+
onClick?: (item: ProButtonItemsProps) => void | Promise<any>;
|
|
12
|
+
onSuccess?: (item: ProButtonItemsProps, data?: any) => void;
|
|
13
|
+
};
|
package/es/utils/props/common.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
var _excluded = ["singleWarehouse"];
|
|
4
|
+
import _ from 'lodash';
|
|
4
5
|
export var processRequestConfig = function processRequestConfig(props) {
|
|
5
6
|
var _props$headers;
|
|
6
7
|
var singleWarehouse = props.singleWarehouse,
|
|
@@ -10,4 +11,20 @@ export var processRequestConfig = function processRequestConfig(props) {
|
|
|
10
11
|
singleWarehouse: true
|
|
11
12
|
} : {})
|
|
12
13
|
} : {});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 根据对象是否为空判断返回值
|
|
18
|
+
* @param obj
|
|
19
|
+
* @returns undefined | obj
|
|
20
|
+
*/
|
|
21
|
+
export var processEmptyObject = function processEmptyObject(obj) {
|
|
22
|
+
if (obj === void 0) {
|
|
23
|
+
obj = {};
|
|
24
|
+
}
|
|
25
|
+
// 判断对象是否为空
|
|
26
|
+
var empty = _ === null || _ === void 0 ? void 0 : _.isEmpty(_ === null || _ === void 0 ? void 0 : _.pickBy(obj, function (value) {
|
|
27
|
+
return value !== null && value !== undefined;
|
|
28
|
+
}));
|
|
29
|
+
return empty ? undefined : obj;
|
|
13
30
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const processEditTableProps: (props: any, extra?: {
|
|
2
|
-
proEditableFormRef?: any;
|
|
3
|
-
}) => any;
|
|
1
|
+
export declare const processEditTableProps: (props: any, extra?: {
|
|
2
|
+
proEditableFormRef?: any;
|
|
3
|
+
}) => any;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["scroll", "value", "onChange", "restEditableProps", "restRecordCreatorProps", "
|
|
4
|
-
_excluded2 = ["
|
|
3
|
+
var _excluded = ["scroll", "value", "onChange", "restEditableProps", "restRecordCreatorProps", "FormItemProps", "fieldProps", "columns", "editable", "render", "recordCreatorProps", "locale"],
|
|
4
|
+
_excluded2 = ["restFormProps"],
|
|
5
|
+
_excluded3 = ["restFieldProps"],
|
|
6
|
+
_excluded4 = ["editable"];
|
|
5
7
|
import { processJsonOrFunctionProps } from "../../../lib";
|
|
6
8
|
var processTableProps = function processTableProps(props) {
|
|
7
|
-
|
|
8
|
-
var processObjectValue = function processObjectValue(obj) {
|
|
9
|
+
var _processObjectValue = function processObjectValue(obj) {
|
|
9
10
|
var scroll = obj.scroll,
|
|
10
11
|
value = obj.value,
|
|
11
12
|
onChange = obj.onChange,
|
|
12
13
|
restEditableProps = obj.restEditableProps,
|
|
13
14
|
restRecordCreatorProps = obj.restRecordCreatorProps,
|
|
14
|
-
restFieldProps = obj.restFieldProps,
|
|
15
|
-
restFormProps = obj.restFormProps,
|
|
16
15
|
FormItemProps = obj.FormItemProps,
|
|
17
16
|
fieldProps = obj.fieldProps,
|
|
18
17
|
columns = obj.columns,
|
|
@@ -21,6 +20,12 @@ var processTableProps = function processTableProps(props) {
|
|
|
21
20
|
recordCreatorProps = obj.recordCreatorProps,
|
|
22
21
|
locale = obj.locale,
|
|
23
22
|
rest = _objectWithoutPropertiesLoose(obj, _excluded);
|
|
23
|
+
var _ref = FormItemProps !== null && FormItemProps !== void 0 ? FormItemProps : {},
|
|
24
|
+
restFormProps = _ref.restFormProps,
|
|
25
|
+
restFormItemProps = _objectWithoutPropertiesLoose(_ref, _excluded2);
|
|
26
|
+
var _ref2 = fieldProps !== null && fieldProps !== void 0 ? fieldProps : {},
|
|
27
|
+
restFieldProps = _ref2.restFieldProps,
|
|
28
|
+
restFieldItemProps = _objectWithoutPropertiesLoose(_ref2, _excluded3);
|
|
24
29
|
return _extends({}, locale ? {
|
|
25
30
|
locale: processJsonOrFunctionProps(locale)
|
|
26
31
|
} : {}, scroll ? {
|
|
@@ -36,29 +41,31 @@ var processTableProps = function processTableProps(props) {
|
|
|
36
41
|
} : {}, render ? {
|
|
37
42
|
render: render
|
|
38
43
|
} : {}, FormItemProps ? {
|
|
39
|
-
formItemProps: _extends({},
|
|
44
|
+
formItemProps: _extends({}, restFormItemProps, typeof restFormProps === 'function' ? restFormProps === null || restFormProps === void 0 ? void 0 : restFormProps() : restFormProps)
|
|
40
45
|
} : {}, fieldProps ? {
|
|
41
|
-
fieldProps: _extends({},
|
|
46
|
+
fieldProps: _extends({}, restFieldItemProps, typeof restFieldProps === 'function' ? restFieldProps === null || restFieldProps === void 0 ? void 0 : restFieldProps() : restFieldProps)
|
|
42
47
|
} : {}, columns !== null && columns !== void 0 && columns.length ? {
|
|
43
48
|
columns: columns === null || columns === void 0 ? void 0 : columns.map(function (v) {
|
|
44
49
|
var columnsEditable = v.editable,
|
|
45
|
-
restColumns = _objectWithoutPropertiesLoose(v,
|
|
50
|
+
restColumns = _objectWithoutPropertiesLoose(v, _excluded4);
|
|
46
51
|
return _extends({}, editable ? {
|
|
47
52
|
editable: columnsEditable
|
|
48
|
-
} : {},
|
|
53
|
+
} : {}, _processObjectValue(restColumns));
|
|
49
54
|
})
|
|
50
55
|
} : [], rest);
|
|
51
56
|
};
|
|
52
57
|
if (Array.isArray(props)) {
|
|
53
58
|
return props === null || props === void 0 ? void 0 : props.map(function (e) {
|
|
54
|
-
return
|
|
59
|
+
return _processObjectValue(e);
|
|
55
60
|
});
|
|
56
61
|
}
|
|
57
|
-
|
|
62
|
+
var data = _processObjectValue(props);
|
|
63
|
+
console.log(data, 'editTable Props');
|
|
64
|
+
return data;
|
|
58
65
|
};
|
|
59
66
|
export var processEditTableProps = function processEditTableProps(props, extra) {
|
|
60
|
-
var
|
|
61
|
-
proEditableFormRef =
|
|
67
|
+
var _ref3 = extra !== null && extra !== void 0 ? extra : {},
|
|
68
|
+
proEditableFormRef = _ref3.proEditableFormRef;
|
|
62
69
|
return _extends({}, processTableProps(props), {
|
|
63
70
|
proEditableFormRef: proEditableFormRef
|
|
64
71
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 处理表单默认值
|
|
3
|
+
*/
|
|
4
|
+
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
5
|
+
export declare const processFormProps: (props: Omit<import("@ant-design/pro-form/lib/components/SchemaForm").FormSchema<any, "trim" | "custom" | "text" | "autoComplete" | "cardList" | "upload" | "linkage" | "asyncSelect" | "inputTextArea" | "modalSelect" | "treeSelectArea" | "inputGroup" | "scanInput" | "timeRangePicker" | "quickTimerRange" | "rangerPickerLimit" | "linkageGroup">, "columns"> & {
|
|
6
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
7
|
+
defaultColsNumber?: number;
|
|
8
|
+
span?: number;
|
|
9
|
+
currentRef?: React.Ref<any>;
|
|
10
|
+
valueTypeMap?: Record<string, import("@ant-design/pro-provider").ProRenderFieldPropsType>;
|
|
11
|
+
number?: number;
|
|
12
|
+
settingOpt?: {
|
|
13
|
+
key: string;
|
|
14
|
+
isShowAdd?: boolean;
|
|
15
|
+
getAsyncColumns?: (key: string) => Promise<any[]>;
|
|
16
|
+
setAsyncColumns?: (key: string, data: any[]) => Promise<{
|
|
17
|
+
[k: string]: any;
|
|
18
|
+
success: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
queryBtnChangePosition?: boolean;
|
|
22
|
+
submitterFooter?: boolean;
|
|
23
|
+
anchor?: {
|
|
24
|
+
on?: boolean;
|
|
25
|
+
direction?: "left" | "right";
|
|
26
|
+
getContainer?: () => Element | HTMLElement;
|
|
27
|
+
} & Omit<import("antd").AnchorProps, "getContainer">;
|
|
28
|
+
columns?: import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[] | ((values: any) => import("@ztocwst/rc-pro").ProFormRenderColumnsType<any, "text" | import("@ant-design/pro-form/lib/components/SchemaForm").FormFieldType>[]);
|
|
29
|
+
onLoadSuccess?: () => void;
|
|
30
|
+
onSettingSuccess?: () => void;
|
|
31
|
+
coerceRaster?: boolean;
|
|
32
|
+
} & {
|
|
33
|
+
labelColWidth?: number;
|
|
34
|
+
columns?: any[];
|
|
35
|
+
restProps?: any;
|
|
36
|
+
}) => any;
|
package/es/utils/props/form.js
CHANGED
|
@@ -3,11 +3,11 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutP
|
|
|
3
3
|
var _excluded = ["fieldProps", "formItemProps", "dependencyColumns", "required", "initialValue"],
|
|
4
4
|
_excluded2 = ["restFieldProps", "renderItemSlot"],
|
|
5
5
|
_excluded3 = ["restFormProps"],
|
|
6
|
-
_excluded4 = ["fieldProps"],
|
|
6
|
+
_excluded4 = ["fieldProps", "hideInDependency"],
|
|
7
7
|
_excluded5 = ["requestOptions"],
|
|
8
8
|
_excluded6 = ["columns", "switchGroup"];
|
|
9
|
-
/**
|
|
10
|
-
* 处理表单默认值
|
|
9
|
+
/**
|
|
10
|
+
* 处理表单默认值
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { processModalSelectProps } from "./modalSelect";
|
|
@@ -23,7 +23,7 @@ var hasName = function hasName(name) {
|
|
|
23
23
|
}
|
|
24
24
|
return !!name;
|
|
25
25
|
};
|
|
26
|
-
var
|
|
26
|
+
var _processInitialValue = function processInitialValue(e) {
|
|
27
27
|
var _restFieldArgs$style;
|
|
28
28
|
var fieldProps = e.fieldProps,
|
|
29
29
|
formItemProps = e.formItemProps,
|
|
@@ -60,12 +60,15 @@ var processInitialValue = function processInitialValue(e) {
|
|
|
60
60
|
} catch (error) {
|
|
61
61
|
dependencyName = '';
|
|
62
62
|
}
|
|
63
|
-
var childRest =
|
|
64
|
-
var
|
|
63
|
+
var childRest = _processInitialValue(child);
|
|
64
|
+
var childFieldProps = childRest.fieldProps,
|
|
65
|
+
hideInDependency = childRest.hideInDependency,
|
|
65
66
|
childItemRest = _objectWithoutPropertiesLoose(childRest, _excluded4);
|
|
66
|
-
var requestOptions =
|
|
67
|
-
childRestFieldProps = _objectWithoutPropertiesLoose(
|
|
68
|
-
return _extends({},
|
|
67
|
+
var requestOptions = childFieldProps.requestOptions,
|
|
68
|
+
childRestFieldProps = _objectWithoutPropertiesLoose(childFieldProps, _excluded5);
|
|
69
|
+
return _extends({}, hideInDependency ? {
|
|
70
|
+
hideInForm: !hideInDependency(obj)
|
|
71
|
+
} : {}, childItemRest, {
|
|
69
72
|
fieldProps: _extends({}, childRestFieldProps, (childRest === null || childRest === void 0 ? void 0 : childRest.valueType) === 'asyncSelect' &&
|
|
70
73
|
// 接口请求前置校验, 通过请求 asyncSelect 接口
|
|
71
74
|
requestOptionsCheck(childRestFieldProps === null || childRestFieldProps === void 0 ? void 0 : childRestFieldProps.requestOptionsCheck, obj) ? {
|
|
@@ -132,7 +135,7 @@ export var processFormProps = function processFormProps(props) {
|
|
|
132
135
|
formRef = props.formRef,
|
|
133
136
|
currentRef = props.currentRef,
|
|
134
137
|
restProps = props.restProps;
|
|
135
|
-
|
|
138
|
+
var config = processModalSelectProps(_extends({
|
|
136
139
|
// columns只支持两级group嵌套
|
|
137
140
|
columns: (_ref3 = columns || []) === null || _ref3 === void 0 ? void 0 : _ref3.filter(function (e) {
|
|
138
141
|
return !!e;
|
|
@@ -148,11 +151,11 @@ export var processFormProps = function processFormProps(props) {
|
|
|
148
151
|
columns: (_ref4 = groupColumns || []) === null || _ref4 === void 0 ? void 0 : (_ref4$filter = _ref4.filter(function (child) {
|
|
149
152
|
return !!child;
|
|
150
153
|
})) === null || _ref4$filter === void 0 ? void 0 : _ref4$filter.map(function (child) {
|
|
151
|
-
return
|
|
154
|
+
return _processInitialValue(child);
|
|
152
155
|
})
|
|
153
156
|
});
|
|
154
157
|
}
|
|
155
|
-
return
|
|
158
|
+
return _processInitialValue(e);
|
|
156
159
|
})
|
|
157
160
|
}, onFinish ? {
|
|
158
161
|
onFinish: onFinish
|
|
@@ -169,9 +172,9 @@ export var processFormProps = function processFormProps(props) {
|
|
|
169
172
|
width: labelColWidth
|
|
170
173
|
})
|
|
171
174
|
})
|
|
172
|
-
}, settingOpt ? {
|
|
175
|
+
}, typeof settingOpt === 'string' && settingOpt !== null && settingOpt !== void 0 && settingOpt.trim() ? {
|
|
173
176
|
settingOpt: {
|
|
174
|
-
key: "
|
|
177
|
+
key: "" + (settingOpt === null || settingOpt === void 0 ? void 0 : settingOpt.trim())
|
|
175
178
|
}
|
|
176
179
|
} : {}, {
|
|
177
180
|
defaultColsNumber: defaultColsNumber,
|
|
@@ -179,4 +182,20 @@ export var processFormProps = function processFormProps(props) {
|
|
|
179
182
|
span: span,
|
|
180
183
|
layoutType: layoutType
|
|
181
184
|
}, restProps ? processJsonOrFunctionProps(restProps) : {}));
|
|
185
|
+
|
|
186
|
+
// 每次变更重置(不知当初为什么这么写,导致外部state变化后,表单输入的值被重置了)
|
|
187
|
+
// if (formRef?.current) {
|
|
188
|
+
// const resetFields = config?.columns
|
|
189
|
+
// ?.filter((e) => !e?.initialValue)
|
|
190
|
+
// ?.reduce((prev: any, next: any) => {
|
|
191
|
+
// // eslint-disable-next-line no-param-reassign
|
|
192
|
+
// prev[next?.dataIndex ?? ''] = undefined;
|
|
193
|
+
// return prev;
|
|
194
|
+
// }, {});
|
|
195
|
+
// if (Object.keys(resetFields)?.length) {
|
|
196
|
+
// formRef?.current?.setFieldsValue(resetFields);
|
|
197
|
+
// }
|
|
198
|
+
// }
|
|
199
|
+
|
|
200
|
+
return config;
|
|
182
201
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { RcListItem } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
3
|
-
listRef?: any;
|
|
4
|
-
tableRef?: any;
|
|
5
|
-
listFormRef?: any;
|
|
6
|
-
listFormCurrentRef?: any;
|
|
7
|
-
}) => {
|
|
8
|
-
requestConfig: any;
|
|
9
|
-
type?: "list";
|
|
10
|
-
listRef: any;
|
|
11
|
-
onListBtnChange?: (type: "add" | "copy" | "
|
|
12
|
-
renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "
|
|
13
|
-
render?: (onChange?: (type: "add" | "copy" | "
|
|
14
|
-
key?: string;
|
|
15
|
-
name?: any;
|
|
16
|
-
form: any;
|
|
17
|
-
actions: {
|
|
18
|
-
items: any[];
|
|
19
|
-
type?: string;
|
|
20
|
-
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
21
|
-
size?: import("antd/lib/button").ButtonSize;
|
|
22
|
-
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
23
|
-
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
24
|
-
};
|
|
25
|
-
grid: {
|
|
26
|
-
config: any;
|
|
27
|
-
ref: any;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
1
|
+
import { RcListItem } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processListTplProps: (props: RcListItem, extra?: {
|
|
3
|
+
listRef?: any;
|
|
4
|
+
tableRef?: any;
|
|
5
|
+
listFormRef?: any;
|
|
6
|
+
listFormCurrentRef?: any;
|
|
7
|
+
}) => {
|
|
8
|
+
requestConfig: any;
|
|
9
|
+
type?: "list";
|
|
10
|
+
listRef: any;
|
|
11
|
+
onListBtnChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>;
|
|
12
|
+
renderWithDefaultDom?: (dom: JSX.Element[], onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => JSX.Element;
|
|
13
|
+
render?: (onChange?: (type: "add" | "copy" | "preview" | "edit" | "back", record?: Record<string, unknown>, key?: string) => void | Promise<void>) => React.ReactNode;
|
|
14
|
+
key?: string;
|
|
15
|
+
name?: any;
|
|
16
|
+
form: any;
|
|
17
|
+
actions: {
|
|
18
|
+
items: any[];
|
|
19
|
+
type?: string;
|
|
20
|
+
spaceSize?: [import("antd/lib/space").SpaceSize, import("antd/lib/space").SpaceSize];
|
|
21
|
+
size?: import("antd/lib/button").ButtonSize;
|
|
22
|
+
onClick?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps) => void | Promise<any>;
|
|
23
|
+
onSuccess?: (item: import("@ztocwst/rc-pro").ProButtonItemsProps, data?: any) => void;
|
|
24
|
+
};
|
|
25
|
+
grid: {
|
|
26
|
+
config: any;
|
|
27
|
+
ref: any;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
|
|
3
|
-
export declare function transformFormProps(formProps: any): {
|
|
4
|
-
formProps?: undefined;
|
|
5
|
-
} | {
|
|
6
|
-
formProps: any;
|
|
7
|
-
};
|
|
1
|
+
import type { ProButtonItemsProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processMicroModalProps: (item: any) => ProButtonItemsProps;
|
|
3
|
+
export declare function transformFormProps(formProps: any): {
|
|
4
|
+
formProps?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
formProps: any;
|
|
7
|
+
};
|
|
@@ -21,7 +21,6 @@ export var processMicroModalProps = function processMicroModalProps(item) {
|
|
|
21
21
|
requestOptions: processRequestConfig(requestOptions)
|
|
22
22
|
} : {}, restProps ? processJsonOrFunctionProps(restProps) : {})
|
|
23
23
|
});
|
|
24
|
-
console.log('microModalProps', _props);
|
|
25
24
|
return _props;
|
|
26
25
|
};
|
|
27
26
|
export function transformFormProps(formProps) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
|
|
1
|
+
export declare const processMicroSwitchProps: (props: any, tableRef: any) => any;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
-
var _excluded = ["columns"],
|
|
3
|
+
var _excluded = ["columns", "restProps"],
|
|
4
4
|
_excluded2 = ["actionsSlot"],
|
|
5
5
|
_excluded3 = ["restProps", "requestOptions"],
|
|
6
6
|
_excluded4 = ["isMicroSwitch"],
|
|
7
7
|
_excluded5 = ["enableReasonKey", "disableReasonKey", "formProps"];
|
|
8
|
+
import { processJsonOrFunctionProps } from "../index";
|
|
8
9
|
import { processRequestConfig } from "./common";
|
|
9
10
|
import { transformFormProps } from "./microModal";
|
|
10
11
|
export var processMicroSwitchProps = function processMicroSwitchProps(props, tableRef) {
|
|
11
12
|
var _props$columns = props.columns,
|
|
12
13
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
14
|
+
restProps = props.restProps,
|
|
13
15
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
14
|
-
return _extends({}, rest, {
|
|
16
|
+
return _extends({}, rest, restProps ? processJsonOrFunctionProps(restProps) : {}, {
|
|
15
17
|
columns: columns === null || columns === void 0 ? void 0 : columns.map(function (column) {
|
|
16
18
|
var item = transformSwitchModal(column, tableRef);
|
|
17
19
|
var actionsSlot = item.actionsSlot,
|
|
@@ -32,7 +34,6 @@ export var processMicroSwitchProps = function processMicroSwitchProps(props, tab
|
|
|
32
34
|
// }),
|
|
33
35
|
});
|
|
34
36
|
};
|
|
35
|
-
|
|
36
37
|
var transformSwitchModal = function transformSwitchModal(column, tableRef) {
|
|
37
38
|
if (!column) {
|
|
38
39
|
return column;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processModalSelectProps: (props: ProFormRenderProps & {
|
|
3
|
-
labelColWidth?: number;
|
|
4
|
-
columns?: any[];
|
|
5
|
-
}) => any;
|
|
6
|
-
export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
|
|
1
|
+
import { ProFormRenderProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processModalSelectProps: (props: ProFormRenderProps & {
|
|
3
|
+
labelColWidth?: number;
|
|
4
|
+
columns?: any[];
|
|
5
|
+
}) => any;
|
|
6
|
+
export declare const processModalSelectTablePropsColumns: (columns: any[]) => any[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProOperationRecordsProps } from '@ztocwst/rc-pro';
|
|
2
|
-
export declare const processOperationRecordsProps: (props: ProOperationRecordsProps) => any;
|
|
1
|
+
import { ProOperationRecordsProps } from '@ztocwst/rc-pro';
|
|
2
|
+
export declare const processOperationRecordsProps: (props: ProOperationRecordsProps) => any;
|