@robot-admin/naive-ui-components 0.40.5 → 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 +10 -0
- package/README.md +58 -232
- package/README_EN.md +59 -235
- 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 +3 -3
- package/dist/constants.d.ts +3 -3
- 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 +3 -229
- package/dist/constants3.d.ts +3 -229
- package/dist/constants4.d.cts +8 -198
- package/dist/constants4.d.ts +8 -198
- 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 +6 -6
- package/dist/data2.d.ts +6 -6
- 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 +2 -2
- package/dist/mapUtils.d.ts +2 -2
- 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/useCollapsePanel.d.cts +5 -5
- package/dist/useCollapsePanel.d.ts +5 -5
- 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 +1 -1
- package/dist/useEdgeInteraction.d.ts +1 -1
- 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 +5 -97
- package/dist/useFullscreen.d.ts +5 -97
- package/dist/useGlobalSearch.d.cts +45 -3
- package/dist/useGlobalSearch.d.ts +45 -3
- package/dist/useLocalFileUrl.cjs +1 -0
- package/dist/useLocalFileUrl.js +1 -0
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +3 -3
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.cts +7 -7
- package/dist/useSplitResize.d.ts +7 -7
- package/dist/useTimeSelection.d.cts +3 -3
- package/dist/useTimeSelection.d.ts +3 -3
- package/dist/useWorkflowValidation.d.cts +6 -6
- package/dist/useWorkflowValidation.d.ts +6 -6
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +4 -4
- 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 +6 -4
- package/docs/engineering.md +6 -4
- package/docs/guides/api-migration.md +1 -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,8 +3,8 @@
|
|
|
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>
|
|
@@ -15,6 +15,7 @@
|
|
|
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,72 +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.5**. See the [changelog](./CHANGELOG.md) for release details.
|
|
37
|
-
|
|
38
|
-
Start with component props, business data and public types. Use composables when coordinating forms, queries and dialogs. Existing projects can simplify one page at a time using the [0.40.4 adoption notes](./docs/guides/api-migration.md#0404-接入收敛) (Chinese); existing compatibility APIs remain available.
|
|
39
|
-
|
|
40
|
-
## Capability map
|
|
41
|
-
|
|
42
|
-
| Scenario | Representative components | Capabilities |
|
|
43
|
-
| --------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
44
|
-
| Data entry | `C_Form` · `C_FormModal` · `C_FormSearch` | Dynamic fields, validation, async submission, search and create/edit dialogs |
|
|
45
|
-
| Data operations | `C_Table` · `C_ActionBar` · `C_Tree` · `C_Transfer` | Pagination, trees, inline/row/cell editing, cross-page selection, exports and batch actions |
|
|
46
|
-
| Search and selection | `C_Select` · `C_AutoComplete` · `C_DataPicker` · `C_UserPicker` | Remote options, text suggestions, multi-column entity selection and organization-based people selection |
|
|
47
|
-
| Structures and cards | `C_OrgChart` · `C_WaterFall` | Reporting relationships, responsive cards, list windowing and inferred business fields |
|
|
48
|
-
| Editing | `C_Editor` · `C_Markdown` · `C_Cron` · `C_FormulaEditor` | Rich text, Markdown, Cron previews and local formula evaluation |
|
|
49
|
-
| Workflow and planning | `C_AntV` · `C_WorkFlow` · `C_VtableGantt` · `C_FullCalendar` | ER/BPMN/UML, approval flows, Gantt charts and calendars |
|
|
50
|
-
| Files and media | `C_Upload` · `C_FilePreview` · `C_VideoPlayer` · `C_AudioPlayer` | Chunked uploads, PDF/Word/Excel previews and audio/video playback |
|
|
51
|
-
| Images and maps | `C_Signature` · `C_ImageCropper` · `C_QRCode` · `C_Map` | Signatures, cropping, QR codes, OpenStreetMap and AMap |
|
|
52
|
-
| Workspace | `C_Menu` · `C_Tabs` · `C_TagsView` · `C_GlobalSearch` | Menus, view switching, tab navigation and global search |
|
|
53
|
-
| Common interactions | `C_Login` · `C_Captcha` · `C_Guide` · `C_PageLoading` | Login UI, human verification, onboarding and navigation feedback |
|
|
54
|
-
|
|
55
|
-
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).
|
|
56
|
-
|
|
57
|
-
### Choose by task
|
|
58
|
-
|
|
59
|
-
The focused guides below are in Chinese.
|
|
60
|
-
|
|
61
|
-
| Task | Recommended entry and usage |
|
|
62
|
-
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
-
| Filter, edit and run batch actions | Compose `C_FormSearch`, `C_FormModal` and `C_ActionBar`, sharing field definitions and compact density; see [workspace composition](./docs/guides/data-workflows.md) |
|
|
64
|
-
| Select values, suggest text or choose entities | Use `C_Select`, `C_AutoComplete` or `C_DataPicker` respectively; remote fields accept `source` directly. See [search and selection](./docs/guides/search-workflows.md) |
|
|
65
|
-
| Browse a hierarchy, display reporting lines or choose people | Use `C_Tree`, `C_OrgChart` or `C_UserPicker`; see [organization examples](./docs/guides/tree-org-examples.md) and [person selection](./docs/guides/user-picker.md) |
|
|
66
|
-
| Display and edit tabular data | `C_Table` includes row numbers and pagination by default; a selection column enables selection, and `config.edit` selects the editing mode. See [table editing](./docs/guides/table-editing.md) and [widths and density](./docs/guides/table-density.md) |
|
|
67
|
-
|
|
68
|
-
Forms and search can accompany `C_Table` or another grid, retaining each grid's native column and pagination contracts. Workflow, upload and map components provide UI and integration points; applications own approval execution, file services and platform authorization.
|
|
30
|
+
The current repository version is **0.41.0**. See the [changelog](./CHANGELOG.md) for release details.
|
|
69
31
|
|
|
70
32
|
## Quick start
|
|
71
33
|
|
|
72
34
|
### Install
|
|
73
35
|
|
|
74
|
-
|
|
36
|
+
Install the library alongside its required peers in your Vue 3 project. Use your project's package manager.
|
|
75
37
|
|
|
76
38
|
```bash
|
|
77
|
-
bun add @robot-admin/naive-ui-components
|
|
78
|
-
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
|
|
79
40
|
```
|
|
80
41
|
|
|
81
|
-
The
|
|
82
|
-
|
|
83
|
-
You can also use your project's npm or pnpm setup. Install optional peers only for the features that need them:
|
|
84
|
-
|
|
85
|
-
| Feature | Additional dependency |
|
|
86
|
-
| -------------------------------------------- | ------------------------------ |
|
|
87
|
-
| Root imports / `C_Breadcrumb` / `C_TagsView` | `vue-router@^4.6.4` / `^5.3.1` |
|
|
88
|
-
| `C_Table` row/column dragging | `sortablejs@^1.15.7` |
|
|
89
|
-
|
|
90
|
-
### Build a form from configuration
|
|
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.
|
|
91
43
|
|
|
92
|
-
|
|
44
|
+
### Configure a form
|
|
93
45
|
|
|
94
46
|
```vue
|
|
95
47
|
<script setup lang="ts">
|
|
@@ -97,223 +49,95 @@ Place this example in `App.vue`. It uses a component subpath and its CSS entry,
|
|
|
97
49
|
import {
|
|
98
50
|
C_Form,
|
|
99
51
|
defineFormOptions,
|
|
100
|
-
useCForm,
|
|
101
52
|
} from '@robot-admin/naive-ui-components/C_Form'
|
|
102
53
|
import '@robot-admin/naive-ui-components/C_Form/style.css'
|
|
103
54
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const result = ref('')
|
|
110
|
-
const { formRef, bindings } = useCForm<Contact>({
|
|
111
|
-
initialValues: { name: '', email: '' },
|
|
112
|
-
options: defineFormOptions<Contact>([
|
|
113
|
-
{ type: 'input', prop: 'name', label: 'Name', required: true },
|
|
114
|
-
{ type: 'input', prop: 'email', label: 'Email' },
|
|
115
|
-
]),
|
|
116
|
-
config: {
|
|
117
|
-
labelPlacement: 'top',
|
|
118
|
-
onSubmit: ({ model }) => {
|
|
119
|
-
result.value = `Validated: ${model.name}`
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
})
|
|
55
|
+
const draft = ref({ name: '' })
|
|
56
|
+
const fields = defineFormOptions<typeof draft.value>([
|
|
57
|
+
{ type: 'input', prop: 'name', label: 'Name', required: true },
|
|
58
|
+
])
|
|
123
59
|
</script>
|
|
124
60
|
|
|
125
61
|
<template>
|
|
126
62
|
<C_Form
|
|
127
|
-
|
|
128
|
-
|
|
63
|
+
v-model="draft"
|
|
64
|
+
:options="fields"
|
|
129
65
|
/>
|
|
130
|
-
<p v-if="result">{{ result }}</p>
|
|
131
66
|
</template>
|
|
132
67
|
```
|
|
133
68
|
|
|
134
|
-
|
|
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.
|
|
135
70
|
|
|
136
|
-
### Use public
|
|
71
|
+
### Use public props directly
|
|
137
72
|
|
|
138
|
-
|
|
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.
|
|
139
74
|
|
|
140
|
-
|
|
141
|
-
<script setup lang="ts">
|
|
142
|
-
import {
|
|
143
|
-
C_Progress,
|
|
144
|
-
type ProgressProps,
|
|
145
|
-
} from '@robot-admin/naive-ui-components/C_Progress'
|
|
146
|
-
import '@robot-admin/naive-ui-components/C_Progress/style.css'
|
|
147
|
-
|
|
148
|
-
const progress = {
|
|
149
|
-
percentage: 62.5,
|
|
150
|
-
isAnimation: true,
|
|
151
|
-
} satisfies ProgressProps
|
|
152
|
-
</script>
|
|
153
|
-
|
|
154
|
-
<template>
|
|
155
|
-
<C_Progress v-bind="progress" />
|
|
156
|
-
</template>
|
|
157
|
-
```
|
|
75
|
+
## Capability map
|
|
158
76
|
|
|
159
|
-
|
|
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 |
|
|
160
85
|
|
|
161
|
-
|
|
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).
|
|
162
87
|
|
|
163
|
-
|
|
88
|
+
## Integration recipes
|
|
164
89
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
src: '/images/product.jpg',
|
|
174
|
-
width: 640,
|
|
175
|
-
height: 480,
|
|
176
|
-
productCode: 'A-01',
|
|
177
|
-
price: 125.5,
|
|
178
|
-
},
|
|
179
|
-
]
|
|
180
|
-
</script>
|
|
181
|
-
|
|
182
|
-
<template>
|
|
183
|
-
<C_WaterFall :items="products">
|
|
184
|
-
<template #item="{ item, width, height }">
|
|
185
|
-
<img
|
|
186
|
-
:src="item.src"
|
|
187
|
-
:alt="item.productCode"
|
|
188
|
-
:width="width"
|
|
189
|
-
:height="height"
|
|
190
|
-
loading="lazy"
|
|
191
|
-
/>
|
|
192
|
-
<p>{{ item.productCode }} · {{ item.price.toFixed(2) }}</p>
|
|
193
|
-
</template>
|
|
194
|
-
</C_WaterFall>
|
|
195
|
-
</template>
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Replace the image path with an application asset. Slot and event records are read-only and preserve Vue's nested `ref` unwrapping; edit the source data owned by your application. See the [waterfall guide](./docs/guides/waterfall.md) (Chinese) for long lists, variable-height cards and scroll containers.
|
|
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) |
|
|
199
98
|
|
|
200
99
|
### Scope table preferences per account
|
|
201
100
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
```ts
|
|
205
|
-
import { TABLE_GLOBAL_CONFIG_KEY } from '@robot-admin/naive-ui-components/config'
|
|
206
|
-
|
|
207
|
-
app.provide(TABLE_GLOBAL_CONFIG_KEY, {
|
|
208
|
-
defaults: { density: 'compact' },
|
|
209
|
-
get persistPrefix() {
|
|
210
|
-
const scope = session.value
|
|
211
|
-
return scope
|
|
212
|
-
? JSON.stringify([scope.tenantId, scope.companyId, scope.userId])
|
|
213
|
-
: undefined
|
|
214
|
-
},
|
|
215
|
-
})
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
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`.
|
|
219
|
-
|
|
220
|
-
Declare the getter at startup and change its reactive value when accounts change; do not remove the field. An explicitly configured prefix that is `undefined`, empty or whitespace disables preference reads and writes, without falling back to legacy caches. Omitting `persistPrefix` retains legacy keys. Tables without `persistKey` keep settings only in memory and clear them on scope changes. See the [scope guide](./docs/guides/table-density.md#表格偏好与作用域) (Chinese).
|
|
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.
|
|
221
102
|
|
|
222
103
|
## Imports and styles
|
|
223
104
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
|
227
|
-
|
|
|
228
|
-
|
|
|
229
|
-
| Auto-import resolver | Use components directly in templates | Set `importStyle: true` explicitly |
|
|
230
|
-
| Named root imports | Existing Tree-Shaking setups | Import the required CSS or full `style.css` |
|
|
231
|
-
| Global `app.use()` | Register the entire library | Import full `style.css` |
|
|
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` |
|
|
232
110
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
Install `unplugin-vue-components`, then add the resolver to your Vite configuration:
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
bun add -d unplugin-vue-components
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
```ts
|
|
242
|
-
// vite.config.ts
|
|
243
|
-
import { defineConfig } from 'vite'
|
|
244
|
-
import vue from '@vitejs/plugin-vue'
|
|
245
|
-
import Components from 'unplugin-vue-components/vite'
|
|
246
|
-
import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
|
|
247
|
-
|
|
248
|
-
export default defineConfig({
|
|
249
|
-
plugins: [
|
|
250
|
-
vue(),
|
|
251
|
-
Components({
|
|
252
|
-
resolvers: [RobotNaiveUiResolver({ importStyle: true })],
|
|
253
|
-
}),
|
|
254
|
-
],
|
|
255
|
-
})
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
The resolver uses component subpaths by default. `importStyle` defaults to `false`, so enable automatic CSS explicitly. Both `true` and `'full'` load full component styles. `'base'` excludes built-in rich-text editor styles for `C_Form` / `C_Table`; other components retain full styles. Choose base styles only when not using built-in rich-text fields.
|
|
259
|
-
|
|
260
|
-
Each component CSS entry loads its composed styles and shared design tokens automatically. Manual imports can use `C_Form/base.css` and `C_Table/base.css`; full styles also have `full.css` aliases. Load heavy editors, flows, maps and media with their business routes. See [import strategies](./docs/guides/usage.en.md#import-strategies) for details and global registration examples.
|
|
261
|
-
|
|
262
|
-
The repository builds minimal consumers per entry and checks initial JS gzip, heavy dependency boundaries and first-open increments. Measurements include Vue and Naive UI, cannot be summed into a whole-app estimate, and do not replace page-level interaction measurements. See [development and build](./docs/engineering.en.md#development) for coverage; the [0.15.0 size report](./docs/performance-0.15.0.md) (Chinese) is retained as historical context only.
|
|
263
|
-
|
|
264
|
-
Root imports aggregate navigation components and require `vue-router` at runtime. Applications without it should use component subpaths; their unrelated optional peers are not required.
|
|
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.
|
|
265
112
|
|
|
266
113
|
## Documentation
|
|
267
114
|
|
|
268
|
-
| Document
|
|
269
|
-
|
|
|
270
|
-
| [
|
|
271
|
-
| [
|
|
272
|
-
| [
|
|
273
|
-
| [
|
|
274
|
-
| [
|
|
275
|
-
| [Lists and async tasks](./docs/guides/runtime-performance.md) | Automatic list windows, chat scrolling, search indexes and media task ownership (Chinese) |
|
|
276
|
-
| [Waterfall lists](./docs/guides/waterfall.md) | Automatic windows, nested scrolling, measured cards and keyboard navigation (Chinese) |
|
|
277
|
-
| [Compatible API migration](./docs/guides/api-migration.md) | 0.40.4 adoption notes, standard models, application renderers and read-only migration checks (Chinese) |
|
|
278
|
-
| [Production coverage review](./docs/wl-ui-produce-coverage.md) | wl-ui-produce capability mapping and adapter boundaries (Chinese) |
|
|
279
|
-
| [0.40.4 component audit](./docs/component-audit-closure-0.40.4.md) | That release's fixes, type improvements, compatibility boundaries and packaged-consumer validation (Chinese) |
|
|
280
|
-
| [Development and build](./docs/engineering.en.md) | Source structure, six-stage build, adding components, checks and releases |
|
|
281
|
-
| [Brand assets](./docs/assets/README.md) | Robot family logo, editable SVG sources and high-resolution PNGs |
|
|
282
|
-
| [Changelog](./CHANGELOG.md) | Releases and compatibility changes |
|
|
283
|
-
| [Security policy](./SECURITY.md) | Vulnerability reporting and maintenance policy |
|
|
284
|
-
|
|
285
|
-
Dependency security depends on the actual lockfile and audit run. `bun run check:audit` retains raw findings and verifies evidence for narrowly scoped local mitigations or unaffected paths; `check:audit:raw` provides the original report. Repository overrides and development patches do not propagate to consumers, so applications must audit their own lockfiles. Historical scans are not current results. See the [security policy](./SECURITY.md) for bundled-runtime and consumer-dependency boundaries.
|
|
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 |
|
|
286
122
|
|
|
287
123
|
## Local development
|
|
288
124
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
Source checks and builds use locked **TypeScript 5.9.3**. CI additionally verifies consumption of the built declarations with **TypeScript 5.8.3**; this does not claim support for building repository source with 5.8. See [TypeScript build and consumption](./docs/engineering.en.md#typescript-build-and-consumption).
|
|
125
|
+
Use Node.js 20.19+ and the Bun version pinned in the repository's `packageManager` field.
|
|
292
126
|
|
|
293
127
|
```bash
|
|
294
|
-
git clone https://github.com/ChenyCHENYU/naive-ui-components.git
|
|
295
|
-
cd naive-ui-components
|
|
296
128
|
bun install --frozen-lockfile
|
|
297
|
-
bun run
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
`dev` watches library builds and shared SCSS. Interactive demonstrations are provided by Robot Admin, which consumes the library.
|
|
301
|
-
|
|
302
|
-
```bash
|
|
303
|
-
bun run verify # Lint, types, logic/component tests, exports, build and consumer types
|
|
304
|
-
bun run check:audit # Separate dependency audit; CI runs this before verify
|
|
129
|
+
bun run verify
|
|
305
130
|
```
|
|
306
131
|
|
|
307
|
-
|
|
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.
|
|
308
133
|
|
|
309
134
|
## Robot ecosystem
|
|
310
135
|
|
|
311
|
-
| Project |
|
|
312
|
-
| --------------------------------------------------------------------------- |
|
|
313
|
-
|
|
|
314
|
-
| [
|
|
315
|
-
| [
|
|
316
|
-
| [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 |
|
|
317
141
|
|
|
318
142
|
## License
|
|
319
143
|
|
|
@@ -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};
|