@robot-admin/naive-ui-components 0.14.2 → 0.15.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 +30 -0
- package/README.md +130 -721
- package/README_EN.md +137 -658
- package/dist/C_ActionBar.css +57 -58
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_AntV.css +215 -222
- package/dist/C_AntV2.cjs +2 -2
- package/dist/C_AntV2.js +2 -2
- package/dist/C_AudioPlayer.css +11 -12
- package/dist/C_AvatarGroup.css +5 -6
- package/dist/C_Barcode.css +1 -1
- package/dist/C_Breadcrumb.css +15 -17
- package/dist/C_Breadcrumb2.cjs +1 -1
- package/dist/C_Breadcrumb2.js +1 -1
- package/dist/C_Captcha.css +45 -47
- package/dist/C_Captcha2.cjs +1 -1
- package/dist/C_Captcha2.js +1 -1
- package/dist/C_Cascade.css +2 -2
- package/dist/C_Chat.css +8 -8
- package/dist/C_City.css +6 -7
- package/dist/C_Code.css +14 -15
- package/dist/C_CollapsePanel.css +12 -13
- package/dist/C_ContextMenu.css +31 -31
- package/dist/C_Cron.css +272 -275
- package/dist/C_Date.css +1 -1
- package/dist/C_Draggable.css +10 -11
- package/dist/C_Editor.css +2 -2
- package/dist/C_FilePreview.css +193 -193
- package/dist/C_Form.base.css +607 -601
- package/dist/C_Form.cjs +1 -1
- package/dist/C_Form.css +609 -603
- package/dist/C_Form.d.cts +2 -2
- package/dist/C_Form.d.ts +2 -2
- package/dist/C_Form.js +1 -1
- package/dist/C_FormModal.cjs +1 -1
- package/dist/C_FormModal.css +14 -20
- package/dist/C_FormModal.js +1 -1
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +53 -55
- package/dist/C_FormSearch2.cjs +1 -1
- package/dist/C_FormSearch2.js +1 -1
- package/dist/C_FormulaEditor.css +314 -315
- package/dist/C_FullCalendar.css +14 -16
- package/dist/C_FullCalendar2.cjs +1 -1
- package/dist/C_FullCalendar2.js +1 -1
- package/dist/C_GlobalSearch.css +2 -2
- package/dist/C_Guide.css +14 -15
- package/dist/C_Icon.css +7 -8
- package/dist/C_ImageCropper.css +69 -69
- package/dist/C_Language.css +8 -8
- package/dist/C_Loading.css +20 -22
- package/dist/C_Loading2.cjs +1 -1
- package/dist/C_Loading2.js +1 -1
- package/dist/C_Login.css +130 -135
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Map.css +22 -23
- package/dist/C_Markdown.css +2 -2
- package/dist/C_Menu.css +2 -5
- package/dist/C_Menu2.cjs +1 -1
- package/dist/C_Menu2.js +1 -1
- package/dist/C_NotificationCenter.css +300 -301
- package/dist/C_OrgChart.css +3 -3
- package/dist/C_PageLoading.css +35 -39
- package/dist/C_QRCode.css +5 -6
- package/dist/C_Signature.css +5 -6
- package/dist/C_Skeleton.css +6 -7
- package/dist/C_SplitPane.css +2 -2
- package/dist/C_Steps.css +2 -2
- package/dist/C_Table.base.css +1097 -870
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +1101 -874
- package/dist/C_Table.d.cts +1 -1
- package/dist/C_Table.d.ts +1 -1
- package/dist/C_Table.js +1 -1
- package/dist/C_Tabs.css +2 -2
- package/dist/C_TagsView.css +72 -76
- package/dist/C_TagsView2.cjs +1 -1
- package/dist/C_TagsView2.js +1 -1
- package/dist/C_Theme.css +7 -8
- package/dist/C_Time.css +1 -1
- package/dist/C_Timeline.css +8 -8
- package/dist/C_Transfer.css +10 -11
- package/dist/C_Tree.css +16 -17
- package/dist/C_Upload.css +147 -148
- package/dist/C_VideoPlayer.css +280 -281
- package/dist/C_VtableGantt.css +2 -2
- package/dist/C_WaterFall.css +17 -18
- package/dist/C_WorkFlow.css +453 -457
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/Card.cjs +1 -0
- package/dist/Card.js +1 -0
- package/dist/Custom.cjs +1 -0
- package/dist/Custom.js +1 -0
- package/dist/Dynamic.cjs +1 -0
- package/dist/Dynamic.js +1 -0
- package/dist/Steps.cjs +1 -0
- package/dist/Steps.js +1 -0
- package/dist/Tabs.cjs +1 -0
- package/dist/Tabs.js +1 -0
- package/dist/cascader.cjs +1 -0
- package/dist/cascader.js +1 -0
- package/dist/color-picker.cjs +1 -0
- package/dist/color-picker.js +1 -0
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +5 -5
- package/dist/constants3.d.ts +5 -5
- package/dist/constants4.d.cts +4 -4
- package/dist/constants4.d.ts +4 -4
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/context.cjs +1 -0
- package/dist/context.js +1 -0
- package/dist/contracts.d.cts +24 -0
- package/dist/contracts.d.ts +24 -0
- package/dist/createPageLoading.cjs +1 -1
- package/dist/createPageLoading.js +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +9 -9
- package/dist/data.d.ts +9 -9
- package/dist/data.js +1 -1
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.js +1 -0
- package/dist/feedback.cjs +1 -0
- package/dist/feedback.js +1 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +2 -2
- package/dist/index12.vue.d.cts +2 -2
- package/dist/index12.vue.d.ts +1 -1
- package/dist/index13.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 +7 -7
- package/dist/index15.vue.d.cts +7 -7
- package/dist/index16.vue.d.ts +1 -1
- package/dist/index17.vue.d.cts +1 -1
- package/dist/index17.vue.d.ts +1 -1
- package/dist/index18.vue.d.cts +1 -1
- package/dist/index18.vue.d.ts +1 -1
- package/dist/index19.vue.d.cts +1 -1
- package/dist/index19.vue.d.ts +2 -9
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +1 -1
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index22.vue.d.ts +2 -2
- package/dist/index23.vue.d.cts +1 -1
- package/dist/index23.vue.d.ts +1 -1
- package/dist/index25.vue.d.cts +4 -4
- package/dist/index25.vue.d.ts +4 -4
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +4 -4
- package/dist/index27.vue.d.ts +4 -4
- package/dist/index28.vue.d.cts +1 -1
- package/dist/index28.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +4 -4
- package/dist/index3.vue.d.ts +4 -4
- package/dist/index4.vue.d.cts +2 -9
- package/dist/index6.vue.d.ts +3 -3
- package/dist/index7.vue.d.cts +3 -3
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/index9.vue.d.ts +3 -3
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/presets.d.cts +8 -2
- package/dist/presets.d.ts +8 -2
- package/dist/rate.cjs +1 -0
- package/dist/rate.js +1 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.js +1 -0
- package/dist/style.css +10898 -10915
- package/dist/time-picker.cjs +1 -0
- package/dist/time-picker.js +1 -0
- package/dist/upload.cjs +1 -0
- package/dist/upload.js +1 -0
- package/dist/useActionTask.cjs +1 -0
- package/dist/useActionTask.js +1 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +4 -4
- package/dist/useCollapsePanel.d.ts +4 -4
- package/dist/useComponentLocale.cjs +1 -0
- package/dist/useComponentLocale.js +1 -0
- package/dist/useCropperCore.d.cts +6 -6
- package/dist/useCropperCore.d.ts +6 -6
- package/dist/useDraggableLayout.d.cts +1 -1
- package/dist/useDraggableLayout.d.ts +1 -1
- package/dist/useDynamicFormState.cjs +1 -0
- package/dist/useDynamicFormState.d.cts +64 -40
- package/dist/useDynamicFormState.d.ts +64 -40
- package/dist/useDynamicFormState.js +1 -0
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useGlobalSearch.d.cts +1 -1
- package/dist/useGlobalSearch.d.ts +1 -1
- package/dist/useQRCode.d.cts +2 -2
- package/dist/useQRCode.d.ts +2 -2
- package/dist/useSearchState.d.cts +15 -725
- package/dist/useSearchState.d.ts +15 -834
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +3 -3
- package/dist/useSplitResize.d.ts +3 -3
- package/dist/useTableQuery.cjs +3 -3
- package/dist/useTableQuery.d.cts +73 -34
- package/dist/useTableQuery.d.ts +73 -34
- package/dist/useTableQuery.js +3 -3
- package/dist/useTimeSelection.d.cts +1 -1
- package/dist/useTimeSelection.d.ts +1 -1
- package/dist/useTreeOperations.d.cts +5 -5
- package/dist/useTreeOperations.d.ts +5 -5
- package/dist/useWorkflowValidation.d.cts +3 -3
- package/dist/useWorkflowValidation.d.ts +3 -3
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +4 -4
- package/docs/architecture.en.md +83 -0
- package/docs/architecture.md +83 -0
- package/docs/assets/README.md +47 -0
- package/docs/assets/naive-ui-components-banner.png +0 -0
- package/docs/assets/naive-ui-components-banner.svg +69 -0
- package/docs/assets/naive-ui-components-logo.png +0 -0
- package/docs/assets/naive-ui-components-logo.svg +22 -0
- package/docs/components.en.md +118 -0
- package/docs/components.md +118 -0
- package/docs/engineering.en.md +132 -0
- package/docs/engineering.md +133 -0
- package/docs/guides/usage.en.md +638 -0
- package/docs/guides/usage.md +699 -0
- package/docs/performance-0.15.0.md +20 -0
- package/docs/security-scan-2026-10-06.md +11 -0
- package/docs/security-scan-2026-10-18.md +16 -0
- package/package.json +35 -12
- package/dist/C_Form2.cjs +0 -1
- package/dist/C_Form2.js +0 -1
- package/dist/config.cjs +0 -1
- package/dist/config.d.cts +0 -33
- package/dist/config.d.ts +0 -33
- package/dist/config.js +0 -1
package/dist/presets.d.cts
CHANGED
|
@@ -16,6 +16,7 @@ interface ActionDropdownItem {
|
|
|
16
16
|
onClick?: () => void | Promise<void>;
|
|
17
17
|
}
|
|
18
18
|
interface ActionItem {
|
|
19
|
+
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
19
20
|
key?: string;
|
|
20
21
|
/** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
|
|
21
22
|
label?: string;
|
|
@@ -28,9 +29,10 @@ interface ActionItem {
|
|
|
28
29
|
tooltip?: string;
|
|
29
30
|
group?: 'left' | 'right';
|
|
30
31
|
dropdown?: ActionDropdownItem[];
|
|
31
|
-
/**
|
|
32
|
+
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
32
33
|
autoLoading?: boolean;
|
|
33
34
|
onClick?: () => void | Promise<void>;
|
|
35
|
+
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
34
36
|
buttonProps?: Partial<ButtonProps>;
|
|
35
37
|
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
36
38
|
}
|
|
@@ -53,6 +55,8 @@ interface TableActionsProps {
|
|
|
53
55
|
interface TableActionsEmits {
|
|
54
56
|
(e: 'action-click', action: ActionItem): void;
|
|
55
57
|
(e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
|
|
58
|
+
/** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
|
|
59
|
+
(e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
|
|
56
60
|
}
|
|
57
61
|
//#endregion
|
|
58
62
|
//#region src/components/C_ActionBar/index.vue.d.ts
|
|
@@ -61,14 +65,16 @@ type __VLS_Slots = {} & {
|
|
|
61
65
|
center?: (props: typeof __VLS_14) => any;
|
|
62
66
|
};
|
|
63
67
|
declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
+
"action-error": (error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any;
|
|
64
69
|
"dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
|
|
65
70
|
"action-click": (action: ActionItem) => any;
|
|
66
71
|
}, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
|
|
72
|
+
"onAction-error"?: ((error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any) | undefined;
|
|
67
73
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
68
74
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
69
75
|
}>, {
|
|
70
|
-
actions: ActionItem[];
|
|
71
76
|
config: ActionBarConfig;
|
|
77
|
+
actions: ActionItem[];
|
|
72
78
|
leftActions: ActionItem[];
|
|
73
79
|
rightActions: ActionItem[];
|
|
74
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/presets.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ interface ActionDropdownItem {
|
|
|
16
16
|
onClick?: () => void | Promise<void>;
|
|
17
17
|
}
|
|
18
18
|
interface ActionItem {
|
|
19
|
+
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
19
20
|
key?: string;
|
|
20
21
|
/** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
|
|
21
22
|
label?: string;
|
|
@@ -28,9 +29,10 @@ interface ActionItem {
|
|
|
28
29
|
tooltip?: string;
|
|
29
30
|
group?: 'left' | 'right';
|
|
30
31
|
dropdown?: ActionDropdownItem[];
|
|
31
|
-
/**
|
|
32
|
+
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
32
33
|
autoLoading?: boolean;
|
|
33
34
|
onClick?: () => void | Promise<void>;
|
|
35
|
+
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
34
36
|
buttonProps?: Partial<ButtonProps>;
|
|
35
37
|
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
36
38
|
}
|
|
@@ -53,6 +55,8 @@ interface TableActionsProps {
|
|
|
53
55
|
interface TableActionsEmits {
|
|
54
56
|
(e: 'action-click', action: ActionItem): void;
|
|
55
57
|
(e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
|
|
58
|
+
/** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
|
|
59
|
+
(e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
|
|
56
60
|
}
|
|
57
61
|
//#endregion
|
|
58
62
|
//#region src/components/C_ActionBar/index.vue.d.ts
|
|
@@ -61,14 +65,16 @@ type __VLS_Slots = {} & {
|
|
|
61
65
|
center?: (props: typeof __VLS_14) => any;
|
|
62
66
|
};
|
|
63
67
|
declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
+
"action-error": (error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any;
|
|
64
69
|
"dropdown-click": (item: ActionDropdownItem, action: ActionItem) => any;
|
|
65
70
|
"action-click": (action: ActionItem) => any;
|
|
66
71
|
}, string, vue.PublicProps, Readonly<TableActionsProps> & Readonly<{
|
|
72
|
+
"onAction-error"?: ((error: unknown, action: ActionItem, item?: ActionDropdownItem | undefined) => any) | undefined;
|
|
67
73
|
"onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
|
|
68
74
|
"onAction-click"?: ((action: ActionItem) => any) | undefined;
|
|
69
75
|
}>, {
|
|
70
|
-
actions: ActionItem[];
|
|
71
76
|
config: ActionBarConfig;
|
|
77
|
+
actions: ActionItem[];
|
|
72
78
|
leftActions: ActionItem[];
|
|
73
79
|
rightActions: ActionItem[];
|
|
74
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/rate.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);let e=require(`naive-ui`);Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e.NRate}});
|
package/dist/rate.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NRate as e}from"naive-ui";export{e as default};
|
package/dist/slider.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk.cjs`);let e=require(`naive-ui`);Object.defineProperty(exports,`default`,{enumerable:!0,get:function(){return e.NSlider}});
|
package/dist/slider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NSlider as e}from"naive-ui";export{e as default};
|