aldehyde 0.2.97 → 0.2.99
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/LICENSE +1 -1
- package/lib/controls/action/index.d.ts +16 -7
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +64 -48
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +1 -1
- package/lib/controls/action/utils.d.ts.map +1 -1
- package/lib/controls/action/utils.js +6 -4
- package/lib/controls/action/utils.js.map +1 -1
- package/lib/controls/auto-complete/index.d.ts +1 -1
- package/lib/controls/auto-complete/index.d.ts.map +1 -1
- package/lib/controls/auto-complete/index.js +12 -6
- package/lib/controls/auto-complete/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +13 -4
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +40 -27
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/color-picker/index.d.ts +11 -2
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +23 -19
- package/lib/controls/color-picker/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +11 -2
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +30 -28
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/entity-select/entity-select.d.ts +12 -3
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +66 -64
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +11 -2
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +26 -21
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +11 -2
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.js +30 -26
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +152 -98
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/input-number/index.d.ts +1 -1
- package/lib/controls/input-number/index.d.ts.map +1 -1
- package/lib/controls/input-number/index.js +31 -23
- package/lib/controls/input-number/index.js.map +1 -1
- package/lib/controls/input-range/index.d.ts +1 -1
- package/lib/controls/input-range/index.d.ts.map +1 -1
- package/lib/controls/input-range/index.js +9 -8
- package/lib/controls/input-range/index.js.map +1 -1
- package/lib/controls/password-setter/index.d.ts +9 -3
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +22 -14
- package/lib/controls/password-setter/index.js.map +1 -1
- package/lib/controls/progress/index.d.ts +1 -1
- package/lib/controls/progress/index.d.ts.map +1 -1
- package/lib/controls/progress/index.js +13 -6
- package/lib/controls/progress/index.js.map +1 -1
- package/lib/controls/relation-existion/index.d.ts +11 -2
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +30 -18
- package/lib/controls/relation-existion/index.js.map +1 -1
- package/lib/controls/rfield/index.d.ts +11 -2
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +33 -35
- package/lib/controls/rfield/index.js.map +1 -1
- package/lib/controls/signature/index.d.ts +10 -1
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +56 -31
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +1 -1
- package/lib/controls/steps/index.d.ts.map +1 -1
- package/lib/controls/steps/index.js +8 -6
- package/lib/controls/steps/index.js.map +1 -1
- package/lib/controls/text/ellipsis-text.d.ts +9 -0
- package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
- package/lib/controls/text/ellipsis-text.js +13 -11
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +10 -1
- package/lib/controls/upload/index.d.ts.map +1 -1
- package/lib/controls/upload/index.js +30 -21
- package/lib/controls/upload/index.js.map +1 -1
- package/lib/controls/view-control.d.ts +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +118 -85
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +5 -6
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -12
- package/lib/custom-page/def-custom-page.js.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +10 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +19 -7
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.js +20 -12
- package/lib/detail/button/bottom-submit-button-bar.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +12 -3
- package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
- package/lib/detail/button/cquery-button-bar.js +22 -18
- package/lib/detail/button/cquery-button-bar.js.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +28 -23
- package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +11 -2
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.js +18 -19
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +11 -2
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.js +14 -11
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +1 -1
- package/lib/detail/edit/post-result/index.d.ts.map +1 -1
- package/lib/detail/edit/post-result/index.js +17 -12
- package/lib/detail/edit/post-result/index.js.map +1 -1
- package/lib/detail/edit/row-edit-card.d.ts +11 -2
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +23 -23
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +12 -3
- package/lib/detail/rightbar/index.d.ts.map +1 -1
- package/lib/detail/rightbar/index.js +16 -9
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +11 -2
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +26 -25
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +2 -2
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +40 -40
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +10 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +11 -8
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +11 -2
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +18 -16
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +11 -2
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +41 -42
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/form/criteria-form.d.ts +2 -2
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +58 -45
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts +11 -2
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +76 -61
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +12 -3
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/field-group-form.js +26 -18
- package/lib/form/field-group-form.js.map +1 -1
- package/lib/form/form-Item-group.d.ts +10 -1
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +43 -26
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/import/excel-import.d.ts +12 -3
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +69 -55
- package/lib/import/excel-import.js.map +1 -1
- package/lib/index.d.ts +42 -39
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +43 -39
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +1 -1
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +46 -36
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/header/index.d.ts +1 -1
- package/lib/layout/header/index.d.ts.map +1 -1
- package/lib/layout/header/index.js +16 -14
- package/lib/layout/header/index.js.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +11 -2
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +24 -19
- package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +12 -3
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +52 -36
- package/lib/layout/menu/reset-password.js.map +1 -1
- package/lib/layout/menu/user-bar.d.ts +12 -3
- package/lib/layout/menu/user-bar.d.ts.map +1 -1
- package/lib/layout/menu/user-bar.js +72 -42
- package/lib/layout/menu/user-bar.js.map +1 -1
- package/lib/layout/menu/userinfo-bar.d.ts +10 -1
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +11 -10
- package/lib/layout/menu/userinfo-bar.js.map +1 -1
- package/lib/layout/sidebar/index.css +15 -4
- package/lib/layout/sidebar/index.d.ts +2 -2
- package/lib/layout/sidebar/index.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +19 -13
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/locale/LocaleButton.d.ts +4 -0
- package/lib/locale/LocaleButton.d.ts.map +1 -0
- package/lib/locale/LocaleButton.js +24 -0
- package/lib/locale/LocaleButton.js.map +1 -0
- package/lib/locale/LocaleProvider.d.ts +13 -0
- package/lib/locale/LocaleProvider.d.ts.map +1 -0
- package/lib/locale/LocaleProvider.js +135 -0
- package/lib/locale/LocaleProvider.js.map +1 -0
- package/lib/locale/langMp.d.ts +16 -0
- package/lib/locale/langMp.d.ts.map +1 -0
- package/lib/locale/langMp.js +29 -0
- package/lib/locale/langMp.js.map +1 -0
- package/lib/locale/translate.d.ts +3 -0
- package/lib/locale/translate.d.ts.map +1 -0
- package/lib/locale/translate.js +74 -0
- package/lib/locale/translate.js.map +1 -0
- package/lib/locale/useLocale.d.ts +14 -0
- package/lib/locale/useLocale.d.ts.map +1 -0
- package/lib/locale/useLocale.js +34 -0
- package/lib/locale/useLocale.js.map +1 -0
- package/lib/login/login.d.ts +13 -3
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +38 -25
- package/lib/login/login.js.map +1 -1
- package/lib/login/router-login.d.ts +2 -2
- package/lib/login/router-login.d.ts.map +1 -1
- package/lib/login/router-login.js +33 -19
- package/lib/login/router-login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +11 -2
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +21 -13
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +12 -3
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +42 -31
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +10 -1
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-modal.js +15 -8
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +11 -2
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +39 -39
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/table/act-table.d.ts +12 -3
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +256 -205
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/control-table-x-axis-wrapper.d.ts +5 -0
- package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -0
- package/lib/table/control-table-x-axis-wrapper.js +60 -0
- package/lib/table/control-table-x-axis-wrapper.js.map +1 -0
- package/lib/table/l2-act-table.d.ts +1 -1
- package/lib/table/pagination.d.ts +11 -2
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +13 -12
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +2 -1
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +13 -4
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +117 -108
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +10 -1
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/table/selected-rows-card.js +10 -9
- package/lib/table/selected-rows-card.js.map +1 -1
- package/lib/table/stat/restat.d.ts +10 -1
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +10 -9
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +21 -14
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +2 -0
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +127 -100
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/model-struc-v3.d.ts.map +1 -1
- package/lib/tmpl/model-struc-v3.js +19 -18
- package/lib/tmpl/model-struc-v3.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +2 -2
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +28 -23
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/tree/act-tree.d.ts +10 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/act-tree.js +26 -20
- package/lib/tree/act-tree.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +11 -2
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +76 -58
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +7 -23
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/HCWelcome1.d.ts +4 -0
- package/lib/welcome/HCWelcome1.d.ts.map +1 -0
- package/lib/welcome/HCWelcome1.js +192 -0
- package/lib/welcome/HCWelcome1.js.map +1 -0
- package/lib/welcome/quick-entrance.d.ts +12 -3
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +21 -17
- package/lib/welcome/quick-entrance.js.map +1 -1
- package/lib/welcome/workbench.d.ts +12 -3
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +23 -19
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +328 -221
- package/src/aldehyde/controls/action/utils.tsx +6 -4
- package/src/aldehyde/controls/auto-complete/index.tsx +64 -60
- package/src/aldehyde/controls/chemstruc/graph.tsx +175 -139
- package/src/aldehyde/controls/color-picker/index.tsx +107 -78
- package/src/aldehyde/controls/cquery/cquick-button.tsx +129 -89
- package/src/aldehyde/controls/entity-select/entity-select.tsx +643 -521
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +140 -131
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +178 -133
- package/src/aldehyde/controls/entry-control.tsx +373 -248
- package/src/aldehyde/controls/input-number/index.tsx +131 -86
- package/src/aldehyde/controls/input-range/index.tsx +51 -40
- package/src/aldehyde/controls/password-setter/index.js +81 -63
- package/src/aldehyde/controls/progress/index.tsx +59 -46
- package/src/aldehyde/controls/relation-existion/index.tsx +125 -87
- package/src/aldehyde/controls/rfield/index.tsx +178 -151
- package/src/aldehyde/controls/signature/index.tsx +215 -151
- package/src/aldehyde/controls/steps/index.tsx +44 -42
- package/src/aldehyde/controls/text/ellipsis-text.tsx +79 -53
- package/src/aldehyde/controls/upload/index.tsx +125 -109
- package/src/aldehyde/controls/view-control.tsx +250 -188
- package/src/aldehyde/custom-page/def-custom-page.tsx +17 -0
- package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +75 -66
- package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +79 -43
- package/src/aldehyde/detail/button/cquery-button-bar.tsx +129 -98
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +161 -113
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +124 -87
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +81 -60
- package/src/aldehyde/detail/edit/post-result/index.tsx +80 -47
- package/src/aldehyde/detail/edit/row-edit-card.tsx +158 -107
- package/src/aldehyde/detail/rightbar/index.tsx +79 -63
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +177 -124
- package/src/aldehyde/detail/view/dtmpl-view.tsx +284 -178
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +67 -54
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +143 -110
- package/src/aldehyde/exportor/export-frame.tsx +258 -200
- package/src/aldehyde/form/criteria-form.tsx +309 -201
- package/src/aldehyde/form/dtmpl-form.tsx +460 -305
- package/src/aldehyde/form/field-group-form.tsx +87 -66
- package/src/aldehyde/form/form-Item-group.tsx +190 -132
- package/src/aldehyde/import/excel-import.tsx +414 -331
- package/src/aldehyde/index.tsx +90 -45
- package/src/aldehyde/layout/MainPage.tsx +280 -245
- package/src/aldehyde/layout/header/index.tsx +59 -53
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +137 -118
- package/src/aldehyde/layout/menu/reset-password.tsx +213 -162
- package/src/aldehyde/layout/menu/user-bar.tsx +216 -147
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +58 -41
- package/src/aldehyde/layout/sidebar/index.css +15 -4
- package/src/aldehyde/layout/sidebar/index.tsx +66 -38
- package/src/aldehyde/locale/LocaleButton.tsx +31 -0
- package/src/aldehyde/locale/LocaleProvider.tsx +165 -0
- package/src/aldehyde/locale/langMp.ts +33 -0
- package/src/aldehyde/locale/translate.ts +78 -0
- package/src/aldehyde/locale/useLocale.ts +50 -0
- package/src/aldehyde/login/login.tsx +192 -141
- package/src/aldehyde/login/router-login.tsx +54 -21
- package/src/aldehyde/module/dtmpl-edit-card.tsx +225 -160
- package/src/aldehyde/module/dtmpl-edit-page.tsx +334 -212
- package/src/aldehyde/module/ltmpl-modal.tsx +57 -53
- package/src/aldehyde/module/ltmpl-table.tsx +329 -240
- package/src/aldehyde/table/act-table.tsx +1226 -794
- package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +52 -0
- package/src/aldehyde/table/pagination.tsx +66 -59
- package/src/aldehyde/table/query-table.tsx +2 -1
- package/src/aldehyde/table/relation-table.tsx +781 -571
- package/src/aldehyde/table/selected-rows-card.tsx +61 -48
- package/src/aldehyde/table/stat/restat.tsx +112 -69
- package/src/aldehyde/tmpl/hc-data-source.tsx +381 -296
- package/src/aldehyde/tmpl/hcservice-v3.tsx +991 -796
- package/src/aldehyde/tmpl/model-struc-v3.tsx +95 -91
- package/src/aldehyde/tmpl/superagent.js +148 -142
- package/src/aldehyde/tree/act-tree.tsx +206 -138
- package/src/aldehyde/tree/tmpl-tree.tsx +611 -353
- package/src/aldehyde/welcome/HCWelcome.js +78 -110
- package/src/aldehyde/welcome/HCWelcome1.js +260 -0
- package/src/aldehyde/welcome/quick-entrance.tsx +82 -71
- package/src/aldehyde/welcome/workbench.tsx +83 -68
- package/src/aldehyde/custom-page/def-custom-page.js +0 -18
|
@@ -1,54 +1,90 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import
|
|
3
|
-
import {TmplBase} from "../../../aldehyde/tmpl/interface";
|
|
4
|
-
import {Button, Card, Col, Row, Space} from "antd";
|
|
5
|
-
import {SaveOutlined} from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { TmplBase } from "../../../aldehyde/tmpl/interface";
|
|
4
|
+
import { Button, Card, Col, Row, Space } from "antd";
|
|
5
|
+
import { SaveOutlined } from "@ant-design/icons";
|
|
6
6
|
import Action from "../../controls/action";
|
|
7
|
-
import {SubmitButtonProps} from "./submit-button-bar";
|
|
8
|
-
|
|
9
|
-
interface BottomSubmitButtonBarProps extends SubmitButtonProps {
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
import { SubmitButtonProps } from "./submit-button-bar";
|
|
8
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
12
9
|
|
|
10
|
+
interface BottomSubmitButtonBarProps extends SubmitButtonProps {}
|
|
13
11
|
|
|
14
12
|
interface BottomSubmitButtonState {
|
|
15
|
-
|
|
13
|
+
// stateSerial:number
|
|
16
14
|
}
|
|
17
15
|
|
|
18
|
-
class BottomSubmitButtonBar extends React.PureComponent<
|
|
16
|
+
class BottomSubmitButtonBar extends React.PureComponent<
|
|
17
|
+
BottomSubmitButtonBarProps,
|
|
18
|
+
BottomSubmitButtonState
|
|
19
|
+
> {
|
|
20
|
+
state = {
|
|
21
|
+
// stateSerial:0,
|
|
22
|
+
};
|
|
23
|
+
static contextType = LocaleContext;
|
|
24
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
render() {
|
|
27
|
+
const {} = this.state;
|
|
28
|
+
const {
|
|
29
|
+
dtmplConfig,
|
|
30
|
+
position,
|
|
31
|
+
doSubmit,
|
|
32
|
+
formRef,
|
|
33
|
+
serial,
|
|
34
|
+
serverKey,
|
|
35
|
+
dtmplData,
|
|
36
|
+
} = this.props;
|
|
37
|
+
const { buttons, actions } = dtmplConfig;
|
|
38
|
+
const { translate } = this.context;
|
|
23
39
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
return (
|
|
41
|
+
<Card bordered={false}>
|
|
42
|
+
<Row
|
|
43
|
+
align={"middle"}
|
|
44
|
+
justify={
|
|
45
|
+
position == "bottomLeft"
|
|
46
|
+
? "start"
|
|
47
|
+
: position == "bottomRight"
|
|
48
|
+
? "end"
|
|
49
|
+
: "center"
|
|
50
|
+
}
|
|
51
|
+
>
|
|
52
|
+
<Space>
|
|
53
|
+
{buttons.includes("dtmplSave") ? (
|
|
54
|
+
<Col>
|
|
55
|
+
<Button
|
|
56
|
+
onClick={() => doSubmit()}
|
|
57
|
+
type="primary"
|
|
58
|
+
icon={<SaveOutlined />}
|
|
59
|
+
key="btn"
|
|
60
|
+
block
|
|
61
|
+
>
|
|
62
|
+
{translate("${保存}")}
|
|
63
|
+
</Button>
|
|
64
|
+
</Col>
|
|
65
|
+
) : null}
|
|
66
|
+
{actions
|
|
67
|
+
? actions.map((item, index) => {
|
|
68
|
+
return (
|
|
69
|
+
<Col>
|
|
70
|
+
<Action
|
|
71
|
+
serverKey={serverKey}
|
|
72
|
+
serial={serial}
|
|
73
|
+
key={item.id}
|
|
74
|
+
data={[dtmplData]}
|
|
75
|
+
formRef={formRef}
|
|
76
|
+
actionConfig={item}
|
|
77
|
+
doAction={doSubmit}
|
|
78
|
+
></Action>
|
|
79
|
+
</Col>
|
|
80
|
+
);
|
|
81
|
+
})
|
|
82
|
+
: ""}
|
|
83
|
+
</Space>
|
|
84
|
+
</Row>
|
|
85
|
+
</Card>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
51
88
|
}
|
|
52
89
|
|
|
53
90
|
export default BottomSubmitButtonBar;
|
|
54
|
-
|
|
@@ -1,113 +1,144 @@
|
|
|
1
|
-
import React, {RefObject} from
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import {
|
|
4
|
+
ActionConfig,
|
|
5
|
+
ButtonName,
|
|
6
|
+
CQueryConfig,
|
|
7
|
+
DtmplConfig,
|
|
8
|
+
DtmplData,
|
|
9
|
+
TmplBase,
|
|
10
|
+
} from "../../tmpl/interface";
|
|
11
|
+
import { Affix, Button, Popconfirm, Popover, Space } from "antd";
|
|
12
|
+
import { LeftOutlined, SaveOutlined } from "@ant-design/icons";
|
|
6
13
|
import CquickButton from "../../controls/cquery/cquick-button";
|
|
14
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
7
15
|
|
|
8
16
|
interface CqueryButtonBarProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
serverKey?: string;
|
|
18
|
+
dtmplConfig: DtmplConfig;
|
|
19
|
+
mainCode: string;
|
|
12
20
|
}
|
|
13
21
|
|
|
14
|
-
|
|
15
22
|
interface CqueryButtonBarState {
|
|
16
|
-
|
|
23
|
+
// stateSerial:number
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
class CqueryButtonBar extends React.PureComponent<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
class CqueryButtonBar extends React.PureComponent<
|
|
27
|
+
CqueryButtonBarProps,
|
|
28
|
+
CqueryButtonBarState
|
|
29
|
+
> {
|
|
30
|
+
state = {
|
|
31
|
+
// stateSerial:0,
|
|
32
|
+
};
|
|
33
|
+
static contextType = LocaleContext;
|
|
34
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
35
|
+
|
|
36
|
+
calcOffsetBottom = (cQuerys: CQueryConfig[]) => {
|
|
37
|
+
if (cQuerys.length >= 3) {
|
|
38
|
+
return 120;
|
|
39
|
+
} else if (cQuerys.length == 2) {
|
|
40
|
+
return 86;
|
|
41
|
+
} else {
|
|
42
|
+
return 80;
|
|
23
43
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// async componentDidMount() {
|
|
47
|
+
// console.log("SubmitButtonBar this.loadData()");
|
|
48
|
+
//
|
|
49
|
+
// console.log("SubmitButtonBar this.loadData()1");
|
|
50
|
+
// // if(code!=preCode || (!code && preCode)){
|
|
51
|
+
// // await this.loadData();
|
|
52
|
+
// // }else{
|
|
53
|
+
// // formRef.current.resetFields();
|
|
54
|
+
// // }
|
|
55
|
+
// }
|
|
56
|
+
|
|
57
|
+
// loadData = async () => {
|
|
58
|
+
// console.log("SubmitButtonBar this.loadData()2");
|
|
59
|
+
// this.setState({
|
|
60
|
+
// stateSerial: this.state.stateSerial + 1,
|
|
61
|
+
// })
|
|
62
|
+
// }
|
|
63
|
+
|
|
64
|
+
render() {
|
|
65
|
+
const {} = this.state;
|
|
66
|
+
const { dtmplConfig, mainCode, serverKey } = this.props;
|
|
67
|
+
const { translate } = this.context;
|
|
68
|
+
|
|
69
|
+
if (!dtmplConfig) {
|
|
70
|
+
return null;
|
|
34
71
|
}
|
|
35
72
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const {buttons, cQuerys} = dtmplConfig;
|
|
63
|
-
const cardList: TmplBase[] = [];
|
|
64
|
-
|
|
65
|
-
let content
|
|
66
|
-
if (cQuerys && cQuerys.length > 3) {
|
|
67
|
-
content = (
|
|
68
|
-
<div style={{width:'100px'}} className="btns">
|
|
69
|
-
<Space direction="vertical">
|
|
70
|
-
{cQuerys.map((item, index) => {
|
|
71
|
-
if (index > 2) {
|
|
72
|
-
return <CquickButton serverKey={serverKey} block={true} key={item.id} mainCode={mainCode} cQueryConfig={item} ></CquickButton>
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
</Space>
|
|
77
|
-
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
//offsetBottom={this.calcOffsetBottom(cQuerys)}
|
|
82
|
-
return (
|
|
83
|
-
(cQuerys && cQuerys.length>0 && mainCode)?<Affix style={{position: 'absolute',top:180, right: 10, maxHeight: 90}}
|
|
84
|
-
offsetTop={300} >
|
|
85
|
-
<div className={'submitButtonBar'} >
|
|
86
|
-
<ul>
|
|
87
|
-
{
|
|
88
|
-
cQuerys ? cQuerys.map((item, index) => {
|
|
89
|
-
if (index < 3) {
|
|
90
|
-
return <li key={index}>
|
|
91
|
-
<CquickButton serverKey={serverKey} type={'text'} block={true} key={item.id} mainCode={mainCode} cQueryConfig={item} ></CquickButton>
|
|
92
|
-
</li>
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
) : ""
|
|
96
|
-
}
|
|
97
|
-
{//处理后面的
|
|
98
|
-
cQuerys && cQuerys.length > 2 ?
|
|
99
|
-
<Popover placement="leftTop" content={content} trigger="hover">
|
|
100
|
-
<Button block >
|
|
101
|
-
<LeftOutlined/>{'更多'}
|
|
102
|
-
</Button>
|
|
103
|
-
</Popover> : ""
|
|
104
|
-
}
|
|
105
|
-
</ul>
|
|
106
|
-
</div>
|
|
107
|
-
</Affix>:""
|
|
108
|
-
)
|
|
73
|
+
const { buttons, cQuerys } = dtmplConfig;
|
|
74
|
+
const cardList: TmplBase[] = [];
|
|
75
|
+
|
|
76
|
+
let content;
|
|
77
|
+
if (cQuerys && cQuerys.length > 3) {
|
|
78
|
+
content = (
|
|
79
|
+
<div style={{ width: "100px" }} className="btns">
|
|
80
|
+
<Space direction="vertical">
|
|
81
|
+
{cQuerys.map((item, index) => {
|
|
82
|
+
if (index > 2) {
|
|
83
|
+
return (
|
|
84
|
+
<CquickButton
|
|
85
|
+
serverKey={serverKey}
|
|
86
|
+
block={true}
|
|
87
|
+
key={item.id}
|
|
88
|
+
mainCode={mainCode}
|
|
89
|
+
cQueryConfig={item}
|
|
90
|
+
></CquickButton>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
})}
|
|
94
|
+
</Space>
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
109
97
|
}
|
|
98
|
+
//offsetBottom={this.calcOffsetBottom(cQuerys)}
|
|
99
|
+
return cQuerys && cQuerys.length > 0 && mainCode ? (
|
|
100
|
+
<Affix
|
|
101
|
+
style={{ position: "absolute", top: 180, right: 10, maxHeight: 90 }}
|
|
102
|
+
offsetTop={300}
|
|
103
|
+
>
|
|
104
|
+
<div className={"submitButtonBar"}>
|
|
105
|
+
<ul>
|
|
106
|
+
{cQuerys
|
|
107
|
+
? cQuerys.map((item, index) => {
|
|
108
|
+
if (index < 3) {
|
|
109
|
+
return (
|
|
110
|
+
<li key={index}>
|
|
111
|
+
<CquickButton
|
|
112
|
+
serverKey={serverKey}
|
|
113
|
+
type={"text"}
|
|
114
|
+
block={true}
|
|
115
|
+
key={item.id}
|
|
116
|
+
mainCode={mainCode}
|
|
117
|
+
cQueryConfig={item}
|
|
118
|
+
></CquickButton>
|
|
119
|
+
</li>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
: ""}
|
|
124
|
+
{//处理后面的
|
|
125
|
+
cQuerys && cQuerys.length > 2 ? (
|
|
126
|
+
<Popover placement="leftTop" content={content} trigger="hover">
|
|
127
|
+
<Button block>
|
|
128
|
+
<LeftOutlined />
|
|
129
|
+
{translate("${更多}")}
|
|
130
|
+
</Button>
|
|
131
|
+
</Popover>
|
|
132
|
+
) : (
|
|
133
|
+
""
|
|
134
|
+
)}
|
|
135
|
+
</ul>
|
|
136
|
+
</div>
|
|
137
|
+
</Affix>
|
|
138
|
+
) : (
|
|
139
|
+
""
|
|
140
|
+
);
|
|
141
|
+
}
|
|
110
142
|
}
|
|
111
143
|
|
|
112
144
|
export default CqueryButtonBar;
|
|
113
|
-
|
|
@@ -1,130 +1,178 @@
|
|
|
1
|
-
import React, {RefObject} from
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import {
|
|
4
|
+
ActionConfig,
|
|
5
|
+
ButtonName,
|
|
6
|
+
DtmplConfig,
|
|
7
|
+
TmplBase,
|
|
8
|
+
} from "../../../aldehyde/tmpl/interface";
|
|
9
|
+
import { Affix, Button, Popconfirm, Popover } from "antd";
|
|
10
|
+
import { LeftOutlined, SaveOutlined } from "@ant-design/icons";
|
|
6
11
|
import Action from "../../controls/action";
|
|
7
|
-
import {SubmitButtonProps} from "./submit-button-bar";
|
|
8
|
-
|
|
9
|
-
interface FixRightSubmitButtonProps extends SubmitButtonProps{
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
+
import { SubmitButtonProps } from "./submit-button-bar";
|
|
13
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
12
14
|
|
|
15
|
+
interface FixRightSubmitButtonProps extends SubmitButtonProps {}
|
|
13
16
|
|
|
14
17
|
interface FixRightSubmitButtonState {
|
|
15
|
-
|
|
18
|
+
// stateSerial:number
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
class FixRightSubmitButtonBar extends React.PureComponent<
|
|
21
|
+
class FixRightSubmitButtonBar extends React.PureComponent<
|
|
22
|
+
FixRightSubmitButtonProps,
|
|
23
|
+
FixRightSubmitButtonState
|
|
24
|
+
> {
|
|
25
|
+
state = {
|
|
26
|
+
// stateSerial:0,
|
|
27
|
+
};
|
|
28
|
+
static contextType = LocaleContext;
|
|
29
|
+
context: React.ContextType<typeof LocaleContext>;
|
|
19
30
|
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
calcOffsetBottom = (buttons: ButtonName[], actions: ActionConfig[]) => {
|
|
32
|
+
let buttonSize: number = 0;
|
|
33
|
+
if (actions) {
|
|
34
|
+
buttonSize = buttonSize + actions.length;
|
|
22
35
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let buttonSize:number=0;
|
|
26
|
-
if(actions ){
|
|
27
|
-
buttonSize=buttonSize+actions.length;
|
|
28
|
-
}
|
|
29
|
-
if((buttons && buttons.includes('dtmplSave')) ){
|
|
30
|
-
buttonSize=buttonSize+1;
|
|
31
|
-
}
|
|
32
|
-
if (buttonSize>=3) {
|
|
33
|
-
return 120;
|
|
34
|
-
} else if (buttonSize==2){
|
|
35
|
-
return 86;
|
|
36
|
-
}else{
|
|
37
|
-
return 80;
|
|
38
|
-
}
|
|
36
|
+
if (buttons && buttons.includes("dtmplSave")) {
|
|
37
|
+
buttonSize = buttonSize + 1;
|
|
39
38
|
}
|
|
39
|
+
if (buttonSize >= 3) {
|
|
40
|
+
return 120;
|
|
41
|
+
} else if (buttonSize == 2) {
|
|
42
|
+
return 86;
|
|
43
|
+
} else {
|
|
44
|
+
return 80;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
dtmplConfig.groups.forEach(g => {
|
|
56
|
-
cardList.push({
|
|
57
|
-
title: g.title,
|
|
58
|
-
id: g.id,
|
|
59
|
-
});
|
|
60
|
-
})
|
|
48
|
+
render() {
|
|
49
|
+
const {} = this.state;
|
|
50
|
+
const {
|
|
51
|
+
dtmplConfig,
|
|
52
|
+
doSubmit,
|
|
53
|
+
formRef,
|
|
54
|
+
serial,
|
|
55
|
+
serverKey,
|
|
56
|
+
dtmplData,
|
|
57
|
+
} = this.props;
|
|
58
|
+
const { buttons, actions } = dtmplConfig;
|
|
59
|
+
const cardList: TmplBase[] = [];
|
|
60
|
+
const { translate } = this.context;
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
content = (
|
|
65
|
-
<div className="btns">
|
|
66
|
-
{actions.map((item, index) => {
|
|
67
|
-
if (index > 1) {
|
|
68
|
-
// return <Popconfirm key={item.id} placement="top" title={"确定要保存修改并执行此操作吗?"}
|
|
69
|
-
// onConfirm={() => doSubmit(item.id)} okText="确定" cancelText="取消">
|
|
70
|
-
// <Button
|
|
71
|
-
// type="primary"
|
|
72
|
-
// >{item.title}</Button>
|
|
73
|
-
// </Popconfirm>
|
|
74
|
-
return <Action serverKey={serverKey} data={[dtmplData]} iconType={'icon-title'} hiddenType={'disabled'} buttonType={'primary'} serial={serial} key={item.id} formRef={formRef} actionConfig={item} doAction={doSubmit}></Action>
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
62
|
+
//console.log(" submit-button-bar serial:",serial);
|
|
63
|
+
// console.log(" submit-button-bar stateSerial:",stateSerial);
|
|
81
64
|
|
|
65
|
+
if (dtmplConfig.premises && dtmplConfig.premises.length > 0) {
|
|
66
|
+
cardList.push({
|
|
67
|
+
id: "1",
|
|
68
|
+
title: translate("${默认字段}"),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
dtmplConfig.groups.forEach((g) => {
|
|
72
|
+
cardList.push({
|
|
73
|
+
title: g.title,
|
|
74
|
+
id: g.id,
|
|
75
|
+
});
|
|
76
|
+
});
|
|
82
77
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
{//处理后面的
|
|
115
|
-
actions && actions.length > 2 ?
|
|
116
|
-
<Popover placement="leftTop" content={content} trigger="hover">
|
|
117
|
-
<Button block>
|
|
118
|
-
<LeftOutlined/>{'更多'}
|
|
119
|
-
</Button>
|
|
120
|
-
</Popover> : ""
|
|
121
|
-
}
|
|
122
|
-
</ul>
|
|
123
|
-
</div>
|
|
124
|
-
</Affix>
|
|
125
|
-
)
|
|
78
|
+
let content;
|
|
79
|
+
if (actions && actions.length > 1) {
|
|
80
|
+
content = (
|
|
81
|
+
<div className="btns">
|
|
82
|
+
{actions.map((item, index) => {
|
|
83
|
+
if (index > 1) {
|
|
84
|
+
// return <Popconfirm key={item.id} placement="top" title={"确定要保存修改并执行此操作吗?"}
|
|
85
|
+
// onConfirm={() => doSubmit(item.id)} okText="确定" cancelText="取消">
|
|
86
|
+
// <Button
|
|
87
|
+
// type="primary"
|
|
88
|
+
// >{item.title}</Button>
|
|
89
|
+
// </Popconfirm>
|
|
90
|
+
return (
|
|
91
|
+
<Action
|
|
92
|
+
serverKey={serverKey}
|
|
93
|
+
data={[dtmplData]}
|
|
94
|
+
iconType={"icon-title"}
|
|
95
|
+
hiddenType={"disabled"}
|
|
96
|
+
buttonType={"primary"}
|
|
97
|
+
serial={serial}
|
|
98
|
+
key={item.id}
|
|
99
|
+
formRef={formRef}
|
|
100
|
+
actionConfig={item}
|
|
101
|
+
doAction={doSubmit}
|
|
102
|
+
></Action>
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
})}
|
|
106
|
+
</div>
|
|
107
|
+
);
|
|
126
108
|
}
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<Affix
|
|
112
|
+
//style={{position: 'absolute', right: 10, maxHeight: 100}}
|
|
113
|
+
// offsetBottom={this.calcOffsetBottom(buttons, actions)}>
|
|
114
|
+
style={{ position: "absolute", bottom: 60, right: 15 }}
|
|
115
|
+
offsetBottom={this.calcOffsetBottom(buttons, actions)}
|
|
116
|
+
>
|
|
117
|
+
<div className={"submitButtonBar"}>
|
|
118
|
+
<ul>
|
|
119
|
+
{buttons.includes("dtmplSave") ? (
|
|
120
|
+
<li key={100}>
|
|
121
|
+
<Button
|
|
122
|
+
onClick={() => doSubmit()}
|
|
123
|
+
type="primary"
|
|
124
|
+
icon={<SaveOutlined />}
|
|
125
|
+
key="btn"
|
|
126
|
+
block
|
|
127
|
+
>
|
|
128
|
+
保 存
|
|
129
|
+
</Button>
|
|
130
|
+
</li>
|
|
131
|
+
) : (
|
|
132
|
+
""
|
|
133
|
+
)}
|
|
134
|
+
{//处理前两个
|
|
135
|
+
actions
|
|
136
|
+
? actions.map((item, index) => {
|
|
137
|
+
if (index < 2) {
|
|
138
|
+
return (
|
|
139
|
+
<li key={index}>
|
|
140
|
+
{/*<Popconfirm placement="left" title={"确定要保存修改并执行此操作吗?"} onConfirm={() => doSubmit(item.id)} okText="确定" cancelText="取消">*/}
|
|
141
|
+
{/*<Button block*/}
|
|
142
|
+
{/* type={'primary'}>{item.title}</Button>*/}
|
|
143
|
+
{/*</Popconfirm>*/}
|
|
144
|
+
<Action
|
|
145
|
+
data={[dtmplData]}
|
|
146
|
+
serverKey={serverKey}
|
|
147
|
+
hiddenType={"disabled"}
|
|
148
|
+
buttonType={"primary-block"}
|
|
149
|
+
serial={serial}
|
|
150
|
+
key={item.id}
|
|
151
|
+
formRef={formRef}
|
|
152
|
+
actionConfig={item}
|
|
153
|
+
doAction={doSubmit}
|
|
154
|
+
></Action>
|
|
155
|
+
</li>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
: ""}
|
|
160
|
+
{//处理后面的
|
|
161
|
+
actions && actions.length > 2 ? (
|
|
162
|
+
<Popover placement="leftTop" content={content} trigger="hover">
|
|
163
|
+
<Button block>
|
|
164
|
+
<LeftOutlined />
|
|
165
|
+
{translate("${更多}")}
|
|
166
|
+
</Button>
|
|
167
|
+
</Popover>
|
|
168
|
+
) : (
|
|
169
|
+
""
|
|
170
|
+
)}
|
|
171
|
+
</ul>
|
|
172
|
+
</div>
|
|
173
|
+
</Affix>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
127
176
|
}
|
|
128
177
|
|
|
129
178
|
export default FixRightSubmitButtonBar;
|
|
130
|
-
|