@guodun/antdv 1.2.0 → 1.2.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.
Files changed (36) hide show
  1. package/dist/es/components/index.mjs +3 -0
  2. package/dist/es/components/pro-menu-tree/index.mjs +8 -0
  3. package/dist/es/components/pro-menu-tree/src/hooks.mjs +183 -0
  4. package/dist/es/components/pro-menu-tree/src/pro-menu-tree.mjs +223 -0
  5. package/dist/es/components/pro-menu-tree/src/style/index.mjs +2 -0
  6. package/dist/es/components/pro-menu-tree/src/types.mjs +78 -0
  7. package/dist/es/components/pro-modal/index.mjs +1 -0
  8. package/dist/es/components/pro-modal/src/ProModal.vue.mjs +25 -25
  9. package/dist/es/components/pro-modal/src/types.mjs +5 -1
  10. package/dist/es/components/role-selector/src/role.mjs +99 -95
  11. package/dist/es/index.mjs +52 -49
  12. package/dist/lib/components/index.cjs +1 -1
  13. package/dist/lib/components/pro-menu-tree/index.cjs +1 -0
  14. package/dist/lib/components/pro-menu-tree/src/hooks.cjs +1 -0
  15. package/dist/lib/components/pro-menu-tree/src/pro-menu-tree.cjs +1 -0
  16. package/dist/lib/components/pro-menu-tree/src/style/index.cjs +1 -0
  17. package/dist/lib/components/pro-menu-tree/src/types.cjs +1 -0
  18. package/dist/lib/components/pro-modal/index.cjs +1 -1
  19. package/dist/lib/components/pro-modal/src/ProModal.vue.cjs +1 -1
  20. package/dist/lib/components/pro-modal/src/types.cjs +1 -1
  21. package/dist/lib/components/role-selector/src/role.cjs +1 -1
  22. package/dist/lib/index.cjs +1 -1
  23. package/dist/theme/icon.css +1 -1
  24. package/dist/theme/index.css +1 -1
  25. package/dist/theme/pro-menu-tree.css +1 -0
  26. package/dist/types/components/index.d.ts +1 -0
  27. package/dist/types/components/pro-menu-tree/index.d.ts +168 -0
  28. package/dist/types/components/pro-menu-tree/src/hooks.d.ts +6699 -0
  29. package/dist/types/components/pro-menu-tree/src/pro-menu-tree.d.ts +168 -0
  30. package/dist/types/components/pro-menu-tree/src/types.d.ts +171 -0
  31. package/dist/types/components/pro-modal/index.d.ts +13 -11
  32. package/dist/types/components/pro-modal/src/Modal.d.ts +2 -2
  33. package/dist/types/components/pro-modal/src/ProModal.vue.d.ts +4 -4
  34. package/dist/types/components/pro-modal/src/types.d.ts +5 -0
  35. package/global.d.ts +1 -0
  36. package/package.json +25 -21
