@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
@@ -0,0 +1,158 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniTabs = void 0;
|
4
|
+
const common_1 = require("./common");
|
5
|
+
exports.UniTabs = {
|
6
|
+
title: '标签页',
|
7
|
+
name: 'UniTabs',
|
8
|
+
exportType: 'namedExport',
|
9
|
+
icon: 'icon-xuanxiangka',
|
10
|
+
type: 'container',
|
11
|
+
package: '@cuvp1225/antd',
|
12
|
+
help: '提供平级的区域将大块内容进行收纳和展现,保持界面整洁',
|
13
|
+
hasChildren: false,
|
14
|
+
// initChildren: `<TabPane key="1" tab="选项卡1"><Placeholder text="放置替换" style={{ margin: "15px"}} /></TabPane><TabPane key="2" tab="选项卡2"><Placeholder text="放置替换" style={{ margin: "15px" }}/></TabPane>`,
|
15
|
+
// childrenName: 'TabPane',
|
16
|
+
// relatedImports: ['TabPane'],
|
17
|
+
props: [
|
18
|
+
...common_1.StylePrototypes,
|
19
|
+
{
|
20
|
+
name: 'theme',
|
21
|
+
title: '主题',
|
22
|
+
setter: 'pickerSetter',
|
23
|
+
options: [
|
24
|
+
{ label: '红色', value: 'red' },
|
25
|
+
{ label: '蓝色', value: 'blue' },
|
26
|
+
{ label: '绿色', value: 'green' },
|
27
|
+
],
|
28
|
+
defaultValue: 'blue',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
name: 'items',
|
32
|
+
title: '标签项',
|
33
|
+
setter: 'tabPaneSetter',
|
34
|
+
initValue: [
|
35
|
+
{
|
36
|
+
key: 'item-1',
|
37
|
+
label: '标签项1',
|
38
|
+
forceRender: false,
|
39
|
+
disabled: false,
|
40
|
+
children: `{{<div><Placeholder text="放置替换" style={{ margin: "15px"}} /></div>}}`,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
key: 'item-2',
|
44
|
+
label: '标签项2',
|
45
|
+
forceRender: false,
|
46
|
+
disabled: false,
|
47
|
+
// children: '选项卡2',
|
48
|
+
children: `{{<div><Placeholder text="放置替换" style={{ margin: "15px"}} /></div>}}`,
|
49
|
+
},
|
50
|
+
]
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: 'defaultActiveKey',
|
54
|
+
title: '默认选中的面板',
|
55
|
+
setter: 'textSetter',
|
56
|
+
// initValue: null,
|
57
|
+
},
|
58
|
+
{
|
59
|
+
name: 'centered',
|
60
|
+
title: '标签是否居中',
|
61
|
+
setter: 'boolSetter',
|
62
|
+
},
|
63
|
+
{
|
64
|
+
name: 'type',
|
65
|
+
title: '选项卡外观',
|
66
|
+
setter: 'pickerSetter',
|
67
|
+
options: [
|
68
|
+
{ label: '基本', value: 'line' },
|
69
|
+
{ label: '卡片', value: 'card' },
|
70
|
+
{ label: '可编辑卡片', value: 'editable-card' },
|
71
|
+
// { label: '胶囊', value: 'capsule' },
|
72
|
+
// { label: '文本', value: 'text' },
|
73
|
+
],
|
74
|
+
},
|
75
|
+
{
|
76
|
+
name: 'size',
|
77
|
+
title: '选项卡大小',
|
78
|
+
setter: 'choiceSetter',
|
79
|
+
options: [
|
80
|
+
{ label: '大', value: 'large' },
|
81
|
+
{ label: '中', value: 'middle' },
|
82
|
+
{ label: '小', value: 'small' },
|
83
|
+
],
|
84
|
+
tip: '提供large、middle和small三种大小',
|
85
|
+
},
|
86
|
+
{
|
87
|
+
name: 'tabPosition',
|
88
|
+
title: '选项卡位置',
|
89
|
+
setter: 'choiceSetter',
|
90
|
+
options: [
|
91
|
+
{ label: '上', value: 'top' },
|
92
|
+
{ label: '右', value: 'right' },
|
93
|
+
{ label: '下', value: 'bottom' },
|
94
|
+
{ label: '左', value: 'left' },
|
95
|
+
],
|
96
|
+
},
|
97
|
+
{
|
98
|
+
name: 'hideAdd',
|
99
|
+
title: '是否隐藏加号图标',
|
100
|
+
tip: '仅在选项卡类型为可编辑卡片时有效',
|
101
|
+
setter: 'boolSetter',
|
102
|
+
getVisible: (form) => form.getValue('type') === 'editable-card',
|
103
|
+
},
|
104
|
+
{
|
105
|
+
name: 'onChange',
|
106
|
+
title: '当面板切换时',
|
107
|
+
setter: 'expressionSetter',
|
108
|
+
group: 'event',
|
109
|
+
autoCompleteOptions: ['(activeKey)=>{}'],
|
110
|
+
},
|
111
|
+
{
|
112
|
+
name: 'onEdit',
|
113
|
+
title: '新增和删除页签的回调',
|
114
|
+
tip: '仅在选项卡类型为可编辑卡片时有效',
|
115
|
+
setter: 'expressionSetter',
|
116
|
+
group: 'event',
|
117
|
+
// autoCompleteOptions: ["(action === 'add' ? event : targetKey, action): void"],
|
118
|
+
getVisible: (form) => form.getValue('type') === 'editable-card',
|
119
|
+
},
|
120
|
+
{
|
121
|
+
name: 'tabBarExtraContent',
|
122
|
+
title: 'tab bar 上额外的元素',
|
123
|
+
setter: 'jsxSetter',
|
124
|
+
group: 'advanced',
|
125
|
+
},
|
126
|
+
{
|
127
|
+
name: 'destroyInactiveTabPane',
|
128
|
+
title: '被隐藏时是否销毁 DOM 结构',
|
129
|
+
setter: 'boolSetter',
|
130
|
+
group: 'advanced',
|
131
|
+
},
|
132
|
+
{
|
133
|
+
name: 'tabBarGutter',
|
134
|
+
title: 'tabs 之间的间隙',
|
135
|
+
setter: 'numberSetter',
|
136
|
+
group: 'advanced',
|
137
|
+
},
|
138
|
+
],
|
139
|
+
};
|
140
|
+
// export const TabPane: ComponentPrototypeType = {
|
141
|
+
// title: '选项卡面板',
|
142
|
+
// name: 'TabPane',
|
143
|
+
// exportType: 'namedExport',
|
144
|
+
// icon: 'icon-xuanxiangka',
|
145
|
+
// type: 'container',
|
146
|
+
// package: '@cuvp1225/antd',
|
147
|
+
// hasChildren: true,
|
148
|
+
// props: [
|
149
|
+
// ...StylePrototypes,
|
150
|
+
// { name: 'key', title: '选项卡标识', setter: 'textSetter', autoInitValue: true, },
|
151
|
+
// { name: 'tab', title: '选项卡标题', setter: 'textSetter', initValue: '选项卡' },
|
152
|
+
// {
|
153
|
+
// name: 'forceRender',
|
154
|
+
// title: '被隐藏时是否渲染 DOM 结构',
|
155
|
+
// setter: 'boolSetter',
|
156
|
+
// },
|
157
|
+
// ],
|
158
|
+
// };
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
2
|
export declare const When: ComponentPrototypeType;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AffixProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Affix: React.ForwardRefExoticComponent<AffixProps & import("@
|
3
|
+
export declare const Affix: React.ForwardRefExoticComponent<AffixProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Affix as AntAffix } from 'antd';
|
3
|
-
import { defineComponent } from '@
|
3
|
+
import { defineComponent } from '@cuvp1225/boot';
|
4
4
|
import React from 'react';
|
5
5
|
import { Placeholder } from './placeholder';
|
6
6
|
function AffixDesigner(_a) {
|
7
7
|
var { children, style } = _a, rest = __rest(_a, ["children", "style"]);
|
8
|
-
console.log("affix designer,", children, style, rest);
|
9
8
|
return (React.createElement(AntAffix, Object.assign({}, rest, { style: style }), children));
|
10
9
|
}
|
11
10
|
export const Affix = defineComponent(AntAffix, {
|
@@ -15,7 +14,6 @@ export const Affix = defineComponent(AntAffix, {
|
|
15
14
|
children: React.createElement(Placeholder, null),
|
16
15
|
},
|
17
16
|
render({ designerProps, originalProps, }) {
|
18
|
-
console.log("affix,", designerProps, originalProps);
|
19
17
|
return React.createElement(AffixDesigner, Object.assign({ children: React.createElement("div", null,
|
20
18
|
React.createElement(Placeholder, null)) }, designerProps, originalProps));
|
21
19
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AlertProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & import("@
|
3
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Alert as AntAlert } 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 AlertDesigner(_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
|
useEffect(() => {
|
9
9
|
Promise.resolve().then(() => {
|
10
10
|
const popoverNode = document.querySelector(`.${dataId}`);
|
11
|
-
// console.log('spinNode', popoverNode);
|
12
11
|
if (popoverNode) {
|
13
12
|
popoverNode.setAttribute('data-dnd', dataDnd);
|
14
13
|
popoverNode.setAttribute('data-id', dataId);
|
@@ -22,7 +21,6 @@ export const Alert = defineComponent(AntAlert, {
|
|
22
21
|
name: 'Alert',
|
23
22
|
designerConfig: {
|
24
23
|
render({ designerProps, originalProps }) {
|
25
|
-
// console.log("Alert: designerProps:", designerProps, "originalProps:", originalProps);
|
26
24
|
return React.createElement(AlertDesigner, Object.assign({}, designerProps, originalProps));
|
27
25
|
}
|
28
26
|
}
|
@@ -1,3 +1,16 @@
|
|
1
|
-
import { AnchorProps } from 'antd';
|
1
|
+
import { AnchorProps, AnchorLinkProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Anchor:
|
3
|
+
export declare const Anchor: {
|
4
|
+
({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: AnchorProps & {
|
5
|
+
[key: string]: any;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}): React.JSX.Element;
|
8
|
+
Link: (props: AnchorLinkProps & {
|
9
|
+
[key: string]: any;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
}) => React.JSX.Element;
|
12
|
+
};
|
13
|
+
export declare const AnchorLink: (props: AnchorLinkProps & {
|
14
|
+
[key: string]: any;
|
15
|
+
children?: React.ReactNode;
|
16
|
+
}) => React.JSX.Element;
|
@@ -1,44 +1,17 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Anchor as AntAnchor } from 'antd';
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}, [dataDnd, dataId]);
|
21
|
-
//递归遍历生成子节点
|
22
|
-
const renderLinks = (items) => {
|
23
|
-
return items.map((item) => {
|
24
|
-
const { key, href, title, children } = item;
|
25
|
-
// 如果有子节点,则递归渲染
|
26
|
-
if (children) {
|
27
|
-
return (React.createElement(Link, { key: key, href: href, title: title }, renderLinks(children)));
|
28
|
-
}
|
29
|
-
// 没有子节点的情况
|
30
|
-
return React.createElement(Link, { key: key, href: href, title: title });
|
31
|
-
});
|
32
|
-
};
|
33
|
-
return (React.createElement("div", { ref: anchorRef, draggable: 'true' },
|
34
|
-
React.createElement(AntAnchor, Object.assign({ className: dataId, "data-dnd": dataDnd, "data-id": dataId, style: style }, rest), renderLinks(items))));
|
35
|
-
}
|
36
|
-
export const Anchor = defineComponent(AntAnchor, {
|
37
|
-
name: 'Anchor',
|
38
|
-
designerConfig: {
|
39
|
-
render({ designerProps, originalProps }) {
|
40
|
-
console.log("Anchor: designerProps:", designerProps, "originalProps:", originalProps);
|
41
|
-
return React.createElement(AnchorDesigner, Object.assign({}, designerProps, originalProps));
|
42
|
-
},
|
43
|
-
},
|
44
|
-
});
|
3
|
+
import React from 'react';
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
export const Anchor = (_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
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
12
|
+
React.createElement(AntAnchor, Object.assign({}, rest), rest.children)));
|
13
|
+
};
|
14
|
+
export const AnchorLink = (props) => {
|
15
|
+
return (React.createElement(AntAnchor.Link, Object.assign({}, props)));
|
16
|
+
};
|
17
|
+
Anchor.Link = AnchorLink;
|
@@ -4,4 +4,4 @@ export declare const AutoComplete: React.ForwardRefExoticComponent<Omit<AutoComp
|
|
4
4
|
children?: React.ReactNode;
|
5
5
|
} & {
|
6
6
|
ref?: React.Ref<import("antd").RefSelectProps> | undefined;
|
7
|
-
} & import("@
|
7
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { AutoComplete as AntAutoComplete } 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 AutoCompleteDesigner(_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 autocompleteRef = 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);
|
@@ -24,7 +23,6 @@ export const AutoComplete = defineComponent(AntAutoComplete, {
|
|
24
23
|
name: 'AutoComplete',
|
25
24
|
designerConfig: {
|
26
25
|
render({ designerProps, originalProps }) {
|
27
|
-
// console.log("AutoComplete: designerProps:", designerProps, "originalProps:", originalProps);
|
28
26
|
return React.createElement(AutoCompleteDesigner, Object.assign({}, designerProps, originalProps));
|
29
27
|
}
|
30
28
|
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { AvatarProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps & React.RefAttributes<HTMLSpanElement> & import("@
|
3
|
+
export declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps & React.RefAttributes<HTMLSpanElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Avatar as AntAvatar } 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 AvatarDesigner(_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 avatarRef = 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);
|
@@ -24,7 +23,6 @@ export const Avatar = defineComponent(AntAvatar, {
|
|
24
23
|
name: 'Avatar',
|
25
24
|
designerConfig: {
|
26
25
|
render({ designerProps, originalProps }) {
|
27
|
-
// console.log("Avatar: designerProps:", designerProps, "originalProps:", originalProps);
|
28
26
|
return React.createElement(AvatarDesigner, Object.assign({}, designerProps, originalProps));
|
29
27
|
}
|
30
28
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { __rest } from "tslib";
|
2
|
+
import { BackTop as AntBackTop } from 'antd';
|
3
|
+
import React from 'react';
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
export const BackTop = (_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
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
12
|
+
React.createElement(AntBackTop, Object.assign({}, rest), rest.children)));
|
13
|
+
};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { BadgeProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & import("@
|
3
|
+
export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Badge as AntBadge } 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 BadgeDesigner(_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 badgeRef = 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);
|
@@ -18,16 +17,12 @@ function BadgeDesigner(_a) {
|
|
18
17
|
});
|
19
18
|
}, [dataDnd, dataId]);
|
20
19
|
return (React.createElement("div", { ref: badgeRef },
|
21
|
-
React.createElement(AntBadge, Object.assign({ className: dataId,
|
22
|
-
// data-dnd={dataDnd}
|
23
|
-
// data-id={dataId}
|
24
|
-
style: style }, rest), children)));
|
20
|
+
React.createElement(AntBadge, Object.assign({ className: dataId, style: style }, rest), children)));
|
25
21
|
}
|
26
22
|
export const Badge = defineComponent(AntBadge, {
|
27
23
|
name: 'Badge',
|
28
24
|
designerConfig: {
|
29
25
|
render({ designerProps, originalProps }) {
|
30
|
-
// console.log("Badge: designerProps:", designerProps, "originalProps:", originalProps);
|
31
26
|
return React.createElement(BadgeDesigner, Object.assign({}, designerProps, originalProps));
|
32
27
|
}
|
33
28
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare const Box: React.ForwardRefExoticComponent<Omit<import("coral-system/dist/esm/types").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@cuvp1225/foundation").BoxProps> & import("@cuvp1225/foundation").BoxProps & import("coral-system/dist/esm/types").OmitCommonProps<any, keyof import("@cuvp1225/foundation").BoxProps> & {
|
3
3
|
as?: import("coral-system/dist/esm/types").As<any>;
|
4
|
-
} & import("@
|
4
|
+
} & import("@cuvp1225/boot").TangoComponentProps, "ref"> & 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 { Box as BaseBox } from '@cuvp1225/foundation';
|
4
4
|
import { Placeholder } from './placeholder';
|
5
5
|
export const Box = defineComponent(BaseBox, {
|
@@ -1,2 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { BreadcrumbProps, BreadcrumbItemProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const Breadcrumb: {
|
4
|
+
({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: BreadcrumbProps & {
|
5
|
+
[key: string]: any;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}): React.JSX.Element;
|
8
|
+
Item: (props: BreadcrumbItemProps & {
|
9
|
+
[key: string]: any;
|
10
|
+
children?: React.ReactNode;
|
11
|
+
}) => React.JSX.Element;
|
12
|
+
};
|
13
|
+
export declare const BreadcrumbItem: (props: BreadcrumbItemProps & {
|
14
|
+
[key: string]: any;
|
15
|
+
children?: React.ReactNode;
|
16
|
+
}) => React.JSX.Element;
|
@@ -1,8 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { __rest } from "tslib";
|
2
2
|
import { Breadcrumb as AntBreadcrumb } from 'antd';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
import React from 'react';
|
4
|
+
import { SLOT } from '../helpers/slottype';
|
5
|
+
export const Breadcrumb = (_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
|
+
return (React.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
12
|
+
React.createElement(AntBreadcrumb, Object.assign({}, rest), rest.children)));
|
13
|
+
};
|
14
|
+
export const BreadcrumbItem = (props) => {
|
15
|
+
return (React.createElement(AntBreadcrumb.Item, Object.assign({}, props)));
|
16
|
+
};
|
17
|
+
Breadcrumb.Item = BreadcrumbItem;
|
@@ -2,8 +2,8 @@ export declare const Button: import("react").ForwardRefExoticComponent<Omit<Part
|
|
2
2
|
href: string;
|
3
3
|
target?: string;
|
4
4
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
5
|
-
} & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "
|
5
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "onClick" | "type"> & {
|
6
6
|
htmlType?: import("antd/lib/button/button").ButtonHTMLType;
|
7
7
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
8
|
-
} & Omit<import("react").ButtonHTMLAttributes<any>, "
|
9
|
-
export declare const ButtonGroup: import("react").ForwardRefExoticComponent<import("antd/lib/button").ButtonGroupProps & import("@
|
8
|
+
} & Omit<import("react").ButtonHTMLAttributes<any>, "onClick" | "type">> & import("react").RefAttributes<HTMLElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & import("react").RefAttributes<unknown>>;
|
9
|
+
export declare const ButtonGroup: import("react").ForwardRefExoticComponent<import("antd/lib/button").ButtonGroupProps & import("@cuvp1225/boot").TangoComponentProps & import("react").RefAttributes<unknown>>;
|
@@ -1,30 +1,4 @@
|
|
1
|
-
|
2
|
-
// import { Button as AntButton } from 'antd';
|
3
|
-
// import React from 'react';
|
4
|
-
// import SmileOutlined from '@ant-design/icons/SmileOutlined';
|
5
|
-
// import { Placeholder } from './placeholder';
|
6
|
-
// function ButtonDesigner({
|
7
|
-
// children,
|
8
|
-
// style,
|
9
|
-
// icon,
|
10
|
-
// ...rest
|
11
|
-
// }: any) {
|
12
|
-
// return (
|
13
|
-
// <AntButton {...rest} style={style} icon={icon || <SmileOutlined/>}/>
|
14
|
-
// );
|
15
|
-
// }
|
16
|
-
// export const Button = defineComponent(AntButton, {
|
17
|
-
// name: 'Button',
|
18
|
-
// designerConfig: {
|
19
|
-
// render({ designerProps, originalProps }) {
|
20
|
-
// return <ButtonDesigner {...designerProps} {...originalProps} />;
|
21
|
-
// },
|
22
|
-
// },
|
23
|
-
// });
|
24
|
-
// export const ButtonGroup = defineComponent(AntButton.Group, {
|
25
|
-
// name: 'ButtonGroup',
|
26
|
-
// });
|
27
|
-
import { defineComponent } from '@music163/tango-boot';
|
1
|
+
import { defineComponent } from '@cuvp1225/boot';
|
28
2
|
import { Button as AntButton } from 'antd';
|
29
3
|
export const Button = defineComponent(AntButton, {
|
30
4
|
name: 'Button',
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { CalendarProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps<import("moment").Moment> & import("@
|
3
|
+
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps<import("moment").Moment> & import("@cuvp1225/boot").TangoComponentProps & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Calendar as AntCalendar } 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 CalendarDesigner(_a) {
|
7
7
|
var _b = SLOT.dnd, dataDnd = _a[_b], _c = SLOT.id, dataId = _a[_c], { style } = _a, rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
8
8
|
const calendarRef = 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);
|
@@ -24,7 +23,6 @@ export const Calendar = defineComponent(AntCalendar, {
|
|
24
23
|
name: 'Calendar',
|
25
24
|
designerConfig: {
|
26
25
|
render({ designerProps, originalProps }) {
|
27
|
-
console.log("Calendar: designerProps:", designerProps, "originalProps:", originalProps);
|
28
26
|
return React.createElement(CalendarDesigner, Object.assign({}, designerProps, originalProps));
|
29
27
|
},
|
30
28
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { CardProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps & React.RefAttributes<HTMLDivElement> & import("@
|
3
|
+
export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps & React.RefAttributes<HTMLDivElement> & import("@cuvp1225/boot").TangoComponentProps, "ref"> & React.RefAttributes<unknown>>;
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { __rest } from "tslib";
|
2
2
|
import { Card as AntCard } 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 CardDesigner(_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 cardRef = 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);
|
@@ -24,7 +23,6 @@ export const Card = defineComponent(AntCard, {
|
|
24
23
|
name: 'Card',
|
25
24
|
designerConfig: {
|
26
25
|
render({ designerProps, originalProps }) {
|
27
|
-
// console.log("Card: designerProps:", designerProps, "originalProps:", originalProps);
|
28
26
|
return React.createElement(CardDesigner, Object.assign({}, designerProps, originalProps));
|
29
27
|
}
|
30
28
|
}
|