@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,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniCascader = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
7
|
+
const slottype_1 = require("../../helpers/slottype");
|
8
|
+
const UniCascader = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
10
|
+
const redCss = `
|
11
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
12
|
+
color: #c20000;
|
13
|
+
background: #fff3f3
|
14
|
+
}
|
15
|
+
|
16
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
17
|
+
color: #c20000;
|
18
|
+
background: #fff3f3
|
19
|
+
}
|
20
|
+
`;
|
21
|
+
const blueCss = `
|
22
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
23
|
+
color: #1890ff;
|
24
|
+
background: #e6f7ff
|
25
|
+
}
|
26
|
+
|
27
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
28
|
+
color: #1890ff;
|
29
|
+
background: #e6f7ff
|
30
|
+
}`;
|
31
|
+
const greenCss = `
|
32
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
33
|
+
color: #17c60e;
|
34
|
+
background: #f6ffed
|
35
|
+
}
|
36
|
+
|
37
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
38
|
+
color: #17c60e;
|
39
|
+
background: #f6ffed
|
40
|
+
}
|
41
|
+
`;
|
42
|
+
(0, react_1.useEffect)(() => {
|
43
|
+
const allow = ['blue', 'green', 'red'];
|
44
|
+
if (allow.includes(theme)) {
|
45
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
46
|
+
const style = document.createElement('style');
|
47
|
+
style.innerHTML = css;
|
48
|
+
document.head.appendChild(style);
|
49
|
+
}
|
50
|
+
}, [theme]);
|
51
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
52
|
+
react_1.default.createElement(antd_1.Cascader, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, dropdownClassName: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, style: style }, rest))));
|
53
|
+
};
|
54
|
+
exports.UniCascader = UniCascader;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ModalProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const UniModal: {
|
4
|
+
({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, children, style, theme, ...rest }: ModalProps & {
|
5
|
+
[key: string]: any;
|
6
|
+
dnd?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
}): React.JSX.Element;
|
9
|
+
info: import("antd/lib/modal/confirm").ModalFunc;
|
10
|
+
success: import("antd/lib/modal/confirm").ModalFunc;
|
11
|
+
error: import("antd/lib/modal/confirm").ModalFunc;
|
12
|
+
warning: import("antd/lib/modal/confirm").ModalFunc;
|
13
|
+
confirm: import("antd/lib/modal/confirm").ModalFunc;
|
14
|
+
};
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniModal = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
7
|
+
const slottype_1 = require("../../helpers/slottype");
|
8
|
+
const UniModal = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { children, style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "children", "style", "theme"]);
|
10
|
+
// 主题样式定义
|
11
|
+
const redCss = `
|
12
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
13
|
+
background: #B20000;
|
14
|
+
border-color: #B20000;
|
15
|
+
}
|
16
|
+
`;
|
17
|
+
const blueCss = `
|
18
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
19
|
+
background: #1890ff;
|
20
|
+
border-color: #1890ff;
|
21
|
+
}
|
22
|
+
`;
|
23
|
+
const greenCss = `
|
24
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
25
|
+
background: #17c60e;
|
26
|
+
border-color: #17c60e;
|
27
|
+
}
|
28
|
+
`;
|
29
|
+
(0, react_1.useEffect)(() => {
|
30
|
+
const allow = ['blue', 'green', 'red'];
|
31
|
+
if (allow.includes(theme)) {
|
32
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
33
|
+
const style = document.createElement('style');
|
34
|
+
style.innerHTML = css;
|
35
|
+
document.head.appendChild(style);
|
36
|
+
}
|
37
|
+
}, [theme]);
|
38
|
+
return (react_1.default.createElement(antd_1.Modal, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, style: style }, rest), children));
|
39
|
+
};
|
40
|
+
exports.UniModal = UniModal;
|
41
|
+
// 导出静态方法以支持 Modal.info() 等调用方式
|
42
|
+
exports.UniModal.info = antd_1.Modal.info;
|
43
|
+
exports.UniModal.success = antd_1.Modal.success;
|
44
|
+
exports.UniModal.error = antd_1.Modal.error;
|
45
|
+
exports.UniModal.warning = antd_1.Modal.warning;
|
46
|
+
exports.UniModal.confirm = antd_1.Modal.confirm;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { RadioProps, RadioGroupProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const UniRadio: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: RadioProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
dnd?: string;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}) => React.JSX.Element;
|
8
|
+
export declare const UniRadioGroup: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: RadioGroupProps & {
|
9
|
+
[key: string]: any;
|
10
|
+
dnd?: string;
|
11
|
+
children?: React.ReactNode;
|
12
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,133 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniRadioGroup = exports.UniRadio = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const slottype_1 = require("../../helpers/slottype");
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
+
const UniRadio = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
10
|
+
const redCss = `
|
11
|
+
/* 悬停时圆圈变红 */
|
12
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
13
|
+
border-color: #B30000 !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* 选中状态 - 边框变红 */
|
17
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
18
|
+
border-color: #B30000 !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* 选中状态 - 中心点变红(覆盖整个内圆) */
|
22
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
23
|
+
background-color: #B30000 !important;
|
24
|
+
}
|
25
|
+
`;
|
26
|
+
const blueCss = `
|
27
|
+
/* 悬停时圆圈变蓝 */
|
28
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
29
|
+
border-color: #1890ff !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
/* 选中状态 - 边框变蓝 */
|
33
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
34
|
+
border-color: #1890ff !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* 选中状态 - 中心点变蓝(覆盖整个内圆) */
|
38
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
39
|
+
background-color: #1890ff !important;
|
40
|
+
}
|
41
|
+
`;
|
42
|
+
const greenCss = `
|
43
|
+
/* 悬停时圆圈变绿 */
|
44
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
45
|
+
border-color: #17c60e !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* 选中状态 - 边框变绿 */
|
49
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
50
|
+
border-color: #17c60e !important;
|
51
|
+
}
|
52
|
+
|
53
|
+
/* 选中状态 - 中心点变绿(覆盖整个内圆) */
|
54
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
55
|
+
background-color: #17c60e !important;
|
56
|
+
}
|
57
|
+
`;
|
58
|
+
(0, react_1.useEffect)(() => {
|
59
|
+
const allow = ['blue', 'green', 'red'];
|
60
|
+
if (allow.includes(theme)) {
|
61
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
62
|
+
const style = document.createElement('style');
|
63
|
+
style.innerHTML = css;
|
64
|
+
document.head.appendChild(style);
|
65
|
+
}
|
66
|
+
}, [theme]);
|
67
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
68
|
+
react_1.default.createElement(antd_1.Radio, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest))));
|
69
|
+
};
|
70
|
+
exports.UniRadio = UniRadio;
|
71
|
+
const UniRadioGroup = (_a) => {
|
72
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
73
|
+
const redCss = `
|
74
|
+
/* 悬停时圆圈变红 */
|
75
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
76
|
+
border-color: #B30000 !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
/* 选中状态 - 边框变红 */
|
80
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
81
|
+
border-color: #B30000 !important;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* 选中状态 - 中心点变红(覆盖整个内圆) */
|
85
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
86
|
+
background-color: #B30000 !important;
|
87
|
+
}
|
88
|
+
`;
|
89
|
+
const blueCss = `
|
90
|
+
/* 悬停时圆圈变蓝 */
|
91
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
92
|
+
border-color: #1890ff !important;
|
93
|
+
}
|
94
|
+
|
95
|
+
/* 选中状态 - 边框变蓝 */
|
96
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
97
|
+
border-color: #1890ff !important;
|
98
|
+
}
|
99
|
+
|
100
|
+
/* 选中状态 - 中心点变蓝(覆盖整个内圆) */
|
101
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
102
|
+
background-color: #1890ff !important;
|
103
|
+
}
|
104
|
+
`;
|
105
|
+
const greenCss = `
|
106
|
+
/* 悬停时圆圈变绿 */
|
107
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
108
|
+
border-color: #17c60e !important;
|
109
|
+
}
|
110
|
+
|
111
|
+
/* 选中状态 - 边框变绿 */
|
112
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
113
|
+
border-color: #17c60e !important;
|
114
|
+
}
|
115
|
+
|
116
|
+
/* 选中状态 - 中心点变绿(覆盖整个内圆) */
|
117
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
118
|
+
background-color: #17c60e !important;
|
119
|
+
}
|
120
|
+
`;
|
121
|
+
(0, react_1.useEffect)(() => {
|
122
|
+
const allow = ['blue', 'green', 'red'];
|
123
|
+
if (allow.includes(theme)) {
|
124
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
125
|
+
const style = document.createElement('style');
|
126
|
+
style.innerHTML = css;
|
127
|
+
document.head.appendChild(style);
|
128
|
+
}
|
129
|
+
}, [theme]);
|
130
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
131
|
+
react_1.default.createElement(antd_1.Radio.Group, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
|
132
|
+
};
|
133
|
+
exports.UniRadioGroup = UniRadioGroup;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SelectProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const UniSelect: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: SelectProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
dnd?: string;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniSelect = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
7
|
+
const slottype_1 = require("../../helpers/slottype");
|
8
|
+
const UniSelect = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
10
|
+
const redCss = `
|
11
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
12
|
+
color: #B30000;
|
13
|
+
background: #fff3f3
|
14
|
+
}
|
15
|
+
`;
|
16
|
+
const blueCss = `
|
17
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
18
|
+
color: #1890ff;
|
19
|
+
background: #e6f7ff
|
20
|
+
}
|
21
|
+
`;
|
22
|
+
const greenCss = `
|
23
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
24
|
+
color: #17c60e;
|
25
|
+
background: #f6ffed
|
26
|
+
}
|
27
|
+
`;
|
28
|
+
(0, react_1.useEffect)(() => {
|
29
|
+
const allow = ['blue', 'green', 'red'];
|
30
|
+
if (allow.includes(theme)) {
|
31
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
32
|
+
const style = document.createElement('style');
|
33
|
+
style.innerHTML = css;
|
34
|
+
document.head.appendChild(style);
|
35
|
+
}
|
36
|
+
}, [theme]);
|
37
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
38
|
+
react_1.default.createElement(antd_1.Select
|
39
|
+
// className={`uni-${dataId}`}
|
40
|
+
, Object.assign({
|
41
|
+
// className={`uni-${dataId}`}
|
42
|
+
className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, dropdownClassName: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, style: style }, rest))));
|
43
|
+
};
|
44
|
+
exports.UniSelect = UniSelect;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SwitchProps } from "antd";
|
2
|
+
import React from 'react';
|
3
|
+
export declare const UniSwitch: ({ [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: SwitchProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
dnd?: string;
|
6
|
+
children?: React.ReactNode;
|
7
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniSwitch = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const slottype_1 = require("../../helpers/slottype");
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
8
|
+
const UniSwitch = (_a) => {
|
9
|
+
var _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
10
|
+
const redCss = `
|
11
|
+
/* 根据tid定制Switch组件样式 */
|
12
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
13
|
+
background-color: #B30000;
|
14
|
+
}
|
15
|
+
`;
|
16
|
+
const blueCss = `
|
17
|
+
/* 根据tid定制Switch组件样式 */
|
18
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
19
|
+
background-color: #1890ff;
|
20
|
+
}
|
21
|
+
`;
|
22
|
+
const greenCss = `
|
23
|
+
/* 根据tid定制Switch组件样式 */
|
24
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
25
|
+
background-color: #17c60e;
|
26
|
+
}
|
27
|
+
`;
|
28
|
+
(0, react_1.useEffect)(() => {
|
29
|
+
const allow = ['blue', 'green', 'red'];
|
30
|
+
if (allow.includes(theme)) {
|
31
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
32
|
+
const style = document.createElement('style');
|
33
|
+
style.innerHTML = css;
|
34
|
+
document.head.appendChild(style);
|
35
|
+
}
|
36
|
+
}, [theme]);
|
37
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
38
|
+
react_1.default.createElement(antd_1.Switch, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest))));
|
39
|
+
};
|
40
|
+
exports.UniSwitch = UniSwitch;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { TabsProps, TabPaneProps } from 'antd';
|
2
|
+
import React from 'react';
|
3
|
+
export declare const UniTabs: {
|
4
|
+
({ children, [SLOT.dnd]: dataDnd, [SLOT.id]: dataId, style, theme, ...rest }: TabsProps & {
|
5
|
+
[key: string]: any;
|
6
|
+
dnd?: string;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
}): React.JSX.Element;
|
9
|
+
TabPane: (props: TabPaneProps & {
|
10
|
+
[key: string]: any;
|
11
|
+
children?: React.ReactNode;
|
12
|
+
}) => React.JSX.Element;
|
13
|
+
};
|
14
|
+
export declare const UniTabsPane: (props: TabPaneProps & {
|
15
|
+
[key: string]: any;
|
16
|
+
children?: React.ReactNode;
|
17
|
+
}) => React.JSX.Element;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniTabsPane = exports.UniTabs = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
7
|
+
const slottype_1 = require("../../helpers/slottype");
|
8
|
+
const UniTabs = (_a) => {
|
9
|
+
var { children } = _a, _b = slottype_1.SLOT.dnd, dataDnd = _a[_b], _c = slottype_1.SLOT.id, dataId = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, ["children", typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
10
|
+
const redCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
11
|
+
background: #C20000;
|
12
|
+
}
|
13
|
+
|
14
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
15
|
+
color: #C20000;
|
16
|
+
font-size: "16px";
|
17
|
+
font-weight: 600;
|
18
|
+
line-height: "24px";
|
19
|
+
letter-spacing: "0px";
|
20
|
+
text-align: left;
|
21
|
+
}
|
22
|
+
|
23
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
24
|
+
color: #C20000;
|
25
|
+
}
|
26
|
+
|
27
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
28
|
+
color: #C20000;
|
29
|
+
}
|
30
|
+
`;
|
31
|
+
const blueCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
32
|
+
background: #1890ff;
|
33
|
+
}
|
34
|
+
|
35
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
36
|
+
color: #1890ff;
|
37
|
+
font-size: "16px";
|
38
|
+
font-weight: 600;
|
39
|
+
line-height: "24px";
|
40
|
+
letter-spacing: "0px";
|
41
|
+
text-align: left;
|
42
|
+
}
|
43
|
+
|
44
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
45
|
+
color: #1890ff;
|
46
|
+
}
|
47
|
+
|
48
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
49
|
+
color: #1890ff;
|
50
|
+
}`;
|
51
|
+
const greenCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
52
|
+
background: #17c60e;
|
53
|
+
}
|
54
|
+
|
55
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
56
|
+
color: #17c60e;
|
57
|
+
font-size: "16px";
|
58
|
+
font-weight: 600;
|
59
|
+
line-height: "24px";
|
60
|
+
letter-spacing: "0px";
|
61
|
+
text-align: left;
|
62
|
+
}
|
63
|
+
|
64
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
65
|
+
color: #17c60e;
|
66
|
+
}
|
67
|
+
|
68
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
69
|
+
color: #17c60e;
|
70
|
+
}`;
|
71
|
+
(0, react_1.useEffect)(() => {
|
72
|
+
const allow = ['blue', 'green', 'red'];
|
73
|
+
if (allow.includes(theme)) {
|
74
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
75
|
+
const style = document.createElement('style');
|
76
|
+
style.innerHTML = css;
|
77
|
+
document.head.appendChild(style);
|
78
|
+
}
|
79
|
+
}, [theme]);
|
80
|
+
return (react_1.default.createElement(antd_1.Tabs, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style }, rest), children));
|
81
|
+
};
|
82
|
+
exports.UniTabs = UniTabs;
|
83
|
+
const UniTabsPane = (props) => {
|
84
|
+
return (react_1.default.createElement(antd_1.Tabs.TabPane, Object.assign({}, props), props.children));
|
85
|
+
};
|
86
|
+
exports.UniTabsPane = UniTabsPane;
|
87
|
+
exports.UniTabs.TabPane = exports.UniTabsPane;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UniUpload = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const antd_1 = require("antd");
|
6
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
7
|
+
const slottype_1 = require("../../helpers/slottype");
|
8
|
+
const UniUpload = (_a) => {
|
9
|
+
var
|
10
|
+
//items,
|
11
|
+
_b = slottype_1.SLOT.id,
|
12
|
+
//items,
|
13
|
+
dataId = _a[_b], _c = slottype_1.SLOT.dnd, dataDnd = _a[_c], { style, theme } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style", "theme"]);
|
14
|
+
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
15
|
+
const redCss = `
|
16
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
17
|
+
color: #fff;
|
18
|
+
border-color: #B20000;
|
19
|
+
background: #B20000;
|
20
|
+
}
|
21
|
+
`;
|
22
|
+
const blueCss = `
|
23
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
24
|
+
color: #fff;
|
25
|
+
border-color: #1890ff;
|
26
|
+
background: #1890ff;
|
27
|
+
}
|
28
|
+
`;
|
29
|
+
const greenCss = `
|
30
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
31
|
+
color: #fff;
|
32
|
+
border-color: #17c60e;
|
33
|
+
background: #17c60e;
|
34
|
+
}
|
35
|
+
`;
|
36
|
+
(0, react_1.useEffect)(() => {
|
37
|
+
const allow = ['blue', 'green', 'red'];
|
38
|
+
if (allow.includes(theme)) {
|
39
|
+
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
40
|
+
const style = document.createElement('style');
|
41
|
+
style.innerHTML = css;
|
42
|
+
document.head.appendChild(style);
|
43
|
+
}
|
44
|
+
}, [theme]);
|
45
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
46
|
+
react_1.default.createElement(antd_1.Upload, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
|
47
|
+
};
|
48
|
+
exports.UniUpload = UniUpload;
|
@@ -1,3 +1,6 @@
|
|
1
1
|
import { UploadProps } from 'antd';
|
2
2
|
import React from 'react';
|
3
|
-
export declare const Upload:
|
3
|
+
export declare const Upload: ({ [SLOT.id]: dataId, [SLOT.dnd]: dataDnd, style, ...rest }: UploadProps & {
|
4
|
+
[key: string]: any;
|
5
|
+
children?: React.ReactNode;
|
6
|
+
}) => React.JSX.Element;
|
@@ -3,48 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Upload = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
});
|
21
|
-
}, [dataDnd, dataId]);
|
22
|
-
// 监听弹层显示事件
|
23
|
-
// const handleVisibleChange = (visible: boolean) => {
|
24
|
-
// console.log('handleVisibleChange', visible);
|
25
|
-
// if (visible) {
|
26
|
-
// // 使用微任务确保弹层已渲染
|
27
|
-
// Promise.resolve().then(() => {
|
28
|
-
// const popoverNode = document.querySelector('.ant-popover-placement-top');
|
29
|
-
// console.log('popoverNode' ,popoverNode)
|
30
|
-
// if (popoverNode) {
|
31
|
-
// popoverNode.setAttribute('data-dnd', dataDnd);
|
32
|
-
// popoverNode.setAttribute('data-id', dataId);
|
33
|
-
// }
|
34
|
-
// });
|
35
|
-
// }
|
36
|
-
// };
|
37
|
-
return (react_1.default.createElement("div", { ref: uploadRef },
|
38
|
-
react_1.default.createElement(antd_1.Upload, Object.assign({ className: dataId, "data-dnd": dataDnd, "data-id": dataId }, rest), children)));
|
39
|
-
}
|
40
|
-
exports.Upload = (0, tango_boot_1.defineComponent)(antd_1.Upload, {
|
41
|
-
name: 'Upload',
|
42
|
-
designerConfig: {
|
43
|
-
render({ designerProps, originalProps }) {
|
44
|
-
console.log("Upload: designerProps:", designerProps, "originalProps:", originalProps);
|
45
|
-
return react_1.default.createElement(UploadDesigner, Object.assign({ title: "Are you sure?" }, designerProps, originalProps));
|
46
|
-
},
|
47
|
-
},
|
48
|
-
// designerConfig: {
|
49
|
-
// },
|
50
|
-
});
|
6
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
7
|
+
const slottype_1 = require("../helpers/slottype");
|
8
|
+
const Upload = (_a) => {
|
9
|
+
var
|
10
|
+
//items,
|
11
|
+
_b = slottype_1.SLOT.id,
|
12
|
+
//items,
|
13
|
+
dataId = _a[_b], _c = slottype_1.SLOT.dnd, dataDnd = _a[_c], { style } = _a, rest = tslib_1.__rest(_a, [typeof _b === "symbol" ? _b : _b + "", typeof _c === "symbol" ? _c : _c + "", "style"]);
|
14
|
+
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
15
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": rest.tid, draggable: true, style: style },
|
16
|
+
react_1.default.createElement(antd_1.Upload, Object.assign({}, rest), rest.children)));
|
17
|
+
};
|
18
|
+
exports.Upload = Upload;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
2
|
-
export declare function omitProps(props: ComponentPrototypeType['props'], omitList: string[]): import("@
|
3
|
-
export declare function pickProps(props: ComponentPrototypeType['props'], pickList: string[]): import("@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
|
+
export declare function omitProps(props: ComponentPrototypeType['props'], omitList: string[]): import("@cuvp1225/helpers").IComponentProp<any>[];
|
3
|
+
export declare function pickProps(props: ComponentPrototypeType['props'], pickList: string[]): import("@cuvp1225/helpers").IComponentProp<any>[];
|
package/lib/cjs/index.d.ts
CHANGED
package/lib/cjs/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
2
|
export declare const Affix: ComponentPrototypeType;
|