@robot-admin/naive-ui-components 0.40.4 → 0.41.0
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/CHANGELOG.md +16 -0
- package/README.md +62 -214
- package/README_EN.md +62 -195
- package/dist/ActionOverflow.cjs +1 -0
- package/dist/ActionOverflow.js +1 -0
- package/dist/C_ActionBar.css +63 -53
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_ApprovalViewer.cjs +1 -0
- package/dist/C_ApprovalViewer.css +79 -0
- package/dist/C_ApprovalViewer.d.cts +2 -0
- package/dist/C_ApprovalViewer.d.ts +2 -0
- package/dist/C_ApprovalViewer.js +1 -0
- package/dist/C_ApprovalViewer2.cjs +1 -0
- package/dist/C_ApprovalViewer2.js +1 -0
- package/dist/C_Attachments.cjs +1 -0
- package/dist/C_Attachments.css +204 -0
- package/dist/C_Attachments.d.cts +2 -0
- package/dist/C_Attachments.d.ts +2 -0
- package/dist/C_Attachments.js +1 -0
- package/dist/C_Attachments2.cjs +1 -0
- package/dist/C_Attachments2.js +1 -0
- package/dist/C_AudioPlayer.d.cts +1 -1
- package/dist/C_AudioPlayer.d.ts +1 -1
- package/dist/C_AutoComplete.d.cts +2 -2
- package/dist/C_AutoComplete.d.ts +2 -2
- package/dist/C_AvatarGroup.d.cts +1 -1
- package/dist/C_AvatarGroup.d.ts +1 -1
- package/dist/C_Barcode.d.cts +1 -1
- package/dist/C_Barcode.d.ts +1 -1
- package/dist/C_BatchResult.css +10 -10
- package/dist/C_BatchResult.d.cts +1 -1
- package/dist/C_BatchResult.d.ts +1 -1
- package/dist/C_BatchResult2.cjs +1 -1
- package/dist/C_BatchResult2.js +1 -1
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_ChangeReview.cjs +1 -0
- package/dist/C_ChangeReview.css +49 -0
- package/dist/C_ChangeReview.d.cts +2 -0
- package/dist/C_ChangeReview.d.ts +2 -0
- package/dist/C_ChangeReview.js +1 -0
- package/dist/C_ChangeReview2.cjs +1 -0
- package/dist/C_ChangeReview2.js +1 -0
- package/dist/C_Chat.css +120 -67
- package/dist/C_Chat.d.cts +2 -2
- package/dist/C_Chat.d.ts +2 -2
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +125 -50
- package/dist/C_DataPicker.d.cts +3 -3
- package/dist/C_DataPicker.d.ts +4 -3
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.d.cts +1 -1
- package/dist/C_Density.d.ts +1 -1
- package/dist/C_Descriptions.cjs +1 -0
- package/dist/C_Descriptions.css +86 -0
- package/dist/C_Descriptions.d.cts +2 -0
- package/dist/C_Descriptions.d.ts +2 -0
- package/dist/C_Descriptions.js +1 -0
- package/dist/C_Descriptions2.cjs +1 -0
- package/dist/C_Descriptions2.js +1 -0
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_ErrorSummary.d.cts +1 -1
- package/dist/C_ErrorSummary.d.ts +1 -1
- package/dist/C_FilePreview.cjs +1 -1
- package/dist/C_FilePreview.d.cts +2 -1
- package/dist/C_FilePreview.d.ts +2 -1
- package/dist/C_FilePreview.js +1 -1
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_FilterBuilder.cjs +1 -0
- package/dist/C_FilterBuilder.css +59 -0
- package/dist/C_FilterBuilder.d.cts +2 -0
- package/dist/C_FilterBuilder.d.ts +2 -0
- package/dist/C_FilterBuilder.js +1 -0
- package/dist/C_FilterBuilder2.cjs +1 -0
- package/dist/C_FilterBuilder2.js +1 -0
- package/dist/C_Form.base.css +16 -16
- package/dist/C_Form.css +16 -16
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +3 -3
- package/dist/C_FormModal.css +64 -54
- package/dist/C_FormModal.d.cts +2 -2
- package/dist/C_FormModal.d.ts +4 -4
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.d.cts +2 -1
- package/dist/C_FormSearch.d.ts +3 -2
- package/dist/C_GlobalSearch.css +156 -137
- package/dist/C_GlobalSearch.d.cts +2 -2
- package/dist/C_GlobalSearch.d.ts +2 -2
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +49 -3
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_ImageAnnotator.cjs +1 -0
- package/dist/C_ImageAnnotator.css +143 -0
- package/dist/C_ImageAnnotator.d.cts +2 -0
- package/dist/C_ImageAnnotator.d.ts +2 -0
- package/dist/C_ImageAnnotator.js +1 -0
- package/dist/C_ImageAnnotator2.cjs +1 -0
- package/dist/C_ImageAnnotator2.js +1 -0
- package/dist/C_ImportWizard.cjs +1 -0
- package/dist/C_ImportWizard.css +42 -0
- package/dist/C_ImportWizard.d.cts +2 -0
- package/dist/C_ImportWizard.d.ts +2 -0
- package/dist/C_ImportWizard.js +1 -0
- package/dist/C_ImportWizard2.cjs +1 -0
- package/dist/C_ImportWizard2.js +1 -0
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_NotificationCenter.cjs +1 -1
- package/dist/C_NotificationCenter.css +39 -39
- package/dist/C_NotificationCenter.d.cts +2 -1
- package/dist/C_NotificationCenter.d.ts +2 -1
- package/dist/C_NotificationCenter.js +1 -1
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_NotificationInbox.cjs +1 -0
- package/dist/C_NotificationInbox.css +154 -0
- package/dist/C_NotificationInbox.d.cts +2 -0
- package/dist/C_NotificationInbox.d.ts +2 -0
- package/dist/C_NotificationInbox.js +1 -0
- package/dist/C_NotificationInbox2.cjs +1 -0
- package/dist/C_NotificationInbox2.js +1 -0
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_RecordList.cjs +1 -0
- package/dist/C_RecordList.css +70 -0
- package/dist/C_RecordList.d.cts +2 -0
- package/dist/C_RecordList.d.ts +2 -0
- package/dist/C_RecordList.js +1 -0
- package/dist/C_RecordList2.cjs +1 -0
- package/dist/C_RecordList2.js +1 -0
- package/dist/C_RecurrenceEditor.cjs +1 -0
- package/dist/C_RecurrenceEditor.css +68 -0
- package/dist/C_RecurrenceEditor.d.cts +2 -0
- package/dist/C_RecurrenceEditor.d.ts +2 -0
- package/dist/C_RecurrenceEditor.js +1 -0
- package/dist/C_RecurrenceEditor2.cjs +1 -0
- package/dist/C_RecurrenceEditor2.js +1 -0
- package/dist/C_RelationshipExplorer.cjs +1 -0
- package/dist/C_RelationshipExplorer.css +76 -0
- package/dist/C_RelationshipExplorer.d.cts +2 -0
- package/dist/C_RelationshipExplorer.d.ts +2 -0
- package/dist/C_RelationshipExplorer.js +1 -0
- package/dist/C_RelationshipExplorer2.cjs +1 -0
- package/dist/C_RelationshipExplorer2.js +1 -0
- package/dist/C_ResourceSchedule.cjs +1 -0
- package/dist/C_ResourceSchedule.css +104 -0
- package/dist/C_ResourceSchedule.d.cts +2 -0
- package/dist/C_ResourceSchedule.d.ts +2 -0
- package/dist/C_ResourceSchedule.js +1 -0
- package/dist/C_ResourceSchedule2.cjs +1 -0
- package/dist/C_ResourceSchedule2.js +1 -0
- package/dist/C_ScanInput.cjs +1 -0
- package/dist/C_ScanInput.css +33 -0
- package/dist/C_ScanInput.d.cts +2 -0
- package/dist/C_ScanInput.d.ts +2 -0
- package/dist/C_ScanInput.js +1 -0
- package/dist/C_ScanInput2.cjs +1 -0
- package/dist/C_ScanInput2.js +1 -0
- package/dist/C_SectionNav.d.cts +1 -1
- package/dist/C_SectionNav.d.ts +1 -1
- package/dist/C_Select.d.cts +2 -2
- package/dist/C_Select.d.ts +2 -2
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +194 -184
- package/dist/C_Table.css +178 -168
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +15 -14
- package/dist/C_Table2.cjs +3 -3
- package/dist/C_Table2.js +3 -3
- package/dist/C_TagsView.d.cts +2 -2
- package/dist/C_TagsView.d.ts +1 -1
- package/dist/C_TaskBoard.cjs +1 -0
- package/dist/C_TaskBoard.css +58 -0
- package/dist/C_TaskBoard.d.cts +2 -0
- package/dist/C_TaskBoard.d.ts +2 -0
- package/dist/C_TaskBoard.js +1 -0
- package/dist/C_TaskBoard2.cjs +1 -0
- package/dist/C_TaskBoard2.js +1 -0
- package/dist/C_TaskPanel.cjs +1 -0
- package/dist/C_TaskPanel.css +68 -0
- package/dist/C_TaskPanel.d.cts +2 -0
- package/dist/C_TaskPanel.d.ts +2 -0
- package/dist/C_TaskPanel.js +1 -0
- package/dist/C_TaskPanel2.cjs +1 -0
- package/dist/C_TaskPanel2.js +1 -0
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +108 -41
- package/dist/C_Transfer.d.cts +2 -2
- package/dist/C_Transfer.d.ts +2 -2
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +13 -12
- package/dist/C_Upload.cjs +1 -1
- package/dist/C_Upload.d.cts +2 -1
- package/dist/C_Upload.d.ts +2 -1
- package/dist/C_Upload.js +1 -1
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.d.cts +1 -1
- package/dist/C_UserPicker.d.ts +2 -2
- package/dist/C_WorkFlow.d.ts +2 -2
- package/dist/ExportMenu.cjs +1 -0
- package/dist/ExportMenu.js +1 -0
- package/dist/NotificationItem.cjs +1 -0
- package/dist/NotificationItem.js +1 -0
- package/dist/component-config.d.ts +33 -10
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.cjs +1 -0
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +1 -0
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +6 -232
- package/dist/constants3.d.ts +6 -232
- package/dist/constants4.d.cts +9 -199
- package/dist/constants4.d.ts +9 -199
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.d.cts +33 -10
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/dateRange.d.cts +4 -263
- package/dist/dateRange.d.ts +4 -263
- package/dist/editors.d.cts +11 -11
- package/dist/editors.d.ts +11 -11
- package/dist/excel.cjs +1 -0
- package/dist/excel.js +1 -0
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/fileUrl.cjs +1 -0
- package/dist/fileUrl.js +1 -0
- package/dist/html2.cjs +1 -0
- package/dist/html2.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +88 -69
- package/dist/index.d.ts +87 -68
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +54 -75
- package/dist/index.vue.d.ts +54 -75
- package/dist/index10.vue.d.cts +25 -27
- package/dist/index10.vue.d.ts +54 -41
- package/dist/index11.vue.d.cts +54 -41
- package/dist/index11.vue.d.ts +133 -75
- package/dist/index12.vue.d.cts +133 -75
- package/dist/index12.vue.d.ts +24 -6
- package/dist/index13.vue.d.cts +24 -6
- package/dist/index13.vue.d.ts +39 -57
- package/dist/index14.vue.d.cts +39 -57
- package/dist/index14.vue.d.ts +80 -16
- package/dist/index15.vue.d.cts +80 -16
- package/dist/index15.vue.d.ts +16 -56
- package/dist/index16.vue.d.cts +16 -56
- package/dist/index16.vue.d.ts +40 -118
- package/dist/index17.vue.d.cts +40 -118
- package/dist/index17.vue.d.ts +58 -52
- package/dist/index18.vue.d.cts +58 -52
- package/dist/index18.vue.d.ts +16 -20
- package/dist/index19.vue.d.cts +16 -20
- package/dist/index19.vue.d.ts +67 -14
- package/dist/index2.vue.d.cts +55 -17
- package/dist/index2.vue.d.ts +55 -17
- package/dist/index20.vue.d.cts +67 -14
- package/dist/index20.vue.d.ts +127 -123
- package/dist/index21.vue.d.cts +127 -123
- package/dist/index21.vue.d.ts +51 -76
- package/dist/index22.vue.d.cts +51 -76
- package/dist/index22.vue.d.ts +31 -71
- package/dist/index23.vue.d.cts +31 -129
- package/dist/index23.vue.d.ts +62 -118
- package/dist/index24.vue.d.cts +75 -50
- package/dist/index24.vue.d.ts +20 -49
- package/dist/index25.vue.d.cts +18 -18
- package/dist/index25.vue.d.ts +14 -22
- package/dist/index26.vue.d.cts +16 -26
- package/dist/index26.vue.d.ts +129 -24
- package/dist/index27.vue.d.cts +113 -81
- package/dist/index27.vue.d.ts +78 -96
- package/dist/index28.vue.d.cts +76 -29
- package/dist/index28.vue.d.ts +73 -31
- package/dist/index29.vue.d.cts +65 -13
- package/dist/index29.vue.d.ts +65 -13
- package/dist/index3.vue.d.cts +67 -70
- package/dist/index3.vue.d.ts +67 -70
- package/dist/index30.vue.d.cts +130 -81
- package/dist/index30.vue.d.ts +130 -81
- package/dist/index31.vue.d.cts +41 -94
- package/dist/index31.vue.d.ts +41 -94
- package/dist/index32.vue.d.cts +44 -61
- package/dist/index32.vue.d.ts +44 -61
- package/dist/index33.vue.d.cts +58 -0
- package/dist/index33.vue.d.ts +58 -0
- package/dist/index34.vue.d.cts +62 -0
- package/dist/index34.vue.d.ts +62 -0
- package/dist/index35.vue.d.cts +42 -0
- package/dist/index35.vue.d.ts +42 -0
- package/dist/index36.vue.d.cts +28 -0
- package/dist/index36.vue.d.ts +28 -0
- package/dist/index37.vue.d.cts +30 -0
- package/dist/index37.vue.d.ts +30 -0
- package/dist/index38.vue.d.cts +103 -0
- package/dist/index38.vue.d.ts +103 -0
- package/dist/index39.vue.d.cts +38 -0
- package/dist/index39.vue.d.ts +38 -0
- package/dist/index4.vue.d.cts +27 -36
- package/dist/index4.vue.d.ts +27 -36
- package/dist/index40.vue.d.cts +19 -0
- package/dist/index40.vue.d.ts +19 -0
- package/dist/index41.vue.d.cts +89 -0
- package/dist/index41.vue.d.ts +89 -0
- package/dist/index42.vue.d.cts +110 -0
- package/dist/index42.vue.d.ts +110 -0
- package/dist/index43.vue.d.cts +89 -0
- package/dist/index43.vue.d.ts +89 -0
- package/dist/index44.vue.d.cts +71 -0
- package/dist/index44.vue.d.ts +71 -0
- package/dist/index45.vue.d.cts +50 -0
- package/dist/index45.vue.d.ts +50 -0
- package/dist/index5.vue.d.cts +78 -17
- package/dist/index5.vue.d.ts +78 -17
- package/dist/index6.vue.d.cts +34 -132
- package/dist/index6.vue.d.ts +31 -34
- package/dist/index7.vue.d.cts +20 -34
- package/dist/index7.vue.d.ts +20 -28
- package/dist/index8.vue.d.cts +130 -29
- package/dist/index8.vue.d.ts +33 -118
- package/dist/index9.vue.d.cts +33 -118
- package/dist/index9.vue.d.ts +25 -27
- package/dist/localSource.cjs +1 -0
- package/dist/{formField.d.cts → localSource.d.cts} +42 -2
- package/dist/{formField.d.ts → localSource.d.ts} +42 -2
- package/dist/localSource.js +1 -0
- package/dist/mapUtils.d.cts +5 -5
- package/dist/mapUtils.d.ts +5 -5
- package/dist/model.d.cts +88 -0
- package/dist/model.d.ts +88 -0
- package/dist/presets.d.cts +2 -2
- package/dist/presets.d.ts +2 -2
- package/dist/previewLimits.cjs +1 -0
- package/dist/previewLimits.js +1 -0
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/rule.d.cts +51 -0
- package/dist/rule.d.ts +51 -0
- package/dist/source.cjs +1 -1
- package/dist/source.d.cts +2 -2
- package/dist/source.d.ts +2 -2
- package/dist/source.js +1 -1
- package/dist/style.css +1974 -542
- package/dist/types.d.cts +4 -0
- package/dist/types.d.ts +4 -0
- package/dist/types10.d.cts +229 -0
- package/dist/types10.d.ts +285 -0
- package/dist/types11.d.cts +285 -0
- package/dist/types2.d.cts +188 -31
- package/dist/types2.d.ts +188 -31
- package/dist/types3.d.cts +84 -101
- package/dist/types3.d.ts +82 -105
- package/dist/types4.d.cts +24 -106
- package/dist/types4.d.ts +30 -55
- package/dist/types5.d.cts +106 -55
- package/dist/types5.d.ts +130 -41
- package/dist/types6.d.cts +130 -41
- package/dist/types6.d.ts +244 -265
- package/dist/types7.d.cts +244 -265
- package/dist/types7.d.ts +60 -0
- package/dist/types8.d.cts +60 -0
- package/dist/types8.d.ts +50 -0
- package/dist/types9.d.cts +50 -0
- package/dist/types9.d.ts +229 -0
- package/dist/useCalendarEvents.d.cts +2 -2
- package/dist/useCalendarEvents.d.ts +2 -2
- package/dist/useCollapsePanel.d.cts +7 -7
- package/dist/useCollapsePanel.d.ts +7 -7
- package/dist/useComponentTheme.cjs +1 -1
- package/dist/useComponentTheme.js +1 -1
- package/dist/useCropperCore.d.cts +8 -8
- package/dist/useCropperCore.d.ts +8 -8
- package/dist/useDynamicFormState.d.cts +5 -4
- package/dist/useDynamicFormState.d.ts +5 -4
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFormArray.cjs +1 -1
- package/dist/useFormArray.d.cts +39 -3
- package/dist/useFormArray.d.ts +39 -3
- package/dist/useFormArray.js +1 -1
- package/dist/useFormRenderer.d.cts +6 -2
- package/dist/useFormRenderer.d.ts +6 -2
- package/dist/useFullscreen.d.cts +7 -99
- package/dist/useFullscreen.d.ts +7 -99
- package/dist/useGlobalSearch.d.cts +45 -3
- package/dist/useGlobalSearch.d.ts +45 -3
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useLocalFileUrl.cjs +1 -0
- package/dist/useLocalFileUrl.js +1 -0
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +6 -6
- package/dist/useSignatureHistory.d.ts +6 -6
- package/dist/useSplitResize.d.cts +10 -10
- package/dist/useSplitResize.d.ts +10 -10
- package/dist/useWorkflowValidation.d.cts +108 -108
- package/dist/useWorkflowValidation.d.ts +108 -108
- package/dist/verification.d.cts +2 -2
- package/dist/verification.d.ts +2 -2
- package/dist/workflows.cjs +1 -1
- package/dist/workflows.d.cts +2 -2
- package/dist/workflows.d.ts +2 -2
- package/dist/workflows.js +1 -1
- package/docs/components.en.md +125 -135
- package/docs/components.md +125 -135
- package/docs/engineering.en.md +12 -4
- package/docs/engineering.md +12 -4
- package/docs/guides/api-migration.md +17 -1
- package/docs/guides/approval-viewer.md +50 -0
- package/docs/guides/attachments.md +39 -0
- package/docs/guides/batch-results.md +3 -1
- package/docs/guides/change-review.md +49 -0
- package/docs/guides/component-contracts.md +8 -0
- package/docs/guides/data-picker.md +75 -1
- package/docs/guides/data-workflows.md +27 -1
- package/docs/guides/dockable-workbench.md +49 -0
- package/docs/guides/filter-builder.md +47 -0
- package/docs/guides/global-search.md +49 -0
- package/docs/guides/image-annotator.md +27 -0
- package/docs/guides/import-wizard.md +40 -0
- package/docs/guides/notification-center.md +29 -0
- package/docs/guides/resource-schedule.md +58 -0
- package/docs/guides/scene-components.md +53 -0
- package/docs/guides/search-workflows.md +2 -0
- package/docs/guides/split-pane.md +2 -0
- package/docs/guides/table-density.md +47 -1
- package/docs/guides/task-board.md +53 -0
- package/docs/guides/task-panel.md +30 -0
- package/docs/guides/transfer.md +35 -0
- package/docs/guides/usage.en.md +23 -17
- package/docs/guides/usage.md +10 -24
- package/package.json +1 -1
- package/dist/formField.cjs +0 -1
- package/dist/formField.js +0 -1
- package/dist/html.cjs +0 -1
- package/dist/html.js +0 -1
package/README_EN.md
CHANGED
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
<div align="center">
|
|
6
|
-
<p><strong>
|
|
7
|
-
<p>
|
|
6
|
+
<p><strong>A Vue 3 component library for administration interfaces</strong></p>
|
|
7
|
+
<p>Naive UI · TypeScript · 78 components</p>
|
|
8
8
|
<p>
|
|
9
9
|
<a href="https://www.npmjs.com/package/@robot-admin/naive-ui-components"><img src="https://img.shields.io/npm/v/@robot-admin/naive-ui-components?style=flat-square&color=249D70&labelColor=183C2E" alt="npm version"></a>
|
|
10
10
|
<a href="./package.json"><img src="https://img.shields.io/badge/Vue-3.5+-249D70?style=flat-square&logo=vue.js&logoColor=white&labelColor=183C2E" alt="Vue 3.5+"></a>
|
|
11
|
-
<a href="./
|
|
11
|
+
<a href="./docs/engineering.en.md#typescript-build-and-consumption"><img src="https://img.shields.io/badge/TypeScript-5.9.3-3178C6?style=flat-square&logo=typescript&logoColor=white&labelColor=183C2E" alt="Build: TypeScript 5.9.3"></a>
|
|
12
12
|
<a href="https://github.com/ChenyCHENYU/naive-ui-components/actions/workflows/ci.yml"><img src="https://github.com/ChenyCHENYU/naive-ui-components/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
13
13
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-MIT-64748B?style=flat-square&labelColor=183C2E" alt="MIT License"></a>
|
|
14
14
|
</p>
|
|
15
15
|
<p>
|
|
16
16
|
<a href="#quick-start">Quick start</a> ·
|
|
17
17
|
<a href="#capability-map">Capabilities</a> ·
|
|
18
|
+
<a href="#integration-recipes">Integration recipes</a> ·
|
|
18
19
|
<a href="./docs/components.en.md">Component catalog</a> ·
|
|
19
20
|
<a href="https://www.tzagileteam.com/robot/components/preface">Online docs</a> ·
|
|
20
21
|
<a href="https://robotadmin.cn">Live demo</a> ·
|
|
@@ -24,83 +25,23 @@
|
|
|
24
25
|
|
|
25
26
|
## Overview
|
|
26
27
|
|
|
27
|
-
**Naive UI Components** is a Vue 3
|
|
28
|
+
**Naive UI Components** is a Vue 3 library extracted from [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin) and published independently as `@robot-admin/naive-ui-components`. It provides typed configuration for forms, tables, entity pickers, and workspaces. The host application owns endpoints, permissions, and task execution.
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
31
|
-
| Configuration | Typed configuration for fields, columns, actions and dialogs; 8 form layouts |
|
|
32
|
-
| Connected types | Field paths, columns, events and instance methods, with helpers such as `defineFormOptions`, `useCForm` and `useTableQuery` |
|
|
33
|
-
| Selective loading | 63 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
|
|
34
|
-
| Application integration | Global registration or local imports; injectable feedback, locale and defaults; form dialogs compatible with structurally matching headless CRUD controllers |
|
|
35
|
-
|
|
36
|
-
The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.40.4**. See the [changelog](./CHANGELOG.md) for release details.
|
|
37
|
-
|
|
38
|
-
0.40 adds continuous input with `edit: 'inline'` and fixes dynamic form visibility, cached workflow sessions and combined category searches. See the [table editing guide](./docs/guides/table-editing.md), [business scenario comparison](./docs/wl-business-scenario-parity.md) and [compatibility guide](./docs/guides/component-contracts.md) (Chinese).
|
|
39
|
-
|
|
40
|
-
0.34 adds state-aware tree icons, richer node contexts and action states, plus organization-chart field mapping, controlled interaction and measured connectors. Use `C_Tree` for hierarchical selection and the independent `C_OrgChart` for reporting relationships. See the [organization examples](./docs/guides/tree-org-examples.md) (Chinese).
|
|
41
|
-
|
|
42
|
-
0.36 adds `C_UserPicker` for organization-based person selection, sharing pagination, drafts and confirmation. Workflow nodes gain real connection ports, explicit conditional targets and the same person-selection interface. See [person selection](./docs/guides/user-picker.md) and [workflow design](./docs/guides/workflow.md) (Chinese).
|
|
43
|
-
|
|
44
|
-
Use `C_Select` for standalone selections and freeform tags. Multiple selections in forms and search share the compact tag summary. Date and time fields can bind directly to formatted API strings. See the [composition examples](./docs/guides/data-workflows.md#多选标签和日期时间) (Chinese).
|
|
45
|
-
|
|
46
|
-
Remote options, free text suggestions and multi-column entity selection use `C_Select`, `C_AutoComplete` and `C_DataPicker` with a shared request contract. Form and search fields accept `source` directly. See [search workflows](./docs/guides/search-workflows.md#远程选项与自由文本建议) and [scenario coverage](./docs/search-selection-coverage.md) (Chinese).
|
|
47
|
-
|
|
48
|
-
Search fields, form fields, and actions can be generated from reactive configuration. Compact density applies consistently across search and data entry, including validation, async options, and dialogs. The application owns dictionaries and permissions, supplying ordinary options and column definitions to components.
|
|
49
|
-
|
|
50
|
-
Compose `C_FormSearch`, `C_ActionBar`, `C_FormModal`, and `C_DataPicker` around either `C_Table` or MachTable. Each grid uses its own column definitions and pagination. See [workspace composition](./docs/guides/data-workflows.md), [form density](./docs/guides/form-density.en.md), and [runtime performance](./docs/guides/runtime-performance.md).
|
|
51
|
-
|
|
52
|
-
Set search `columns` to `3` or `4` for responsive field tracks with right-aligned actions. Use `presentation="inline"` for selection inside an edit form and the picker's `#query` slot for multiple filters. See [search workflows](./docs/guides/search-workflows.md) and [data picker](./docs/guides/data-picker.md).
|
|
53
|
-
|
|
54
|
-
Set `searchOnReset: true` to run both search and reset through `onSearch`. Use `createDataPickerField` for form lookup fields and `config.actions.inline` for row actions. See [workspace composition](./docs/guides/data-workflows.md).
|
|
55
|
-
|
|
56
|
-
## Capability map
|
|
57
|
-
|
|
58
|
-
`C_Table` retains the native Naive UI empty state, including provider theme, locale and `componentOptions.DataTable.renderEmpty`. Use `#empty` to replace the content of one table.
|
|
59
|
-
|
|
60
|
-
In narrow `C_Table` cells, edit actions wrap so the input stays visible. Utility columns remain compact; automatic business columns share available space proportionally to their measured header/content bases, and preserve their bases with horizontal scrolling when they do not fit. Explicit widths and saved width preferences remain effective.
|
|
61
|
-
|
|
62
|
-
`C_Table` shows row numbers and a pager by default and centers all cells, including numbers. Use `:row-number="false"` and `:pagination="false"` to disable the automatic index and pager respectively. Bind server-provided columns and rows directly as shown in the [usage guide](./docs/guides/usage.en.md).
|
|
63
|
-
|
|
64
|
-
Checked rows show a leading theme-colored marker; set `--c-table-selected-marker-width: 0px` to hide it. Async exports retain the columns, formatting and file settings captured at startup, and stop downloading after unmount. `createComponentTheme({ primary: '#409eff' })` uses a white foreground for filled buttons and checked controls by default; set `onSolid` centrally or override it through a local Provider. See the [theme guide](./docs/guides/theme.md).
|
|
65
|
-
|
|
66
|
-
A `{ type: 'selection' }` column enables selection without repeating `selection: true`. Explicit global or local `selection: false` / `{ enabled: false }` still takes precedence, including when columns change dynamically.
|
|
67
|
-
|
|
68
|
-
| Scenario | Representative components | Capabilities |
|
|
69
|
-
| --------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
70
|
-
| Data entry | `C_Form` · `C_FormModal` · `C_FormSearch` | Dynamic fields, validation, async submission, search and create/edit dialogs |
|
|
71
|
-
| Data operations | `C_Table` · `C_ActionBar` · `C_Tree` · `C_Transfer` | Pagination, trees, inline/row/cell editing, cross-page selection, exports and batch actions |
|
|
72
|
-
| Editing | `C_Editor` · `C_Markdown` · `C_Cron` · `C_FormulaEditor` | Rich text, Markdown, Cron previews and local formula evaluation |
|
|
73
|
-
| Workflow and planning | `C_AntV` · `C_WorkFlow` · `C_VtableGantt` · `C_FullCalendar` | ER/BPMN/UML, approval flows, Gantt charts and calendars |
|
|
74
|
-
| Files and media | `C_Upload` · `C_FilePreview` · `C_VideoPlayer` · `C_AudioPlayer` | Chunked uploads, PDF/Word/Excel previews and audio/video playback |
|
|
75
|
-
| Images and maps | `C_Signature` · `C_ImageCropper` · `C_QRCode` · `C_Map` | Signatures, cropping, QR codes, OpenStreetMap and AMap |
|
|
76
|
-
| Workspace | `C_Menu` · `C_Tabs` · `C_TagsView` · `C_GlobalSearch` | Menus, view switching, tab navigation and global search |
|
|
77
|
-
| Common interactions | `C_Login` · `C_Captcha` · `C_Guide` · `C_PageLoading` | Login UI, human verification, onboarding and navigation feedback |
|
|
78
|
-
|
|
79
|
-
Browse [all 63 components and dependencies](./docs/components.en.md), or explore scenarios in [Robot Admin](https://robotadmin.cn). Cron previews calculate times only; formulas run locally. Production human verification requires server validation. See the [usage guide](./docs/guides/usage.en.md).
|
|
30
|
+
The current repository version is **0.41.0**. See the [changelog](./CHANGELOG.md) for release details.
|
|
80
31
|
|
|
81
32
|
## Quick start
|
|
82
33
|
|
|
83
34
|
### Install
|
|
84
35
|
|
|
85
|
-
|
|
36
|
+
Install the library alongside its required peers in your Vue 3 project. Use your project's package manager.
|
|
86
37
|
|
|
87
38
|
```bash
|
|
88
|
-
bun add @robot-admin/naive-ui-components
|
|
89
|
-
bun add vue@^3.5.3 naive-ui@^2.35.0
|
|
39
|
+
bun add @robot-admin/naive-ui-components vue@^3.5.3 naive-ui@^2.35.0
|
|
90
40
|
```
|
|
91
41
|
|
|
92
|
-
The
|
|
93
|
-
|
|
94
|
-
You can also use your project's npm or pnpm setup. Install optional peers only for the features that need them:
|
|
95
|
-
|
|
96
|
-
| Feature | Additional dependency |
|
|
97
|
-
| -------------------------------------------- | ------------------------------ |
|
|
98
|
-
| Root imports / `C_Breadcrumb` / `C_TagsView` | `vue-router@^4.6.4` / `^5.3.1` |
|
|
99
|
-
| `C_Table` row/column dragging | `sortablejs@^1.15.7` |
|
|
42
|
+
The package root, `C_Breadcrumb`, and `C_TagsView` require `vue-router@^4.6.4` or `^5.3.1`. Table row and column dragging require `sortablejs@^1.15.7`. See the [consumer environment matrix](./docs/engineering.en.md#consumer-environment-matrix) for verified browser, declaration, and SSR combinations.
|
|
100
43
|
|
|
101
|
-
###
|
|
102
|
-
|
|
103
|
-
Place this example in `App.vue`. It uses a component subpath and its CSS entry, with no global registration required:
|
|
44
|
+
### Configure a form
|
|
104
45
|
|
|
105
46
|
```vue
|
|
106
47
|
<script setup lang="ts">
|
|
@@ -108,170 +49,96 @@ Place this example in `App.vue`. It uses a component subpath and its CSS entry,
|
|
|
108
49
|
import {
|
|
109
50
|
C_Form,
|
|
110
51
|
defineFormOptions,
|
|
111
|
-
useCForm,
|
|
112
52
|
} from '@robot-admin/naive-ui-components/C_Form'
|
|
113
53
|
import '@robot-admin/naive-ui-components/C_Form/style.css'
|
|
114
54
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
const result = ref('')
|
|
121
|
-
const { formRef, bindings } = useCForm<Contact>({
|
|
122
|
-
initialValues: { name: '', email: '' },
|
|
123
|
-
options: defineFormOptions<Contact>([
|
|
124
|
-
{ type: 'input', prop: 'name', label: 'Name', required: true },
|
|
125
|
-
{ type: 'input', prop: 'email', label: 'Email' },
|
|
126
|
-
]),
|
|
127
|
-
config: {
|
|
128
|
-
labelPlacement: 'top',
|
|
129
|
-
onSubmit: ({ model }) => {
|
|
130
|
-
result.value = `Validated: ${model.name}`
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
})
|
|
55
|
+
const draft = ref({ name: '' })
|
|
56
|
+
const fields = defineFormOptions<typeof draft.value>([
|
|
57
|
+
{ type: 'input', prop: 'name', label: 'Name', required: true },
|
|
58
|
+
])
|
|
134
59
|
</script>
|
|
135
60
|
|
|
136
61
|
<template>
|
|
137
62
|
<C_Form
|
|
138
|
-
|
|
139
|
-
|
|
63
|
+
v-model="draft"
|
|
64
|
+
:options="fields"
|
|
140
65
|
/>
|
|
141
|
-
<p v-if="result">{{ result }}</p>
|
|
142
66
|
</template>
|
|
143
67
|
```
|
|
144
68
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### Scope table preferences per account
|
|
148
|
-
|
|
149
|
-
Register once when the app starts. `session` is your existing reactive identity state; keep it `undefined` until the identity is fully resolved:
|
|
150
|
-
|
|
151
|
-
```ts
|
|
152
|
-
import { TABLE_GLOBAL_CONFIG_KEY } from '@robot-admin/naive-ui-components/config'
|
|
153
|
-
|
|
154
|
-
app.provide(TABLE_GLOBAL_CONFIG_KEY, {
|
|
155
|
-
defaults: { density: 'compact' },
|
|
156
|
-
get persistPrefix() {
|
|
157
|
-
const scope = session.value
|
|
158
|
-
return scope
|
|
159
|
-
? JSON.stringify([scope.tenantId, scope.companyId, scope.userId])
|
|
160
|
-
: undefined
|
|
161
|
-
},
|
|
162
|
-
})
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
Each page only supplies a stable table ID, such as `config: { persistKey: 'shipping' }`. The compact default applies to headers, regular cells, actions and editors; a regional `C_Density` or local config can override it. Column visibility, order and widths are stored per scope without mutating business column definitions. The lightweight `/config` entry exports the same configuration key as `/C_Table`.
|
|
69
|
+
Pass a save handler to `config.onSubmit`. Use `useCForm()` when code outside the template needs to read, update, or validate the form. See [forms and tables](./docs/guides/usage.en.md#recommended-c_form--c_table-setup) for full examples.
|
|
166
70
|
|
|
167
|
-
|
|
71
|
+
### Use public props directly
|
|
168
72
|
|
|
169
|
-
|
|
73
|
+
Pass simple props directly, as in `<C_Progress :percentage="62.5" />`. When you extract props into a configuration object, import its public type, such as `ProgressProps`, from the component subpath and check it with `satisfies`. See the [waterfall guide](./docs/guides/waterfall.md) for business fields inferred in slots.
|
|
170
74
|
|
|
171
|
-
|
|
75
|
+
## Capability map
|
|
172
76
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
176
|
-
|
|
|
177
|
-
|
|
|
178
|
-
|
|
|
77
|
+
| Area | Representative components | Capabilities |
|
|
78
|
+
| ----------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
|
|
79
|
+
| Forms and tables | `C_Form` · `C_FormModal` · `C_FormSearch` · `C_Table` | Configurable fields, validation, inline editing, pagination, selection and export |
|
|
80
|
+
| Search and selection | `C_Select` · `C_AutoComplete` · `C_DataPicker` · `C_UserPicker` · `C_Tree` | Remote options, suggestions, table pickers, organization-based selection and tree navigation |
|
|
81
|
+
| Approvals and tasks | `C_WorkFlow` · `C_ApprovalViewer` · `C_NotificationInbox` · `C_TaskPanel` | Workflow definitions, approval history, inbox lists and background task progress |
|
|
82
|
+
| Data operations | `C_ImportWizard` · `C_BatchResult` · `C_ChangeReview` · `C_FilterBuilder` | Import preflight, itemized results, field diffs and combined filters |
|
|
83
|
+
| Workspaces and planning | `C_Tabs` · `C_SplitPane` · `C_OrgChart` · `C_ResourceSchedule` · `C_TaskBoard` | Pane layouts, organization charts, resource schedules and controlled task moves |
|
|
84
|
+
| Content and media | `C_Editor` · `C_Markdown` · `C_Attachments` · `C_FilePreview` · `C_WaterFall` | Content editing, attachments, document preview and long lists |
|
|
179
85
|
|
|
180
|
-
|
|
86
|
+
See the [component catalog](./docs/components.en.md) for the remaining components and dependencies. Explore how the components are used in [Robot Admin](https://robotadmin.cn).
|
|
181
87
|
|
|
182
|
-
|
|
88
|
+
## Integration recipes
|
|
183
89
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
90
|
+
| Goal | Public entry |
|
|
91
|
+
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
92
|
+
| Export a chosen range | Set `C_Table`'s `export.scopes` for current page, selected rows, or all matching results. Use `requestData` or `onExportMatching` for remote export and pass the last successful query to the host. [Export guide](./docs/guides/table-density.md#异步导出的快照与卸载) |
|
|
93
|
+
| Share a query across tabs | Import `useTabbedQuery` from `/workflows` and provide the active tab, initial criteria, and a request callback. Each tab keeps its pagination, and a newly submitted query resets all pages. [Tabbed queries](./docs/guides/data-workflows.md#多页签共享查询) |
|
|
94
|
+
| Fill fields from a selected record | Use `createDataPickerField({ source, columns, mapFields })`. The source determines the row type. The selected value and related fields commit together. Selecting the same entity preserves manual edits. [Entity selection and field mapping](./docs/guides/data-picker.md#表单内嵌选择) |
|
|
95
|
+
| Protect an unsaved draft | Configure `beforeClose` on `C_FormModal`. Use `requestDiscard()` and `sessionKey` to apply the same guard when switching records in an open dialog. [Form dialogs](./docs/guides/usage.en.md#recommended-c_form--c_table-setup) |
|
|
96
|
+
| Review approval history | Pass a business key and data source to `C_ApprovalViewer`. It displays submissions and handling records. An inbox can pass `instance-id` to open a specific instance. The optional diagram loads on demand. [Approval viewer](./docs/guides/approval-viewer.md) |
|
|
97
|
+
| Track background jobs | Pass tasks to `C_TaskPanel` and handle download and retry events. Running tasks distinguish known progress from unknown progress, and itemized results load when opened. [Task panel](./docs/guides/task-panel.md) |
|
|
187
98
|
|
|
188
|
-
|
|
189
|
-
// vite.config.ts
|
|
190
|
-
import { defineConfig } from 'vite'
|
|
191
|
-
import vue from '@vitejs/plugin-vue'
|
|
192
|
-
import Components from 'unplugin-vue-components/vite'
|
|
193
|
-
import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
|
|
194
|
-
|
|
195
|
-
export default defineConfig({
|
|
196
|
-
plugins: [
|
|
197
|
-
vue(),
|
|
198
|
-
Components({
|
|
199
|
-
resolvers: [RobotNaiveUiResolver({ importStyle: true })],
|
|
200
|
-
}),
|
|
201
|
-
],
|
|
202
|
-
})
|
|
203
|
-
```
|
|
99
|
+
### Scope table preferences per account
|
|
204
100
|
|
|
205
|
-
|
|
101
|
+
Provide a reactive `persistPrefix` via `TABLE_GLOBAL_CONFIG_KEY`, then give each table a stable `config.persistKey`. See [table preference scoping](./docs/guides/table-density.md#表格偏好与作用域) for the full setup.
|
|
206
102
|
|
|
207
|
-
|
|
103
|
+
## Imports and styles
|
|
208
104
|
|
|
209
|
-
|
|
105
|
+
| Strategy | Styles |
|
|
106
|
+
| ----------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
107
|
+
| Component subpaths | Import `C_Component/style.css` for the component, composed styles, and shared tokens |
|
|
108
|
+
| Resolver | Set `RobotNaiveUiResolver({ importStyle: true })` in Vite's `unplugin-vue-components` configuration |
|
|
109
|
+
| Package root or global registration | Import the individual styles you need or the package root's `style.css` |
|
|
210
110
|
|
|
211
|
-
|
|
111
|
+
Use full styles for built-in rich-text fields. Ordinary forms and tables can use `C_Form/base.css` and `C_Table/base.css`, or `importStyle: 'base'` with the resolver. See [import strategies](./docs/guides/usage.en.md#import-strategies) for configuration examples.
|
|
212
112
|
|
|
213
113
|
## Documentation
|
|
214
114
|
|
|
215
|
-
| Document
|
|
216
|
-
|
|
|
217
|
-
| [
|
|
218
|
-
| [
|
|
219
|
-
| [
|
|
220
|
-
| [
|
|
221
|
-
| [
|
|
222
|
-
| [Lists and async tasks](./docs/guides/runtime-performance.md) | Automatic list windows, chat scrolling, search indexes and media task ownership (Chinese) |
|
|
223
|
-
| [Waterfall lists](./docs/guides/waterfall.md) | Automatic windows, nested scrolling, measured cards and keyboard navigation (Chinese) |
|
|
224
|
-
| [Compatible API migration](./docs/guides/api-migration.md) | Standard models, application renderers and read-only migration checks (Chinese) |
|
|
225
|
-
| [Production coverage review](./docs/wl-ui-produce-coverage.md) | wl-ui-produce capability mapping and adapter boundaries (Chinese) |
|
|
226
|
-
| [Component audit closure](./docs/component-audit-closure-0.40.4.md) | Per-component fixes, API/type cleanup, compatibility boundaries and packaged-consumer validation (Chinese) |
|
|
227
|
-
| [Development and build](./docs/engineering.en.md) | Source structure, six-stage build, adding components, checks and releases |
|
|
228
|
-
| [Brand assets](./docs/assets/README.md) | Robot family logo, editable SVG sources and high-resolution PNGs |
|
|
229
|
-
| [Changelog](./CHANGELOG.md) | Releases and compatibility changes |
|
|
230
|
-
| [Security policy](./SECURITY.md) | Vulnerability reporting and maintenance policy |
|
|
231
|
-
|
|
232
|
-
The [2026-10-18 scan record](./docs/security-scan-2026-10-18.md) documents two outstanding upstream advisories; the [2026-10-06 record](./docs/security-scan-2026-10-06.md) is a historical archive. Both are in Chinese. Run `bun run check:audit` to assess the current dependency state.
|
|
115
|
+
| Document | Coverage |
|
|
116
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
117
|
+
| [Component catalog](./docs/components.en.md) | Public components, dependencies, and usage boundaries |
|
|
118
|
+
| [Usage guide](./docs/guides/usage.en.md) · [Business scenes](./docs/guides/scene-components.md) | Component configuration and composition examples |
|
|
119
|
+
| [Theme](./docs/guides/theme.md) · [Architecture](./docs/architecture.en.md) · [Runtime performance](./docs/guides/runtime-performance.md) | Theme tokens, instance isolation, long lists, and deferred loading |
|
|
120
|
+
| [API migration](./docs/guides/api-migration.md) · [Changelog](./CHANGELOG.md) | Adoption notes and release history |
|
|
121
|
+
| [Maintenance and releases](./docs/engineering.en.md) · [Security](./SECURITY.md) · [Brand assets](./docs/assets/README.md) | Build and release checks, dependency auditing, logo and banner sources |
|
|
233
122
|
|
|
234
123
|
## Local development
|
|
235
124
|
|
|
236
|
-
|
|
125
|
+
Use Node.js 20.19+ and the Bun version pinned in the repository's `packageManager` field.
|
|
237
126
|
|
|
238
127
|
```bash
|
|
239
|
-
git clone https://github.com/ChenyCHENYU/naive-ui-components.git
|
|
240
|
-
cd naive-ui-components
|
|
241
128
|
bun install --frozen-lockfile
|
|
242
|
-
bun run
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
`dev` watches library builds and shared SCSS. Interactive demonstrations are provided by Robot Admin, which consumes the library.
|
|
246
|
-
|
|
247
|
-
```bash
|
|
248
|
-
bun run verify # Lint, types, logic/component tests, exports, build and consumer types
|
|
249
|
-
bun run check:audit # Separate dependency audit; CI runs this before verify
|
|
129
|
+
bun run verify
|
|
250
130
|
```
|
|
251
131
|
|
|
252
|
-
|
|
132
|
+
`verify` runs static checks, unit and component tests, packaged-consumer checks, and bundle budget checks. For interactive demos, run `bun run build` followed by `bun run dev:search-workflows` and open the [local scene gallery](http://127.0.0.1:4188/scenes.html). Run `bun run test:browser` after `verify` to check browser interactions.
|
|
253
133
|
|
|
254
134
|
## Robot ecosystem
|
|
255
135
|
|
|
256
|
-
| Project |
|
|
257
|
-
| --------------------------------------------------------------------------- |
|
|
258
|
-
|
|
|
259
|
-
| [
|
|
260
|
-
| [
|
|
261
|
-
| [Robot Cloud](https://github.com/ChenyCHENYU/Robot_Cloud) | Authentication, company context, system management and authorization services |
|
|
136
|
+
| Project | Role |
|
|
137
|
+
| --------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
138
|
+
| [Robot Admin](https://github.com/ChenyCHENYU/Robot_Admin) | PC web starter and component scenarios |
|
|
139
|
+
| [robot-admin-packages](https://github.com/ChenyCHENYU/robot-admin-packages) | Requests, validation, themes, layouts, files, and engineering tools |
|
|
140
|
+
| [Robot Cloud](https://github.com/ChenyCHENYU/Robot_Cloud) | Authentication, company context, and authorization services |
|
|
262
141
|
|
|
263
142
|
## License
|
|
264
143
|
|
|
265
144
|
[MIT License](./LICENSE) · Made by [CHENY](https://github.com/ChenyCHENYU)
|
|
266
|
-
|
|
267
|
-
## Content widths and status columns (0.24)
|
|
268
|
-
|
|
269
|
-
Columns without `width` now measure their header and up to 100 evenly sampled loaded rows, using formatted values and status labels. Content measurement bases default to 80–360px; final automatic widths may grow proportionally to fill available space. Saving a manual width preserves the original ellipsis, tooltip and default minimum. Action columns default to the right edge; the internal canvas absorbs spare space after shrinking without resizing peer business columns. Native links and buttons inside an ellipsis cell also shrink with a trailing ellipsis. Use `minWidth/maxWidth` to adjust the bounds. Explicit widths (including native strings), saved column widths and `display.columnWidth` take precedence. `autoWidth: false` restores the 180px default. Long automatic cells use ellipsis and a tooltip; horizontal virtualization uses the same numeric widths.
|
|
270
|
-
|
|
271
|
-
Use `{ key: 'status', status: true }` for themed status tags, or `status: { S1B: { label: 'Review', color: 'danger' }, S1C: 'success' }`. Semantic colors and CSS colors are supported. Unknown codes stay neutral, zero/false stay valid, and explicit render functions win. Display changes never rewrite data or export policy. Measurement does not invoke render functions; give graphical/custom columns explicit widths. Data and column updates remeasure a bounded sample; all caches remain component-local.
|
|
272
|
-
|
|
273
|
-
Headers display their full text by default, independently of cell ellipsis. Initial layout, explicit or restored narrow widths, and interactive resizing share a minimum that includes the entire title and its sort/filter controls. The 360px measurement cap applies only to cell content; longer headers use internal horizontal scrolling. Custom header content should declare an appropriate minWidth.
|
|
274
|
-
|
|
275
|
-
Compact forms and searches use a 4px row gap and a 2px empty feedback reserve; validation messages grow naturally. Compact form dialogs use tighter padding and internal scrolling. Per-field entrance and layout-size animations have been removed.
|
|
276
|
-
|
|
277
|
-
The default adaptive layout distributes spare viewport space proportionally among automatic business columns; crowded tables keep their measured bases and scroll horizontally. Utility, explicit-width and manually resized columns retain their widths. Resolved numeric widths drive both the table and horizontal scroll range. Resizing changes only the target column, including after preferences are committed. Explicit native `table-layout` attributes or nonnumeric widths retain Naive UI layout semantics and its `scrollX` minimum.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./useComponentLocale.cjs`),t=require(`./export-helper.cjs`);require(`./C_Icon2.cjs`);const n=require(`./actionIcon.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a=(0,r.defineComponent)({__name:`ActionOverflow`,props:{anchor:{},threshold:{},entries:{},size:{},resolve:{type:Function}},emits:[`narrow`,`select`],setup(t,{emit:a}){let o=t,s=a,{t:c}=e.t();(0,r.watch)(()=>[o.anchor,o.threshold],([e,t],n,r)=>{if(s(`narrow`,!1),!e)return;let i=()=>{let{width:n}=e.getBoundingClientRect();n>0&&s(`narrow`,n<t)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);a.observe(e),r(()=>a.disconnect())},{immediate:!0,flush:`post`}),(0,r.onBeforeUnmount)(()=>s(`narrow`,!1));let l=(0,r.computed)(()=>o.entries.map(e=>{let{label:t,icon:r,disabled:i}=o.resolve(e);return{key:e.renderKey,label:t,disabled:i,icon:()=>n.t(r,14)}}));function u(e){let t=o.entries.find(t=>t.renderKey===e);t&&s(`select`,t)}return(e,a)=>t.entries.length?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDropdown),{key:0,trigger:`click`,options:l.value,onSelect:u},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(i.NButton),{class:`actions-overflow`,size:t.size,"render-icon":()=>(0,r.unref)(n.t)(`mdi:dots-horizontal`,14),"aria-haspopup":`menu`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(c)(`common.more`)),1)]),_:1},8,[`size`,`render-icon`])]),_:1},8,[`options`])):(0,r.createCommentVNode)(`v-if`,!0)}});var o=t.t(a,[[`__scopeId`,`data-v-41d2044a`]]);exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./useComponentLocale.js";import{t}from"./export-helper.js";import"./C_Icon2.js";import{t as n}from"./actionIcon.js";import{computed as r,createBlock as i,createCommentVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,onBeforeUnmount as l,openBlock as u,toDisplayString as d,unref as f,watch as p,withCtx as m}from"vue";import{NButton as h,NDropdown as g}from"naive-ui";var _=t(c({__name:`ActionOverflow`,props:{anchor:{},threshold:{},entries:{},size:{},resolve:{type:Function}},emits:[`narrow`,`select`],setup(t,{emit:c}){let _=t,v=c,{t:y}=e();p(()=>[_.anchor,_.threshold],([e,t],n,r)=>{if(v(`narrow`,!1),!e)return;let i=()=>{let{width:n}=e.getBoundingClientRect();n>0&&v(`narrow`,n<t)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);a.observe(e),r(()=>a.disconnect())},{immediate:!0,flush:`post`}),l(()=>v(`narrow`,!1));let b=r(()=>_.entries.map(e=>{let{label:t,icon:r,disabled:i}=_.resolve(e);return{key:e.renderKey,label:t,disabled:i,icon:()=>n(r,14)}}));function x(e){let t=_.entries.find(t=>t.renderKey===e);t&&v(`select`,t)}return(e,r)=>t.entries.length?(u(),i(f(g),{key:0,trigger:`click`,options:b.value,onSelect:x},{default:m(()=>[s(f(h),{class:`actions-overflow`,size:t.size,"render-icon":()=>f(n)(`mdi:dots-horizontal`,14),"aria-haspopup":`menu`},{default:m(()=>[o(d(f(y)(`common.more`)),1)]),_:1},8,[`size`,`render-icon`])]),_:1},8,[`options`])):a(`v-if`,!0)}}),[[`__scopeId`,`data-v-41d2044a`]]);export{_ as default};
|