@robot-admin/naive-ui-components 0.41.2 → 0.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +3 -1
  3. package/README_EN.md +11 -9
  4. package/dist/ActionOverflow.cjs +1 -1
  5. package/dist/ActionOverflow.js +1 -1
  6. package/dist/C_ActionBar.cjs +1 -1
  7. package/dist/C_ActionBar.css +54 -54
  8. package/dist/C_ActionBar.js +1 -1
  9. package/dist/C_ActionBar2.cjs +1 -1
  10. package/dist/C_ActionBar2.js +1 -1
  11. package/dist/C_ApprovalViewer.css +15 -15
  12. package/dist/C_ApprovalViewer2.cjs +1 -1
  13. package/dist/C_ApprovalViewer2.js +1 -1
  14. package/dist/C_ContextMenu.css +3 -3
  15. package/dist/C_ContextMenu2.cjs +1 -1
  16. package/dist/C_ContextMenu2.js +1 -1
  17. package/dist/C_DataPicker.css +22 -22
  18. package/dist/C_DataPicker2.cjs +1 -1
  19. package/dist/C_DataPicker2.js +1 -1
  20. package/dist/C_Density2.cjs +1 -1
  21. package/dist/C_Density2.js +1 -1
  22. package/dist/C_Draggable.css +66 -53
  23. package/dist/C_Draggable2.cjs +1 -1
  24. package/dist/C_Draggable2.js +1 -1
  25. package/dist/C_Form.base.css +1 -1
  26. package/dist/C_Form.css +1 -1
  27. package/dist/C_FormModal.css +55 -55
  28. package/dist/C_FormModal2.cjs +1 -1
  29. package/dist/C_FormModal2.js +1 -1
  30. package/dist/C_FormSearch.css +1 -1
  31. package/dist/C_GlobalSearch2.cjs +1 -1
  32. package/dist/C_GlobalSearch2.js +1 -1
  33. package/dist/C_Language.css +2 -2
  34. package/dist/C_Language2.cjs +1 -1
  35. package/dist/C_Language2.js +1 -1
  36. package/dist/C_Login.css +85 -85
  37. package/dist/C_Login2.cjs +1 -1
  38. package/dist/C_Login2.js +1 -1
  39. package/dist/C_Markdown.css +37 -37
  40. package/dist/C_Markdown2.cjs +1 -1
  41. package/dist/C_Markdown2.js +1 -1
  42. package/dist/C_NotificationCenter2.cjs +1 -1
  43. package/dist/C_NotificationCenter2.js +1 -1
  44. package/dist/C_Progress2.cjs +1 -1
  45. package/dist/C_Progress2.js +1 -1
  46. package/dist/C_ResourceSchedule2.cjs +1 -1
  47. package/dist/C_ResourceSchedule2.js +1 -1
  48. package/dist/C_Select.css +1 -1
  49. package/dist/C_Select2.cjs +1 -1
  50. package/dist/C_Select2.js +1 -1
  51. package/dist/C_Signature.css +15 -15
  52. package/dist/C_Signature2.cjs +1 -1
  53. package/dist/C_Signature2.js +1 -1
  54. package/dist/C_SplitPane.css +69 -66
  55. package/dist/C_SplitPane2.cjs +1 -1
  56. package/dist/C_SplitPane2.js +1 -1
  57. package/dist/C_Table.base.css +55 -55
  58. package/dist/C_Table.css +54 -54
  59. package/dist/C_Transfer.css +25 -25
  60. package/dist/C_Transfer2.cjs +1 -1
  61. package/dist/C_Transfer2.js +1 -1
  62. package/dist/C_Upload2.cjs +1 -1
  63. package/dist/C_Upload2.js +1 -1
  64. package/dist/C_UserPicker.css +1 -1
  65. package/dist/OptionStatus.cjs +1 -1
  66. package/dist/OptionStatus.js +1 -1
  67. package/dist/actionIcon.cjs +1 -1
  68. package/dist/actionIcon.js +1 -1
  69. package/dist/constants.d.cts +2 -2
  70. package/dist/constants.d.ts +2 -2
  71. package/dist/constants2.d.cts +2 -2
  72. package/dist/constants2.d.ts +2 -2
  73. package/dist/constants3.d.cts +7 -7
  74. package/dist/constants3.d.ts +7 -7
  75. package/dist/constants4.d.cts +6 -5
  76. package/dist/constants4.d.ts +6 -5
  77. package/dist/data2.d.cts +4 -4
  78. package/dist/data2.d.ts +4 -4
  79. package/dist/editors.d.cts +7 -7
  80. package/dist/editors.d.ts +7 -7
  81. package/dist/graphics.d.cts +1 -1
  82. package/dist/graphics.d.ts +1 -1
  83. package/dist/index10.vue.d.cts +2 -2
  84. package/dist/index10.vue.d.ts +1 -1
  85. package/dist/index11.vue.d.cts +1 -1
  86. package/dist/index11.vue.d.ts +2 -2
  87. package/dist/index12.vue.d.cts +2 -2
  88. package/dist/index12.vue.d.ts +2 -2
  89. package/dist/index13.vue.d.cts +2 -2
  90. package/dist/index13.vue.d.ts +1 -1
  91. package/dist/index14.vue.d.cts +1 -1
  92. package/dist/index14.vue.d.ts +2 -2
  93. package/dist/index15.vue.d.cts +2 -2
  94. package/dist/index17.vue.d.ts +3 -3
  95. package/dist/index18.vue.d.cts +3 -3
  96. package/dist/index20.vue.d.ts +4 -4
  97. package/dist/index21.vue.d.cts +4 -4
  98. package/dist/index21.vue.d.ts +7 -7
  99. package/dist/index22.vue.d.cts +7 -7
  100. package/dist/index24.vue.d.ts +2 -2
  101. package/dist/index25.vue.d.cts +2 -2
  102. package/dist/index27.vue.d.ts +4 -4
  103. package/dist/index28.vue.d.cts +4 -4
  104. package/dist/index29.vue.d.cts +2 -2
  105. package/dist/index29.vue.d.ts +2 -2
  106. package/dist/index3.vue.d.cts +4 -4
  107. package/dist/index3.vue.d.ts +4 -4
  108. package/dist/index35.vue.d.cts +4 -4
  109. package/dist/index35.vue.d.ts +4 -4
  110. package/dist/index39.vue.d.cts +1 -1
  111. package/dist/index39.vue.d.ts +1 -1
  112. package/dist/index41.vue.d.cts +1 -1
  113. package/dist/index41.vue.d.ts +1 -1
  114. package/dist/index42.vue.d.cts +2 -2
  115. package/dist/index42.vue.d.ts +2 -2
  116. package/dist/index43.vue.d.cts +2 -2
  117. package/dist/index43.vue.d.ts +2 -2
  118. package/dist/index5.vue.d.cts +1 -1
  119. package/dist/index5.vue.d.ts +1 -1
  120. package/dist/index6.vue.d.cts +4 -4
  121. package/dist/index6.vue.d.ts +4 -4
  122. package/dist/index9.vue.d.ts +2 -2
  123. package/dist/mapUtils.d.cts +1 -1
  124. package/dist/mapUtils.d.ts +1 -1
  125. package/dist/source.cjs +1 -1
  126. package/dist/source.js +1 -1
  127. package/dist/style.css +396 -380
  128. package/dist/types.d.cts +4 -0
  129. package/dist/types.d.ts +4 -0
  130. package/dist/useCalendarEvents.d.cts +1 -1
  131. package/dist/useCalendarEvents.d.ts +1 -1
  132. package/dist/useCollapsePanel.d.cts +3 -3
  133. package/dist/useCollapsePanel.d.ts +3 -3
  134. package/dist/useCropperCore.d.cts +2 -2
  135. package/dist/useCropperCore.d.ts +2 -2
  136. package/dist/useEdgeInteraction.d.cts +1 -1
  137. package/dist/useEdgeInteraction.d.ts +1 -1
  138. package/dist/useFormulaEvaluator.cjs +1 -1
  139. package/dist/useFormulaEvaluator.js +1 -1
  140. package/dist/useFullscreen.d.cts +1 -1
  141. package/dist/useFullscreen.d.ts +1 -1
  142. package/dist/useInfiniteScroll.d.cts +2 -2
  143. package/dist/useInfiniteScroll.d.ts +2 -2
  144. package/dist/useQRCode.d.cts +5 -5
  145. package/dist/useQRCode.d.ts +5 -5
  146. package/dist/useSignatureHistory.d.cts +4 -3
  147. package/dist/useSignatureHistory.d.ts +4 -3
  148. package/dist/useSplitResize.d.cts +3 -3
  149. package/dist/useSplitResize.d.ts +3 -3
  150. package/dist/useWorkflowValidation.d.cts +2 -2
  151. package/dist/useWorkflowValidation.d.ts +2 -2
  152. package/dist/verification.d.cts +5 -5
  153. package/dist/verification.d.ts +5 -5
  154. package/docs/guides/resource-schedule.md +1 -0
  155. package/docs/guides/split-pane.en.md +3 -1
  156. package/docs/guides/split-pane.md +2 -1
  157. package/docs/guides/usage.en.md +15 -4
  158. package/docs/guides/usage.md +13 -4
  159. package/package.json +1 -1