@@ -0,0 +1,168 @@
1
+ import { MenuTreeNode, MenuTreeSelectedStatus } from './types';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ readonly modelValue: {
4
+ readonly type: import('vue').PropType<string[]>;
5
+ readonly default: () => never[];
6
+ };
7
+ readonly treeData: {
8
+ readonly type: import('vue').PropType<MenuTreeNode[]>;
9
+ readonly default: () => never[];
10
+ };
11
+ readonly fieldNames: {
12
+ readonly type: import('vue').PropType<import('./types').MenuTreeFieldNames>;
13
+ readonly default: () => {
14
+ title: string;
15
+ key: string;
16
+ children: string;
17
+ };
18
+ };
19
+ readonly nodeTypeField: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "menuType";
22
+ };
23
+ readonly buttonType: {
24
+ readonly type: StringConstructor;
25
+ readonly default: "button";
26
+ };
27
+ readonly iconField: {
28
+ readonly type: StringConstructor;
29
+ readonly default: "menuIcon";
30
+ };
31
+ readonly isBuiltInRequest: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ readonly http: {
36
+ readonly type: import('vue').PropType<import('./types').ProMenuTreeHttpClient>;
37
+ readonly default: () => void;
38
+ };
39
+ readonly prefix: StringConstructor;
40
+ readonly defaultExpandAll: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: true;
43
+ };
44
+ readonly searchable: {
45
+ readonly type: BooleanConstructor;
46
+ readonly default: false;
47
+ };
48
+ readonly showToolbar: {
49
+ readonly type: BooleanConstructor;
50
+ readonly default: false;
51
+ };
52
+ readonly showStats: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ readonly showExpandActions: {
57
+ readonly type: BooleanConstructor;
58
+ readonly default: undefined;
59
+ };
60
+ readonly showClearAction: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: undefined;
63
+ };
64
+ readonly showRefreshAction: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: true;
67
+ };
68
+ readonly disabled: {
69
+ readonly type: BooleanConstructor;
70
+ readonly default: false;
71
+ };
72
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
73
+ 'update:modelValue': (_value: string[]) => boolean;
74
+ ready: () => boolean;
75
+ change: (_value: MenuTreeSelectedStatus[]) => boolean;
76
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
77
+ readonly modelValue: {
78
+ readonly type: import('vue').PropType<string[]>;
79
+ readonly default: () => never[];
80
+ };
81
+ readonly treeData: {
82
+ readonly type: import('vue').PropType<MenuTreeNode[]>;
83
+ readonly default: () => never[];
84
+ };
85
+ readonly fieldNames: {
86
+ readonly type: import('vue').PropType<import('./types').MenuTreeFieldNames>;
87
+ readonly default: () => {
88
+ title: string;
89
+ key: string;
90
+ children: string;
91
+ };
92
+ };
93
+ readonly nodeTypeField: {
94
+ readonly type: StringConstructor;
95
+ readonly default: "menuType";
96
+ };
97
+ readonly buttonType: {
98
+ readonly type: StringConstructor;
99
+ readonly default: "button";
100
+ };
101
+ readonly iconField: {
102
+ readonly type: StringConstructor;
103
+ readonly default: "menuIcon";
104
+ };
105
+ readonly isBuiltInRequest: {
106
+ readonly type: BooleanConstructor;
107
+ readonly default: false;
108
+ };
109
+ readonly http: {
110
+ readonly type: import('vue').PropType<import('./types').ProMenuTreeHttpClient>;
111
+ readonly default: () => void;
112
+ };
113
+ readonly prefix: StringConstructor;
114
+ readonly defaultExpandAll: {
115
+ readonly type: BooleanConstructor;
116
+ readonly default: true;
117
+ };
118
+ readonly searchable: {
119
+ readonly type: BooleanConstructor;
120
+ readonly default: false;
121
+ };
122
+ readonly showToolbar: {
123
+ readonly type: BooleanConstructor;
124
+ readonly default: false;
125
+ };
126
+ readonly showStats: {
127
+ readonly type: BooleanConstructor;
128
+ readonly default: false;
129
+ };
130
+ readonly showExpandActions: {
131
+ readonly type: BooleanConstructor;
132
+ readonly default: undefined;
133
+ };
134
+ readonly showClearAction: {
135
+ readonly type: BooleanConstructor;
136
+ readonly default: undefined;
137
+ };
138
+ readonly showRefreshAction: {
139
+ readonly type: BooleanConstructor;
140
+ readonly default: true;
141
+ };
142
+ readonly disabled: {
143
+ readonly type: BooleanConstructor;
144
+ readonly default: false;
145
+ };
146
+ }>> & Readonly<{
147
+ "onUpdate:modelValue"?: ((_value: string[]) => any) | undefined;
148
+ onChange?: ((_value: MenuTreeSelectedStatus[]) => any) | undefined;
149
+ onReady?: (() => any) | undefined;
150
+ }>, {
151
+ readonly disabled: boolean;
152
+ readonly modelValue: string[];
153
+ readonly fieldNames: import('./types').MenuTreeFieldNames;
154
+ readonly http: import('./types').ProMenuTreeHttpClient;
155
+ readonly isBuiltInRequest: boolean;
156
+ readonly treeData: MenuTreeNode[];
157
+ readonly defaultExpandAll: boolean;
158
+ readonly nodeTypeField: string;
159
+ readonly buttonType: string;
160
+ readonly iconField: string;
161
+ readonly searchable: boolean;
162
+ readonly showToolbar: boolean;
163
+ readonly showStats: boolean;
164
+ readonly showExpandActions: boolean;
165
+ readonly showClearAction: boolean;
166
+ readonly showRefreshAction: boolean;
167
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
168
+ export default _default;
@@ -0,0 +1,171 @@
1
+ import { CSSProperties, ExtractPropTypes, PropType } from 'vue';
2
+ export type MenuTreeNodeValue = string | number | boolean | null | undefined | MenuTreeNode[] | CSSProperties | Record<string, unknown>;
3
+ /**
4
+ * 菜单 / 权限树节点
5
+ * 保留后端 MenuItem 的主要字段,并以索引签名兼容 fieldNames 自定义映射。
6
+ */
7
+ export interface MenuTreeNode {
8
+ /** 唯一键(默认取 id) */
9
+ id?: string;
10
+ /** 显示文本(默认取 menuTitle) */
11
+ menuTitle?: string;
12
+ /** 节点类型,'menu' | 'catalog' | 'button'(默认取 menuType) */
13
+ menuType?: string;
14
+ /** 图标标识(默认取 menuIcon),透传给 #icon 插槽 */
15
+ menuIcon?: string;
16
+ /** 子节点(默认取 children) */
17
+ children?: MenuTreeNode[] | null;
18
+ [key: string]: MenuTreeNodeValue;
19
+ }
20
+ /** 字段映射 */
21
+ export interface MenuTreeFieldNames {
22
+ /** 显示文本字段 */
23
+ title: string;
24
+ /** 唯一键字段 */
25
+ key: string;
26
+ /** 子节点字段 */
27
+ children: string;
28
+ }
29
+ /** 提交用的选中状态项(含半选节点,selected 恒为 true) */
30
+ export interface MenuTreeSelectedStatus {
31
+ id: string;
32
+ selected: boolean;
33
+ }
34
+ /** Ant Design Vue Tree 的受控勾选结构 */
35
+ export interface MenuTreeCheckedState {
36
+ checked: string[];
37
+ halfChecked: string[];
38
+ }
39
+ /** 内置请求需要的最小 http 实例契约 */
40
+ export interface ProMenuTreeHttpClient {
41
+ get<T = unknown>(url: string): Promise<T>;
42
+ }
43
+ /** 内置菜单树接口响应契约 */
44
+ export interface ProMenuTreeResponse {
45
+ status: number;
46
+ data?: MenuTreeNode[] | null;
47
+ msg?: string;
48
+ message?: string;
49
+ }
50
+ /** 组件对外暴露的方法 */
51
+ export interface ProMenuTreeExpose {
52
+ /** 导出 checked + halfChecked 的选中状态数组 */
53
+ getSelectedStatusArray: () => MenuTreeSelectedStatus[];
54
+ /** 按 v-model 同语义回显 checked + halfChecked id */
55
+ setCheckedKeysFromIds: (selectedIds: string[]) => void;
56
+ /** 全选全部非按钮节点 */
57
+ selectAll: () => void;
58
+ /** 反选全部非按钮节点 */
59
+ selectInverse: () => void;
60
+ /** 清空勾选 */
61
+ clearChecked: () => void;
62
+ /** 展开全部可展开节点 */
63
+ expandAll: () => void;
64
+ /** 收起全部节点 */
65
+ collapseAll: () => void;
66
+ /** 重新加载内置请求数据,非内置请求下不发请求 */
67
+ reload: () => Promise<void>;
68
+ }
69
+ export declare const proMenuTreeProps: {
70
+ /**
71
+ * v-model:选中节点的 id 数组(包含半选节点)。
72
+ * 与回显入参、`setCheckedKeysFromIds` 的参数语义对称。
73
+ */
74
+ readonly modelValue: {
75
+ readonly type: PropType<string[]>;
76
+ readonly default: () => never[];
77
+ };
78
+ /** 直接传入的树数据(未开启内置请求时使用) */
79
+ readonly treeData: {
80
+ readonly type: PropType<MenuTreeNode[]>;
81
+ readonly default: () => never[];
82
+ };
83
+ /** 字段映射,默认对齐后端菜单结构 */
84
+ readonly fieldNames: {
85
+ readonly type: PropType<MenuTreeFieldNames>;
86
+ readonly default: () => {
87
+ title: string;
88
+ key: string;
89
+ children: string;
90
+ };
91
+ };
92
+ /** 节点类型字段名(用于识别「按钮」节点) */
93
+ readonly nodeTypeField: {
94
+ readonly type: StringConstructor;
95
+ readonly default: "menuType";
96
+ };
97
+ /** 视为「按钮」的节点类型值:按钮节点横向内联展示、不计入父级全选 */
98
+ readonly buttonType: {
99
+ readonly type: StringConstructor;
100
+ readonly default: "button";
101
+ };
102
+ /** 图标字段名(透传给 #icon 插槽的取值字段) */
103
+ readonly iconField: {
104
+ readonly type: StringConstructor;
105
+ readonly default: "menuIcon";
106
+ };
107
+ /**
108
+ * 是否使用内置请求,内置请求会走用户中心即
109
+ * `${prefix}/qy/menu/whole/tree`
110
+ */
111
+ readonly isBuiltInRequest: {
112
+ readonly type: BooleanConstructor;
113
+ readonly default: false;
114
+ };
115
+ /** axios 实例(开启内置请求时必传) */
116
+ readonly http: {
117
+ readonly type: PropType<ProMenuTreeHttpClient>;
118
+ readonly default: () => void;
119
+ };
120
+ /** 请求前缀,如 qy-user-service */
121
+ readonly prefix: StringConstructor;
122
+ /** 是否默认展开全部节点 */
123
+ readonly defaultExpandAll: {
124
+ readonly type: BooleanConstructor;
125
+ readonly default: true;
126
+ };
127
+ /** 是否显示搜索框 */
128
+ readonly searchable: {
129
+ readonly type: BooleanConstructor;
130
+ readonly default: false;
131
+ };
132
+ /** 是否显示「全选 / 反选」工具栏 */
133
+ readonly showToolbar: {
134
+ readonly type: BooleanConstructor;
135
+ readonly default: false;
136
+ };
137
+ /** 是否显示已选 / 半选统计 */
138
+ readonly showStats: {
139
+ readonly type: BooleanConstructor;
140
+ readonly default: false;
141
+ };
142
+ /** 是否显示展开全部 / 收起全部;默认跟随 showToolbar */
143
+ readonly showExpandActions: {
144
+ readonly type: BooleanConstructor;
145
+ readonly default: undefined;
146
+ };
147
+ /** 是否显示清空;默认跟随 showToolbar */
148
+ readonly showClearAction: {
149
+ readonly type: BooleanConstructor;
150
+ readonly default: undefined;
151
+ };
152
+ /** 是否显示刷新;仅开启内置请求时生效 */
153
+ readonly showRefreshAction: {
154
+ readonly type: BooleanConstructor;
155
+ readonly default: true;
156
+ };
157
+ /** 是否禁用勾选 */
158
+ readonly disabled: {
159
+ readonly type: BooleanConstructor;
160
+ readonly default: false;
161
+ };
162
+ };
163
+ /** 默认菜单树接口地址(后续更换接口仅需改此常量) */
164
+ export declare const MENU_TREE_URL = "/qy/menu/whole/tree";
165
+ export declare const proMenuTreeEmits: {
166
+ 'update:modelValue': (_value: string[]) => boolean;
167
+ ready: () => boolean;
168
+ change: (_value: MenuTreeSelectedStatus[]) => boolean;
169
+ };
170
+ export type ProMenuTreeProps = ExtractPropTypes<typeof proMenuTreeProps>;
171
+ export type ProMenuTreeEmits = typeof proMenuTreeEmits;
@@ -1,4 +1,6 @@
1
1
  export * from './hooks/useProModal';
2
+ export { proModalEmits } from './src/types';
3
+ export type { ProModalSlots } from './src/types';
2
4
  export declare const GdAntProModal: import('../utils/install').SFCWithInstall<{
3
5
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
6
  modalProps: {
@@ -15,13 +17,13 @@ export declare const GdAntProModal: import('../utils/install').SFCWithInstall<{
15
17
  readonly required: true;
16
18
  };
17
19
  }>> & Readonly<{
18
- onOnCancel?: ((...args: any[]) => any) | undefined;
19
- onOnConfirm?: ((...args: any[]) => any) | undefined;
20
+ onOnCancel?: (() => any) | undefined;
20
21
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
+ onOnConfirm?: (() => any) | undefined;
21
23
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
- onCancel: (...args: any[]) => void;
23
- onConfirm: (...args: any[]) => void;
24
+ onCancel: () => void;
24
25
  "update:modelValue": (value: boolean) => void;
26
+ onConfirm: () => void;
25
27
  }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
26
28
  modalTitleRef: HTMLDivElement;
27
29
  }, any, import('vue').ComponentProvideOptions, {
@@ -46,9 +48,9 @@ export declare const GdAntProModal: import('../utils/install').SFCWithInstall<{
46
48
  readonly required: true;
47
49
  };
48
50
  }>> & Readonly<{
49
- onOnCancel?: ((...args: any[]) => any) | undefined;
50
- onOnConfirm?: ((...args: any[]) => any) | undefined;
51
+ onOnCancel?: (() => any) | undefined;
51
52
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
53
+ onOnConfirm?: (() => any) | undefined;
52
54
  }>, {}, {}, {}, {}, {}>;
53
55
  __isFragment?: never;
54
56
  __isTeleport?: never;
@@ -68,14 +70,14 @@ export declare const GdAntProModal: import('../utils/install').SFCWithInstall<{
68
70
  readonly required: true;
69
71
  };
70
72
  }>> & Readonly<{
71
- onOnCancel?: ((...args: any[]) => any) | undefined;
72
- onOnConfirm?: ((...args: any[]) => any) | undefined;
73
+ onOnCancel?: (() => any) | undefined;
73
74
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
75
+ onOnConfirm?: (() => any) | undefined;
74
76
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
75
- onCancel: (...args: any[]) => void;
76
- onConfirm: (...args: any[]) => void;
77
+ onCancel: () => void;
77
78
  "update:modelValue": (value: boolean) => void;
79
+ onConfirm: () => void;
78
80
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
79
- $slots: Readonly<import('./src/types').ProModalSlots> & import('./src/types').ProModalSlots;
81
+ $slots: Readonly<import('.').ProModalSlots> & import('.').ProModalSlots;
80
82
  })>;
