feffery_antd_components 0.3.15 → 0.4.0-rc5
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/NAMESPACE +2 -2
- package/Project.toml +1 -1
- package/README-en_US.md +8 -1
- package/README.md +22 -1
- package/feffery_antd_components/AntdAccordion.py +71 -21
- package/feffery_antd_components/AntdAffix.py +38 -21
- package/feffery_antd_components/AntdAlert.py +39 -21
- package/feffery_antd_components/AntdAnchor.py +38 -21
- package/feffery_antd_components/AntdAvatar.py +53 -21
- package/feffery_antd_components/AntdAvatarGroup.py +81 -30
- package/feffery_antd_components/AntdBackTop.py +35 -21
- package/feffery_antd_components/AntdBadge.py +59 -21
- package/feffery_antd_components/AntdBreadcrumb.py +81 -23
- package/feffery_antd_components/AntdButton.py +70 -23
- package/feffery_antd_components/AntdCalendar.py +66 -24
- package/feffery_antd_components/AntdCard.py +134 -29
- package/feffery_antd_components/AntdCardGrid.py +33 -21
- package/feffery_antd_components/AntdCardMeta.py +33 -21
- package/feffery_antd_components/AntdCarousel.py +56 -23
- package/feffery_antd_components/AntdCascader.py +72 -26
- package/feffery_antd_components/AntdCenter.py +33 -21
- package/feffery_antd_components/AntdCheckCard.py +47 -22
- package/feffery_antd_components/AntdCheckCardGroup.py +48 -22
- package/feffery_antd_components/AntdCheckableTag.py +34 -21
- package/feffery_antd_components/AntdCheckbox.py +47 -22
- package/feffery_antd_components/AntdCheckboxGroup.py +53 -22
- package/feffery_antd_components/AntdCol.py +108 -21
- package/feffery_antd_components/AntdCollapse.py +60 -22
- package/feffery_antd_components/AntdColorPicker.py +67 -23
- package/feffery_antd_components/AntdComment.py +67 -7
- package/feffery_antd_components/AntdCompact.py +33 -21
- package/feffery_antd_components/AntdConfigProvider.py +54 -19
- package/feffery_antd_components/AntdContent.py +31 -21
- package/feffery_antd_components/AntdCopyText.py +38 -23
- package/feffery_antd_components/AntdCountdown.py +53 -21
- package/feffery_antd_components/AntdCustomSkeleton.py +39 -21
- package/feffery_antd_components/AntdDatePicker.py +117 -28
- package/feffery_antd_components/AntdDateRangePicker.py +117 -28
- package/feffery_antd_components/AntdDescriptionItem.py +72 -27
- package/feffery_antd_components/AntdDescriptions.py +132 -33
- package/feffery_antd_components/AntdDivider.py +42 -21
- package/feffery_antd_components/AntdDraggerUpload.py +133 -23
- package/feffery_antd_components/AntdDrawer.py +71 -21
- package/feffery_antd_components/AntdDropdown.py +87 -22
- package/feffery_antd_components/AntdEmpty.py +90 -25
- package/feffery_antd_components/AntdFlex.py +37 -21
- package/feffery_antd_components/AntdFloatButton.py +38 -21
- package/feffery_antd_components/AntdFloatButtonGroup.py +44 -20
- package/feffery_antd_components/AntdFooter.py +31 -21
- package/feffery_antd_components/AntdForm.py +58 -21
- package/feffery_antd_components/AntdFormItem.py +61 -21
- package/feffery_antd_components/AntdFormRender.py +266 -6
- package/feffery_antd_components/AntdHeader.py +31 -21
- package/feffery_antd_components/AntdIcon.py +35 -21
- package/feffery_antd_components/AntdImage.py +56 -23
- package/feffery_antd_components/AntdImageGroup.py +54 -23
- package/feffery_antd_components/AntdInput.py +103 -24
- package/feffery_antd_components/AntdInputNumber.py +65 -22
- package/feffery_antd_components/AntdLayout.py +31 -21
- package/feffery_antd_components/AntdMentions.py +69 -23
- package/feffery_antd_components/AntdMenu.py +59 -22
- package/feffery_antd_components/AntdMessage.py +37 -24
- package/feffery_antd_components/AntdModal.py +183 -30
- package/feffery_antd_components/AntdNotification.py +59 -22
- package/feffery_antd_components/AntdOTP.py +49 -24
- package/feffery_antd_components/AntdPageHeader.py +37 -21
- package/feffery_antd_components/AntdPagination.py +56 -24
- package/feffery_antd_components/AntdParagraph.py +53 -23
- package/feffery_antd_components/AntdPictureUpload.py +146 -23
- package/feffery_antd_components/AntdPopconfirm.py +129 -18
- package/feffery_antd_components/AntdPopover.py +83 -30
- package/feffery_antd_components/AntdPopupCard.py +114 -24
- package/feffery_antd_components/AntdProgress.py +95 -26
- package/feffery_antd_components/AntdQRCode.py +53 -23
- package/feffery_antd_components/AntdRadioGroup.py +59 -22
- package/feffery_antd_components/AntdRate.py +47 -20
- package/feffery_antd_components/AntdResult.py +35 -21
- package/feffery_antd_components/AntdRibbon.py +34 -21
- package/feffery_antd_components/AntdRow.py +46 -21
- package/feffery_antd_components/AntdSegmented.py +69 -11
- package/feffery_antd_components/AntdSegmentedColoring.py +62 -23
- package/feffery_antd_components/AntdSelect.py +99 -27
- package/feffery_antd_components/AntdSider.py +39 -21
- package/feffery_antd_components/AntdSkeleton.py +66 -21
- package/feffery_antd_components/AntdSkeletonAvatar.py +33 -21
- package/feffery_antd_components/AntdSkeletonButton.py +34 -21
- package/feffery_antd_components/AntdSkeletonImage.py +30 -21
- package/feffery_antd_components/AntdSkeletonInput.py +32 -21
- package/feffery_antd_components/AntdSlider.py +99 -27
- package/feffery_antd_components/AntdSpace.py +52 -21
- package/feffery_antd_components/AntdSpin.py +45 -22
- package/feffery_antd_components/AntdSplitter.py +59 -21
- package/feffery_antd_components/AntdSpoiler.py +42 -23
- package/feffery_antd_components/AntdStatistic.py +44 -5
- package/feffery_antd_components/AntdSteps.py +52 -21
- package/feffery_antd_components/AntdSwitch.py +58 -9
- package/feffery_antd_components/AntdTable.py +384 -26
- package/feffery_antd_components/AntdTabs.py +98 -22
- package/feffery_antd_components/AntdTag.py +38 -21
- package/feffery_antd_components/AntdText.py +51 -23
- package/feffery_antd_components/AntdTimePicker.py +79 -13
- package/feffery_antd_components/AntdTimeRangePicker.py +70 -28
- package/feffery_antd_components/AntdTimeline.py +45 -21
- package/feffery_antd_components/AntdTitle.py +45 -23
- package/feffery_antd_components/AntdTooltip.py +91 -16
- package/feffery_antd_components/AntdTour.py +101 -23
- package/feffery_antd_components/AntdTransfer.py +85 -11
- package/feffery_antd_components/AntdTree.py +99 -22
- package/feffery_antd_components/AntdTreeSelect.py +95 -14
- package/feffery_antd_components/AntdUpload.py +152 -9
- package/feffery_antd_components/AntdWatermark.py +47 -21
- package/feffery_antd_components/Fragment.py +30 -18
- package/feffery_antd_components/__init__.py +0 -3
- package/feffery_antd_components/_icons.py +12 -0
- package/feffery_antd_components/_imports_.py +1 -5
- package/feffery_antd_components/alias.py +0 -4
- package/feffery_antd_components/async-antd_table.js +2 -2
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/async-data_entry.js +4 -4
- package/feffery_antd_components/async-upload.js +2 -2
- package/feffery_antd_components/feffery_antd_components.min.js +10 -14
- package/feffery_antd_components/metadata.json +1 -1
- package/feffery_antd_components/package-info.json +4 -5
- package/images//345/205/254/344/274/227/345/217/267.png +0 -0
- package/images//347/237/245/350/257/206/346/230/237/347/220/203.jpg +0 -0
- package/package.json +4 -5
- package/setup.py +1 -1
- package/src/jl/'feffery'_antdaccordion.jl +1 -6
- package/src/jl/'feffery'_antdaffix.jl +2 -6
- package/src/jl/'feffery'_antdalert.jl +1 -6
- package/src/jl/'feffery'_antdanchor.jl +1 -6
- package/src/jl/'feffery'_antdavatar.jl +1 -6
- package/src/jl/'feffery'_antdavatargroup.jl +8 -9
- package/src/jl/'feffery'_antdbacktop.jl +1 -6
- package/src/jl/'feffery'_antdbadge.jl +1 -6
- package/src/jl/'feffery'_antdbreadcrumb.jl +8 -10
- package/src/jl/'feffery'_antdbutton.jl +2 -7
- package/src/jl/'feffery'_antdcalendar.jl +4 -7
- package/src/jl/'feffery'_antdcard.jl +19 -10
- package/src/jl/'feffery'_antdcardgrid.jl +1 -6
- package/src/jl/'feffery'_antdcardmeta.jl +1 -6
- package/src/jl/'feffery'_antdcarousel.jl +5 -8
- package/src/jl/'feffery'_antdcascader.jl +5 -8
- package/src/jl/'feffery'_antdcenter.jl +1 -6
- package/src/jl/'feffery'_antdcheckabletag.jl +1 -6
- package/src/jl/'feffery'_antdcheckbox.jl +3 -6
- package/src/jl/'feffery'_antdcheckboxgroup.jl +3 -6
- package/src/jl/'feffery'_antdcheckcard.jl +3 -6
- package/src/jl/'feffery'_antdcheckcardgroup.jl +3 -6
- package/src/jl/'feffery'_antdcol.jl +1 -6
- package/src/jl/'feffery'_antdcollapse.jl +1 -6
- package/src/jl/'feffery'_antdcolorpicker.jl +4 -7
- package/src/jl/'feffery'_antdcomment.jl +1 -1
- package/src/jl/'feffery'_antdcompact.jl +1 -6
- package/src/jl/'feffery'_antdconfigprovider.jl +2 -7
- package/src/jl/'feffery'_antdcontent.jl +1 -6
- package/src/jl/'feffery'_antdcopytext.jl +2 -7
- package/src/jl/'feffery'_antdcountdown.jl +4 -6
- package/src/jl/'feffery'_antdcustomskeleton.jl +1 -6
- package/src/jl/'feffery'_antddatepicker.jl +5 -8
- package/src/jl/'feffery'_antddaterangepicker.jl +5 -8
- package/src/jl/'feffery'_antddescriptionitem.jl +9 -8
- package/src/jl/'feffery'_antddescriptions.jl +18 -11
- package/src/jl/'feffery'_antddivider.jl +1 -6
- package/src/jl/'feffery'_antddraggerupload.jl +4 -7
- package/src/jl/'feffery'_antddrawer.jl +1 -6
- package/src/jl/'feffery'_antddropdown.jl +3 -7
- package/src/jl/'feffery'_antdempty.jl +14 -8
- package/src/jl/'feffery'_antdflex.jl +1 -6
- package/src/jl/'feffery'_antdfloatbutton.jl +1 -6
- package/src/jl/'feffery'_antdfloatbuttongroup.jl +4 -7
- package/src/jl/'feffery'_antdfooter.jl +1 -6
- package/src/jl/'feffery'_antdform.jl +1 -6
- package/src/jl/'feffery'_antdformitem.jl +1 -6
- package/src/jl/'feffery'_antdformrender.jl +1 -1
- package/src/jl/'feffery'_antdheader.jl +1 -6
- package/src/jl/'feffery'_antdicon.jl +1 -6
- package/src/jl/'feffery'_antdimage.jl +2 -7
- package/src/jl/'feffery'_antdimagegroup.jl +2 -7
- package/src/jl/'feffery'_antdinput.jl +4 -7
- package/src/jl/'feffery'_antdinputnumber.jl +4 -7
- package/src/jl/'feffery'_antdlayout.jl +1 -6
- package/src/jl/'feffery'_antdmentions.jl +4 -7
- package/src/jl/'feffery'_antdmenu.jl +1 -6
- package/src/jl/'feffery'_antdmessage.jl +1 -7
- package/src/jl/'feffery'_antdmodal.jl +27 -11
- package/src/jl/'feffery'_antdnotification.jl +7 -7
- package/src/jl/'feffery'_antdotp.jl +4 -7
- package/src/jl/'feffery'_antdpageheader.jl +1 -6
- package/src/jl/'feffery'_antdpagination.jl +2 -7
- package/src/jl/'feffery'_antdparagraph.jl +2 -7
- package/src/jl/'feffery'_antdpictureupload.jl +4 -7
- package/src/jl/'feffery'_antdpopconfirm.jl +10 -5
- package/src/jl/'feffery'_antdpopover.jl +9 -9
- package/src/jl/'feffery'_antdpopupcard.jl +17 -7
- package/src/jl/'feffery'_antdprogress.jl +6 -10
- package/src/jl/'feffery'_antdqrcode.jl +2 -7
- package/src/jl/'feffery'_antdradiogroup.jl +3 -6
- package/src/jl/'feffery'_antdrate.jl +3 -6
- package/src/jl/'feffery'_antdresult.jl +1 -6
- package/src/jl/'feffery'_antdribbon.jl +1 -6
- package/src/jl/'feffery'_antdrow.jl +1 -6
- package/src/jl/'feffery'_antdsegmented.jl +4 -2
- package/src/jl/'feffery'_antdsegmentedcoloring.jl +2 -7
- package/src/jl/'feffery'_antdselect.jl +5 -8
- package/src/jl/'feffery'_antdsider.jl +1 -6
- package/src/jl/'feffery'_antdskeleton.jl +1 -6
- package/src/jl/'feffery'_antdskeletonavatar.jl +1 -6
- package/src/jl/'feffery'_antdskeletonbutton.jl +1 -6
- package/src/jl/'feffery'_antdskeletonimage.jl +1 -6
- package/src/jl/'feffery'_antdskeletoninput.jl +1 -6
- package/src/jl/'feffery'_antdslider.jl +13 -11
- package/src/jl/'feffery'_antdspace.jl +1 -6
- package/src/jl/'feffery'_antdspin.jl +2 -7
- package/src/jl/'feffery'_antdsplitter.jl +3 -6
- package/src/jl/'feffery'_antdspoiler.jl +2 -7
- package/src/jl/'feffery'_antdsteps.jl +1 -6
- package/src/jl/'feffery'_antdswitch.jl +3 -1
- package/src/jl/'feffery'_antdtable.jl +5 -8
- package/src/jl/'feffery'_antdtabs.jl +1 -6
- package/src/jl/'feffery'_antdtag.jl +1 -6
- package/src/jl/'feffery'_antdtext.jl +2 -7
- package/src/jl/'feffery'_antdtimeline.jl +1 -6
- package/src/jl/'feffery'_antdtimepicker.jl +5 -3
- package/src/jl/'feffery'_antdtimerangepicker.jl +5 -8
- package/src/jl/'feffery'_antdtitle.jl +2 -7
- package/src/jl/'feffery'_antdtooltip.jl +9 -4
- package/src/jl/'feffery'_antdtour.jl +2 -7
- package/src/jl/'feffery'_antdtransfer.jl +4 -2
- package/src/jl/'feffery'_antdtree.jl +1 -6
- package/src/jl/'feffery'_antdtreeselect.jl +5 -4
- package/src/jl/'feffery'_antdupload.jl +4 -2
- package/src/jl/'feffery'_antdwatermark.jl +3 -6
- package/src/jl/'feffery'_fragment.jl +1 -6
- package/src/lib/components/dataDisplay/AntdAccordion.react.js +42 -28
- package/src/lib/components/dataDisplay/AntdAvatar.react.js +42 -25
- package/src/lib/components/dataDisplay/AntdAvatarGroup.react.js +50 -43
- package/src/lib/components/dataDisplay/AntdBadge.react.js +46 -26
- package/src/lib/components/dataDisplay/AntdCarousel.react.js +54 -35
- package/src/lib/components/dataDisplay/AntdCheckableTag.react.js +26 -22
- package/src/lib/components/dataDisplay/AntdCollapse.react.js +26 -51
- package/src/lib/components/dataDisplay/AntdComment.react.js +58 -18
- package/src/lib/components/dataDisplay/AntdCountdown.react.js +44 -22
- package/src/lib/components/dataDisplay/AntdEmpty.react.js +76 -30
- package/src/lib/components/dataDisplay/AntdImage.react.js +40 -26
- package/src/lib/components/dataDisplay/AntdImageGroup.react.js +38 -26
- package/src/lib/components/dataDisplay/AntdPopover.react.js +78 -48
- package/src/lib/components/dataDisplay/AntdQRCode.react.js +48 -34
- package/src/lib/components/dataDisplay/AntdRibbon.react.js +26 -22
- package/src/lib/components/dataDisplay/AntdSegmented.react.js +81 -37
- package/src/lib/components/dataDisplay/AntdSpoiler.react.js +40 -28
- package/src/lib/components/dataDisplay/AntdStatistic.react.js +19 -26
- package/src/lib/components/dataDisplay/AntdTable.react.js +140 -64
- package/src/lib/components/dataDisplay/AntdTabs.react.js +61 -28
- package/src/lib/components/dataDisplay/AntdTag.react.js +34 -25
- package/src/lib/components/dataDisplay/AntdTimeline.react.js +28 -23
- package/src/lib/components/dataDisplay/AntdTooltip.react.js +76 -33
- package/src/lib/components/dataDisplay/AntdTree.react.js +103 -45
- package/src/lib/components/dataDisplay/card/AntdCard.react.js +105 -38
- package/src/lib/components/dataDisplay/card/AntdCardGrid.react.js +24 -23
- package/src/lib/components/dataDisplay/card/AntdCardMeta.react.js +24 -20
- package/src/lib/components/dataDisplay/descriptions/AntdDescriptionItem.react.js +55 -31
- package/src/lib/components/dataDisplay/descriptions/AntdDescriptions.react.js +98 -43
- package/src/lib/components/dataEntry/AntdCalendar.react.js +50 -25
- package/src/lib/components/dataEntry/AntdCascader.react.js +96 -38
- package/src/lib/components/dataEntry/AntdCheckbox.react.js +50 -26
- package/src/lib/components/dataEntry/AntdCheckboxGroup.react.js +46 -23
- package/src/lib/components/dataEntry/AntdColorPicker.react.js +60 -33
- package/src/lib/components/dataEntry/AntdDatePicker.react.js +98 -40
- package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +98 -39
- package/src/lib/components/dataEntry/AntdInput.react.js +96 -37
- package/src/lib/components/dataEntry/AntdInputNumber.react.js +86 -32
- package/src/lib/components/dataEntry/AntdMentions.react.js +60 -31
- package/src/lib/components/dataEntry/AntdOTP.react.js +53 -26
- package/src/lib/components/dataEntry/AntdRadioGroup.react.js +58 -30
- package/src/lib/components/dataEntry/AntdRate.react.js +54 -27
- package/src/lib/components/dataEntry/AntdSegmentedColoring.react.js +60 -33
- package/src/lib/components/dataEntry/AntdSelect.react.js +110 -44
- package/src/lib/components/dataEntry/AntdSlider.react.js +100 -41
- package/src/lib/components/dataEntry/AntdSwitch.react.js +54 -11
- package/src/lib/components/dataEntry/AntdTimePicker.react.js +92 -25
- package/src/lib/components/dataEntry/AntdTimeRangePicker.react.js +92 -42
- package/src/lib/components/dataEntry/AntdTransfer.react.js +70 -18
- package/src/lib/components/dataEntry/AntdTreeSelect.react.js +122 -31
- package/src/lib/components/dataEntry/check-card/AntdCheckCard.react.js +51 -23
- package/src/lib/components/dataEntry/check-card/AntdCheckCardGroup.react.js +53 -25
- package/src/lib/components/dataEntry/form/AntdForm.react.js +40 -26
- package/src/lib/components/dataEntry/form/AntdFormItem.react.js +46 -24
- package/src/lib/components/dataEntry/upload/AntdDraggerUpload.react.js +92 -39
- package/src/lib/components/dataEntry/upload/AntdPictureUpload.react.js +84 -39
- package/src/lib/components/dataEntry/upload/AntdUpload.react.js +88 -25
- package/src/lib/components/feedback/AntdAlert.react.js +24 -49
- package/src/lib/components/feedback/AntdDrawer.react.js +31 -63
- package/src/lib/components/feedback/AntdMessage.react.js +29 -82
- package/src/lib/components/feedback/AntdModal.react.js +133 -97
- package/src/lib/components/feedback/AntdNotification.react.js +49 -74
- package/src/lib/components/feedback/AntdPopconfirm.react.js +68 -85
- package/src/lib/components/feedback/AntdPopupCard.react.js +89 -62
- package/src/lib/components/feedback/AntdProgress.react.js +36 -61
- package/src/lib/components/feedback/AntdResult.react.js +16 -38
- package/src/lib/components/feedback/AntdSpin.react.js +45 -74
- package/src/lib/components/feedback/skeleton/AntdCustomSkeleton.react.js +36 -61
- package/src/lib/components/feedback/skeleton/AntdSkeleton.react.js +40 -72
- package/src/lib/components/feedback/skeleton/AntdSkeletonAvatar.react.js +14 -38
- package/src/lib/components/feedback/skeleton/AntdSkeletonButton.react.js +15 -40
- package/src/lib/components/feedback/skeleton/AntdSkeletonImage.react.js +11 -32
- package/src/lib/components/feedback/skeleton/AntdSkeletonInput.react.js +13 -36
- package/src/lib/components/formRender/AntdFormRender.react.js +1 -1
- package/src/lib/components/general/AntdButton.react.js +38 -72
- package/src/lib/components/general/AntdFloatButton.react.js +19 -44
- package/src/lib/components/general/AntdFloatButtonGroup.react.js +32 -43
- package/src/lib/components/general/AntdIcon.react.js +18 -44
- package/src/lib/components/general/typography/AntdParagraph.react.js +25 -49
- package/src/lib/components/general/typography/AntdText.react.js +26 -50
- package/src/lib/components/general/typography/AntdTitle.react.js +26 -51
- package/src/lib/components/icons.react.js +25 -1
- package/src/lib/components/layout/AntdCenter.react.js +14 -38
- package/src/lib/components/layout/AntdCompact.react.js +14 -38
- package/src/lib/components/layout/AntdContent.react.js +12 -34
- package/src/lib/components/layout/AntdDivider.react.js +24 -54
- package/src/lib/components/layout/AntdFlex.react.js +18 -45
- package/src/lib/components/layout/AntdFooter.react.js +12 -34
- package/src/lib/components/layout/AntdHeader.react.js +12 -34
- package/src/lib/components/layout/AntdLayout.react.js +12 -34
- package/src/lib/components/layout/AntdSider.react.js +20 -47
- package/src/lib/components/layout/AntdSpace.react.js +24 -54
- package/src/lib/components/layout/AntdSplitter.react.js +21 -34
- package/src/lib/components/layout/grid/AntdCol.react.js +24 -51
- package/src/lib/components/layout/grid/AntdRow.react.js +16 -42
- package/src/lib/components/locales.react.js +43 -2
- package/src/lib/components/navigation/AntdAnchor.react.js +18 -42
- package/src/lib/components/navigation/AntdBreadcrumb.react.js +105 -100
- package/src/lib/components/navigation/AntdDropdown.react.js +40 -70
- package/src/lib/components/navigation/AntdMenu.react.js +32 -59
- package/src/lib/components/navigation/AntdPageHeader.react.js +18 -44
- package/src/lib/components/navigation/AntdPagination.react.js +37 -69
- package/src/lib/components/navigation/AntdSteps.react.js +22 -51
- package/src/lib/components/other/AntdAffix.react.js +21 -38
- package/src/lib/components/other/AntdBackTop.react.js +19 -41
- package/src/lib/components/other/AntdConfigProvider.react.js +21 -51
- package/src/lib/components/other/AntdCopyText.react.js +19 -43
- package/src/lib/components/other/AntdTour.react.js +22 -51
- package/src/lib/components/other/AntdWatermark.react.js +31 -49
- package/src/lib/components/other/Fragment.react.js +0 -20
- package/src/lib/components/styles.css +0 -5
- package/src/lib/components/utils.js +24 -18
- package/src/lib/fragments/AntdTable.react.js +1807 -1801
- package/src/lib/fragments/dataDisplay/AntdAccordion.react.js +5 -6
- package/src/lib/fragments/dataDisplay/AntdAvatar.react.js +9 -14
- package/src/lib/fragments/dataDisplay/AntdAvatarGroup.react.js +7 -14
- package/src/lib/fragments/dataDisplay/AntdBadge.react.js +5 -6
- package/src/lib/fragments/dataDisplay/AntdCarousel.react.js +5 -6
- package/src/lib/fragments/dataDisplay/AntdCheckableTag.react.js +4 -5
- package/src/lib/fragments/dataDisplay/AntdComment.react.js +5 -7
- package/src/lib/fragments/dataDisplay/AntdCountdown.react.js +5 -5
- package/src/lib/fragments/dataDisplay/AntdEmpty.react.js +8 -7
- package/src/lib/fragments/dataDisplay/AntdImage.react.js +5 -4
- package/src/lib/fragments/dataDisplay/AntdImageGroup.react.js +3 -2
- package/src/lib/fragments/dataDisplay/AntdPopover.react.js +8 -16
- package/src/lib/fragments/dataDisplay/AntdQRCode.react.js +12 -7
- package/src/lib/fragments/dataDisplay/AntdRibbon.react.js +5 -6
- package/src/lib/fragments/dataDisplay/AntdSegmented.react.js +29 -25
- package/src/lib/fragments/dataDisplay/AntdSpoiler.react.js +5 -6
- package/src/lib/fragments/dataDisplay/AntdTabs.react.js +4 -5
- package/src/lib/fragments/dataDisplay/AntdTag.react.js +4 -5
- package/src/lib/fragments/dataDisplay/AntdTimeline.react.js +4 -5
- package/src/lib/fragments/dataDisplay/AntdTooltip.react.js +8 -16
- package/src/lib/fragments/dataDisplay/AntdTree.react.js +5 -7
- package/src/lib/fragments/dataDisplay/card/AntdCard.react.js +29 -17
- package/src/lib/fragments/dataDisplay/card/AntdCardGrid.react.js +4 -6
- package/src/lib/fragments/dataDisplay/card/AntdCardMeta.react.js +4 -5
- package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptionItem.react.js +8 -10
- package/src/lib/fragments/dataDisplay/descriptions/AntdDescriptions.react.js +16 -22
- package/src/lib/fragments/dataEntry/AntdCalendar.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdCascader.react.js +14 -17
- package/src/lib/fragments/dataEntry/AntdCheckbox.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdCheckboxGroup.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdColorPicker.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdDatePicker.react.js +11 -11
- package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +11 -11
- package/src/lib/fragments/dataEntry/AntdInput.react.js +23 -29
- package/src/lib/fragments/dataEntry/AntdInputNumber.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdMentions.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdOTP.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdRadioGroup.react.js +14 -16
- package/src/lib/fragments/dataEntry/AntdRate.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdSegmentedColoring.react.js +5 -6
- package/src/lib/fragments/dataEntry/AntdSelect.react.js +14 -12
- package/src/lib/fragments/dataEntry/AntdSlider.react.js +10 -12
- package/src/lib/fragments/dataEntry/AntdSwitch.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdTimePicker.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdTimeRangePicker.react.js +10 -10
- package/src/lib/fragments/dataEntry/AntdTransfer.react.js +9 -9
- package/src/lib/fragments/dataEntry/AntdTreeSelect.react.js +11 -12
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCard.react.js +8 -8
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCardGroup.react.js +8 -9
- package/src/lib/fragments/dataEntry/form/AntdForm.react.js +4 -5
- package/src/lib/fragments/dataEntry/form/AntdFormItem.react.js +4 -5
- package/src/lib/fragments/upload/AntdDraggerUpload.react.js +22 -18
- package/src/lib/fragments/upload/AntdPictureUpload.react.js +25 -20
- package/src/lib/fragments/upload/AntdUpload.react.js +22 -19
- package/src/lib/index.js +0 -6
- package/tests/dash3.0tests/AntdQRCode/347/273/204/344/273/266loading/347/212/266/346/200/201/351/207/215/346/236/204/test.py +51 -0
- package/tests/dash3.0tests/AntdTable/345/207/275/346/225/260/345/274/217/346/224/271/351/200/240/test.py +62 -0
- package/tests/dash3.0tests/_dashprivate_layout/346/224/271/345/212/250/346/265/213/350/257/225/test.py +50 -0
- package/tests/dash3.0tests/loading_state/346/224/271/345/212/250/346/265/213/350/257/225/test.py +38 -0
- package/tests/dash3.0tests//345/207/275/346/225/260/345/274/217/347/273/204/344/273/266/351/273/230/350/256/244/345/200/274/351/207/215/346/236/204/test.py +30 -0
- package/tests/dash3.0tests//345/212/240/350/275/275/345/212/250/347/224/273/347/261/273/347/273/204/344/273/266/351/207/215/346/236/204/346/265/213/350/257/225/test.py +62 -0
- package/tests/dash3.0tests//347/273/204/344/273/266/345/261/236/346/200/247/345/237/272/347/241/200/346/214/201/344/271/205/345/214/226/351/207/215/346/236/204/346/265/213/350/257/225/test.py +25 -0
- package/tests/dataDisplay/AntdCard/refactor_delete_props.py +83 -0
- package/tests/dataDisplay/AntdCarousel/feat_auto_play_dot_duration.py +34 -0
- package/tests/dataDisplay/AntdCountdown/feat_finish_event.py +41 -0
- package/tests/dataDisplay/AntdSegmented/feat_shape.py +39 -0
- package/tests/dataDisplay/AntdSegmented/feat_simple_options.py +43 -0
- package/tests/dataDisplay/AntdTable/feat_row_class_name_func.py +41 -0
- package/tests/dataDisplay/AntdTable/fix_context_locale.py +37 -0
- package/tests/dataEntry/AntdForm/feat_optional_batch_control.py +62 -0
- package/tests/dataEntry/AntdSelect/feat_locale_ru.py +24 -0
- package/tests/dataEntry/AntdUpload/fix_follow_theme.py +28 -0
- package/tests/feat_variant_underlined.py +100 -0
- package/tests/feedback/AntdMessage/fix_follow_config_provider.py +44 -0
- package/tests/feedback/AntdModal/feat_responsive_width.py +31 -0
- package/tests/feedback/AntdNotification/feat_show_progress.py +40 -0
- package/tests/feedback/AntdNotification/fix_follow_config_provider.py +46 -0
- package/tests/general/AntdButton/feat_preset_color.py +46 -0
- package/tests/layout/AntdSplitter/feat_lazy.py +56 -0
- package/tests/navigation/AntdBreadcrumb/feat_menu_item_event.py +64 -0
- package/tests/navigation/AntdBreadcrumb/refactor_items.py +140 -0
- package/tests/other/AntdAffix/feat_listen_affixed.py +41 -0
- package/tests/other/AntdBackTop/refactor.py +18 -0
- package/usage.py +23 -17
- package/feffery_antd_components/AntdDraggablePanel.py +0 -125
- package/feffery_antd_components/AntdEditorLayout.py +0 -237
- package/src/lib/components/proEditor/AntdDraggablePanel.react.js +0 -181
- package/src/lib/components/proEditor/AntdEditorLayout.react.js +0 -336
- package/src/lib/fragments/proEditor/AntdDraggablePanel.react.js +0 -70
- package/src/lib/fragments/proEditor/AntdEditorLayout.react.js +0 -79
|
@@ -9,6 +9,7 @@ import { isString, isUndefined } from 'lodash';
|
|
|
9
9
|
import { v4 as uuidv4 } from 'uuid';
|
|
10
10
|
import { pickBy } from 'ramda';
|
|
11
11
|
import { pick } from 'ramda';
|
|
12
|
+
import { useLoading } from '../../components/utils';
|
|
12
13
|
// 自定义hooks
|
|
13
14
|
import useCss from '../../hooks/useCss';
|
|
14
15
|
// 上下文
|
|
@@ -53,6 +54,7 @@ const AntdUpload = (props) => {
|
|
|
53
54
|
style,
|
|
54
55
|
key,
|
|
55
56
|
name,
|
|
57
|
+
enableBatchControl,
|
|
56
58
|
locale,
|
|
57
59
|
apiUrl,
|
|
58
60
|
apiUrlExtraParams,
|
|
@@ -82,10 +84,13 @@ const AntdUpload = (props) => {
|
|
|
82
84
|
defaultFileList,
|
|
83
85
|
disabled,
|
|
84
86
|
status,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
setProps,
|
|
88
|
+
...others
|
|
87
89
|
} = props;
|
|
88
90
|
|
|
91
|
+
const [messageApi, messageContextHolder] = message.useMessage();
|
|
92
|
+
const [modalApi, modalContextHolder] = Modal.useModal();
|
|
93
|
+
|
|
89
94
|
const context = useContext(PropsContext)
|
|
90
95
|
const formId = useContext(FormContext)
|
|
91
96
|
|
|
@@ -101,7 +106,7 @@ const AntdUpload = (props) => {
|
|
|
101
106
|
// 针对上传类组件,特殊处理由表单值控制上传列表的清空
|
|
102
107
|
useEffect(() => {
|
|
103
108
|
// 若上文中存在有效表单id
|
|
104
|
-
if (formId && (name || id)) {
|
|
109
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
105
110
|
if (!currentFormValue || currentFormValue.length === 0) {
|
|
106
111
|
// 清空上传列表
|
|
107
112
|
updateFileList([])
|
|
@@ -117,7 +122,7 @@ const AntdUpload = (props) => {
|
|
|
117
122
|
useEffect(() => {
|
|
118
123
|
return () => {
|
|
119
124
|
// 若上文中存在有效表单id
|
|
120
|
-
if (formId && (name || id)) {
|
|
125
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
121
126
|
// 表单值更新
|
|
122
127
|
deleteItemValue(formId, name || id)
|
|
123
128
|
}
|
|
@@ -167,12 +172,12 @@ const AntdUpload = (props) => {
|
|
|
167
172
|
beforeUpload: (file) => {
|
|
168
173
|
const sizeCheck = file.size / 1024 / 1024 < fileMaxSize;
|
|
169
174
|
if (!sizeCheck) {
|
|
170
|
-
|
|
175
|
+
messageApi.error(`${file.name}${locale2text.Upload[locale].sizeError[0]}${fileMaxSize}${locale2text.Upload[locale].sizeError[1]}`);
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
if (fileTypes) {
|
|
174
179
|
if (fileTypes.indexOf(file.name.split('.')[file.name.split('.').length - 1]) === -1) {
|
|
175
|
-
|
|
180
|
+
messageApi.error(`${locale2text.Upload[locale].typeError[0]}${file.name}${locale2text.Upload[locale].typeError[1]}`);
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
return sizeCheck && fileTypes.indexOf(file.name.split('.')[file.name.split('.').length - 1]) !== -1;
|
|
@@ -231,7 +236,7 @@ const AntdUpload = (props) => {
|
|
|
231
236
|
}
|
|
232
237
|
)
|
|
233
238
|
// AntdForm表单批量控制
|
|
234
|
-
if (formId && (name || id)) {
|
|
239
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
235
240
|
// 表单值更新
|
|
236
241
|
updateItemValue(formId, name || id, _listUploadTaskRecord)
|
|
237
242
|
}
|
|
@@ -286,7 +291,7 @@ const AntdUpload = (props) => {
|
|
|
286
291
|
)
|
|
287
292
|
|
|
288
293
|
// AntdForm表单批量控制
|
|
289
|
-
if (formId && (name || id)) {
|
|
294
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
290
295
|
// 表单值更新
|
|
291
296
|
updateItemValue(formId, name || id, _listUploadTaskRecord)
|
|
292
297
|
}
|
|
@@ -368,7 +373,7 @@ const AntdUpload = (props) => {
|
|
|
368
373
|
)
|
|
369
374
|
|
|
370
375
|
// AntdForm表单批量控制
|
|
371
|
-
if (formId && (name || id)) {
|
|
376
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
372
377
|
// 表单值更新
|
|
373
378
|
updateItemValue(formId, name || id, _listUploadTaskRecord)
|
|
374
379
|
}
|
|
@@ -415,7 +420,7 @@ const AntdUpload = (props) => {
|
|
|
415
420
|
)
|
|
416
421
|
|
|
417
422
|
// AntdForm表单批量控制
|
|
418
|
-
if (formId && (name || id)) {
|
|
423
|
+
if (formId && (name || id) && enableBatchControl) {
|
|
419
424
|
// 表单值更新
|
|
420
425
|
updateItemValue(formId, name || id, _listUploadTaskRecord)
|
|
421
426
|
}
|
|
@@ -449,9 +454,9 @@ const AntdUpload = (props) => {
|
|
|
449
454
|
}
|
|
450
455
|
|
|
451
456
|
if ((info.file.status === 'done' || info.file.status === 'success') && showSuccessMessage) {
|
|
452
|
-
|
|
457
|
+
messageApi.success(`${info.file.name} ${locale2text.Upload[locale].uploadSuccess}`);
|
|
453
458
|
} else if (info.file.status === 'error' && showErrorMessage) {
|
|
454
|
-
|
|
459
|
+
messageApi.error(`${info.file.name} ${locale2text.Upload[locale].uploadFailed}`);
|
|
455
460
|
}
|
|
456
461
|
|
|
457
462
|
// 获取当前上传文件列表
|
|
@@ -519,7 +524,6 @@ const AntdUpload = (props) => {
|
|
|
519
524
|
|
|
520
525
|
// 添加accept参数
|
|
521
526
|
if (fileTypes && fileTypes.length != 0) {
|
|
522
|
-
|
|
523
527
|
Object.assign(uploadProps, { accept: '.' + fileTypes.join(',.') })
|
|
524
528
|
}
|
|
525
529
|
|
|
@@ -527,7 +531,7 @@ const AntdUpload = (props) => {
|
|
|
527
531
|
<ConfigProvider locale={str2Locale.get(locale)}>
|
|
528
532
|
<div
|
|
529
533
|
// 提取具有data-*或aria-*通配格式的属性
|
|
530
|
-
{...pickBy((_, k) => k.startsWith('data-') || k.startsWith('aria-'),
|
|
534
|
+
{...pickBy((_, k) => k.startsWith('data-') || k.startsWith('aria-'), others)}
|
|
531
535
|
id={id}
|
|
532
536
|
className={
|
|
533
537
|
isString(className) ?
|
|
@@ -541,6 +545,8 @@ const AntdUpload = (props) => {
|
|
|
541
545
|
...style
|
|
542
546
|
}}
|
|
543
547
|
key={key}>
|
|
548
|
+
{messageContextHolder}
|
|
549
|
+
{modalContextHolder}
|
|
544
550
|
<Upload
|
|
545
551
|
{...uploadProps}
|
|
546
552
|
className={buttonProps?.block ? 'ant-upload-button-block' : undefined}
|
|
@@ -571,22 +577,19 @@ const AntdUpload = (props) => {
|
|
|
571
577
|
confirmBeforeDelete ?
|
|
572
578
|
() => {
|
|
573
579
|
return new Promise((resolve, reject) => {
|
|
574
|
-
|
|
580
|
+
modalApi.confirm({
|
|
575
581
|
title: locale2text.AntdPictureUpload[locale].confirmBeforeDeleteTitle,
|
|
576
582
|
okText: locale2text.AntdPictureUpload[locale].confirmBeforeDeleteOkText,
|
|
577
583
|
cancelText: locale2text.AntdPictureUpload[locale].confirmBeforeDeleteCancelText,
|
|
578
584
|
onOk: () => {
|
|
579
585
|
resolve(true);
|
|
580
586
|
},
|
|
581
|
-
|
|
582
587
|
});
|
|
583
588
|
});
|
|
584
589
|
} :
|
|
585
590
|
undefined
|
|
586
591
|
}
|
|
587
|
-
data-dash-is-loading={
|
|
588
|
-
(loading_state && loading_state.is_loading) || undefined
|
|
589
|
-
}>
|
|
592
|
+
data-dash-is-loading={useLoading()}>
|
|
590
593
|
<Button icon={buttonIcon || <UploadOutlined />}
|
|
591
594
|
disabled={
|
|
592
595
|
context && !isUndefined(context.componentDisabled) ?
|
package/src/lib/index.js
CHANGED
|
@@ -112,9 +112,6 @@ import AntdTour from './components/other/AntdTour.react';
|
|
|
112
112
|
import AntdWatermark from './components/other/AntdWatermark.react';
|
|
113
113
|
import AntdConfigProvider from './components/other/AntdConfigProvider.react';
|
|
114
114
|
import Fragment from './components/other/Fragment.react';
|
|
115
|
-
// 复杂交互
|
|
116
|
-
// import AntdDraggablePanel from './components/proEditor/AntdDraggablePanel.react';
|
|
117
|
-
// import AntdEditorLayout from './components/proEditor/AntdEditorLayout.react';
|
|
118
115
|
// 表单生成
|
|
119
116
|
// import AntdFormRender from './components/formRender/AntdFormRender.react';
|
|
120
117
|
// css样式
|
|
@@ -235,9 +232,6 @@ export {
|
|
|
235
232
|
AntdWatermark,
|
|
236
233
|
AntdConfigProvider,
|
|
237
234
|
Fragment,
|
|
238
|
-
// 复杂交互
|
|
239
|
-
// AntdDraggablePanel,
|
|
240
|
-
// AntdEditorLayout,
|
|
241
235
|
// 表单生成
|
|
242
236
|
// AntdFormRender
|
|
243
237
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import time
|
|
6
|
+
import dash
|
|
7
|
+
from dash import html
|
|
8
|
+
import feffery_antd_components as fac
|
|
9
|
+
from dash.dependencies import Input, Output, State
|
|
10
|
+
|
|
11
|
+
app = dash.Dash(__name__)
|
|
12
|
+
|
|
13
|
+
app.layout = html.Div(
|
|
14
|
+
fac.AntdSpace(
|
|
15
|
+
[
|
|
16
|
+
fac.AntdQRCode(
|
|
17
|
+
id='auto-spin-qrcode-demo',
|
|
18
|
+
value='https://fac.feffery.tech/',
|
|
19
|
+
autoSpin=True,
|
|
20
|
+
),
|
|
21
|
+
fac.AntdButton(
|
|
22
|
+
'重新生成',
|
|
23
|
+
id='auto-spin-qrcode-demo-button',
|
|
24
|
+
type='primary',
|
|
25
|
+
),
|
|
26
|
+
],
|
|
27
|
+
direction='vertical',
|
|
28
|
+
align='center',
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@app.callback(
|
|
34
|
+
Output('auto-spin-qrcode-demo', 'value'),
|
|
35
|
+
Input('auto-spin-qrcode-demo-button', 'nClicks'),
|
|
36
|
+
State('auto-spin-qrcode-demo', 'value'),
|
|
37
|
+
prevent_initial_call=True,
|
|
38
|
+
)
|
|
39
|
+
def auto_spin_qrcode_demo_input_callback(nClicks, value):
|
|
40
|
+
if nClicks:
|
|
41
|
+
time.sleep(1)
|
|
42
|
+
if value == 'https://fac.feffery.tech/':
|
|
43
|
+
return 'https://ant.design/'
|
|
44
|
+
elif value == 'https://ant.design/':
|
|
45
|
+
return 'https://fac.feffery.tech/'
|
|
46
|
+
|
|
47
|
+
return dash.no_update
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
from datetime import datetime
|
|
8
|
+
import feffery_antd_components as fac
|
|
9
|
+
from feffery_dash_utils.style_utils import style
|
|
10
|
+
|
|
11
|
+
app = dash.Dash(__name__)
|
|
12
|
+
|
|
13
|
+
app.layout = html.Div(
|
|
14
|
+
[
|
|
15
|
+
fac.AntdTable(
|
|
16
|
+
columns=[
|
|
17
|
+
{
|
|
18
|
+
'title': 'int型示例',
|
|
19
|
+
'dataIndex': 'int型示例',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
'title': 'float型示例',
|
|
23
|
+
'dataIndex': 'float型示例',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
'title': 'str型示例',
|
|
27
|
+
'dataIndex': 'str型示例',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
'title': '日期时间示例',
|
|
31
|
+
'dataIndex': '日期时间示例',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
data=[
|
|
35
|
+
{
|
|
36
|
+
'int型示例': 123,
|
|
37
|
+
'float型示例': 1.23,
|
|
38
|
+
'str型示例': '示例字符',
|
|
39
|
+
'日期时间示例': datetime.now(),
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
* 20,
|
|
43
|
+
),
|
|
44
|
+
fac.AntdTable(
|
|
45
|
+
columns=[
|
|
46
|
+
{
|
|
47
|
+
'title': '搜索型筛选',
|
|
48
|
+
'dataIndex': '搜索型筛选',
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
data=[{'搜索型筛选': s} for s in list('abced')],
|
|
52
|
+
filterOptions={
|
|
53
|
+
'搜索型筛选': {'filterMode': 'keyword'}
|
|
54
|
+
},
|
|
55
|
+
style={'width': 200},
|
|
56
|
+
),
|
|
57
|
+
],
|
|
58
|
+
style=style(padding=50),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
if __name__ == '__main__':
|
|
62
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
import feffery_antd_components as fac
|
|
8
|
+
from feffery_dash_utils.style_utils import style
|
|
9
|
+
|
|
10
|
+
app = dash.Dash(__name__)
|
|
11
|
+
|
|
12
|
+
app.layout = html.Div(
|
|
13
|
+
[
|
|
14
|
+
html.Div(fac.__version__),
|
|
15
|
+
fac.AntdDescriptions(
|
|
16
|
+
[
|
|
17
|
+
fac.AntdDescriptionItem(
|
|
18
|
+
'费弗里', label='姓名'
|
|
19
|
+
),
|
|
20
|
+
fac.AntdDescriptionItem(
|
|
21
|
+
html.A(
|
|
22
|
+
'https://github.com/CNFeffery',
|
|
23
|
+
href='https://github.com/CNFeffery',
|
|
24
|
+
),
|
|
25
|
+
label='个人Github地址',
|
|
26
|
+
),
|
|
27
|
+
fac.AntdDescriptionItem(
|
|
28
|
+
html.A(
|
|
29
|
+
'https://www.cnblogs.com/feffery/',
|
|
30
|
+
href='https://www.cnblogs.com/feffery/',
|
|
31
|
+
),
|
|
32
|
+
label='个人博客地址',
|
|
33
|
+
),
|
|
34
|
+
fac.AntdDescriptionItem(
|
|
35
|
+
html.A(
|
|
36
|
+
'http://fac.feffery.tech/',
|
|
37
|
+
href='http://fac.feffery.tech/',
|
|
38
|
+
),
|
|
39
|
+
label='fac框架官网',
|
|
40
|
+
),
|
|
41
|
+
],
|
|
42
|
+
title='描述列表示例',
|
|
43
|
+
labelStyle={'fontWeight': 'bold'},
|
|
44
|
+
),
|
|
45
|
+
],
|
|
46
|
+
style=style(padding=50),
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
if __name__ == '__main__':
|
|
50
|
+
app.run(debug=True)
|
package/tests/dash3.0tests/loading_state/346/224/271/345/212/250/346/265/213/350/257/225/test.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import time
|
|
6
|
+
import dash
|
|
7
|
+
from dash import html
|
|
8
|
+
import feffery_antd_components as fac
|
|
9
|
+
from dash.dependencies import Input, Output
|
|
10
|
+
from feffery_dash_utils.style_utils import style
|
|
11
|
+
|
|
12
|
+
app = dash.Dash(__name__)
|
|
13
|
+
|
|
14
|
+
app.layout = html.Div(
|
|
15
|
+
[
|
|
16
|
+
fac.AntdButton(
|
|
17
|
+
'测试',
|
|
18
|
+
id='button-demo',
|
|
19
|
+
type='primary',
|
|
20
|
+
)
|
|
21
|
+
],
|
|
22
|
+
style=style(padding=50),
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@app.callback(
|
|
27
|
+
Output('button-demo', 'children'),
|
|
28
|
+
Input('button-demo', 'nClicks'),
|
|
29
|
+
prevent_initial_call=True,
|
|
30
|
+
)
|
|
31
|
+
def demo_callback(nClicks):
|
|
32
|
+
time.sleep(3)
|
|
33
|
+
|
|
34
|
+
return f'nClicks: {nClicks}'
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == '__main__':
|
|
38
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
import feffery_antd_components as fac
|
|
8
|
+
from feffery_dash_utils.style_utils import style
|
|
9
|
+
|
|
10
|
+
app = dash.Dash(__name__)
|
|
11
|
+
|
|
12
|
+
app.layout = html.Div(
|
|
13
|
+
[
|
|
14
|
+
fac.AntdButton(
|
|
15
|
+
'测试',
|
|
16
|
+
id='button-demo',
|
|
17
|
+
type='primary',
|
|
18
|
+
**{'data-test': 'test'},
|
|
19
|
+
),
|
|
20
|
+
fac.AntdTag(
|
|
21
|
+
content='测试',
|
|
22
|
+
href='/test',
|
|
23
|
+
**{'data-test': 'test'},
|
|
24
|
+
),
|
|
25
|
+
],
|
|
26
|
+
style=style(padding=50),
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
if __name__ == '__main__':
|
|
30
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import time
|
|
6
|
+
import dash
|
|
7
|
+
from dash import html
|
|
8
|
+
import feffery_antd_components as fac
|
|
9
|
+
from dash.dependencies import Input, Output
|
|
10
|
+
from feffery_dash_utils.style_utils import style
|
|
11
|
+
|
|
12
|
+
app = dash.Dash(__name__)
|
|
13
|
+
|
|
14
|
+
app.layout = html.Div(
|
|
15
|
+
html.Div(
|
|
16
|
+
[
|
|
17
|
+
'测试',
|
|
18
|
+
fac.AntdCustomSkeleton(
|
|
19
|
+
[
|
|
20
|
+
html.Div(
|
|
21
|
+
html.Div(
|
|
22
|
+
fac.AntdButton(
|
|
23
|
+
'测试',
|
|
24
|
+
id='button-demo',
|
|
25
|
+
type='primary',
|
|
26
|
+
)
|
|
27
|
+
)
|
|
28
|
+
),
|
|
29
|
+
html.Div(id='inner-output-test'),
|
|
30
|
+
],
|
|
31
|
+
skeletonContent='加载中...',
|
|
32
|
+
),
|
|
33
|
+
html.Div(id='outer-output-test'),
|
|
34
|
+
],
|
|
35
|
+
style=style(padding=50),
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@app.callback(
|
|
41
|
+
[
|
|
42
|
+
Output('button-demo', 'children'),
|
|
43
|
+
Output('button-demo', 'type'),
|
|
44
|
+
Output('inner-output-test', 'children'),
|
|
45
|
+
Output('outer-output-test', 'children'),
|
|
46
|
+
],
|
|
47
|
+
Input('button-demo', 'nClicks'),
|
|
48
|
+
prevent_initial_call=True,
|
|
49
|
+
)
|
|
50
|
+
def demo_callback(nClicks):
|
|
51
|
+
time.sleep(3)
|
|
52
|
+
|
|
53
|
+
return [
|
|
54
|
+
f'nClicks: {nClicks}',
|
|
55
|
+
dash.no_update,
|
|
56
|
+
f'inner: {nClicks}',
|
|
57
|
+
f'outer: {nClicks}',
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
if __name__ == '__main__':
|
|
62
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
import feffery_antd_components as fac
|
|
8
|
+
from feffery_dash_utils.style_utils import style
|
|
9
|
+
|
|
10
|
+
app = dash.Dash(__name__)
|
|
11
|
+
|
|
12
|
+
app.layout = html.Div(
|
|
13
|
+
[
|
|
14
|
+
fac.AntdCollapse(
|
|
15
|
+
'测试内容',
|
|
16
|
+
id='persistence-test',
|
|
17
|
+
title='测试',
|
|
18
|
+
persistence=True,
|
|
19
|
+
)
|
|
20
|
+
],
|
|
21
|
+
style=style(padding=50),
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
if __name__ == '__main__':
|
|
25
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
import feffery_antd_components as fac
|
|
8
|
+
from feffery_dash_utils.style_utils import style
|
|
9
|
+
|
|
10
|
+
app = dash.Dash(__name__)
|
|
11
|
+
|
|
12
|
+
app.layout = html.Div(
|
|
13
|
+
[
|
|
14
|
+
fac.AntdSpace(
|
|
15
|
+
[
|
|
16
|
+
fac.AntdDivider(
|
|
17
|
+
'AntdCardGrid基础使用',
|
|
18
|
+
innerTextOrientation='left',
|
|
19
|
+
),
|
|
20
|
+
fac.AntdCard(
|
|
21
|
+
[
|
|
22
|
+
fac.AntdCardGrid(f'内容{i}')
|
|
23
|
+
for i in range(1, 16)
|
|
24
|
+
],
|
|
25
|
+
title='AntdCardGrid基础使用',
|
|
26
|
+
),
|
|
27
|
+
fac.AntdDivider(
|
|
28
|
+
'调整浏览器窗口尺寸以观察换行效果',
|
|
29
|
+
innerTextOrientation='left',
|
|
30
|
+
),
|
|
31
|
+
fac.AntdCard(
|
|
32
|
+
[
|
|
33
|
+
fac.AntdCardGrid(
|
|
34
|
+
f'内容{i}', style={'width': 95}
|
|
35
|
+
)
|
|
36
|
+
for i in range(1, 16)
|
|
37
|
+
],
|
|
38
|
+
title='固定AntdCardGrid宽度以支持自动换行',
|
|
39
|
+
),
|
|
40
|
+
fac.AntdDivider(
|
|
41
|
+
'紧凑的网格内容区',
|
|
42
|
+
innerTextOrientation='left',
|
|
43
|
+
),
|
|
44
|
+
fac.AntdCard(
|
|
45
|
+
[
|
|
46
|
+
fac.AntdCardGrid(f'内容{i}')
|
|
47
|
+
for i in range(1, 16)
|
|
48
|
+
],
|
|
49
|
+
title='调整各类样式以实现紧凑的网格内容区',
|
|
50
|
+
variant='borderless',
|
|
51
|
+
style={'borderRadius': '8px 8px 0 0'},
|
|
52
|
+
styles={
|
|
53
|
+
'header': {
|
|
54
|
+
'border': '1px solid #f0f0f0'
|
|
55
|
+
},
|
|
56
|
+
'body': {
|
|
57
|
+
'padding': '0px 1px 0px 0px',
|
|
58
|
+
'border': 0,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
),
|
|
62
|
+
fac.AntdDivider(
|
|
63
|
+
'关闭悬停阴影效果',
|
|
64
|
+
innerTextOrientation='left',
|
|
65
|
+
),
|
|
66
|
+
fac.AntdCard(
|
|
67
|
+
[
|
|
68
|
+
fac.AntdCardGrid(
|
|
69
|
+
f'内容{i}', hoverable=False
|
|
70
|
+
)
|
|
71
|
+
for i in range(1, 16)
|
|
72
|
+
],
|
|
73
|
+
title='关闭悬停阴影效果',
|
|
74
|
+
),
|
|
75
|
+
],
|
|
76
|
+
direction='vertical',
|
|
77
|
+
)
|
|
78
|
+
],
|
|
79
|
+
style=style(padding=50),
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
if __name__ == '__main__':
|
|
83
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
from dash import html
|
|
7
|
+
import feffery_antd_components as fac
|
|
8
|
+
from feffery_dash_utils.style_utils import style
|
|
9
|
+
|
|
10
|
+
app = dash.Dash(__name__)
|
|
11
|
+
|
|
12
|
+
app.layout = html.Div(
|
|
13
|
+
[
|
|
14
|
+
fac.AntdCarousel(
|
|
15
|
+
[
|
|
16
|
+
fac.AntdCenter(
|
|
17
|
+
i,
|
|
18
|
+
style={
|
|
19
|
+
'color': 'white',
|
|
20
|
+
'fontSize': 36,
|
|
21
|
+
'height': 160,
|
|
22
|
+
'backgroundColor': '#364d79',
|
|
23
|
+
},
|
|
24
|
+
)
|
|
25
|
+
for i in range(1, 6)
|
|
26
|
+
],
|
|
27
|
+
autoplay={'dotDuration': True},
|
|
28
|
+
)
|
|
29
|
+
],
|
|
30
|
+
style=style(padding=50),
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
if __name__ == '__main__':
|
|
34
|
+
app.run(debug=True)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
if True:
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
sys.path.append('../../../')
|
|
5
|
+
import dash
|
|
6
|
+
import feffery_antd_components as fac
|
|
7
|
+
from datetime import datetime, timedelta
|
|
8
|
+
from dash.dependencies import Input, Output
|
|
9
|
+
from feffery_dash_utils.style_utils import style
|
|
10
|
+
|
|
11
|
+
app = dash.Dash(__name__)
|
|
12
|
+
|
|
13
|
+
app.layout = lambda: fac.AntdCenter(
|
|
14
|
+
[
|
|
15
|
+
fac.AntdCountdown(
|
|
16
|
+
id='countdown-demo',
|
|
17
|
+
value=(
|
|
18
|
+
datetime.now() + timedelta(seconds=6)
|
|
19
|
+
).strftime('%Y-%m-%d %H:%M:%S:%f'),
|
|
20
|
+
format='HH:mm:ss:SSS',
|
|
21
|
+
),
|
|
22
|
+
fac.Fragment(id='message'),
|
|
23
|
+
],
|
|
24
|
+
style=style(padding=50),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@app.callback(
|
|
29
|
+
Output('message', 'children'),
|
|
30
|
+
Input('countdown-demo', 'finishEvent'),
|
|
31
|
+
prevent_initial_call=True,
|
|
32
|
+
)
|
|
33
|
+
def show_finish_event(finishEvent):
|
|
34
|
+
return fac.AntdNotification(
|
|
35
|
+
message='倒计时结束:'
|
|
36
|
+
+ str(finishEvent['timestamp']),
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if __name__ == '__main__':
|
|
41
|
+
app.run(debug=True)
|