@teamix/pro 1.6.0-beta.5 → 2.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -2
- package/es/index-without-icon.d.ts +13 -13
- package/es/index-without-icon.js +31 -31
- package/es/index.d.ts +21 -32
- package/es/index.js +40 -36
- package/es/nocode/configurators/PageHeader.js +1 -1
- package/es/nocode/configurators/ProTable.js +1 -1
- package/es/nocode/configurators/index.js +1 -1
- package/es/nocode/configurators/map.js +3 -3
- package/es/nocode/index.js +8 -6
- package/es/nocode/pages/editor.js +1 -1
- package/es/nocode/pages/index.js +7 -4
- package/es/nocode/pages/playground.js +9 -11
- package/es/nocode/pages/renderer.d.ts +1 -1
- package/es/nocode/pages/renderer.js +12 -12
- package/es/nocode/playground.js +5 -7
- package/es/templates/Detail/index.d.ts +1 -0
- package/es/templates/Detail/index.js +1 -1
- package/es/templates/Form/index.d.ts +1 -0
- package/es/templates/Form/index.js +1 -1
- package/es/templates/List/index.d.ts +6 -3
- package/es/templates/List/index.js +7 -9
- package/es/templates/index.js +3 -3
- package/lib/index-without-icon.d.ts +13 -13
- package/lib/index-without-icon.js +57 -57
- package/lib/index.d.ts +21 -32
- package/lib/index.js +57 -170
- package/lib/nocode/pages/index.js +1 -1
- package/lib/nocode/pages/playground.js +5 -7
- package/lib/nocode/pages/renderer.d.ts +1 -1
- package/lib/nocode/pages/renderer.js +12 -12
- package/lib/nocode/playground.js +4 -6
- package/lib/templates/Detail/index.d.ts +1 -0
- package/lib/templates/Form/index.d.ts +1 -0
- package/lib/templates/List/index.d.ts +6 -3
- package/lib/templates/List/index.js +6 -8
- package/package.json +17 -6
- package/dist/pro.all.min.css +0 -1
- package/dist/pro.css +0 -1
- package/dist/pro.js +0 -115784
- package/dist/pro.min.js.LICENSE.txt +0 -47
- package/dist/pro.xconsole.min.css +0 -1
- package/es/actions/base.d.ts +0 -24
- package/es/actions/base.js +0 -64
- package/es/actions/confirm.d.ts +0 -7
- package/es/actions/confirm.js +0 -11
- package/es/actions/danger-confirm.d.ts +0 -7
- package/es/actions/danger-confirm.js +0 -14
- package/es/actions/danger-pop-confirm.d.ts +0 -5
- package/es/actions/danger-pop-confirm.js +0 -10
- package/es/actions/dialog-component.d.ts +0 -10
- package/es/actions/dialog-component.js +0 -19
- package/es/actions/dialog-form.d.ts +0 -29
- package/es/actions/dialog-form.js +0 -211
- package/es/actions/dialog-info.d.ts +0 -9
- package/es/actions/dialog-info.js +0 -19
- package/es/actions/dialog-table.d.ts +0 -9
- package/es/actions/dialog-table.js +0 -10
- package/es/actions/dialog.d.ts +0 -40
- package/es/actions/dialog.js +0 -223
- package/es/actions/drawer-form.d.ts +0 -6
- package/es/actions/drawer-form.js +0 -7
- package/es/actions/drawer-info.d.ts +0 -6
- package/es/actions/drawer-info.js +0 -7
- package/es/actions/drawer-table.d.ts +0 -6
- package/es/actions/drawer-table.js +0 -7
- package/es/actions/drawer.d.ts +0 -6
- package/es/actions/drawer.js +0 -7
- package/es/actions/error.d.ts +0 -7
- package/es/actions/error.js +0 -11
- package/es/actions/index.d.ts +0 -114
- package/es/actions/index.js +0 -436
- package/es/actions/index.scss +0 -141
- package/es/actions/link.d.ts +0 -8
- package/es/actions/link.js +0 -15
- package/es/actions/notice.d.ts +0 -7
- package/es/actions/notice.js +0 -11
- package/es/actions/pop-confirm.d.ts +0 -9
- package/es/actions/pop-confirm.js +0 -9
- package/es/actions/quick.d.ts +0 -2
- package/es/actions/quick.js +0 -26
- package/es/actions/request.d.ts +0 -9
- package/es/actions/request.js +0 -48
- package/es/actions/utils.d.ts +0 -1
- package/es/actions/utils.js +0 -19
- package/es/card/card-container.d.ts +0 -18
- package/es/card/card-container.js +0 -19
- package/es/card/divider.d.ts +0 -6
- package/es/card/divider.js +0 -11
- package/es/card/index.d.ts +0 -109
- package/es/card/index.js +0 -284
- package/es/card/index.scss +0 -313
- package/es/card/selectable.d.ts +0 -13
- package/es/card/selectable.js +0 -36
- package/es/card/tab.d.ts +0 -6
- package/es/card/tab.js +0 -18
- package/es/card/utils.d.ts +0 -9
- package/es/card/utils.js +0 -28
- package/es/card/xconsole.scss +0 -3
- package/es/field/index.d.ts +0 -3
- package/es/field/index.js +0 -3
- package/es/form/Components/Editable/index.d.ts +0 -20
- package/es/form/Components/Editable/index.js +0 -193
- package/es/form/Components/FormGroup/index.d.ts +0 -14
- package/es/form/Components/FormGroup/index.js +0 -78
- package/es/form/Components/FormGroup/index.scss +0 -23
- package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/es/form/Components/LightFilter/componentMap.js +0 -7
- package/es/form/Components/LightFilter/index.d.ts +0 -17
- package/es/form/Components/LightFilter/index.js +0 -122
- package/es/form/Components/LightFilter/index.scss +0 -89
- package/es/form/Components/ProField/index.d.ts +0 -2
- package/es/form/Components/ProField/index.js +0 -31
- package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/es/form/Components/ProField/mapDateFormat.js +0 -86
- package/es/form/Components/Text/index.d.ts +0 -8
- package/es/form/Components/Text/index.js +0 -20
- package/es/form/Components/Text/index.scss +0 -8
- package/es/form/Filter/AdvancedFilter.d.ts +0 -7
- package/es/form/Filter/AdvancedFilter.js +0 -112
- package/es/form/Filter/Layout.d.ts +0 -5
- package/es/form/Filter/Layout.js +0 -68
- package/es/form/Filter/LightFilter.d.ts +0 -7
- package/es/form/Filter/LightFilter.js +0 -94
- package/es/form/Filter/SimpleFilter.d.ts +0 -7
- package/es/form/Filter/SimpleFilter.js +0 -88
- package/es/form/Filter/index.d.ts +0 -9
- package/es/form/Filter/index.js +0 -511
- package/es/form/Filter/index.scss +0 -48
- package/es/form/Filter/index2.d.ts +0 -13
- package/es/form/Filter/index2.js +0 -162
- package/es/form/Filter/index2.scss +0 -26
- package/es/form/Filter/layout.scss +0 -40
- package/es/form/Filter/useBindUrl.d.ts +0 -2
- package/es/form/Filter/useBindUrl.js +0 -90
- package/es/form/Filter/useSpecialProps.d.ts +0 -6
- package/es/form/Filter/useSpecialProps.js +0 -32
- package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/es/form/ProForm/addCascadeEffect.js +0 -203
- package/es/form/ProForm/customComponent.d.ts +0 -3
- package/es/form/ProForm/customComponent.js +0 -16
- package/es/form/ProForm/index.d.ts +0 -5
- package/es/form/ProForm/index.js +0 -155
- package/es/form/ProForm/index.scss +0 -411
- package/es/form/ProForm/useAutoLayout.d.ts +0 -9
- package/es/form/ProForm/useAutoLayout.js +0 -93
- package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/es/form/ProForm/useAutoSubmit.js +0 -23
- package/es/form/ProForm/useFieldRequest.d.ts +0 -5
- package/es/form/ProForm/useFieldRequest.js +0 -14
- package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/es/form/ProForm/useFormDisplayValues.js +0 -78
- package/es/form/ProForm/useInitialRequest.d.ts +0 -6
- package/es/form/ProForm/useInitialRequest.js +0 -10
- package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/es/form/SchemaForm/adapterComponent.js +0 -14
- package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/es/form/SchemaForm/adapterDecorator.js +0 -20
- package/es/form/SchemaForm/adapterType.d.ts +0 -5
- package/es/form/SchemaForm/adapterType.js +0 -52
- package/es/form/SchemaForm/index.d.ts +0 -4
- package/es/form/SchemaForm/index.js +0 -209
- package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCards.js +0 -18
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCollapse.js +0 -18
- package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayItems.js +0 -31
- package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayTable.js +0 -78
- package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/es/form/SchemaForm/initializeDataSource.js +0 -19
- package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormButton.js +0 -74
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormCollapse.js +0 -33
- package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormGroup.js +0 -36
- package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/es/form/SchemaForm/initializeFormStep.js +0 -50
- package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormTab.js +0 -43
- package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/es/form/SchemaForm/initializeReactions.js +0 -65
- package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/es/form/SchemaForm/initializeRequest.js +0 -38
- package/es/form/SchemaForm/initializeRules.d.ts +0 -11
- package/es/form/SchemaForm/initializeRules.js +0 -46
- package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeSelectTable.js +0 -83
- package/es/form/SchemaForm/reactions.d.ts +0 -6
- package/es/form/SchemaForm/reactions.js +0 -88
- package/es/form/docs/ActionResponse.d.ts +0 -8
- package/es/form/docs/ActionResponse.js +0 -11
- package/es/form/docs/ActionResponse.less +0 -25
- package/es/form/fieldTypeMap.d.ts +0 -7
- package/es/form/fieldTypeMap.js +0 -46
- package/es/form/global.scss +0 -14
- package/es/form/index.d.ts +0 -125
- package/es/form/index.js +0 -44
- package/es/form/locales/validate.d.ts +0 -159
- package/es/form/locales/validate.js +0 -158
- package/es/form/schemaNameMap.d.ts +0 -5
- package/es/form/schemaNameMap.js +0 -50
- package/es/form/typing.d.ts +0 -194
- package/es/form/typing.js +0 -1
- package/es/form/utils/parseSchema.d.ts +0 -3
- package/es/form/utils/parseSchema.js +0 -38
- package/es/form/utils.d.ts +0 -55
- package/es/form/utils.js +0 -155
- package/es/form/warning.d.ts +0 -3
- package/es/form/warning.js +0 -11
- package/es/image/index.d.ts +0 -22
- package/es/image/index.js +0 -73
- package/es/image/index.scss +0 -3
- package/es/info/components/InfoGroup/index.d.ts +0 -5
- package/es/info/components/InfoGroup/index.js +0 -86
- package/es/info/components/InfoGroup/index.scss +0 -64
- package/es/info/components/InfoValueItem/index.d.ts +0 -5
- package/es/info/components/InfoValueItem/index.js +0 -302
- package/es/info/components/InfoValueItem/index.scss +0 -26
- package/es/info/components/ProInfoItem/index.d.ts +0 -5
- package/es/info/components/ProInfoItem/index.js +0 -92
- package/es/info/components/ProInfoItem/index.scss +0 -76
- package/es/info/components/baseInfo/index.d.ts +0 -8
- package/es/info/components/baseInfo/index.js +0 -95
- package/es/info/components/baseInfo/index.scss +0 -6
- package/es/info/components/headerInfo/index.d.ts +0 -8
- package/es/info/components/headerInfo/index.js +0 -68
- package/es/info/components/headerInfo/index.scss +0 -3
- package/es/info/components/tableInfo/index.d.ts +0 -7
- package/es/info/components/tableInfo/index.js +0 -154
- package/es/info/components/tableInfo/index.scss +0 -18
- package/es/info/index.d.ts +0 -6
- package/es/info/index.js +0 -182
- package/es/info/index.scss +0 -9
- package/es/info/typing.d.ts +0 -220
- package/es/info/typing.js +0 -1
- package/es/info/utils/index.d.ts +0 -20
- package/es/info/utils/index.js +0 -49
- package/es/info/utils/layout.d.ts +0 -2
- package/es/info/utils/layout.js +0 -58
- package/es/info/utils/utils.d.ts +0 -1
- package/es/info/utils/utils.js +0 -13
- package/es/layout/index.d.ts +0 -2
- package/es/layout/index.js +0 -3
- package/es/page-container/index.d.ts +0 -3
- package/es/page-container/index.js +0 -3
- package/es/page-header/index.d.ts +0 -74
- package/es/page-header/index.js +0 -218
- package/es/page-header/index.scss +0 -193
- package/es/page-header/xconsole.scss +0 -5
- package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/es/sidebar/components/sidebar-container/index.js +0 -167
- package/es/sidebar/components/sidebar-container/index.scss +0 -73
- package/es/sidebar/components/tree/index.d.ts +0 -6
- package/es/sidebar/components/tree/index.js +0 -288
- package/es/sidebar/components/tree/index.scss +0 -10
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -47
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/es/sidebar/components/tree-node/components/IconAction/index.js +0 -79
- package/es/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -60
- package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/es/sidebar/components/tree-node/index.d.ts +0 -7
- package/es/sidebar/components/tree-node/index.js +0 -192
- package/es/sidebar/components/tree-node/index.scss +0 -68
- package/es/sidebar/index.d.ts +0 -9
- package/es/sidebar/index.js +0 -187
- package/es/sidebar/index.scss +0 -38
- package/es/sidebar/typing.d.ts +0 -145
- package/es/sidebar/typing.js +0 -1
- package/es/sidebar/utils/action-ref.d.ts +0 -3
- package/es/sidebar/utils/action-ref.js +0 -10
- package/es/sidebar/utils/index.d.ts +0 -364
- package/es/sidebar/utils/index.js +0 -277
- package/es/skeleton/index.d.ts +0 -3
- package/es/skeleton/index.js +0 -3
- package/es/table/components/CardView/index.d.ts +0 -5
- package/es/table/components/CardView/index.js +0 -387
- package/es/table/components/CardView/index.scss +0 -46
- package/es/table/components/EmptyContent/index.d.ts +0 -2
- package/es/table/components/EmptyContent/index.js +0 -11
- package/es/table/components/Filter/index.d.ts +0 -12
- package/es/table/components/Filter/index.js +0 -248
- package/es/table/components/Filter/index.scss +0 -27
- package/es/table/components/Layout/index.d.ts +0 -5
- package/es/table/components/Layout/index.js +0 -175
- package/es/table/components/Layout/index.scss +0 -48
- package/es/table/components/LoadMore/index.d.ts +0 -20
- package/es/table/components/LoadMore/index.js +0 -88
- package/es/table/components/LoadMore/index.scss +0 -19
- package/es/table/components/Pagination/index.d.ts +0 -8
- package/es/table/components/Pagination/index.js +0 -244
- package/es/table/components/Pagination/index.scss +0 -55
- package/es/table/components/QuickAction/index.d.ts +0 -11
- package/es/table/components/QuickAction/index.js +0 -45
- package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/es/table/components/ToolBar/CardSwitch.js +0 -52
- package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/es/table/components/ToolBar/DensityIcon.js +0 -107
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FilterColumnIcon.js +0 -362
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FullScreenIcon.js +0 -29
- package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/es/table/components/ToolBar/Fullscreen.js +0 -100
- package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/es/table/components/ToolBar/RefreshIcon.js +0 -180
- package/es/table/components/ToolBar/index.d.ts +0 -5
- package/es/table/components/ToolBar/index.js +0 -174
- package/es/table/components/ToolBar/index.scss +0 -177
- package/es/table/index.d.ts +0 -6
- package/es/table/index.js +0 -1154
- package/es/table/index.scss +0 -158
- package/es/table/typing.d.ts +0 -426
- package/es/table/typing.js +0 -1
- package/es/table/utils/columnRender.d.ts +0 -13
- package/es/table/utils/columnRender.js +0 -247
- package/es/table/utils/genProColumnToColumn.d.ts +0 -13
- package/es/table/utils/genProColumnToColumn.js +0 -51
- package/es/table/utils/getTableProps.d.ts +0 -2
- package/es/table/utils/getTableProps.js +0 -4
- package/es/table/utils/getTableSortIcons.d.ts +0 -3
- package/es/table/utils/getTableSortIcons.js +0 -21
- package/es/table/utils/index.d.ts +0 -19
- package/es/table/utils/index.js +0 -128
- package/es/table/utils/pureColumnRender.d.ts +0 -9
- package/es/table/utils/pureColumnRender.js +0 -169
- package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/es/table/utils/pureGenProColumnToColumn.js +0 -28
- package/es/table/utils/useTableSelection.d.ts +0 -3
- package/es/table/utils/useTableSelection.js +0 -80
- package/es/table/utils/util.d.ts +0 -5
- package/es/table/utils/util.js +0 -19
- package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/es/timeline/ProTimeLineItem/index.js +0 -245
- package/es/timeline/ProTimeLineItem/index.scss +0 -235
- package/es/timeline/index.d.ts +0 -10
- package/es/timeline/index.js +0 -63
- package/es/timeline/index.scss +0 -7
- package/es/timeline/typing.d.ts +0 -107
- package/es/timeline/typing.js +0 -1
- package/es/utils/aspect.d.ts +0 -2
- package/es/utils/aspect.js +0 -57
- package/es/utils/index.d.ts +0 -3
- package/es/utils/index.js +0 -3
- package/es/utils/message.d.ts +0 -3
- package/es/utils/message.js +0 -14
- package/lib/actions/base.d.ts +0 -24
- package/lib/actions/base.js +0 -72
- package/lib/actions/confirm.d.ts +0 -7
- package/lib/actions/confirm.js +0 -20
- package/lib/actions/danger-confirm.d.ts +0 -7
- package/lib/actions/danger-confirm.js +0 -23
- package/lib/actions/danger-pop-confirm.d.ts +0 -5
- package/lib/actions/danger-pop-confirm.js +0 -18
- package/lib/actions/dialog-component.d.ts +0 -10
- package/lib/actions/dialog-component.js +0 -28
- package/lib/actions/dialog-form.d.ts +0 -29
- package/lib/actions/dialog-form.js +0 -220
- package/lib/actions/dialog-info.d.ts +0 -9
- package/lib/actions/dialog-info.js +0 -28
- package/lib/actions/dialog-table.d.ts +0 -9
- package/lib/actions/dialog-table.js +0 -19
- package/lib/actions/dialog.d.ts +0 -40
- package/lib/actions/dialog.js +0 -232
- package/lib/actions/drawer-form.d.ts +0 -6
- package/lib/actions/drawer-form.js +0 -15
- package/lib/actions/drawer-info.d.ts +0 -6
- package/lib/actions/drawer-info.js +0 -15
- package/lib/actions/drawer-table.d.ts +0 -6
- package/lib/actions/drawer-table.js +0 -15
- package/lib/actions/drawer.d.ts +0 -6
- package/lib/actions/drawer.js +0 -16
- package/lib/actions/error.d.ts +0 -7
- package/lib/actions/error.js +0 -20
- package/lib/actions/index.d.ts +0 -114
- package/lib/actions/index.js +0 -474
- package/lib/actions/index.scss +0 -141
- package/lib/actions/link.d.ts +0 -8
- package/lib/actions/link.js +0 -21
- package/lib/actions/notice.d.ts +0 -7
- package/lib/actions/notice.js +0 -20
- package/lib/actions/pop-confirm.d.ts +0 -9
- package/lib/actions/pop-confirm.js +0 -18
- package/lib/actions/quick.d.ts +0 -2
- package/lib/actions/quick.js +0 -33
- package/lib/actions/request.d.ts +0 -9
- package/lib/actions/request.js +0 -55
- package/lib/actions/utils.d.ts +0 -1
- package/lib/actions/utils.js +0 -25
- package/lib/card/card-container.d.ts +0 -18
- package/lib/card/card-container.js +0 -28
- package/lib/card/divider.d.ts +0 -6
- package/lib/card/divider.js +0 -19
- package/lib/card/index.d.ts +0 -109
- package/lib/card/index.js +0 -310
- package/lib/card/index.scss +0 -313
- package/lib/card/selectable.d.ts +0 -13
- package/lib/card/selectable.js +0 -44
- package/lib/card/tab.d.ts +0 -6
- package/lib/card/tab.js +0 -26
- package/lib/card/utils.d.ts +0 -9
- package/lib/card/utils.js +0 -35
- package/lib/card/xconsole.scss +0 -3
- package/lib/field/index.d.ts +0 -3
- package/lib/field/index.js +0 -24
- package/lib/form/Components/Editable/index.d.ts +0 -20
- package/lib/form/Components/Editable/index.js +0 -205
- package/lib/form/Components/FormGroup/index.d.ts +0 -14
- package/lib/form/Components/FormGroup/index.js +0 -86
- package/lib/form/Components/FormGroup/index.scss +0 -23
- package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/lib/form/Components/LightFilter/componentMap.js +0 -14
- package/lib/form/Components/LightFilter/index.d.ts +0 -17
- package/lib/form/Components/LightFilter/index.js +0 -133
- package/lib/form/Components/LightFilter/index.scss +0 -89
- package/lib/form/Components/ProField/index.d.ts +0 -2
- package/lib/form/Components/ProField/index.js +0 -39
- package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/lib/form/Components/ProField/mapDateFormat.js +0 -94
- package/lib/form/Components/Text/index.d.ts +0 -8
- package/lib/form/Components/Text/index.js +0 -28
- package/lib/form/Components/Text/index.scss +0 -8
- package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
- package/lib/form/Filter/AdvancedFilter.js +0 -123
- package/lib/form/Filter/Layout.d.ts +0 -5
- package/lib/form/Filter/Layout.js +0 -78
- package/lib/form/Filter/LightFilter.d.ts +0 -7
- package/lib/form/Filter/LightFilter.js +0 -105
- package/lib/form/Filter/SimpleFilter.d.ts +0 -7
- package/lib/form/Filter/SimpleFilter.js +0 -99
- package/lib/form/Filter/index.d.ts +0 -9
- package/lib/form/Filter/index.js +0 -526
- package/lib/form/Filter/index.scss +0 -48
- package/lib/form/Filter/index2.d.ts +0 -13
- package/lib/form/Filter/index2.js +0 -174
- package/lib/form/Filter/index2.scss +0 -26
- package/lib/form/Filter/layout.scss +0 -40
- package/lib/form/Filter/useBindUrl.d.ts +0 -2
- package/lib/form/Filter/useBindUrl.js +0 -97
- package/lib/form/Filter/useSpecialProps.d.ts +0 -6
- package/lib/form/Filter/useSpecialProps.js +0 -39
- package/lib/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/lib/form/ProForm/addCascadeEffect.js +0 -210
- package/lib/form/ProForm/customComponent.d.ts +0 -3
- package/lib/form/ProForm/customComponent.js +0 -22
- package/lib/form/ProForm/index.d.ts +0 -5
- package/lib/form/ProForm/index.js +0 -166
- package/lib/form/ProForm/index.scss +0 -411
- package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
- package/lib/form/ProForm/useAutoLayout.js +0 -100
- package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/lib/form/ProForm/useAutoSubmit.js +0 -28
- package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
- package/lib/form/ProForm/useFieldRequest.js +0 -21
- package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/lib/form/ProForm/useFormDisplayValues.js +0 -86
- package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
- package/lib/form/ProForm/useInitialRequest.js +0 -17
- package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/lib/form/SchemaForm/adapterComponent.js +0 -21
- package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/lib/form/SchemaForm/adapterDecorator.js +0 -24
- package/lib/form/SchemaForm/adapterType.d.ts +0 -5
- package/lib/form/SchemaForm/adapterType.js +0 -59
- package/lib/form/SchemaForm/index.d.ts +0 -4
- package/lib/form/SchemaForm/index.js +0 -220
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCards.js +0 -25
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -25
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayItems.js +0 -38
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayTable.js +0 -85
- package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/lib/form/SchemaForm/initializeDataSource.js +0 -26
- package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormButton.js +0 -81
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormCollapse.js +0 -40
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormGroup.js +0 -43
- package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/lib/form/SchemaForm/initializeFormStep.js +0 -57
- package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormTab.js +0 -50
- package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/lib/form/SchemaForm/initializeReactions.js +0 -73
- package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRequest.js +0 -45
- package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRules.js +0 -53
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeSelectTable.js +0 -91
- package/lib/form/SchemaForm/reactions.d.ts +0 -6
- package/lib/form/SchemaForm/reactions.js +0 -97
- package/lib/form/docs/ActionResponse.d.ts +0 -8
- package/lib/form/docs/ActionResponse.js +0 -19
- package/lib/form/docs/ActionResponse.less +0 -25
- package/lib/form/fieldTypeMap.d.ts +0 -7
- package/lib/form/fieldTypeMap.js +0 -54
- package/lib/form/global.scss +0 -14
- package/lib/form/index.d.ts +0 -125
- package/lib/form/index.js +0 -171
- package/lib/form/locales/validate.d.ts +0 -159
- package/lib/form/locales/validate.js +0 -165
- package/lib/form/schemaNameMap.d.ts +0 -5
- package/lib/form/schemaNameMap.js +0 -57
- package/lib/form/typing.d.ts +0 -194
- package/lib/form/typing.js +0 -5
- package/lib/form/utils/parseSchema.d.ts +0 -3
- package/lib/form/utils/parseSchema.js +0 -45
- package/lib/form/utils.d.ts +0 -55
- package/lib/form/utils.js +0 -169
- package/lib/form/warning.d.ts +0 -3
- package/lib/form/warning.js +0 -18
- package/lib/image/index.d.ts +0 -22
- package/lib/image/index.js +0 -83
- package/lib/image/index.scss +0 -3
- package/lib/info/components/InfoGroup/index.d.ts +0 -5
- package/lib/info/components/InfoGroup/index.js +0 -97
- package/lib/info/components/InfoGroup/index.scss +0 -64
- package/lib/info/components/InfoValueItem/index.d.ts +0 -5
- package/lib/info/components/InfoValueItem/index.js +0 -313
- package/lib/info/components/InfoValueItem/index.scss +0 -26
- package/lib/info/components/ProInfoItem/index.d.ts +0 -5
- package/lib/info/components/ProInfoItem/index.js +0 -100
- package/lib/info/components/ProInfoItem/index.scss +0 -76
- package/lib/info/components/baseInfo/index.d.ts +0 -8
- package/lib/info/components/baseInfo/index.js +0 -103
- package/lib/info/components/baseInfo/index.scss +0 -6
- package/lib/info/components/headerInfo/index.d.ts +0 -8
- package/lib/info/components/headerInfo/index.js +0 -76
- package/lib/info/components/headerInfo/index.scss +0 -3
- package/lib/info/components/tableInfo/index.d.ts +0 -7
- package/lib/info/components/tableInfo/index.js +0 -164
- package/lib/info/components/tableInfo/index.scss +0 -18
- package/lib/info/index.d.ts +0 -6
- package/lib/info/index.js +0 -205
- package/lib/info/index.scss +0 -9
- package/lib/info/typing.d.ts +0 -220
- package/lib/info/typing.js +0 -5
- package/lib/info/utils/index.d.ts +0 -20
- package/lib/info/utils/index.js +0 -60
- package/lib/info/utils/layout.d.ts +0 -2
- package/lib/info/utils/layout.js +0 -65
- package/lib/info/utils/utils.d.ts +0 -1
- package/lib/info/utils/utils.js +0 -19
- package/lib/layout/index.d.ts +0 -2
- package/lib/layout/index.js +0 -10
- package/lib/page-container/index.d.ts +0 -3
- package/lib/page-container/index.js +0 -24
- package/lib/page-header/index.d.ts +0 -74
- package/lib/page-header/index.js +0 -224
- package/lib/page-header/index.scss +0 -193
- package/lib/page-header/xconsole.scss +0 -5
- package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/lib/sidebar/components/sidebar-container/index.js +0 -178
- package/lib/sidebar/components/sidebar-container/index.scss +0 -73
- package/lib/sidebar/components/tree/index.d.ts +0 -6
- package/lib/sidebar/components/tree/index.js +0 -298
- package/lib/sidebar/components/tree/index.scss +0 -10
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -57
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +0 -90
- package/lib/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -71
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/lib/sidebar/components/tree-node/index.d.ts +0 -7
- package/lib/sidebar/components/tree-node/index.js +0 -204
- package/lib/sidebar/components/tree-node/index.scss +0 -68
- package/lib/sidebar/index.d.ts +0 -9
- package/lib/sidebar/index.js +0 -228
- package/lib/sidebar/index.scss +0 -38
- package/lib/sidebar/typing.d.ts +0 -145
- package/lib/sidebar/typing.js +0 -5
- package/lib/sidebar/utils/action-ref.d.ts +0 -3
- package/lib/sidebar/utils/action-ref.js +0 -16
- package/lib/sidebar/utils/index.d.ts +0 -364
- package/lib/sidebar/utils/index.js +0 -291
- package/lib/skeleton/index.d.ts +0 -3
- package/lib/skeleton/index.js +0 -24
- package/lib/table/components/CardView/index.d.ts +0 -5
- package/lib/table/components/CardView/index.js +0 -397
- package/lib/table/components/CardView/index.scss +0 -46
- package/lib/table/components/EmptyContent/index.d.ts +0 -2
- package/lib/table/components/EmptyContent/index.js +0 -19
- package/lib/table/components/Filter/index.d.ts +0 -12
- package/lib/table/components/Filter/index.js +0 -258
- package/lib/table/components/Filter/index.scss +0 -27
- package/lib/table/components/Layout/index.d.ts +0 -5
- package/lib/table/components/Layout/index.js +0 -185
- package/lib/table/components/Layout/index.scss +0 -48
- package/lib/table/components/LoadMore/index.d.ts +0 -20
- package/lib/table/components/LoadMore/index.js +0 -99
- package/lib/table/components/LoadMore/index.scss +0 -19
- package/lib/table/components/Pagination/index.d.ts +0 -8
- package/lib/table/components/Pagination/index.js +0 -253
- package/lib/table/components/Pagination/index.scss +0 -55
- package/lib/table/components/QuickAction/index.d.ts +0 -11
- package/lib/table/components/QuickAction/index.js +0 -53
- package/lib/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/lib/table/components/ToolBar/CardSwitch.js +0 -60
- package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/DensityIcon.js +0 -114
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FilterColumnIcon.js +0 -370
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FullScreenIcon.js +0 -38
- package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/lib/table/components/ToolBar/Fullscreen.js +0 -110
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/RefreshIcon.js +0 -188
- package/lib/table/components/ToolBar/index.d.ts +0 -5
- package/lib/table/components/ToolBar/index.js +0 -185
- package/lib/table/components/ToolBar/index.scss +0 -177
- package/lib/table/index.d.ts +0 -6
- package/lib/table/index.js +0 -1176
- package/lib/table/index.scss +0 -158
- package/lib/table/typing.d.ts +0 -426
- package/lib/table/typing.js +0 -5
- package/lib/table/utils/columnRender.d.ts +0 -13
- package/lib/table/utils/columnRender.js +0 -256
- package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
- package/lib/table/utils/genProColumnToColumn.js +0 -58
- package/lib/table/utils/getTableProps.d.ts +0 -2
- package/lib/table/utils/getTableProps.js +0 -11
- package/lib/table/utils/getTableSortIcons.d.ts +0 -3
- package/lib/table/utils/getTableSortIcons.js +0 -29
- package/lib/table/utils/index.d.ts +0 -19
- package/lib/table/utils/index.js +0 -142
- package/lib/table/utils/pureColumnRender.d.ts +0 -9
- package/lib/table/utils/pureColumnRender.js +0 -178
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/lib/table/utils/pureGenProColumnToColumn.js +0 -34
- package/lib/table/utils/useTableSelection.d.ts +0 -3
- package/lib/table/utils/useTableSelection.js +0 -83
- package/lib/table/utils/util.d.ts +0 -5
- package/lib/table/utils/util.js +0 -25
- package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/lib/timeline/ProTimeLineItem/index.js +0 -255
- package/lib/timeline/ProTimeLineItem/index.scss +0 -235
- package/lib/timeline/index.d.ts +0 -10
- package/lib/timeline/index.js +0 -79
- package/lib/timeline/index.scss +0 -7
- package/lib/timeline/typing.d.ts +0 -107
- package/lib/timeline/typing.js +0 -5
- package/lib/utils/aspect.d.ts +0 -2
- package/lib/utils/aspect.js +0 -64
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/index.js +0 -24
- package/lib/utils/message.d.ts +0 -3
- package/lib/utils/message.js +0 -22
- /package/dist/{fonts/txddinmedium.woff → static/txddinmedium.df41cfe2.woff} +0 -0
package/es/card/index.js
DELETED
@@ -1,284 +0,0 @@
|
|
1
|
-
var _excluded = ["context"],
|
2
|
-
_excluded2 = ["children", "title", "subTitle", "tooltip", "tooltipIcon", "tags", "description", "extra", "actions", "message", "style", "className", "image", "hoveredShadow", "divider", "bordered", "compacted", "centered", "loading", "contentLoading", "empty", "borderColor", "backgroundColor", "contentClassName", "contentStyle", "direction", "wrap", "spacing", "split", "collapsible", "defaultCollapsed", "collapsed", "onCollapse", "context"];
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
-
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."); }
|
5
|
-
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); }
|
6
|
-
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; }
|
7
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
11
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
12
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
13
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
14
|
-
import React, { useEffect } from 'react';
|
15
|
-
import classnames from 'classnames';
|
16
|
-
import Result from '@teamix/result';
|
17
|
-
import { Card as BasicCard, Balloon } from '@alicloudfe/components';
|
18
|
-
import TeamixIcon from '@teamix/icon';
|
19
|
-
import { usePrefixCls, getMessage } from '@teamix/utils';
|
20
|
-
import { renderTags } from '../field';
|
21
|
-
import { renderProMessage } from '../utils/message';
|
22
|
-
import { ProSkeletonRaw } from '../skeleton';
|
23
|
-
import { ProActionGroup } from '../actions';
|
24
|
-
import { formatSpacing, getColClassAndStyle } from './utils';
|
25
|
-
import ProCardDivider from './divider';
|
26
|
-
import ProCardSelectable from './selectable';
|
27
|
-
import ProCardTab from './tab';
|
28
|
-
import './index.scss';
|
29
|
-
import ProField, { Ellipsis } from '@teamix/pro-field';
|
30
|
-
import ReactDOM from 'react-dom';
|
31
|
-
export * from './card-container';
|
32
|
-
var cls = usePrefixCls('teamix-pro-card');
|
33
|
-
var renderActionGroup = function renderActionGroup(extra, context) {
|
34
|
-
if (!extra) {
|
35
|
-
return null;
|
36
|
-
}
|
37
|
-
if (extra.actions instanceof Array) {
|
38
|
-
var userContext = extra.context,
|
39
|
-
others = _objectWithoutProperties(extra, _excluded);
|
40
|
-
var mergedContext = _objectSpread(_objectSpread({}, context), userContext);
|
41
|
-
return /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread({
|
42
|
-
context: mergedContext
|
43
|
-
}, others), {}, {
|
44
|
-
type: "text"
|
45
|
-
}));
|
46
|
-
}
|
47
|
-
return extra;
|
48
|
-
};
|
49
|
-
var getFlexDirectionClassName = function getFlexDirectionClassName(direction, split) {
|
50
|
-
if (split) {
|
51
|
-
return "flex-direction-".concat(split === 'horizontal' ? 'row' : 'column');
|
52
|
-
}
|
53
|
-
return "flex-direction-".concat(direction);
|
54
|
-
};
|
55
|
-
export var ProCard = function ProCard(props) {
|
56
|
-
var _classnames, _classnames2;
|
57
|
-
var children = props.children,
|
58
|
-
title = props.title,
|
59
|
-
subTitle = props.subTitle,
|
60
|
-
tooltip = props.tooltip,
|
61
|
-
tooltipIcon = props.tooltipIcon,
|
62
|
-
tags = props.tags,
|
63
|
-
description = props.description,
|
64
|
-
extra = props.extra,
|
65
|
-
actions = props.actions,
|
66
|
-
message = props.message,
|
67
|
-
style = props.style,
|
68
|
-
className = props.className,
|
69
|
-
image = props.image,
|
70
|
-
hoveredShadow = props.hoveredShadow,
|
71
|
-
divider = props.divider,
|
72
|
-
bordered = props.bordered,
|
73
|
-
compacted = props.compacted,
|
74
|
-
centered = props.centered,
|
75
|
-
loading = props.loading,
|
76
|
-
contentLoading = props.contentLoading,
|
77
|
-
empty = props.empty,
|
78
|
-
borderColor = props.borderColor,
|
79
|
-
backgroundColor = props.backgroundColor,
|
80
|
-
contentClassName = props.contentClassName,
|
81
|
-
contentStyle = props.contentStyle,
|
82
|
-
direction = props.direction,
|
83
|
-
wrap = props.wrap,
|
84
|
-
spacing = props.spacing,
|
85
|
-
split = props.split,
|
86
|
-
collapsible = props.collapsible,
|
87
|
-
defaultCollapsed = props.defaultCollapsed,
|
88
|
-
collapsed = props.collapsed,
|
89
|
-
onCollapse = props.onCollapse,
|
90
|
-
context = props.context,
|
91
|
-
others = _objectWithoutProperties(props, _excluded2);
|
92
|
-
var _React$useState = React.useState(defaultCollapsed !== undefined ? defaultCollapsed : false),
|
93
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
94
|
-
innerCollapseState = _React$useState2[0],
|
95
|
-
setInnerCollapseState = _React$useState2[1];
|
96
|
-
var cardRef = React.useRef();
|
97
|
-
// 表头 tooltip tags description 宽度
|
98
|
-
var _React$useState3 = React.useState(0),
|
99
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
100
|
-
headerWithoutTitleWidth = _React$useState4[0],
|
101
|
-
setHeaderWithoutTitleWidth = _React$useState4[1];
|
102
|
-
var _formatSpacing = formatSpacing(spacing),
|
103
|
-
horizonal = _formatSpacing.horizonal,
|
104
|
-
vertical = _formatSpacing.vertical;
|
105
|
-
useEffect(function () {
|
106
|
-
calculateHeaderWidth();
|
107
|
-
}, []);
|
108
|
-
var hasDivider = (divider || !!split) && (title || extra);
|
109
|
-
var hasCollapse = collapsible === true || defaultCollapsed !== undefined || collapsed !== undefined;
|
110
|
-
var collapseState = collapsed !== undefined ? collapsed : innerCollapseState;
|
111
|
-
var showContent = hasCollapse ? !collapseState : true;
|
112
|
-
var onCollapseChanged = function onCollapseChanged() {
|
113
|
-
onCollapse && onCollapse(!collapseState);
|
114
|
-
if (collapsed !== undefined) {
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
setInnerCollapseState(!collapseState);
|
118
|
-
};
|
119
|
-
var childCardStyle = split ? {} : {
|
120
|
-
paddingRight: horizonal,
|
121
|
-
paddingLeft: horizonal,
|
122
|
-
paddingTop: vertical,
|
123
|
-
paddingBottom: vertical
|
124
|
-
};
|
125
|
-
var dividerStyle = direction === 'row' || direction === 'row-reverse' ? {
|
126
|
-
marginTop: vertical,
|
127
|
-
marginBottom: vertical,
|
128
|
-
marginLeft: 20 - horizonal,
|
129
|
-
marginRight: 20 - horizonal
|
130
|
-
} : {
|
131
|
-
marginTop: 20 - vertical,
|
132
|
-
marginBottom: 20 - vertical,
|
133
|
-
marginLeft: horizonal,
|
134
|
-
marginRight: horizonal
|
135
|
-
};
|
136
|
-
// 判断是否套了卡片,如果套了的话,为自身卡片内容区设置负间距,以适配栅格系统
|
137
|
-
var containProCard = false;
|
138
|
-
// 如果嵌套了 ProCard,为其添加一层栅格化的 col 和 padding
|
139
|
-
var childrenModified = React.Children.map(children, function (element, index) {
|
140
|
-
var _element$type, _element$type2;
|
141
|
-
if (element === null || element === void 0 ? void 0 : (_element$type = element.type) === null || _element$type === void 0 ? void 0 : _element$type.isProCard) {
|
142
|
-
containProCard = true;
|
143
|
-
var col = element.props.col;
|
144
|
-
var _getColClassAndStyle = getColClassAndStyle(col),
|
145
|
-
colClassName = _getColClassAndStyle.className,
|
146
|
-
colStyle = _getColClassAndStyle.style;
|
147
|
-
return /*#__PURE__*/React.createElement("div", {
|
148
|
-
style: _objectSpread(_objectSpread({}, childCardStyle), colStyle),
|
149
|
-
className: classnames(cls('col'), colClassName),
|
150
|
-
key: "pro-card-col-".concat(index)
|
151
|
-
}, /*#__PURE__*/React.cloneElement(element));
|
152
|
-
}
|
153
|
-
if (element === null || element === void 0 ? void 0 : (_element$type2 = element.type) === null || _element$type2 === void 0 ? void 0 : _element$type2.isProCardDivider) {
|
154
|
-
return /*#__PURE__*/React.cloneElement(element, {
|
155
|
-
style: dividerStyle
|
156
|
-
});
|
157
|
-
}
|
158
|
-
return element;
|
159
|
-
});
|
160
|
-
var cardClassName = classnames(cls(), className, backgroundColor, (_classnames = {
|
161
|
-
'border-none': !bordered
|
162
|
-
}, _defineProperty(_classnames, "border-".concat(borderColor), borderColor), _defineProperty(_classnames, "compacted", compacted), _defineProperty(_classnames, "hoverable", hoveredShadow), _classnames));
|
163
|
-
var cardContentClassName = classnames(cls('content'), contentClassName, getFlexDirectionClassName(direction, split), (_classnames2 = {
|
164
|
-
'contain-pro-card': containProCard
|
165
|
-
}, _defineProperty(_classnames2, "split-".concat(split), split), _defineProperty(_classnames2, 'flex-wrap', wrap), _defineProperty(_classnames2, "centered", centered || empty), _classnames2));
|
166
|
-
var cardContentMargin = containProCard && !split ? {
|
167
|
-
marginRight: -horizonal,
|
168
|
-
marginLeft: -horizonal,
|
169
|
-
marginTop: -vertical,
|
170
|
-
marginBottom: -vertical
|
171
|
-
} : {};
|
172
|
-
var cardContentStyle = _objectSpread(_objectSpread({}, cardContentMargin), contentStyle);
|
173
|
-
// 计算宽度
|
174
|
-
var calculateHeaderWidth = function calculateHeaderWidth() {
|
175
|
-
if (cardRef === null || cardRef === void 0 ? void 0 : cardRef.current) {
|
176
|
-
var _tooltipDom$clientWid, _tagsDom$clientWidth, _descriptionDom$clien;
|
177
|
-
var cardDom = ReactDOM.findDOMNode(cardRef.current);
|
178
|
-
var headerDom = cardDom === null || cardDom === void 0 ? void 0 : cardDom.querySelector('.teamix-pro-card-title');
|
179
|
-
var tooltipDom = headerDom === null || headerDom === void 0 ? void 0 : headerDom.querySelector('.teamix-pro-card-title-tooltip');
|
180
|
-
var tagsDom = headerDom === null || headerDom === void 0 ? void 0 : headerDom.querySelector('.teamix-pro-tags');
|
181
|
-
var descriptionDom = headerDom === null || headerDom === void 0 ? void 0 : headerDom.querySelector('.teamix-pro-card-title-description');
|
182
|
-
var widthList = [(_tooltipDom$clientWid = tooltipDom === null || tooltipDom === void 0 ? void 0 : tooltipDom.clientWidth) !== null && _tooltipDom$clientWid !== void 0 ? _tooltipDom$clientWid : 0, (_tagsDom$clientWidth = tagsDom === null || tagsDom === void 0 ? void 0 : tagsDom.clientWidth) !== null && _tagsDom$clientWidth !== void 0 ? _tagsDom$clientWidth : 0, (_descriptionDom$clien = descriptionDom === null || descriptionDom === void 0 ? void 0 : descriptionDom.clientWidth) !== null && _descriptionDom$clien !== void 0 ? _descriptionDom$clien : 0].filter(function (item) {
|
183
|
-
return item;
|
184
|
-
});
|
185
|
-
var width = widthList.reduce(function (acc, cur) {
|
186
|
-
return acc + cur;
|
187
|
-
}, 0) + widthList.length * 8;
|
188
|
-
// 无法取出精准宽度,减去1作为阈值 10为右padding
|
189
|
-
setHeaderWithoutTitleWidth(width - 1 + 10);
|
190
|
-
}
|
191
|
-
};
|
192
|
-
var renderTitle = function renderTitle() {
|
193
|
-
var icon = tooltipIcon || 'info-circle-line';
|
194
|
-
var tooltipTrigger = typeof icon === 'string' ? /*#__PURE__*/React.createElement(TeamixIcon, {
|
195
|
-
size: "small",
|
196
|
-
type: icon
|
197
|
-
}) : icon;
|
198
|
-
return /*#__PURE__*/React.createElement("div", {
|
199
|
-
className: cls('title')
|
200
|
-
}, hasCollapse && /*#__PURE__*/React.createElement("div", {
|
201
|
-
className: classnames(cls('title-collapse'), {
|
202
|
-
collapsed: collapseState
|
203
|
-
}),
|
204
|
-
onClick: onCollapseChanged
|
205
|
-
}, /*#__PURE__*/React.createElement(TeamixIcon, {
|
206
|
-
size: "small",
|
207
|
-
type: "down-fill"
|
208
|
-
}), /*#__PURE__*/React.createElement("div", {
|
209
|
-
className: cls('title-name')
|
210
|
-
}, typeof title === 'string' ? /*#__PURE__*/React.createElement(ProField, {
|
211
|
-
value: title,
|
212
|
-
type: "text",
|
213
|
-
render: {
|
214
|
-
ellipsis: true
|
215
|
-
}
|
216
|
-
}) : title)), !hasCollapse && /*#__PURE__*/React.createElement("div", {
|
217
|
-
className: cls('title-name'),
|
218
|
-
style: {
|
219
|
-
maxWidth: "calc(100% - ".concat(headerWithoutTitleWidth, "px)")
|
220
|
-
}
|
221
|
-
}, typeof title === 'string' ? /*#__PURE__*/React.createElement(Ellipsis, {
|
222
|
-
tooltip: title
|
223
|
-
}, title) : title), tooltip && /*#__PURE__*/React.createElement("div", {
|
224
|
-
className: cls('title-tooltip')
|
225
|
-
}, /*#__PURE__*/React.createElement(Balloon.Tooltip, {
|
226
|
-
align: "t",
|
227
|
-
trigger: tooltipTrigger
|
228
|
-
}, tooltip)), tags && renderTags(tags, 'small'), description && /*#__PURE__*/React.createElement("div", {
|
229
|
-
className: cls('title-description')
|
230
|
-
}, /*#__PURE__*/React.createElement(ProField, {
|
231
|
-
value: description,
|
232
|
-
type: "text",
|
233
|
-
render: {
|
234
|
-
ellipsis: true
|
235
|
-
}
|
236
|
-
})));
|
237
|
-
};
|
238
|
-
return /*#__PURE__*/React.createElement(BasicCard, _objectSpread({
|
239
|
-
free: true,
|
240
|
-
className: cardClassName,
|
241
|
-
style: style,
|
242
|
-
actions: renderActionGroup(actions, context),
|
243
|
-
// @ts-ignore
|
244
|
-
ref: cardRef
|
245
|
-
}, others), !loading && image && /*#__PURE__*/React.createElement(BasicCard.Media, {
|
246
|
-
component: "img",
|
247
|
-
src: image
|
248
|
-
}), (title || extra) && /*#__PURE__*/React.createElement(BasicCard.Header, {
|
249
|
-
title: loading && !contentLoading ? /*#__PURE__*/React.createElement(ProSkeletonRaw.Card.Title, null) : renderTitle(),
|
250
|
-
subTitle: !loading && subTitle,
|
251
|
-
extra: !loading && renderActionGroup(extra, context)
|
252
|
-
}), hasDivider && /*#__PURE__*/React.createElement(BasicCard.Divider, null), showContent && /*#__PURE__*/React.createElement(BasicCard.Content, {
|
253
|
-
style: split ? {
|
254
|
-
padding: 0,
|
255
|
-
margin: 0
|
256
|
-
} : {}
|
257
|
-
}, (loading || contentLoading) && /*#__PURE__*/React.createElement(ProSkeletonRaw.Card.Content, null), !(loading || contentLoading) && /*#__PURE__*/React.createElement("div", {
|
258
|
-
className: cardContentClassName,
|
259
|
-
style: cardContentStyle
|
260
|
-
}, empty && /*#__PURE__*/React.createElement("div", {
|
261
|
-
className: cls('empty')
|
262
|
-
}, childrenModified ? childrenModified : /*#__PURE__*/React.createElement(Result, {
|
263
|
-
theme: "hybridcloud-container",
|
264
|
-
img: "noData",
|
265
|
-
title: getMessage('noData'),
|
266
|
-
style: {
|
267
|
-
padding: '50px 0 60px'
|
268
|
-
}
|
269
|
-
})), !empty && /*#__PURE__*/React.createElement(React.Fragment, null, message && /*#__PURE__*/React.createElement("div", {
|
270
|
-
className: cls('content-message')
|
271
|
-
}, renderProMessage(message, {
|
272
|
-
type: 'notice'
|
273
|
-
})), childrenModified))));
|
274
|
-
};
|
275
|
-
ProCard.defaultProps = {
|
276
|
-
bordered: true,
|
277
|
-
spacing: 16,
|
278
|
-
direction: 'row'
|
279
|
-
};
|
280
|
-
ProCard.Divider = ProCardDivider;
|
281
|
-
ProCard.Selectable = ProCardSelectable;
|
282
|
-
ProCard.Tab = ProCardTab;
|
283
|
-
ProCard.isProCard = true;
|
284
|
-
export default ProCard;
|
package/es/card/index.scss
DELETED
@@ -1,313 +0,0 @@
|
|
1
|
-
@import "xconsole";
|
2
|
-
|
3
|
-
.teamix-pro-card {
|
4
|
-
width: 100%;
|
5
|
-
|
6
|
-
&-container {
|
7
|
-
display: flex;
|
8
|
-
|
9
|
-
&-wrap {
|
10
|
-
flex-wrap: wrap;
|
11
|
-
}
|
12
|
-
|
13
|
-
&-flex {
|
14
|
-
&-row {
|
15
|
-
flex-direction: row;
|
16
|
-
}
|
17
|
-
|
18
|
-
&-row-reverse {
|
19
|
-
flex-direction: row-reverse;
|
20
|
-
}
|
21
|
-
|
22
|
-
&-column {
|
23
|
-
flex-direction: column;
|
24
|
-
}
|
25
|
-
|
26
|
-
&-column-reverse {
|
27
|
-
flex-direction: column-reverse;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
&-col {
|
33
|
-
width: 100%;
|
34
|
-
$grid-columns: 24;
|
35
|
-
@for $i from 1 through $grid-columns {
|
36
|
-
&-#{$i} {
|
37
|
-
$width: percentage($i / $grid-columns);
|
38
|
-
flex: 0 0 $width;
|
39
|
-
width: $width;
|
40
|
-
max-width: $width;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
.next-card-header-titles {
|
46
|
-
padding-right: 8px;
|
47
|
-
}
|
48
|
-
.next-card-header-extra {
|
49
|
-
margin-top: 2px;
|
50
|
-
}
|
51
|
-
|
52
|
-
&-title {
|
53
|
-
display: flex;
|
54
|
-
align-items: center;
|
55
|
-
|
56
|
-
.next-menu-btn.next-menu-btn.next-menu-btn.next-menu-btn.next-menu-btn.next-menu-btn {
|
57
|
-
i {
|
58
|
-
margin-right: 0;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
& > div {
|
63
|
-
display: flex;
|
64
|
-
align-items: center;
|
65
|
-
&:not(:last-child) {
|
66
|
-
margin-right: var(--s-2, 8px);
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
&-name {
|
71
|
-
flex-shrink: 0;
|
72
|
-
}
|
73
|
-
&-name > .teamix-pro-field {
|
74
|
-
width: calc(100% - 24px);
|
75
|
-
}
|
76
|
-
|
77
|
-
&-collapse {
|
78
|
-
cursor: pointer;
|
79
|
-
.teamix-pro-card-title-name {
|
80
|
-
width: 100%;
|
81
|
-
}
|
82
|
-
|
83
|
-
& > i {
|
84
|
-
transition: transform 0.2s;
|
85
|
-
color: var(--color-text1-8, #848484);
|
86
|
-
margin-right: var(--s-2, 8px);
|
87
|
-
}
|
88
|
-
|
89
|
-
&.collapsed {
|
90
|
-
& > i {
|
91
|
-
transform: rotate(-90deg);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
&-description,
|
97
|
-
&-tooltip {
|
98
|
-
color: var(--color-text1-8, #848484);
|
99
|
-
font-weight: normal;
|
100
|
-
}
|
101
|
-
|
102
|
-
&-description {
|
103
|
-
font-size: 12px;
|
104
|
-
min-width: 40px;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
|
-
&-divider {
|
109
|
-
flex: none;
|
110
|
-
background-color: var(--color-line1-1, #eaeaea);
|
111
|
-
}
|
112
|
-
|
113
|
-
&-content {
|
114
|
-
&.centered {
|
115
|
-
display: flex;
|
116
|
-
align-items: center;
|
117
|
-
justify-content: center;
|
118
|
-
}
|
119
|
-
|
120
|
-
&.contain-pro-card {
|
121
|
-
display: flex;
|
122
|
-
|
123
|
-
&.flex-wrap {
|
124
|
-
flex-wrap: wrap;
|
125
|
-
}
|
126
|
-
|
127
|
-
&.flex-direction {
|
128
|
-
&-row {
|
129
|
-
flex-direction: row;
|
130
|
-
|
131
|
-
.teamix-pro-card-divider {
|
132
|
-
width: 1px;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
&-row-reverse {
|
137
|
-
flex-direction: row-reverse;
|
138
|
-
.teamix-pro-card-divider {
|
139
|
-
width: 1px;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
&-column {
|
144
|
-
flex-direction: column;
|
145
|
-
.teamix-pro-card-divider {
|
146
|
-
height: 1px;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
&-column-reverse {
|
151
|
-
flex-direction: column-reverse;
|
152
|
-
.teamix-pro-card-divider {
|
153
|
-
height: 1px;
|
154
|
-
}
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
&.split-horizontal,
|
159
|
-
&.split-vertical {
|
160
|
-
& > .teamix-pro-card-col > .teamix-pro-card {
|
161
|
-
border: none;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
&.split-horizontal {
|
166
|
-
& > .teamix-pro-card-col {
|
167
|
-
&:not(:last-child) {
|
168
|
-
border-right: 1px solid var(--color-line1-1, #eaeaea);
|
169
|
-
}
|
170
|
-
}
|
171
|
-
}
|
172
|
-
&.split-vertical {
|
173
|
-
& > .teamix-pro-card-col {
|
174
|
-
&:not(:last-child) {
|
175
|
-
border-bottom: 1px solid var(--color-line1-1, #eaeaea);
|
176
|
-
}
|
177
|
-
}
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
&-message {
|
182
|
-
margin-bottom: var(--s-2);
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
&-tab {
|
187
|
-
margin-top: calc(0px - var(--s-2));
|
188
|
-
|
189
|
-
& > .next-tabs-bar {
|
190
|
-
border-bottom: none;
|
191
|
-
}
|
192
|
-
|
193
|
-
& > .next-tabs-content {
|
194
|
-
padding-top: var(--s-5, 20px);
|
195
|
-
}
|
196
|
-
}
|
197
|
-
|
198
|
-
&-empty {
|
199
|
-
display: flex;
|
200
|
-
flex-direction: column;
|
201
|
-
align-items: center;
|
202
|
-
color: var(--color-text1-8, #848484);
|
203
|
-
}
|
204
|
-
|
205
|
-
& > .next-card-actions {
|
206
|
-
& > .teamix-pro-actions {
|
207
|
-
& > .next-btn {
|
208
|
-
margin-right: 0;
|
209
|
-
flex-grow: 1;
|
210
|
-
}
|
211
|
-
|
212
|
-
& > .next-divider {
|
213
|
-
margin: 0;
|
214
|
-
}
|
215
|
-
}
|
216
|
-
}
|
217
|
-
|
218
|
-
&.hoverable {
|
219
|
-
&:hover {
|
220
|
-
box-shadow: var(--shadow-3, 0px 6px 24px 0px rgba(0, 0, 0, 0.1));
|
221
|
-
}
|
222
|
-
}
|
223
|
-
|
224
|
-
&.compacted {
|
225
|
-
border: none;
|
226
|
-
|
227
|
-
& > .next-card-header {
|
228
|
-
margin-top: 0;
|
229
|
-
padding: 0;
|
230
|
-
}
|
231
|
-
& > .next-card-content-container {
|
232
|
-
margin: 0;
|
233
|
-
padding: 0;
|
234
|
-
}
|
235
|
-
}
|
236
|
-
|
237
|
-
&.border {
|
238
|
-
&-blue {
|
239
|
-
border-color: var(--color-notice-5);
|
240
|
-
}
|
241
|
-
|
242
|
-
&-orange {
|
243
|
-
border-color: var(--color-warning-5);
|
244
|
-
}
|
245
|
-
|
246
|
-
&-yellow {
|
247
|
-
border-color: var(--color-help-5);
|
248
|
-
}
|
249
|
-
|
250
|
-
&-red {
|
251
|
-
border-color: var(--color-error-5);
|
252
|
-
}
|
253
|
-
|
254
|
-
&-green {
|
255
|
-
border-color: var(--color-success-5);
|
256
|
-
}
|
257
|
-
|
258
|
-
&-grey {
|
259
|
-
border-color: var(--color-line1-1);
|
260
|
-
}
|
261
|
-
|
262
|
-
&-transparent {
|
263
|
-
border-color: transparent;
|
264
|
-
}
|
265
|
-
|
266
|
-
&-none {
|
267
|
-
border: none;
|
268
|
-
}
|
269
|
-
}
|
270
|
-
|
271
|
-
&-selectable {
|
272
|
-
cursor: pointer;
|
273
|
-
|
274
|
-
&-icon {
|
275
|
-
&-selected {
|
276
|
-
color: var(--color-notice-5);
|
277
|
-
}
|
278
|
-
|
279
|
-
&-unselected {
|
280
|
-
color: var(--color-line1-1);
|
281
|
-
}
|
282
|
-
}
|
283
|
-
}
|
284
|
-
|
285
|
-
&.blue {
|
286
|
-
background-color: var(--color-notice-1);
|
287
|
-
}
|
288
|
-
|
289
|
-
&.orange {
|
290
|
-
background-color: var(--color-warning-1);
|
291
|
-
}
|
292
|
-
|
293
|
-
&.yellow {
|
294
|
-
background-color: var(--color-help-1);
|
295
|
-
}
|
296
|
-
|
297
|
-
&.red {
|
298
|
-
background-color: var(--color-error-1);
|
299
|
-
}
|
300
|
-
|
301
|
-
&.green {
|
302
|
-
background-color: var(--color-success-1);
|
303
|
-
}
|
304
|
-
|
305
|
-
&.grey {
|
306
|
-
background-color: var(--color-fill1-2);
|
307
|
-
}
|
308
|
-
|
309
|
-
&.transparent {
|
310
|
-
background: transparent;
|
311
|
-
}
|
312
|
-
|
313
|
-
}
|
package/es/card/selectable.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
import { ProCardProps } from './index';
|
2
|
-
export interface ProCardSelectableProps extends Omit<ProCardProps, 'onSelect'> {
|
3
|
-
selected?: boolean;
|
4
|
-
onSelect?: (selected: boolean) => void;
|
5
|
-
}
|
6
|
-
declare const ProCardSelectable: {
|
7
|
-
(props: ProCardSelectableProps): JSX.Element;
|
8
|
-
defaultProps: {
|
9
|
-
hoveredShadow: boolean;
|
10
|
-
};
|
11
|
-
isProCard: boolean;
|
12
|
-
};
|
13
|
-
export default ProCardSelectable;
|
package/es/card/selectable.js
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
var _excluded = ["selected", "onSelect", "className", "onClick"];
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
6
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
7
|
-
import React from 'react';
|
8
|
-
import classnames from 'classnames';
|
9
|
-
import TeamixIcon from '@teamix/icon';
|
10
|
-
import { usePrefixCls } from '@teamix/utils';
|
11
|
-
import { ProCard } from './index';
|
12
|
-
var cls = usePrefixCls('teamix-pro-card-selectable');
|
13
|
-
var ProCardSelectable = function ProCardSelectable(props) {
|
14
|
-
var selected = props.selected,
|
15
|
-
onSelect = props.onSelect,
|
16
|
-
className = props.className,
|
17
|
-
_onClick = props.onClick,
|
18
|
-
others = _objectWithoutProperties(props, _excluded);
|
19
|
-
return /*#__PURE__*/React.createElement(ProCard, _objectSpread({
|
20
|
-
className: classnames(cls(), className),
|
21
|
-
borderColor: selected ? 'blue' : 'grey',
|
22
|
-
extra: /*#__PURE__*/React.createElement(TeamixIcon, {
|
23
|
-
className: cls('icon', selected ? 'icon-selected' : 'icon-unselected'),
|
24
|
-
type: selected ? 'success-fill' : 'circle-line'
|
25
|
-
}),
|
26
|
-
onClick: function onClick(e) {
|
27
|
-
_onClick && _onClick(e);
|
28
|
-
onSelect && onSelect(!selected);
|
29
|
-
}
|
30
|
-
}, others));
|
31
|
-
};
|
32
|
-
ProCardSelectable.defaultProps = {
|
33
|
-
hoveredShadow: true
|
34
|
-
};
|
35
|
-
ProCardSelectable.isProCard = true;
|
36
|
-
export default ProCardSelectable;
|
package/es/card/tab.d.ts
DELETED
package/es/card/tab.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
var _excluded = ["className"];
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
5
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
6
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
7
|
-
import React from 'react';
|
8
|
-
import classnames from 'classnames';
|
9
|
-
import { Tab } from '@alicloudfe/components';
|
10
|
-
var ProCardTab = function ProCardTab(props) {
|
11
|
-
var className = props.className,
|
12
|
-
others = _objectWithoutProperties(props, _excluded);
|
13
|
-
return /*#__PURE__*/React.createElement(Tab, _objectSpread({
|
14
|
-
className: classnames('teamix-pro-card-tab', className)
|
15
|
-
}, others));
|
16
|
-
};
|
17
|
-
ProCardTab.Item = Tab.Item;
|
18
|
-
export default ProCardTab;
|
package/es/card/utils.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare function formatSpacing(spacing?: [number, number] | number): {
|
3
|
-
horizonal: number;
|
4
|
-
vertical: number;
|
5
|
-
};
|
6
|
-
export declare function getColClassAndStyle(col?: number | string): {
|
7
|
-
className?: string;
|
8
|
-
style: React.CSSProperties;
|
9
|
-
};
|