81
83
  export default GdAntProModal;
@@ -12,7 +12,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
12
  readonly type: StringConstructor;
13
13
  readonly required: true;
14
14
  };
15
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onCancel" | "onConfirm" | "update:modelValue")[], "onCancel" | "onConfirm" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onCancel" | "update:modelValue" | "onConfirm")[], "onCancel" | "update:modelValue" | "onConfirm", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
16
  readonly modalProps: {
17
17
  readonly type: import('vue').PropType<Omit<import('ant-design-vue').ModalFuncProps & {
18
18
  confirmLoading?: boolean;
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  };
29
29
  }>> & Readonly<{
30
30
  onOnCancel?: ((...args: any[]) => any) | undefined;
31
- onOnConfirm?: ((...args: any[]) => any) | undefined;
32
31
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
+ onOnConfirm?: ((...args: any[]) => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
34
  export default _default;
@@ -23,9 +23,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
23
23
  readonly required: true;
24
24
  };
25
25
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
- onCancel: (...args: any[]) => void;
27
- onConfirm: (...args: any[]) => void;
26
+ onCancel: () => void;
28
27
  "update:modelValue": (value: boolean) => void;
28
+ onConfirm: () => void;
29
29
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
30
  modalProps: {
31
31
  readonly type: import('vue').PropType<Omit<import('ant-design-vue').ModalFuncProps & {
@@ -41,9 +41,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
41
41
  readonly required: true;
42
42
  };
43
43
  }>> & Readonly<{
44
- onOnCancel?: ((...args: any[]) => any) | undefined;
45
- onOnConfirm?: ((...args: any[]) => any) | undefined;
44
+ onOnCancel?: (() => any) | undefined;
46
45
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
46
+ onOnConfirm?: (() => any) | undefined;
47
47
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
48
48
  modalTitleRef: HTMLDivElement;
49
49
  }, any>;
@@ -16,6 +16,11 @@ export declare const ProModalProps: {
16
16
  readonly required: true;
17
17
  };
18
18
  };
