@cuvp1225/antd 0.1.19 → 0.1.21-pub-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer.js +1142 -145
- package/dist/index.js +1186 -262
- package/lib/cjs/components/LineChart.js +0 -1
- package/lib/cjs/components/affix.d.ts +1 -1
- package/lib/cjs/components/affix.js +2 -4
- package/lib/cjs/components/alert.d.ts +1 -1
- package/lib/cjs/components/alert.js +4 -6
- package/lib/cjs/components/anchor.d.ts +15 -2
- package/lib/cjs/components/anchor.js +18 -43
- package/lib/cjs/components/auto-complete.d.ts +1 -1
- package/lib/cjs/components/auto-complete.js +4 -6
- package/lib/cjs/components/avatar.d.ts +1 -1
- package/lib/cjs/components/avatar.js +4 -6
- package/lib/cjs/components/backTop.d.ts +6 -0
- package/lib/cjs/components/backTop.js +17 -0
- package/lib/cjs/components/badge.d.ts +1 -1
- package/lib/cjs/components/badge.js +5 -10
- package/lib/cjs/components/box.d.ts +1 -1
- package/lib/cjs/components/box.js +2 -2
- package/lib/cjs/components/breadcrumb.d.ts +16 -2
- package/lib/cjs/components/breadcrumb.js +18 -7
- package/lib/cjs/components/button.d.ts +3 -3
- package/lib/cjs/components/button.js +3 -29
- package/lib/cjs/components/calendar.d.ts +1 -1
- package/lib/cjs/components/calendar.js +4 -6
- package/lib/cjs/components/card.d.ts +1 -1
- package/lib/cjs/components/card.js +4 -6
- package/lib/cjs/components/carousel.d.ts +4 -1
- package/lib/cjs/components/carousel.js +12 -27
- package/lib/cjs/components/cascader.d.ts +2 -2
- package/lib/cjs/components/cascader.js +2 -3
- package/lib/cjs/components/checkbox.d.ts +4 -3
- package/lib/cjs/components/checkbox.js +10 -29
- package/lib/cjs/components/collapse.d.ts +15 -2
- package/lib/cjs/components/collapse.js +22 -31
- package/lib/cjs/components/columns.d.ts +2 -2
- package/lib/cjs/components/columns.js +3 -3
- package/lib/cjs/components/comment.d.ts +1 -1
- package/lib/cjs/components/comment.js +5 -9
- package/lib/cjs/components/date-picker.d.ts +1 -1
- package/lib/cjs/components/date-picker.js +4 -66
- package/lib/cjs/components/descriptions.d.ts +1 -5
- package/lib/cjs/components/descriptions.js +9 -58
- package/lib/cjs/components/divider.d.ts +1 -1
- package/lib/cjs/components/divider.js +4 -6
- package/lib/cjs/components/drawer.d.ts +1 -1
- package/lib/cjs/components/drawer.js +2 -2
- package/lib/cjs/components/dropdown.d.ts +6 -2
- package/lib/cjs/components/dropdown.js +10 -8
- package/lib/cjs/components/each.d.ts +1 -1
- package/lib/cjs/components/each.js +2 -2
- package/lib/cjs/components/empty.d.ts +1 -1
- package/lib/cjs/components/empty.js +4 -6
- package/lib/cjs/components/form.d.ts +4 -4
- package/lib/cjs/components/form.js +5 -5
- package/lib/cjs/components/formily.d.ts +4 -4
- package/lib/cjs/components/formily.js +6 -6
- package/lib/cjs/components/icon.d.ts +1 -1
- package/lib/cjs/components/icon.js +2 -28
- package/lib/cjs/components/image.d.ts +1 -1
- package/lib/cjs/components/image.js +4 -7
- package/lib/cjs/components/index.d.ts +21 -1
- package/lib/cjs/components/index.js +46 -11
- package/lib/cjs/components/input-number.d.ts +1 -1
- package/lib/cjs/components/input-number.js +2 -21
- package/lib/cjs/components/input.d.ts +6 -3
- package/lib/cjs/components/input.js +23 -12
- package/lib/cjs/components/list.d.ts +2 -2
- package/lib/cjs/components/list.js +3 -3
- package/lib/cjs/components/mentions.d.ts +1 -1
- package/lib/cjs/components/mentions.js +4 -6
- package/lib/cjs/components/menu.d.ts +2 -2
- package/lib/cjs/components/menu.js +3 -3
- package/lib/cjs/components/modal.d.ts +1 -1
- package/lib/cjs/components/modal.js +2 -2
- package/lib/cjs/components/page.d.ts +1 -1
- package/lib/cjs/components/page.js +2 -2
- package/lib/cjs/components/pageheader.d.ts +1 -1
- package/lib/cjs/components/pageheader.js +4 -21
- package/lib/cjs/components/pagination.d.ts +1 -1
- package/lib/cjs/components/pagination.js +4 -6
- package/lib/cjs/components/placeholder.d.ts +11 -3
- package/lib/cjs/components/placeholder.js +47 -16
- package/lib/cjs/components/popconfirm.d.ts +4 -1
- package/lib/cjs/components/popconfirm.js +13 -36
- package/lib/cjs/components/popover.d.ts +4 -1
- package/lib/cjs/components/popover.js +13 -36
- package/lib/cjs/components/progress.d.ts +1 -1
- package/lib/cjs/components/progress.js +4 -4
- package/lib/cjs/components/radio.d.ts +4 -3
- package/lib/cjs/components/radio.js +13 -37
- package/lib/cjs/components/rate.d.ts +1 -1
- package/lib/cjs/components/rate.js +4 -21
- package/lib/cjs/components/result.d.ts +1 -1
- package/lib/cjs/components/result.js +4 -6
- package/lib/cjs/components/result1.js +2 -3
- package/lib/cjs/components/result2.d.ts +4 -2
- package/lib/cjs/components/result2.js +19 -4
- package/lib/cjs/components/result3.js +0 -1
- package/lib/cjs/components/row-back.d.ts +1 -1
- package/lib/cjs/components/row-back.js +6 -8
- package/lib/cjs/components/row.d.ts +1 -1
- package/lib/cjs/components/row.js +2 -3
- package/lib/cjs/components/section.d.ts +1 -1
- package/lib/cjs/components/section.js +2 -2
- package/lib/cjs/components/select.d.ts +1 -1
- package/lib/cjs/components/select.js +2 -21
- package/lib/cjs/components/skeleton.d.ts +1 -1
- package/lib/cjs/components/skeleton.js +4 -21
- package/lib/cjs/components/slider.d.ts +1 -1
- package/lib/cjs/components/slider.js +4 -21
- package/lib/cjs/components/space.d.ts +1 -1
- package/lib/cjs/components/space.js +2 -2
- package/lib/cjs/components/spin.d.ts +1 -1
- package/lib/cjs/components/spin.js +4 -6
- package/lib/cjs/components/statistic.js +3 -72
- package/lib/cjs/components/steps.d.ts +11 -0
- package/lib/cjs/components/steps.js +17 -0
- package/lib/cjs/components/switch.d.ts +1 -1
- package/lib/cjs/components/switch.js +4 -4
- package/lib/cjs/components/table.d.ts +1 -1
- package/lib/cjs/components/table.js +4 -4
- package/lib/cjs/components/table1.d.ts +4 -2
- package/lib/cjs/components/table1.js +3 -6
- package/lib/cjs/components/tabs.d.ts +1 -1
- package/lib/cjs/components/tabs.js +6 -7
- package/lib/cjs/components/tag.d.ts +1 -1
- package/lib/cjs/components/tag.js +4 -6
- package/lib/cjs/components/tango-event-button.d.ts +1 -1
- package/lib/cjs/components/tango-event-button.js +2 -2
- package/lib/cjs/components/time-picker.d.ts +1 -1
- package/lib/cjs/components/time-picker.js +4 -4
- package/lib/cjs/components/timeline.d.ts +2 -2
- package/lib/cjs/components/timeline.js +3 -39
- package/lib/cjs/components/timeline1.js +0 -21
- package/lib/cjs/components/tooltip.d.ts +5 -1
- package/lib/cjs/components/tooltip.js +13 -36
- package/lib/cjs/components/transfer.d.ts +1 -1
- package/lib/cjs/components/transfer.js +4 -21
- package/lib/cjs/components/tree-select.d.ts +1 -1
- package/lib/cjs/components/tree-select.js +4 -4
- package/lib/cjs/components/tree.d.ts +1 -1
- package/lib/cjs/components/tree.js +4 -4
- package/lib/cjs/components/typography.d.ts +3 -3
- package/lib/cjs/components/typography.js +5 -5
- package/lib/cjs/components/unSteps/unisteps.d.ts +17 -0
- package/lib/cjs/components/unSteps/unisteps.js +95 -0
- package/lib/cjs/components/uniButton/unibutton.d.ts +8 -0
- package/lib/cjs/components/uniButton/unibutton.js +65 -0
- package/lib/cjs/components/uniCascader/unicascader.d.ts +7 -0
- package/lib/cjs/components/uniCascader/unicascader.js +54 -0
- package/lib/cjs/components/uniModal/unimodal.d.ts +14 -0
- package/lib/cjs/components/uniModal/unimodal.js +46 -0
- package/lib/cjs/components/uniRadio/uniradio.d.ts +12 -0
- package/lib/cjs/components/uniRadio/uniradio.js +133 -0
- package/lib/cjs/components/uniSelect/uniselect.d.ts +7 -0
- package/lib/cjs/components/uniSelect/uniselect.js +44 -0
- package/lib/cjs/components/uniSwitch/uniswitch.d.ts +7 -0
- package/lib/cjs/components/uniSwitch/uniswitch.js +40 -0
- package/lib/cjs/components/uniTabs/unitabs.d.ts +17 -0
- package/lib/cjs/components/uniTabs/unitabs.js +87 -0
- package/lib/cjs/components/uniUpload/uniupload.d.ts +6 -0
- package/lib/cjs/components/uniUpload/uniupload.js +48 -0
- package/lib/cjs/components/upload.d.ts +4 -1
- package/lib/cjs/components/upload.js +13 -45
- package/lib/cjs/helpers/prototype-helper.d.ts +3 -3
- package/lib/cjs/helpers/slottype.d.ts +10 -0
- package/lib/cjs/helpers/slottype.js +13 -0
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/prototypes/affix.d.ts +1 -1
- package/lib/cjs/prototypes/alert.d.ts +1 -1
- package/lib/cjs/prototypes/anchor.d.ts +1 -1
- package/lib/cjs/prototypes/auto-complete.d.ts +1 -1
- package/lib/cjs/prototypes/avatar.d.ts +1 -1
- package/lib/cjs/prototypes/back-top.d.ts +1 -1
- package/lib/cjs/prototypes/badge.d.ts +1 -1
- package/lib/cjs/prototypes/box.d.ts +1 -1
- package/lib/cjs/prototypes/breadcrumb.d.ts +1 -1
- package/lib/cjs/prototypes/button.d.ts +1 -1
- package/lib/cjs/prototypes/calendar.d.ts +1 -1
- package/lib/cjs/prototypes/card.d.ts +1 -1
- package/lib/cjs/prototypes/carousel.d.ts +1 -1
- package/lib/cjs/prototypes/cascader.d.ts +1 -1
- package/lib/cjs/prototypes/checkbox.d.ts +1 -1
- package/lib/cjs/prototypes/collapse.d.ts +1 -1
- package/lib/cjs/prototypes/columns.d.ts +1 -1
- package/lib/cjs/prototypes/comment.d.ts +1 -1
- package/lib/cjs/prototypes/common.d.ts +1 -1
- package/lib/cjs/prototypes/date-picker.d.ts +3 -3
- package/lib/cjs/prototypes/descriptions.d.ts +2 -2
- package/lib/cjs/prototypes/divider.d.ts +1 -1
- package/lib/cjs/prototypes/drawer.d.ts +1 -1
- package/lib/cjs/prototypes/dropdown.d.ts +1 -1
- package/lib/cjs/prototypes/each.d.ts +1 -1
- package/lib/cjs/prototypes/empty.d.ts +1 -1
- package/lib/cjs/prototypes/form.d.ts +1 -1
- package/lib/cjs/prototypes/formily.d.ts +1 -1
- package/lib/cjs/prototypes/grid.d.ts +1 -1
- package/lib/cjs/prototypes/icon.d.ts +1 -1
- package/lib/cjs/prototypes/iframe.d.ts +1 -1
- package/lib/cjs/prototypes/image.d.ts +1 -1
- package/lib/cjs/prototypes/index.d.ts +1 -0
- package/lib/cjs/prototypes/index.js +1 -0
- package/lib/cjs/prototypes/input-number.d.ts +1 -1
- package/lib/cjs/prototypes/input.d.ts +1 -1
- package/lib/cjs/prototypes/interval.d.ts +1 -1
- package/lib/cjs/prototypes/link.d.ts +1 -1
- package/lib/cjs/prototypes/list.d.ts +1 -1
- package/lib/cjs/prototypes/mentions.d.ts +1 -1
- package/lib/cjs/prototypes/menu.d.ts +1 -1
- package/lib/cjs/prototypes/modal.d.ts +1 -1
- package/lib/cjs/prototypes/page-header.d.ts +1 -1
- package/lib/cjs/prototypes/page.d.ts +1 -1
- package/lib/cjs/prototypes/pagination.d.ts +1 -1
- package/lib/cjs/prototypes/popconfirm.d.ts +1 -1
- package/lib/cjs/prototypes/popover.d.ts +1 -1
- package/lib/cjs/prototypes/progress.d.ts +1 -1
- package/lib/cjs/prototypes/radio.d.ts +1 -1
- package/lib/cjs/prototypes/rate.d.ts +1 -1
- package/lib/cjs/prototypes/result.d.ts +1 -1
- package/lib/cjs/prototypes/row.d.ts +1 -1
- package/lib/cjs/prototypes/section.d.ts +1 -1
- package/lib/cjs/prototypes/select.d.ts +1 -1
- package/lib/cjs/prototypes/skeleton.d.ts +1 -1
- package/lib/cjs/prototypes/slider.d.ts +1 -1
- package/lib/cjs/prototypes/space.d.ts +1 -1
- package/lib/cjs/prototypes/spin.d.ts +1 -1
- package/lib/cjs/prototypes/statistic.d.ts +1 -1
- package/lib/cjs/prototypes/steps.d.ts +1 -1
- package/lib/cjs/prototypes/switch.d.ts +1 -1
- package/lib/cjs/prototypes/table.d.ts +1 -1
- package/lib/cjs/prototypes/tabs.d.ts +1 -1
- package/lib/cjs/prototypes/tag.d.ts +1 -1
- package/lib/cjs/prototypes/text.d.ts +1 -1
- package/lib/cjs/prototypes/time-picker.d.ts +3 -3
- package/lib/cjs/prototypes/timeline.d.ts +1 -1
- package/lib/cjs/prototypes/timeline.js +3 -3
- package/lib/cjs/prototypes/toolbar.d.ts +1 -1
- package/lib/cjs/prototypes/tooltip.d.ts +1 -1
- package/lib/cjs/prototypes/transfer.d.ts +1 -1
- package/lib/cjs/prototypes/tree-select.d.ts +1 -1
- package/lib/cjs/prototypes/tree.d.ts +1 -1
- package/lib/cjs/prototypes/typography.d.ts +1 -1
- package/lib/cjs/prototypes/unitabs.d.ts +2 -0
- package/lib/cjs/prototypes/unitabs.js +158 -0
- package/lib/cjs/prototypes/upload.d.ts +1 -1
- package/lib/cjs/prototypes/when.d.ts +1 -1
- package/lib/esm/components/LineChart.js +0 -1
- package/lib/esm/components/affix.d.ts +1 -1
- package/lib/esm/components/affix.js +1 -3
- package/lib/esm/components/alert.d.ts +1 -1
- package/lib/esm/components/alert.js +2 -4
- package/lib/esm/components/anchor.d.ts +15 -2
- package/lib/esm/components/anchor.js +15 -42
- package/lib/esm/components/auto-complete.d.ts +1 -1
- package/lib/esm/components/auto-complete.js +2 -4
- package/lib/esm/components/avatar.d.ts +1 -1
- package/lib/esm/components/avatar.js +2 -4
- package/lib/esm/components/backTop.d.ts +6 -0
- package/lib/esm/components/backTop.js +13 -0
- package/lib/esm/components/badge.d.ts +1 -1
- package/lib/esm/components/badge.js +3 -8
- package/lib/esm/components/box.d.ts +1 -1
- package/lib/esm/components/box.js +1 -1
- package/lib/esm/components/breadcrumb.d.ts +16 -2
- package/lib/esm/components/breadcrumb.js +16 -7
- package/lib/esm/components/button.d.ts +3 -3
- package/lib/esm/components/button.js +1 -27
- package/lib/esm/components/calendar.d.ts +1 -1
- package/lib/esm/components/calendar.js +2 -4
- package/lib/esm/components/card.d.ts +1 -1
- package/lib/esm/components/card.js +2 -4
- package/lib/esm/components/carousel.d.ts +4 -1
- package/lib/esm/components/carousel.js +11 -27
- package/lib/esm/components/cascader.d.ts +2 -2
- package/lib/esm/components/cascader.js +1 -2
- package/lib/esm/components/checkbox.d.ts +4 -3
- package/lib/esm/components/checkbox.js +8 -28
- package/lib/esm/components/collapse.d.ts +15 -2
- package/lib/esm/components/collapse.js +19 -30
- package/lib/esm/components/columns.d.ts +2 -2
- package/lib/esm/components/columns.js +1 -1
- package/lib/esm/components/comment.d.ts +1 -1
- package/lib/esm/components/comment.js +3 -7
- package/lib/esm/components/date-picker.d.ts +1 -1
- package/lib/esm/components/date-picker.js +2 -64
- package/lib/esm/components/descriptions.d.ts +1 -5
- package/lib/esm/components/descriptions.js +8 -56
- package/lib/esm/components/divider.d.ts +1 -1
- package/lib/esm/components/divider.js +2 -4
- package/lib/esm/components/drawer.d.ts +1 -1
- package/lib/esm/components/drawer.js +1 -1
- package/lib/esm/components/dropdown.d.ts +6 -2
- package/lib/esm/components/dropdown.js +8 -7
- package/lib/esm/components/each.d.ts +1 -1
- package/lib/esm/components/each.js +1 -1
- package/lib/esm/components/empty.d.ts +1 -1
- package/lib/esm/components/empty.js +2 -4
- package/lib/esm/components/form.d.ts +4 -4
- package/lib/esm/components/form.js +1 -1
- package/lib/esm/components/formily.d.ts +4 -4
- package/lib/esm/components/formily.js +1 -1
- package/lib/esm/components/icon.d.ts +1 -1
- package/lib/esm/components/icon.js +1 -27
- package/lib/esm/components/image.d.ts +1 -1
- package/lib/esm/components/image.js +2 -5
- package/lib/esm/components/index.d.ts +21 -1
- package/lib/esm/components/index.js +23 -10
- package/lib/esm/components/input-number.d.ts +1 -1
- package/lib/esm/components/input-number.js +1 -20
- package/lib/esm/components/input.d.ts +6 -3
- package/lib/esm/components/input.js +20 -10
- package/lib/esm/components/list.d.ts +2 -2
- package/lib/esm/components/list.js +1 -1
- package/lib/esm/components/mentions.d.ts +1 -1
- package/lib/esm/components/mentions.js +2 -4
- package/lib/esm/components/menu.d.ts +2 -2
- package/lib/esm/components/menu.js +1 -1
- package/lib/esm/components/modal.d.ts +1 -1
- package/lib/esm/components/modal.js +1 -1
- package/lib/esm/components/page.d.ts +1 -1
- package/lib/esm/components/page.js +1 -1
- package/lib/esm/components/pageheader.d.ts +1 -1
- package/lib/esm/components/pageheader.js +2 -19
- package/lib/esm/components/pagination.d.ts +1 -1
- package/lib/esm/components/pagination.js +2 -4
- package/lib/esm/components/placeholder.d.ts +11 -3
- package/lib/esm/components/placeholder.js +44 -15
- package/lib/esm/components/popconfirm.d.ts +4 -1
- package/lib/esm/components/popconfirm.js +12 -36
- package/lib/esm/components/popover.d.ts +4 -1
- package/lib/esm/components/popover.js +12 -36
- package/lib/esm/components/progress.d.ts +1 -1
- package/lib/esm/components/progress.js +2 -2
- package/lib/esm/components/radio.d.ts +4 -3
- package/lib/esm/components/radio.js +11 -36
- package/lib/esm/components/rate.d.ts +1 -1
- package/lib/esm/components/rate.js +2 -19
- package/lib/esm/components/result.d.ts +1 -1
- package/lib/esm/components/result.js +2 -4
- package/lib/esm/components/result1.js +1 -2
- package/lib/esm/components/result2.d.ts +4 -2
- package/lib/esm/components/result2.js +19 -4
- package/lib/esm/components/result3.js +0 -1
- package/lib/esm/components/row-back.d.ts +1 -1
- package/lib/esm/components/row-back.js +2 -4
- package/lib/esm/components/row.d.ts +1 -1
- package/lib/esm/components/row.js +1 -2
- package/lib/esm/components/section.d.ts +1 -1
- package/lib/esm/components/section.js +1 -1
- package/lib/esm/components/select.d.ts +1 -1
- package/lib/esm/components/select.js +1 -20
- package/lib/esm/components/skeleton.d.ts +1 -1
- package/lib/esm/components/skeleton.js +2 -19
- package/lib/esm/components/slider.d.ts +1 -1
- package/lib/esm/components/slider.js +2 -19
- package/lib/esm/components/space.d.ts +1 -1
- package/lib/esm/components/space.js +1 -1
- package/lib/esm/components/spin.d.ts +1 -1
- package/lib/esm/components/spin.js +2 -4
- package/lib/esm/components/statistic.js +2 -71
- package/lib/esm/components/steps.d.ts +11 -0
- package/lib/esm/components/steps.js +12 -0
- package/lib/esm/components/switch.d.ts +1 -1
- package/lib/esm/components/switch.js +2 -2
- package/lib/esm/components/table.d.ts +1 -1
- package/lib/esm/components/table.js +2 -2
- package/lib/esm/components/table1.d.ts +4 -2
- package/lib/esm/components/table1.js +3 -6
- package/lib/esm/components/tabs.d.ts +1 -1
- package/lib/esm/components/tabs.js +4 -5
- package/lib/esm/components/tag.d.ts +1 -1
- package/lib/esm/components/tag.js +2 -4
- package/lib/esm/components/tango-event-button.d.ts +1 -1
- package/lib/esm/components/tango-event-button.js +1 -1
- package/lib/esm/components/time-picker.d.ts +1 -1
- package/lib/esm/components/time-picker.js +2 -2
- package/lib/esm/components/timeline.d.ts +2 -2
- package/lib/esm/components/timeline.js +1 -37
- package/lib/esm/components/timeline1.js +0 -21
- package/lib/esm/components/tooltip.d.ts +5 -1
- package/lib/esm/components/tooltip.js +12 -36
- package/lib/esm/components/transfer.d.ts +1 -1
- package/lib/esm/components/transfer.js +2 -19
- package/lib/esm/components/tree-select.d.ts +1 -1
- package/lib/esm/components/tree-select.js +2 -2
- package/lib/esm/components/tree.d.ts +1 -1
- package/lib/esm/components/tree.js +2 -2
- package/lib/esm/components/typography.d.ts +3 -3
- package/lib/esm/components/typography.js +1 -1
- package/lib/esm/components/unSteps/unisteps.d.ts +17 -0
- package/lib/esm/components/unSteps/unisteps.js +90 -0
- package/lib/esm/components/uniButton/unibutton.d.ts +8 -0
- package/lib/esm/components/uniButton/unibutton.js +61 -0
- package/lib/esm/components/uniCascader/unicascader.d.ts +7 -0
- package/lib/esm/components/uniCascader/unicascader.js +50 -0
- package/lib/esm/components/uniModal/unimodal.d.ts +14 -0
- package/lib/esm/components/uniModal/unimodal.js +42 -0
- package/lib/esm/components/uniRadio/uniradio.d.ts +12 -0
- package/lib/esm/components/uniRadio/uniradio.js +128 -0
- package/lib/esm/components/uniSelect/uniselect.d.ts +7 -0
- package/lib/esm/components/uniSelect/uniselect.js +40 -0
- package/lib/esm/components/uniSwitch/uniswitch.d.ts +7 -0
- package/lib/esm/components/uniSwitch/uniswitch.js +36 -0
- package/lib/esm/components/uniTabs/unitabs.d.ts +17 -0
- package/lib/esm/components/uniTabs/unitabs.js +82 -0
- package/lib/esm/components/uniUpload/uniupload.d.ts +6 -0
- package/lib/esm/components/uniUpload/uniupload.js +44 -0
- package/lib/esm/components/upload.d.ts +4 -1
- package/lib/esm/components/upload.js +12 -45
- package/lib/esm/helpers/prototype-helper.d.ts +3 -3
- package/lib/esm/helpers/slottype.d.ts +10 -0
- package/lib/esm/helpers/slottype.js +10 -0
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/prototypes/affix.d.ts +1 -1
- package/lib/esm/prototypes/alert.d.ts +1 -1
- package/lib/esm/prototypes/anchor.d.ts +1 -1
- package/lib/esm/prototypes/auto-complete.d.ts +1 -1
- package/lib/esm/prototypes/avatar.d.ts +1 -1
- package/lib/esm/prototypes/back-top.d.ts +1 -1
- package/lib/esm/prototypes/badge.d.ts +1 -1
- package/lib/esm/prototypes/box.d.ts +1 -1
- package/lib/esm/prototypes/breadcrumb.d.ts +1 -1
- package/lib/esm/prototypes/button.d.ts +1 -1
- package/lib/esm/prototypes/calendar.d.ts +1 -1
- package/lib/esm/prototypes/card.d.ts +1 -1
- package/lib/esm/prototypes/carousel.d.ts +1 -1
- package/lib/esm/prototypes/cascader.d.ts +1 -1
- package/lib/esm/prototypes/checkbox.d.ts +1 -1
- package/lib/esm/prototypes/collapse.d.ts +1 -1
- package/lib/esm/prototypes/columns.d.ts +1 -1
- package/lib/esm/prototypes/comment.d.ts +1 -1
- package/lib/esm/prototypes/common.d.ts +1 -1
- package/lib/esm/prototypes/date-picker.d.ts +3 -3
- package/lib/esm/prototypes/descriptions.d.ts +2 -2
- package/lib/esm/prototypes/divider.d.ts +1 -1
- package/lib/esm/prototypes/drawer.d.ts +1 -1
- package/lib/esm/prototypes/dropdown.d.ts +1 -1
- package/lib/esm/prototypes/each.d.ts +1 -1
- package/lib/esm/prototypes/empty.d.ts +1 -1
- package/lib/esm/prototypes/form.d.ts +1 -1
- package/lib/esm/prototypes/formily.d.ts +1 -1
- package/lib/esm/prototypes/grid.d.ts +1 -1
- package/lib/esm/prototypes/icon.d.ts +1 -1
- package/lib/esm/prototypes/iframe.d.ts +1 -1
- package/lib/esm/prototypes/image.d.ts +1 -1
- package/lib/esm/prototypes/index.d.ts +1 -0
- package/lib/esm/prototypes/index.js +1 -0
- package/lib/esm/prototypes/input-number.d.ts +1 -1
- package/lib/esm/prototypes/input.d.ts +1 -1
- package/lib/esm/prototypes/interval.d.ts +1 -1
- package/lib/esm/prototypes/link.d.ts +1 -1
- package/lib/esm/prototypes/list.d.ts +1 -1
- package/lib/esm/prototypes/mentions.d.ts +1 -1
- package/lib/esm/prototypes/menu.d.ts +1 -1
- package/lib/esm/prototypes/modal.d.ts +1 -1
- package/lib/esm/prototypes/page-header.d.ts +1 -1
- package/lib/esm/prototypes/page.d.ts +1 -1
- package/lib/esm/prototypes/pagination.d.ts +1 -1
- package/lib/esm/prototypes/popconfirm.d.ts +1 -1
- package/lib/esm/prototypes/popover.d.ts +1 -1
- package/lib/esm/prototypes/progress.d.ts +1 -1
- package/lib/esm/prototypes/radio.d.ts +1 -1
- package/lib/esm/prototypes/rate.d.ts +1 -1
- package/lib/esm/prototypes/result.d.ts +1 -1
- package/lib/esm/prototypes/row.d.ts +1 -1
- package/lib/esm/prototypes/section.d.ts +1 -1
- package/lib/esm/prototypes/select.d.ts +1 -1
- package/lib/esm/prototypes/skeleton.d.ts +1 -1
- package/lib/esm/prototypes/slider.d.ts +1 -1
- package/lib/esm/prototypes/space.d.ts +1 -1
- package/lib/esm/prototypes/spin.d.ts +1 -1
- package/lib/esm/prototypes/statistic.d.ts +1 -1
- package/lib/esm/prototypes/steps.d.ts +1 -1
- package/lib/esm/prototypes/switch.d.ts +1 -1
- package/lib/esm/prototypes/table.d.ts +1 -1
- package/lib/esm/prototypes/tabs.d.ts +1 -1
- package/lib/esm/prototypes/tag.d.ts +1 -1
- package/lib/esm/prototypes/text.d.ts +1 -1
- package/lib/esm/prototypes/time-picker.d.ts +3 -3
- package/lib/esm/prototypes/timeline.d.ts +1 -1
- package/lib/esm/prototypes/timeline.js +3 -3
- package/lib/esm/prototypes/toolbar.d.ts +1 -1
- package/lib/esm/prototypes/tooltip.d.ts +1 -1
- package/lib/esm/prototypes/transfer.d.ts +1 -1
- package/lib/esm/prototypes/tree-select.d.ts +1 -1
- package/lib/esm/prototypes/tree.d.ts +1 -1
- package/lib/esm/prototypes/typography.d.ts +1 -1
- package/lib/esm/prototypes/unitabs.d.ts +2 -0
- package/lib/esm/prototypes/unitabs.js +155 -0
- package/lib/esm/prototypes/upload.d.ts +1 -1
- package/lib/esm/prototypes/when.d.ts +1 -1
- package/package.json +7 -7
@@ -4,9 +4,9 @@ exports.Row1 = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const coral_system_1 = require("coral-system");
|
7
|
-
const
|
7
|
+
const boot_1 = require("@cuvp1225/boot");
|
8
8
|
const placeholder_1 = require("./placeholder");
|
9
|
-
const
|
9
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
10
10
|
//import { ShadowContainer } from './shadow-container';
|
11
11
|
// const BaseRowWrapper = coral(
|
12
12
|
// 'div',
|
@@ -29,8 +29,7 @@ const rowStyle = {
|
|
29
29
|
// children?: React.ReactNode;
|
30
30
|
// }
|
31
31
|
function RowDesigner(_a) {
|
32
|
-
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, _b =
|
33
|
-
console.log("zcq栅格行的入参", dataDnd, dataId);
|
32
|
+
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], rest = tslib_1.__rest(_a, ["gutter", "align", "justify", "prefixCls", "wrap", "style", "children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
|
34
33
|
const mergedStyle = react_1.default.useMemo(() => (Object.assign(Object.assign({}, rowStyle), style)), [style]);
|
35
34
|
// 缓存 dataDnd 和 dataId
|
36
35
|
const memoizedDataDnd = react_1.default.useMemo(() => dataDnd, [dataDnd]);
|
@@ -44,18 +43,17 @@ const Div = (0, coral_system_1.coral)('div', undefined, {
|
|
44
43
|
// 使用 React.memo 包裹 RowDesigner,避免不必要的重新渲染
|
45
44
|
const MemoizedRowDesigner = react_1.default.memo(RowDesigner, (prevProps, nextProps) => {
|
46
45
|
// 自定义比较函数,避免不必要的重新渲染
|
47
|
-
return (prevProps[
|
48
|
-
prevProps[
|
46
|
+
return (prevProps[helpers_1.SLOT.dnd] === nextProps[helpers_1.SLOT.dnd] &&
|
47
|
+
prevProps[helpers_1.SLOT.id] === nextProps[helpers_1.SLOT.id] &&
|
49
48
|
prevProps.style === nextProps.style &&
|
50
49
|
prevProps.children === nextProps.children);
|
51
50
|
});
|
52
51
|
//const MemoizedRowDesigner = React.memo(RowDesigner, areEqual);
|
53
|
-
exports.Row1 = (0,
|
52
|
+
exports.Row1 = (0, boot_1.defineComponent)(Div, {
|
54
53
|
name: 'Row1',
|
55
54
|
designerConfig: {
|
56
55
|
render({ designerProps, originalProps }) {
|
57
56
|
//return <RowDesigner {...designerProps} {...originalProps} />;
|
58
|
-
console.log("zcq栅格行的入参001", designerProps, originalProps);
|
59
57
|
const memoizedDesignerProps = react_1.default.useMemo(() => designerProps, [designerProps]);
|
60
58
|
const memoizedOriginalProps = react_1.default.useMemo(() => originalProps, [originalProps]);
|
61
59
|
return react_1.default.createElement(MemoizedRowDesigner, Object.assign({}, memoizedDesignerProps, memoizedOriginalProps));
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare const Row1: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("coral-system").CoralProps> & import("coral-system").CoralProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("coral-system").CoralProps> & {
|
3
3
|
as?: import("coral-system/dist/esm/types").As<any>;
|
4
|
-
} & import("@
|
4
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -4,7 +4,7 @@ exports.Row1 = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const coral_system_1 = require("coral-system");
|
7
|
-
const
|
7
|
+
const boot_1 = require("@cuvp1225/boot");
|
8
8
|
//import { ShadowContainer } from './shadow-container';
|
9
9
|
// const BaseRowWrapper = coral(
|
10
10
|
// 'div',
|
@@ -37,7 +37,6 @@ function RowDesigner(_a) {
|
|
37
37
|
// }
|
38
38
|
// });
|
39
39
|
// }, []);
|
40
|
-
console.log("zcq栅格行的入参", gutter, align, justify, prefixCls, wrap, style, children);
|
41
40
|
return (react_1.default.createElement("div", { style: Object.assign(Object.assign({}, rowStyle), style) },
|
42
41
|
react_1.default.createElement("div", null, children || react_1.default.createElement("div", null, "\u62D6\u5165\u7EC4\u4EF6"))));
|
43
42
|
}
|
@@ -45,7 +44,7 @@ const Div = (0, coral_system_1.coral)('div', undefined, {
|
|
45
44
|
prefix: '--music',
|
46
45
|
});
|
47
46
|
const MemoizedRowDesigner = react_1.default.memo(RowDesigner);
|
48
|
-
exports.Row1 = (0,
|
47
|
+
exports.Row1 = (0, boot_1.defineComponent)(Div, {
|
49
48
|
name: 'Row1',
|
50
49
|
designerConfig: {
|
51
50
|
render({ designerProps, originalProps }) {
|
@@ -3,4 +3,4 @@ import { BoxProps } from '@cuvp1225/foundation';
|
|
3
3
|
export interface SectionProps extends Omit<BoxProps, 'title'> {
|
4
4
|
title?: React.ReactNode;
|
5
5
|
}
|
6
|
-
export declare const Section: React.ForwardRefExoticComponent<SectionProps & import("@
|
6
|
+
export declare const Section: React.ForwardRefExoticComponent<SectionProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
7
7
|
const foundation_1 = require("@cuvp1225/foundation");
|
8
|
-
const
|
8
|
+
const boot_1 = require("@cuvp1225/boot");
|
9
9
|
const placeholder_1 = require("./placeholder");
|
10
10
|
function SectionView(_a) {
|
11
11
|
var { title, className, children } = _a, rest = tslib_1.__rest(_a, ["title", "className", "children"]);
|
@@ -13,7 +13,7 @@ function SectionView(_a) {
|
|
13
13
|
title && (react_1.default.createElement(foundation_1.Box, { p: "24px 24px 0", fontSize: "16px", fontWeight: "500" }, title)),
|
14
14
|
react_1.default.createElement(foundation_1.Box, { p: "24px" }, children)));
|
15
15
|
}
|
16
|
-
exports.Section = (0,
|
16
|
+
exports.Section = (0, boot_1.defineComponent)(SectionView, {
|
17
17
|
designerConfig: {
|
18
18
|
render({ children, designerProps, originalProps }) {
|
19
19
|
return react_1.default.cloneElement(children, Object.assign(Object.assign({ children: react_1.default.createElement(placeholder_1.Placeholder, null) }, originalProps), designerProps));
|
@@ -3,4 +3,4 @@ export declare const Select: import("react").ForwardRefExoticComponent<Omit<Sele
|
|
3
3
|
children?: React.ReactNode;
|
4
4
|
} & {
|
5
5
|
ref?: React.Ref<import("antd").RefSelectProps> | undefined;
|
6
|
-
} & import("@
|
6
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
@@ -2,13 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Select = void 0;
|
4
4
|
const antd_1 = require("antd");
|
5
|
-
const
|
6
|
-
exports.Select = (0,
|
5
|
+
const boot_1 = require("@cuvp1225/boot");
|
6
|
+
exports.Select = (0, boot_1.defineComponent)(antd_1.Select, {
|
7
7
|
name: 'Select',
|
8
8
|
registerState: {
|
9
9
|
getInitStates(_, props) {
|
10
10
|
var _a, _b;
|
11
|
-
console.log('getInitStates', props);
|
12
11
|
if (props.mode === 'multiple' || props.mode === 'tags') {
|
13
12
|
return {
|
14
13
|
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : [],
|
@@ -19,30 +18,12 @@ exports.Select = (0, tango_boot_1.defineComponent)(antd_1.Select, {
|
|
19
18
|
value: (_b = props.defaultValue) !== null && _b !== void 0 ? _b : '',
|
20
19
|
};
|
21
20
|
}
|
22
|
-
// return {
|
23
|
-
// value: props.defaultValue ?? '',
|
24
|
-
// };
|
25
21
|
},
|
26
22
|
getTriggerProps({ setPageState, getPageState }) {
|
27
23
|
var _a;
|
28
|
-
console.log('getTriggerProps', setPageState, getPageState);
|
29
|
-
// 监听 props.mode 的变化
|
30
|
-
// const currentPageState = getPageState();
|
31
|
-
// if (props.mode === 'multiple' || props.mode === 'tags') {
|
32
|
-
// if (!Array.isArray(currentPageState?.value)) {
|
33
|
-
// // 如果 mode 是 'multiple' 或 'tags',但当前 value 不是数组,则重置 value
|
34
|
-
// setPageState({ value: props.defaultValue ?? [] });
|
35
|
-
// }
|
36
|
-
// } else {
|
37
|
-
// if (typeof currentPageState?.value !== 'string') {
|
38
|
-
// // 如果 mode 不是 'multiple' 或 'tags',但当前 value 不是字符串,则重置 value
|
39
|
-
// setPageState({ value: props.defaultValue ?? '' });
|
40
|
-
// }
|
41
|
-
// }
|
42
24
|
return {
|
43
25
|
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
44
26
|
onChange(value) {
|
45
|
-
console.log('onChange', value);
|
46
27
|
setPageState({ value });
|
47
28
|
},
|
48
29
|
};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SkeletonProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & import("@
|
3
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -3,31 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Skeleton = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function SkeletonDesigner(_a) {
|
10
|
-
var { children } = _a, _b =
|
10
|
+
var { children } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
const skeletonRef = (0, react_1.useRef)(null);
|
12
|
-
// 监听弹层显示事件
|
13
|
-
// const handleVisibleChange = (visible: boolean) => {
|
14
|
-
// console.log('handleVisibleChange', visible);
|
15
|
-
// if (visible) {
|
16
|
-
// // 使用微任务确保弹层已渲染
|
17
|
-
// Promise.resolve().then(() => {
|
18
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
19
|
-
// console.log('popoverNode' ,popoverNode)
|
20
|
-
// if (popoverNode) {
|
21
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
22
|
-
// popoverNode.setAttribute('data-id', dataId);
|
23
|
-
// }
|
24
|
-
// });
|
25
|
-
// }
|
26
|
-
// };
|
27
12
|
(0, react_1.useEffect)(() => {
|
28
13
|
Promise.resolve().then(() => {
|
29
14
|
const popoverNode = document.querySelector(`.${dataId}`);
|
30
|
-
console.log('ant-skeleton', popoverNode);
|
31
15
|
if (popoverNode) {
|
32
16
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
33
17
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -38,11 +22,10 @@ function SkeletonDesigner(_a) {
|
|
38
22
|
return (react_1.default.createElement("div", { ref: skeletonRef },
|
39
23
|
react_1.default.createElement(antd_1.Skeleton, Object.assign({ className: dataId, "data-dnd": dataDnd, "data-id": dataId }, rest), children)));
|
40
24
|
}
|
41
|
-
exports.Skeleton = (0,
|
25
|
+
exports.Skeleton = (0, boot_1.defineComponent)(antd_1.Skeleton, {
|
42
26
|
name: 'Skeleton',
|
43
27
|
designerConfig: {
|
44
28
|
render({ designerProps, originalProps }) {
|
45
|
-
console.log("Skeleton: designerProps:", designerProps, "originalProps:", originalProps);
|
46
29
|
return react_1.default.createElement(SkeletonDesigner, Object.assign({}, designerProps, originalProps));
|
47
30
|
},
|
48
31
|
},
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const Slider: React.ForwardRefExoticComponent<(Omit<import("antd").SliderSingleProps & React.RefAttributes<unknown> & import("@
|
2
|
+
export declare const Slider: React.ForwardRefExoticComponent<(Omit<import("antd").SliderSingleProps & React.RefAttributes<unknown> & import("@cuvp1225/boot").TangoComponentProps, "ref"> | Omit<import("antd/lib/slider").SliderRangeProps & React.RefAttributes<unknown> & import("@cuvp1225/boot").TangoComponentProps, "ref">) & React.RefAttributes<unknown>>;
|
@@ -3,31 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Slider = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function SliderDesigner(_a) {
|
10
|
-
var { children, title } = _a, _b =
|
10
|
+
var { children, title } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
const rateRef = (0, react_1.useRef)(null);
|
12
|
-
// 监听弹层显示事件
|
13
|
-
// const handleVisibleChange = (visible: boolean) => {
|
14
|
-
// console.log('handleVisibleChange', visible);
|
15
|
-
// if (visible) {
|
16
|
-
// // 使用微任务确保弹层已渲染
|
17
|
-
// Promise.resolve().then(() => {
|
18
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
19
|
-
// console.log('popoverNode' ,popoverNode)
|
20
|
-
// if (popoverNode) {
|
21
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
22
|
-
// popoverNode.setAttribute('data-id', dataId);
|
23
|
-
// }
|
24
|
-
// });
|
25
|
-
// }
|
26
|
-
// };
|
27
12
|
(0, react_1.useEffect)(() => {
|
28
13
|
Promise.resolve().then(() => {
|
29
14
|
const popoverNode = document.querySelector(`.${dataId}`);
|
30
|
-
console.log('rate', popoverNode);
|
31
15
|
if (popoverNode) {
|
32
16
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
33
17
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -38,11 +22,10 @@ function SliderDesigner(_a) {
|
|
38
22
|
return (react_1.default.createElement("div", { ref: rateRef },
|
39
23
|
react_1.default.createElement(antd_1.Slider, Object.assign({ className: dataId, "data-dnd": dataDnd, "data-id": dataId, style: style }, rest))));
|
40
24
|
}
|
41
|
-
exports.Slider = (0,
|
25
|
+
exports.Slider = (0, boot_1.defineComponent)(antd_1.Slider, {
|
42
26
|
name: 'Slider',
|
43
27
|
designerConfig: {
|
44
28
|
render({ designerProps, originalProps }) {
|
45
|
-
console.log("Slider: designerProps:", designerProps, "originalProps:", originalProps);
|
46
29
|
return react_1.default.createElement(SliderDesigner, Object.assign({ title: "\u4E00\u7EA7\u6807\u9898" }, designerProps, originalProps));
|
47
30
|
},
|
48
31
|
},
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const Space: React.ForwardRefExoticComponent<import("antd").SpaceProps & import("@
|
2
|
+
export declare const Space: React.ForwardRefExoticComponent<import("antd").SpaceProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Space = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const antd_1 = require("antd");
|
8
8
|
const placeholder_1 = require("./placeholder");
|
9
|
-
exports.Space = (0,
|
9
|
+
exports.Space = (0, boot_1.defineComponent)(antd_1.Space, {
|
10
10
|
name: 'Space',
|
11
11
|
designerConfig: {
|
12
12
|
defaultProps: react_1.default.createElement(placeholder_1.Placeholder, null),
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SpinProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Spin: React.ForwardRefExoticComponent<SpinProps & import("@
|
3
|
+
export declare const Spin: React.ForwardRefExoticComponent<SpinProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -3,16 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Spin = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function SpinDesigner(_a) {
|
10
|
-
var { children, spinning } = _a, _b =
|
10
|
+
var { children, spinning } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", "spinning", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
const spinRef = (0, react_1.useRef)(null);
|
12
12
|
(0, react_1.useEffect)(() => {
|
13
13
|
Promise.resolve().then(() => {
|
14
14
|
const popoverNode = document.querySelector(`.${dataId}`);
|
15
|
-
// console.log('spinNode', popoverNode);
|
16
15
|
if (popoverNode) {
|
17
16
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
18
17
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -26,11 +25,10 @@ function SpinDesigner(_a) {
|
|
26
25
|
// data-id={dataId}
|
27
26
|
style: style }, rest), children)));
|
28
27
|
}
|
29
|
-
exports.Spin = (0,
|
28
|
+
exports.Spin = (0, boot_1.defineComponent)(antd_1.Spin, {
|
30
29
|
name: 'Spin',
|
31
30
|
designerConfig: {
|
32
31
|
render({ designerProps, originalProps }) {
|
33
|
-
// console.log("Spin: designerProps:", designerProps, "originalProps:", originalProps);
|
34
32
|
return react_1.default.createElement(SpinDesigner, Object.assign({ spinning: true }, designerProps, originalProps));
|
35
33
|
},
|
36
34
|
},
|
@@ -3,81 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Statistic = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
//import { defineComponent } from '@
|
6
|
+
//import { defineComponent } from '@cuvp1225/boot';
|
7
7
|
const react_1 = tslib_1.__importDefault(require("react"));
|
8
|
-
const
|
9
|
-
// interface RecordType {
|
10
|
-
// key: string;
|
11
|
-
// title: string;
|
12
|
-
// description: string;
|
13
|
-
// }
|
14
|
-
// function StatisticDesigner({
|
15
|
-
// children,
|
16
|
-
// title,
|
17
|
-
// [SLOT.dnd]: dataDnd,
|
18
|
-
// [SLOT.id]: dataId,
|
19
|
-
// style,
|
20
|
-
// ...rest
|
21
|
-
// }: StatisticProps & {
|
22
|
-
// [key: string]: any, // 添加索引签名
|
23
|
-
// dnd?: string,
|
24
|
-
// children?: React.ReactNode
|
25
|
-
// }) {
|
26
|
-
// // const statisticRef = useRef<HTMLDivElement>(null);
|
27
|
-
// // 监听弹层显示事件
|
28
|
-
// // const handleVisibleChange = (visible: boolean) => {
|
29
|
-
// // console.log('handleVisibleChange', visible);
|
30
|
-
// // if (visible) {
|
31
|
-
// // // 使用微任务确保弹层已渲染
|
32
|
-
// // Promise.resolve().then(() => {
|
33
|
-
// // const popoverNode = document.querySelector('.ant-popover-placement-top');
|
34
|
-
// // console.log('popoverNode' ,popoverNode)
|
35
|
-
// // if (popoverNode) {
|
36
|
-
// // popoverNode.setAttribute('data-dnd', dataDnd);
|
37
|
-
// // popoverNode.setAttribute('data-id', dataId);
|
38
|
-
// // }
|
39
|
-
// // });
|
40
|
-
// // }
|
41
|
-
// // };
|
42
|
-
// useEffect(() => {
|
43
|
-
// Promise.resolve().then(() => {
|
44
|
-
// const popoverNode = document.querySelector(`.${dataId}`);
|
45
|
-
// console.log('rate', popoverNode);
|
46
|
-
// if (popoverNode) {
|
47
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
48
|
-
// popoverNode.setAttribute('data-id', dataId);
|
49
|
-
// popoverNode.setAttribute('draggable', 'true');
|
50
|
-
// }
|
51
|
-
// });
|
52
|
-
// }, [dataDnd, dataId]);
|
53
|
-
// return (
|
54
|
-
// // <div ref={statisticRef}>
|
55
|
-
// <AntStatistic
|
56
|
-
// className={dataId}
|
57
|
-
// // data-dnd={dataDnd}
|
58
|
-
// // data-id={dataId}
|
59
|
-
// style={style}
|
60
|
-
// {...rest}
|
61
|
-
// />
|
62
|
-
// // </div>
|
63
|
-
// );
|
64
|
-
// }
|
65
|
-
// export const Statistic = defineComponent(AntStatistic, {
|
66
|
-
// name: 'Statistic',
|
67
|
-
// designerConfig: {
|
68
|
-
// render({ designerProps, originalProps }) {
|
69
|
-
// console.log("Statistic: designerProps:", designerProps, "originalProps:", originalProps)
|
70
|
-
// return <StatisticDesigner title="一级标题" {...designerProps} {...originalProps} />;
|
71
|
-
// },
|
72
|
-
// },
|
73
|
-
// // designerConfig: {
|
74
|
-
// // },
|
75
|
-
// });
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
76
9
|
const Statistic = (_a) => {
|
77
|
-
var _b =
|
78
|
-
console.log("新的数值统计组件", dataId, dataDnd, rest);
|
10
|
+
var _b = helpers_1.SLOT.id, dataId = _a[_b], _c = helpers_1.SLOT.dnd, dataDnd = _a[_c], rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
|
79
11
|
const newProps = Object.assign(Object.assign({}, rest), { draggable: true });
|
80
|
-
console.log("新的数值统计组件01", newProps);
|
81
12
|
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
82
13
|
react_1.default.createElement(antd_1.Statistic, Object.assign({}, rest))));
|
83
14
|
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { StepProps, StepsProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const Steps: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, ...rest }: StepsProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
dnd?: string;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}) => React.JSX.Element;
|
8
|
+
export declare const StepsStep: (props: StepProps & {
|
9
|
+
[key: string]: any;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.StepsStep = exports.Steps = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
7
|
+
const slottype_1 = require("../helpers/slottype");
|
8
|
+
const Steps = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
10
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
11
|
+
react_1.default.createElement(antd_1.Steps, Object.assign({}, rest), rest.children)));
|
12
|
+
};
|
13
|
+
exports.Steps = Steps;
|
14
|
+
const StepsStep = (props) => {
|
15
|
+
return (react_1.default.createElement(antd_1.Steps.Step, Object.assign({}, props)));
|
16
|
+
};
|
17
|
+
exports.StepsStep = StepsStep;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SwitchProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps & React.RefAttributes<HTMLElement> & import("@
|
3
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps & React.RefAttributes<HTMLElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Switch = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function SwitchDesigner(_a) {
|
10
|
-
var _b =
|
10
|
+
var _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
const switchRef = (0, react_1.useRef)(null);
|
12
12
|
(0, react_1.useEffect)(() => {
|
13
13
|
Promise.resolve().then(() => {
|
@@ -23,7 +23,7 @@ function SwitchDesigner(_a) {
|
|
23
23
|
return (react_1.default.createElement("div", { ref: switchRef },
|
24
24
|
react_1.default.createElement(antd_1.Switch, Object.assign({ "data-dnd": dataDnd, "data-id": dataId, style: style }, rest))));
|
25
25
|
}
|
26
|
-
exports.Switch = (0,
|
26
|
+
exports.Switch = (0, boot_1.defineComponent)(antd_1.Switch, {
|
27
27
|
name: 'Switch',
|
28
28
|
designerConfig: {
|
29
29
|
render({ designerProps, originalProps }) {
|
@@ -4,4 +4,4 @@ export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps<obje
|
|
4
4
|
children?: React.ReactNode;
|
5
5
|
} & {
|
6
6
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
7
|
-
} & import("@
|
7
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Table = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function TableDesigner(_a) {
|
10
|
-
var { children, columns, dataSource } = _a, _b =
|
10
|
+
var { children, columns, dataSource } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", "columns", "dataSource", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
const tableRef = (0, react_1.useRef)(null);
|
12
12
|
(0, react_1.useEffect)(() => {
|
13
13
|
Promise.resolve().then(() => {
|
@@ -26,7 +26,7 @@ function TableDesigner(_a) {
|
|
26
26
|
// data-id={dataId}
|
27
27
|
style: style }, rest), children)));
|
28
28
|
}
|
29
|
-
exports.Table = (0,
|
29
|
+
exports.Table = (0, boot_1.defineComponent)(antd_1.Table, {
|
30
30
|
name: 'Table',
|
31
31
|
designerConfig: {
|
32
32
|
render({ designerProps, originalProps }) {
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { TableProps } from 'antd';
|
1
2
|
import React from 'react';
|
2
|
-
export declare const Table: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, ...rest }: {
|
3
|
-
[
|
3
|
+
export declare const Table: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: TableProps<{}> & {
|
4
|
+
[key: string]: any;
|
5
|
+
children?: React.ReactNode;
|
4
6
|
}) => React.JSX.Element;
|
@@ -4,13 +4,10 @@ exports.Table = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
6
|
const react_1 = tslib_1.__importDefault(require("react"));
|
7
|
-
const
|
7
|
+
const slottype_1 = require("../helpers/slottype");
|
8
8
|
const Table = (_a) => {
|
9
|
-
var _b =
|
10
|
-
|
11
|
-
//const newProps = {...rest, ...{draggable:true}}
|
12
|
-
//console.log("新的表格组件01",newProps);
|
13
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
9
|
+
var _b = slottype_1.SLOT.id, dataId = _a[_b], _c = slottype_1.SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
10
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
14
11
|
react_1.default.createElement(antd_1.Table, Object.assign({}, rest))));
|
15
12
|
};
|
16
13
|
exports.Table = Table;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TabsProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const
|
3
|
+
export declare const unTabs: React.ForwardRefExoticComponent<TabsProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.unTabs = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const boot_1 = require("@cuvp1225/boot");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
-
const
|
8
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
9
9
|
function TabsDesigner(_a) {
|
10
|
-
var { children } = _a, _b =
|
10
|
+
var { children } = _a, _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_1.SLOT.id, dataId = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, ["children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
11
|
(0, react_1.useEffect)(() => {
|
12
12
|
Promise.resolve().then(() => {
|
13
13
|
const popoverNode = document.querySelector(`.${dataId}`);
|
14
|
-
console.log('spinNode', popoverNode);
|
14
|
+
// console.log('spinNode', popoverNode);
|
15
15
|
if (popoverNode) {
|
16
16
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
17
17
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -21,11 +21,10 @@ function TabsDesigner(_a) {
|
|
21
21
|
}, [dataDnd, dataId]);
|
22
22
|
return (react_1.default.createElement(antd_1.Tabs, Object.assign({ className: dataId, "data-dnd": dataDnd, "data-id": dataId, style: style }, rest), children));
|
23
23
|
}
|
24
|
-
exports.
|
24
|
+
exports.unTabs = (0, boot_1.defineComponent)(antd_1.Tabs, {
|
25
25
|
name: 'Tabs',
|
26
26
|
designerConfig: {
|
27
27
|
render({ designerProps, originalProps }) {
|
28
|
-
console.log("Tabs: designerProps:", designerProps, "originalProps:", originalProps);
|
29
28
|
return react_1.default.createElement(TabsDesigner, Object.assign({}, designerProps, originalProps));
|
30
29
|
},
|
31
30
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TagProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps & React.RefAttributes<HTMLElement> & import("@
|
3
|
+
export declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps & React.RefAttributes<HTMLElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|