@robot-admin/naive-ui-components 0.4.5 → 0.5.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 +12 -0
- package/dist/C_ActionBar-jZPsiXtT.css.map +1 -0
- package/dist/C_ActionBar.css +205 -0
- package/dist/C_AntV-D2Zp2qQF.css.map +1 -0
- package/dist/C_AntV.css +398 -0
- package/dist/C_Barcode-Do1Ozsmh.css.map +1 -0
- package/dist/C_Barcode.css +39 -0
- package/dist/C_Captcha-CZmAETly.css.map +1 -0
- package/dist/C_Captcha.css +109 -0
- package/dist/C_Cascade-Dq0S5Jkm.css.map +1 -0
- package/dist/C_Cascade.css +10 -0
- package/dist/C_City-DNKv4MpH.css.map +1 -0
- package/dist/C_City.css +132 -0
- package/dist/C_Code-avZjAnHD.css.map +1 -0
- package/dist/C_Code.css +8 -0
- package/dist/C_CollapsePanel-BpofCDyl.css.map +1 -0
- package/dist/C_CollapsePanel.css +171 -0
- package/dist/C_Cron-DqHQ92LN.css.map +1 -0
- package/dist/C_Cron.css +307 -0
- package/dist/C_Draggable-r6nhx3yM.css.map +1 -0
- package/dist/C_Draggable.css +238 -0
- package/dist/C_Editor-D0_6UhIa.css.map +1 -0
- package/dist/C_Editor.css +52 -0
- package/dist/C_FilePreview-BVarVvnD.css.map +1 -0
- package/dist/C_FilePreview.css +507 -0
- package/dist/C_Form-BciQUPpS.css.map +1 -0
- package/dist/C_Form.css +976 -0
- package/dist/C_FormSearch-Bmd2CmG6.css.map +1 -0
- package/dist/C_FormSearch.css +177 -0
- package/dist/C_FormulaEditor-3WG2vtQl.css.map +1 -0
- package/dist/C_FormulaEditor.css +502 -0
- package/dist/C_FullCalendar-1U4VlG7X.css.map +1 -0
- package/dist/C_FullCalendar.css +7 -0
- package/dist/C_GlobalSearch-B6wK3m3k.css.map +1 -0
- package/dist/C_GlobalSearch.css +616 -0
- package/dist/C_ImageCropper-D3L2-J_J.css.map +1 -0
- package/dist/C_ImageCropper.css +129 -0
- package/dist/C_Map-BCJmDnJT.css.map +1 -0
- package/dist/C_Map.css +29 -0
- package/dist/C_Markdown-7iBnLDtL.css.map +1 -0
- package/dist/C_Markdown.css +112 -0
- package/dist/C_NotificationCenter-DT6fQ79O.css.map +1 -0
- package/dist/C_NotificationCenter.css +466 -0
- package/dist/C_QRCode-DMxSyogU.css.map +1 -0
- package/dist/C_QRCode.css +51 -0
- package/dist/C_Signature-B5fFz6RD.css.map +1 -0
- package/dist/C_Signature.css +79 -0
- package/dist/C_SplitPane-DuyzUhKB.css.map +1 -0
- package/dist/C_SplitPane.css +152 -0
- package/dist/C_Steps-DGwXxS2Y.css.map +1 -0
- package/dist/C_Steps.css +171 -0
- package/dist/C_Table-Dcam_tRs.css.map +1 -0
- package/dist/C_Table.css +527 -0
- package/dist/C_Time-CKb_fwdm.css.map +1 -0
- package/dist/C_Time.css +23 -0
- package/dist/C_Tree-B-Le4hjQ.css.map +1 -0
- package/dist/C_Tree.css +142 -0
- package/dist/C_Upload-S30RmC9t.css.map +1 -0
- package/dist/C_Upload.css +251 -0
- package/dist/C_VideoPlayer-Cdgv4Zq0.css.map +1 -0
- package/dist/C_VideoPlayer.css +355 -0
- package/dist/C_VideoPlayer.d.ts +1 -1
- package/dist/C_VtableGantt-DB87-jdS.css.map +1 -0
- package/dist/C_VtableGantt.css +89 -0
- package/dist/C_WaterFall-C4HDqf-a.css.map +1 -0
- package/dist/C_WaterFall.css +73 -0
- package/dist/C_WorkFlow-Cy3HWA6A.css.map +1 -0
- package/dist/C_WorkFlow.css +1166 -0
- package/dist/chunk.js +1 -1
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.ts +3 -3
- package/dist/constants3.d.ts +4 -4
- package/dist/constants4.d.ts +5 -5
- package/dist/constants5.d.ts +8 -3816
- package/dist/data.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.vue.d.ts +1 -1
- package/dist/index10.vue.d.ts +4 -4
- package/dist/index11.vue.d.ts +2 -2
- package/dist/index12.vue.d.ts +4 -4
- package/dist/index13.vue.d.ts +1 -1
- package/dist/index14.vue.d.ts +1 -1
- package/dist/index16.vue.d.ts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index3.vue.d.ts +5 -5
- package/dist/index4.vue.d.ts +2 -2
- package/dist/index5.vue.d.ts +2 -2
- package/dist/index6.vue.d.ts +4 -4
- package/dist/index7.vue.d.ts +2 -2
- package/dist/index8.vue.d.ts +2 -2
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.cjs.map +1 -1
- package/dist/resolver.d.cts +7 -0
- package/dist/resolver.d.ts +7 -0
- package/dist/resolver.js +1 -1
- package/dist/resolver.js.map +1 -1
- package/dist/style.css +46 -46
- package/dist/useCollapsePanel.d.ts +1 -1
- package/dist/useCropperCore.d.ts +3 -3
- package/dist/useDraggableLayout.d.ts +8 -8
- package/dist/useDynamicFormState.d.ts +4 -4
- package/dist/useEdgeInteraction.d.ts +2 -7283
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useModalEdit.d.ts +4 -4
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSearchState.d.ts +1 -1
- package/dist/useSignatureHistory.d.ts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/useTimeSelection.d.ts +2 -2
- package/dist/useTreeOperations.d.ts +2 -2
- package/dist/useWorkflowValidation.d.ts +2 -2
- package/package.json +32 -32
package/dist/data.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
22
22
|
onReady?: ((map: any) => any) | undefined;
|
|
23
23
|
onMarkerClick?: ((marker: MapMarker$1, event: any) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
markers: MapMarker$1[];
|
|
26
|
-
amapKey: string;
|
|
27
25
|
height: string;
|
|
28
26
|
center: [number, number];
|
|
29
27
|
zoom: number;
|
|
28
|
+
markers: MapMarker$1[];
|
|
29
|
+
amapKey: string;
|
|
30
30
|
mapType: "osm" | "amap";
|
|
31
31
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { a as ActionDropdownItem, c as TableActionsEmits, i as ActionButtonType, l as TableActionsProps, n as ActionBarConfig, o as ActionGroupAlign, r as ActionButtonSize, s as ActionItem, t as _default } from "./index.vue.js";
|
|
2
2
|
import "./C_ActionBar.js";
|
|
3
3
|
import { A as SelectionConfig, C as KeyboardConfig, D as MouseWheelConfig, E as MinimapConfig, F as UMLClass, I as UMLDiagramData, L as UMLMethod, M as ThemeConfig, N as ToolbarAction, O as Position, P as UMLAttribute, R as UMLRelation, S as HistoryConfig, T as MenuItem, _ as ExportFormat, a as BPMNDiagramData, b as GraphExportOptions, c as ClipboardConfig, d as DiagramData, f as DiagramType, g as ERTable, h as ERRelation, i as _default$1, j as SnapshotConfig, k as ScrollerConfig, l as ConnectionConfig, m as ERField, n as useGraphExport, o as BPMNFlow, p as ERDiagramData, r as useGraphBase, s as BPMNNode, t as useEdgeInteraction, u as DiagramConfig, v as GraphConfig, w as LayoutOptions, x as GridConfig, y as GraphEvents, z as ValidationResult } from "./useEdgeInteraction.js";
|
|
4
|
+
import "./C_AntV.js";
|
|
4
5
|
import { t as _default$2 } from "./index2.vue.js";
|
|
5
6
|
import { t as _default$3 } from "./index3.vue.js";
|
|
6
7
|
import { n as _default$4, t as CascadeItem } from "./index4.vue.js";
|
|
@@ -38,7 +39,7 @@ import { n as _default$31, t as ThemeMode } from "./index15.vue.js";
|
|
|
38
39
|
import { a as TimeMode, i as TimeExpose, n as _default$32, o as TimeProps, r as TimeEmits, t as useTimeSelection } from "./useTimeSelection.js";
|
|
39
40
|
import { a as ButtonType, c as StatusConfig, d as TreeExpose, f as TreeMode, h as TreeProps, i as ActionConfig, l as StatusType, m as TreeOption, n as presetConfigs$1, o as DropInfo, p as TreeNodeData, r as _default$33, s as IconConfig, t as useTreeOperations, u as TreeEmits } from "./useTreeOperations.js";
|
|
40
41
|
import { _ as UploadFileStatus, a as useFileHash, b as UploadedChunksQueryFn, c as _default$34, d as InstantCheckFn, f as MergeChunksFn, g as UploadFileItem, h as UploadExpose, i as useChunkUpload, l as ChunkProgress, m as UploadEmits, n as getFileIcon, o as useDragDrop, p as UploadChunk, r as useUploadQueue, s as useUploadCore, t as formatFileSize, u as CustomUploadRequest, v as UploadProps, y as UploadRequestOptions } from "./constants4.js";
|
|
41
|
-
import { A as
|
|
42
|
+
import { A as PlayerInstance, B as VideoPlayerEmits, C as AnalyticsReporter, D as IDefinition, E as Chapter, F as QualityLevel, H as VideoPlayerProps, I as QuizOption, L as QuizType, M as ProgressData, N as ProgressReporter, O as IPlayerOptions, P as QualityDefinition, R as SubtitleTrack, S as AnalyticsEventType, T as Bookmark, U as VideoQuiz, V as VideoPlayerExpose, W as VideoSourceType, _ as useBookmarks, a as KEYBOARD_SHORTCUTS, b as _default$35, c as SEEK_STEP, d as STORAGE_PREFIX, f as VOLUME_STEP, g as useChapters, h as useSubtitle, i as DEFAULT_VOLUME, j as PlayerState, k as PlaybackRate, l as SOURCE_TYPE_MAP, m as useProgressTracker, n as DEFAULT_PLAYBACK_RATE, o as PROGRESS_THROTTLE_INTERVAL, p as WATERMARK_DEFAULT_STYLE, r as DEFAULT_PLAYBACK_RATES, s as QUALITY_LABEL_MAP, t as DEFAULT_HEARTBEAT_INTERVAL, u as STORAGE_KEYS, v as usePlaybackControl, w as AntiCheatConfig, x as AnalyticsEvent, y as usePlayerCore, z as ThumbnailConfig } from "./constants5.js";
|
|
42
43
|
import "./C_VideoPlayer.js";
|
|
43
44
|
import { a as presetConfigs, i as GanttTask, n as GanttOptions, r as GanttPreset, t as _default$36 } from "./index16.vue.js";
|
|
44
45
|
import { _ as WaterFallLayoutItem, a as DEFAULT_BREAKPOINTS, c as INFINITE_SCROLL_THRESHOLD, d as InfiniteScrollStatus, f as WaterFallBreakpoint, g as WaterFallItem, h as WaterFallExpose, i as DEFAULT_ANIMATION_DURATION, l as SKELETON_HEIGHT_RANGE, m as WaterFallEmits, n as useWaterFallLayout, o as DEFAULT_GAP, p as WaterFallColumn, r as useResponsiveColumns, s as DEFAULT_SKELETON_COUNT, t as useInfiniteScroll, u as _default$37, v as WaterFallProps } from "./useInfiniteScroll.js";
|
package/dist/index.vue.d.ts
CHANGED
|
@@ -63,10 +63,10 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
|
|
|
63
63
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
64
64
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
|
-
config: ActionBarConfig;
|
|
67
66
|
actions: ActionItem[];
|
|
68
67
|
leftActions: ActionItem[];
|
|
69
68
|
rightActions: ActionItem[];
|
|
69
|
+
config: ActionBarConfig;
|
|
70
70
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
71
71
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
72
72
|
declare const _default: typeof __VLS_export;
|
package/dist/index10.vue.d.ts
CHANGED
|
@@ -41,18 +41,18 @@ declare const __VLS_export: vue.DefineComponent<IconProps, {
|
|
|
41
41
|
errorMessage: Readonly<vue.Ref<string, string>>; /** DOM引用 */
|
|
42
42
|
el: vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
43
43
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
44
|
-
click: (event: MouseEvent) => any;
|
|
45
44
|
error: (type: string, error?: any) => any;
|
|
45
|
+
click: (event: MouseEvent) => any;
|
|
46
46
|
load: () => any;
|
|
47
47
|
}, string, vue.PublicProps, Readonly<IconProps> & Readonly<{
|
|
48
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
49
48
|
onError?: ((type: string, error?: any) => any) | undefined;
|
|
49
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
50
50
|
onLoad?: (() => any) | undefined;
|
|
51
51
|
}>, {
|
|
52
52
|
type: "iconify" | "unocss" | "component" | "svg" | "image";
|
|
53
|
-
title: string;
|
|
54
|
-
size: number | string;
|
|
55
53
|
name: string | any;
|
|
54
|
+
size: number | string;
|
|
55
|
+
title: string;
|
|
56
56
|
color: string;
|
|
57
57
|
loading: boolean;
|
|
58
58
|
flip: "horizontal" | "vertical" | "both";
|
package/dist/index11.vue.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ type __VLS_Props = {
|
|
|
11
11
|
options?: LanguageOption[];
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
14
|
-
change: (key: string) => any;
|
|
15
14
|
"update:modelValue": (key: string) => any;
|
|
15
|
+
change: (key: string) => any;
|
|
16
16
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onChange?: ((key: string) => any) | undefined;
|
|
18
17
|
"onUpdate:modelValue"?: ((key: string) => any) | undefined;
|
|
18
|
+
onChange?: ((key: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
modelValue: string;
|
|
21
21
|
options: LanguageOption[];
|
package/dist/index12.vue.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
38
38
|
insertText: (text: string) => void;
|
|
39
39
|
wordCount: vue.ComputedRef<number>;
|
|
40
40
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
41
|
-
change: (text: string, html: string) => any;
|
|
42
41
|
"update:modelValue": (value: string) => any;
|
|
42
|
+
change: (text: string, html: string) => any;
|
|
43
43
|
save: (text: string, html: string) => any;
|
|
44
44
|
"upload-image": (event: Event, insertImage: InsertImageFunction, files: FileList) => any;
|
|
45
45
|
"fullscreen-change": (isFullscreen: boolean) => any;
|
|
@@ -48,8 +48,8 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
48
48
|
"auto-save": (text: string) => any;
|
|
49
49
|
"max-length-exceeded": (currentLength: number, maxLength: number) => any;
|
|
50
50
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
51
|
-
onChange?: ((text: string, html: string) => any) | undefined;
|
|
52
51
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
+
onChange?: ((text: string, html: string) => any) | undefined;
|
|
53
53
|
onSave?: ((text: string, html: string) => any) | undefined;
|
|
54
54
|
"onUpload-image"?: ((event: Event, insertImage: InsertImageFunction, files: FileList) => any) | undefined;
|
|
55
55
|
"onFullscreen-change"?: ((isFullscreen: boolean) => any) | undefined;
|
|
@@ -59,10 +59,10 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
59
59
|
"onMax-length-exceeded"?: ((currentLength: number, maxLength: number) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
height: string | number;
|
|
62
|
-
disabled: boolean;
|
|
63
62
|
modelValue: string;
|
|
64
|
-
placeholder: string;
|
|
65
63
|
mode: "edit" | "editable" | "preview";
|
|
64
|
+
placeholder: string;
|
|
65
|
+
disabled: boolean;
|
|
66
66
|
isDark: boolean;
|
|
67
67
|
tocNavPosition: "left" | "right";
|
|
68
68
|
defaultFullscreen: boolean;
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -35,9 +35,9 @@ type __VLS_Slots = {} & {
|
|
|
35
35
|
};
|
|
36
36
|
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
37
37
|
status: "default" | "success" | "error" | "warning" | "info";
|
|
38
|
+
time: number;
|
|
38
39
|
percentage: number | number[];
|
|
39
40
|
isAnimation: boolean;
|
|
40
|
-
time: number;
|
|
41
41
|
indicatorPlacement: "inside" | "outside";
|
|
42
42
|
showIndicator: boolean;
|
|
43
43
|
strokeWidth: number;
|
package/dist/index14.vue.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
|
|
|
23
23
|
onChange?: ((args_0: number) => any) | undefined;
|
|
24
24
|
"onUpdate:current"?: ((args_0: number) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
direction: "horizontal" | "vertical";
|
|
27
26
|
current: number;
|
|
27
|
+
direction: "horizontal" | "vertical";
|
|
28
28
|
clickable: boolean;
|
|
29
29
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
package/dist/index16.vue.d.ts
CHANGED
|
@@ -648,11 +648,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
648
648
|
onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
|
|
649
649
|
}>, {
|
|
650
650
|
height: string | number;
|
|
651
|
-
title: string;
|
|
652
651
|
data: GanttTask[];
|
|
652
|
+
title: string;
|
|
653
|
+
options: GanttOptions;
|
|
653
654
|
showToolbar: boolean;
|
|
654
655
|
theme: "light" | "dark";
|
|
655
|
-
options: GanttOptions;
|
|
656
656
|
preset: GanttPreset;
|
|
657
657
|
showFullscreenButton: boolean;
|
|
658
658
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index2.vue.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
|
|
|
20
20
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
21
21
|
onError?: ((error: Error) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
height: number;
|
|
24
|
-
width: number;
|
|
25
23
|
format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
26
|
showText: boolean;
|
|
27
27
|
fontSize: number;
|
|
28
28
|
textPosition: "bottom" | "top";
|
package/dist/index3.vue.d.ts
CHANGED
|
@@ -18,26 +18,26 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
|
|
|
18
18
|
reset: () => void;
|
|
19
19
|
show: () => void;
|
|
20
20
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
21
|
+
change: (valid: boolean) => any;
|
|
22
|
+
reset: () => any;
|
|
21
23
|
success: (data: {
|
|
22
24
|
token: string;
|
|
23
25
|
timestamp: number;
|
|
24
26
|
}) => any;
|
|
25
27
|
fail: (error: string) => any;
|
|
26
|
-
change: (valid: boolean) => any;
|
|
27
|
-
reset: () => any;
|
|
28
28
|
}, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
|
|
29
|
+
onChange?: ((valid: boolean) => any) | undefined;
|
|
30
|
+
onReset?: (() => any) | undefined;
|
|
29
31
|
onSuccess?: ((data: {
|
|
30
32
|
token: string;
|
|
31
33
|
timestamp: number;
|
|
32
34
|
}) => any) | undefined;
|
|
33
35
|
onFail?: ((error: string) => any) | undefined;
|
|
34
|
-
onChange?: ((valid: boolean) => any) | undefined;
|
|
35
|
-
onReset?: (() => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
theme: "light" | "dark";
|
|
38
|
+
disabled: boolean;
|
|
38
39
|
triggerText: string;
|
|
39
40
|
images: string[];
|
|
40
|
-
disabled: boolean;
|
|
41
41
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const _default: typeof __VLS_export;
|
|
43
43
|
//#endregion
|
package/dist/index4.vue.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ type __VLS_Props = {
|
|
|
17
17
|
modelValue?: CascadeValue;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
20
|
-
change: (value: CascadeValue) => any;
|
|
21
20
|
"update:modelValue": (value: CascadeValue) => any;
|
|
21
|
+
change: (value: CascadeValue) => any;
|
|
22
22
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
-
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
24
23
|
"onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
|
|
24
|
+
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
placeholders: string[];
|
|
27
27
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index5.vue.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
trigger?: (props: typeof __VLS_9) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
17
|
-
change: (value: string) => any;
|
|
18
17
|
"update:modelValue": (value: string) => any;
|
|
18
|
+
change: (value: string) => any;
|
|
19
19
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
-
onChange?: ((value: string) => any) | undefined;
|
|
21
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
+
onChange?: ((value: string) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
placeholder: string;
|
|
24
24
|
showLetters: boolean;
|
package/dist/index6.vue.d.ts
CHANGED
|
@@ -25,20 +25,20 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
25
25
|
copyCode: typeof copyCode;
|
|
26
26
|
toggleFullscreen: typeof toggleFullscreen;
|
|
27
27
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
28
|
+
fullscreen: (isFullscreen: boolean) => any;
|
|
28
29
|
copy: (code: string) => any;
|
|
29
30
|
click: (event: MouseEvent) => any;
|
|
30
|
-
fullscreen: (isFullscreen: boolean) => any;
|
|
31
31
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
32
|
+
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
32
33
|
onCopy?: ((code: string) => any) | undefined;
|
|
33
34
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
34
|
-
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
|
-
|
|
36
|
+
trim: boolean;
|
|
37
37
|
language: string;
|
|
38
|
+
code: string;
|
|
38
39
|
showHeader: boolean;
|
|
39
40
|
showLineNumbers: boolean;
|
|
40
41
|
wordWrap: boolean;
|
|
41
|
-
trim: boolean;
|
|
42
42
|
showFullscreen: boolean;
|
|
43
43
|
autoLoadLanguage: boolean;
|
|
44
44
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index7.vue.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
39
39
|
"onUpdate:dateTimeRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
40
40
|
"onUpdate:smartRange"?: ((value: DateRangeValue) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
placeholder: string;
|
|
44
42
|
mode: DatePickerMode;
|
|
43
|
+
placeholder: string;
|
|
45
44
|
startPlaceholder: string;
|
|
46
45
|
endPlaceholder: string;
|
|
46
|
+
disabled: boolean;
|
|
47
47
|
disabledBeforeToday: boolean;
|
|
48
48
|
disabledAfterToday: boolean;
|
|
49
49
|
valueFormat: string;
|
package/dist/index8.vue.d.ts
CHANGED
|
@@ -29,11 +29,11 @@ declare const __VLS_export: vue.DefineComponent<Props, {
|
|
|
29
29
|
"onEditor-change"?: ((html: string) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
height: number;
|
|
32
|
+
modelValue: string;
|
|
32
33
|
readonly: boolean;
|
|
33
34
|
theme: "light" | "dark";
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
modelValue: string;
|
|
36
35
|
placeholder: string;
|
|
36
|
+
disabled: boolean;
|
|
37
37
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
//#endregion
|
package/dist/resolver.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e,sideEffects:r&&i?`${e}/${t}/style.css`:void 0}}}}exports.RobotNaiveUiResolver=r,exports.componentNames=t;
|
|
2
2
|
//# sourceMappingURL=resolver.cjs.map
|
package/dist/resolver.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.cjs","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n
|
|
1
|
+
{"version":3,"file":"resolver.cjs","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n /**\n * 按需导入组件样式(仅在 importOnDemand 为 true 时生效)\n * - false (默认): 需手动导入 style.css 全量样式\n * - true: 自动导入对应组件的独立样式 `@robot-admin/naive-ui-components/C_Form/style.css`\n */\n importStyle?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false, importStyle = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n const from = importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME\n const sideEffects =\n importOnDemand && importStyle\n ? `${PKG_NAME}/${name}/style.css`\n : undefined\n return {\n name,\n from,\n sideEffects,\n }\n }\n },\n }\n}\n"],"mappings":"mEAoBA,MAAM,EAAW,mCAGJ,EAAiB,2aAwC7B,CAMK,EAAe,IAAI,IAAY,EAAe,CAuBpD,SAAgB,EACd,EAAuC,EAAE,CACzC,CACA,GAAM,CAAE,iBAAiB,GAAO,cAAc,IAAU,EAExD,MAAO,CACL,KAAM,YACN,QAAU,GAAiB,CACzB,GAAI,EAAa,IAAI,EAAK,CAMxB,MAAO,CACL,OACA,KAPW,EAAiB,GAAG,EAAS,GAAG,IAAS,EAQpD,YANA,GAAkB,EACd,GAAG,EAAS,GAAG,EAAK,YACpB,IAAA,GAKL,EAGN"}
|
package/dist/resolver.d.cts
CHANGED
|
@@ -29,6 +29,12 @@ interface RobotNaiveUiResolverOptions {
|
|
|
29
29
|
* - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`
|
|
30
30
|
*/
|
|
31
31
|
importOnDemand?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 按需导入组件样式(仅在 importOnDemand 为 true 时生效)
|
|
34
|
+
* - false (默认): 需手动导入 style.css 全量样式
|
|
35
|
+
* - true: 自动导入对应组件的独立样式 `@robot-admin/naive-ui-components/C_Form/style.css`
|
|
36
|
+
*/
|
|
37
|
+
importStyle?: boolean;
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
40
|
* @robot-admin/naive-ui-components 组件自动导入解析器
|
|
@@ -41,6 +47,7 @@ declare function RobotNaiveUiResolver(options?: RobotNaiveUiResolverOptions): {
|
|
|
41
47
|
resolve: (name: string) => {
|
|
42
48
|
name: string;
|
|
43
49
|
from: string;
|
|
50
|
+
sideEffects: string | undefined;
|
|
44
51
|
} | undefined;
|
|
45
52
|
};
|
|
46
53
|
//#endregion
|
package/dist/resolver.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ interface RobotNaiveUiResolverOptions {
|
|
|
29
29
|
* - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`
|
|
30
30
|
*/
|
|
31
31
|
importOnDemand?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 按需导入组件样式(仅在 importOnDemand 为 true 时生效)
|
|
34
|
+
* - false (默认): 需手动导入 style.css 全量样式
|
|
35
|
+
* - true: 自动导入对应组件的独立样式 `@robot-admin/naive-ui-components/C_Form/style.css`
|
|
36
|
+
*/
|
|
37
|
+
importStyle?: boolean;
|
|
32
38
|
}
|
|
33
39
|
/**
|
|
34
40
|
* @robot-admin/naive-ui-components 组件自动导入解析器
|
|
@@ -41,6 +47,7 @@ declare function RobotNaiveUiResolver(options?: RobotNaiveUiResolverOptions): {
|
|
|
41
47
|
resolve: (name: string) => {
|
|
42
48
|
name: string;
|
|
43
49
|
from: string;
|
|
50
|
+
sideEffects: string | undefined;
|
|
44
51
|
} | undefined;
|
|
45
52
|
};
|
|
46
53
|
//#endregion
|
package/dist/resolver.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e}}}}export{r as RobotNaiveUiResolver,t as componentNames};
|
|
1
|
+
const e=`@robot-admin/naive-ui-components`,t=`C_ActionBar.C_AntV.C_Barcode.C_Captcha.C_Cascade.C_City.C_Code.C_CollapsePanel.C_Cron.C_Date.C_Draggable.C_Editor.C_FilePreview.C_Form.C_FormSearch.C_FormulaEditor.C_FullCalendar.C_GlobalSearch.C_Guide.C_Icon.C_ImageCropper.C_Language.C_Map.C_Markdown.C_NotificationCenter.C_Progress.C_QRCode.C_Signature.C_SplitPane.C_Steps.C_Table.C_Theme.C_Time.C_Tree.C_Upload.C_VideoPlayer.C_VtableGantt.C_WaterFall.C_WorkFlow`.split(`.`),n=new Set(t);function r(t={}){let{importOnDemand:r=!1,importStyle:i=!1}=t;return{type:`component`,resolve:t=>{if(n.has(t))return{name:t,from:r?`${e}/${t}`:e,sideEffects:r&&i?`${e}/${t}/style.css`:void 0}}}}export{r as RobotNaiveUiResolver,t as componentNames};
|
|
2
2
|
//# sourceMappingURL=resolver.js.map
|
package/dist/resolver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.js","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n
|
|
1
|
+
{"version":3,"file":"resolver.js","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_GlobalSearch',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n /**\n * 按需导入组件样式(仅在 importOnDemand 为 true 时生效)\n * - false (默认): 需手动导入 style.css 全量样式\n * - true: 自动导入对应组件的独立样式 `@robot-admin/naive-ui-components/C_Form/style.css`\n */\n importStyle?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false, importStyle = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n const from = importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME\n const sideEffects =\n importOnDemand && importStyle\n ? `${PKG_NAME}/${name}/style.css`\n : undefined\n return {\n name,\n from,\n sideEffects,\n }\n }\n },\n }\n}\n"],"mappings":"AAoBA,MAAM,EAAW,mCAGJ,EAAiB,2aAwC7B,CAMK,EAAe,IAAI,IAAY,EAAe,CAuBpD,SAAgB,EACd,EAAuC,EAAE,CACzC,CACA,GAAM,CAAE,iBAAiB,GAAO,cAAc,IAAU,EAExD,MAAO,CACL,KAAM,YACN,QAAU,GAAiB,CACzB,GAAI,EAAa,IAAI,EAAK,CAMxB,MAAO,CACL,OACA,KAPW,EAAiB,GAAG,EAAS,GAAG,IAAS,EAQpD,YANA,GAAkB,EACd,GAAG,EAAS,GAAG,EAAK,YACpB,IAAA,GAKL,EAGN"}
|