@cuvp1225/antd 0.1.19-beta.46 → 0.1.19-beta.47
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 +955 -68
- package/dist/index.js +955 -68
- package/lib/cjs/components/affix.d.ts +1 -1
- package/lib/cjs/components/affix.js +2 -2
- package/lib/cjs/components/alert.d.ts +1 -1
- package/lib/cjs/components/alert.js +4 -4
- package/lib/cjs/components/auto-complete.d.ts +1 -1
- package/lib/cjs/components/auto-complete.js +4 -4
- package/lib/cjs/components/avatar.d.ts +1 -1
- package/lib/cjs/components/avatar.js +4 -4
- package/lib/cjs/components/badge.d.ts +1 -1
- package/lib/cjs/components/badge.js +4 -4
- package/lib/cjs/components/box.d.ts +1 -1
- package/lib/cjs/components/box.js +2 -2
- package/lib/cjs/components/button.d.ts +2 -2
- package/lib/cjs/components/button.js +3 -3
- package/lib/cjs/components/calendar.d.ts +1 -1
- package/lib/cjs/components/calendar.js +4 -4
- package/lib/cjs/components/card.d.ts +1 -1
- package/lib/cjs/components/card.js +4 -4
- package/lib/cjs/components/cascader.d.ts +2 -2
- package/lib/cjs/components/cascader.js +2 -2
- package/lib/cjs/components/checkbox.d.ts +1 -1
- package/lib/cjs/components/checkbox.js +4 -4
- 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 -4
- package/lib/cjs/components/date-picker.d.ts +1 -1
- package/lib/cjs/components/date-picker.js +4 -4
- package/lib/cjs/components/divider.d.ts +1 -1
- package/lib/cjs/components/divider.js +4 -4
- package/lib/cjs/components/drawer.d.ts +1 -1
- package/lib/cjs/components/drawer.js +2 -2
- 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 -4
- 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 -2
- package/lib/cjs/components/image.d.ts +1 -1
- package/lib/cjs/components/image.js +4 -4
- package/lib/cjs/components/input-number.d.ts +1 -1
- package/lib/cjs/components/input-number.js +2 -2
- package/lib/cjs/components/input.d.ts +2 -2
- package/lib/cjs/components/input.js +3 -3
- 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 -4
- 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 -4
- package/lib/cjs/components/pagination.d.ts +1 -1
- package/lib/cjs/components/pagination.js +4 -4
- package/lib/cjs/components/progress.d.ts +1 -1
- package/lib/cjs/components/progress.js +4 -4
- package/lib/cjs/components/radio.d.ts +1 -1
- package/lib/cjs/components/radio.js +4 -4
- package/lib/cjs/components/rate.d.ts +1 -1
- package/lib/cjs/components/rate.js +4 -4
- package/lib/cjs/components/result.d.ts +1 -1
- package/lib/cjs/components/result.js +4 -4
- package/lib/cjs/components/result1.js +2 -2
- package/lib/cjs/components/row-back.d.ts +1 -1
- package/lib/cjs/components/row-back.js +6 -6
- package/lib/cjs/components/row.d.ts +1 -1
- package/lib/cjs/components/row.js +2 -2
- 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 -2
- package/lib/cjs/components/skeleton.d.ts +1 -1
- package/lib/cjs/components/skeleton.js +4 -4
- package/lib/cjs/components/slider.d.ts +1 -1
- package/lib/cjs/components/slider.js +4 -4
- 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 -4
- package/lib/cjs/components/statistic.js +3 -3
- 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/tabs.d.ts +1 -1
- package/lib/cjs/components/tabs.js +4 -4
- package/lib/cjs/components/tag.d.ts +1 -1
- package/lib/cjs/components/tag.js +4 -4
- 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 -3
- package/lib/cjs/components/transfer.d.ts +1 -1
- package/lib/cjs/components/transfer.js +4 -4
- 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.js +17 -17
- package/lib/cjs/components/uniButton/unibutton.js +16 -13
- package/lib/cjs/components/uniCascader/unicascader.js +12 -12
- package/lib/cjs/components/uniModal/unimodal.js +4 -4
- package/lib/cjs/components/uniRadio/uniradio.js +22 -22
- package/lib/cjs/components/uniSelect/uniselect.js +9 -9
- package/lib/cjs/components/uniSwitch/uniswitch.js +4 -4
- package/lib/cjs/components/uniTabs/unitabs.js +13 -13
- package/lib/cjs/components/uniUpload/uniupload.js +5 -5
- package/lib/cjs/helpers/prototype-helper.d.ts +3 -3
- 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/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 +1 -1
- package/lib/cjs/prototypes/upload.d.ts +1 -1
- package/lib/cjs/prototypes/when.d.ts +1 -1
- package/lib/esm/components/affix.d.ts +1 -1
- package/lib/esm/components/affix.js +1 -1
- package/lib/esm/components/alert.d.ts +1 -1
- package/lib/esm/components/alert.js +2 -2
- package/lib/esm/components/auto-complete.d.ts +1 -1
- package/lib/esm/components/auto-complete.js +2 -2
- package/lib/esm/components/avatar.d.ts +1 -1
- package/lib/esm/components/avatar.js +2 -2
- package/lib/esm/components/badge.d.ts +1 -1
- package/lib/esm/components/badge.js +2 -2
- package/lib/esm/components/box.d.ts +1 -1
- package/lib/esm/components/box.js +1 -1
- package/lib/esm/components/button.d.ts +2 -2
- package/lib/esm/components/button.js +1 -1
- package/lib/esm/components/calendar.d.ts +1 -1
- package/lib/esm/components/calendar.js +2 -2
- package/lib/esm/components/card.d.ts +1 -1
- package/lib/esm/components/card.js +2 -2
- package/lib/esm/components/cascader.d.ts +2 -2
- package/lib/esm/components/cascader.js +1 -1
- package/lib/esm/components/checkbox.d.ts +1 -1
- package/lib/esm/components/checkbox.js +2 -2
- 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 -2
- package/lib/esm/components/date-picker.d.ts +1 -1
- package/lib/esm/components/date-picker.js +2 -2
- package/lib/esm/components/divider.d.ts +1 -1
- package/lib/esm/components/divider.js +2 -2
- package/lib/esm/components/drawer.d.ts +1 -1
- package/lib/esm/components/drawer.js +1 -1
- 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 -2
- 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 -1
- package/lib/esm/components/image.d.ts +1 -1
- package/lib/esm/components/image.js +2 -2
- package/lib/esm/components/input-number.d.ts +1 -1
- package/lib/esm/components/input-number.js +1 -1
- package/lib/esm/components/input.d.ts +2 -2
- package/lib/esm/components/input.js +1 -1
- 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 -2
- 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 -2
- package/lib/esm/components/pagination.d.ts +1 -1
- package/lib/esm/components/pagination.js +2 -2
- package/lib/esm/components/progress.d.ts +1 -1
- package/lib/esm/components/progress.js +2 -2
- package/lib/esm/components/radio.d.ts +1 -1
- package/lib/esm/components/radio.js +2 -2
- package/lib/esm/components/rate.d.ts +1 -1
- package/lib/esm/components/rate.js +2 -2
- package/lib/esm/components/result.d.ts +1 -1
- package/lib/esm/components/result.js +2 -2
- package/lib/esm/components/result1.js +1 -1
- package/lib/esm/components/row-back.d.ts +1 -1
- package/lib/esm/components/row-back.js +2 -2
- package/lib/esm/components/row.d.ts +1 -1
- package/lib/esm/components/row.js +1 -1
- 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 -1
- package/lib/esm/components/skeleton.d.ts +1 -1
- package/lib/esm/components/skeleton.js +2 -2
- package/lib/esm/components/slider.d.ts +1 -1
- package/lib/esm/components/slider.js +2 -2
- 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 -2
- package/lib/esm/components/statistic.js +2 -2
- 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/tabs.d.ts +1 -1
- package/lib/esm/components/tabs.js +2 -2
- package/lib/esm/components/tag.d.ts +1 -1
- package/lib/esm/components/tag.js +2 -2
- 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 -1
- package/lib/esm/components/transfer.d.ts +1 -1
- package/lib/esm/components/transfer.js +2 -2
- 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.js +17 -17
- package/lib/esm/components/uniButton/unibutton.js +15 -12
- package/lib/esm/components/uniCascader/unicascader.js +12 -12
- package/lib/esm/components/uniModal/unimodal.js +4 -4
- package/lib/esm/components/uniRadio/uniradio.js +22 -22
- package/lib/esm/components/uniSelect/uniselect.js +9 -9
- package/lib/esm/components/uniSwitch/uniswitch.js +4 -4
- package/lib/esm/components/uniTabs/unitabs.js +13 -13
- package/lib/esm/components/uniUpload/uniupload.js +5 -5
- package/lib/esm/helpers/prototype-helper.d.ts +3 -3
- 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/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 +1 -1
- package/lib/esm/prototypes/upload.d.ts +1 -1
- package/lib/esm/prototypes/when.d.ts +1 -1
- package/package.json +7 -7
@@ -8,70 +8,70 @@ const slottype_1 = require("../../helpers/slottype");
|
|
8
8
|
const UniSteps = (_a) => {
|
9
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
10
|
const redCss = `
|
11
|
-
.uni-${
|
11
|
+
.uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
|
12
12
|
background: #B30000;
|
13
13
|
}
|
14
|
-
.uni-${
|
14
|
+
.uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
|
15
15
|
background-color: #fff;
|
16
16
|
border-color: #B30000;
|
17
17
|
}
|
18
18
|
|
19
|
-
.uni-${
|
19
|
+
.uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
|
20
20
|
background-color: #fff;
|
21
21
|
border-color: #B30000;
|
22
22
|
}
|
23
23
|
|
24
|
-
.uni-${
|
24
|
+
.uni-${dataId} .anticon svg {
|
25
25
|
color: #B30000;
|
26
26
|
}
|
27
27
|
|
28
28
|
|
29
|
-
.uni-${
|
29
|
+
.uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
|
30
30
|
background-color: #f0f0f0;
|
31
31
|
}
|
32
32
|
`;
|
33
33
|
const blueCss = `
|
34
|
-
.uni-${
|
34
|
+
.uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
|
35
35
|
background: #1890ff;
|
36
36
|
}
|
37
|
-
.uni-${
|
37
|
+
.uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
|
38
38
|
background-color: #fff;
|
39
39
|
border-color: #1890ff;
|
40
40
|
}
|
41
41
|
|
42
|
-
.uni-${
|
42
|
+
.uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
|
43
43
|
background-color: #fff;
|
44
44
|
border-color: #1890ff;
|
45
45
|
}
|
46
46
|
|
47
|
-
.uni-${
|
47
|
+
.uni-${dataId} .anticon svg {
|
48
48
|
color: #1890ff;
|
49
49
|
}
|
50
50
|
|
51
51
|
|
52
|
-
.uni-${
|
52
|
+
.uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
|
53
53
|
background-color: #f0f0f0;
|
54
54
|
}
|
55
55
|
`;
|
56
56
|
const greenCss = `
|
57
|
-
.uni-${
|
57
|
+
.uni-${dataId} .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-icon {
|
58
58
|
background: #17c60e;
|
59
59
|
}
|
60
|
-
.uni-${
|
60
|
+
.uni-${dataId} .ant-steps-item-process .ant-steps-item-icon {
|
61
61
|
background-color: #fff;
|
62
62
|
border-color: #17c60e;
|
63
63
|
}
|
64
64
|
|
65
|
-
.uni-${
|
65
|
+
.uni-${dataId} .ant-steps-item-finish .ant-steps-item-icon {
|
66
66
|
background-color: #fff;
|
67
67
|
border-color: #17c60e;
|
68
68
|
}
|
69
69
|
|
70
|
-
.uni-${
|
70
|
+
.uni-${dataId} .anticon svg {
|
71
71
|
color: #17c60e;
|
72
72
|
}
|
73
73
|
|
74
|
-
.uni-${
|
74
|
+
.uni-${dataId} .ant-steps-item-finish > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
|
75
75
|
background-color: #f0f0f0;
|
76
76
|
}
|
77
77
|
`;
|
@@ -84,8 +84,8 @@ const UniSteps = (_a) => {
|
|
84
84
|
document.head.appendChild(style);
|
85
85
|
}
|
86
86
|
}, [theme]);
|
87
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
88
|
-
react_1.default.createElement(antd_1.Steps, Object.assign({ className: `uni-${
|
87
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style },
|
88
|
+
react_1.default.createElement(antd_1.Steps, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest), rest.children)));
|
89
89
|
};
|
90
90
|
exports.UniSteps = UniSteps;
|
91
91
|
const UniStepsStep = (props) => {
|
@@ -3,63 +3,66 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UniButtonGroup = exports.UniButton = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
const antd_1 = require("antd");
|
6
|
-
const
|
6
|
+
const helpers_1 = require("@cuvp1225/helpers");
|
7
7
|
const react_1 = tslib_1.__importStar(require("react"));
|
8
8
|
const UniButton = (_a) => {
|
9
|
-
var _b =
|
9
|
+
var _b = helpers_1.SLOT.dnd, dataDnd = _a[_b], _c = helpers_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
10
|
const redCss = `
|
11
|
-
.uni-${
|
11
|
+
.uni-${dataId} {
|
12
12
|
color: #fff;
|
13
13
|
border-color: #B30000 !important;
|
14
14
|
background: #B30000 !important;
|
15
15
|
|
16
16
|
}
|
17
17
|
|
18
|
-
.uni-${
|
19
|
-
.uni-${
|
18
|
+
.uni-${dataId}:hover,
|
19
|
+
.uni-${dataId}:focus {
|
20
20
|
color: #fff;
|
21
21
|
border-color: #B30000 !important;
|
22
22
|
background: #B30000 !important;
|
23
23
|
}
|
24
24
|
`;
|
25
25
|
const blueCss = `
|
26
|
-
.uni-${
|
26
|
+
.uni-${dataId} {
|
27
27
|
color: #fff;
|
28
28
|
border-color: #1890ff !important;
|
29
29
|
background: #1890ff !important;
|
30
30
|
|
31
31
|
}
|
32
32
|
|
33
|
-
.uni-${
|
34
|
-
.uni-${
|
33
|
+
.uni-${dataId}:hover,
|
34
|
+
.uni-${dataId}:focus {
|
35
35
|
color: #fff;
|
36
36
|
border-color: #1890ff !important;
|
37
37
|
background: #1890ff !important;
|
38
38
|
}`;
|
39
39
|
const greenCss = `
|
40
|
-
.uni-${
|
40
|
+
.uni-${dataId} {
|
41
41
|
color: #fff;
|
42
42
|
border-color: #17c60e !important;
|
43
43
|
background: #17c60e !important;
|
44
44
|
|
45
45
|
}
|
46
46
|
|
47
|
-
.uni-${
|
48
|
-
.uni-${
|
47
|
+
.uni-${dataId}:hover,
|
48
|
+
.uni-${dataId}:focus {
|
49
49
|
color: #fff;
|
50
50
|
border-color: #17c60e !important;
|
51
51
|
background: #17c60e !important;
|
52
52
|
}`;
|
53
|
+
console.log("wxy-uniButton-rest2: ", rest);
|
54
|
+
console.log("wxy-uniButton-dataDnd2: ", dataDnd);
|
55
|
+
console.log("wxy-uniButton-dataId2: ", dataId);
|
53
56
|
(0, react_1.useEffect)(() => {
|
54
57
|
const allow = ['blue', 'green', 'red'];
|
55
|
-
if (allow.includes(theme)) {
|
58
|
+
if (allow.includes(theme) && rest.type === 'primary') {
|
56
59
|
const css = theme === 'blue' ? blueCss : theme === 'green' ? greenCss : redCss;
|
57
60
|
const style = document.createElement('style');
|
58
61
|
style.innerHTML = css;
|
59
62
|
document.head.appendChild(style);
|
60
63
|
}
|
61
64
|
}, [theme]);
|
62
|
-
return (react_1.default.createElement(antd_1.Button, Object.assign({ className: `uni-${
|
65
|
+
return (react_1.default.createElement(antd_1.Button, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, "data-dnd": dataDnd, "data-id": dataId, draggable: true, style: style }, rest)));
|
63
66
|
};
|
64
67
|
exports.UniButton = UniButton;
|
65
68
|
exports.UniButtonGroup = antd_1.Button.Group;
|
@@ -8,35 +8,35 @@ const slottype_1 = require("../../helpers/slottype");
|
|
8
8
|
const UniCascader = (_a) => {
|
9
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
10
|
const redCss = `
|
11
|
-
.uni-${
|
11
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
12
12
|
color: #c20000;
|
13
13
|
background: #fff3f3
|
14
14
|
}
|
15
15
|
|
16
|
-
.uni-${
|
16
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
17
17
|
color: #c20000;
|
18
18
|
background: #fff3f3
|
19
19
|
}
|
20
20
|
`;
|
21
21
|
const blueCss = `
|
22
|
-
.uni-${
|
22
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
23
23
|
color: #1890ff;
|
24
|
-
background: #
|
24
|
+
background: #e6f7ff
|
25
25
|
}
|
26
26
|
|
27
|
-
.uni-${
|
27
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
28
28
|
color: #1890ff;
|
29
|
-
background: #
|
29
|
+
background: #e6f7ff
|
30
30
|
}`;
|
31
31
|
const greenCss = `
|
32
|
-
.uni-${
|
32
|
+
.uni-${dataId} .ant-cascader-menu-item-active {
|
33
33
|
color: #17c60e;
|
34
|
-
background: #
|
34
|
+
background: #f6ffed
|
35
35
|
}
|
36
36
|
|
37
|
-
.uni-${
|
37
|
+
.uni-${dataId} .ant-cascader-menu-item-active:hover {
|
38
38
|
color: #17c60e;
|
39
|
-
background: #
|
39
|
+
background: #f6ffed
|
40
40
|
}
|
41
41
|
`;
|
42
42
|
(0, react_1.useEffect)(() => {
|
@@ -48,7 +48,7 @@ const UniCascader = (_a) => {
|
|
48
48
|
document.head.appendChild(style);
|
49
49
|
}
|
50
50
|
}, [theme]);
|
51
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
52
|
-
react_1.default.createElement(antd_1.Cascader, Object.assign({ className: `uni-${
|
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
53
|
};
|
54
54
|
exports.UniCascader = UniCascader;
|
@@ -9,19 +9,19 @@ const UniModal = (_a) => {
|
|
9
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
10
|
// 主题样式定义
|
11
11
|
const redCss = `
|
12
|
-
.uni-${
|
12
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
13
13
|
background: #B20000;
|
14
14
|
border-color: #B20000;
|
15
15
|
}
|
16
16
|
`;
|
17
17
|
const blueCss = `
|
18
|
-
.uni-${
|
18
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
19
19
|
background: #1890ff;
|
20
20
|
border-color: #1890ff;
|
21
21
|
}
|
22
22
|
`;
|
23
23
|
const greenCss = `
|
24
|
-
.uni-${
|
24
|
+
.uni-${dataId} .ant-modal-footer .ant-btn-primary {
|
25
25
|
background: #17c60e;
|
26
26
|
border-color: #17c60e;
|
27
27
|
}
|
@@ -35,7 +35,7 @@ const UniModal = (_a) => {
|
|
35
35
|
document.head.appendChild(style);
|
36
36
|
}
|
37
37
|
}, [theme]);
|
38
|
-
return (react_1.default.createElement(antd_1.Modal, Object.assign({ className: `uni-${
|
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
39
|
};
|
40
40
|
exports.UniModal = UniModal;
|
41
41
|
// 导出静态方法以支持 Modal.info() 等调用方式
|
@@ -9,49 +9,49 @@ const UniRadio = (_a) => {
|
|
9
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
10
|
const redCss = `
|
11
11
|
/* 悬停时圆圈变红 */
|
12
|
-
.uni-${
|
12
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
13
13
|
border-color: #B30000 !important;
|
14
14
|
}
|
15
15
|
|
16
16
|
/* 选中状态 - 边框变红 */
|
17
|
-
.uni-${
|
17
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
18
18
|
border-color: #B30000 !important;
|
19
19
|
}
|
20
20
|
|
21
21
|
/* 选中状态 - 中心点变红(覆盖整个内圆) */
|
22
|
-
.uni-${
|
22
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
23
23
|
background-color: #B30000 !important;
|
24
24
|
}
|
25
25
|
`;
|
26
26
|
const blueCss = `
|
27
27
|
/* 悬停时圆圈变蓝 */
|
28
|
-
.uni-${
|
28
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
29
29
|
border-color: #1890ff !important;
|
30
30
|
}
|
31
31
|
|
32
32
|
/* 选中状态 - 边框变蓝 */
|
33
|
-
.uni-${
|
33
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
34
34
|
border-color: #1890ff !important;
|
35
35
|
}
|
36
36
|
|
37
37
|
/* 选中状态 - 中心点变蓝(覆盖整个内圆) */
|
38
|
-
.uni-${
|
38
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
39
39
|
background-color: #1890ff !important;
|
40
40
|
}
|
41
41
|
`;
|
42
42
|
const greenCss = `
|
43
43
|
/* 悬停时圆圈变绿 */
|
44
|
-
.uni-${
|
44
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
45
45
|
border-color: #17c60e !important;
|
46
46
|
}
|
47
47
|
|
48
48
|
/* 选中状态 - 边框变绿 */
|
49
|
-
.uni-${
|
49
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
50
50
|
border-color: #17c60e !important;
|
51
51
|
}
|
52
52
|
|
53
53
|
/* 选中状态 - 中心点变绿(覆盖整个内圆) */
|
54
|
-
.uni-${
|
54
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
55
55
|
background-color: #17c60e !important;
|
56
56
|
}
|
57
57
|
`;
|
@@ -64,57 +64,57 @@ const UniRadio = (_a) => {
|
|
64
64
|
document.head.appendChild(style);
|
65
65
|
}
|
66
66
|
}, [theme]);
|
67
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
68
|
-
react_1.default.createElement(antd_1.Radio, Object.assign({ className: `uni-${
|
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
69
|
};
|
70
70
|
exports.UniRadio = UniRadio;
|
71
71
|
const UniRadioGroup = (_a) => {
|
72
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
73
|
const redCss = `
|
74
74
|
/* 悬停时圆圈变红 */
|
75
|
-
.uni-${
|
75
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
76
76
|
border-color: #B30000 !important;
|
77
77
|
}
|
78
78
|
|
79
79
|
/* 选中状态 - 边框变红 */
|
80
|
-
.uni-${
|
80
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
81
81
|
border-color: #B30000 !important;
|
82
82
|
}
|
83
83
|
|
84
84
|
/* 选中状态 - 中心点变红(覆盖整个内圆) */
|
85
|
-
.uni-${
|
85
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
86
86
|
background-color: #B30000 !important;
|
87
87
|
}
|
88
88
|
`;
|
89
89
|
const blueCss = `
|
90
90
|
/* 悬停时圆圈变蓝 */
|
91
|
-
.uni-${
|
91
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
92
92
|
border-color: #1890ff !important;
|
93
93
|
}
|
94
94
|
|
95
95
|
/* 选中状态 - 边框变蓝 */
|
96
|
-
.uni-${
|
96
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
97
97
|
border-color: #1890ff !important;
|
98
98
|
}
|
99
99
|
|
100
100
|
/* 选中状态 - 中心点变蓝(覆盖整个内圆) */
|
101
|
-
.uni-${
|
101
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
102
102
|
background-color: #1890ff !important;
|
103
103
|
}
|
104
104
|
`;
|
105
105
|
const greenCss = `
|
106
106
|
/* 悬停时圆圈变绿 */
|
107
|
-
.uni-${
|
107
|
+
.uni-${dataId}:hover .ant-radio-inner {
|
108
108
|
border-color: #17c60e !important;
|
109
109
|
}
|
110
110
|
|
111
111
|
/* 选中状态 - 边框变绿 */
|
112
|
-
.uni-${
|
112
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner {
|
113
113
|
border-color: #17c60e !important;
|
114
114
|
}
|
115
115
|
|
116
116
|
/* 选中状态 - 中心点变绿(覆盖整个内圆) */
|
117
|
-
.uni-${
|
117
|
+
.uni-${dataId} .ant-radio-input:checked + .ant-radio-inner::after {
|
118
118
|
background-color: #17c60e !important;
|
119
119
|
}
|
120
120
|
`;
|
@@ -127,7 +127,7 @@ const UniRadioGroup = (_a) => {
|
|
127
127
|
document.head.appendChild(style);
|
128
128
|
}
|
129
129
|
}, [theme]);
|
130
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
131
|
-
react_1.default.createElement(antd_1.Radio.Group, Object.assign({ className: `uni-${
|
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
132
|
};
|
133
133
|
exports.UniRadioGroup = UniRadioGroup;
|
@@ -8,21 +8,21 @@ const slottype_1 = require("../../helpers/slottype");
|
|
8
8
|
const UniSelect = (_a) => {
|
9
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
10
|
const redCss = `
|
11
|
-
.uni-${
|
11
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
12
12
|
color: #B30000;
|
13
13
|
background: #fff3f3
|
14
14
|
}
|
15
15
|
`;
|
16
16
|
const blueCss = `
|
17
|
-
.uni-${
|
17
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
18
18
|
color: #1890ff;
|
19
|
-
background: #
|
19
|
+
background: #e6f7ff
|
20
20
|
}
|
21
21
|
`;
|
22
22
|
const greenCss = `
|
23
|
-
.uni-${
|
23
|
+
.uni-${dataId} .ant-select-item-option-selected {
|
24
24
|
color: #17c60e;
|
25
|
-
background: #
|
25
|
+
background: #f6ffed
|
26
26
|
}
|
27
27
|
`;
|
28
28
|
(0, react_1.useEffect)(() => {
|
@@ -34,11 +34,11 @@ const UniSelect = (_a) => {
|
|
34
34
|
document.head.appendChild(style);
|
35
35
|
}
|
36
36
|
}, [theme]);
|
37
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
37
|
+
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id": dataId, draggable: true },
|
38
38
|
react_1.default.createElement(antd_1.Select
|
39
|
-
// className={`uni-${
|
39
|
+
// className={`uni-${dataId}`}
|
40
40
|
, Object.assign({
|
41
|
-
// className={`uni-${
|
42
|
-
className: `uni-${
|
41
|
+
// className={`uni-${dataId}`}
|
42
|
+
className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, dropdownClassName: `uni-${dataId} ${theme ? `theme-${theme}` : ''}`, style: style }, rest))));
|
43
43
|
};
|
44
44
|
exports.UniSelect = UniSelect;
|
@@ -9,19 +9,19 @@ const UniSwitch = (_a) => {
|
|
9
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
10
|
const redCss = `
|
11
11
|
/* 根据tid定制Switch组件样式 */
|
12
|
-
.uni-${
|
12
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
13
13
|
background-color: #B30000;
|
14
14
|
}
|
15
15
|
`;
|
16
16
|
const blueCss = `
|
17
17
|
/* 根据tid定制Switch组件样式 */
|
18
|
-
.uni-${
|
18
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
19
19
|
background-color: #1890ff;
|
20
20
|
}
|
21
21
|
`;
|
22
22
|
const greenCss = `
|
23
23
|
/* 根据tid定制Switch组件样式 */
|
24
|
-
.uni-${
|
24
|
+
.uni-${dataId}[tid="${dataId}"].ant-switch-checked {
|
25
25
|
background-color: #17c60e;
|
26
26
|
}
|
27
27
|
`;
|
@@ -35,6 +35,6 @@ const UniSwitch = (_a) => {
|
|
35
35
|
}
|
36
36
|
}, [theme]);
|
37
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-${
|
38
|
+
react_1.default.createElement(antd_1.Switch, Object.assign({ className: `uni-${dataId} ${theme ? `theme-${theme}` : ''}` }, rest))));
|
39
39
|
};
|
40
40
|
exports.UniSwitch = UniSwitch;
|
@@ -7,11 +7,11 @@ const react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
const slottype_1 = require("../../helpers/slottype");
|
8
8
|
const UniTabs = (_a) => {
|
9
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-${
|
10
|
+
const redCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
11
11
|
background: #C20000;
|
12
12
|
}
|
13
13
|
|
14
|
-
.uni-${
|
14
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
15
15
|
color: #C20000;
|
16
16
|
font-size: "16px";
|
17
17
|
font-weight: 600;
|
@@ -20,19 +20,19 @@ const UniTabs = (_a) => {
|
|
20
20
|
text-align: left;
|
21
21
|
}
|
22
22
|
|
23
|
-
.uni-${
|
23
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
24
24
|
color: #C20000;
|
25
25
|
}
|
26
26
|
|
27
|
-
.uni-${
|
27
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
28
28
|
color: #C20000;
|
29
29
|
}
|
30
30
|
`;
|
31
|
-
const blueCss = `.uni-${
|
31
|
+
const blueCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
32
32
|
background: #1890ff;
|
33
33
|
}
|
34
34
|
|
35
|
-
.uni-${
|
35
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
36
36
|
color: #1890ff;
|
37
37
|
font-size: "16px";
|
38
38
|
font-weight: 600;
|
@@ -41,18 +41,18 @@ const UniTabs = (_a) => {
|
|
41
41
|
text-align: left;
|
42
42
|
}
|
43
43
|
|
44
|
-
.uni-${
|
44
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
45
45
|
color: #1890ff;
|
46
46
|
}
|
47
47
|
|
48
|
-
.uni-${
|
48
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
49
49
|
color: #1890ff;
|
50
50
|
}`;
|
51
|
-
const greenCss = `.uni-${
|
51
|
+
const greenCss = `.uni-${dataId} .ant-tabs-ink-bar{
|
52
52
|
background: #17c60e;
|
53
53
|
}
|
54
54
|
|
55
|
-
.uni-${
|
55
|
+
.uni-${dataId} .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
56
56
|
color: #17c60e;
|
57
57
|
font-size: "16px";
|
58
58
|
font-weight: 600;
|
@@ -61,11 +61,11 @@ const UniTabs = (_a) => {
|
|
61
61
|
text-align: left;
|
62
62
|
}
|
63
63
|
|
64
|
-
.uni-${
|
64
|
+
.uni-${dataId} .ant-tabs-tab .ant-tabs-tab-btn:hover {
|
65
65
|
color: #17c60e;
|
66
66
|
}
|
67
67
|
|
68
|
-
.uni-${
|
68
|
+
.uni-${dataId} .ant-tabs-tab:hover {
|
69
69
|
color: #17c60e;
|
70
70
|
}`;
|
71
71
|
(0, react_1.useEffect)(() => {
|
@@ -77,7 +77,7 @@ const UniTabs = (_a) => {
|
|
77
77
|
document.head.appendChild(style);
|
78
78
|
}
|
79
79
|
}, [theme]);
|
80
|
-
return (react_1.default.createElement(antd_1.Tabs, Object.assign({ className: `uni-${
|
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
81
|
};
|
82
82
|
exports.UniTabs = UniTabs;
|
83
83
|
const UniTabsPane = (props) => {
|
@@ -13,21 +13,21 @@ const UniUpload = (_a) => {
|
|
13
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
14
|
//console.log("新的descriptions组件0507001", dataId, dataDnd, rest);
|
15
15
|
const redCss = `
|
16
|
-
.uni-${
|
16
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
17
17
|
color: #fff;
|
18
18
|
border-color: #B20000;
|
19
19
|
background: #B20000;
|
20
20
|
}
|
21
21
|
`;
|
22
22
|
const blueCss = `
|
23
|
-
.uni-${
|
23
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
24
24
|
color: #fff;
|
25
25
|
border-color: #1890ff;
|
26
26
|
background: #1890ff;
|
27
27
|
}
|
28
28
|
`;
|
29
29
|
const greenCss = `
|
30
|
-
.uni-${
|
30
|
+
.uni-${dataId} .ant-btn, .uni-${dataId} .ant-btn:hover, .uni-${dataId} .ant-btn:focus {
|
31
31
|
color: #fff;
|
32
32
|
border-color: #17c60e;
|
33
33
|
background: #17c60e;
|
@@ -42,7 +42,7 @@ const UniUpload = (_a) => {
|
|
42
42
|
document.head.appendChild(style);
|
43
43
|
}
|
44
44
|
}, [theme]);
|
45
|
-
return (react_1.default.createElement("div", { "data-dnd": dataDnd, "data-id":
|
46
|
-
react_1.default.createElement(antd_1.Upload, Object.assign({ className: `uni-${
|
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
47
|
};
|
48
48
|
exports.UniUpload = UniUpload;
|
@@ -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>[];
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
2
|
export declare const Affix: ComponentPrototypeType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
2
|
export declare const AutoComplete: ComponentPrototypeType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ComponentPrototypeType } from '@
|
1
|
+
import { ComponentPrototypeType } from '@cuvp1225/helpers';
|
2
2
|
export declare const BackTop: ComponentPrototypeType;
|