duoyun-ui 2.2.3 → 2.2.9
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/elements/badge.d.ts +2 -16
- package/elements/badge.d.ts.map +1 -1
- package/elements/badge.js +4 -158
- package/elements/badge.js.map +1 -1
- package/elements/banner.d.ts +2 -17
- package/elements/banner.d.ts.map +1 -1
- package/elements/banner.js +4 -127
- package/elements/banner.js.map +1 -1
- package/elements/base/chart.d.ts +2 -2
- package/elements/base/resize.d.ts +1 -22
- package/elements/base/resize.d.ts.map +1 -1
- package/elements/base/resize.js +1 -95
- package/elements/base/resize.js.map +1 -1
- package/elements/base/scroll.d.ts +1 -8
- package/elements/base/scroll.d.ts.map +1 -1
- package/elements/base/scroll.js +1 -157
- package/elements/base/scroll.js.map +1 -1
- package/elements/base/visible.d.ts +1 -18
- package/elements/base/visible.d.ts.map +1 -1
- package/elements/base/visible.js +1 -112
- package/elements/base/visible.js.map +1 -1
- package/elements/button.d.ts +2 -24
- package/elements/button.d.ts.map +1 -1
- package/elements/button.js +7 -287
- package/elements/button.js.map +1 -1
- package/elements/checkbox.d.ts +3 -21
- package/elements/checkbox.d.ts.map +1 -1
- package/elements/checkbox.js +6 -180
- package/elements/checkbox.js.map +1 -1
- package/elements/code-block.d.ts +2 -7
- package/elements/code-block.d.ts.map +1 -1
- package/elements/code-block.js +4 -432
- package/elements/code-block.js.map +1 -1
- package/elements/collapse.d.ts +3 -29
- package/elements/collapse.d.ts.map +1 -1
- package/elements/collapse.js +6 -197
- package/elements/collapse.js.map +1 -1
- package/elements/compartment.d.ts +2 -5
- package/elements/compartment.d.ts.map +1 -1
- package/elements/compartment.js +4 -23
- package/elements/compartment.js.map +1 -1
- package/elements/contextmenu.d.ts +5 -42
- package/elements/contextmenu.d.ts.map +1 -1
- package/elements/contextmenu.js +8 -285
- package/elements/contextmenu.js.map +1 -1
- package/elements/countdown.d.ts +2 -12
- package/elements/countdown.d.ts.map +1 -1
- package/elements/countdown.js +4 -94
- package/elements/countdown.js.map +1 -1
- package/elements/divider.d.ts +2 -8
- package/elements/divider.d.ts.map +1 -1
- package/elements/divider.js +4 -129
- package/elements/divider.js.map +1 -1
- package/elements/empty.d.ts +2 -8
- package/elements/empty.d.ts.map +1 -1
- package/elements/empty.js +4 -59
- package/elements/empty.js.map +1 -1
- package/elements/grouped-picker.d.ts +29 -0
- package/elements/grouped-picker.d.ts.map +1 -0
- package/elements/grouped-picker.js +199 -0
- package/elements/grouped-picker.js.map +1 -0
- package/elements/input.d.ts +4 -36
- package/elements/input.d.ts.map +1 -1
- package/elements/input.js +6 -489
- package/elements/input.js.map +1 -1
- package/elements/letters.d.ts +2 -36
- package/elements/letters.d.ts.map +1 -1
- package/elements/letters.js +10 -677
- package/elements/letters.js.map +1 -1
- package/elements/link.d.ts +3 -5
- package/elements/link.d.ts.map +1 -1
- package/elements/link.js +6 -38
- package/elements/link.js.map +1 -1
- package/elements/list.d.ts +5 -58
- package/elements/list.d.ts.map +1 -1
- package/elements/list.js +19 -664
- package/elements/list.js.map +1 -1
- package/elements/modal.d.ts +5 -63
- package/elements/modal.d.ts.map +1 -1
- package/elements/modal.js +13 -411
- package/elements/modal.js.map +1 -1
- package/elements/options.d.ts +4 -32
- package/elements/options.d.ts.map +1 -1
- package/elements/options.js +5 -254
- package/elements/options.js.map +1 -1
- package/elements/page-loadbar.js +1 -1
- package/elements/paragraph.d.ts +2 -2
- package/elements/paragraph.d.ts.map +1 -1
- package/elements/paragraph.js +4 -45
- package/elements/paragraph.js.map +1 -1
- package/elements/placeholder.d.ts +2 -14
- package/elements/placeholder.d.ts.map +1 -1
- package/elements/placeholder.js +4 -114
- package/elements/placeholder.js.map +1 -1
- package/elements/radio.d.ts +5 -24
- package/elements/radio.d.ts.map +1 -1
- package/elements/radio.js +7 -165
- package/elements/radio.js.map +1 -1
- package/elements/rate.d.ts +2 -12
- package/elements/rate.d.ts.map +1 -1
- package/elements/rate.js +4 -142
- package/elements/rate.js.map +1 -1
- package/elements/rolling-number.d.ts +2 -12
- package/elements/rolling-number.d.ts.map +1 -1
- package/elements/rolling-number.js +4 -434
- package/elements/rolling-number.js.map +1 -1
- package/elements/scroll-box.d.ts +2 -2
- package/elements/scroll-box.d.ts.map +1 -1
- package/elements/scroll-box.js +4 -5
- package/elements/scroll-box.js.map +1 -1
- package/elements/segmented.d.ts +3 -20
- package/elements/segmented.d.ts.map +1 -1
- package/elements/segmented.js +4 -192
- package/elements/segmented.js.map +1 -1
- package/elements/slider.d.ts +2 -20
- package/elements/slider.d.ts.map +1 -1
- package/elements/slider.js +4 -261
- package/elements/slider.js.map +1 -1
- package/elements/sort-box.d.ts +1 -2
- package/elements/sort-box.d.ts.map +1 -1
- package/elements/sort-box.js +4 -15
- package/elements/sort-box.js.map +1 -1
- package/elements/space.d.ts +2 -4
- package/elements/space.d.ts.map +1 -1
- package/elements/space.js +4 -37
- package/elements/space.js.map +1 -1
- package/elements/switch.d.ts +2 -11
- package/elements/switch.d.ts.map +1 -1
- package/elements/switch.js +5 -134
- package/elements/switch.js.map +1 -1
- package/elements/tag.d.ts +3 -16
- package/elements/tag.d.ts.map +1 -1
- package/elements/tag.js +4 -133
- package/elements/tag.js.map +1 -1
- package/elements/toast.js +1 -1
- package/elements/wait.js +1 -1
- package/helper/error.js +2 -39
- package/helper/error.js.map +1 -1
- package/helper/webapp.d.ts +4 -5
- package/helper/webapp.d.ts.map +1 -1
- package/helper/webapp.js +5 -11
- package/helper/webapp.js.map +1 -1
- package/lib/animations.d.ts +1 -10
- package/lib/animations.d.ts.map +1 -1
- package/lib/animations.js +1 -29
- package/lib/animations.js.map +1 -1
- package/lib/cache.d.ts +1 -18
- package/lib/cache.d.ts.map +1 -1
- package/lib/cache.js +1 -62
- package/lib/cache.js.map +1 -1
- package/lib/color.d.ts +1 -37
- package/lib/color.d.ts.map +1 -1
- package/lib/color.js +1 -98
- package/lib/color.js.map +1 -1
- package/lib/decorators.d.ts +1 -2
- package/lib/decorators.d.ts.map +1 -1
- package/lib/decorators.js +1 -16
- package/lib/decorators.js.map +1 -1
- package/lib/easing.d.ts +1 -78
- package/lib/easing.d.ts.map +1 -1
- package/lib/easing.js +1 -139
- package/lib/easing.js.map +1 -1
- package/lib/element.d.ts +1 -18
- package/lib/element.d.ts.map +1 -1
- package/lib/element.js +1 -131
- package/lib/element.js.map +1 -1
- package/lib/encode.d.ts +1 -10
- package/lib/encode.d.ts.map +1 -1
- package/lib/encode.js +1 -48
- package/lib/encode.js.map +1 -1
- package/lib/hotkeys.d.ts +1 -43
- package/lib/hotkeys.d.ts.map +1 -1
- package/lib/hotkeys.js +1 -247
- package/lib/hotkeys.js.map +1 -1
- package/lib/icons.d.ts +1 -114
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +1 -90
- package/lib/icons.js.map +1 -1
- package/lib/image.d.ts +1 -39
- package/lib/image.d.ts.map +1 -1
- package/lib/image.js +1 -140
- package/lib/image.js.map +1 -1
- package/lib/locale.d.ts +1 -87
- package/lib/locale.d.ts.map +1 -1
- package/lib/locale.js +1 -8
- package/lib/locale.js.map +1 -1
- package/lib/map.d.ts +1 -8
- package/lib/map.d.ts.map +1 -1
- package/lib/map.js +1 -31
- package/lib/map.js.map +1 -1
- package/lib/number.d.ts +1 -94
- package/lib/number.d.ts.map +1 -1
- package/lib/number.js +1 -169
- package/lib/number.js.map +1 -1
- package/lib/patterns.d.ts +1 -9
- package/lib/patterns.d.ts.map +1 -1
- package/lib/patterns.js +1 -11
- package/lib/patterns.js.map +1 -1
- package/lib/styles.d.ts +1 -4
- package/lib/styles.d.ts.map +1 -1
- package/lib/styles.js +1 -28
- package/lib/styles.js.map +1 -1
- package/lib/theme.d.ts +1 -85
- package/lib/theme.d.ts.map +1 -1
- package/lib/theme.js +6 -70
- package/lib/theme.js.map +1 -1
- package/lib/time.d.ts +1 -81
- package/lib/time.d.ts.map +1 -1
- package/lib/time.js +1 -255
- package/lib/time.js.map +1 -1
- package/lib/timer.d.ts +1 -25
- package/lib/timer.d.ts.map +1 -1
- package/lib/timer.js +1 -106
- package/lib/timer.js.map +1 -1
- package/lib/types.d.ts +1 -13
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -16
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +1 -80
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -244
- package/lib/utils.js.map +1 -1
- package/locales/en.d.ts +1 -37
- package/locales/en.d.ts.map +1 -1
- package/locales/en.js +1 -36
- package/locales/en.js.map +1 -1
- package/locales/zh.d.ts +1 -3
- package/locales/zh.d.ts.map +1 -1
- package/locales/zh.js +1 -37
- package/locales/zh.js.map +1 -1
- package/package.json +3 -5
- package/patterns/console.d.ts +1 -1
- package/patterns/form.d.ts +5 -3
- package/patterns/form.d.ts.map +1 -1
- package/patterns/form.js +16 -3
- package/patterns/form.js.map +1 -1
- package/react/DyActionText.d.ts +19 -0
- package/react/DyActionText.js +18 -0
- package/react/DyActiveLink.d.ts +15 -0
- package/react/DyActiveLink.js +18 -0
- package/react/DyAlert.d.ts +19 -0
- package/react/DyAlert.js +18 -0
- package/react/DyAreaChart.d.ts +46 -0
- package/react/DyAreaChart.js +18 -0
- package/react/DyAvatar.d.ts +23 -0
- package/react/DyAvatar.js +18 -0
- package/react/DyAvatarGroup.d.ts +22 -0
- package/react/DyAvatarGroup.js +18 -0
- package/react/DyBadge.d.ts +15 -0
- package/react/DyBadge.js +18 -0
- package/react/DyBanner.d.ts +15 -0
- package/react/DyBanner.js +18 -0
- package/react/DyBarChart.d.ts +23 -0
- package/react/DyBarChart.js +18 -0
- package/react/DyBreadcrumbs.d.ts +20 -0
- package/react/DyBreadcrumbs.js +18 -0
- package/react/DyButton.d.ts +15 -0
- package/react/DyButton.js +18 -0
- package/react/DyCalendar.d.ts +23 -0
- package/react/DyCalendar.js +18 -0
- package/react/DyCard.d.ts +24 -0
- package/react/DyCard.js +18 -0
- package/react/DyCarousel.d.ts +25 -0
- package/react/DyCarousel.js +18 -0
- package/react/DyCascader.d.ts +22 -0
- package/react/DyCascader.js +18 -0
- package/react/DyCascaderPicker.d.ts +27 -0
- package/react/DyCascaderPicker.js +22 -0
- package/react/DyChartTooltip.d.ts +15 -0
- package/react/DyChartTooltip.js +18 -0
- package/react/DyChartZoom.d.ts +20 -0
- package/react/DyChartZoom.js +18 -0
- package/react/DyCheckbox.d.ts +15 -0
- package/react/DyCheckbox.js +18 -0
- package/react/DyCheckboxGroup.d.ts +15 -0
- package/react/DyCheckboxGroup.js +18 -0
- package/react/DyCoachMark.d.ts +20 -0
- package/react/DyCoachMark.js +18 -0
- package/react/DyCodeBlock.d.ts +15 -0
- package/react/DyCodeBlock.js +18 -0
- package/react/DyCollapse.d.ts +15 -0
- package/react/DyCollapse.js +18 -0
- package/react/DyCollapsePanel.d.ts +15 -0
- package/react/DyCollapsePanel.js +18 -0
- package/react/DyColorPanel.d.ts +19 -0
- package/react/DyColorPanel.js +18 -0
- package/react/DyColorPicker.d.ts +22 -0
- package/react/DyColorPicker.js +22 -0
- package/react/DyCompartment.d.ts +15 -0
- package/react/DyCompartment.js +18 -0
- package/react/DyContextmenu.d.ts +15 -0
- package/react/DyContextmenu.js +18 -0
- package/react/DyCopy.d.ts +21 -0
- package/react/DyCopy.js +18 -0
- package/react/DyCountdown.d.ts +15 -0
- package/react/DyCountdown.js +18 -0
- package/react/DyDatePanel.d.ts +22 -0
- package/react/DyDatePanel.js +18 -0
- package/react/DyDatePicker.d.ts +26 -0
- package/react/DyDatePicker.js +22 -0
- package/react/DyDateRangePanel.d.ts +18 -0
- package/react/DyDateRangePanel.js +18 -0
- package/react/DyDateRangePicker.d.ts +26 -0
- package/react/DyDateRangePicker.js +22 -0
- package/react/DyDivider.d.ts +15 -0
- package/react/DyDivider.js +18 -0
- package/react/DyDonutChart.d.ts +20 -0
- package/react/DyDonutChart.js +18 -0
- package/react/DyDrawer.d.ts +15 -0
- package/react/DyDrawer.js +18 -0
- package/react/DyDropArea.d.ts +23 -0
- package/react/DyDropArea.js +18 -0
- package/react/DyEmpty.d.ts +15 -0
- package/react/DyEmpty.js +18 -0
- package/react/DyFilePicker.d.ts +27 -0
- package/react/DyFilePicker.js +22 -0
- package/react/DyForm.d.ts +24 -0
- package/react/DyForm.js +34 -0
- package/react/DyFormItem.d.ts +47 -0
- package/react/DyFormItem.js +31 -0
- package/react/DyFormItemInlineGroup.d.ts +15 -0
- package/react/DyFormItemInlineGroup.js +18 -0
- package/react/DyGesture.d.ts +15 -0
- package/react/DyGesture.js +18 -0
- package/react/DyGroupedPicker.d.ts +27 -0
- package/react/DyGroupedPicker.js +22 -0
- package/react/DyHeading.d.ts +17 -0
- package/react/DyHeading.js +18 -0
- package/react/DyHelpText.d.ts +17 -0
- package/react/DyHelpText.js +18 -0
- package/react/DyIcons.d.ts +15 -0
- package/react/DyIcons.js +18 -0
- package/react/DyImagePreview.d.ts +20 -0
- package/react/DyImagePreview.js +18 -0
- package/react/DyInput.d.ts +15 -0
- package/react/DyInput.js +18 -0
- package/react/DyInputCapture.d.ts +15 -0
- package/react/DyInputCapture.js +18 -0
- package/react/DyInputGroup.d.ts +15 -0
- package/react/DyInputGroup.js +18 -0
- package/react/DyKeyboardAccess.d.ts +19 -0
- package/react/DyKeyboardAccess.js +18 -0
- package/react/DyLegend.d.ts +20 -0
- package/react/DyLegend.js +18 -0
- package/react/DyLetters.d.ts +15 -0
- package/react/DyLetters.js +18 -0
- package/react/DyLightRoute.d.ts +15 -0
- package/react/DyLightRoute.js +18 -0
- package/react/DyLineChart.d.ts +15 -0
- package/react/DyLineChart.js +18 -0
- package/react/DyLink.d.ts +15 -0
- package/react/DyLink.js +18 -0
- package/react/DyList.d.ts +17 -0
- package/react/DyList.js +18 -0
- package/react/DyLoading.d.ts +15 -0
- package/react/DyLoading.js +18 -0
- package/react/DyMeter.d.ts +24 -0
- package/react/DyMeter.js +18 -0
- package/react/DyMore.d.ts +20 -0
- package/react/DyMore.js +18 -0
- package/react/DyMoreSlot.d.ts +17 -0
- package/react/DyMoreSlot.js +18 -0
- package/react/DyOptions.d.ts +15 -0
- package/react/DyOptions.js +18 -0
- package/react/DyPageLoadbar.d.ts +15 -0
- package/react/DyPageLoadbar.js +18 -0
- package/react/DyPagination.d.ts +23 -0
- package/react/DyPagination.js +18 -0
- package/react/DyParagraph.d.ts +15 -0
- package/react/DyParagraph.js +18 -0
- package/react/DyPatConsole.d.ts +25 -0
- package/react/DyPatConsole.js +18 -0
- package/react/DyPatFilterForm.d.ts +20 -0
- package/react/DyPatFilterForm.js +18 -0
- package/react/DyPatFooter.d.ts +23 -0
- package/react/DyPatFooter.js +18 -0
- package/react/DyPatForm.d.ts +20 -0
- package/react/DyPatForm.js +18 -0
- package/react/DyPatNav.d.ts +21 -0
- package/react/DyPatNav.js +18 -0
- package/react/DyPatTable.d.ts +32 -0
- package/react/DyPatTable.js +18 -0
- package/react/DyPicker.d.ts +28 -0
- package/react/DyPicker.js +22 -0
- package/react/DyPlaceholder.d.ts +15 -0
- package/react/DyPlaceholder.js +18 -0
- package/react/DyPopover.d.ts +27 -0
- package/react/DyPopover.js +22 -0
- package/react/DyPopoverGhost.d.ts +17 -0
- package/react/DyPopoverGhost.js +18 -0
- package/react/DyProgress.d.ts +18 -0
- package/react/DyProgress.js +18 -0
- package/react/DyRadarChart.d.ts +22 -0
- package/react/DyRadarChart.js +18 -0
- package/react/DyRadio.d.ts +15 -0
- package/react/DyRadio.js +18 -0
- package/react/DyRadioGroup.d.ts +15 -0
- package/react/DyRadioGroup.js +18 -0
- package/react/DyRate.d.ts +15 -0
- package/react/DyRate.js +18 -0
- package/react/DyReflect.d.ts +15 -0
- package/react/DyReflect.js +18 -0
- package/react/DyResult.d.ts +21 -0
- package/react/DyResult.js +18 -0
- package/react/DyRollingNumber.d.ts +15 -0
- package/react/DyRollingNumber.js +18 -0
- package/react/DyRoute.d.ts +15 -0
- package/react/DyRoute.js +18 -0
- package/react/DySankeyChart.d.ts +21 -0
- package/react/DySankeyChart.js +18 -0
- package/react/DyScatterChart.d.ts +17 -0
- package/react/DyScatterChart.js +18 -0
- package/react/DyScrollBox.d.ts +15 -0
- package/react/DyScrollBox.js +18 -0
- package/react/DySegmented.d.ts +15 -0
- package/react/DySegmented.js +18 -0
- package/react/DySelect.d.ts +37 -0
- package/react/DySelect.js +25 -0
- package/react/DySelectionBox.d.ts +18 -0
- package/react/DySelectionBox.js +18 -0
- package/react/DySelectionBoxMask.d.ts +15 -0
- package/react/DySelectionBoxMask.js +18 -0
- package/react/DyShortcutRecord.d.ts +23 -0
- package/react/DyShortcutRecord.js +18 -0
- package/react/DySideNavigation.d.ts +18 -0
- package/react/DySideNavigation.js +18 -0
- package/react/DySlider.d.ts +15 -0
- package/react/DySlider.js +18 -0
- package/react/DySortBox.d.ts +17 -0
- package/react/DySortBox.js +18 -0
- package/react/DySortHandle.d.ts +15 -0
- package/react/DySortHandle.js +18 -0
- package/react/DySortItem.d.ts +15 -0
- package/react/DySortItem.js +18 -0
- package/react/DySpace.d.ts +15 -0
- package/react/DySpace.js +18 -0
- package/react/DyStatistic.d.ts +25 -0
- package/react/DyStatistic.js +18 -0
- package/react/DyStatusLight.d.ts +17 -0
- package/react/DyStatusLight.js +18 -0
- package/react/DySwitch.d.ts +15 -0
- package/react/DySwitch.js +18 -0
- package/react/DyTabPanel.d.ts +17 -0
- package/react/DyTabPanel.js +18 -0
- package/react/DyTable.d.ts +36 -0
- package/react/DyTable.js +25 -0
- package/react/DyTabs.d.ts +21 -0
- package/react/DyTabs.js +18 -0
- package/react/DyTag.d.ts +15 -0
- package/react/DyTag.js +18 -0
- package/react/DyTextMask.d.ts +20 -0
- package/react/DyTextMask.js +18 -0
- package/react/DyTimePanel.d.ts +19 -0
- package/react/DyTimePanel.js +18 -0
- package/react/DyTimePicker.d.ts +25 -0
- package/react/DyTimePicker.js +22 -0
- package/react/DyTimeline.d.ts +17 -0
- package/react/DyTimeline.js +18 -0
- package/react/DyTitle.d.ts +15 -0
- package/react/DyTitle.js +18 -0
- package/react/DyToast.d.ts +17 -0
- package/react/DyToast.js +18 -0
- package/react/DyTooltip.d.ts +15 -0
- package/react/DyTooltip.js +18 -0
- package/react/DyTree.d.ts +29 -0
- package/react/DyTree.js +31 -0
- package/react/DyUnsafe.d.ts +15 -0
- package/react/DyUnsafe.js +18 -0
- package/react/DyUse.d.ts +15 -0
- package/react/DyUse.js +18 -0
- package/react/DyVestaboard.d.ts +21 -0
- package/react/DyVestaboard.js +18 -0
- package/react/DyWait.d.ts +17 -0
- package/react/DyWait.js +18 -0
- package/svelte/action-text.d.ts +13 -0
- package/svelte/action-text.js +2 -0
- package/svelte/alert.d.ts +13 -0
- package/svelte/alert.js +2 -0
- package/svelte/area-chart.d.ts +40 -0
- package/svelte/area-chart.js +2 -0
- package/svelte/avatar.d.ts +16 -0
- package/svelte/avatar.js +2 -0
- package/svelte/badge.d.ts +9 -0
- package/svelte/badge.js +2 -0
- package/svelte/banner.d.ts +9 -0
- package/svelte/banner.js +2 -0
- package/svelte/bar-chart.d.ts +17 -0
- package/svelte/bar-chart.js +2 -0
- package/svelte/breadcrumbs.d.ts +14 -0
- package/svelte/breadcrumbs.js +2 -0
- package/svelte/button.d.ts +9 -0
- package/svelte/button.js +2 -0
- package/svelte/calendar.d.ts +17 -0
- package/svelte/calendar.js +2 -0
- package/svelte/card.d.ts +18 -0
- package/svelte/card.js +2 -0
- package/svelte/carousel.d.ts +19 -0
- package/svelte/carousel.js +2 -0
- package/svelte/cascader-picker.d.ts +19 -0
- package/svelte/cascader-picker.js +2 -0
- package/svelte/cascader.d.ts +16 -0
- package/svelte/cascader.js +2 -0
- package/svelte/chart-tooltip.d.ts +9 -0
- package/svelte/chart-tooltip.js +2 -0
- package/svelte/chart-zoom.d.ts +14 -0
- package/svelte/chart-zoom.js +2 -0
- package/svelte/checkbox.d.ts +9 -0
- package/svelte/checkbox.js +2 -0
- package/svelte/coach-mark.d.ts +14 -0
- package/svelte/coach-mark.js +2 -0
- package/svelte/code-block.d.ts +9 -0
- package/svelte/code-block.js +2 -0
- package/svelte/collapse.d.ts +9 -0
- package/svelte/collapse.js +2 -0
- package/svelte/color-panel.d.ts +13 -0
- package/svelte/color-panel.js +2 -0
- package/svelte/color-picker.d.ts +14 -0
- package/svelte/color-picker.js +2 -0
- package/svelte/compartment.d.ts +9 -0
- package/svelte/compartment.js +2 -0
- package/svelte/contextmenu.d.ts +9 -0
- package/svelte/contextmenu.js +2 -0
- package/svelte/copy.d.ts +15 -0
- package/svelte/copy.js +2 -0
- package/svelte/countdown.d.ts +9 -0
- package/svelte/countdown.js +2 -0
- package/svelte/date-panel.d.ts +16 -0
- package/svelte/date-panel.js +2 -0
- package/svelte/date-picker.d.ts +18 -0
- package/svelte/date-picker.js +2 -0
- package/svelte/date-range-panel.d.ts +12 -0
- package/svelte/date-range-panel.js +2 -0
- package/svelte/date-range-picker.d.ts +18 -0
- package/svelte/date-range-picker.js +2 -0
- package/svelte/divider.d.ts +9 -0
- package/svelte/divider.js +2 -0
- package/svelte/donut-chart.d.ts +14 -0
- package/svelte/donut-chart.js +2 -0
- package/svelte/drawer.d.ts +9 -0
- package/svelte/drawer.js +2 -0
- package/svelte/drop-area.d.ts +17 -0
- package/svelte/drop-area.js +2 -0
- package/svelte/empty.d.ts +9 -0
- package/svelte/empty.js +2 -0
- package/svelte/file-picker.d.ts +19 -0
- package/svelte/file-picker.js +2 -0
- package/svelte/form.d.ts +36 -0
- package/svelte/form.js +2 -0
- package/svelte/gesture.d.ts +9 -0
- package/svelte/gesture.js +2 -0
- package/svelte/grouped-picker.d.ts +19 -0
- package/svelte/grouped-picker.js +2 -0
- package/svelte/heading.d.ts +11 -0
- package/svelte/heading.js +2 -0
- package/svelte/help-text.d.ts +11 -0
- package/svelte/help-text.js +2 -0
- package/svelte/icons.d.ts +9 -0
- package/svelte/icons.js +2 -0
- package/svelte/image-preview.d.ts +14 -0
- package/svelte/image-preview.js +2 -0
- package/svelte/input-capture.d.ts +9 -0
- package/svelte/input-capture.js +2 -0
- package/svelte/input.d.ts +9 -0
- package/svelte/input.js +2 -0
- package/svelte/keyboard-access.d.ts +13 -0
- package/svelte/keyboard-access.js +2 -0
- package/svelte/legend.d.ts +14 -0
- package/svelte/legend.js +2 -0
- package/svelte/letters.d.ts +9 -0
- package/svelte/letters.js +2 -0
- package/svelte/line-chart.d.ts +9 -0
- package/svelte/line-chart.js +2 -0
- package/svelte/link.d.ts +9 -0
- package/svelte/link.js +2 -0
- package/svelte/list.d.ts +11 -0
- package/svelte/list.js +2 -0
- package/svelte/loading.d.ts +9 -0
- package/svelte/loading.js +2 -0
- package/svelte/meter.d.ts +18 -0
- package/svelte/meter.js +2 -0
- package/svelte/more.d.ts +11 -0
- package/svelte/more.js +2 -0
- package/svelte/options.d.ts +9 -0
- package/svelte/options.js +2 -0
- package/svelte/page-loadbar.d.ts +9 -0
- package/svelte/page-loadbar.js +2 -0
- package/svelte/pagination.d.ts +17 -0
- package/svelte/pagination.js +2 -0
- package/svelte/paragraph.d.ts +9 -0
- package/svelte/paragraph.js +2 -0
- package/svelte/pat-console.d.ts +19 -0
- package/svelte/pat-console.js +2 -0
- package/svelte/pat-filter-form.d.ts +14 -0
- package/svelte/pat-filter-form.js +2 -0
- package/svelte/pat-footer.d.ts +17 -0
- package/svelte/pat-footer.js +2 -0
- package/svelte/pat-form.d.ts +14 -0
- package/svelte/pat-form.js +2 -0
- package/svelte/pat-nav.d.ts +15 -0
- package/svelte/pat-nav.js +2 -0
- package/svelte/pat-table.d.ts +26 -0
- package/svelte/pat-table.js +2 -0
- package/svelte/picker.d.ts +20 -0
- package/svelte/picker.js +2 -0
- package/svelte/placeholder.d.ts +9 -0
- package/svelte/placeholder.js +2 -0
- package/svelte/popover.d.ts +11 -0
- package/svelte/popover.js +2 -0
- package/svelte/progress.d.ts +12 -0
- package/svelte/progress.js +2 -0
- package/svelte/radar-chart.d.ts +16 -0
- package/svelte/radar-chart.js +2 -0
- package/svelte/radio.d.ts +9 -0
- package/svelte/radio.js +2 -0
- package/svelte/rate.d.ts +9 -0
- package/svelte/rate.js +2 -0
- package/svelte/reflect.d.ts +9 -0
- package/svelte/reflect.js +2 -0
- package/svelte/result.d.ts +15 -0
- package/svelte/result.js +2 -0
- package/svelte/rolling-number.d.ts +9 -0
- package/svelte/rolling-number.js +2 -0
- package/svelte/route.d.ts +9 -0
- package/svelte/route.js +2 -0
- package/svelte/sankey-chart.d.ts +15 -0
- package/svelte/sankey-chart.js +2 -0
- package/svelte/scatter-chart.d.ts +11 -0
- package/svelte/scatter-chart.js +2 -0
- package/svelte/scroll-box.d.ts +9 -0
- package/svelte/scroll-box.js +2 -0
- package/svelte/segmented.d.ts +9 -0
- package/svelte/segmented.js +2 -0
- package/svelte/select.d.ts +28 -0
- package/svelte/select.js +2 -0
- package/svelte/selection-box.d.ts +9 -0
- package/svelte/selection-box.js +2 -0
- package/svelte/shortcut-record.d.ts +17 -0
- package/svelte/shortcut-record.js +2 -0
- package/svelte/side-navigation.d.ts +12 -0
- package/svelte/side-navigation.js +2 -0
- package/svelte/slider.d.ts +9 -0
- package/svelte/slider.js +2 -0
- package/svelte/sort-box.d.ts +9 -0
- package/svelte/sort-box.js +2 -0
- package/svelte/space.d.ts +9 -0
- package/svelte/space.js +2 -0
- package/svelte/statistic.d.ts +19 -0
- package/svelte/statistic.js +2 -0
- package/svelte/status-light.d.ts +11 -0
- package/svelte/status-light.js +2 -0
- package/svelte/switch.d.ts +9 -0
- package/svelte/switch.js +2 -0
- package/svelte/table.d.ts +27 -0
- package/svelte/table.js +2 -0
- package/svelte/tabs.d.ts +11 -0
- package/svelte/tabs.js +2 -0
- package/svelte/tag.d.ts +9 -0
- package/svelte/tag.js +2 -0
- package/svelte/text-mask.d.ts +14 -0
- package/svelte/text-mask.js +2 -0
- package/svelte/time-panel.d.ts +13 -0
- package/svelte/time-panel.js +2 -0
- package/svelte/time-picker.d.ts +17 -0
- package/svelte/time-picker.js +2 -0
- package/svelte/timeline.d.ts +11 -0
- package/svelte/timeline.js +2 -0
- package/svelte/title.d.ts +9 -0
- package/svelte/title.js +2 -0
- package/svelte/toast.d.ts +11 -0
- package/svelte/toast.js +2 -0
- package/svelte/tooltip.d.ts +9 -0
- package/svelte/tooltip.js +2 -0
- package/svelte/tree.d.ts +18 -0
- package/svelte/tree.js +2 -0
- package/svelte/unsafe.d.ts +9 -0
- package/svelte/unsafe.js +2 -0
- package/svelte/use.d.ts +9 -0
- package/svelte/use.js +2 -0
- package/svelte/vestaboard.d.ts +15 -0
- package/svelte/vestaboard.js +2 -0
- package/svelte/wait.d.ts +11 -0
- package/svelte/wait.js +2 -0
- package/vue/DyActionText.vue +44 -0
- package/vue/DyActiveLink.vue +42 -0
- package/vue/DyAlert.vue +44 -0
- package/vue/DyAreaChart.vue +70 -0
- package/vue/DyAvatar.vue +48 -0
- package/vue/DyAvatarGroup.vue +47 -0
- package/vue/DyBadge.vue +42 -0
- package/vue/DyBanner.vue +42 -0
- package/vue/DyBarChart.vue +48 -0
- package/vue/DyBreadcrumbs.vue +45 -0
- package/vue/DyButton.vue +42 -0
- package/vue/DyCalendar.vue +47 -0
- package/vue/DyCard.vue +49 -0
- package/vue/DyCarousel.vue +49 -0
- package/vue/DyCascader.vue +46 -0
- package/vue/DyCascaderPicker.vue +53 -0
- package/vue/DyChartTooltip.vue +42 -0
- package/vue/DyChartZoom.vue +44 -0
- package/vue/DyCheckbox.vue +42 -0
- package/vue/DyCheckboxGroup.vue +42 -0
- package/vue/DyCoachMark.vue +45 -0
- package/vue/DyCodeBlock.vue +42 -0
- package/vue/DyCollapse.vue +42 -0
- package/vue/DyCollapsePanel.vue +42 -0
- package/vue/DyColorPanel.vue +43 -0
- package/vue/DyColorPicker.vue +48 -0
- package/vue/DyCompartment.vue +42 -0
- package/vue/DyContextmenu.vue +42 -0
- package/vue/DyCopy.vue +45 -0
- package/vue/DyCountdown.vue +42 -0
- package/vue/DyDatePanel.vue +46 -0
- package/vue/DyDatePicker.vue +52 -0
- package/vue/DyDateRangePanel.vue +42 -0
- package/vue/DyDateRangePicker.vue +52 -0
- package/vue/DyDivider.vue +42 -0
- package/vue/DyDonutChart.vue +45 -0
- package/vue/DyDrawer.vue +42 -0
- package/vue/DyDropArea.vue +47 -0
- package/vue/DyEmpty.vue +42 -0
- package/vue/DyFilePicker.vue +53 -0
- package/vue/DyForm.vue +66 -0
- package/vue/DyFormItem.vue +85 -0
- package/vue/DyFormItemInlineGroup.vue +42 -0
- package/vue/DyGesture.vue +42 -0
- package/vue/DyGroupedPicker.vue +53 -0
- package/vue/DyHeading.vue +42 -0
- package/vue/DyHelpText.vue +42 -0
- package/vue/DyIcons.vue +42 -0
- package/vue/DyImagePreview.vue +45 -0
- package/vue/DyInput.vue +42 -0
- package/vue/DyInputCapture.vue +42 -0
- package/vue/DyInputGroup.vue +42 -0
- package/vue/DyKeyboardAccess.vue +43 -0
- package/vue/DyLegend.vue +44 -0
- package/vue/DyLetters.vue +42 -0
- package/vue/DyLightRoute.vue +42 -0
- package/vue/DyLineChart.vue +42 -0
- package/vue/DyLink.vue +42 -0
- package/vue/DyList.vue +42 -0
- package/vue/DyLoading.vue +42 -0
- package/vue/DyMeter.vue +49 -0
- package/vue/DyMore.vue +45 -0
- package/vue/DyMoreSlot.vue +42 -0
- package/vue/DyOptions.vue +42 -0
- package/vue/DyPageLoadbar.vue +42 -0
- package/vue/DyPagination.vue +47 -0
- package/vue/DyParagraph.vue +42 -0
- package/vue/DyPatConsole.vue +50 -0
- package/vue/DyPatFilterForm.vue +44 -0
- package/vue/DyPatFooter.vue +47 -0
- package/vue/DyPatForm.vue +44 -0
- package/vue/DyPatNav.vue +46 -0
- package/vue/DyPatTable.vue +56 -0
- package/vue/DyPicker.vue +54 -0
- package/vue/DyPlaceholder.vue +42 -0
- package/vue/DyPopover.vue +53 -0
- package/vue/DyPopoverGhost.vue +42 -0
- package/vue/DyProgress.vue +43 -0
- package/vue/DyRadarChart.vue +47 -0
- package/vue/DyRadio.vue +42 -0
- package/vue/DyRadioGroup.vue +42 -0
- package/vue/DyRate.vue +42 -0
- package/vue/DyReflect.vue +42 -0
- package/vue/DyResult.vue +46 -0
- package/vue/DyRollingNumber.vue +42 -0
- package/vue/DyRoute.vue +42 -0
- package/vue/DySankeyChart.vue +46 -0
- package/vue/DyScatterChart.vue +42 -0
- package/vue/DyScrollBox.vue +42 -0
- package/vue/DySegmented.vue +42 -0
- package/vue/DySelect.vue +67 -0
- package/vue/DySelectionBox.vue +42 -0
- package/vue/DySelectionBoxMask.vue +42 -0
- package/vue/DyShortcutRecord.vue +47 -0
- package/vue/DySideNavigation.vue +43 -0
- package/vue/DySlider.vue +42 -0
- package/vue/DySortBox.vue +42 -0
- package/vue/DySortHandle.vue +42 -0
- package/vue/DySortItem.vue +42 -0
- package/vue/DySpace.vue +42 -0
- package/vue/DyStatistic.vue +50 -0
- package/vue/DyStatusLight.vue +42 -0
- package/vue/DySwitch.vue +42 -0
- package/vue/DyTabPanel.vue +42 -0
- package/vue/DyTable.vue +66 -0
- package/vue/DyTabs.vue +45 -0
- package/vue/DyTag.vue +42 -0
- package/vue/DyTextMask.vue +45 -0
- package/vue/DyTimePanel.vue +43 -0
- package/vue/DyTimePicker.vue +51 -0
- package/vue/DyTimeline.vue +42 -0
- package/vue/DyTitle.vue +42 -0
- package/vue/DyToast.vue +42 -0
- package/vue/DyTooltip.vue +42 -0
- package/vue/DyTree.vue +67 -0
- package/vue/DyUnsafe.vue +42 -0
- package/vue/DyUse.vue +42 -0
- package/vue/DyVestaboard.vue +46 -0
- package/vue/DyWait.vue +42 -0
- package/elements/flow.d.ts +0 -52
- package/elements/flow.d.ts.map +0 -1
- package/elements/flow.js +0 -703
- package/elements/flow.js.map +0 -1
- package/elements/map.d.ts +0 -48
- package/elements/map.d.ts.map +0 -1
- package/elements/map.js +0 -396
- package/elements/map.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunCountdownElement } from '../elements/countdown';
|
|
4
|
+
export * from '../elements/countdown';
|
|
5
|
+
export type DyCountdownProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunCountdownElement> & {};
|
|
6
|
+
export type DyCountdownExpose = {};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'dy-countdown': DyCountdownProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DyCountdown: ForwardRefExoticComponent<Omit<DyCountdownProps, "ref"> & RefAttributes<DyCountdownExpose>>;
|
|
15
|
+
export default DyCountdown;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/countdown';
|
|
4
|
+
export const DyCountdown = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
[].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-countdown", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyCountdown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDatePanelElement } from '../elements/date-panel';
|
|
4
|
+
export * from '../elements/date-panel';
|
|
5
|
+
export type DyDatePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDatePanelElement> & {
|
|
6
|
+
time?: DuoyunDatePanelElement['time'];
|
|
7
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunDatePanelElement['change']>[0]>) => void;
|
|
8
|
+
'ondatehover'?: (event: CustomEvent<Parameters<DuoyunDatePanelElement['datehover']>[0]>) => void;
|
|
9
|
+
value?: DuoyunDatePanelElement['value'];
|
|
10
|
+
highlights?: DuoyunDatePanelElement['highlights'];
|
|
11
|
+
initValue?: DuoyunDatePanelElement['initValue'];
|
|
12
|
+
};
|
|
13
|
+
export type DyDatePanelExpose = {};
|
|
14
|
+
declare global {
|
|
15
|
+
namespace JSX {
|
|
16
|
+
interface IntrinsicElements {
|
|
17
|
+
'dy-date-panel': DyDatePanelProps;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const DyDatePanel: ForwardRefExoticComponent<Omit<DyDatePanelProps, "ref"> & RefAttributes<DyDatePanelExpose>>;
|
|
22
|
+
export default DyDatePanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/date-panel';
|
|
4
|
+
export const DyDatePanel = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
["time", "value", "highlights", "initValue"].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-date-panel", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDatePanel;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDatePickerElement } from '../elements/date-picker';
|
|
4
|
+
export * from '../elements/date-picker';
|
|
5
|
+
export type DyDatePickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDatePickerElement> & {
|
|
6
|
+
placeholder?: DuoyunDatePickerElement['placeholder'];
|
|
7
|
+
time?: DuoyunDatePickerElement['time'];
|
|
8
|
+
clearable?: DuoyunDatePickerElement['clearable'];
|
|
9
|
+
disabled?: DuoyunDatePickerElement['disabled'];
|
|
10
|
+
active?: DuoyunDatePickerElement['active'];
|
|
11
|
+
value?: DuoyunDatePickerElement['value'];
|
|
12
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunDatePickerElement['change']>[0]>) => void;
|
|
13
|
+
'onclear'?: (event: CustomEvent<Parameters<DuoyunDatePickerElement['clear']>[0]>) => void;
|
|
14
|
+
};
|
|
15
|
+
export type DyDatePickerExpose = {
|
|
16
|
+
showPicker: DuoyunDatePickerElement['showPicker'];
|
|
17
|
+
};
|
|
18
|
+
declare global {
|
|
19
|
+
namespace JSX {
|
|
20
|
+
interface IntrinsicElements {
|
|
21
|
+
'dy-date-picker': DyDatePickerProps;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare const DyDatePicker: ForwardRefExoticComponent<Omit<DyDatePickerProps, "ref"> & RefAttributes<DyDatePickerExpose>>;
|
|
26
|
+
export default DyDatePicker;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/date-picker';
|
|
4
|
+
export const DyDatePicker = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {
|
|
8
|
+
showPicker(...args) {
|
|
9
|
+
return elementRef.current.showPicker(...args);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
// React Bug?
|
|
14
|
+
useLayoutEffect(() => {
|
|
15
|
+
const element = elementRef.current;
|
|
16
|
+
["placeholder", "time", "clearable", "disabled", "active", "value"].map(name => {
|
|
17
|
+
element[name] = props[name];
|
|
18
|
+
});
|
|
19
|
+
}, []);
|
|
20
|
+
return React.createElement("dy-date-picker", { ref: elementRef, ...props });
|
|
21
|
+
});
|
|
22
|
+
export default DyDatePicker;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDateRangePanelElement } from '../elements/date-range-panel';
|
|
4
|
+
export * from '../elements/date-range-panel';
|
|
5
|
+
export type DyDateRangePanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDateRangePanelElement> & {
|
|
6
|
+
value?: DuoyunDateRangePanelElement['value'];
|
|
7
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunDateRangePanelElement['change']>[0]>) => void;
|
|
8
|
+
};
|
|
9
|
+
export type DyDateRangePanelExpose = {};
|
|
10
|
+
declare global {
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
'dy-date-range-panel': DyDateRangePanelProps;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const DyDateRangePanel: ForwardRefExoticComponent<Omit<DyDateRangePanelProps, "ref"> & RefAttributes<DyDateRangePanelExpose>>;
|
|
18
|
+
export default DyDateRangePanel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/date-range-panel';
|
|
4
|
+
export const DyDateRangePanel = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
["value"].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-date-range-panel", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDateRangePanel;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDateRangePickerElement } from '../elements/date-range-picker';
|
|
4
|
+
export * from '../elements/date-range-picker';
|
|
5
|
+
export type DyDateRangePickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDateRangePickerElement> & {
|
|
6
|
+
placeholder?: DuoyunDateRangePickerElement['placeholder'];
|
|
7
|
+
clearable?: DuoyunDateRangePickerElement['clearable'];
|
|
8
|
+
disabled?: DuoyunDateRangePickerElement['disabled'];
|
|
9
|
+
active?: DuoyunDateRangePickerElement['active'];
|
|
10
|
+
value?: DuoyunDateRangePickerElement['value'];
|
|
11
|
+
quickRanges?: DuoyunDateRangePickerElement['quickRanges'];
|
|
12
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunDateRangePickerElement['change']>[0]>) => void;
|
|
13
|
+
'onclear'?: (event: CustomEvent<Parameters<DuoyunDateRangePickerElement['clear']>[0]>) => void;
|
|
14
|
+
};
|
|
15
|
+
export type DyDateRangePickerExpose = {
|
|
16
|
+
showPicker: DuoyunDateRangePickerElement['showPicker'];
|
|
17
|
+
};
|
|
18
|
+
declare global {
|
|
19
|
+
namespace JSX {
|
|
20
|
+
interface IntrinsicElements {
|
|
21
|
+
'dy-date-range-picker': DyDateRangePickerProps;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare const DyDateRangePicker: ForwardRefExoticComponent<Omit<DyDateRangePickerProps, "ref"> & RefAttributes<DyDateRangePickerExpose>>;
|
|
26
|
+
export default DyDateRangePicker;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/date-range-picker';
|
|
4
|
+
export const DyDateRangePicker = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {
|
|
8
|
+
showPicker(...args) {
|
|
9
|
+
return elementRef.current.showPicker(...args);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
// React Bug?
|
|
14
|
+
useLayoutEffect(() => {
|
|
15
|
+
const element = elementRef.current;
|
|
16
|
+
["placeholder", "clearable", "disabled", "active", "value", "quickRanges"].map(name => {
|
|
17
|
+
element[name] = props[name];
|
|
18
|
+
});
|
|
19
|
+
}, []);
|
|
20
|
+
return React.createElement("dy-date-range-picker", { ref: elementRef, ...props });
|
|
21
|
+
});
|
|
22
|
+
export default DyDateRangePicker;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDividerElement } from '../elements/divider';
|
|
4
|
+
export * from '../elements/divider';
|
|
5
|
+
export type DyDividerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDividerElement> & {};
|
|
6
|
+
export type DyDividerExpose = {};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'dy-divider': DyDividerProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DyDivider: ForwardRefExoticComponent<Omit<DyDividerProps, "ref"> & RefAttributes<DyDividerExpose>>;
|
|
15
|
+
export default DyDivider;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/divider';
|
|
4
|
+
export const DyDivider = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
[].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-divider", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDivider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDonutChartElement } from '../elements/donut-chart';
|
|
4
|
+
export * from '../elements/donut-chart';
|
|
5
|
+
export type DyDonutChartProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDonutChartElement> & {
|
|
6
|
+
label?: DuoyunDonutChartElement['label'];
|
|
7
|
+
total?: DuoyunDonutChartElement['total'];
|
|
8
|
+
aspectRatio?: DuoyunDonutChartElement['aspectRatio'];
|
|
9
|
+
sequences?: DuoyunDonutChartElement['sequences'];
|
|
10
|
+
};
|
|
11
|
+
export type DyDonutChartExpose = {};
|
|
12
|
+
declare global {
|
|
13
|
+
namespace JSX {
|
|
14
|
+
interface IntrinsicElements {
|
|
15
|
+
'dy-donut-chart': DyDonutChartProps;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const DyDonutChart: ForwardRefExoticComponent<Omit<DyDonutChartProps, "ref"> & RefAttributes<DyDonutChartExpose>>;
|
|
20
|
+
export default DyDonutChart;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/donut-chart';
|
|
4
|
+
export const DyDonutChart = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
["label", "total", "aspectRatio", "sequences"].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-donut-chart", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDonutChart;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDrawerElement } from '../elements/drawer';
|
|
4
|
+
export * from '../elements/drawer';
|
|
5
|
+
export type DyDrawerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDrawerElement> & {};
|
|
6
|
+
export type DyDrawerExpose = {};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'dy-drawer': DyDrawerProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DyDrawer: ForwardRefExoticComponent<Omit<DyDrawerProps, "ref"> & RefAttributes<DyDrawerExpose>>;
|
|
15
|
+
export default DyDrawer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/drawer';
|
|
4
|
+
export const DyDrawer = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
[].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-drawer", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDrawer;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunDropAreaElement } from '../elements/drop-area';
|
|
4
|
+
export * from '../elements/drop-area';
|
|
5
|
+
export type DyDropAreaProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDropAreaElement> & {
|
|
6
|
+
tip?: DuoyunDropAreaElement['tip'];
|
|
7
|
+
accept?: DuoyunDropAreaElement['accept'];
|
|
8
|
+
dropeffect?: DuoyunDropAreaElement['dropeffect'];
|
|
9
|
+
allowDrop?: DuoyunDropAreaElement['allowDrop'];
|
|
10
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['change']>[0]>) => void;
|
|
11
|
+
'onignore'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['ignore']>[0]>) => void;
|
|
12
|
+
'onnodata'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['nodata']>[0]>) => void;
|
|
13
|
+
};
|
|
14
|
+
export type DyDropAreaExpose = {};
|
|
15
|
+
declare global {
|
|
16
|
+
namespace JSX {
|
|
17
|
+
interface IntrinsicElements {
|
|
18
|
+
'dy-drop-area': DyDropAreaProps;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare const DyDropArea: ForwardRefExoticComponent<Omit<DyDropAreaProps, "ref"> & RefAttributes<DyDropAreaExpose>>;
|
|
23
|
+
export default DyDropArea;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/drop-area';
|
|
4
|
+
export const DyDropArea = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
["tip", "accept", "dropeffect", "allowDrop"].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-drop-area", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyDropArea;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunEmptyElement } from '../elements/empty';
|
|
4
|
+
export * from '../elements/empty';
|
|
5
|
+
export type DyEmptyProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunEmptyElement> & {};
|
|
6
|
+
export type DyEmptyExpose = {};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'dy-empty': DyEmptyProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DyEmpty: ForwardRefExoticComponent<Omit<DyEmptyProps, "ref"> & RefAttributes<DyEmptyExpose>>;
|
|
15
|
+
export default DyEmpty;
|
package/react/DyEmpty.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/empty';
|
|
4
|
+
export const DyEmpty = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
[].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-empty", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyEmpty;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunFilePickerElement } from '../elements/file-picker';
|
|
4
|
+
export * from '../elements/file-picker';
|
|
5
|
+
export type DyFilePickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunFilePickerElement> & {
|
|
6
|
+
type?: DuoyunFilePickerElement['type'];
|
|
7
|
+
accept?: DuoyunFilePickerElement['accept'];
|
|
8
|
+
/**@deprecated */
|
|
9
|
+
placeholder?: DuoyunFilePickerElement['placeholder'];
|
|
10
|
+
directory?: DuoyunFilePickerElement['directory'];
|
|
11
|
+
disabled?: DuoyunFilePickerElement['disabled'];
|
|
12
|
+
multiple?: DuoyunFilePickerElement['multiple'];
|
|
13
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunFilePickerElement['change']>[0]>) => void;
|
|
14
|
+
value?: DuoyunFilePickerElement['value'];
|
|
15
|
+
};
|
|
16
|
+
export type DyFilePickerExpose = {
|
|
17
|
+
showPicker: DuoyunFilePickerElement['showPicker'];
|
|
18
|
+
};
|
|
19
|
+
declare global {
|
|
20
|
+
namespace JSX {
|
|
21
|
+
interface IntrinsicElements {
|
|
22
|
+
'dy-file-picker': DyFilePickerProps;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare const DyFilePicker: ForwardRefExoticComponent<Omit<DyFilePickerProps, "ref"> & RefAttributes<DyFilePickerExpose>>;
|
|
27
|
+
export default DyFilePicker;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/file-picker';
|
|
4
|
+
export const DyFilePicker = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {
|
|
8
|
+
showPicker(...args) {
|
|
9
|
+
return elementRef.current.showPicker(...args);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
}, []);
|
|
13
|
+
// React Bug?
|
|
14
|
+
useLayoutEffect(() => {
|
|
15
|
+
const element = elementRef.current;
|
|
16
|
+
["type", "accept", "placeholder", "directory", "disabled", "multiple", "value"].map(name => {
|
|
17
|
+
element[name] = props[name];
|
|
18
|
+
});
|
|
19
|
+
}, []);
|
|
20
|
+
return React.createElement("dy-file-picker", { ref: elementRef, ...props });
|
|
21
|
+
});
|
|
22
|
+
export default DyFilePicker;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunFormElement } from '../elements/form';
|
|
4
|
+
export * from '../elements/form';
|
|
5
|
+
export type DyFormProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunFormElement> & {
|
|
6
|
+
inline?: DuoyunFormElement['inline'];
|
|
7
|
+
'onchange'?: (event: CustomEvent<Parameters<DuoyunFormElement['change']>[0]>) => void;
|
|
8
|
+
};
|
|
9
|
+
export type DyFormExpose = {
|
|
10
|
+
valid: DuoyunFormElement['valid'];
|
|
11
|
+
clearInvalidMessage: DuoyunFormElement['clearInvalidMessage'];
|
|
12
|
+
items: DuoyunFormElement['items'];
|
|
13
|
+
elements: DuoyunFormElement['elements'];
|
|
14
|
+
data: DuoyunFormElement['data'];
|
|
15
|
+
};
|
|
16
|
+
declare global {
|
|
17
|
+
namespace JSX {
|
|
18
|
+
interface IntrinsicElements {
|
|
19
|
+
'dy-form': DyFormProps;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare const DyForm: ForwardRefExoticComponent<Omit<DyFormProps, "ref"> & RefAttributes<DyFormExpose>>;
|
|
24
|
+
export default DyForm;
|
package/react/DyForm.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/form';
|
|
4
|
+
export const DyForm = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {
|
|
8
|
+
valid(...args) {
|
|
9
|
+
return elementRef.current.valid(...args);
|
|
10
|
+
},
|
|
11
|
+
clearInvalidMessage(...args) {
|
|
12
|
+
return elementRef.current.clearInvalidMessage(...args);
|
|
13
|
+
},
|
|
14
|
+
get items() {
|
|
15
|
+
return elementRef.current.items;
|
|
16
|
+
},
|
|
17
|
+
get elements() {
|
|
18
|
+
return elementRef.current.elements;
|
|
19
|
+
},
|
|
20
|
+
get data() {
|
|
21
|
+
return elementRef.current.data;
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}, []);
|
|
25
|
+
// React Bug?
|
|
26
|
+
useLayoutEffect(() => {
|
|
27
|
+
const element = elementRef.current;
|
|
28
|
+
["inline"].map(name => {
|
|
29
|
+
element[name] = props[name];
|
|
30
|
+
});
|
|
31
|
+
}, []);
|
|
32
|
+
return React.createElement("dy-form", { ref: elementRef, ...props });
|
|
33
|
+
});
|
|
34
|
+
export default DyForm;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunFormItemElement } from '../elements/form';
|
|
4
|
+
export * from '../elements/form';
|
|
5
|
+
export type DyFormItemProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunFormItemElement> & {
|
|
6
|
+
type?: DuoyunFormItemElement['type'];
|
|
7
|
+
multiple?: DuoyunFormItemElement['multiple'];
|
|
8
|
+
name?: DuoyunFormItemElement['name'];
|
|
9
|
+
label?: DuoyunFormItemElement['label'];
|
|
10
|
+
placeholder?: DuoyunFormItemElement['placeholder'];
|
|
11
|
+
required?: DuoyunFormItemElement['required'];
|
|
12
|
+
checked?: DuoyunFormItemElement['checked'];
|
|
13
|
+
autofocus?: DuoyunFormItemElement['autofocus'];
|
|
14
|
+
disabled?: DuoyunFormItemElement['disabled'];
|
|
15
|
+
searchable?: DuoyunFormItemElement['searchable'];
|
|
16
|
+
clearable?: DuoyunFormItemElement['clearable'];
|
|
17
|
+
loading?: DuoyunFormItemElement['loading'];
|
|
18
|
+
invalid?: DuoyunFormItemElement['invalid'];
|
|
19
|
+
value?: DuoyunFormItemElement['value'];
|
|
20
|
+
renderLabel?: DuoyunFormItemElement['renderLabel'];
|
|
21
|
+
rows?: DuoyunFormItemElement['rows'];
|
|
22
|
+
step?: DuoyunFormItemElement['step'];
|
|
23
|
+
min?: DuoyunFormItemElement['min'];
|
|
24
|
+
max?: DuoyunFormItemElement['max'];
|
|
25
|
+
/**@deprecated */
|
|
26
|
+
dataList?: DuoyunFormItemElement['dataList'];
|
|
27
|
+
options?: DuoyunFormItemElement['options'];
|
|
28
|
+
adder?: DuoyunFormItemElement['adder'];
|
|
29
|
+
'onitemchange'?: (event: CustomEvent<Parameters<DuoyunFormItemElement['itemchange']>[0]>) => void;
|
|
30
|
+
'onsearch'?: (event: CustomEvent<Parameters<DuoyunFormItemElement['search']>[0]>) => void;
|
|
31
|
+
rules?: DuoyunFormItemElement['rules'];
|
|
32
|
+
};
|
|
33
|
+
export type DyFormItemExpose = {
|
|
34
|
+
focus: DuoyunFormItemElement['focus'];
|
|
35
|
+
clearInvalidMessage: DuoyunFormItemElement['clearInvalidMessage'];
|
|
36
|
+
valid: DuoyunFormItemElement['valid'];
|
|
37
|
+
data: DuoyunFormItemElement['data'];
|
|
38
|
+
};
|
|
39
|
+
declare global {
|
|
40
|
+
namespace JSX {
|
|
41
|
+
interface IntrinsicElements {
|
|
42
|
+
'dy-form-item': DyFormItemProps;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export declare const DyFormItem: ForwardRefExoticComponent<Omit<DyFormItemProps, "ref"> & RefAttributes<DyFormItemExpose>>;
|
|
47
|
+
export default DyFormItem;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/form';
|
|
4
|
+
export const DyFormItem = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {
|
|
8
|
+
focus(...args) {
|
|
9
|
+
return elementRef.current.focus(...args);
|
|
10
|
+
},
|
|
11
|
+
clearInvalidMessage(...args) {
|
|
12
|
+
return elementRef.current.clearInvalidMessage(...args);
|
|
13
|
+
},
|
|
14
|
+
valid(...args) {
|
|
15
|
+
return elementRef.current.valid(...args);
|
|
16
|
+
},
|
|
17
|
+
get data() {
|
|
18
|
+
return elementRef.current.data;
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}, []);
|
|
22
|
+
// React Bug?
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
const element = elementRef.current;
|
|
25
|
+
["type", "multiple", "name", "label", "placeholder", "required", "checked", "autofocus", "disabled", "searchable", "clearable", "loading", "invalid", "value", "renderLabel", "rows", "step", "min", "max", "dataList", "options", "adder", "rules"].map(name => {
|
|
26
|
+
element[name] = props[name];
|
|
27
|
+
});
|
|
28
|
+
}, []);
|
|
29
|
+
return React.createElement("dy-form-item", { ref: elementRef, ...props });
|
|
30
|
+
});
|
|
31
|
+
export default DyFormItem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { DuoyunFormItemInlineGroupElement } from '../elements/form';
|
|
4
|
+
export * from '../elements/form';
|
|
5
|
+
export type DyFormItemInlineGroupProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunFormItemInlineGroupElement> & {};
|
|
6
|
+
export type DyFormItemInlineGroupExpose = {};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'dy-form-item-inline-group': DyFormItemInlineGroupProps;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const DyFormItemInlineGroup: ForwardRefExoticComponent<Omit<DyFormItemInlineGroupProps, "ref"> & RefAttributes<DyFormItemInlineGroupExpose>>;
|
|
15
|
+
export default DyFormItemInlineGroup;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef, useImperativeHandle, useRef, useLayoutEffect } from 'react';
|
|
3
|
+
export * from '../elements/form';
|
|
4
|
+
export const DyFormItemInlineGroup = forwardRef(function (props, ref) {
|
|
5
|
+
const elementRef = useRef(null);
|
|
6
|
+
useImperativeHandle(ref, () => {
|
|
7
|
+
return {};
|
|
8
|
+
}, []);
|
|
9
|
+
// React Bug?
|
|
10
|
+
useLayoutEffect(() => {
|
|
11
|
+
const element = elementRef.current;
|
|
12
|
+
[].map(name => {
|
|
13
|
+
element[name] = props[name];
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
return React.createElement("dy-form-item-inline-group", { ref: elementRef, ...props });
|
|
17
|
+
});
|
|
18
|
+
export default DyFormItemInlineGroup;
|