19
+ export declare const proModalEmits: {
20
+ readonly 'update:modelValue': (value: boolean) => boolean;
21
+ readonly onConfirm: () => boolean;
22
+ readonly onCancel: () => boolean;
23
+ };
19
24
  export interface ProModalSlots {
20
25
  /**
21
26
  * 自定义标题
package/global.d.ts CHANGED
@@ -17,6 +17,7 @@ declare module 'vue' {
17
17
  GdAntProFormRender: typeof import('@guodun/antdv')['GdAntProFormRender']
18
18
  GdAntProInputTag: typeof import('@guodun/antdv')['GdAntProInputTag']
19
19
  GdAntProLoading: typeof import('@guodun/antdv')['GdAntProLoading']
20
+ GdAntProMenuTree: typeof import('@guodun/antdv')['GdAntProMenuTree']
20
21
  GdAntProModal: typeof import('@guodun/antdv')['GdAntProModal']
21
22
  GdAntProOverlay: typeof import('@guodun/antdv')['GdAntProOverlay']
22
23
  GdAntProPicker: typeof import('@guodun/antdv')['GdAntProPicker']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guodun/antdv",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "CHANGELOG.md",
@@ -33,38 +33,42 @@
33
33
  "**/*.scss",
34
34
  "**/style/**"
35
35
  ],
