@robot-admin/naive-ui-components 0.41.0 → 0.41.2
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 +15 -0
- package/README.md +44 -5
- package/README_EN.md +44 -5
- package/dist/C_ActionBar.css +54 -54
- 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_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_Draggable.css +53 -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 +241 -241
- package/dist/C_Form.css +241 -241
- 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 +74 -74
- 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_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_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_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_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_Table.base.css +428 -428
- 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_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/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.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 +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +8 -1
- package/dist/constants2.d.ts +8 -1
- package/dist/constants3.d.cts +7 -7
- package/dist/constants3.d.ts +7 -7
- package/dist/constants4.d.cts +5 -5
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.d.cts +1 -1
- package/dist/data2.d.cts +6 -6
- package/dist/data2.d.ts +6 -6
- package/dist/editors.d.cts +14 -12
- package/dist/editors.d.ts +14 -12
- 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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +1 -1
- package/dist/index15.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +18 -11
- package/dist/index18.vue.d.cts +18 -11
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- 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/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/index29.vue.d.cts +2 -2
- package/dist/index29.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +14 -16
- package/dist/index3.vue.d.ts +14 -16
- package/dist/index33.vue.d.cts +2 -2
- package/dist/index33.vue.d.ts +2 -2
- 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/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/index41.vue.d.cts +1 -1
- package/dist/index41.vue.d.ts +1 -1
- package/dist/index42.vue.d.cts +2 -2
- package/dist/index42.vue.d.ts +2 -2
- package/dist/index45.vue.d.cts +2 -2
- package/dist/index45.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +5 -17
- package/dist/index5.vue.d.ts +5 -17
- package/dist/index6.vue.d.cts +2 -2
- package/dist/index6.vue.d.ts +2 -2
- package/dist/index7.vue.d.cts +18 -12
- package/dist/index7.vue.d.ts +18 -12
- 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 +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/persistence.cjs +1 -0
- package/dist/persistence.js +1 -0
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- 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 +1334 -1334
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -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 +8 -7
- package/dist/useCollapsePanel.d.ts +8 -7
- package/dist/useCropperCore.d.cts +9 -20
- package/dist/useCropperCore.d.ts +9 -20
- package/dist/useDynamicFormState.d.cts +1 -1
- package/dist/useDynamicFormState.d.ts +1 -1
- package/dist/useEdgeInteraction.d.cts +2 -11
- package/dist/useEdgeInteraction.d.ts +2 -11
- 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/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +5 -18
- package/dist/useQRCode.d.ts +5 -18
- package/dist/useSignatureHistory.d.cts +2 -2
- package/dist/useSignatureHistory.d.ts +2 -2
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/useTimeSelection.d.cts +4 -3
- package/dist/useTimeSelection.d.ts +4 -3
- package/dist/useWorkflowValidation.d.cts +113 -107
- package/dist/useWorkflowValidation.d.ts +113 -107
- package/dist/verification.d.cts +6 -6
- package/dist/verification.d.ts +6 -6
- 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/runtime-performance.md +2 -0
- package/docs/guides/scene-components.md +1 -1
- package/package.json +1 -1
package/dist/constants4.d.cts
CHANGED
|
@@ -8,18 +8,18 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
area?: (props: typeof __VLS_11) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
11
|
-
change: (fileList: UploadFileItem[]) => any;
|
|
12
|
-
progress: (file: UploadFileItem, percent: number) => any;
|
|
13
11
|
success: (file: UploadFileItem, response: unknown) => any;
|
|
14
12
|
error: (file: UploadFileItem, error: Error) => any;
|
|
13
|
+
change: (fileList: UploadFileItem[]) => any;
|
|
14
|
+
progress: (file: UploadFileItem, percent: number) => any;
|
|
15
15
|
remove: (file: UploadFileItem) => any;
|
|
16
16
|
finish: (fileList: UploadFileItem[]) => any;
|
|
17
17
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
18
18
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
19
|
-
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
20
|
-
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
21
19
|
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
22
20
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
21
|
+
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
22
|
+
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
23
23
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
24
24
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
25
25
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
@@ -27,13 +27,13 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
|
|
|
27
27
|
data: Record<string, unknown>;
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
multiple: boolean;
|
|
30
|
+
draggable: boolean;
|
|
30
31
|
action: string;
|
|
31
32
|
headers: Record<string, string>;
|
|
32
33
|
directory: boolean;
|
|
33
34
|
accept: string;
|
|
34
35
|
maxSize: number;
|
|
35
36
|
maxCount: number;
|
|
36
|
-
draggable: boolean;
|
|
37
37
|
pasteable: boolean;
|
|
38
38
|
chunked: boolean;
|
|
39
39
|
chunkSize: number;
|
package/dist/constants4.d.ts
CHANGED
|
@@ -9,18 +9,18 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
area?: (props: typeof __VLS_11) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
change: (fileList: UploadFileItem[]) => any;
|
|
13
|
-
progress: (file: UploadFileItem, percent: number) => any;
|
|
14
12
|
success: (file: UploadFileItem, response: unknown) => any;
|
|
15
13
|
error: (file: UploadFileItem, error: Error) => any;
|
|
14
|
+
change: (fileList: UploadFileItem[]) => any;
|
|
15
|
+
progress: (file: UploadFileItem, percent: number) => any;
|
|
16
16
|
remove: (file: UploadFileItem) => any;
|
|
17
17
|
finish: (fileList: UploadFileItem[]) => any;
|
|
18
18
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
19
19
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
20
|
-
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
21
|
-
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
22
20
|
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
23
21
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
22
|
+
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
23
|
+
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
24
24
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
25
25
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
26
26
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
@@ -28,13 +28,13 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
|
|
|
28
28
|
data: Record<string, unknown>;
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
multiple: boolean;
|
|
31
|
+
draggable: boolean;
|
|
31
32
|
action: string;
|
|
32
33
|
headers: Record<string, string>;
|
|
33
34
|
directory: boolean;
|
|
34
35
|
accept: string;
|
|
35
36
|
maxSize: number;
|
|
36
37
|
maxCount: number;
|
|
37
|
-
draggable: boolean;
|
|
38
38
|
pasteable: boolean;
|
|
39
39
|
chunked: boolean;
|
|
40
40
|
chunkSize: number;
|
package/dist/constants5.d.cts
CHANGED
|
@@ -263,8 +263,8 @@ type PlayerInstance = InstanceType<typeof xgplayer.default>;
|
|
|
263
263
|
//#region src/components/C_VideoPlayer/index.vue.d.ts
|
|
264
264
|
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
265
265
|
error: (error: Error) => any;
|
|
266
|
-
ended: () => any;
|
|
267
266
|
ready: () => any;
|
|
267
|
+
ended: () => any;
|
|
268
268
|
stateChange: (state: PlayerState) => any;
|
|
269
269
|
qualityChange: (quality: QualityLevel) => any;
|
|
270
270
|
rateChange: (rate: number) => any;
|
|
@@ -276,8 +276,8 @@ declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExp
|
|
|
276
276
|
timeUpdate: (currentTime: number, duration: number) => any;
|
|
277
277
|
}, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
|
|
278
278
|
onError?: ((error: Error) => any) | undefined;
|
|
279
|
-
onEnded?: (() => any) | undefined;
|
|
280
279
|
onReady?: (() => any) | undefined;
|
|
280
|
+
onEnded?: (() => any) | undefined;
|
|
281
281
|
onStateChange?: ((state: PlayerState) => any) | undefined;
|
|
282
282
|
onQualityChange?: ((quality: QualityLevel) => any) | undefined;
|
|
283
283
|
onRateChange?: ((rate: number) => any) | undefined;
|
package/dist/constants5.d.ts
CHANGED
|
@@ -263,8 +263,8 @@ type PlayerInstance = InstanceType<typeof xgplayer.default>;
|
|
|
263
263
|
//#region src/components/C_VideoPlayer/index.vue.d.ts
|
|
264
264
|
declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
265
265
|
error: (error: Error) => any;
|
|
266
|
-
ended: () => any;
|
|
267
266
|
ready: () => any;
|
|
267
|
+
ended: () => any;
|
|
268
268
|
stateChange: (state: PlayerState) => any;
|
|
269
269
|
qualityChange: (quality: QualityLevel) => any;
|
|
270
270
|
rateChange: (rate: number) => any;
|
|
@@ -276,8 +276,8 @@ declare const __VLS_export: vue.DefineComponent<VideoPlayerProps, VideoPlayerExp
|
|
|
276
276
|
timeUpdate: (currentTime: number, duration: number) => any;
|
|
277
277
|
}, string, vue.PublicProps, Readonly<VideoPlayerProps> & Readonly<{
|
|
278
278
|
onError?: ((error: Error) => any) | undefined;
|
|
279
|
-
onEnded?: (() => any) | undefined;
|
|
280
279
|
onReady?: (() => any) | undefined;
|
|
280
|
+
onEnded?: (() => any) | undefined;
|
|
281
281
|
onStateChange?: ((state: PlayerState) => any) | undefined;
|
|
282
282
|
onQualityChange?: ((quality: QualityLevel) => any) | undefined;
|
|
283
283
|
onRateChange?: ((rate: number) => any) | undefined;
|
package/dist/context.d.cts
CHANGED
|
@@ -1744,4 +1744,4 @@ declare const FORM_GLOBAL_CONFIG_KEY: InjectionKey<FormConfig>;
|
|
|
1744
1744
|
/** 表格默认配置与独立入口共享同一协议,不加载表格渲染代码。 */
|
|
1745
1745
|
declare const TABLE_GLOBAL_CONFIG_KEY: InjectionKey<TableGlobalConfig>;
|
|
1746
1746
|
//#endregion
|
|
1747
|
-
export {
|
|
1747
|
+
export { InlineTableAction as $, FormRecord as $t, RowDragConfig as A, LAYOUTS_WITH_OWN_CONTROLS as At, WatermarkConfig as B, CustomLayoutConfig as Bt, ToolbarConfig as C, CrossPageSelectionConfig as Ct, resolveConfig as D, ColumnStatus as Dt, createEditModeChecker as E, useCrossPageSelection as Et, DynamicRowsReturn as F, shouldShowActions as Ft, ChildSelectionState as G, FieldPath as Gt, usePrintWatermark as H, DynamicFormConfig as Ht, useDynamicRows as I, useFormGlobalConfig as It, DataRecord as J, FormErrorContext as Jt, ColumnWithKey as K, FieldPathValue as Kt, CaptureConfig as L, AsyncOptionsContext as Lt, UseRowDragReturn as M, ResolvedFormConfig as Mt, useRowDrag as N, mergeFormConfig as Nt, ExportConfig as O, FORM_DEFAULTS as Ot, DynamicRowsOptions as P, resolveFormConfig as Pt, GroupTableColumn as Q, FormOption as Qt, PrintConfig as R, CardLayoutConfig as Rt, TableConfig as S, TableMatchingExportContext as St, VirtualScrollConfig as T, UseCrossPageSelectionReturn as Tt, ApiFunction as U, DynamicFormController as Ut, printPresets as V, DynamicFieldConfig as Vt, BuiltInTableColumn as W, DynamicFormState as Wt, EditProps as X, FormMode as Xt, EditMode as Y, FormInstance as Yt, ExpandConfig$1 as Z, FormModel as Zt, ErrorConfig as _, RuleSpec$1 as _n, UseTableActionsOptions as _t, ColumnFormatter as a, InlineLayoutConfig as an, RowAction as at, SelectionConfig as b, UseTableExpandReturn as bt, TableGlobalConfig as c, LayoutType as cn, StrictTableColumn as ct, useTableGlobalConfig as d, StepsLayoutConfig as dn, TableInstance as dt, FormSlots as en, MaybeRefLike as et, BatchActionsConfig as f, SubmitEventPayload as fn, TableManagerApi as ft, EditConfig as g, PRESET_RULES as gn, TableRuntimeProps as gt, DisplayConfig as h, NAIVE_COMBOS as hn, TableRowKeyIssue as ht, TABLE_GLOBAL_CONFIG_KEY as i, GridLayoutConfig as in, RenderFunction as it, UseRowDragOptions as j, LayoutCallbacks as jt, exportTableData as k, FormConfig as kt, applyFormatter as l, MaybePromise as ln, TableColumn as lt, CrudBinding as m, FormValidationRule as mn, TableRowKey as mt, COMPONENT_LOCALE_KEY as n, FormSubmitContext as nn, PaginationConfig as nt, FormatterConfig as o, LabelPlacement as on, SelectOption as ot, ColumnDragConfig as p, TabsLayoutConfig as pn, TableProps as pt, CustomAction as q, FormActionSlotProps as qt, FORM_GLOBAL_CONFIG_KEY as r, FormTabActionsSlotProps as rn, ParentChildLinkMode as rt, FormatterType as s, LayoutConfig as sn, SimpleTableActions as st, COMPONENT_FEEDBACK_KEY as t, FormStepActionsSlotProps as tn, NormalTableColumn as tt, mergeGlobalConfig as u, OptionItem as un, TableEmits as ut, ExpandConfig as v, SPEC_RULES as vn, UseTableActionsReturn as vt, TreeConfig as w, UseCrossPageSelectionOptions as wt, SummaryConfig as x, TableExportScope as xt, ResolvedConfig as y, UseTableExpandOptions as yt, PrintWatermarkOptions as z, ComponentType as zt };
|
package/dist/data2.d.cts
CHANGED
|
@@ -66,25 +66,25 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
68
|
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
|
-
add: () => any;
|
|
70
69
|
"update:modelValue": (value: TabsValue) => any;
|
|
71
70
|
close: (value: TabsValue) => any;
|
|
71
|
+
add: () => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
73
|
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
74
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
76
75
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
76
|
+
onAdd?: (() => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
items: readonly TabsItem[];
|
|
79
78
|
type: TabsType;
|
|
80
|
-
size: TabsSize;
|
|
81
79
|
modelValue: TabsValue | null;
|
|
82
|
-
|
|
80
|
+
size: TabsSize;
|
|
83
81
|
placement: TabsPlacement;
|
|
84
82
|
displayDirective: TabsDisplayDirective;
|
|
85
83
|
animated: boolean;
|
|
86
|
-
|
|
84
|
+
defaultValue: TabsValue | null;
|
|
85
|
+
items: readonly TabsItem[];
|
|
87
86
|
addable: boolean;
|
|
87
|
+
closable: boolean;
|
|
88
88
|
justifyContent: TabsJustifyContent;
|
|
89
89
|
tabsOnly: boolean;
|
|
90
90
|
paneClass: string;
|
package/dist/data2.d.ts
CHANGED
|
@@ -66,25 +66,25 @@ declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
68
|
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
|
-
add: () => any;
|
|
70
69
|
"update:modelValue": (value: TabsValue) => any;
|
|
71
70
|
close: (value: TabsValue) => any;
|
|
71
|
+
add: () => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
73
|
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
|
-
onAdd?: (() => any) | undefined;
|
|
75
74
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
76
75
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
76
|
+
onAdd?: (() => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
items: readonly TabsItem[];
|
|
79
78
|
type: TabsType;
|
|
80
|
-
size: TabsSize;
|
|
81
79
|
modelValue: TabsValue | null;
|
|
82
|
-
|
|
80
|
+
size: TabsSize;
|
|
83
81
|
placement: TabsPlacement;
|
|
84
82
|
displayDirective: TabsDisplayDirective;
|
|
85
83
|
animated: boolean;
|
|
86
|
-
|
|
84
|
+
defaultValue: TabsValue | null;
|
|
85
|
+
items: readonly TabsItem[];
|
|
87
86
|
addable: boolean;
|
|
87
|
+
closable: boolean;
|
|
88
88
|
justifyContent: TabsJustifyContent;
|
|
89
89
|
tabsOnly: boolean;
|
|
90
90
|
paneClass: string;
|
package/dist/editors.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.cjs";
|
|
|
2
2
|
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.cjs";
|
|
3
3
|
import { i as OptionValue, r as OptionSource } from "./optionSource.cjs";
|
|
4
4
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.cjs";
|
|
5
|
-
import { A as RowDragConfig, C as ToolbarConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig,
|
|
5
|
+
import { A as RowDragConfig, C as ToolbarConfig, Ct as CrossPageSelectionConfig, F as DynamicRowsReturn, J as DataRecord, O as ExportConfig, P as DynamicRowsOptions, S as TableConfig, T as VirtualScrollConfig, Y as EditMode, Z as ExpandConfig, _ as ErrorConfig, _t as UseTableActionsOptions, b as SelectionConfig, bt as UseTableExpandReturn, ct as StrictTableColumn, dt as TableInstance, f as BatchActionsConfig, g as EditConfig, gt as TableRuntimeProps, h as DisplayConfig, ht as TableRowKeyIssue, lt as TableColumn, mt as TableRowKey, nt as PaginationConfig, o as FormatterConfig, p as ColumnDragConfig, rt as ParentChildLinkMode, st as SimpleTableActions, ut as TableEmits, v as ExpandConfig$1, vt as UseTableActionsReturn, w as TreeConfig, x as SummaryConfig, y as ResolvedConfig, yt as UseTableExpandOptions } from "./context.cjs";
|
|
6
6
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types9.cjs";
|
|
7
7
|
import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types11.cjs";
|
|
8
8
|
import * as vue from "vue";
|
|
@@ -229,9 +229,9 @@ interface TableManagerConfig {
|
|
|
229
229
|
onEditError?: (error: unknown) => void;
|
|
230
230
|
expandable: boolean;
|
|
231
231
|
defaultExpandedKeys?: DataTableRowKey[];
|
|
232
|
-
onLoadExpandData?:
|
|
232
|
+
onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
|
|
233
233
|
onExpandError?: (error: unknown, row: DataRecord) => void;
|
|
234
|
-
renderExpandContent?:
|
|
234
|
+
renderExpandContent?: ExpandConfig['renderContent'];
|
|
235
235
|
rowExpandable?: (row: DataRecord) => boolean;
|
|
236
236
|
enableSelection: boolean;
|
|
237
237
|
defaultCheckedKeys?: DataTableRowKey[];
|
|
@@ -248,11 +248,13 @@ interface TableManagerConfig {
|
|
|
248
248
|
/**
|
|
249
249
|
* 表格管理器参数接口
|
|
250
250
|
*/
|
|
251
|
+
/** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
|
|
252
|
+
type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
|
|
251
253
|
interface TableManagerParams {
|
|
252
254
|
config: MaybeRefOrGetter<TableManagerConfig>;
|
|
253
255
|
data: () => DataRecord[];
|
|
254
256
|
rowKey: (row: DataRecord) => DataTableRowKey;
|
|
255
|
-
emit: (...
|
|
257
|
+
emit: (...event: InternalTableEvent) => unknown;
|
|
256
258
|
/** 列配置(用于编辑校验) */
|
|
257
259
|
columns?: () => TableColumn[];
|
|
258
260
|
/** UI 壳提供加载内容,状态引擎保持可独立调用。 */
|
|
@@ -267,7 +269,7 @@ interface EventHandlers {
|
|
|
267
269
|
onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
|
|
268
270
|
onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
|
|
269
271
|
onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
|
|
270
|
-
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections
|
|
272
|
+
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
|
|
271
273
|
onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
|
|
272
274
|
onRowChange: (data: DataRecord[]) => void;
|
|
273
275
|
onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
|
|
@@ -557,20 +559,20 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
557
559
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
558
560
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
559
561
|
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
560
|
-
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
561
562
|
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
563
|
+
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
562
564
|
onRefresh?: (() => any) | undefined;
|
|
563
|
-
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
564
565
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
565
566
|
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
566
567
|
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
567
568
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
568
569
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
569
570
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
571
|
+
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
570
572
|
}> & (typeof globalThis extends {
|
|
571
573
|
__VLS_PROPS_FALLBACK: infer P;
|
|
572
574
|
} ? P : {});
|
|
573
|
-
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "
|
|
575
|
+
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
574
576
|
expandedKeys: vue.Ref<TreeKey[]>;
|
|
575
577
|
selectedKeys: vue.Ref<TreeKey[]>;
|
|
576
578
|
checkedKeys: vue.Ref<TreeKey[]>;
|
|
@@ -581,7 +583,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
581
583
|
}>) => void;
|
|
582
584
|
attrs: any;
|
|
583
585
|
slots: TreeSlots<T>;
|
|
584
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "
|
|
586
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
|
|
585
587
|
}>) => vue.VNode & {
|
|
586
588
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
587
589
|
};
|
|
@@ -645,7 +647,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
|
|
|
645
647
|
handleDrop: (info: DropInfo<T>) => void;
|
|
646
648
|
handleAdd: () => void;
|
|
647
649
|
handleRefresh: () => void;
|
|
648
|
-
expose: Omit<TreeExpose<T>, "expandedKeys" | "
|
|
650
|
+
expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
649
651
|
expandedKeys: Ref<TreeKey[]>;
|
|
650
652
|
selectedKeys: Ref<TreeKey[]>;
|
|
651
653
|
checkedKeys: Ref<TreeKey[]>;
|
|
@@ -728,7 +730,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
728
730
|
validateRowKeys?: boolean;
|
|
729
731
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
730
732
|
actions?: SimpleTableActions<T> | undefined;
|
|
731
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
733
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
732
734
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
733
735
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
734
736
|
toolbar?: ToolbarConfig;
|
|
@@ -776,7 +778,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
776
778
|
validateRowKeys?: boolean;
|
|
777
779
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
778
780
|
actions?: SimpleTableActions<T> | undefined;
|
|
779
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
781
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
780
782
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
781
783
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
782
784
|
toolbar?: ToolbarConfig;
|
package/dist/editors.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { n as ComponentLocale, t as ComponentFeedback } from "./contracts.js";
|
|
|
2
2
|
import { n as ResolvedComponentDensity, t as ComponentDensity } from "./density.js";
|
|
3
3
|
import { i as OptionValue, r as OptionSource } from "./optionSource.js";
|
|
4
4
|
import { n as AutoCompleteProps$1, t as AutoCompleteOptionItem } from "./types4.js";
|
|
5
|
-
import { A as ExportConfig, C as SummaryConfig, D as VirtualScrollConfig, E as TreeConfig, I as DynamicRowsOptions, L as DynamicRowsReturn, M as RowDragConfig, S as SelectionConfig, T as ToolbarConfig, X as DataRecord, Z as EditMode, _ as DisplayConfig, _t as
|
|
5
|
+
import { $ as ExpandConfig, A as ExportConfig, C as SummaryConfig, D as VirtualScrollConfig, E as TreeConfig, I as DynamicRowsOptions, L as DynamicRowsReturn, M as RowDragConfig, S as SelectionConfig, St as UseTableExpandReturn, T as ToolbarConfig, Tt as CrossPageSelectionConfig, X as DataRecord, Z as EditMode, _ as DisplayConfig, _t as TableRowKeyIssue, at as ParentChildLinkMode, b as ExpandConfig$1, bt as UseTableActionsReturn, c as FormatterConfig, dt as TableColumn, ft as TableEmits, gt as TableRowKey, h as ColumnDragConfig, it as PaginationConfig, lt as SimpleTableActions, m as BatchActionsConfig, pt as TableInstance, ut as StrictTableColumn, v as EditConfig, vt as TableRuntimeProps, w as TableConfig, x as ResolvedConfig, xt as UseTableExpandOptions, y as ErrorConfig, yt as UseTableActionsOptions } from "./component-config.js";
|
|
6
6
|
import { a as SelectProps$1, o as SelectSelection, r as SelectOptionItem, s as SelectValue, t as SelectModelValue } from "./types8.js";
|
|
7
7
|
import { E as TreeRenderContext, O as TreeSlots, T as TreeProps$1, _ as TreeExpose, f as DropInfo, g as TreeEmits, k as TreeUpdateMeta, p as IconConfig, u as ActionConfig, v as TreeKey, x as TreeNodeData, y as TreeMode } from "./types10.js";
|
|
8
8
|
import * as vue from "vue";
|
|
@@ -219,9 +219,9 @@ interface TableManagerConfig {
|
|
|
219
219
|
onEditError?: (error: unknown) => void;
|
|
220
220
|
expandable: boolean;
|
|
221
221
|
defaultExpandedKeys?: DataTableRowKey[];
|
|
222
|
-
onLoadExpandData?:
|
|
222
|
+
onLoadExpandData?: ExpandConfig<DataRecord, unknown>['onLoadData'];
|
|
223
223
|
onExpandError?: (error: unknown, row: DataRecord) => void;
|
|
224
|
-
renderExpandContent?:
|
|
224
|
+
renderExpandContent?: ExpandConfig['renderContent'];
|
|
225
225
|
rowExpandable?: (row: DataRecord) => boolean;
|
|
226
226
|
enableSelection: boolean;
|
|
227
227
|
defaultCheckedKeys?: DataTableRowKey[];
|
|
@@ -238,11 +238,13 @@ interface TableManagerConfig {
|
|
|
238
238
|
/**
|
|
239
239
|
* 表格管理器参数接口
|
|
240
240
|
*/
|
|
241
|
+
/** 状态管理器和 CRUD 桥接复用公开的事件载荷,业务泛型由组件出口负责。 */
|
|
242
|
+
type InternalTableEvent = { [K in keyof TableEmits]: [event: K, ...args: TableEmits[K]] }[keyof TableEmits];
|
|
241
243
|
interface TableManagerParams {
|
|
242
244
|
config: MaybeRefOrGetter<TableManagerConfig>;
|
|
243
245
|
data: () => DataRecord[];
|
|
244
246
|
rowKey: (row: DataRecord) => DataTableRowKey;
|
|
245
|
-
emit: (...
|
|
247
|
+
emit: (...event: InternalTableEvent) => unknown;
|
|
246
248
|
/** 列配置(用于编辑校验) */
|
|
247
249
|
columns?: () => TableColumn[];
|
|
248
250
|
/** UI 壳提供加载内容,状态引擎保持可独立调用。 */
|
|
@@ -257,7 +259,7 @@ interface EventHandlers {
|
|
|
257
259
|
onSave: (rowData: DataRecord, rowIndex: number, columnKey?: string, originalKey?: DataTableRowKey) => Promise<void>;
|
|
258
260
|
onCancel: (rowData: DataRecord, rowIndex: number) => Promise<void>;
|
|
259
261
|
onExpandChange: (keys: DataTableRowKey[], row?: DataRecord, expanded?: boolean) => void;
|
|
260
|
-
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections
|
|
262
|
+
onSelectionChange: (checkedKeys: DataTableRowKey[], checkedRows: DataRecord[], childSelections?: Map<DataTableRowKey, DataTableRowKey[]>) => void;
|
|
261
263
|
onChildSelectionChange: (parentKey: DataTableRowKey, childKeys: DataTableRowKey[], childRows: DataRecord[]) => void;
|
|
262
264
|
onRowChange: (data: DataRecord[]) => void;
|
|
263
265
|
onRowSelectionChange: (selectedKey: DataTableRowKey | null, selectedRow: DataRecord | null) => void;
|
|
@@ -547,20 +549,20 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
547
549
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
548
550
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
549
551
|
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
550
|
-
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
551
552
|
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
553
|
+
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
552
554
|
onRefresh?: (() => any) | undefined;
|
|
553
|
-
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
554
555
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
555
556
|
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
556
557
|
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
557
558
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
558
559
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
559
560
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
561
|
+
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
560
562
|
}> & (typeof globalThis extends {
|
|
561
563
|
__VLS_PROPS_FALLBACK: infer P;
|
|
562
564
|
} ? P : {});
|
|
563
|
-
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "
|
|
565
|
+
expose: (exposed: vue.ShallowUnwrapRef<Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
564
566
|
expandedKeys: vue.Ref<TreeKey[]>;
|
|
565
567
|
selectedKeys: vue.Ref<TreeKey[]>;
|
|
566
568
|
checkedKeys: vue.Ref<TreeKey[]>;
|
|
@@ -571,7 +573,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
571
573
|
}>) => void;
|
|
572
574
|
attrs: any;
|
|
573
575
|
slots: TreeSlots<T>;
|
|
574
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "
|
|
576
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "expand" | "collapse" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "search-error", error: unknown) => void);
|
|
575
577
|
}>) => vue.VNode & {
|
|
576
578
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
577
579
|
};
|
|
@@ -635,7 +637,7 @@ declare function useTreeOperations<T extends object = TreeNodeData>(props: TreeP
|
|
|
635
637
|
handleDrop: (info: DropInfo<T>) => void;
|
|
636
638
|
handleAdd: () => void;
|
|
637
639
|
handleRefresh: () => void;
|
|
638
|
-
expose: Omit<TreeExpose<T>, "expandedKeys" | "
|
|
640
|
+
expose: Omit<TreeExpose<T>, "expandedKeys" | "selectedKeys" | "checkedKeys" | "searchLoading" | "searchError" | "searchMatchCount" | "searchMatchIndex"> & {
|
|
639
641
|
expandedKeys: Ref<TreeKey[]>;
|
|
640
642
|
selectedKeys: Ref<TreeKey[]>;
|
|
641
643
|
checkedKeys: Ref<TreeKey[]>;
|
|
@@ -718,7 +720,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
718
720
|
validateRowKeys?: boolean;
|
|
719
721
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
720
722
|
actions?: SimpleTableActions<T> | undefined;
|
|
721
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
723
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
722
724
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
723
725
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
724
726
|
toolbar?: ToolbarConfig;
|
|
@@ -766,7 +768,7 @@ declare function useTableQuery<T extends object, Q extends object = Record<strin
|
|
|
766
768
|
validateRowKeys?: boolean;
|
|
767
769
|
edit?: boolean | EditMode | EditConfig<T> | undefined;
|
|
768
770
|
actions?: SimpleTableActions<T> | undefined;
|
|
769
|
-
expand?: boolean | ExpandConfig<T, unknown> | undefined;
|
|
771
|
+
expand?: boolean | ExpandConfig$1<T, unknown> | undefined;
|
|
770
772
|
selection?: boolean | SelectionConfig<T, unknown> | undefined;
|
|
771
773
|
dynamicRows?: DynamicRowsOptions<T> | (string extends keyof T ? boolean : false) | undefined;
|
|
772
774
|
toolbar?: ToolbarConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=e.props?.path;return typeof t==`string`&&t?t:void 0}function t(t,n){return t.key??e(t)??n}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){let t=e.props?.path;return typeof t==`string`&&t?t:void 0}function t(t,n){return t.key??e(t)??n}export{e as n,t};
|