@@ -95,8 +95,8 @@ interface SignatureEmits {
95
95
  //#region src/components/C_Signature/index.vue.d.ts
96
96
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
97
97
  error: (error: Error) => any;
98
- change: (data: SignatureStroke[]) => any;
99
98
  clear: () => any;
99
+ change: (data: SignatureStroke[]) => any;
100
100
  "start-draw": () => any;
101
101
  drawing: (point: SignaturePoint) => any;
102
102
  "end-draw": (stroke: SignatureStroke) => any;
@@ -104,17 +104,17 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
104
104
  redo: () => any;
105
105
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
106
106
  onError?: ((error: Error) => any) | undefined;
107
- onChange?: ((data: SignatureStroke[]) => any) | undefined;
108
107
  onClear?: (() => any) | undefined;
108
+ onChange?: ((data: SignatureStroke[]) => any) | undefined;
109
109
  "onStart-draw"?: (() => any) | undefined;
110
110
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
111
111
  "onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
112
112
  onUndo?: (() => any) | undefined;
113
113
  onRedo?: (() => any) | undefined;
114
114
  }>, {
115
+ width: number | string;
115
116
  disabled: boolean;
116
117
  readonly: boolean;
117
- width: number | string;
118
118
  height: number | string;
119
119
  showToolbar: boolean;
120
120
  maxHistory: number;
@@ -142,6 +142,7 @@ type StrokeView = Omit<SignatureStroke, 'points'> & {
142
142
  */
143
143
  declare function useSignatureCanvas(options: UseSignatureCanvasOptions): {
144
144
  isDrawing: Readonly<Ref<boolean, boolean>>;
145
+ cancelDrawing: () => boolean;
145
146
  initCanvas: () => void;
146
147
  bindEvents: () => void;
147
148
  unbindEvents: () => void;
@@ -95,8 +95,8 @@ interface SignatureEmits {
95
95
  //#region src/components/C_Signature/index.vue.d.ts
96
96
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
97
97
  error: (error: Error) => any;
98
- change: (data: SignatureStroke[]) => any;
99
98
  clear: () => any;
99
+ change: (data: SignatureStroke[]) => any;
100
100
  "start-draw": () => any;
101
101
  drawing: (point: SignaturePoint) => any;
102
102
  "end-draw": (stroke: SignatureStroke) => any;
@@ -104,17 +104,17 @@ declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose,
104
104
  redo: () => any;
105
105
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
106
106
  onError?: ((error: Error) => any) | undefined;
107
- onChange?: ((data: SignatureStroke[]) => any) | undefined;
108
107
  onClear?: (() => any) | undefined;
108
+ onChange?: ((data: SignatureStroke[]) => any) | undefined;
109
109
  "onStart-draw"?: (() => any) | undefined;
110
110
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
111
111
  "onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
112
112
  onUndo?: (() => any) | undefined;
113
113
  onRedo?: (() => any) | undefined;
114
114
  }>, {
115
+ width: number | string;
115
116
  disabled: boolean;
116
117
  readonly: boolean;
117
- width: number | string;
118
118
  height: number | string;
119
119
  showToolbar: boolean;
120
120
  maxHistory: number;
@@ -142,6 +142,7 @@ type StrokeView = Omit<SignatureStroke, 'points'> & {
142
142
  */
143
143
  declare function useSignatureCanvas(options: UseSignatureCanvasOptions): {
144
144
  isDrawing: Readonly<Ref<boolean, boolean>>;
145
+ cancelDrawing: () => boolean;
145
146
  initCanvas: () => void;
146
147
  bindEvents: () => void;
147
148
  unbindEvents: () => void;
@@ -55,15 +55,15 @@ type __VLS_Slots = {
55
55
  second(props: PanelInfo): unknown;
56
56
  };
57
57
  declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
58
- expand: (target: CollapseTarget) => any;
59
58
  resize: (firstSize: number, secondSize: number) => any;
59
+ expand: (target: CollapseTarget) => any;
60
60
  "update:size": (size: number) => any;
61
61
  collapse: (target: CollapseTarget) => any;
62
62
  "drag-start": (size: number) => any;
63
63
  "drag-end": (size: number) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
- onExpand?: ((target: CollapseTarget) => any) | undefined;
66
65
  onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
66
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
67
67
  "onUpdate:size"?: ((size: number) => any) | undefined;
68
68
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
69
69
  "onDrag-start"?: ((size: number) => any) | undefined;
@@ -122,7 +122,7 @@ declare function useSplitResize(options: UseSplitResizeOptions): {
122
122
  max: number;
123
123
  }>;
124
124
  gutterSize: vue.ComputedRef<number>;
125
- handleMouseDown: (event: MouseEvent | TouchEvent | PointerEvent) => void;
125
+ handlePointerDown: (event: PointerEvent) => void;
126
126
  handleDoubleClick: () => void;
127
127
  handleKeyDown: (event: KeyboardEvent) => void;
128
128
  collapse: (target?: CollapseTarget) => void;
@@ -55,15 +55,15 @@ type __VLS_Slots = {
55
55
  second(props: PanelInfo): unknown;
56
56
  };
57
57
  declare const __VLS_base: vue.DefineComponent<SplitPaneProps, SplitPaneExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
58
- expand: (target: CollapseTarget) => any;
59
58
  resize: (firstSize: number, secondSize: number) => any;
59
+ expand: (target: CollapseTarget) => any;
60
60
  "update:size": (size: number) => any;
61
61
  collapse: (target: CollapseTarget) => any;
62
62
  "drag-start": (size: number) => any;
63
63
  "drag-end": (size: number) => any;
64
64
  }, string, vue.PublicProps, Readonly<SplitPaneProps> & Readonly<{
65
- onExpand?: ((target: CollapseTarget) => any) | undefined;
66
65
  onResize?: ((firstSize: number, secondSize: number) => any) | undefined;
66
+ onExpand?: ((target: CollapseTarget) => any) | undefined;
67
67
  "onUpdate:size"?: ((size: number) => any) | undefined;
68
68
  onCollapse?: ((target: CollapseTarget) => any) | undefined;
69
69
  "onDrag-start"?: ((size: number) => any) | undefined;
@@ -122,7 +122,7 @@ declare function useSplitResize(options: UseSplitResizeOptions): {
122
122
  max: number;
123
123
  }>;
124
124
  gutterSize: vue.ComputedRef<number>;
125
- handleMouseDown: (event: MouseEvent | TouchEvent | PointerEvent) => void;
125
+ handlePointerDown: (event: PointerEvent) => void;
126
126
  handleDoubleClick: () => void;
127
127
  handleKeyDown: (event: KeyboardEvent) => void;
128
128
  collapse: (target?: CollapseTarget) => void;
@@ -313,15 +313,15 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
313
313
  }>;
314
314
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
315
315
  "node-click": (node: WorkflowNode<NodeType>) => any;
316
- change: (value: WorkflowData) => any;
317
316
  "update:modelValue": (value: WorkflowData) => any;
317
+ change: (value: WorkflowData) => any;
318
318
  save: (data: WorkflowData) => any;
319
319
  "validate-error": (errors: ValidationError[]) => any;
320
320
  "edge-click": (edge: WorkflowEdge) => any;
321
321
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
322
322
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
323
- onChange?: ((value: WorkflowData) => any) | undefined;
324
323
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
324
+ onChange?: ((value: WorkflowData) => any) | undefined;
325
325
  onSave?: ((data: WorkflowData) => any) | undefined;
326
326
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
327
327
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
@@ -313,15 +313,15 @@ declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
313
313
  }>;
314
314
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
315
315
  "node-click": (node: WorkflowNode<NodeType>) => any;
316
- change: (value: WorkflowData) => any;
317
316
  "update:modelValue": (value: WorkflowData) => any;
317
+ change: (value: WorkflowData) => any;
318
318
  save: (data: WorkflowData) => any;
319
319
  "validate-error": (errors: ValidationError[]) => any;
320
320
  "edge-click": (edge: WorkflowEdge) => any;
321
321
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
322
322
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
323
- onChange?: ((value: WorkflowData) => any) | undefined;
324
323
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
324
+ onChange?: ((value: WorkflowData) => any) | undefined;
325
325
  onSave?: ((data: WorkflowData) => any) | undefined;
326
326
  "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
327
327
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
@@ -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
+ reset: () => any;
79
80
  success: (data: CaptchaSuccessPayload) => any;
81
+ change: (valid: boolean) => any;
80
82
  fail: (error: string) => any;
81
83
  "verify-error": (error: unknown) => any;
82
84
  "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
+ onReset?: (() => any) | undefined;
87
88
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
89
+ onChange?: ((valid: boolean) => any) | undefined;
88
90
  onFail?: ((error: string) => any) | undefined;
89
91
  "onVerify-error"?: ((error: unknown) => any) | undefined;
90
92
  "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>;
@@ -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
+ reset: () => any;
79
80
  success: (data: CaptchaSuccessPayload) => any;
81
+ change: (valid: boolean) => any;
80
82
  fail: (error: string) => any;
81
83
  "verify-error": (error: unknown) => any;
82
84
  "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
+ onReset?: (() => any) | undefined;
87
88
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
89
+ onChange?: ((valid: boolean) => any) | undefined;
88
90
  onFail?: ((error: string) => any) | undefined;
89
91
  "onVerify-error"?: ((error: unknown) => any) | undefined;
90
92
  "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>;
@@ -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` 可接入页面的查看、编辑或改期操作,这些插槽收到原始业务记录。键盘焦点沿标记移动,也可直接激活预约。
@@ -86,7 +86,9 @@ A fine divider line carries a centered capsule grip (80px long, 16px thick by de
86
86
 
87
87
  The capsule itself accepts dragging without increasing the layout space reserved by `gutterSize`. Touch input gets a 24px grip thickness and permanently visible 28px buttons. Collapsed controls dock inside the container to avoid clipping. Inline SVG arrows require no remote icon request, and reduced-motion preferences disable transitions.
88
88
 
89
- The [W3C APG Window Splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) informs keyboard behavior and separator semantics. Use Left/Right for left/right layouts and Up/Down for top/bottom layouts. Home/End move to the current boundaries. Enter collapses the first pane or restores an already collapsed pane. Double-click toggles the first pane.
89
+ The [W3C APG Window Splitter pattern](https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/) informs keyboard behavior and separator semantics. Use Left/Right for left/right layouts and Up/Down for top/bottom layouts. Home/End move to the current boundaries. Enter or double-click collapses the first pane or restores either collapsed pane. A single click focuses the separator. A pointer drag starts after 3px of movement.
90
+
91
+ For workspaces that keep both panels visible, use `collapsible="false"`. The `gutterSize` sets the separator's layout width or height. Reserve space for drag travel in addition to the panel minimums and the gutter.
90
92
 
91
93
  Pointer Events support mouse, pen and touch. Pointer cancellation, window blur, document hiding, disablement, direction changes and unmounting all dispose listeners and restore the previous body cursor / text selection styles. Nested splitters do not overwrite `document.onmousemove`.
92
94
 
@@ -105,7 +105,8 @@
105
105
  - 拖动支持鼠标、触控笔和触屏 Pointer Events,不接管宿主的 `document.onmousemove`。
106
106
  - 拖动结束、pointercancel、窗口失焦、页面隐藏、动态禁用、方向切换和卸载都会移除监听、恢复此前的光标与文本选择样式。
107
107
  - 左右布局使用 Left/Right,上下布局使用 Up/Down;Shift 将 `step` 放大 10 倍,Home/End 到当前可用边界。
108
- - Enter 折叠首面板,已折叠时还原;双击手柄折叠/展开首面板。按钮有明确的展开状态、目标面板、可见焦点和触屏常驻入口。
108
+ - Enter 或双击手柄折叠首面板,已折叠任一面板时恢复原尺寸。单击手柄只聚焦,拖动越过 3px 才调整尺寸。显式折叠按钮仍可单独控制各面板。
109
+ - 如果业务需要同时保留两张表,设置 `collapsible="false"`,并通过 `gutterSize` 分配手柄宽度或高度。父容器除了两侧最小尺寸和分隔条,还需预留拖动行程。
109
110
  - `role="separator"` 提供 orientation、当前百分比、真实上下限和唯一的受控面板 ID。折叠内容不能通过 Tab 获取焦点。
110
111
 
111
112
  `resize(first, second)` 表示实际显示比例变化,`update:size(size)` 用于受控状态更新;`drag-start/drag-end` 可记录拖动会话。`collapse/expand` 表示实际折叠状态变化。暴露 `setSize/resetSize/collapse/expand/toggle/getPanelInfo`,应用无需查找或操作内部 DOM。
@@ -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 and Promise callbacks provide labels, icons, and mutual exclusion without a loading ref for every button:
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: [{ key: 'export', label: 'Export', onClick: exportUsers }],
545
+ dropdown: [
546
+ { key: 'delete', label: 'Delete selection', onClick: deleteUsers },
547
+ ],
545
548
  },
546
549
  ])
547
550
  ```
548
551
 
549
- Duplicate keys in one ActionBar share a task lock. Replacing action objects or moving them between left/right groups preserves that key's busy state. Unkeyed actions use their group and position, so dynamic lists should supply explicit keys. Dropdown items follow the same disabled/loading guards and async mutual exclusion as regular buttons. `autoLoading: false` only hides the automatic spinner; duplicate execution remains blocked.
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
- `action-click` and `dropdown-click` are notifications and do not await listeners' promises; put async commands in the action's `onClick`. Failures emit `action-error(error, action, item?)` and continue to Vue's `errorHandler` or error-capture boundary. `buttonProps.disabled/loading` merge with action state and cannot override internal busy protection. `buttonProps.onClick` remains a native click observer rather than replacing the executor. Table row actions reuse lightweight task locks without mounting a complete action bar per row.
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`.
@@ -650,22 +650,25 @@ const filters: SearchFormItem[] = [
650
650
 
651
651
  ### 动作配置与异步执行
652
652
 
653
- 保留稳定语义 key 和 Promise 回调即可获得文案、图标与互斥执行,不必为每个按钮维护 loading:
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: 'export', label: '导出', onClick: exportUsers }],
662
+ dropdown: [{ key: 'delete', label: '删除选中项', onClick: deleteUsers }],
662
663
  },
663
664
  ])
664
665
  ```
665
666
 
666
- 同一 ActionBar 中重复 key 共享执行锁;重建动作对象、切换左右分组都保留该 key 的 busy 状态。未提供 key 时按分组和位置识别,因此动态列表应显式提供 key。更多菜单与普通按钮遵守相同的 disabled、loading 和异步互斥规则;`autoLoading: false` 只关闭自动 spinner,执行期间继续阻止重复触发。
667
+ 普通动作和下拉子项的 `key` 精确匹配 `save`、`submit`、`confirm`、`delete` 或 `remove` 时,默认启用 300 ms 冷却。首次激活立即执行,窗口内的重复操作直接忽略。其他动作支持连续操作。可在动作或下拉子项上用 `cooldownMs` 指定正的有限毫秒值。设置 `0` 或无效值时,本次激活跳过冷却计时。失败后可立即重试。
667
668
 
668
- `action-click`/`dropdown-click` 是通知,不等待事件监听器的 Promise;异步命令应放在动作 `onClick`。失败发出 `action-error(error, action, item?)`,原始错误继续交给 Vue `errorHandler`/错误捕获边界。`buttonProps.disabled/loading` 与动作状态合并,不能关闭内部 busy 保护;`buttonProps.onClick` 保留为原生点击观察者,不覆盖动作执行器。表格行操作复用轻量执行锁,无需为每行再包一层完整操作栏。
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`。
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.41.2",
6
+ "version": "0.42.1",
7
7
  "description": "基于 Naive UI 的 Vue 3 组件库",
8
8
  "packageManager": "bun@1.4.2",
9
9
  "engines": {