36
- "scripts": {
37
- "build": "vite build && vite build --config vite.theme.config.ts"
38
- },
39
36
  "publishConfig": {
40
37
  "access": "public",
41
38
  "registry": "https://registry.npmjs.org/"
42
39
  },
43
40
  "peerDependencies": {
44
- "vue": "catalog:"
41
+ "vue": "^3.5.18"
45
42
  },
46
43
  "devDependencies": {
47
- "@guodun/theme": "workspace:^",
48
- "@guodun/tsconfig": "workspace:^",
49
44
  "@types/lodash-es": "^4.17.12",
50
- "@types/node": "catalog:",
51
- "@vitejs/plugin-vue": "catalog:",
52
- "@vitejs/plugin-vue-jsx": "catalog:",
45
+ "@types/node": "^24.12.0",
46
+ "@vitejs/plugin-vue": "^6.0.5",
47
+ "@vitejs/plugin-vue-jsx": "^5.1.5",
53
48
  "@vue/tsconfig": "^0.9.0",
54
- "sass": "catalog:",
55
- "typescript": "catalog:",
56
- "vite": "catalog:",
49
+ "sass": "^1.93.2",
50
+ "typescript": "~5.9.3",
51
+ "vite": "^8.0.1",
57
52
  "vite-plugin-dts": "^4.5.4",
58
- "vue-tsc": "catalog:"
53
+ "vue-tsc": "^3.2.5",
54
+ "@guodun/theme": "^1.0.1",
55
+ "@guodun/tsconfig": "^1.0.0"
59
56
  },
