feffery_antd_components 0.3.0-rc9 → 0.3.1
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/DESCRIPTION +1 -1
- package/MANIFEST.in +3 -4
- package/Project.toml +1 -1
- package/README-en_US.md +2 -2
- package/README.md +2 -2
- package/bug_fix.py +35 -41
- package/feffery_antd_components/AntdAccordion.py +55 -30
- package/feffery_antd_components/AntdAffix.py +28 -14
- package/feffery_antd_components/AntdAlert.py +37 -18
- package/feffery_antd_components/AntdAnchor.py +10 -4
- package/feffery_antd_components/AntdAvatar.py +44 -22
- package/feffery_antd_components/AntdAvatarGroup.py +34 -16
- package/feffery_antd_components/AntdBackTop.py +31 -14
- package/feffery_antd_components/AntdBadge.py +44 -22
- package/feffery_antd_components/AntdBreadcrumb.py +10 -4
- package/feffery_antd_components/AntdButton.py +22 -10
- package/feffery_antd_components/AntdCalendar.py +65 -30
- package/feffery_antd_components/AntdCard.py +58 -31
- package/feffery_antd_components/AntdCardGrid.py +24 -14
- package/feffery_antd_components/AntdCardMeta.py +26 -13
- package/feffery_antd_components/AntdCarousel.py +47 -20
- package/feffery_antd_components/AntdCascader.py +78 -52
- package/feffery_antd_components/AntdCenter.py +10 -4
- package/feffery_antd_components/AntdCheckCard.py +41 -32
- package/feffery_antd_components/AntdCheckCardGroup.py +43 -33
- package/feffery_antd_components/AntdCheckableTag.py +27 -14
- package/feffery_antd_components/AntdCheckbox.py +41 -32
- package/feffery_antd_components/AntdCheckboxGroup.py +43 -33
- package/feffery_antd_components/AntdCol.py +10 -4
- package/feffery_antd_components/AntdCollapse.py +40 -31
- package/feffery_antd_components/AntdColorPicker.py +39 -29
- package/feffery_antd_components/AntdComment.py +68 -32
- package/feffery_antd_components/AntdCompact.py +10 -4
- package/feffery_antd_components/AntdConfigProvider.py +30 -20
- package/feffery_antd_components/AntdContent.py +10 -4
- package/feffery_antd_components/AntdCopyText.py +28 -14
- package/feffery_antd_components/AntdCountdown.py +37 -18
- package/feffery_antd_components/AntdCustomSkeleton.py +40 -18
- package/feffery_antd_components/AntdDatePicker.py +98 -61
- package/feffery_antd_components/AntdDateRangePicker.py +98 -61
- package/feffery_antd_components/AntdDescriptionItem.py +29 -16
- package/feffery_antd_components/AntdDescriptions.py +52 -26
- package/feffery_antd_components/AntdDivider.py +15 -6
- package/feffery_antd_components/AntdDraggablePanel.py +21 -14
- package/feffery_antd_components/AntdDraggerUpload.py +161 -93
- package/feffery_antd_components/AntdDrawer.py +76 -51
- package/feffery_antd_components/AntdDropdown.py +10 -4
- package/feffery_antd_components/AntdEditorLayout.py +34 -28
- package/feffery_antd_components/AntdEmpty.py +30 -15
- package/feffery_antd_components/AntdFlex.py +12 -6
- package/feffery_antd_components/AntdFloatButton.py +10 -4
- package/feffery_antd_components/AntdFloatButtonGroup.py +18 -6
- package/feffery_antd_components/AntdFooter.py +10 -4
- package/feffery_antd_components/AntdForm.py +52 -29
- package/feffery_antd_components/AntdFormItem.py +60 -30
- package/feffery_antd_components/AntdHeader.py +10 -4
- package/feffery_antd_components/AntdIcon.py +10 -4
- package/feffery_antd_components/AntdImage.py +66 -22
- package/feffery_antd_components/AntdImageGroup.py +56 -20
- package/feffery_antd_components/AntdInput.py +100 -65
- package/feffery_antd_components/AntdInputNumber.py +74 -50
- package/feffery_antd_components/AntdLayout.py +10 -4
- package/feffery_antd_components/AntdMentions.py +59 -33
- package/feffery_antd_components/AntdMenu.py +10 -4
- package/feffery_antd_components/AntdMessage.py +26 -14
- package/feffery_antd_components/AntdModal.py +108 -51
- package/feffery_antd_components/AntdNotification.py +33 -19
- package/feffery_antd_components/AntdOTP.py +23 -26
- package/feffery_antd_components/AntdPageHeader.py +10 -4
- package/feffery_antd_components/AntdPagination.py +10 -4
- package/feffery_antd_components/AntdParagraph.py +11 -5
- package/feffery_antd_components/AntdPictureUpload.py +175 -87
- package/feffery_antd_components/AntdPopconfirm.py +110 -47
- package/feffery_antd_components/AntdPopover.py +54 -28
- package/feffery_antd_components/AntdPopupCard.py +46 -21
- package/feffery_antd_components/AntdProgress.py +73 -34
- package/feffery_antd_components/AntdQRCode.py +44 -26
- package/feffery_antd_components/AntdRadioGroup.py +55 -38
- package/feffery_antd_components/AntdRate.py +45 -34
- package/feffery_antd_components/AntdResult.py +29 -14
- package/feffery_antd_components/AntdRibbon.py +28 -14
- package/feffery_antd_components/AntdRow.py +10 -4
- package/feffery_antd_components/AntdSegmented.py +50 -36
- package/feffery_antd_components/AntdSegmentedColoring.py +74 -32
- package/feffery_antd_components/AntdSelect.py +118 -71
- package/feffery_antd_components/AntdSider.py +12 -9
- package/feffery_antd_components/AntdSkeleton.py +61 -28
- package/feffery_antd_components/AntdSkeletonAvatar.py +27 -13
- package/feffery_antd_components/AntdSkeletonButton.py +28 -14
- package/feffery_antd_components/AntdSkeletonImage.py +20 -10
- package/feffery_antd_components/AntdSkeletonInput.py +24 -12
- package/feffery_antd_components/AntdSlider.py +67 -48
- package/feffery_antd_components/AntdSpace.py +10 -4
- package/feffery_antd_components/AntdSpin.py +52 -23
- package/feffery_antd_components/AntdSpoiler.py +40 -20
- package/feffery_antd_components/AntdStatistic.py +36 -18
- package/feffery_antd_components/AntdSteps.py +10 -4
- package/feffery_antd_components/AntdSwitch.py +45 -34
- package/feffery_antd_components/AntdTable.py +538 -254
- package/feffery_antd_components/AntdTabs.py +105 -62
- package/feffery_antd_components/AntdTag.py +36 -18
- package/feffery_antd_components/AntdText.py +10 -4
- package/feffery_antd_components/AntdTimePicker.py +75 -49
- package/feffery_antd_components/AntdTimeRangePicker.py +75 -49
- package/feffery_antd_components/AntdTimeline.py +40 -20
- package/feffery_antd_components/AntdTitle.py +10 -4
- package/feffery_antd_components/AntdTooltip.py +53 -26
- package/feffery_antd_components/AntdTour.py +50 -43
- package/feffery_antd_components/AntdTransfer.py +74 -49
- package/feffery_antd_components/AntdTree.py +120 -65
- package/feffery_antd_components/AntdTreeSelect.py +95 -58
- package/feffery_antd_components/AntdUpload.py +169 -81
- package/feffery_antd_components/AntdWatermark.py +45 -24
- package/feffery_antd_components/Fragment.py +4 -4
- package/feffery_antd_components/async-antd_table.js +18 -60
- package/feffery_antd_components/async-data_display.js +3 -18
- package/feffery_antd_components/async-data_entry.js +34 -59
- package/feffery_antd_components/async-pro_editor.js +11 -1
- package/feffery_antd_components/async-upload.js +17 -21
- package/feffery_antd_components/feffery_antd_components.min.js +62 -156
- package/feffery_antd_components/metadata.json +5932 -3360
- package/feffery_antd_components/package-info.json +6 -5
- package/feffery_antd_components/utils.py +81 -248
- package/package.json +6 -5
- package/perf_test.py +87 -8
- package/ruff.toml +4 -0
- package/src/jl/'feffery'_antdaccordion.jl +31 -31
- package/src/jl/'feffery'_antdaffix.jl +13 -10
- package/src/jl/'feffery'_antdalert.jl +21 -14
- package/src/jl/'feffery'_antdanchor.jl +3 -1
- package/src/jl/'feffery'_antdavatar.jl +23 -18
- package/src/jl/'feffery'_antdavatargroup.jl +17 -12
- package/src/jl/'feffery'_antdbacktop.jl +17 -11
- package/src/jl/'feffery'_antdbadge.jl +24 -18
- package/src/jl/'feffery'_antdbreadcrumb.jl +3 -1
- package/src/jl/'feffery'_antdbutton.jl +10 -4
- package/src/jl/'feffery'_antdcalendar.jl +33 -27
- package/src/jl/'feffery'_antdcard.jl +31 -26
- package/src/jl/'feffery'_antdcardgrid.jl +12 -9
- package/src/jl/'feffery'_antdcardmeta.jl +11 -9
- package/src/jl/'feffery'_antdcarousel.jl +33 -18
- package/src/jl/'feffery'_antdcascader.jl +56 -50
- package/src/jl/'feffery'_antdcenter.jl +3 -1
- package/src/jl/'feffery'_antdcheckabletag.jl +13 -11
- package/src/jl/'feffery'_antdcheckbox.jl +27 -29
- package/src/jl/'feffery'_antdcheckboxgroup.jl +26 -30
- package/src/jl/'feffery'_antdcheckcard.jl +26 -29
- package/src/jl/'feffery'_antdcheckcardgroup.jl +29 -30
- package/src/jl/'feffery'_antdcol.jl +3 -1
- package/src/jl/'feffery'_antdcollapse.jl +26 -27
- package/src/jl/'feffery'_antdcolorpicker.jl +33 -30
- package/src/jl/'feffery'_antdcomment.jl +40 -29
- package/src/jl/'feffery'_antdcompact.jl +3 -1
- package/src/jl/'feffery'_antdconfigprovider.jl +24 -22
- package/src/jl/'feffery'_antdcontent.jl +3 -1
- package/src/jl/'feffery'_antdcopytext.jl +13 -10
- package/src/jl/'feffery'_antdcountdown.jl +17 -14
- package/src/jl/'feffery'_antdcustomskeleton.jl +22 -16
- package/src/jl/'feffery'_antddatepicker.jl +70 -60
- package/src/jl/'feffery'_antddaterangepicker.jl +69 -60
- package/src/jl/'feffery'_antddescriptionitem.jl +14 -11
- package/src/jl/'feffery'_antddescriptions.jl +29 -22
- package/src/jl/'feffery'_antddivider.jl +5 -2
- package/src/jl/'feffery'_antddraggablepanel.jl +14 -12
- package/src/jl/'feffery'_antddraggerupload.jl +92 -84
- package/src/jl/'feffery'_antddrawer.jl +49 -43
- package/src/jl/'feffery'_antddropdown.jl +3 -1
- package/src/jl/'feffery'_antdeditorlayout.jl +26 -24
- package/src/jl/'feffery'_antdempty.jl +15 -11
- package/src/jl/'feffery'_antdflex.jl +4 -2
- package/src/jl/'feffery'_antdfloatbutton.jl +3 -1
- package/src/jl/'feffery'_antdfloatbuttongroup.jl +6 -1
- package/src/jl/'feffery'_antdfooter.jl +3 -1
- package/src/jl/'feffery'_antdform.jl +30 -25
- package/src/jl/'feffery'_antdformitem.jl +33 -27
- package/src/jl/'feffery'_antdheader.jl +3 -1
- package/src/jl/'feffery'_antdicon.jl +3 -1
- package/src/jl/'feffery'_antdimage.jl +33 -17
- package/src/jl/'feffery'_antdimagegroup.jl +31 -15
- package/src/jl/'feffery'_antdinput.jl +71 -64
- package/src/jl/'feffery'_antdinputnumber.jl +49 -48
- package/src/jl/'feffery'_antdlayout.jl +3 -1
- package/src/jl/'feffery'_antdmentions.jl +37 -31
- package/src/jl/'feffery'_antdmenu.jl +3 -1
- package/src/jl/'feffery'_antdmessage.jl +16 -13
- package/src/jl/'feffery'_antdmodal.jl +80 -48
- package/src/jl/'feffery'_antdnotification.jl +25 -20
- package/src/jl/'feffery'_antdotp.jl +16 -24
- package/src/jl/'feffery'_antdpageheader.jl +3 -1
- package/src/jl/'feffery'_antdpagination.jl +3 -1
- package/src/jl/'feffery'_antdparagraph.jl +4 -2
- package/src/jl/'feffery'_antdpictureupload.jl +110 -83
- package/src/jl/'feffery'_antdpopconfirm.jl +73 -41
- package/src/jl/'feffery'_antdpopover.jl +34 -23
- package/src/jl/'feffery'_antdpopupcard.jl +28 -18
- package/src/jl/'feffery'_antdprogress.jl +44 -30
- package/src/jl/'feffery'_antdqrcode.jl +36 -29
- package/src/jl/'feffery'_antdradiogroup.jl +35 -35
- package/src/jl/'feffery'_antdrate.jl +30 -31
- package/src/jl/'feffery'_antdresult.jl +13 -10
- package/src/jl/'feffery'_antdribbon.jl +13 -10
- package/src/jl/'feffery'_antdrow.jl +3 -1
- package/src/jl/'feffery'_antdsegmented.jl +31 -32
- package/src/jl/'feffery'_antdsegmentedcoloring.jl +45 -30
- package/src/jl/'feffery'_antdselect.jl +78 -69
- package/src/jl/'feffery'_antdsider.jl +4 -4
- package/src/jl/'feffery'_antdskeleton.jl +39 -26
- package/src/jl/'feffery'_antdskeletonavatar.jl +14 -9
- package/src/jl/'feffery'_antdskeletonbutton.jl +16 -10
- package/src/jl/'feffery'_antdskeletonimage.jl +8 -6
- package/src/jl/'feffery'_antdskeletoninput.jl +12 -8
- package/src/jl/'feffery'_antdslider.jl +42 -44
- package/src/jl/'feffery'_antdspace.jl +3 -1
- package/src/jl/'feffery'_antdspin.jl +29 -19
- package/src/jl/'feffery'_antdspoiler.jl +23 -16
- package/src/jl/'feffery'_antdstatistic.jl +17 -14
- package/src/jl/'feffery'_antdsteps.jl +3 -1
- package/src/jl/'feffery'_antdswitch.jl +29 -31
- package/src/jl/'feffery'_antdtable.jl +352 -277
- package/src/jl/'feffery'_antdtabs.jl +63 -58
- package/src/jl/'feffery'_antdtag.jl +19 -14
- package/src/jl/'feffery'_antdtext.jl +3 -1
- package/src/jl/'feffery'_antdtimeline.jl +19 -16
- package/src/jl/'feffery'_antdtimepicker.jl +56 -48
- package/src/jl/'feffery'_antdtimerangepicker.jl +55 -48
- package/src/jl/'feffery'_antdtitle.jl +3 -1
- package/src/jl/'feffery'_antdtooltip.jl +33 -22
- package/src/jl/'feffery'_antdtour.jl +46 -48
- package/src/jl/'feffery'_antdtransfer.jl +47 -44
- package/src/jl/'feffery'_antdtree.jl +75 -62
- package/src/jl/'feffery'_antdtreeselect.jl +68 -56
- package/src/jl/'feffery'_antdupload.jl +100 -79
- package/src/jl/'feffery'_antdwatermark.jl +25 -19
- package/src/jl/'feffery'_fragment.jl +4 -4
- package/src/lib/components/dataDisplay/AntdAccordion.react.js +84 -27
- package/src/lib/components/dataDisplay/AntdAvatar.react.js +68 -31
- package/src/lib/components/dataDisplay/AntdAvatarGroup.react.js +50 -22
- package/src/lib/components/dataDisplay/AntdBadge.react.js +69 -25
- package/src/lib/components/dataDisplay/AntdCarousel.react.js +84 -20
- package/src/lib/components/dataDisplay/AntdCheckableTag.react.js +40 -14
- package/src/lib/components/dataDisplay/AntdCollapse.react.js +71 -32
- package/src/lib/components/dataDisplay/AntdComment.react.js +106 -29
- package/src/lib/components/dataDisplay/AntdCountdown.react.js +54 -18
- package/src/lib/components/dataDisplay/AntdEmpty.react.js +46 -13
- package/src/lib/components/dataDisplay/AntdImage.react.js +100 -24
- package/src/lib/components/dataDisplay/AntdImageGroup.react.js +78 -18
- package/src/lib/components/dataDisplay/AntdPopover.react.js +88 -31
- package/src/lib/components/dataDisplay/AntdQRCode.react.js +64 -34
- package/src/lib/components/dataDisplay/AntdRibbon.react.js +42 -13
- package/src/lib/components/dataDisplay/AntdSegmented.react.js +80 -46
- package/src/lib/components/dataDisplay/AntdSpoiler.react.js +64 -15
- package/src/lib/components/dataDisplay/AntdStatistic.react.js +65 -23
- package/src/lib/components/dataDisplay/AntdTable.react.js +939 -414
- package/src/lib/components/dataDisplay/AntdTabs.react.js +162 -82
- package/src/lib/components/dataDisplay/AntdTag.react.js +56 -19
- package/src/lib/components/dataDisplay/AntdTimeline.react.js +60 -29
- package/src/lib/components/dataDisplay/AntdTooltip.react.js +87 -29
- package/src/lib/components/dataDisplay/AntdTree.react.js +325 -147
- package/src/lib/components/dataDisplay/card/AntdCard.react.js +87 -38
- package/src/lib/components/dataDisplay/card/AntdCardGrid.react.js +35 -12
- package/src/lib/components/dataDisplay/card/AntdCardMeta.react.js +38 -12
- package/src/lib/components/dataDisplay/descriptions/AntdDescriptionItem.react.js +43 -14
- package/src/lib/components/dataDisplay/descriptions/AntdDescriptions.react.js +82 -32
- package/src/lib/components/dataEntry/AntdCalendar.react.js +92 -30
- package/src/lib/components/dataEntry/AntdCascader.react.js +162 -84
- package/src/lib/components/dataEntry/AntdCheckbox.react.js +65 -34
- package/src/lib/components/dataEntry/AntdCheckboxGroup.react.js +66 -36
- package/src/lib/components/dataEntry/AntdColorPicker.react.js +56 -42
- package/src/lib/components/dataEntry/AntdDatePicker.react.js +150 -73
- package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +149 -72
- package/src/lib/components/dataEntry/AntdInput.react.js +158 -68
- package/src/lib/components/dataEntry/AntdInputNumber.react.js +119 -55
- package/src/lib/components/dataEntry/AntdMentions.react.js +92 -37
- package/src/lib/components/dataEntry/AntdOTP.react.js +28 -25
- package/src/lib/components/dataEntry/AntdRadioGroup.react.js +86 -43
- package/src/lib/components/dataEntry/AntdRate.react.js +72 -35
- package/src/lib/components/dataEntry/AntdSegmentedColoring.react.js +117 -32
- package/src/lib/components/dataEntry/AntdSelect.react.js +185 -100
- package/src/lib/components/dataEntry/AntdSlider.react.js +101 -52
- package/src/lib/components/dataEntry/AntdSwitch.react.js +71 -36
- package/src/lib/components/dataEntry/AntdTimePicker.react.js +125 -56
- package/src/lib/components/dataEntry/AntdTimeRangePicker.react.js +126 -57
- package/src/lib/components/dataEntry/AntdTransfer.react.js +116 -51
- package/src/lib/components/dataEntry/AntdTreeSelect.react.js +211 -98
- package/src/lib/components/dataEntry/check-card/AntdCheckCard.react.js +64 -33
- package/src/lib/components/dataEntry/check-card/AntdCheckCardGroup.react.js +69 -36
- package/src/lib/components/dataEntry/form/AntdForm.react.js +84 -36
- package/src/lib/components/dataEntry/form/AntdFormItem.react.js +94 -38
- package/src/lib/components/dataEntry/upload/AntdDraggerUpload.react.js +257 -138
- package/src/lib/components/dataEntry/upload/AntdPictureUpload.react.js +287 -118
- package/src/lib/components/dataEntry/upload/AntdUpload.react.js +268 -111
- package/src/lib/components/feedback/AntdAlert.react.js +74 -29
- package/src/lib/components/feedback/AntdDrawer.react.js +142 -66
- package/src/lib/components/feedback/AntdMessage.react.js +46 -18
- package/src/lib/components/feedback/AntdModal.react.js +201 -63
- package/src/lib/components/feedback/AntdNotification.react.js +58 -28
- package/src/lib/components/feedback/AntdPopconfirm.react.js +201 -53
- package/src/lib/components/feedback/AntdPopupCard.react.js +87 -29
- package/src/lib/components/feedback/AntdProgress.react.js +120 -45
- package/src/lib/components/feedback/AntdResult.react.js +51 -18
- package/src/lib/components/feedback/AntdSpin.react.js +111 -32
- package/src/lib/components/feedback/skeleton/AntdCustomSkeleton.react.js +71 -26
- package/src/lib/components/feedback/skeleton/AntdSkeleton.react.js +112 -46
- package/src/lib/components/feedback/skeleton/AntdSkeletonAvatar.react.js +49 -19
- package/src/lib/components/feedback/skeleton/AntdSkeletonButton.react.js +52 -16
- package/src/lib/components/feedback/skeleton/AntdSkeletonImage.react.js +36 -12
- package/src/lib/components/feedback/skeleton/AntdSkeletonInput.react.js +45 -15
- package/src/lib/components/general/AntdButton.react.js +37 -6
- package/src/lib/components/general/AntdFloatButton.react.js +15 -1
- package/src/lib/components/general/AntdFloatButtonGroup.react.js +30 -0
- package/src/lib/components/general/AntdIcon.react.js +17 -2
- package/src/lib/components/general/typography/AntdParagraph.react.js +19 -2
- package/src/lib/components/general/typography/AntdText.react.js +15 -1
- package/src/lib/components/general/typography/AntdTitle.react.js +15 -1
- package/src/lib/components/icons.react.js +3 -1
- package/src/lib/components/layout/AntdCenter.react.js +15 -1
- package/src/lib/components/layout/AntdCompact.react.js +15 -1
- package/src/lib/components/layout/AntdContent.react.js +15 -1
- package/src/lib/components/layout/AntdDivider.react.js +25 -2
- package/src/lib/components/layout/AntdFlex.react.js +20 -3
- package/src/lib/components/layout/AntdFooter.react.js +15 -1
- package/src/lib/components/layout/AntdHeader.react.js +15 -1
- package/src/lib/components/layout/AntdLayout.react.js +15 -1
- package/src/lib/components/layout/AntdSider.react.js +15 -11
- package/src/lib/components/layout/AntdSpace.react.js +23 -3
- package/src/lib/components/layout/grid/AntdCol.react.js +15 -1
- package/src/lib/components/layout/grid/AntdRow.react.js +15 -1
- package/src/lib/components/navigation/AntdAnchor.react.js +13 -0
- package/src/lib/components/navigation/AntdBreadcrumb.react.js +15 -1
- package/src/lib/components/navigation/AntdDropdown.react.js +15 -1
- package/src/lib/components/navigation/AntdMenu.react.js +15 -0
- package/src/lib/components/navigation/AntdPageHeader.react.js +15 -1
- package/src/lib/components/navigation/AntdPagination.react.js +13 -0
- package/src/lib/components/navigation/AntdSteps.react.js +13 -0
- package/src/lib/components/other/AntdAffix.react.js +52 -19
- package/src/lib/components/other/AntdBackTop.react.js +64 -21
- package/src/lib/components/other/AntdConfigProvider.react.js +267 -0
- package/src/lib/components/other/AntdCopyText.react.js +54 -18
- package/src/lib/components/other/AntdTour.react.js +83 -95
- package/src/lib/components/other/AntdWatermark.react.js +76 -24
- package/src/lib/components/other/Fragment.react.js +9 -6
- package/src/lib/components/proEditor/AntdDraggablePanel.react.js +27 -15
- package/src/lib/components/proEditor/AntdEditorLayout.react.js +39 -27
- package/src/lib/components/styles.css +332 -0
- package/src/lib/fragments/AntdTable.react.js +191 -79
- package/src/lib/fragments/dataDisplay/AntdAccordion.react.js +11 -3
- package/src/lib/fragments/dataDisplay/AntdAvatar.react.js +17 -4
- package/src/lib/fragments/dataDisplay/AntdAvatarGroup.react.js +12 -3
- package/src/lib/fragments/dataDisplay/AntdBadge.react.js +11 -3
- package/src/lib/fragments/dataDisplay/AntdCarousel.react.js +19 -4
- package/src/lib/fragments/dataDisplay/AntdCheckableTag.react.js +15 -5
- package/src/lib/fragments/dataDisplay/AntdComment.react.js +16 -7
- package/src/lib/fragments/dataDisplay/AntdCountdown.react.js +17 -6
- package/src/lib/fragments/dataDisplay/AntdEmpty.react.js +14 -3
- package/src/lib/fragments/dataDisplay/AntdImage.react.js +106 -18
- package/src/lib/fragments/dataDisplay/AntdImageGroup.react.js +44 -7
- package/src/lib/fragments/dataDisplay/AntdPopover.react.js +15 -3
- package/src/lib/fragments/dataDisplay/AntdQRCode.react.js +13 -4
- package/src/lib/fragments/dataDisplay/AntdRibbon.react.js +11 -3
- package/src/lib/fragments/dataDisplay/AntdSegmented.react.js +12 -4
- package/src/lib/fragments/dataDisplay/AntdSpoiler.react.js +13 -3
- package/src/lib/fragments/dataDisplay/AntdTabs.react.js +26 -5
- package/src/lib/fragments/dataDisplay/AntdTag.react.js +15 -5
- package/src/lib/fragments/dataDisplay/AntdTimeline.react.js +13 -3
- package/src/lib/fragments/dataDisplay/AntdTooltip.react.js +18 -4
- package/src/lib/fragments/dataDisplay/AntdTree.react.js +51 -10
- package/src/lib/fragments/dataDisplay/card/AntdCard.react.js +14 -4
- package/src/lib/fragments/dataDisplay/card/AntdCardGrid.react.js +14 -4
- package/src/lib/fragments/dataDisplay/card/AntdCardMeta.react.js +14 -3
- package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptionItem.react.js +13 -4
- package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptions.react.js +17 -4
- package/src/lib/fragments/dataEntry/AntdCalendar.react.js +61 -20
- package/src/lib/fragments/dataEntry/AntdCascader.react.js +47 -19
- package/src/lib/fragments/dataEntry/AntdCheckbox.react.js +29 -18
- package/src/lib/fragments/dataEntry/AntdCheckboxGroup.react.js +30 -18
- package/src/lib/fragments/dataEntry/AntdColorPicker.react.js +54 -20
- package/src/lib/fragments/dataEntry/AntdDatePicker.react.js +59 -25
- package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +78 -42
- package/src/lib/fragments/dataEntry/AntdInput.react.js +99 -30
- package/src/lib/fragments/dataEntry/AntdInputNumber.react.js +36 -19
- package/src/lib/fragments/dataEntry/AntdMentions.react.js +37 -17
- package/src/lib/fragments/dataEntry/AntdOTP.react.js +32 -19
- package/src/lib/fragments/dataEntry/AntdRadioGroup.react.js +47 -21
- package/src/lib/fragments/dataEntry/AntdRate.react.js +31 -17
- package/src/lib/fragments/dataEntry/AntdSegmentedColoring.react.js +26 -6
- package/src/lib/fragments/dataEntry/AntdSelect.react.js +57 -33
- package/src/lib/fragments/dataEntry/AntdSlider.react.js +34 -18
- package/src/lib/fragments/dataEntry/AntdSwitch.react.js +31 -19
- package/src/lib/fragments/dataEntry/AntdTimePicker.react.js +37 -19
- package/src/lib/fragments/dataEntry/AntdTimeRangePicker.react.js +48 -24
- package/src/lib/fragments/dataEntry/AntdTransfer.react.js +29 -17
- package/src/lib/fragments/dataEntry/AntdTreeSelect.react.js +39 -17
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCard.react.js +21 -10
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCardGroup.react.js +21 -10
- package/src/lib/fragments/dataEntry/form/AntdForm.react.js +65 -15
- package/src/lib/fragments/dataEntry/form/AntdFormItem.react.js +23 -6
- package/src/lib/fragments/proEditor/AntdDraggablePanel.react.js +15 -5
- package/src/lib/fragments/proEditor/AntdEditorLayout.react.js +14 -4
- package/src/lib/fragments/upload/AntdDraggerUpload.react.js +98 -21
- package/src/lib/fragments/upload/AntdPictureUpload.react.js +51 -19
- package/src/lib/fragments/upload/AntdUpload.react.js +97 -23
- package/src/lib/index.js +3 -3
- package/src/lib/store/formStore.js +25 -1
- package/usage.py +3 -35
- package/webpack.config.js +3 -14
- package/src/lib/components/other/AntdConfigProvider.js +0 -250
|
@@ -5,17 +5,27 @@ from dash.development.base_component import Component, _explicitize_args
|
|
|
5
5
|
|
|
6
6
|
class AntdAvatarGroup(Component):
|
|
7
7
|
"""An AntdAvatarGroup component.
|
|
8
|
-
|
|
8
|
+
头像组合组件AntdAvatarGroup
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
|
-
- children (a list of or a singular dash component, string or number; optional)
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
13
|
+
组件型,传入组内各`AntdAvatar`组件.
|
|
14
|
+
|
|
15
|
+
- id (string; optional):
|
|
16
|
+
组件唯一id.
|
|
17
|
+
|
|
18
|
+
- aria-* (string; optional):
|
|
19
|
+
`aria-*`格式属性通配.
|
|
13
20
|
|
|
14
|
-
-
|
|
21
|
+
- className (string | dict; optional):
|
|
22
|
+
当前组件css类名,支持[动态css](/advanced-classname).
|
|
15
23
|
|
|
16
|
-
-
|
|
24
|
+
- data-* (string; optional):
|
|
25
|
+
`data-*`格式属性通配.
|
|
17
26
|
|
|
18
|
-
- key (string; optional)
|
|
27
|
+
- key (string; optional):
|
|
28
|
+
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
19
29
|
|
|
20
30
|
- loading_state (dict; optional)
|
|
21
31
|
|
|
@@ -30,15 +40,22 @@ Keyword arguments:
|
|
|
30
40
|
- prop_name (string; optional):
|
|
31
41
|
Holds which property is loading.
|
|
32
42
|
|
|
33
|
-
- maxCount (number; optional)
|
|
43
|
+
- maxCount (number; optional):
|
|
44
|
+
最多显示的头像个数,默认无限制.
|
|
34
45
|
|
|
35
|
-
- maxPopoverPlacement (a value equal to: 'top', 'bottom'; default 'top')
|
|
46
|
+
- maxPopoverPlacement (a value equal to: 'top', 'bottom'; default 'top'):
|
|
47
|
+
超出`maxCount`数量限制之外的头像气泡卡片弹出方位,可选项有`'top'`、`'bottom'` 默认值:`'top'`.
|
|
36
48
|
|
|
37
|
-
- maxPopoverTrigger (a value equal to: 'hover', 'click'; default 'hover')
|
|
49
|
+
- maxPopoverTrigger (a value equal to: 'hover', 'click'; default 'hover'):
|
|
50
|
+
超出`maxCount`数量限制之外的头像气泡卡片弹出触发方式,可选项有`'hover'`、`'click'`
|
|
51
|
+
默认值:`'hover'`.
|
|
38
52
|
|
|
39
|
-
- maxStyle (dict; optional)
|
|
53
|
+
- maxStyle (dict; optional):
|
|
54
|
+
头像省略部分css样式.
|
|
40
55
|
|
|
41
|
-
- size (dict; default 'default')
|
|
56
|
+
- size (dict; default 'default'):
|
|
57
|
+
统一设置内部头像尺寸规格,传入数值型表示像素尺寸,传入字符型表示内置规格,可选项有`'large'`、`'small'`、`'default'`,支持响应式断点
|
|
58
|
+
默认值:`'default'`.
|
|
42
59
|
|
|
43
60
|
`size` is a number | a value equal to: 'large', 'small', 'default'
|
|
44
61
|
| dict with keys:
|
|
@@ -55,17 +72,18 @@ Keyword arguments:
|
|
|
55
72
|
|
|
56
73
|
- xxl (number; optional)
|
|
57
74
|
|
|
58
|
-
- style (dict; optional)
|
|
75
|
+
- style (dict; optional):
|
|
76
|
+
当前组件css样式."""
|
|
59
77
|
_children_props = []
|
|
60
78
|
_base_nodes = ['children']
|
|
61
79
|
_namespace = 'feffery_antd_components'
|
|
62
80
|
_type = 'AntdAvatarGroup'
|
|
63
81
|
@_explicitize_args
|
|
64
|
-
def __init__(self, children=None, id=Component.UNDEFINED,
|
|
65
|
-
self._prop_names = ['children', 'id', 'className', 'key', 'loading_state', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'style']
|
|
66
|
-
self._valid_wildcard_attributes = []
|
|
67
|
-
self.available_properties = ['children', 'id', 'className', 'key', 'loading_state', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'style']
|
|
68
|
-
self.available_wildcard_properties = []
|
|
82
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, maxCount=Component.UNDEFINED, maxPopoverPlacement=Component.UNDEFINED, maxPopoverTrigger=Component.UNDEFINED, maxStyle=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
83
|
+
self._prop_names = ['children', 'id', 'aria-*', 'className', 'data-*', 'key', 'loading_state', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'style']
|
|
84
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
85
|
+
self.available_properties = ['children', 'id', 'aria-*', 'className', 'data-*', 'key', 'loading_state', 'maxCount', 'maxPopoverPlacement', 'maxPopoverTrigger', 'maxStyle', 'size', 'style']
|
|
86
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
69
87
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
70
88
|
_locals = locals()
|
|
71
89
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
@@ -5,21 +5,33 @@ from dash.development.base_component import Component, _explicitize_args
|
|
|
5
5
|
|
|
6
6
|
class AntdBackTop(Component):
|
|
7
7
|
"""An AntdBackTop component.
|
|
8
|
-
|
|
8
|
+
回到顶部组件AntdBackTop
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
|
-
- id (string; optional)
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件唯一id.
|
|
14
|
+
|
|
15
|
+
- aria-* (string; optional):
|
|
16
|
+
`aria-*`格式属性通配.
|
|
13
17
|
|
|
14
|
-
- className (string | dict; optional)
|
|
18
|
+
- className (string | dict; optional):
|
|
19
|
+
当前组件css类名,支持[动态css](/advanced-classname).
|
|
15
20
|
|
|
16
|
-
- containerId (string; optional)
|
|
21
|
+
- containerId (string; optional):
|
|
22
|
+
滚动事件监听的特定目标容器id.
|
|
17
23
|
|
|
18
|
-
- containerSelector (string; optional)
|
|
24
|
+
- containerSelector (string; optional):
|
|
25
|
+
滚动事件监听的特定目标容器js选择代码,优先级低于containerId.
|
|
19
26
|
|
|
20
|
-
-
|
|
27
|
+
- data-* (string; optional):
|
|
28
|
+
`data-*`格式属性通配.
|
|
21
29
|
|
|
22
|
-
-
|
|
30
|
+
- duration (number; default 0.45):
|
|
31
|
+
回到顶部过程耗时,单位:秒 默认值:`0.45`.
|
|
32
|
+
|
|
33
|
+
- key (string; optional):
|
|
34
|
+
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
23
35
|
|
|
24
36
|
- loading_state (dict; optional)
|
|
25
37
|
|
|
@@ -34,19 +46,24 @@ Keyword arguments:
|
|
|
34
46
|
- prop_name (string; optional):
|
|
35
47
|
Holds which property is loading.
|
|
36
48
|
|
|
37
|
-
-
|
|
49
|
+
- nClicks (number; default 0):
|
|
50
|
+
监听回到顶部按钮累计被点击次数 默认值:`0`.
|
|
51
|
+
|
|
52
|
+
- style (dict; optional):
|
|
53
|
+
当前组件css样式.
|
|
38
54
|
|
|
39
|
-
- visibilityHeight (number; default 400)
|
|
55
|
+
- visibilityHeight (number; default 400):
|
|
56
|
+
回到顶部按钮显示时对应的页面滚动像素高度阈值 默认值:`400`."""
|
|
40
57
|
_children_props = []
|
|
41
58
|
_base_nodes = ['children']
|
|
42
59
|
_namespace = 'feffery_antd_components'
|
|
43
60
|
_type = 'AntdBackTop'
|
|
44
61
|
@_explicitize_args
|
|
45
|
-
def __init__(self, id=Component.UNDEFINED,
|
|
46
|
-
self._prop_names = ['id', 'className', 'containerId', 'containerSelector', 'duration', 'key', 'loading_state', 'style', 'visibilityHeight']
|
|
47
|
-
self._valid_wildcard_attributes = []
|
|
48
|
-
self.available_properties = ['id', 'className', 'containerId', 'containerSelector', 'duration', 'key', 'loading_state', 'style', 'visibilityHeight']
|
|
49
|
-
self.available_wildcard_properties = []
|
|
62
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, duration=Component.UNDEFINED, visibilityHeight=Component.UNDEFINED, containerId=Component.UNDEFINED, containerSelector=Component.UNDEFINED, nClicks=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
63
|
+
self._prop_names = ['id', 'aria-*', 'className', 'containerId', 'containerSelector', 'data-*', 'duration', 'key', 'loading_state', 'nClicks', 'style', 'visibilityHeight']
|
|
64
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
65
|
+
self.available_properties = ['id', 'aria-*', 'className', 'containerId', 'containerSelector', 'data-*', 'duration', 'key', 'loading_state', 'nClicks', 'style', 'visibilityHeight']
|
|
66
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
50
67
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
51
68
|
_locals = locals()
|
|
52
69
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
@@ -5,15 +5,21 @@ from dash.development.base_component import Component, _explicitize_args
|
|
|
5
5
|
|
|
6
6
|
class AntdBadge(Component):
|
|
7
7
|
"""An AntdBadge component.
|
|
8
|
-
|
|
8
|
+
徽标组件AntdBadge
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
|
-
- children (a list of or a singular dash component, string or number; optional)
|
|
12
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
13
|
+
组件型,定义徽标添加目标元素.
|
|
14
|
+
|
|
15
|
+
- id (string; optional):
|
|
16
|
+
组件唯一id.
|
|
13
17
|
|
|
14
|
-
-
|
|
18
|
+
- aria-* (string; optional):
|
|
19
|
+
`aria-*`格式属性通配.
|
|
15
20
|
|
|
16
|
-
- className (string | dict; optional)
|
|
21
|
+
- className (string | dict; optional):
|
|
22
|
+
当前组件css类名,支持[动态css](/advanced-classname).
|
|
17
23
|
|
|
18
24
|
- classNames (dict; optional):
|
|
19
25
|
细分控制子元素css类.
|
|
@@ -26,13 +32,20 @@ Keyword arguments:
|
|
|
26
32
|
- root (string; optional):
|
|
27
33
|
控制根元素css类.
|
|
28
34
|
|
|
29
|
-
- color (string; optional)
|
|
35
|
+
- color (string; optional):
|
|
36
|
+
徽标颜色.
|
|
37
|
+
|
|
38
|
+
- count (number; optional):
|
|
39
|
+
徽标显示的数字.
|
|
30
40
|
|
|
31
|
-
-
|
|
41
|
+
- data-* (string; optional):
|
|
42
|
+
`data-*`格式属性通配.
|
|
32
43
|
|
|
33
|
-
- dot (boolean; default False)
|
|
44
|
+
- dot (boolean; default False):
|
|
45
|
+
是否用圆点代替数字显示 默认值:`False`.
|
|
34
46
|
|
|
35
|
-
- key (string; optional)
|
|
47
|
+
- key (string; optional):
|
|
48
|
+
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
36
49
|
|
|
37
50
|
- loading_state (dict; optional)
|
|
38
51
|
|
|
@@ -47,19 +60,26 @@ Keyword arguments:
|
|
|
47
60
|
- prop_name (string; optional):
|
|
48
61
|
Holds which property is loading.
|
|
49
62
|
|
|
50
|
-
- nClicks (number; default 0)
|
|
63
|
+
- nClicks (number; default 0):
|
|
64
|
+
监听徽标累计被点击次数 默认值:`0`.
|
|
51
65
|
|
|
52
|
-
- offset (list of numbers; optional)
|
|
66
|
+
- offset (list of numbers; optional):
|
|
67
|
+
徽标在水平、竖直方向上的像素偏移,格式为`[水平偏移, 竖直偏移]`.
|
|
53
68
|
|
|
54
|
-
- overflowCount (number; default 99)
|
|
69
|
+
- overflowCount (number; default 99):
|
|
70
|
+
数字显示上限,超出会以显示`+`后缀 默认值:`99`.
|
|
55
71
|
|
|
56
|
-
- showZero (boolean; default False)
|
|
72
|
+
- showZero (boolean; default False):
|
|
73
|
+
当`count=0`时,是否强制显示数字 默认值:`False`.
|
|
57
74
|
|
|
58
|
-
- size (a value equal to: 'default', 'small'; default 'default')
|
|
75
|
+
- size (a value equal to: 'default', 'small'; default 'default'):
|
|
76
|
+
徽标尺寸规格,可选项有`'default'`、`'small'`.
|
|
59
77
|
|
|
60
|
-
- status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional)
|
|
78
|
+
- status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional):
|
|
79
|
+
徽标状态,可选项有`'success'`、`'processing'`、`'default'`、`'error'`、`'warning'`.
|
|
61
80
|
|
|
62
|
-
- style (dict; optional)
|
|
81
|
+
- style (dict; optional):
|
|
82
|
+
当前组件css样式.
|
|
63
83
|
|
|
64
84
|
- styles (dict; optional):
|
|
65
85
|
细分控制子元素css样式.
|
|
@@ -72,19 +92,21 @@ Keyword arguments:
|
|
|
72
92
|
- root (dict; optional):
|
|
73
93
|
控制根元素css样式.
|
|
74
94
|
|
|
75
|
-
- text (string; optional)
|
|
95
|
+
- text (string; optional):
|
|
96
|
+
参数`status`有效时,设置徽标文本内容.
|
|
76
97
|
|
|
77
|
-
- title (string; optional)
|
|
98
|
+
- title (string; optional):
|
|
99
|
+
徽标鼠标悬停显示文字内容."""
|
|
78
100
|
_children_props = []
|
|
79
101
|
_base_nodes = ['children']
|
|
80
102
|
_namespace = 'feffery_antd_components'
|
|
81
103
|
_type = 'AntdBadge'
|
|
82
104
|
@_explicitize_args
|
|
83
|
-
def __init__(self, children=None, id=Component.UNDEFINED,
|
|
84
|
-
self._prop_names = ['children', 'id', 'className', 'classNames', 'color', 'count', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'styles', 'text', 'title']
|
|
85
|
-
self._valid_wildcard_attributes = []
|
|
86
|
-
self.available_properties = ['children', 'id', 'className', 'classNames', 'color', 'count', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'styles', 'text', 'title']
|
|
87
|
-
self.available_wildcard_properties = []
|
|
105
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, color=Component.UNDEFINED, count=Component.UNDEFINED, dot=Component.UNDEFINED, showZero=Component.UNDEFINED, overflowCount=Component.UNDEFINED, offset=Component.UNDEFINED, status=Component.UNDEFINED, text=Component.UNDEFINED, title=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
106
|
+
self._prop_names = ['children', 'id', 'aria-*', 'className', 'classNames', 'color', 'count', 'data-*', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'styles', 'text', 'title']
|
|
107
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
108
|
+
self.available_properties = ['children', 'id', 'aria-*', 'className', 'classNames', 'color', 'count', 'data-*', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'styles', 'text', 'title']
|
|
109
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
88
110
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
89
111
|
_locals = locals()
|
|
90
112
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
@@ -12,6 +12,9 @@ Keyword arguments:
|
|
|
12
12
|
- id (string; optional):
|
|
13
13
|
组件唯一id.
|
|
14
14
|
|
|
15
|
+
- aria-* (string; optional):
|
|
16
|
+
`aria-*`格式属性通配.
|
|
17
|
+
|
|
15
18
|
- className (string | dict; optional):
|
|
16
19
|
当前组件css类名,支持[动态css](/advanced-classname).
|
|
17
20
|
|
|
@@ -29,6 +32,9 @@ Keyword arguments:
|
|
|
29
32
|
- timestamp (number; optional):
|
|
30
33
|
点击事件时间戳.
|
|
31
34
|
|
|
35
|
+
- data-* (string; optional):
|
|
36
|
+
`data-*`格式属性通配.
|
|
37
|
+
|
|
32
38
|
- items (list of dicts; optional):
|
|
33
39
|
面包屑节点数据结构.
|
|
34
40
|
|
|
@@ -108,10 +114,10 @@ Keyword arguments:
|
|
|
108
114
|
_type = 'AntdBreadcrumb'
|
|
109
115
|
@_explicitize_args
|
|
110
116
|
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, items=Component.UNDEFINED, separator=Component.UNDEFINED, clickedItem=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
111
|
-
self._prop_names = ['id', 'className', 'clickedItem', 'items', 'key', 'loading_state', 'separator', 'style']
|
|
112
|
-
self._valid_wildcard_attributes = []
|
|
113
|
-
self.available_properties = ['id', 'className', 'clickedItem', 'items', 'key', 'loading_state', 'separator', 'style']
|
|
114
|
-
self.available_wildcard_properties = []
|
|
117
|
+
self._prop_names = ['id', 'aria-*', 'className', 'clickedItem', 'data-*', 'items', 'key', 'loading_state', 'separator', 'style']
|
|
118
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
119
|
+
self.available_properties = ['id', 'aria-*', 'className', 'clickedItem', 'data-*', 'items', 'key', 'loading_state', 'separator', 'style']
|
|
120
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
115
121
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
116
122
|
_locals = locals()
|
|
117
123
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
@@ -15,6 +15,12 @@ Keyword arguments:
|
|
|
15
15
|
- id (string; optional):
|
|
16
16
|
组件唯一id.
|
|
17
17
|
|
|
18
|
+
- aria-* (string; optional):
|
|
19
|
+
`aria-*`格式属性通配.
|
|
20
|
+
|
|
21
|
+
- autoInsertSpace (boolean; default True):
|
|
22
|
+
按钮两个汉字内是否插入空格 默认值:`True`.
|
|
23
|
+
|
|
18
24
|
- autoSpin (boolean; default False):
|
|
19
25
|
当前按钮在每次点击后是否自动进入加载中状态 默认值:`False`.
|
|
20
26
|
|
|
@@ -38,15 +44,15 @@ Keyword arguments:
|
|
|
38
44
|
- danger (boolean; default False):
|
|
39
45
|
按钮是否呈现危险样式 默认值:`False`.
|
|
40
46
|
|
|
47
|
+
- data-* (string; optional):
|
|
48
|
+
`data-*`格式属性通配.
|
|
49
|
+
|
|
41
50
|
- debounceWait (number; default 0):
|
|
42
51
|
按钮点击事件监听防抖延时,单位:毫秒 默认值:`0`.
|
|
43
52
|
|
|
44
53
|
- disabled (boolean; default False):
|
|
45
54
|
按钮是否呈现禁用状态 默认值:`False`.
|
|
46
55
|
|
|
47
|
-
- extraProps (dict; optional):
|
|
48
|
-
为当前组件补充额外自定义键值对参数.
|
|
49
|
-
|
|
50
56
|
- ghost (boolean; default False):
|
|
51
57
|
按钮是否呈现透明背景状态 默认值:`False`.
|
|
52
58
|
|
|
@@ -56,6 +62,9 @@ Keyword arguments:
|
|
|
56
62
|
- icon (a list of or a singular dash component, string or number; optional):
|
|
57
63
|
组件型,按钮内嵌前缀图标元素.
|
|
58
64
|
|
|
65
|
+
- iconPosition (a value equal to: 'start', 'end'; default 'start'):
|
|
66
|
+
按钮图标组件的位置,可选项有`'start'`、`'end'` 默认值:`'start'`.
|
|
67
|
+
|
|
59
68
|
- key (string; optional):
|
|
60
69
|
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
61
70
|
|
|
@@ -104,19 +113,22 @@ Keyword arguments:
|
|
|
104
113
|
- target (string; default '_blank'):
|
|
105
114
|
按钮点击跳转链接方式 默认值:`'_blank'`.
|
|
106
115
|
|
|
107
|
-
-
|
|
108
|
-
|
|
116
|
+
- title (string; optional):
|
|
117
|
+
原生按钮title属性.
|
|
118
|
+
|
|
119
|
+
- type (a value equal to: 'default', 'primary', 'dashed', 'link', 'text'; default 'default'):
|
|
120
|
+
按钮类型,可选项有`'default'`、`'primary'`、`'dashed'`、`'link'`、`'text'`
|
|
109
121
|
默认值:`'default'`."""
|
|
110
122
|
_children_props = ['loadingChildren', 'icon']
|
|
111
123
|
_base_nodes = ['loadingChildren', 'icon', 'children']
|
|
112
124
|
_namespace = 'feffery_antd_components'
|
|
113
125
|
_type = 'AntdButton'
|
|
114
126
|
@_explicitize_args
|
|
115
|
-
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, loadingChildren=Component.UNDEFINED, type=Component.UNDEFINED, href=Component.UNDEFINED, target=Component.UNDEFINED, block=Component.UNDEFINED, danger=Component.UNDEFINED, disabled=Component.UNDEFINED, ghost=Component.UNDEFINED, shape=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, clickExecuteJsString=Component.UNDEFINED, debounceWait=Component.UNDEFINED, icon=Component.UNDEFINED, loading=Component.UNDEFINED, autoSpin=Component.UNDEFINED, motionType=Component.UNDEFINED,
|
|
116
|
-
self._prop_names = ['children', 'id', 'autoSpin', 'block', 'className', 'classNames', 'clickExecuteJsString', 'danger', '
|
|
117
|
-
self._valid_wildcard_attributes = []
|
|
118
|
-
self.available_properties = ['children', 'id', 'autoSpin', 'block', 'className', 'classNames', 'clickExecuteJsString', 'danger', '
|
|
119
|
-
self.available_wildcard_properties = []
|
|
127
|
+
def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, styles=Component.UNDEFINED, classNames=Component.UNDEFINED, loadingChildren=Component.UNDEFINED, type=Component.UNDEFINED, href=Component.UNDEFINED, target=Component.UNDEFINED, autoInsertSpace=Component.UNDEFINED, block=Component.UNDEFINED, danger=Component.UNDEFINED, disabled=Component.UNDEFINED, ghost=Component.UNDEFINED, shape=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, clickExecuteJsString=Component.UNDEFINED, debounceWait=Component.UNDEFINED, icon=Component.UNDEFINED, iconPosition=Component.UNDEFINED, loading=Component.UNDEFINED, autoSpin=Component.UNDEFINED, motionType=Component.UNDEFINED, title=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
|
|
128
|
+
self._prop_names = ['children', 'id', 'aria-*', 'autoInsertSpace', 'autoSpin', 'block', 'className', 'classNames', 'clickExecuteJsString', 'danger', 'data-*', 'debounceWait', 'disabled', 'ghost', 'href', 'icon', 'iconPosition', 'key', 'loading', 'loadingChildren', 'loading_state', 'motionType', 'nClicks', 'shape', 'size', 'style', 'styles', 'target', 'title', 'type']
|
|
129
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
130
|
+
self.available_properties = ['children', 'id', 'aria-*', 'autoInsertSpace', 'autoSpin', 'block', 'className', 'classNames', 'clickExecuteJsString', 'danger', 'data-*', 'debounceWait', 'disabled', 'ghost', 'href', 'icon', 'iconPosition', 'key', 'loading', 'loadingChildren', 'loading_state', 'motionType', 'nClicks', 'shape', 'size', 'style', 'styles', 'target', 'title', 'type']
|
|
131
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
120
132
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
121
133
|
_locals = locals()
|
|
122
134
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
@@ -5,19 +5,59 @@ from dash.development.base_component import Component, _explicitize_args
|
|
|
5
5
|
|
|
6
6
|
class AntdCalendar(Component):
|
|
7
7
|
"""An AntdCalendar component.
|
|
8
|
-
|
|
8
|
+
日历组件AntdCalendar
|
|
9
9
|
|
|
10
10
|
Keyword arguments:
|
|
11
11
|
|
|
12
|
-
- id (string; optional)
|
|
12
|
+
- id (string; optional):
|
|
13
|
+
组件唯一id.
|
|
14
|
+
|
|
15
|
+
- aria-* (string; optional):
|
|
16
|
+
`aria-*`格式属性通配.
|
|
17
|
+
|
|
18
|
+
- cellClickEvent (dict; optional):
|
|
19
|
+
监听日期单元格点击事件.
|
|
20
|
+
|
|
21
|
+
`cellClickEvent` is a dict with keys:
|
|
22
|
+
|
|
23
|
+
- timestamp (number; optional):
|
|
24
|
+
事件发生时间戳.
|
|
25
|
+
|
|
26
|
+
- type (string; optional):
|
|
27
|
+
记录面板类型.
|
|
28
|
+
|
|
29
|
+
- className (string | dict; optional):
|
|
30
|
+
当前组件css类名,支持[动态css](/advanced-classname).
|
|
31
|
+
|
|
32
|
+
- customCells (list of dicts; optional):
|
|
33
|
+
自定义对应月份、日期的单元格显示内容.
|
|
34
|
+
|
|
35
|
+
`customCells` is a list of dicts with keys:
|
|
36
|
+
|
|
37
|
+
- content (a list of or a singular dash component, string or number; optional):
|
|
38
|
+
自定义内容.
|
|
39
|
+
|
|
40
|
+
- date (number; optional):
|
|
41
|
+
当前项匹配的日期值.
|
|
42
|
+
|
|
43
|
+
- month (number; optional):
|
|
44
|
+
当前项匹配的月份值.
|
|
45
|
+
|
|
46
|
+
- type (a value equal to: 'month', 'date'; required):
|
|
47
|
+
必填,当前项对应类型,可选项有`'month'`、`'date'`.
|
|
13
48
|
|
|
14
|
-
-
|
|
49
|
+
- data-* (string; optional):
|
|
50
|
+
`data-*`格式属性通配.
|
|
15
51
|
|
|
16
|
-
- defaultValue (string; optional)
|
|
52
|
+
- defaultValue (string; optional):
|
|
53
|
+
初始化选中日期值.
|
|
17
54
|
|
|
18
|
-
- format (string; default 'YYYY-MM-DD')
|
|
55
|
+
- format (string; default 'YYYY-MM-DD'):
|
|
56
|
+
日期显示格式,[参考资料](https://day.js.org/docs/en/display/format)
|
|
57
|
+
默认值:`'YYYY-MM-DD'`.
|
|
19
58
|
|
|
20
|
-
- key (string; optional)
|
|
59
|
+
- key (string; optional):
|
|
60
|
+
对当前组件的`key`值进行更新,可实现强制重绘当前组件的效果.
|
|
21
61
|
|
|
22
62
|
- loading_state (dict; optional)
|
|
23
63
|
|
|
@@ -32,45 +72,40 @@ Keyword arguments:
|
|
|
32
72
|
- prop_name (string; optional):
|
|
33
73
|
Holds which property is loading.
|
|
34
74
|
|
|
35
|
-
- locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn')
|
|
75
|
+
- locale (a value equal to: 'zh-cn', 'en-us'; default 'zh-cn'):
|
|
76
|
+
组件文案语种,可选项有`'zh-cn'`、`'en-us'` 默认值:`'zh-cn'`.
|
|
36
77
|
|
|
37
78
|
- name (string; optional):
|
|
38
|
-
|
|
79
|
+
配合`AntdForm`表单批量值搜集/控制功能使用,充当当前表单项的字段名,以`id`作为缺省值.
|
|
39
80
|
|
|
40
81
|
- persisted_props (list of a value equal to: 'value's; default ['value']):
|
|
41
|
-
|
|
42
|
-
the component or the page. Since only `value` is allowed this
|
|
43
|
-
prop can normally be ignored.
|
|
82
|
+
开启属性持久化功能的若干属性名,可选项有`'value'` 默认值:`['value']`.
|
|
44
83
|
|
|
45
84
|
- persistence (boolean | string | number; optional):
|
|
46
|
-
|
|
47
|
-
when the component - or the page - is refreshed. If `persisted`
|
|
48
|
-
is truthy and hasn't changed from its previous value, a `value`
|
|
49
|
-
that the user has changed while using the app will keep that
|
|
50
|
-
change, as long as the new `value` also matches what was given
|
|
51
|
-
originally. Used in conjunction with `persistence_type`.
|
|
85
|
+
是否开启[属性持久化](/prop-persistence).
|
|
52
86
|
|
|
53
87
|
- persistence_type (a value equal to: 'local', 'session', 'memory'; default 'local'):
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
is kept after the browser quit. session: window.sessionStorage,
|
|
57
|
-
data is cleared once the browser quit.
|
|
88
|
+
属性持久化存储类型,可选项有`'local'`(本地持久化),`'session'`(会话持久化),`'memory'`(内存持久化)
|
|
89
|
+
默认值:`'local'`.
|
|
58
90
|
|
|
59
|
-
- size (a value equal to: 'default', 'large'; default 'default')
|
|
91
|
+
- size (a value equal to: 'default', 'large'; default 'default'):
|
|
92
|
+
日历尺寸规格,可选项有`'default'`、`'large'` 默认值:`'default'`.
|
|
60
93
|
|
|
61
|
-
- style (dict; optional)
|
|
94
|
+
- style (dict; optional):
|
|
95
|
+
当前组件css样式.
|
|
62
96
|
|
|
63
|
-
- value (string; optional)
|
|
64
|
-
|
|
97
|
+
- value (string; optional):
|
|
98
|
+
监听或设置当前选中日期值."""
|
|
99
|
+
_children_props = ['customCells[].content']
|
|
65
100
|
_base_nodes = ['children']
|
|
66
101
|
_namespace = 'feffery_antd_components'
|
|
67
102
|
_type = 'AntdCalendar'
|
|
68
103
|
@_explicitize_args
|
|
69
|
-
def __init__(self, id=Component.UNDEFINED,
|
|
70
|
-
self._prop_names = ['id', 'className', 'defaultValue', 'format', 'key', 'loading_state', 'locale', 'name', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
71
|
-
self._valid_wildcard_attributes = []
|
|
72
|
-
self.available_properties = ['id', 'className', 'defaultValue', 'format', 'key', 'loading_state', 'locale', 'name', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
73
|
-
self.available_wildcard_properties = []
|
|
104
|
+
def __init__(self, id=Component.UNDEFINED, key=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, name=Component.UNDEFINED, locale=Component.UNDEFINED, format=Component.UNDEFINED, size=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, customCells=Component.UNDEFINED, cellClickEvent=Component.UNDEFINED, loading_state=Component.UNDEFINED, persistence=Component.UNDEFINED, persisted_props=Component.UNDEFINED, persistence_type=Component.UNDEFINED, **kwargs):
|
|
105
|
+
self._prop_names = ['id', 'aria-*', 'cellClickEvent', 'className', 'customCells', 'data-*', 'defaultValue', 'format', 'key', 'loading_state', 'locale', 'name', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
106
|
+
self._valid_wildcard_attributes = ['data-', 'aria-']
|
|
107
|
+
self.available_properties = ['id', 'aria-*', 'cellClickEvent', 'className', 'customCells', 'data-*', 'defaultValue', 'format', 'key', 'loading_state', 'locale', 'name', 'persisted_props', 'persistence', 'persistence_type', 'size', 'style', 'value']
|
|
108
|
+
self.available_wildcard_properties = ['data-', 'aria-']
|
|
74
109
|
_explicit_args = kwargs.pop('_explicit_args')
|
|
75
110
|
_locals = locals()
|
|
76
111
|
_locals.update(kwargs) # For wildcard attrs and excess named props
|