@robot-admin/naive-ui-components 0.22.1 → 0.23.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 +10 -0
- package/README.md +7 -5
- package/README_EN.md +7 -5
- package/dist/C_ActionBar.d.cts +2 -1
- package/dist/C_ActionBar.d.ts +2 -1
- package/dist/C_AntV2.cjs +3 -3
- package/dist/C_AntV2.js +3 -3
- package/dist/C_BatchResult.cjs +1 -0
- package/dist/C_BatchResult.css +32 -0
- package/dist/C_BatchResult.d.cts +2 -0
- package/dist/C_BatchResult.d.ts +2 -0
- package/dist/C_BatchResult.js +1 -0
- package/dist/C_BatchResult2.cjs +1 -0
- package/dist/C_BatchResult2.js +1 -0
- package/dist/C_Breadcrumb.d.cts +2 -2
- package/dist/C_Breadcrumb.d.ts +1 -1
- package/dist/C_Cascade.d.cts +1 -1
- package/dist/C_Cascade.d.ts +1 -1
- package/dist/C_Chat.d.cts +1 -1
- package/dist/C_Chat.d.ts +1 -1
- package/dist/C_City.d.cts +1 -1
- package/dist/C_City.d.ts +1 -1
- package/dist/C_Code.d.cts +1 -1
- package/dist/C_Code.d.ts +1 -1
- package/dist/C_ContextMenu.d.cts +1 -1
- package/dist/C_ContextMenu.d.ts +1 -1
- package/dist/C_DataPicker.cjs +1 -0
- package/dist/C_DataPicker.css +54 -0
- package/dist/C_DataPicker.d.cts +2 -0
- package/dist/C_DataPicker.d.ts +5 -0
- package/dist/C_DataPicker.js +1 -0
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Density.cjs +1 -0
- package/dist/C_Density.css +1 -0
- package/dist/C_Density.d.cts +3 -0
- package/dist/C_Density.d.ts +3 -0
- package/dist/C_Density.js +1 -0
- package/dist/C_Density2.cjs +1 -0
- package/dist/C_Density2.js +1 -0
- package/dist/C_Editor.d.cts +1 -1
- package/dist/C_Editor.d.ts +1 -1
- package/dist/C_ErrorSummary.cjs +1 -0
- package/dist/C_ErrorSummary.css +29 -0
- package/dist/C_ErrorSummary.d.cts +3 -0
- package/dist/C_ErrorSummary.d.ts +3 -0
- package/dist/C_ErrorSummary.js +1 -0
- package/dist/C_ErrorSummary2.cjs +1 -0
- package/dist/C_ErrorSummary2.js +1 -0
- package/dist/C_Form.base.css +150 -148
- package/dist/C_Form.css +151 -253
- package/dist/C_Form.d.cts +1 -1
- package/dist/C_Form.d.ts +19 -2
- package/dist/C_FormModal.css +1 -2
- package/dist/C_FormModal.d.cts +1 -1
- package/dist/C_FormModal.d.ts +17 -2
- package/dist/C_FormSearch.cjs +1 -1
- package/dist/C_FormSearch.css +124 -52
- package/dist/C_FormSearch.d.cts +3 -3
- package/dist/C_FormSearch.d.ts +5 -4
- package/dist/C_FormSearch.js +1 -1
- package/dist/C_FormulaEditor.d.cts +1 -1
- package/dist/C_FormulaEditor.d.ts +1 -1
- package/dist/C_Guide.d.cts +1 -1
- package/dist/C_Guide.d.ts +1 -1
- package/dist/C_Icon.d.cts +1 -1
- package/dist/C_Icon.d.ts +1 -1
- package/dist/C_Language.d.cts +1 -1
- package/dist/C_Language.d.ts +1 -1
- package/dist/C_Loading.d.cts +1 -1
- package/dist/C_Loading.d.ts +1 -1
- package/dist/C_Login.d.cts +1 -1
- package/dist/C_Login.d.ts +1 -1
- package/dist/C_Markdown.d.cts +1 -1
- package/dist/C_Markdown.d.ts +1 -1
- package/dist/C_Menu.d.cts +2 -2
- package/dist/C_Menu.d.ts +1 -1
- package/dist/C_OrgChart.d.cts +1 -1
- package/dist/C_OrgChart.d.ts +1 -1
- package/dist/C_Progress.d.cts +1 -1
- package/dist/C_Progress.d.ts +1 -1
- package/dist/C_SectionNav.cjs +1 -0
- package/dist/C_SectionNav.css +46 -0
- package/dist/C_SectionNav.d.cts +2 -0
- package/dist/C_SectionNav.d.ts +2 -0
- package/dist/C_SectionNav.js +1 -0
- package/dist/C_SectionNav2.cjs +1 -0
- package/dist/C_SectionNav2.js +1 -0
- package/dist/C_Skeleton.d.cts +1 -1
- package/dist/C_Skeleton.d.ts +1 -1
- package/dist/C_Steps.d.cts +1 -1
- package/dist/C_Steps.d.ts +1 -1
- package/dist/C_Table.base.css +258 -256
- package/dist/C_Table.cjs +1 -1
- package/dist/C_Table.css +109 -1283
- package/dist/C_Table.d.cts +2 -1
- package/dist/C_Table.d.ts +9 -8
- package/dist/C_Table.js +1 -1
- package/dist/C_Table2.cjs +3 -0
- package/dist/C_Table2.js +3 -0
- package/dist/C_Tabs.cjs +1 -1
- package/dist/C_Tabs.d.cts +1 -1
- package/dist/C_Tabs.d.ts +1 -1
- package/dist/C_Tabs.js +1 -1
- package/dist/C_TagsView.d.cts +1 -1
- package/dist/C_Theme.d.cts +1 -1
- package/dist/C_Theme.d.ts +1 -1
- package/dist/C_Timeline.d.cts +1 -1
- package/dist/C_Timeline.d.ts +1 -1
- package/dist/C_Transfer.d.cts +1 -1
- package/dist/C_Transfer.d.ts +1 -1
- package/dist/C_Tree.d.cts +1 -1
- package/dist/C_Tree.d.ts +9 -8
- package/dist/C_Upload.d.cts +1 -1
- package/dist/C_Upload.d.ts +1 -1
- 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/Steps.cjs +1 -1
- package/dist/Steps.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/batchPatch.cjs +1 -0
- package/dist/batchPatch.d.cts +26 -0
- package/dist/batchPatch.d.ts +26 -0
- package/dist/batchPatch.js +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +4 -1
- package/dist/config.d.ts +6 -2
- package/dist/config.js +1 -1
- package/dist/config2.d.ts +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +402 -173
- package/dist/constants2.d.ts +402 -173
- package/dist/constants3.d.cts +4 -4
- package/dist/constants3.d.ts +4 -4
- package/dist/constants4.d.cts +173 -402
- package/dist/constants4.d.ts +173 -402
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/contracts.d.ts +24 -0
- package/dist/data.cjs +1 -1
- package/dist/data.d.cts +5 -108
- package/dist/data.d.ts +5 -108
- package/dist/data.js +1 -1
- package/dist/data2.cjs +1 -1
- package/dist/data2.d.cts +108 -0
- package/dist/data2.d.ts +108 -0
- package/dist/data2.js +1 -1
- package/dist/data3.cjs +1 -0
- package/dist/data3.js +1 -0
- package/dist/dateRange.d.cts +108 -13
- package/dist/dateRange.d.ts +110 -14
- package/dist/density.d.ts +15 -0
- package/dist/dictionary.cjs +1 -0
- package/dist/dictionary.d.cts +38 -0
- package/dist/dictionary.d.ts +38 -0
- package/dist/dictionary.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 +63 -52
- package/dist/index.d.ts +71 -57
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +5 -5
- package/dist/index.vue.d.ts +5 -5
- package/dist/index10.vue.d.cts +37 -80
- package/dist/index10.vue.d.ts +77 -53
- package/dist/index11.vue.d.cts +77 -53
- package/dist/index11.vue.d.ts +1117 -45
- package/dist/index12.vue.d.cts +1117 -45
- package/dist/index12.vue.d.ts +17 -128
- package/dist/index13.vue.d.cts +17 -128
- package/dist/index13.vue.d.ts +57 -53
- package/dist/index14.vue.d.cts +57 -53
- package/dist/index14.vue.d.ts +16 -25
- package/dist/index15.vue.d.cts +16 -25
- package/dist/index15.vue.d.ts +52 -12
- package/dist/index16.vue.d.cts +52 -12
- package/dist/index16.vue.d.ts +13 -129
- package/dist/index17.vue.d.cts +13 -129
- package/dist/index17.vue.d.ts +123 -74
- package/dist/index18.vue.d.cts +123 -74
- package/dist/index18.vue.d.ts +48 -71
- package/dist/index19.vue.d.cts +40 -91
- package/dist/index19.vue.d.ts +36 -96
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +38 -47
- package/dist/index20.vue.d.ts +13 -48
- package/dist/index21.vue.d.cts +12 -96
- package/dist/index21.vue.d.ts +25 -95
- package/dist/index22.vue.d.cts +20 -32
- package/dist/index22.vue.d.ts +75 -37
- package/dist/index23.vue.d.cts +77 -13
- package/dist/index23.vue.d.ts +71 -13
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index25.vue.d.cts +116 -90
- package/dist/index25.vue.d.ts +116 -90
- package/dist/index26.vue.d.cts +94 -59
- package/dist/index26.vue.d.ts +94 -59
- package/dist/index27.vue.d.cts +75 -0
- package/dist/index27.vue.d.ts +75 -0
- package/dist/index28.vue.d.cts +103 -0
- package/dist/index28.vue.d.ts +103 -0
- package/dist/index29.vue.d.cts +105 -0
- package/dist/index29.vue.d.ts +105 -0
- package/dist/index3.vue.d.cts +5 -5
- package/dist/index3.vue.d.ts +5 -5
- package/dist/index30.vue.d.cts +28 -0
- package/dist/index30.vue.d.ts +28 -0
- package/dist/index4.vue.d.cts +19 -128
- package/dist/index4.vue.d.ts +17 -34
- package/dist/index5.vue.d.cts +127 -35
- package/dist/index5.vue.d.ts +30 -19
- package/dist/index6.vue.d.cts +30 -19
- package/dist/index6.vue.d.ts +22 -118
- package/dist/index7.vue.d.cts +22 -118
- package/dist/index7.vue.d.ts +112 -18
- package/dist/index8.vue.d.cts +112 -18
- package/dist/index8.vue.d.ts +24 -35
- package/dist/index9.vue.d.cts +24 -35
- package/dist/index9.vue.d.ts +37 -80
- package/dist/mapUtils.d.cts +4 -4
- package/dist/mapUtils.d.ts +4 -4
- package/dist/numberCodec.cjs +1 -0
- package/dist/numberCodec.d.cts +25 -0
- package/dist/numberCodec.d.ts +25 -0
- package/dist/numberCodec.js +1 -0
- package/dist/observer.cjs +1 -0
- package/dist/observer.js +1 -0
- package/dist/presets.d.cts +3 -66
- package/dist/presets.d.ts +3 -66
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/serializeSearch.cjs +1 -0
- package/dist/serializeSearch.js +1 -0
- package/dist/style.css +547 -308
- package/dist/types.d.cts +60 -103
- package/dist/types.d.ts +62 -52
- package/dist/types2.d.cts +104 -51
- package/dist/types2.d.ts +56 -0
- package/dist/types3.d.cts +56 -0
- package/dist/useCollapsePanel.d.cts +6 -6
- package/dist/useCollapsePanel.d.ts +6 -6
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +13 -13
- package/dist/useCropperCore.d.ts +13 -13
- package/dist/useDataResource.cjs +1 -0
- package/dist/useDataResource.js +1 -0
- package/dist/useDictionary.cjs +1 -0
- package/dist/useDictionary.js +1 -0
- package/dist/useDynamicFormState.d.cts +960 -10
- package/dist/useDynamicFormState.d.ts +951 -11
- package/dist/useEdgeInteraction.d.cts +3 -3
- package/dist/useEdgeInteraction.d.ts +3 -3
- package/dist/useFormArray.cjs +1 -0
- package/dist/useFormArray.d.cts +69 -0
- package/dist/useFormArray.d.ts +69 -0
- package/dist/useFormArray.js +1 -0
- package/dist/useFormConfig.d.cts +14 -0
- package/dist/useFormConfig.d.ts +17 -38
- package/dist/useGridWidth.cjs +1 -0
- package/dist/useGridWidth.js +1 -0
- package/dist/useInfiniteScroll.d.cts +3 -3
- package/dist/useInfiniteScroll.d.ts +3 -3
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +7 -7
- package/dist/useSignatureHistory.d.ts +7 -7
- package/dist/useSplitResize.d.cts +9 -9
- package/dist/useSplitResize.d.ts +9 -9
- package/dist/useTableGlobalConfig.cjs +1 -0
- package/dist/useTableGlobalConfig.js +1 -0
- package/dist/useTableQuery.cjs +1 -3
- package/dist/useTableQuery.js +1 -3
- package/dist/useWorkflowValidation.d.cts +5 -5
- package/dist/useWorkflowValidation.d.ts +5 -5
- package/dist/validation.cjs +1 -0
- package/dist/validation.d.cts +18 -0
- package/dist/validation.d.ts +18 -0
- package/dist/validation.js +1 -0
- package/dist/verification.d.cts +4 -4
- package/dist/verification.d.ts +5 -5
- package/dist/workflows.cjs +1 -0
- package/dist/workflows.d.cts +2 -0
- package/dist/workflows.d.ts +2 -0
- package/dist/workflows.js +1 -0
- package/docs/components.en.md +13 -1
- package/docs/components.md +13 -1
- package/docs/guides/batch-results.md +47 -0
- package/docs/guides/data-picker.md +65 -0
- package/docs/guides/data-workflows.md +123 -0
- package/docs/guides/form-density.en.md +39 -0
- package/docs/guides/form-density.md +39 -0
- package/docs/guides/search-workflows.md +164 -0
- package/package.json +21 -1
- package/dist/C_FormSearch2.cjs +0 -1
- package/dist/C_FormSearch2.js +0 -1
- package/dist/useTableQuery.d.cts +0 -1957
- package/dist/useTableQuery.d.ts +0 -1946
package/dist/types.d.cts
CHANGED
|
@@ -1,109 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Directive, Ref } from "vue";
|
|
2
|
+
import { ButtonProps } from "naive-ui";
|
|
2
3
|
|
|
3
|
-
//#region src/components/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* - `meta` 字段采用 Admin 生态公约(title / icon / hidden / affix / keepAlive)
|
|
10
|
-
* - 同时兼容后端直接返回的 JSON 路由表(path + meta 即可)
|
|
11
|
-
*
|
|
12
|
-
* @example Vue Router 格式
|
|
13
|
-
* ```ts
|
|
14
|
-
* const route: RouteItem = {
|
|
15
|
-
* path: '/dashboard',
|
|
16
|
-
* name: 'Dashboard',
|
|
17
|
-
* meta: { title: '仪表盘', icon: 'mdi:monitor-dashboard' },
|
|
18
|
-
* children: [...]
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @example 后端 JSON 格式
|
|
23
|
-
* ```ts
|
|
24
|
-
* const menuFromApi: RouteItem = {
|
|
25
|
-
* path: '/system/user',
|
|
26
|
-
* meta: { title: '用户管理', icon: 'mdi:account' }
|
|
27
|
-
* }
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
interface RouteItem {
|
|
31
|
-
/** 路由路径(必须) */
|
|
32
|
-
path: string;
|
|
33
|
-
/** 路由名称 */
|
|
34
|
-
name?: string;
|
|
35
|
-
/** 重定向路径 */
|
|
36
|
-
redirect?: string;
|
|
37
|
-
/** 组件名称或路径(用于动态导入) */
|
|
38
|
-
component?: string | (() => Promise<any>);
|
|
39
|
-
/** 菜单/路由元数据 */
|
|
40
|
-
meta?: RouteMeta;
|
|
41
|
-
/** 子路由 */
|
|
42
|
-
children?: RouteItem[];
|
|
43
|
-
/** 菜单项类型:'group' 分组 | 'divider' 分割线 */
|
|
44
|
-
type?: 'group' | 'divider';
|
|
45
|
-
/** 是否禁用 */
|
|
46
|
-
disabled?: boolean;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 路由元数据 — 兼容 Vue Router RouteMeta 扩展标准
|
|
50
|
-
*
|
|
51
|
-
* 参考:
|
|
52
|
-
* - Vue Router: https://router.vuejs.org/guide/advanced/meta.html
|
|
53
|
-
* - Vben Admin / Naive Admin Pro / Ant Design Pro Vue 的公约字段
|
|
54
|
-
*/
|
|
55
|
-
interface RouteMeta {
|
|
56
|
-
/** 页面/菜单标题 */
|
|
57
|
-
title?: string;
|
|
58
|
-
/** 图标名称(Iconify 格式如 'mdi:home',或自定义) */
|
|
59
|
-
icon?: string | (() => VNode);
|
|
60
|
-
/** 是否在菜单中隐藏 */
|
|
61
|
-
hidden?: boolean;
|
|
62
|
-
/** 是否固定在标签栏 */
|
|
63
|
-
affix?: boolean;
|
|
64
|
-
/** 是否缓存页面(keep-alive) */
|
|
65
|
-
keepAlive?: boolean;
|
|
66
|
-
/** 是否全屏显示(不显示 header/sidebar) */
|
|
67
|
-
full?: boolean;
|
|
68
|
-
/** 外部链接 URL */
|
|
69
|
-
link?: string;
|
|
70
|
-
/** 排序权重 */
|
|
71
|
-
orderNo?: number;
|
|
72
|
-
/** 扩展属性 */
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* 标签项 — C_TagsView 使用的标签数据结构
|
|
77
|
-
*/
|
|
78
|
-
interface TagItem {
|
|
79
|
-
/** 路由路径 */
|
|
80
|
-
path: string;
|
|
81
|
-
/** 显示标题(已翻译) */
|
|
82
|
-
title: string;
|
|
83
|
-
/** 原始标题(未翻译,用于语言切换后重新翻译) */
|
|
84
|
-
originalTitle?: string;
|
|
85
|
-
/** 图标名 */
|
|
86
|
-
icon?: string;
|
|
87
|
-
/** 元数据 */
|
|
88
|
-
meta?: {
|
|
89
|
-
/** 是否固定在标签栏 */affix?: boolean;
|
|
90
|
-
[key: string]: any;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* 面包屑项 — C_Breadcrumb 使用的数据结构
|
|
95
|
-
*/
|
|
96
|
-
interface BreadcrumbItem {
|
|
97
|
-
/** 路径 key */
|
|
4
|
+
//#region src/components/C_ActionBar/types.d.ts
|
|
5
|
+
type ActionState = boolean | Ref<boolean> | (() => boolean);
|
|
6
|
+
type ActionButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
7
|
+
type ActionButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
8
|
+
type ActionGroupAlign = 'left' | 'center' | 'right' | 'space-between' | 'space-around';
|
|
9
|
+
interface ActionDropdownItem {
|
|
98
10
|
key: string;
|
|
99
|
-
/** 显示文本 */
|
|
100
11
|
label: string;
|
|
101
|
-
/** 图标名称 */
|
|
102
12
|
icon?: string;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
|
|
13
|
+
disabled?: ActionState;
|
|
14
|
+
show?: ActionState;
|
|
15
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
16
|
+
onClick?: () => unknown;
|
|
17
|
+
}
|
|
18
|
+
interface ActionItem {
|
|
19
|
+
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
20
|
+
key?: string;
|
|
21
|
+
/** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
|
|
22
|
+
label?: string;
|
|
23
|
+
icon?: string;
|
|
24
|
+
type?: ActionButtonType;
|
|
25
|
+
size?: ActionButtonSize;
|
|
26
|
+
loading?: ActionState;
|
|
27
|
+
disabled?: ActionState;
|
|
28
|
+
show?: ActionState;
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
group?: 'left' | 'right';
|
|
31
|
+
dropdown?: ActionDropdownItem[];
|
|
32
|
+
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
33
|
+
autoLoading?: boolean;
|
|
34
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
35
|
+
onClick?: () => unknown;
|
|
36
|
+
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
37
|
+
buttonProps?: Partial<ButtonProps>;
|
|
38
|
+
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
39
|
+
}
|
|
40
|
+
interface ActionBarConfig {
|
|
41
|
+
align?: ActionGroupAlign;
|
|
42
|
+
size?: ActionButtonSize;
|
|
43
|
+
/** 按钮间距;省略时紧凑模式为 6px,常规模式为 12px。 */
|
|
44
|
+
gap?: number;
|
|
45
|
+
/** 允许分组及组内按钮随可用宽度换行。 */
|
|
46
|
+
wrap?: boolean;
|
|
47
|
+
showDivider?: boolean;
|
|
48
|
+
dividerType?: 'vertical' | 'horizontal';
|
|
49
|
+
/** 减少容器留白和默认按钮间距;行内模式也生效。 */
|
|
50
|
+
compact?: boolean;
|
|
51
|
+
inline?: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface TableActionsProps {
|
|
54
|
+
actions?: ActionItem[];
|
|
55
|
+
leftActions?: ActionItem[];
|
|
56
|
+
rightActions?: ActionItem[];
|
|
57
|
+
config?: ActionBarConfig;
|
|
58
|
+
}
|
|
59
|
+
interface TableActionsEmits {
|
|
60
|
+
(e: 'action-click', action: ActionItem): void;
|
|
61
|
+
(e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
|
|
62
|
+
/** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
|
|
63
|
+
(e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
|
|
107
64
|
}
|
|
108
65
|
//#endregion
|
|
109
|
-
export {
|
|
66
|
+
export { ActionGroupAlign as a, TableActionsEmits as c, ActionDropdownItem as i, TableActionsProps as l, ActionButtonSize as n, ActionItem as o, ActionButtonType as r, ActionState as s, ActionBarConfig as t };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,56 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
disabled?:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
startDateProps?: Record<string, unknown>;
|
|
18
|
-
endDateProps?: Record<string, unknown>;
|
|
19
|
-
/** @deprecated Use modelValue. */
|
|
20
|
-
singleDate?: DateValue;
|
|
21
|
-
/** @deprecated Use modelValue. */
|
|
22
|
-
singleDateTime?: DateValue;
|
|
23
|
-
/** @deprecated Use modelValue. */
|
|
24
|
-
dateRange?: DateRangeValue;
|
|
25
|
-
/** @deprecated Use modelValue. */
|
|
26
|
-
dateTimeRange?: DateRangeValue;
|
|
27
|
-
/** @deprecated Use modelValue. */
|
|
28
|
-
smartRange?: DateRangeValue;
|
|
1
|
+
import { Directive, Ref } from "vue";
|
|
2
|
+
import { ButtonProps } from "naive-ui";
|
|
3
|
+
|
|
4
|
+
//#region src/components/C_ActionBar/types.d.ts
|
|
5
|
+
type ActionState = boolean | Ref<boolean> | (() => boolean);
|
|
6
|
+
type ActionButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
7
|
+
type ActionButtonSize = 'tiny' | 'small' | 'medium' | 'large';
|
|
8
|
+
type ActionGroupAlign = 'left' | 'center' | 'right' | 'space-between' | 'space-around';
|
|
9
|
+
interface ActionDropdownItem {
|
|
10
|
+
key: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
disabled?: ActionState;
|
|
14
|
+
show?: ActionState;
|
|
15
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
16
|
+
onClick?: () => unknown;
|
|
29
17
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
18
|
+
interface ActionItem {
|
|
19
|
+
/** 动作建议使用稳定 key;重复 key 共享执行锁,无 key 时按所在分组和位置识别。 */
|
|
20
|
+
key?: string;
|
|
21
|
+
/** 内置语义 key 可省略 label、icon 与 type,并自动继承一致的视觉预设。 */
|
|
22
|
+
label?: string;
|
|
23
|
+
icon?: string;
|
|
24
|
+
type?: ActionButtonType;
|
|
25
|
+
size?: ActionButtonSize;
|
|
26
|
+
loading?: ActionState;
|
|
27
|
+
disabled?: ActionState;
|
|
28
|
+
show?: ActionState;
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
group?: 'left' | 'right';
|
|
31
|
+
dropdown?: ActionDropdownItem[];
|
|
32
|
+
/** 是否自动显示 loading;执行期间始终阻止同 key 动作重复触发。 */
|
|
33
|
+
autoLoading?: boolean;
|
|
34
|
+
/** 返回值忽略;Promise 用于执行锁、loading 与错误传播。 */
|
|
35
|
+
onClick?: () => unknown;
|
|
36
|
+
/** 视觉属性透传。disabled/loading 与动作状态合并;onClick 作为原生点击观察者保留。 */
|
|
37
|
+
buttonProps?: Partial<ButtonProps>;
|
|
38
|
+
directives?: Array<[Directive, any?] | [Directive, any, string?] | [Directive, any, string?, Record<string, boolean>?]>;
|
|
51
39
|
}
|
|
52
|
-
interface
|
|
53
|
-
|
|
40
|
+
interface ActionBarConfig {
|
|
41
|
+
align?: ActionGroupAlign;
|
|
42
|
+
size?: ActionButtonSize;
|
|
43
|
+
/** 按钮间距;省略时紧凑模式为 6px,常规模式为 12px。 */
|
|
44
|
+
gap?: number;
|
|
45
|
+
/** 允许分组及组内按钮随可用宽度换行。 */
|
|
46
|
+
wrap?: boolean;
|
|
47
|
+
showDivider?: boolean;
|
|
48
|
+
dividerType?: 'vertical' | 'horizontal';
|
|
49
|
+
/** 减少容器留白和默认按钮间距;行内模式也生效。 */
|
|
50
|
+
compact?: boolean;
|
|
51
|
+
inline?: boolean;
|
|
52
|
+
}
|
|
53
|
+
interface TableActionsProps {
|
|
54
|
+
actions?: ActionItem[];
|
|
55
|
+
leftActions?: ActionItem[];
|
|
56
|
+
rightActions?: ActionItem[];
|
|
57
|
+
config?: ActionBarConfig;
|
|
58
|
+
}
|
|
59
|
+
interface TableActionsEmits {
|
|
60
|
+
(e: 'action-click', action: ActionItem): void;
|
|
61
|
+
(e: 'dropdown-click', item: ActionDropdownItem, action: ActionItem): void;
|
|
62
|
+
/** 执行失败通知;错误继续交给 Vue 的错误处理边界。 */
|
|
63
|
+
(e: 'action-error', error: unknown, action: ActionItem, item?: ActionDropdownItem): void;
|
|
54
64
|
}
|
|
55
65
|
//#endregion
|
|
56
|
-
export {
|
|
66
|
+
export { ActionGroupAlign as a, TableActionsEmits as c, ActionDropdownItem as i, TableActionsProps as l, ActionButtonSize as n, ActionItem as o, ActionButtonType as r, ActionState as s, ActionBarConfig as t };
|
package/dist/types2.d.cts
CHANGED
|
@@ -1,56 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/_shared/types.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* 路由项 — 组件库统一的路由/菜单数据结构
|
|
6
|
+
*
|
|
7
|
+
* 设计原则:
|
|
8
|
+
* - 顶层字段与 Vue Router `RouteRecordRaw` 对齐
|
|
9
|
+
* - `meta` 字段采用 Admin 生态公约(title / icon / hidden / affix / keepAlive)
|
|
10
|
+
* - 同时兼容后端直接返回的 JSON 路由表(path + meta 即可)
|
|
11
|
+
*
|
|
12
|
+
* @example Vue Router 格式
|
|
13
|
+
* ```ts
|
|
14
|
+
* const route: RouteItem = {
|
|
15
|
+
* path: '/dashboard',
|
|
16
|
+
* name: 'Dashboard',
|
|
17
|
+
* meta: { title: '仪表盘', icon: 'mdi:monitor-dashboard' },
|
|
18
|
+
* children: [...]
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example 后端 JSON 格式
|
|
23
|
+
* ```ts
|
|
24
|
+
* const menuFromApi: RouteItem = {
|
|
25
|
+
* path: '/system/user',
|
|
26
|
+
* meta: { title: '用户管理', icon: 'mdi:account' }
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
interface RouteItem {
|
|
31
|
+
/** 路由路径(必须) */
|
|
32
|
+
path: string;
|
|
33
|
+
/** 路由名称 */
|
|
34
|
+
name?: string;
|
|
35
|
+
/** 重定向路径 */
|
|
36
|
+
redirect?: string;
|
|
37
|
+
/** 组件名称或路径(用于动态导入) */
|
|
38
|
+
component?: string | (() => Promise<any>);
|
|
39
|
+
/** 菜单/路由元数据 */
|
|
40
|
+
meta?: RouteMeta;
|
|
41
|
+
/** 子路由 */
|
|
42
|
+
children?: RouteItem[];
|
|
43
|
+
/** 菜单项类型:'group' 分组 | 'divider' 分割线 */
|
|
44
|
+
type?: 'group' | 'divider';
|
|
45
|
+
/** 是否禁用 */
|
|
13
46
|
disabled?: boolean;
|
|
14
|
-
disabledBeforeToday?: boolean;
|
|
15
|
-
disabledAfterToday?: boolean;
|
|
16
|
-
valueFormat?: string;
|
|
17
|
-
startDateProps?: Record<string, unknown>;
|
|
18
|
-
endDateProps?: Record<string, unknown>;
|
|
19
|
-
/** @deprecated Use modelValue. */
|
|
20
|
-
singleDate?: DateValue;
|
|
21
|
-
/** @deprecated Use modelValue. */
|
|
22
|
-
singleDateTime?: DateValue;
|
|
23
|
-
/** @deprecated Use modelValue. */
|
|
24
|
-
dateRange?: DateRangeValue;
|
|
25
|
-
/** @deprecated Use modelValue. */
|
|
26
|
-
dateTimeRange?: DateRangeValue;
|
|
27
|
-
/** @deprecated Use modelValue. */
|
|
28
|
-
smartRange?: DateRangeValue;
|
|
29
47
|
}
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
/**
|
|
49
|
+
* 路由元数据 — 兼容 Vue Router RouteMeta 扩展标准
|
|
50
|
+
*
|
|
51
|
+
* 参考:
|
|
52
|
+
* - Vue Router: https://router.vuejs.org/guide/advanced/meta.html
|
|
53
|
+
* - Vben Admin / Naive Admin Pro / Ant Design Pro Vue 的公约字段
|
|
54
|
+
*/
|
|
55
|
+
interface RouteMeta {
|
|
56
|
+
/** 页面/菜单标题 */
|
|
57
|
+
title?: string;
|
|
58
|
+
/** 图标名称(Iconify 格式如 'mdi:home',或自定义) */
|
|
59
|
+
icon?: string | (() => VNode);
|
|
60
|
+
/** 是否在菜单中隐藏 */
|
|
61
|
+
hidden?: boolean;
|
|
62
|
+
/** 是否固定在标签栏 */
|
|
63
|
+
affix?: boolean;
|
|
64
|
+
/** 是否缓存页面(keep-alive) */
|
|
65
|
+
keepAlive?: boolean;
|
|
66
|
+
/** 是否全屏显示(不显示 header/sidebar) */
|
|
67
|
+
full?: boolean;
|
|
68
|
+
/** 外部链接 URL */
|
|
69
|
+
link?: string;
|
|
70
|
+
/** 排序权重 */
|
|
71
|
+
orderNo?: number;
|
|
72
|
+
/** 扩展属性 */
|
|
73
|
+
[key: string]: any;
|
|
51
74
|
}
|
|
52
|
-
|
|
53
|
-
|
|
75
|
+
/**
|
|
76
|
+
* 标签项 — C_TagsView 使用的标签数据结构
|
|
77
|
+
*/
|
|
78
|
+
interface TagItem {
|
|
79
|
+
/** 路由路径 */
|
|
80
|
+
path: string;
|
|
81
|
+
/** 显示标题(已翻译) */
|
|
82
|
+
title: string;
|
|
83
|
+
/** 原始标题(未翻译,用于语言切换后重新翻译) */
|
|
84
|
+
originalTitle?: string;
|
|
85
|
+
/** 图标名 */
|
|
86
|
+
icon?: string;
|
|
87
|
+
/** 元数据 */
|
|
88
|
+
meta?: {
|
|
89
|
+
/** 是否固定在标签栏 */affix?: boolean;
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 面包屑项 — C_Breadcrumb 使用的数据结构
|
|
95
|
+
*/
|
|
96
|
+
interface BreadcrumbItem {
|
|
97
|
+
/** 路径 key */
|
|
98
|
+
key: string;
|
|
99
|
+
/** 显示文本 */
|
|
100
|
+
label: string;
|
|
101
|
+
/** 图标名称 */
|
|
102
|
+
icon?: string;
|
|
103
|
+
/** 禁用导航;目录禁用时同时禁用其子项。 */
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
/** 子级列表(用于下拉) */
|
|
106
|
+
children?: readonly BreadcrumbItem[];
|
|
54
107
|
}
|
|
55
108
|
//#endregion
|
|
56
|
-
export {
|
|
109
|
+
export { TagItem as i, RouteItem as n, RouteMeta as r, BreadcrumbItem as t };
|
package/dist/types2.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/components/C_Date/types.d.ts
|
|
2
|
+
type DatePickerMode = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'smart-range';
|
|
3
|
+
type DateValue = string | null;
|
|
4
|
+
type DateRangeValue = [string, string] | null;
|
|
5
|
+
/** 静态 mode 保留单值或范围;动态 mode 使用完整联合类型。 */
|
|
6
|
+
type DateModelValue<M extends DatePickerMode | undefined = DatePickerMode> = M extends 'date' | 'datetime' | undefined ? DateValue : DateRangeValue;
|
|
7
|
+
interface DateRuntimeProps<M extends DatePickerMode | undefined = DatePickerMode> {
|
|
8
|
+
modelValue?: DateModelValue<NoInfer<M>>;
|
|
9
|
+
mode?: M;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
startPlaceholder?: string;
|
|
12
|
+
endPlaceholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
disabledBeforeToday?: boolean;
|
|
15
|
+
disabledAfterToday?: boolean;
|
|
16
|
+
valueFormat?: string;
|
|
17
|
+
startDateProps?: Record<string, unknown>;
|
|
18
|
+
endDateProps?: Record<string, unknown>;
|
|
19
|
+
/** @deprecated Use modelValue. */
|
|
20
|
+
singleDate?: DateValue;
|
|
21
|
+
/** @deprecated Use modelValue. */
|
|
22
|
+
singleDateTime?: DateValue;
|
|
23
|
+
/** @deprecated Use modelValue. */
|
|
24
|
+
dateRange?: DateRangeValue;
|
|
25
|
+
/** @deprecated Use modelValue. */
|
|
26
|
+
dateTimeRange?: DateRangeValue;
|
|
27
|
+
/** @deprecated Use modelValue. */
|
|
28
|
+
smartRange?: DateRangeValue;
|
|
29
|
+
}
|
|
30
|
+
/** 显式模式保留 undefined;省略模式时只允许默认分支的模型。 */
|
|
31
|
+
type DateProps<M extends DatePickerMode | undefined = DatePickerMode> = Omit<DateRuntimeProps<M>, 'mode' | 'modelValue'> & ({
|
|
32
|
+
mode: M;
|
|
33
|
+
modelValue?: DateModelValue<NoInfer<M>>;
|
|
34
|
+
} | ('date' extends M ? {
|
|
35
|
+
mode?: undefined;
|
|
36
|
+
modelValue?: DateValue;
|
|
37
|
+
} : never));
|
|
38
|
+
interface DateEmits<M extends DatePickerMode | undefined = DatePickerMode> {
|
|
39
|
+
'update:modelValue': [value: DateModelValue<M>];
|
|
40
|
+
/** @deprecated Use update:modelValue with mode="date". */
|
|
41
|
+
'update:singleDate': [value: DateValue];
|
|
42
|
+
/** @deprecated Use update:modelValue with mode="datetime". */
|
|
43
|
+
'update:singleDateTime': [value: DateValue];
|
|
44
|
+
/** @deprecated Use update:modelValue with mode="daterange". */
|
|
45
|
+
'update:dateRange': [value: DateRangeValue];
|
|
46
|
+
/** @deprecated Use update:modelValue with mode="datetimerange". */
|
|
47
|
+
'update:dateTimeRange': [value: DateRangeValue];
|
|
48
|
+
/** @deprecated Use update:modelValue with mode="smart-range". */
|
|
49
|
+
'update:smartRange': [value: DateRangeValue];
|
|
50
|
+
change: [value: DateModelValue<M>];
|
|
51
|
+
}
|
|
52
|
+
interface DateExpose {
|
|
53
|
+
clearAll: () => void;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DateProps as a, DatePickerMode as i, DateExpose as n, DateRangeValue as o, DateModelValue as r, DateValue as s, DateEmits as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/components/C_Date/types.d.ts
|
|
2
|
+
type DatePickerMode = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'smart-range';
|
|
3
|
+
type DateValue = string | null;
|
|
4
|
+
type DateRangeValue = [string, string] | null;
|
|
5
|
+
/** 静态 mode 保留单值或范围;动态 mode 使用完整联合类型。 */
|
|
6
|
+
type DateModelValue<M extends DatePickerMode | undefined = DatePickerMode> = M extends 'date' | 'datetime' | undefined ? DateValue : DateRangeValue;
|
|
7
|
+
interface DateRuntimeProps<M extends DatePickerMode | undefined = DatePickerMode> {
|
|
8
|
+
modelValue?: DateModelValue<NoInfer<M>>;
|
|
9
|
+
mode?: M;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
startPlaceholder?: string;
|
|
12
|
+
endPlaceholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
disabledBeforeToday?: boolean;
|
|
15
|
+
disabledAfterToday?: boolean;
|
|
16
|
+
valueFormat?: string;
|
|
17
|
+
startDateProps?: Record<string, unknown>;
|
|
18
|
+
endDateProps?: Record<string, unknown>;
|
|
19
|
+
/** @deprecated Use modelValue. */
|
|
20
|
+
singleDate?: DateValue;
|
|
21
|
+
/** @deprecated Use modelValue. */
|
|
22
|
+
singleDateTime?: DateValue;
|
|
23
|
+
/** @deprecated Use modelValue. */
|
|
24
|
+
dateRange?: DateRangeValue;
|
|
25
|
+
/** @deprecated Use modelValue. */
|
|
26
|
+
dateTimeRange?: DateRangeValue;
|
|
27
|
+
/** @deprecated Use modelValue. */
|
|
28
|
+
smartRange?: DateRangeValue;
|
|
29
|
+
}
|
|
30
|
+
/** 显式模式保留 undefined;省略模式时只允许默认分支的模型。 */
|
|
31
|
+
type DateProps<M extends DatePickerMode | undefined = DatePickerMode> = Omit<DateRuntimeProps<M>, 'mode' | 'modelValue'> & ({
|
|
32
|
+
mode: M;
|
|
33
|
+
modelValue?: DateModelValue<NoInfer<M>>;
|
|
34
|
+
} | ('date' extends M ? {
|
|
35
|
+
mode?: undefined;
|
|
36
|
+
modelValue?: DateValue;
|
|
37
|
+
} : never));
|
|
38
|
+
interface DateEmits<M extends DatePickerMode | undefined = DatePickerMode> {
|
|
39
|
+
'update:modelValue': [value: DateModelValue<M>];
|
|
40
|
+
/** @deprecated Use update:modelValue with mode="date". */
|
|
41
|
+
'update:singleDate': [value: DateValue];
|
|
42
|
+
/** @deprecated Use update:modelValue with mode="datetime". */
|
|
43
|
+
'update:singleDateTime': [value: DateValue];
|
|
44
|
+
/** @deprecated Use update:modelValue with mode="daterange". */
|
|
45
|
+
'update:dateRange': [value: DateRangeValue];
|
|
46
|
+
/** @deprecated Use update:modelValue with mode="datetimerange". */
|
|
47
|
+
'update:dateTimeRange': [value: DateRangeValue];
|
|
48
|
+
/** @deprecated Use update:modelValue with mode="smart-range". */
|
|
49
|
+
'update:smartRange': [value: DateRangeValue];
|
|
50
|
+
change: [value: DateModelValue<M>];
|
|
51
|
+
}
|
|
52
|
+
interface DateExpose {
|
|
53
|
+
clearAll: () => void;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DateProps as a, DatePickerMode as i, DateExpose as n, DateRangeValue as o, DateModelValue as r, DateValue as s, DateEmits as t };
|
|
@@ -70,15 +70,15 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
70
70
|
};
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
|
-
change: (activeKeys: string[]) => any;
|
|
74
|
-
collapse: (key: string) => any;
|
|
75
|
-
expand: (key: string) => any;
|
|
76
73
|
"update:activeKeys": (keys: string[]) => any;
|
|
74
|
+
expand: (key: string) => any;
|
|
75
|
+
collapse: (key: string) => any;
|
|
76
|
+
change: (activeKeys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
|
-
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
80
|
-
onExpand?: ((key: string) => any) | undefined;
|
|
81
78
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
79
|
+
onExpand?: ((key: string) => any) | undefined;
|
|
80
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
83
|
activeKeys: string[];
|
|
84
84
|
defaultActiveKeys: string[];
|
|
@@ -70,15 +70,15 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
|
|
|
70
70
|
};
|
|
71
71
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
|
|
72
72
|
declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
73
|
-
change: (activeKeys: string[]) => any;
|
|
74
|
-
collapse: (key: string) => any;
|
|
75
|
-
expand: (key: string) => any;
|
|
76
73
|
"update:activeKeys": (keys: string[]) => any;
|
|
74
|
+
expand: (key: string) => any;
|
|
75
|
+
collapse: (key: string) => any;
|
|
76
|
+
change: (activeKeys: string[]) => any;
|
|
77
77
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
78
|
-
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
79
|
-
onCollapse?: ((key: string) => any) | undefined;
|
|
80
|
-
onExpand?: ((key: string) => any) | undefined;
|
|
81
78
|
"onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
|
|
79
|
+
onExpand?: ((key: string) => any) | undefined;
|
|
80
|
+
onCollapse?: ((key: string) => any) | undefined;
|
|
81
|
+
onChange?: ((activeKeys: string[]) => any) | undefined;
|
|
82
82
|
}>, {
|
|
83
83
|
activeKeys: string[];
|
|
84
84
|
defaultActiveKeys: string[];
|