60
57
  "dependencies": {
61
- "@guodun/utils": "workspace:^",
62
- "@vueuse/core": "catalog:",
63
- "@vueuse/shared": "catalog:",
64
- "ant-design-vue": "catalog:",
58
+ "@vueuse/core": "^14.2.1",
59
+ "@vueuse/shared": "^14.2.1",
60
+ "ant-design-vue": "^4.2.6",
65
61
  "evtd": "^0.2.4",
66
- "lodash-es": "catalog:",
62
+ "lodash-es": "^4.17.21",
67
63
  "mitt": "^3.0.1",
68
- "vue": "catalog:"
64
+ "vue": "^3.5.18",
65
+ "@guodun/utils": "^1.0.0"
66
+ },
67
+ "scripts": {
68
+ "build": "vite build && vite build --config vite.theme.config.ts",
69
+ "pack:release": "pnpm pack",
70
+ "validate:release": "node ../../scripts/base/validate-publish-tarball.mjs guodun-antdv-$(node -p \"require('./package.json').version\").tgz",
71
+ "publish:release": "pnpm run pack:release && pnpm run validate:release && pnpm publish guodun-antdv-$(node -p \"require('./package.json').version\").tgz --no-git-checks && rm -f guodun-antdv-*.tgz",
72
+ "release": "pnpm run build && pnpm run publish:release"
69
73
  }
70
- }
74
+ }