@robot-admin/naive-ui-components 0.41.1 → 0.42.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 +18 -0
- package/README.md +46 -5
- package/README_EN.md +54 -13
- package/dist/ActionOverflow.cjs +1 -1
- package/dist/ActionOverflow.js +1 -1
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +54 -54
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +10 -10
- package/dist/C_AntV2.cjs +1 -1
- package/dist/C_AntV2.js +1 -1
- package/dist/C_ApprovalViewer.css +15 -15
- package/dist/C_ApprovalViewer2.cjs +1 -1
- package/dist/C_ApprovalViewer2.js +1 -1
- package/dist/C_AudioPlayer.css +53 -53
- package/dist/C_AudioPlayer2.cjs +1 -1
- package/dist/C_AudioPlayer2.js +1 -1
- package/dist/C_AutoComplete.css +2 -2
- package/dist/C_AutoComplete2.cjs +1 -1
- package/dist/C_AutoComplete2.js +1 -1
- package/dist/C_AvatarGroup.css +29 -29
- package/dist/C_AvatarGroup2.cjs +1 -1
- package/dist/C_AvatarGroup2.js +1 -1
- package/dist/C_BatchResult.css +10 -10
- package/dist/C_BatchResult2.cjs +1 -1
- package/dist/C_BatchResult2.js +1 -1
- package/dist/C_Breadcrumb.css +40 -40
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.d.cts +2 -2
- package/dist/C_Captcha.d.ts +2 -2
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +4 -4
- package/dist/C_Cascade2.cjs +1 -1
- package/dist/C_Cascade2.js +1 -1
- package/dist/C_Chat2.cjs +1 -1
- package/dist/C_Chat2.js +1 -1
- package/dist/C_City.css +35 -35
- package/dist/C_City2.cjs +1 -1
- package/dist/C_City2.js +1 -1
- package/dist/C_Code.css +27 -27
- package/dist/C_Code2.cjs +1 -1
- package/dist/C_Code2.js +2 -2
- package/dist/C_CollapsePanel2.cjs +1 -1
- package/dist/C_CollapsePanel2.js +1 -1
- package/dist/C_ContextMenu.css +3 -3
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_Cron.css +18 -18
- package/dist/C_Cron2.cjs +1 -1
- package/dist/C_Cron2.js +1 -1
- package/dist/C_DataPicker.css +52 -52
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Date.css +5 -5
- package/dist/C_Date2.cjs +1 -1
- package/dist/C_Date2.js +1 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +66 -53
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Editor.css +13 -13
- package/dist/C_Editor.d.cts +2 -2
- package/dist/C_Editor.d.ts +2 -2
- package/dist/C_Editor2.cjs +1 -1
- package/dist/C_Editor2.js +1 -1
- package/dist/C_FilePreview.css +49 -49
- package/dist/C_FilePreview2.cjs +1 -1
- package/dist/C_FilePreview2.js +1 -1
- package/dist/C_Form.base.css +242 -242
- package/dist/C_Form.css +242 -242
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +1 -1
- package/dist/C_FormModal.css +55 -55
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +75 -75
- package/dist/C_FormSearch.d.ts +1 -1
- package/dist/C_FormulaEditor.cjs +1 -1
- package/dist/C_FormulaEditor.css +41 -41
- package/dist/C_FormulaEditor.d.cts +2 -2
- package/dist/C_FormulaEditor.d.ts +2 -2
- package/dist/C_FormulaEditor.js +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Guide.css +13 -13
- package/dist/C_Guide2.cjs +1 -1
- package/dist/C_Guide2.js +1 -1
- package/dist/C_ImageCropper.css +27 -27
- package/dist/C_ImageCropper2.cjs +1 -1
- package/dist/C_ImageCropper2.js +1 -1
- package/dist/C_ImportWizard.css +8 -8
- package/dist/C_ImportWizard2.cjs +1 -1
- package/dist/C_ImportWizard2.js +1 -1
- package/dist/C_Language.css +2 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Loading.css +18 -18
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +94 -94
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Markdown.css +37 -37
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter.css +24 -24
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_OrgChart.d.cts +2 -8
- package/dist/C_OrgChart.d.ts +2 -8
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_QRCode.css +9 -9
- package/dist/C_QRCode2.cjs +1 -1
- package/dist/C_QRCode2.js +1 -1
- package/dist/C_RecurrenceEditor.cjs +1 -1
- package/dist/C_RecurrenceEditor.d.cts +2 -2
- package/dist/C_RecurrenceEditor.d.ts +2 -2
- package/dist/C_RecurrenceEditor.js +1 -1
- package/dist/C_RecurrenceEditor2.cjs +1 -1
- package/dist/C_RecurrenceEditor2.js +1 -1
- package/dist/C_ResourceSchedule2.cjs +1 -1
- package/dist/C_ResourceSchedule2.js +1 -1
- package/dist/C_ScanInput2.cjs +1 -1
- package/dist/C_ScanInput2.js +1 -1
- package/dist/C_SectionNav.css +8 -8
- package/dist/C_SectionNav2.cjs +1 -1
- package/dist/C_SectionNav2.js +1 -1
- package/dist/C_Select.css +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Table.base.css +429 -429
- package/dist/C_Table.css +187 -187
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +1 -1
- package/dist/C_Table2.cjs +4 -4
- package/dist/C_Table2.js +4 -4
- package/dist/C_Timeline.css +50 -50
- package/dist/C_Timeline2.cjs +1 -1
- package/dist/C_Timeline2.js +1 -1
- package/dist/C_Transfer.css +25 -25
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Tree.css +30 -30
- package/dist/C_Tree2.cjs +1 -1
- package/dist/C_Tree2.js +1 -1
- package/dist/C_Upload.css +5 -5
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.css +1 -1
- package/dist/C_VideoPlayer2.cjs +1 -1
- package/dist/C_VideoPlayer2.js +1 -1
- package/dist/C_VtableGantt.css +34 -34
- package/dist/C_WorkFlow.css +93 -93
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -1
- package/dist/Card.js +1 -1
- package/dist/ColumnSettingsDrawer.cjs +1 -0
- package/dist/ColumnSettingsDrawer.js +1 -0
- package/dist/Custom.cjs +1 -1
- package/dist/Custom.js +1 -1
- package/dist/Dynamic.cjs +1 -1
- package/dist/Dynamic.js +1 -1
- package/dist/OptionStatus.cjs +1 -1
- package/dist/OptionStatus.js +1 -1
- package/dist/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/actionIcon.cjs +1 -1
- package/dist/actionIcon.js +1 -1
- package/dist/component-config.d.ts +1 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/constants.d.cts +6 -6
- package/dist/constants.d.ts +6 -6
- package/dist/constants2.d.cts +10 -3
- package/dist/constants2.d.ts +10 -3
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +10 -9
- package/dist/constants4.d.ts +10 -9
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +10 -10
- package/dist/data2.d.ts +10 -10
- package/dist/editors.d.cts +17 -15
- package/dist/editors.d.ts +17 -15
- package/dist/fieldNode.cjs +1 -0
- package/dist/fieldNode.js +1 -0
- package/dist/fieldRenderers.cjs +1 -1
- package/dist/fieldRenderers.js +1 -1
- package/dist/graphics.cjs +1 -1
- package/dist/graphics.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +3 -3
- package/dist/index12.vue.d.cts +3 -3
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.cts +2 -2
- package/dist/index13.vue.d.ts +2 -2
- package/dist/index14.vue.d.cts +2 -2
- package/dist/index14.vue.d.ts +3 -3
- package/dist/index15.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +17 -10
- package/dist/index18.vue.d.cts +17 -10
- package/dist/index19.vue.d.ts +3 -3
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +3 -3
- package/dist/index20.vue.d.ts +3 -3
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index21.vue.d.ts +7 -7
- package/dist/index22.vue.d.cts +7 -7
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +2 -2
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +3 -3
- package/dist/index28.vue.d.cts +3 -3
- package/dist/index3.vue.d.cts +17 -19
- package/dist/index3.vue.d.ts +17 -19
- package/dist/index31.vue.d.cts +1 -1
- package/dist/index31.vue.d.ts +1 -1
- package/dist/index34.vue.d.cts +2 -0
- package/dist/index34.vue.d.ts +2 -0
- package/dist/index35.vue.d.cts +4 -4
- package/dist/index35.vue.d.ts +4 -4
- package/dist/index36.vue.d.cts +20 -11
- package/dist/index36.vue.d.ts +20 -11
- package/dist/index37.vue.d.cts +2 -2
- package/dist/index37.vue.d.ts +2 -2
- package/dist/index38.vue.d.cts +2 -2
- package/dist/index38.vue.d.ts +2 -2
- package/dist/index39.vue.d.cts +1 -1
- package/dist/index39.vue.d.ts +1 -1
- package/dist/index4.vue.d.cts +7 -4
- package/dist/index4.vue.d.ts +7 -4
- package/dist/index42.vue.d.cts +3 -3
- package/dist/index42.vue.d.ts +3 -3
- package/dist/index43.vue.d.cts +2 -2
- package/dist/index43.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +4 -16
- package/dist/index5.vue.d.ts +4 -16
- package/dist/index6.vue.d.cts +5 -5
- package/dist/index6.vue.d.ts +5 -5
- package/dist/index7.vue.d.cts +18 -12
- package/dist/index7.vue.d.ts +18 -12
- package/dist/index9.vue.d.ts +2 -2
- package/dist/localSource.d.cts +8 -8
- package/dist/localSource.d.ts +8 -8
- package/dist/locale.cjs +1 -1
- package/dist/locale.js +1 -1
- package/dist/mapUtils.d.cts +1 -1
- package/dist/mapUtils.d.ts +1 -1
- package/dist/persistence.cjs +1 -0
- package/dist/persistence.js +1 -0
- package/dist/rule.d.cts +4 -1
- package/dist/rule.d.ts +4 -1
- package/dist/serializeSearch.cjs +1 -1
- package/dist/serializeSearch.js +1 -1
- package/dist/source.cjs +1 -1
- package/dist/source.js +1 -1
- package/dist/style.css +1390 -1377
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -1
- package/dist/types10.d.cts +2 -0
- package/dist/types10.d.ts +1 -1
- package/dist/types11.d.cts +1 -1
- package/dist/types3.d.cts +14 -5
- package/dist/types3.d.ts +14 -5
- package/dist/types5.d.ts +12 -10
- package/dist/types6.d.cts +12 -10
- package/dist/types6.d.ts +1 -1
- package/dist/types9.d.ts +2 -0
- package/dist/useCalendarEvents.d.cts +4 -16
- package/dist/useCalendarEvents.d.ts +4 -16
- package/dist/useCollapsePanel.d.cts +1 -0
- package/dist/useCollapsePanel.d.ts +1 -0
- package/dist/useCropperCore.d.cts +6 -17
- package/dist/useCropperCore.d.ts +6 -17
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +3 -12
- package/dist/useEdgeInteraction.d.ts +3 -12
- package/dist/useFormRenderer.d.cts +1 -1
- package/dist/useFormRenderer.d.ts +1 -1
- package/dist/useFormulaEvaluator.cjs +2 -2
- package/dist/useFormulaEvaluator.js +2 -2
- package/dist/useFullscreen.d.cts +23 -5
- package/dist/useFullscreen.d.ts +23 -5
- package/dist/useQRCode.d.cts +5 -18
- package/dist/useQRCode.d.ts +5 -18
- package/dist/useSignatureHistory.d.cts +4 -3
- package/dist/useSignatureHistory.d.ts +4 -3
- package/dist/useSplitResize.d.cts +2 -2
- package/dist/useSplitResize.d.ts +2 -2
- package/dist/useTimeSelection.d.cts +4 -3
- package/dist/useTimeSelection.d.ts +4 -3
- package/dist/useWorkflowValidation.d.cts +43 -37
- package/dist/useWorkflowValidation.d.ts +43 -37
- package/dist/verification.d.cts +8 -8
- package/dist/verification.d.ts +8 -8
- package/docs/engineering.en.md +1 -0
- package/docs/engineering.md +1 -0
- package/docs/guides/batch-results.md +3 -3
- package/docs/guides/data-picker.md +2 -0
- package/docs/guides/resource-schedule.md +1 -0
- package/docs/guides/runtime-performance.md +2 -0
- package/docs/guides/scene-components.md +1 -1
- package/docs/guides/usage.en.md +15 -4
- package/docs/guides/usage.md +13 -4
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { m as DataPickerValue } from "./types5.js";
|
|
|
2
2
|
import { l as UserPickerSource, o as UserPickerOrganization, r as UserPickerFields } from "./types10.js";
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
import { Component, Ref, VNodeChild } from "vue";
|
|
5
|
-
import { Connection, EdgeChange, EdgeUpdateEvent, NodeChange } from "@vue-flow/core";
|
|
5
|
+
import { Connection, EdgeChange, EdgeUpdateEvent, FitViewParams, NodeChange, SetCenterOptions } from "@vue-flow/core";
|
|
6
6
|
|
|
7
7
|
//#region src/components/C_WorkFlow/people.d.ts
|
|
8
8
|
/** 部门范围通过稳定编码传递;是否包含下级由来源的业务规则决定。 */
|
|
@@ -22,6 +22,11 @@ interface WorkflowPeopleOptions {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/components/C_WorkFlow/types.d.ts
|
|
25
|
+
/** 画布控制只依赖两种 SDK 操作,不向节点及验证逻辑传递完整实例。 */
|
|
26
|
+
interface WorkflowViewport {
|
|
27
|
+
fitView?: (options?: FitViewParams) => void;
|
|
28
|
+
setCenter?: (x: number, y: number, options?: SetCenterOptions) => void;
|
|
29
|
+
}
|
|
25
30
|
interface User {
|
|
26
31
|
id: string;
|
|
27
32
|
name: string;
|
|
@@ -193,6 +198,7 @@ interface WorkflowEmits {
|
|
|
193
198
|
change: [value: WorkflowData];
|
|
194
199
|
'node-click': [node: WorkflowNode];
|
|
195
200
|
'edge-click': [edge: WorkflowEdge];
|
|
201
|
+
/** 已通过验证的保存请求。业务保存与成功反馈由宿主负责。 */
|
|
196
202
|
save: [data: WorkflowData];
|
|
197
203
|
'validate-error': [errors: ValidationError[]];
|
|
198
204
|
}
|
|
@@ -307,18 +313,18 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
|
|
|
307
313
|
}>;
|
|
308
314
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
309
315
|
"node-click": (node: WorkflowNode<NodeType>) => any;
|
|
310
|
-
change: (value: WorkflowData) => any;
|
|
311
316
|
"update:modelValue": (value: WorkflowData) => any;
|
|
312
|
-
|
|
317
|
+
change: (value: WorkflowData) => any;
|
|
313
318
|
save: (data: WorkflowData) => any;
|
|
314
319
|
"validate-error": (errors: ValidationError[]) => any;
|
|
320
|
+
"edge-click": (edge: WorkflowEdge) => any;
|
|
315
321
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
316
322
|
"onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
|
|
317
|
-
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
318
323
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
319
|
-
|
|
324
|
+
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
320
325
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
321
326
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
327
|
+
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
322
328
|
}>, {
|
|
323
329
|
readonly: boolean;
|
|
324
330
|
users: User[];
|
|
@@ -337,7 +343,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
337
343
|
//#region src/components/C_WorkFlow/composables/useWorkflowNodes.d.ts
|
|
338
344
|
type EmitFn$1 = <Event extends keyof WorkflowEmits>(event: Event, ...args: WorkflowEmits[Event]) => void;
|
|
339
345
|
/** 工作流节点管理 —— 封装节点 CRUD、provide/inject、边重连、画布操作等逻辑 */
|
|
340
|
-
declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowRef: Ref): {
|
|
346
|
+
declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowRef: Ref<WorkflowViewport | null | undefined>): {
|
|
341
347
|
nodes: Ref<({
|
|
342
348
|
id: string;
|
|
343
349
|
position: {
|
|
@@ -390,9 +396,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
390
396
|
zIndex?: number | undefined;
|
|
391
397
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
392
398
|
expandParent?: boolean | undefined;
|
|
393
|
-
type: "
|
|
399
|
+
type: "copy";
|
|
394
400
|
data: {
|
|
395
|
-
|
|
401
|
+
copyUsers?: {
|
|
396
402
|
id: string;
|
|
397
403
|
name: string;
|
|
398
404
|
avatar?: string | undefined;
|
|
@@ -402,7 +408,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
402
408
|
email?: string | undefined;
|
|
403
409
|
phone?: string | undefined;
|
|
404
410
|
}[] | undefined;
|
|
405
|
-
approvalMode?: ApprovalMode | undefined;
|
|
406
411
|
title: string;
|
|
407
412
|
status?: NodeStatus | undefined;
|
|
408
413
|
config?: Record<string, unknown> | undefined;
|
|
@@ -435,9 +440,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
435
440
|
zIndex?: number | undefined;
|
|
436
441
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
437
442
|
expandParent?: boolean | undefined;
|
|
438
|
-
type: "
|
|
443
|
+
type: "approval";
|
|
439
444
|
data: {
|
|
440
|
-
|
|
445
|
+
approvers?: {
|
|
441
446
|
id: string;
|
|
442
447
|
name: string;
|
|
443
448
|
avatar?: string | undefined;
|
|
@@ -447,6 +452,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
447
452
|
email?: string | undefined;
|
|
448
453
|
phone?: string | undefined;
|
|
449
454
|
}[] | undefined;
|
|
455
|
+
approvalMode?: ApprovalMode | undefined;
|
|
450
456
|
title: string;
|
|
451
457
|
status?: NodeStatus | undefined;
|
|
452
458
|
config?: Record<string, unknown> | undefined;
|
|
@@ -557,9 +563,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
557
563
|
zIndex?: number | undefined;
|
|
558
564
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
559
565
|
expandParent?: boolean | undefined;
|
|
560
|
-
type: "
|
|
566
|
+
type: "copy";
|
|
561
567
|
data: {
|
|
562
|
-
|
|
568
|
+
copyUsers?: {
|
|
563
569
|
id: string;
|
|
564
570
|
name: string;
|
|
565
571
|
avatar?: string | undefined;
|
|
@@ -569,7 +575,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
569
575
|
email?: string | undefined;
|
|
570
576
|
phone?: string | undefined;
|
|
571
577
|
}[] | undefined;
|
|
572
|
-
approvalMode?: ApprovalMode | undefined;
|
|
573
578
|
title: string;
|
|
574
579
|
status?: NodeStatus | undefined;
|
|
575
580
|
config?: Record<string, unknown> | undefined;
|
|
@@ -602,9 +607,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
602
607
|
zIndex?: number | undefined;
|
|
603
608
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
604
609
|
expandParent?: boolean | undefined;
|
|
605
|
-
type: "
|
|
610
|
+
type: "approval";
|
|
606
611
|
data: {
|
|
607
|
-
|
|
612
|
+
approvers?: {
|
|
608
613
|
id: string;
|
|
609
614
|
name: string;
|
|
610
615
|
avatar?: string | undefined;
|
|
@@ -614,6 +619,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
614
619
|
email?: string | undefined;
|
|
615
620
|
phone?: string | undefined;
|
|
616
621
|
}[] | undefined;
|
|
622
|
+
approvalMode?: ApprovalMode | undefined;
|
|
617
623
|
title: string;
|
|
618
624
|
status?: NodeStatus | undefined;
|
|
619
625
|
config?: Record<string, unknown> | undefined;
|
|
@@ -777,9 +783,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
777
783
|
zIndex?: number | undefined;
|
|
778
784
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
779
785
|
expandParent?: boolean | undefined;
|
|
780
|
-
type: "
|
|
786
|
+
type: "copy";
|
|
781
787
|
data: {
|
|
782
|
-
|
|
788
|
+
copyUsers?: {
|
|
783
789
|
id: string;
|
|
784
790
|
name: string;
|
|
785
791
|
avatar?: string | undefined;
|
|
@@ -789,7 +795,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
789
795
|
email?: string | undefined;
|
|
790
796
|
phone?: string | undefined;
|
|
791
797
|
}[] | undefined;
|
|
792
|
-
approvalMode?: ApprovalMode | undefined;
|
|
793
798
|
title: string;
|
|
794
799
|
status?: NodeStatus | undefined;
|
|
795
800
|
config?: Record<string, unknown> | undefined;
|
|
@@ -822,9 +827,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
822
827
|
zIndex?: number | undefined;
|
|
823
828
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
824
829
|
expandParent?: boolean | undefined;
|
|
825
|
-
type: "
|
|
830
|
+
type: "approval";
|
|
826
831
|
data: {
|
|
827
|
-
|
|
832
|
+
approvers?: {
|
|
828
833
|
id: string;
|
|
829
834
|
name: string;
|
|
830
835
|
avatar?: string | undefined;
|
|
@@ -834,6 +839,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
834
839
|
email?: string | undefined;
|
|
835
840
|
phone?: string | undefined;
|
|
836
841
|
}[] | undefined;
|
|
842
|
+
approvalMode?: ApprovalMode | undefined;
|
|
837
843
|
title: string;
|
|
838
844
|
status?: NodeStatus | undefined;
|
|
839
845
|
config?: Record<string, unknown> | undefined;
|
|
@@ -944,9 +950,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
944
950
|
zIndex?: number | undefined;
|
|
945
951
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
946
952
|
expandParent?: boolean | undefined;
|
|
947
|
-
type: "
|
|
953
|
+
type: "copy";
|
|
948
954
|
data: {
|
|
949
|
-
|
|
955
|
+
copyUsers?: {
|
|
950
956
|
id: string;
|
|
951
957
|
name: string;
|
|
952
958
|
avatar?: string | undefined;
|
|
@@ -956,7 +962,6 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
956
962
|
email?: string | undefined;
|
|
957
963
|
phone?: string | undefined;
|
|
958
964
|
}[] | undefined;
|
|
959
|
-
approvalMode?: ApprovalMode | undefined;
|
|
960
965
|
title: string;
|
|
961
966
|
status?: NodeStatus | undefined;
|
|
962
967
|
config?: Record<string, unknown> | undefined;
|
|
@@ -989,9 +994,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
989
994
|
zIndex?: number | undefined;
|
|
990
995
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
991
996
|
expandParent?: boolean | undefined;
|
|
992
|
-
type: "
|
|
997
|
+
type: "approval";
|
|
993
998
|
data: {
|
|
994
|
-
|
|
999
|
+
approvers?: {
|
|
995
1000
|
id: string;
|
|
996
1001
|
name: string;
|
|
997
1002
|
avatar?: string | undefined;
|
|
@@ -1001,6 +1006,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
1001
1006
|
email?: string | undefined;
|
|
1002
1007
|
phone?: string | undefined;
|
|
1003
1008
|
}[] | undefined;
|
|
1009
|
+
approvalMode?: ApprovalMode | undefined;
|
|
1004
1010
|
title: string;
|
|
1005
1011
|
status?: NodeStatus | undefined;
|
|
1006
1012
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1185,9 +1191,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1185
1191
|
zIndex?: number | undefined;
|
|
1186
1192
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
1187
1193
|
expandParent?: boolean | undefined;
|
|
1188
|
-
type: "
|
|
1194
|
+
type: "copy";
|
|
1189
1195
|
data: {
|
|
1190
|
-
|
|
1196
|
+
copyUsers?: {
|
|
1191
1197
|
id: string;
|
|
1192
1198
|
name: string;
|
|
1193
1199
|
avatar?: string | undefined;
|
|
@@ -1197,7 +1203,6 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1197
1203
|
email?: string | undefined;
|
|
1198
1204
|
phone?: string | undefined;
|
|
1199
1205
|
}[] | undefined;
|
|
1200
|
-
approvalMode?: ApprovalMode | undefined;
|
|
1201
1206
|
title: string;
|
|
1202
1207
|
status?: NodeStatus | undefined;
|
|
1203
1208
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1230,9 +1235,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1230
1235
|
zIndex?: number | undefined;
|
|
1231
1236
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
1232
1237
|
expandParent?: boolean | undefined;
|
|
1233
|
-
type: "
|
|
1238
|
+
type: "approval";
|
|
1234
1239
|
data: {
|
|
1235
|
-
|
|
1240
|
+
approvers?: {
|
|
1236
1241
|
id: string;
|
|
1237
1242
|
name: string;
|
|
1238
1243
|
avatar?: string | undefined;
|
|
@@ -1242,6 +1247,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1242
1247
|
email?: string | undefined;
|
|
1243
1248
|
phone?: string | undefined;
|
|
1244
1249
|
}[] | undefined;
|
|
1250
|
+
approvalMode?: ApprovalMode | undefined;
|
|
1245
1251
|
title: string;
|
|
1246
1252
|
status?: NodeStatus | undefined;
|
|
1247
1253
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1375,9 +1381,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1375
1381
|
zIndex?: number | undefined;
|
|
1376
1382
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
1377
1383
|
expandParent?: boolean | undefined;
|
|
1378
|
-
type: "
|
|
1384
|
+
type: "copy";
|
|
1379
1385
|
data: {
|
|
1380
|
-
|
|
1386
|
+
copyUsers?: {
|
|
1381
1387
|
id: string;
|
|
1382
1388
|
name: string;
|
|
1383
1389
|
avatar?: string | undefined;
|
|
@@ -1387,7 +1393,6 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1387
1393
|
email?: string | undefined;
|
|
1388
1394
|
phone?: string | undefined;
|
|
1389
1395
|
}[] | undefined;
|
|
1390
|
-
approvalMode?: ApprovalMode | undefined;
|
|
1391
1396
|
title: string;
|
|
1392
1397
|
status?: NodeStatus | undefined;
|
|
1393
1398
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1420,9 +1425,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1420
1425
|
zIndex?: number | undefined;
|
|
1421
1426
|
extent?: "parent" | [[number, number], [number, number]] | undefined;
|
|
1422
1427
|
expandParent?: boolean | undefined;
|
|
1423
|
-
type: "
|
|
1428
|
+
type: "approval";
|
|
1424
1429
|
data: {
|
|
1425
|
-
|
|
1430
|
+
approvers?: {
|
|
1426
1431
|
id: string;
|
|
1427
1432
|
name: string;
|
|
1428
1433
|
avatar?: string | undefined;
|
|
@@ -1432,6 +1437,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1432
1437
|
email?: string | undefined;
|
|
1433
1438
|
phone?: string | undefined;
|
|
1434
1439
|
}[] | undefined;
|
|
1440
|
+
approvalMode?: ApprovalMode | undefined;
|
|
1435
1441
|
title: string;
|
|
1436
1442
|
status?: NodeStatus | undefined;
|
|
1437
1443
|
config?: Record<string, unknown> | undefined;
|
|
@@ -1540,7 +1546,7 @@ interface WorkflowValidationOptions {
|
|
|
1540
1546
|
conditionFields?: () => readonly WorkflowConditionField[] | undefined;
|
|
1541
1547
|
}
|
|
1542
1548
|
/** 工作流验证 —— 封装流程校验逻辑、错误展示和节点定位 */
|
|
1543
|
-
declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<WorkflowEdge[]>, vueFlowRef: Ref
|
|
1549
|
+
declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<WorkflowEdge[]>, vueFlowRef: Ref<WorkflowViewport | null | undefined>, options?: WorkflowValidationOptions): {
|
|
1544
1550
|
validationErrors: Ref<{
|
|
1545
1551
|
nodeId: string;
|
|
1546
1552
|
nodeName: string;
|
package/dist/verification.d.cts
CHANGED
|
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
+
change: (valid: boolean) => any;
|
|
80
|
+
reset: () => any;
|
|
79
81
|
success: (data: CaptchaSuccessPayload) => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
80
83
|
fail: (error: string) => any;
|
|
81
84
|
"verify-error": (error: unknown) => any;
|
|
82
|
-
"load-error": (error: unknown) => any;
|
|
83
|
-
change: (valid: boolean) => any;
|
|
84
85
|
"visible-change": (visible: boolean) => any;
|
|
85
|
-
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
+
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
+
onReset?: (() => any) | undefined;
|
|
87
89
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
88
91
|
onFail?: ((error: string) => any) | undefined;
|
|
89
92
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
90
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
|
-
onChange?: ((valid: boolean) => any) | undefined;
|
|
92
93
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
-
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
+
disabled: boolean;
|
|
95
96
|
provider: CaptchaProvider;
|
|
96
97
|
images: string[];
|
|
97
|
-
disabled: boolean;
|
|
98
98
|
verificationTimeout: number;
|
|
99
99
|
requireServerVerification: boolean;
|
|
100
100
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -119,4 +119,4 @@ interface VerifyCaptchaProofOptions {
|
|
|
119
119
|
/** Normalize local/server verification with cancellation and a hard timeout. */
|
|
120
120
|
declare function verifyCaptchaProof(proof: CaptchaProof, options?: VerifyCaptchaProofOptions): Promise<CaptchaSuccessPayload>;
|
|
121
121
|
//#endregion
|
|
122
|
-
export {
|
|
122
|
+
export { verifyCaptchaProof as a, CaptchaInstance as c, CaptchaProvider as d, CaptchaSuccessPayload as f, CaptchaVerifier as h, createCaptchaProof as i, CaptchaProof as l, CaptchaVerificationResult as m, CaptchaVerificationErrorCode as n, _default as o, CaptchaVerificationRequest as p, VerifyCaptchaProofOptions as r, CaptchaEmits as s, CaptchaVerificationError as t, CaptchaProps as u };
|
package/dist/verification.d.ts
CHANGED
|
@@ -76,25 +76,25 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
76
76
|
reset: () => void;
|
|
77
77
|
show: () => void;
|
|
78
78
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
79
|
+
change: (valid: boolean) => any;
|
|
80
|
+
reset: () => any;
|
|
79
81
|
success: (data: CaptchaSuccessPayload) => any;
|
|
82
|
+
"load-error": (error: unknown) => any;
|
|
80
83
|
fail: (error: string) => any;
|
|
81
84
|
"verify-error": (error: unknown) => any;
|
|
82
|
-
"load-error": (error: unknown) => any;
|
|
83
|
-
change: (valid: boolean) => any;
|
|
84
85
|
"visible-change": (visible: boolean) => any;
|
|
85
|
-
reset: () => any;
|
|
86
86
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
87
|
+
onChange?: ((valid: boolean) => any) | undefined;
|
|
88
|
+
onReset?: (() => any) | undefined;
|
|
87
89
|
onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
|
|
90
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
88
91
|
onFail?: ((error: string) => any) | undefined;
|
|
89
92
|
"onVerify-error"?: ((error: unknown) => any) | undefined;
|
|
90
|
-
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
91
|
-
onChange?: ((valid: boolean) => any) | undefined;
|
|
92
93
|
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
93
|
-
onReset?: (() => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
|
+
disabled: boolean;
|
|
95
96
|
provider: CaptchaProvider;
|
|
96
97
|
images: string[];
|
|
97
|
-
disabled: boolean;
|
|
98
98
|
verificationTimeout: number;
|
|
99
99
|
requireServerVerification: boolean;
|
|
100
100
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -119,4 +119,4 @@ interface VerifyCaptchaProofOptions {
|
|
|
119
119
|
/** Normalize local/server verification with cancellation and a hard timeout. */
|
|
120
120
|
declare function verifyCaptchaProof(proof: CaptchaProof, options?: VerifyCaptchaProofOptions): Promise<CaptchaSuccessPayload>;
|
|
121
121
|
//#endregion
|
|
122
|
-
export {
|
|
122
|
+
export { verifyCaptchaProof as a, CaptchaInstance as c, CaptchaProvider as d, CaptchaSuccessPayload as f, CaptchaVerifier as h, createCaptchaProof as i, CaptchaProof as l, CaptchaVerificationResult as m, CaptchaVerificationErrorCode as n, _default as o, CaptchaVerificationRequest as p, VerifyCaptchaProofOptions as r, CaptchaEmits as s, CaptchaVerificationError as t, CaptchaProps as u };
|
package/docs/engineering.en.md
CHANGED
|
@@ -136,6 +136,7 @@ bun run changeset # Record changes and release level
|
|
|
136
136
|
bun run version # Update package version and CHANGELOG
|
|
137
137
|
bun run verify # Run all pre-publish checks
|
|
138
138
|
bun run test:browser # Run browser regressions against the distributable build
|
|
139
|
+
bun run test:performance # Check organization charts, table interactions, and editing
|
|
139
140
|
npm pack --dry-run # Review the files npm will ship
|
|
140
141
|
bun run release # Publish pending Changesets releases
|
|
141
142
|
```
|
package/docs/engineering.md
CHANGED
|
@@ -137,6 +137,7 @@ bun run changeset # 记录变更及版本级别
|
|
|
137
137
|
bun run version # 更新版本号与 CHANGELOG
|
|
138
138
|
bun run verify # 发布前完整验证
|
|
139
139
|
bun run test:browser # 在正式构建产物上运行三浏览器回归
|
|
140
|
+
bun run test:performance # 校验组织图、多表联动与编辑性能
|
|
140
141
|
npm pack --dry-run # 核对 npm 包的实际文件清单
|
|
141
142
|
bun run release # 发布 Changesets 中待发布版本
|
|
142
143
|
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { BatchOperationResult } from '@robot-admin/naive-ui-components/data'
|
|
9
9
|
import '@robot-admin/naive-ui-components/C_BatchResult/style.css'
|
|
10
10
|
|
|
11
|
-
const results: BatchOperationResult[] = [
|
|
11
|
+
const results: BatchOperationResult<string>[] = [
|
|
12
12
|
{ key: 'ORDER-1', status: 'success' },
|
|
13
13
|
{
|
|
14
14
|
key: 'ORDER-2',
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
retryable: false,
|
|
24
24
|
},
|
|
25
25
|
]
|
|
26
|
-
function retry(keys:
|
|
26
|
+
function retry(keys: string[]) {
|
|
27
27
|
// 使用应用已有的命令适配器;后端仍须再次校验权限、状态、版本和幂等令牌。
|
|
28
28
|
orderActions.retry(keys)
|
|
29
29
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
`retry` 从 `results` 推断键类型。字符串键得到 `string[]`,数字键得到 `number[]`。同一 `key` 以最后一条结果为准,事件只包含最终状态为 `failure` 或 `conflict` 且标记为 `retryable: true` 的去重键。
|
|
42
42
|
|
|
43
43
|
默认每页 20 条,可通过 `pageSize` 调整。表格只接收当前页,当前页超过 20 行时启用虚拟滚动。切换状态筛选时回到第一页,结果数量缩小会修正页码。
|
|
44
44
|
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
- 时间用毫秒时间戳,区间起点包含、终点排除。同一资源在可见时间内有重叠时标记冲突,相邻时间段和不同资源分别计算。
|
|
55
|
+
- 重叠的预约使用不同轨道,已有轨道腾出时优先复用最靠上的可用轨道。密集预约可按当前资源和可见时段查询,以控制页面上的预约数量。
|
|
55
56
|
- `workingWindows` 为资源可选的工作时段。它可以显示班次、停机区段的相对位置,容量与资源可用性由业务数据提供。
|
|
56
57
|
- `navigation` 通过 `update:range` 请求翻到相邻等长时段。页面可以按时段和资源加载数据。跨时区显示用 `timeZone`,默认 UTC。
|
|
57
58
|
- `#booking` 可定制块内摘要,`#details` 可接入页面的查看、编辑或改期操作,这些插槽收到原始业务记录。键盘焦点沿标记移动,也可直接激活预约。
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
## 重复计划和扫码
|
|
42
42
|
|
|
43
|
-
`C_RecurrenceEditor` 用 `v-model` 编辑结构化重复规则。`
|
|
43
|
+
`C_RecurrenceEditor` 用 `v-model` 编辑结构化重复规则。`tryFormatRecurrenceRule(rule)` 可用于实时预览,草稿未填完或无效时返回 `null`,未设置重复时返回空字符串。提交时用 `formatRecurrenceRule(rule)` 严格校验并序列化。全天规则的 `UNTIL` 使用 `YYYYMMDD`。应用保存带时区的精确起止时间,并通过相应日历协议处理带时间的截止条件。超出此编辑器范围的规则会被明确拒绝。 [RFC 5545](https://www.rfc-editor.org/rfc/rfc5545#section-3.3.10)
|
|
44
44
|
|
|
45
45
|
`C_ScanInput` 保留普通输入和扫码枪的回车提交,结果保持字符串。设置 `camera` 或 `photo` 后可启用相应入口。支持原生 `BarcodeDetector` 的环境可直接识别,其他环境可提供 `decode(source, signal)` 适配器。摄像头退出、业务 `scope` 更新与卸载都会释放媒体资源。 [BarcodeDetector](https://developer.mozilla.org/en-US/docs/Web/API/BarcodeDetector)
|
|
46
46
|
|
package/docs/guides/usage.en.md
CHANGED
|
@@ -533,22 +533,27 @@ The `reset(params)` event carries the reset snapshot after the synchronous v-mod
|
|
|
533
533
|
|
|
534
534
|
### Action configuration and asynchronous work
|
|
535
535
|
|
|
536
|
-
Stable semantic keys
|
|
536
|
+
Stable semantic keys provide the default labels and icons. The component manages loading and execution locks for callbacks that return promises.
|
|
537
537
|
|
|
538
538
|
```ts
|
|
539
539
|
const actions = defineActions([
|
|
540
540
|
{ key: 'save', onClick: () => saveCurrentUser() },
|
|
541
541
|
{ key: 'refresh', disabled: () => loading.value, onClick: reload },
|
|
542
|
+
{ key: 'publish', label: 'Publish', cooldownMs: 500, onClick: publishUsers },
|
|
542
543
|
{
|
|
543
544
|
key: 'more',
|
|
544
|
-
dropdown: [
|
|
545
|
+
dropdown: [
|
|
546
|
+
{ key: 'delete', label: 'Delete selection', onClick: deleteUsers },
|
|
547
|
+
],
|
|
545
548
|
},
|
|
546
549
|
])
|
|
547
550
|
```
|
|
548
551
|
|
|
549
|
-
|
|
552
|
+
Actions and dropdown items whose `key` exactly matches `save`, `submit`, `confirm`, `delete`, or `remove` have a 300 ms cooldown by default. The first activation runs immediately, and repeat activations during the window are discarded. Other actions support consecutive activations. Set `cooldownMs` on an action or dropdown item to a positive, finite number of milliseconds. A value of `0` or an invalid value skips starting the cooldown for that activation. A failed action can be retried immediately.
|
|
550
553
|
|
|
551
|
-
|
|
554
|
+
Duplicate keys in one ActionBar share a task lock and cooldown. A stable key preserves state when its action object is replaced or moved between groups. Unkeyed actions use their group and position, so give dynamic lists explicit keys. Sibling dropdown items have independent cooldowns and share their parent action's async lock. The automatic spinner reflects in-flight work. `autoLoading: false` hides the spinner and keeps the lock active.
|
|
555
|
+
|
|
556
|
+
`action-click` and `dropdown-click` notify observers of accepted activations. Put async commands in the action's `onClick` so the component can await them. Failures emit `action-error(error, action, item?)` and propagate to Vue's `errorHandler` or error-capture boundary. `buttonProps.disabled/loading` merge with action state. For regular buttons, `buttonProps.onClick` observes accepted native clicks. The dropdown trigger stays usable while an item cools down, subject to the usual disabled and loading guards. Table row actions reuse lightweight task locks.
|
|
552
557
|
|
|
553
558
|
## Recommended C_Map setup
|
|
554
559
|
|
|
@@ -639,6 +644,10 @@ With `require-server-verification`, a successful response must include a server
|
|
|
639
644
|
|
|
640
645
|
`C_Login` remembers only the username, never the password. SMS events require a valid phone number; the local countdown starts immediately, while delivery results and server-side rate limits remain the host's responsibility. `C_City` loads its city index on first open and scopes letter navigation to its own instance; the default trigger, letters, and city items are keyboard-operable.
|
|
641
646
|
|
|
647
|
+
## Keyboard sorting in C_Draggable
|
|
648
|
+
|
|
649
|
+
In a sortable list with multiple items, press Tab to focus an item and use Alt+Up or Alt+Down to change its position. When the host accepts the `v-model` update, focus follows the item and the new position is announced. Keyboard moves use `update:modelValue` and `list-change`. Controls inside custom item slots keep their own keyboard behavior.
|
|
650
|
+
|
|
642
651
|
## Table loading
|
|
643
652
|
|
|
644
653
|
`C_Table` uses a data-orbit SVG indicator in the theme's primary color, with an orbit, data rows, and a subtle beam to indicate waiting. It retains existing data and respects reduced-motion preferences without page configuration. Built-in asynchronous expansion also uses `C_Loading`; custom expansion renderers retain control of their content. Override the `loading` slot for custom content. The standalone `C_Loading` accepts `size` (16–120, default 48), optional `label`, and optional `color`. Disable rotation when using it with native `NSpin`:
|
|
@@ -711,6 +720,8 @@ With `C_FullCalendar` and `v-model:events`, listen for `@event-dropped` or `@eve
|
|
|
711
720
|
|
|
712
721
|
Upload `concurrency` applies across normal and chunk upload requests. Cancellation stops subsequent hash reads; a Blob read already in progress is discarded on completion. Application-provided check/merge callbacks retain responsibility for their own network lifecycle.
|
|
713
722
|
|
|
723
|
+
Pausing and resuming a file or retrying its transfer reuses the file prepared by `beforeUpload` and the chunk size of its first transfer. When `uploadedChunksQuery` returns existing chunk indices, the server must ensure they use the same chunk size, including across separate upload instances.
|
|
724
|
+
|
|
714
725
|
Excel previews preserve raw values, cell types and workbook display formatting. Sheets expand on demand. Defaults are 32 MiB per file and 100000 cells per sheet. `previewLimits: { maxBytes, maxCells }` accepts finite safe positive integers. Remote Excel previews stop reading the response once the byte limit is exceeded. Over-budget previews ask users to download the original file. Memory used to decompress a workbook depends on its contents.
|
|
715
726
|
|
|
716
727
|
WaterFall fills a visible sentinel for at most five consecutive pages, then exposes a manual continuation. Custom `footer` slots receive `paused` and `loadMore`. Continue updating `loading` and `noMore` in the host. Draggable instances sort independently by default; cross-list transfers require an explicitly shared `group`.
|
package/docs/guides/usage.md
CHANGED
|
@@ -650,22 +650,25 @@ const filters: SearchFormItem[] = [
|
|
|
650
650
|
|
|
651
651
|
### 动作配置与异步执行
|
|
652
652
|
|
|
653
|
-
|
|
653
|
+
使用稳定的语义 key 继承文案和图标。返回 Promise 的回调由组件管理加载状态和执行锁。
|
|
654
654
|
|
|
655
655
|
```ts
|
|
656
656
|
const actions = defineActions([
|
|
657
657
|
{ key: 'save', onClick: () => saveCurrentUser() },
|
|
658
658
|
{ key: 'refresh', disabled: () => loading.value, onClick: reload },
|
|
659
|
+
{ key: 'publish', label: '发布', cooldownMs: 500, onClick: publishUsers },
|
|
659
660
|
{
|
|
660
661
|
key: 'more',
|
|
661
|
-
dropdown: [{ key: '
|
|
662
|
+
dropdown: [{ key: 'delete', label: '删除选中项', onClick: deleteUsers }],
|
|
662
663
|
},
|
|
663
664
|
])
|
|
664
665
|
```
|
|
665
666
|
|
|
666
|
-
|
|
667
|
+
普通动作和下拉子项的 `key` 精确匹配 `save`、`submit`、`confirm`、`delete` 或 `remove` 时,默认启用 300 ms 冷却。首次激活立即执行,窗口内的重复操作直接忽略。其他动作支持连续操作。可在动作或下拉子项上用 `cooldownMs` 指定正的有限毫秒值。设置 `0` 或无效值时,本次激活跳过冷却计时。失败后可立即重试。
|
|
667
668
|
|
|
668
|
-
|
|
669
|
+
同一 ActionBar 中的重复 key 共享执行锁和冷却,重建动作对象或切换左右分组会保留稳定 key 的状态。无 key 时按分组和位置识别,动态列表应显式提供 key。下拉子项独立冷却,并共享父动作的异步执行锁。加载指示只跟随执行中的任务,`autoLoading: false` 可隐藏自动加载指示,执行锁继续生效。
|
|
670
|
+
|
|
671
|
+
`action-click`/`dropdown-click` 通知已接受的激活,异步命令放在会等待 Promise 的动作 `onClick`。失败发出 `action-error(error, action, item?)`,原始错误继续交给 Vue `errorHandler`/错误捕获边界。`buttonProps.disabled/loading` 与动作状态合并。普通按钮的 `buttonProps.onClick` 观察已接受的原生点击。下拉触发按钮的打开和关闭继续遵循禁用和加载状态,子项冷却期间仍可操作触发按钮。表格行操作复用轻量执行锁。
|
|
669
672
|
|
|
670
673
|
## C_Map 推荐用法
|
|
671
674
|
|
|
@@ -771,6 +774,10 @@ const actions = defineActions([
|
|
|
771
774
|
</NSpin>
|
|
772
775
|
```
|
|
773
776
|
|
|
777
|
+
## C_Draggable 键盘排序
|
|
778
|
+
|
|
779
|
+
有多项且允许排序时,按 Tab 聚焦项目,再用 Alt + ↑ / ↓ 按列表顺序移动。组件在宿主接收 `v-model` 后把焦点移到新位置,并读出排序结果。键盘移动沿用 `update:modelValue` 和 `list-change`,自定义插槽中的输入框和按钮继续接收自己的按键。
|
|
780
|
+
|
|
774
781
|
## C_Login 扩展表单
|
|
775
782
|
|
|
776
783
|
`password-fields` 插槽位于密码输入框下方,提供 `username`、`loading`,可配置工作空间或其他业务字段。`username-change` 在初始预填、恢复记住的账号和输入变化时同步触发。宿主通过 `submitDisabled` 阻止扩展字段尚未就绪时的按钮与回车提交;`loading` 期间凭据输入禁用。公司查询、成员关系和权限始终由宿主认证服务处理,组件不保存业务上下文。
|
|
@@ -849,6 +856,8 @@ CRUD 控制器只需满足结构契约;`@robot-admin/request-core` 0.6.3 起
|
|
|
849
856
|
|
|
850
857
|
`C_Upload.concurrency` 统一限制普通上传与分片上传请求。取消、移除和卸载会停止后续哈希读取并释放排队任务;已经开始的单次 Blob 读取完成后不再处理结果。业务自行提供的校验、合并回调仍由业务负责其网络生命周期。
|
|
851
858
|
|
|
859
|
+
同一文件的恢复与传输重试复用 `beforeUpload` 处理后的文件和首次传输的分片尺寸。服务端通过 `uploadedChunksQuery` 返回已上传索引时,须保证这些索引使用同一分片尺寸,跨上传实例也遵循此约定。
|
|
860
|
+
|
|
852
861
|
在同一编辑弹窗切换记录时,调用上传实例的 `replaceFileList(record.attachments)`。它会废弃上一条记录尚未返回的文件选择结果和拖入目录,取消上传任务,再回填新记录的附件。`defaultFileList` 用于首次初始化。`clearAll()` 使用同样的取消路径。
|
|
853
862
|
|
|
854
863
|
普通单文件模式一次只接收一个符合 `accept` 的文件,点击、拖放和粘贴一致。需要接收整个目录时开启 `directory`;需要限制整个列表的数量时使用 `maxCount`。
|