@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
@@ -1,38 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Popconfirm as AntPopconfirm } from 'antd';
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
//
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
const popoverNode = document.querySelector(`#${dataId}`);
|
16
|
-
console.log('popoverNode', popoverNode);
|
17
|
-
if (popoverNode) {
|
18
|
-
popoverNode.setAttribute('data-dnd', dataDnd);
|
19
|
-
popoverNode.setAttribute('data-id', dataId);
|
20
|
-
popoverNode.setAttribute('draggable', 'true');
|
21
|
-
}
|
22
|
-
});
|
23
|
-
}
|
24
|
-
};
|
25
|
-
return (React.createElement("div", { ref: popconfirmRef },
|
26
|
-
React.createElement(AntPopconfirm, Object.assign({ id: dataId, className: dataId, title: title, onOpenChange: handleVisibleChange }, rest), children)));
|
27
|
-
}
|
28
|
-
export const Popconfirm = defineComponent(AntPopconfirm, {
|
29
|
-
name: 'Popconfirm',
|
30
|
-
designerConfig: {
|
31
|
-
render({ designerProps, originalProps }) {
|
32
|
-
console.log("Popconfirm: designerProps:", designerProps, "originalProps:", originalProps);
|
33
|
-
return React.createElement(PopconfirmDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
|
34
|
-
},
|
35
|
-
},
|
36
|
-
// designerConfig: {
|
37
|
-
// },
|
38
|
-
});
|
3
|
+
import React from 'react';
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
export const Popconfirm = (_a) => {
|
6
|
+
var
|
7
|
+
//items,
|
8
|
+
_b = SLOT.id,
|
9
|
+
//items,
|
10
|
+
dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
|
+
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
12
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
13
|
+
React.createElement(AntPopconfirm, Object.assign({ title: '确认吗' }, rest), rest.children)));
|
14
|
+
};
|
@@ -1,3 +1,6 @@
|
|
1
1
|
import { PopoverProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Popover:
|
3
|
+
export declare const Popover: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: PopoverProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
children?: React.ReactNode;
|
6
|
+
}) => React.JSX.Element;
|
@@ -1,38 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Popover as AntPopover } from 'antd';
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
//
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
const popoverNode = document.querySelector(`#${dataId}`);
|
16
|
-
console.log('popoverNode', popoverNode);
|
17
|
-
if (popoverNode) {
|
18
|
-
popoverNode.setAttribute('data-dnd', dataDnd);
|
19
|
-
popoverNode.setAttribute('data-id', dataId);
|
20
|
-
popoverNode.setAttribute('draggable', 'true');
|
21
|
-
}
|
22
|
-
});
|
23
|
-
}
|
24
|
-
};
|
25
|
-
return (React.createElement("div", { ref: popoverRef },
|
26
|
-
React.createElement(AntPopover, Object.assign({ id: dataId, title: title, onOpenChange: handleVisibleChange }, rest), children)));
|
27
|
-
}
|
28
|
-
export const Popover = defineComponent(AntPopover, {
|
29
|
-
name: 'Popover',
|
30
|
-
designerConfig: {
|
31
|
-
render({ designerProps, originalProps }) {
|
32
|
-
console.log("Popover: designerProps:", designerProps, "originalProps:", originalProps);
|
33
|
-
return React.createElement(PopoverDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
|
34
|
-
},
|
35
|
-
},
|
36
|
-
// designerConfig: {
|
37
|
-
// },
|
38
|
-
});
|
3
|
+
import React from 'react';
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
export const Popover = (_a) => {
|
6
|
+
var
|
7
|
+
//items,
|
8
|
+
_b = SLOT.id,
|
9
|
+
//items,
|
10
|
+
dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
11
|
+
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
12
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
13
|
+
React.createElement(AntPopover, Object.assign({ title: '标题' }, rest), rest.children)));
|
14
|
+
};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ProgressProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & import("@
|
3
|
+
export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Progress as AntProgress } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function ProgressDesigner(_a
|
7
7
|
// ProgressProps & { [key: string]: any; dnd?: string; children?: React.ReactNode }
|
8
8
|
) {
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { RadioProps } from 'antd';
|
2
1
|
import React from 'react';
|
3
|
-
export declare const Radio:
|
2
|
+
export declare const Radio: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, ...rest }: {
|
3
|
+
[x: string]: any;
|
4
|
+
}) => React.JSX.Element;
|
4
5
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Omit<Omit<import("antd").RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
5
6
|
ref?: React.Ref<HTMLDivElement>;
|
6
|
-
} & import("@
|
7
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,41 +1,16 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
|
-
import { defineComponent } from '@
|
3
|
-
import { SLOT } from '@
|
2
|
+
import { defineComponent } from '@cuvp1225/boot';
|
3
|
+
import { SLOT } from '@cuvp1225/helpers';
|
4
4
|
import { Radio as AntRadio } from 'antd';
|
5
|
-
import React
|
6
|
-
|
7
|
-
|
8
|
-
//
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
popoverNode.setAttribute('data-dnd', dataDnd);
|
15
|
-
popoverNode.setAttribute('data-id', dataId);
|
16
|
-
popoverNode.setAttribute('draggable', 'true');
|
17
|
-
}
|
18
|
-
});
|
19
|
-
}, [dataDnd, dataId]);
|
20
|
-
// const { optionType } = rest;
|
21
|
-
// if (optionType === 'button') {
|
22
|
-
// return (
|
23
|
-
// <div ref={radioRef} className='.ant-radio'>
|
24
|
-
// <AntRadio.Button {...rest} style={style} >{rest.label}</AntRadio.Button>
|
25
|
-
// </div>
|
26
|
-
// );
|
27
|
-
// }
|
28
|
-
return (React.createElement(AntRadio, Object.assign({}, rest, { style: style, className: dataId, "data-dnd": dataDnd, "data-id": dataId }), children));
|
29
|
-
}
|
30
|
-
export const Radio = defineComponent(AntRadio, {
|
31
|
-
name: 'Radio',
|
32
|
-
designerConfig: {
|
33
|
-
render({ designerProps, originalProps, }) {
|
34
|
-
console.log("designerProps:", designerProps, "originalProps:", originalProps);
|
35
|
-
return React.createElement(RadioDesigner, Object.assign({}, designerProps, originalProps));
|
36
|
-
},
|
37
|
-
},
|
38
|
-
});
|
5
|
+
import React from 'react';
|
6
|
+
export const Radio = (_a) => {
|
7
|
+
//console.log("新的单选组件",dataId,dataDnd,rest);
|
8
|
+
//const newProps = {...rest, ...{draggable:true}}
|
9
|
+
//console.log("新的表格组件01",newProps);
|
10
|
+
var _b = SLOT.id, dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
|
11
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
12
|
+
React.createElement(AntRadio, Object.assign({}, rest))));
|
13
|
+
};
|
39
14
|
export const RadioGroup = defineComponent(AntRadio.Group, {
|
40
15
|
name: 'RadioGroup',
|
41
16
|
});
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { RateProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Rate: React.ForwardRefExoticComponent<Omit<RateProps & React.RefAttributes<unknown> & import("@
|
3
|
+
export declare const Rate: React.ForwardRefExoticComponent<Omit<RateProps & React.RefAttributes<unknown> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,30 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Rate as AntRate } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function RateDesigner(_a) {
|
7
7
|
var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const rateRef = useRef(null);
|
9
|
-
// 监听弹层显示事件
|
10
|
-
// const handleVisibleChange = (visible: boolean) => {
|
11
|
-
// console.log('handleVisibleChange', visible);
|
12
|
-
// if (visible) {
|
13
|
-
// // 使用微任务确保弹层已渲染
|
14
|
-
// Promise.resolve().then(() => {
|
15
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
16
|
-
// console.log('popoverNode' ,popoverNode)
|
17
|
-
// if (popoverNode) {
|
18
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
19
|
-
// popoverNode.setAttribute('data-id', dataId);
|
20
|
-
// }
|
21
|
-
// });
|
22
|
-
// }
|
23
|
-
// };
|
24
9
|
useEffect(() => {
|
25
10
|
Promise.resolve().then(() => {
|
26
11
|
const popoverNode = document.querySelector(`.${dataId}`);
|
27
|
-
console.log('rate', popoverNode);
|
28
12
|
if (popoverNode) {
|
29
13
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
30
14
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -39,7 +23,6 @@ export const Rate = defineComponent(AntRate, {
|
|
39
23
|
name: 'Rate',
|
40
24
|
designerConfig: {
|
41
25
|
render({ designerProps, originalProps }) {
|
42
|
-
console.log("Rate: designerProps:", designerProps, "originalProps:", originalProps);
|
43
26
|
return React.createElement(RateDesigner, Object.assign({ title: "\u4E00\u7EA7\u6807\u9898" }, designerProps, originalProps));
|
44
27
|
},
|
45
28
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ResultProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Result: React.ForwardRefExoticComponent<ResultProps & import("@
|
3
|
+
export declare const Result: React.ForwardRefExoticComponent<ResultProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Result as AntResult } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function ResultDesigner(_a) {
|
7
7
|
var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const resultRef = useRef(null);
|
9
9
|
useEffect(() => {
|
10
10
|
Promise.resolve().then(() => {
|
11
11
|
const popoverNode = document.querySelector(`.${dataId}`);
|
12
|
-
console.log('popoverNode', popoverNode);
|
13
12
|
if (popoverNode) {
|
14
13
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
15
14
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -39,7 +38,6 @@ export const Result = defineComponent(AntResult, {
|
|
39
38
|
name: 'Result',
|
40
39
|
designerConfig: {
|
41
40
|
render({ designerProps, originalProps }) {
|
42
|
-
console.log("Result: designerProps:", designerProps, "originalProps:", originalProps);
|
43
41
|
return React.createElement(ResultDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
|
44
42
|
},
|
45
43
|
},
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Result as AntResult } from 'antd';
|
3
3
|
import React from 'react';
|
4
|
-
import { SLOT } from '@
|
4
|
+
import { SLOT } from '@cuvp1225/helpers';
|
5
5
|
export const Result = (_a) => {
|
6
6
|
var _b = SLOT.id, dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
|
7
|
-
console.log("新的结果组件01", dataId, dataDnd, rest);
|
8
7
|
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
9
8
|
React.createElement(AntResult, Object.assign({}, rest), " ")));
|
10
9
|
};
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { ResultProps } from 'antd';
|
1
2
|
import React from 'react';
|
2
|
-
export declare const Result: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, ...rest }: {
|
3
|
-
[
|
3
|
+
export declare const Result: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: ResultProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
children?: React.ReactNode;
|
4
6
|
}) => React.JSX.Element;
|
@@ -1,9 +1,24 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Result as AntResult } from 'antd';
|
3
3
|
import React from 'react';
|
4
|
-
import { SLOT } from '
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
// export const Result =({
|
6
|
+
// [SLOT.id]:dataId,
|
7
|
+
// [SLOT.dnd]:dataDnd,
|
8
|
+
// ...rest
|
9
|
+
// })=>{
|
10
|
+
// console.log("新的结果组件02",dataId,dataDnd,rest);
|
11
|
+
// return (
|
12
|
+
// <AntResult data-dnd={dataDnd} data-id={dataId} {...rest} > </AntResult>
|
13
|
+
// )
|
14
|
+
// }
|
5
15
|
export const Result = (_a) => {
|
6
|
-
var
|
7
|
-
|
8
|
-
|
16
|
+
var
|
17
|
+
//items,
|
18
|
+
_b = SLOT.id,
|
19
|
+
//items,
|
20
|
+
dataId = _a[_b], _c = SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
21
|
+
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
22
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
23
|
+
React.createElement(AntResult, Object.assign({}, rest), rest.children)));
|
9
24
|
};
|
@@ -7,7 +7,6 @@ const ExtraButton = memo(({ extra }) => {
|
|
7
7
|
});
|
8
8
|
export const Result = (_a) => {
|
9
9
|
var { ["id"]: dataId, ["dnd"]: dataDnd, extra } = _a, rest = __rest(_a, ["id", "dnd", "extra"]);
|
10
|
-
console.log("结果组件0416001", dataId, dataDnd, extra);
|
11
10
|
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
12
11
|
React.createElement(AntResult, Object.assign({}, rest, { extra: extra ? [React.createElement(ExtraButton, { key: "btn", extra: extra })] : null }))));
|
13
12
|
};
|
@@ -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>>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import React from 'react';
|
3
3
|
import { coral } from 'coral-system';
|
4
|
-
import { defineComponent } from '@
|
4
|
+
import { defineComponent } from '@cuvp1225/boot';
|
5
5
|
import { Placeholder } from './placeholder';
|
6
|
-
import { SLOT } from '@
|
6
|
+
import { SLOT } from '@cuvp1225/helpers';
|
7
7
|
//import { ShadowContainer } from './shadow-container';
|
8
8
|
// const BaseRowWrapper = coral(
|
9
9
|
// 'div',
|
@@ -27,7 +27,6 @@ const rowStyle = {
|
|
27
27
|
// }
|
28
28
|
function RowDesigner(_a) {
|
29
29
|
var { gutter, align, justify, prefixCls, wrap, style, children } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], rest = __rest(_a, ["gutter", "align", "justify", "prefixCls", "wrap", "style", "children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + ""]);
|
30
|
-
console.log("zcq栅格行的入参", dataDnd, dataId);
|
31
30
|
const mergedStyle = React.useMemo(() => (Object.assign(Object.assign({}, rowStyle), style)), [style]);
|
32
31
|
// 缓存 dataDnd 和 dataId
|
33
32
|
const memoizedDataDnd = React.useMemo(() => dataDnd, [dataDnd]);
|
@@ -52,7 +51,6 @@ export const Row1 = defineComponent(Div, {
|
|
52
51
|
designerConfig: {
|
53
52
|
render({ designerProps, originalProps }) {
|
54
53
|
//return <RowDesigner {...designerProps} {...originalProps} />;
|
55
|
-
console.log("zcq栅格行的入参001", designerProps, originalProps);
|
56
54
|
const memoizedDesignerProps = React.useMemo(() => designerProps, [designerProps]);
|
57
55
|
const memoizedOriginalProps = React.useMemo(() => originalProps, [originalProps]);
|
58
56
|
return React.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>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import React from 'react';
|
3
3
|
import { coral } from 'coral-system';
|
4
|
-
import { defineComponent } from '@
|
4
|
+
import { defineComponent } from '@cuvp1225/boot';
|
5
5
|
//import { ShadowContainer } from './shadow-container';
|
6
6
|
// const BaseRowWrapper = coral(
|
7
7
|
// 'div',
|
@@ -34,7 +34,6 @@ function RowDesigner(_a) {
|
|
34
34
|
// }
|
35
35
|
// });
|
36
36
|
// }, []);
|
37
|
-
console.log("zcq栅格行的入参", gutter, align, justify, prefixCls, wrap, style, children);
|
38
37
|
return (React.createElement("div", { style: Object.assign(Object.assign({}, rowStyle), style) },
|
39
38
|
React.createElement("div", null, children || React.createElement("div", null, "\u62D6\u5165\u7EC4\u4EF6"))));
|
40
39
|
}
|
@@ -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>>;
|
@@ -2,7 +2,7 @@ import { __rest } from "tslib";
|
|
2
2
|
import React from 'react';
|
3
3
|
import cx from 'classnames';
|
4
4
|
import { Box } from '@cuvp1225/foundation';
|
5
|
-
import { defineComponent } from '@
|
5
|
+
import { defineComponent } from '@cuvp1225/boot';
|
6
6
|
import { Placeholder } from './placeholder';
|
7
7
|
function SectionView(_a) {
|
8
8
|
var { title, className, children } = _a, rest = __rest(_a, ["title", "className", "children"]);
|
@@ -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>>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { Select as AntSelect } from 'antd';
|
2
|
-
import { defineComponent } from '@
|
2
|
+
import { defineComponent } from '@cuvp1225/boot';
|
3
3
|
export const Select = defineComponent(AntSelect, {
|
4
4
|
name: 'Select',
|
5
5
|
registerState: {
|
6
6
|
getInitStates(_, props) {
|
7
7
|
var _a, _b;
|
8
|
-
console.log('getInitStates', props);
|
9
8
|
if (props.mode === 'multiple' || props.mode === 'tags') {
|
10
9
|
return {
|
11
10
|
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : [],
|
@@ -16,30 +15,12 @@ export const Select = defineComponent(AntSelect, {
|
|
16
15
|
value: (_b = props.defaultValue) !== null && _b !== void 0 ? _b : '',
|
17
16
|
};
|
18
17
|
}
|
19
|
-
// return {
|
20
|
-
// value: props.defaultValue ?? '',
|
21
|
-
// };
|
22
18
|
},
|
23
19
|
getTriggerProps({ setPageState, getPageState }) {
|
24
20
|
var _a;
|
25
|
-
console.log('getTriggerProps', setPageState, getPageState);
|
26
|
-
// 监听 props.mode 的变化
|
27
|
-
// const currentPageState = getPageState();
|
28
|
-
// if (props.mode === 'multiple' || props.mode === 'tags') {
|
29
|
-
// if (!Array.isArray(currentPageState?.value)) {
|
30
|
-
// // 如果 mode 是 'multiple' 或 'tags',但当前 value 不是数组,则重置 value
|
31
|
-
// setPageState({ value: props.defaultValue ?? [] });
|
32
|
-
// }
|
33
|
-
// } else {
|
34
|
-
// if (typeof currentPageState?.value !== 'string') {
|
35
|
-
// // 如果 mode 不是 'multiple' 或 'tags',但当前 value 不是字符串,则重置 value
|
36
|
-
// setPageState({ value: props.defaultValue ?? '' });
|
37
|
-
// }
|
38
|
-
// }
|
39
21
|
return {
|
40
22
|
value: (_a = getPageState()) === null || _a === void 0 ? void 0 : _a.value,
|
41
23
|
onChange(value) {
|
42
|
-
console.log('onChange', value);
|
43
24
|
setPageState({ value });
|
44
25
|
},
|
45
26
|
};
|
@@ -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>>;
|
@@ -1,30 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Skeleton as AntSkeleton } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function SkeletonDesigner(_a) {
|
7
7
|
var { children } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const skeletonRef = useRef(null);
|
9
|
-
// 监听弹层显示事件
|
10
|
-
// const handleVisibleChange = (visible: boolean) => {
|
11
|
-
// console.log('handleVisibleChange', visible);
|
12
|
-
// if (visible) {
|
13
|
-
// // 使用微任务确保弹层已渲染
|
14
|
-
// Promise.resolve().then(() => {
|
15
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
16
|
-
// console.log('popoverNode' ,popoverNode)
|
17
|
-
// if (popoverNode) {
|
18
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
19
|
-
// popoverNode.setAttribute('data-id', dataId);
|
20
|
-
// }
|
21
|
-
// });
|
22
|
-
// }
|
23
|
-
// };
|
24
9
|
useEffect(() => {
|
25
10
|
Promise.resolve().then(() => {
|
26
11
|
const popoverNode = document.querySelector(`.${dataId}`);
|
27
|
-
console.log('ant-skeleton', popoverNode);
|
28
12
|
if (popoverNode) {
|
29
13
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
30
14
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -39,7 +23,6 @@ export const Skeleton = defineComponent(AntSkeleton, {
|
|
39
23
|
name: 'Skeleton',
|
40
24
|
designerConfig: {
|
41
25
|
render({ designerProps, originalProps }) {
|
42
|
-
console.log("Skeleton: designerProps:", designerProps, "originalProps:", originalProps);
|
43
26
|
return React.createElement(SkeletonDesigner, Object.assign({}, designerProps, originalProps));
|
44
27
|
},
|
45
28
|
},
|
@@ -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>>;
|
@@ -1,30 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Slider as AntSlider } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function SliderDesigner(_a) {
|
7
7
|
var { children, title } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "title", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const rateRef = useRef(null);
|
9
|
-
// 监听弹层显示事件
|
10
|
-
// const handleVisibleChange = (visible: boolean) => {
|
11
|
-
// console.log('handleVisibleChange', visible);
|
12
|
-
// if (visible) {
|
13
|
-
// // 使用微任务确保弹层已渲染
|
14
|
-
// Promise.resolve().then(() => {
|
15
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
16
|
-
// console.log('popoverNode' ,popoverNode)
|
17
|
-
// if (popoverNode) {
|
18
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
19
|
-
// popoverNode.setAttribute('data-id', dataId);
|
20
|
-
// }
|
21
|
-
// });
|
22
|
-
// }
|
23
|
-
// };
|
24
9
|
useEffect(() => {
|
25
10
|
Promise.resolve().then(() => {
|
26
11
|
const popoverNode = document.querySelector(`.${dataId}`);
|
27
|
-
console.log('rate', popoverNode);
|
28
12
|
if (popoverNode) {
|
29
13
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
30
14
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -39,7 +23,6 @@ export const Slider = defineComponent(AntSlider, {
|
|
39
23
|
name: 'Slider',
|
40
24
|
designerConfig: {
|
41
25
|
render({ designerProps, originalProps }) {
|
42
|
-
console.log("Slider: designerProps:", designerProps, "originalProps:", originalProps);
|
43
26
|
return React.createElement(SliderDesigner, Object.assign({ title: "\u4E00\u7EA7\u6807\u9898" }, designerProps, originalProps));
|
44
27
|
},
|
45
28
|
},
|
@@ -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>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { defineComponent } from '@
|
2
|
+
import { defineComponent } from '@cuvp1225/boot';
|
3
3
|
import { Space as AntSpace } from 'antd';
|
4
4
|
import { Placeholder } from './placeholder';
|
5
5
|
export const Space = defineComponent(AntSpace, {
|
@@ -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>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Spin as AntSpin } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React, { useEffect, useRef } from 'react';
|
5
|
-
import { SLOT } from '@
|
5
|
+
import { SLOT } from '@cuvp1225/helpers';
|
6
6
|
function SpinDesigner(_a) {
|
7
7
|
var { children, spinning } = _a, _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, ["children", "spinning", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const spinRef = useRef(null);
|
9
9
|
useEffect(() => {
|
10
10
|
Promise.resolve().then(() => {
|
11
11
|
const popoverNode = document.querySelector(`.${dataId}`);
|
12
|
-
// console.log('spinNode', popoverNode);
|
13
12
|
if (popoverNode) {
|
14
13
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
15
14
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -27,7 +26,6 @@ export const Spin = defineComponent(AntSpin, {
|
|
27
26
|
name: 'Spin',
|
28
27
|
designerConfig: {
|
29
28
|
render({ designerProps, originalProps }) {
|
30
|
-
// console.log("Spin: designerProps:", designerProps, "originalProps:", originalProps);
|
31
29
|
return React.createElement(SpinDesigner, Object.assign({ spinning: true }, designerProps, originalProps));
|
32
30
|
},
|
33
31
|
},
|