@guodun/antdv 1.6.1 → 1.6.3
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/dist/es/components/dept-selector/src/DeptSelector.vue.mjs +52 -53
- package/dist/es/components/dept-selector/src/types.mjs +4 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs +67 -106
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +791 -794
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-authoring.mjs +2 -9
- package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +34 -36
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/components/pro-menu-tree/src/pro-menu-tree.mjs +108 -103
- package/dist/es/components/pro-menu-tree/src/types.mjs +4 -0
- package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +52 -53
- package/dist/es/components/pro-selector/src/types.mjs +4 -0
- package/dist/es/components/pro-selector-group/src/index.vue.mjs +50 -48
- package/dist/es/components/pro-selector-group/src/utils/index.mjs +2 -2
- package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +51 -52
- package/dist/es/components/role-selector/src/types.mjs +4 -0
- package/dist/es/components/selector-core/components/SelectionChips.mjs +5 -0
- package/dist/es/components/selector-core/components/SelectionChips.vue.mjs +114 -0
- package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +242 -233
- package/dist/es/components/selector-core/selection-theme.mjs +35 -0
- package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
- package/dist/lib/components/dept-selector/src/types.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-authoring.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/components/pro-menu-tree/src/pro-menu-tree.cjs +1 -1
- package/dist/lib/components/pro-menu-tree/src/types.cjs +1 -1
- package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
- package/dist/lib/components/pro-selector/src/types.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
- package/dist/lib/components/pro-selector-group/src/utils/index.cjs +1 -1
- package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
- package/dist/lib/components/role-selector/src/types.cjs +1 -1
- package/dist/lib/components/selector-core/components/SelectionChips.cjs +1 -0
- package/dist/lib/components/selector-core/components/SelectionChips.vue.cjs +1 -0
- package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
- package/dist/lib/components/selector-core/selection-theme.cjs +1 -0
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/theme/pro-dynamic-tags.css +1 -1
- package/dist/theme/pro-menu-tree.css +1 -1
- package/dist/theme/selector-core.css +1 -1
- package/dist/types/components/dept-selector/index.d.ts +15 -0
- package/dist/types/components/dept-selector/src/DeptSelector.vue.d.ts +9 -0
- package/dist/types/components/dept-selector/src/types.d.ts +7 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +2 -2
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-authoring.d.ts +2 -4
- package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +0 -3
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +0 -4
- package/dist/types/components/pro-dynamic-tags/src/index.vue.d.ts +2 -2
- package/dist/types/components/pro-menu-tree/index.d.ts +9 -0
- package/dist/types/components/pro-menu-tree/src/pro-menu-tree.d.ts +9 -0
- package/dist/types/components/pro-menu-tree/src/types.d.ts +7 -0
- package/dist/types/components/pro-selector/index.d.ts +59 -2
- package/dist/types/components/pro-selector/src/ProUserSelector.vue.d.ts +9 -0
- package/dist/types/components/pro-selector/src/ProUserSelectorDrilldown.vue.d.ts +28 -4
- package/dist/types/components/pro-selector/src/types.d.ts +7 -0
- package/dist/types/components/pro-selector-group/index.d.ts +3 -0
- package/dist/types/components/pro-selector-group/src/index.vue.d.ts +1 -0
- package/dist/types/components/pro-selector-group/src/types.d.ts +5 -0
- package/dist/types/components/pro-selector-group/src/utils/index.d.ts +1 -1
- package/dist/types/components/role-selector/index.d.ts +30 -0
- package/dist/types/components/role-selector/src/RoleSelector.vue.d.ts +9 -0
- package/dist/types/components/role-selector/src/types.d.ts +7 -0
- package/dist/types/components/selector-core/components/SelectionChips.vue.d.ts +16 -0
- package/dist/types/components/selector-core/components/SelectorDialog.vue.d.ts +2 -0
- package/dist/types/components/selector-core/selection-theme.d.ts +20 -0
- package/package.json +3 -3
- package/dist/es/components/pro-contract-template-designer/src/utils/clause-snippets.mjs +0 -56
- package/dist/lib/components/pro-contract-template-designer/src/utils/clause-snippets.cjs +0 -1
- package/dist/types/components/pro-contract-template-designer/src/utils/clause-snippets.d.ts +0 -10
|
@@ -17,6 +17,7 @@ declare function __VLS_template(): {
|
|
|
17
17
|
readonly variant: "B" | "A";
|
|
18
18
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
19
19
|
readonly isBuiltInRequest: boolean;
|
|
20
|
+
readonly activeColor: string;
|
|
20
21
|
readonly maxVisibleCount: number;
|
|
21
22
|
readonly hideSlot: boolean;
|
|
22
23
|
}> & Omit<{
|
|
@@ -29,6 +30,7 @@ declare function __VLS_template(): {
|
|
|
29
30
|
readonly variant: "B" | "A";
|
|
30
31
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
31
32
|
readonly isBuiltInRequest: boolean;
|
|
33
|
+
readonly activeColor: string;
|
|
32
34
|
readonly maxVisibleCount: number;
|
|
33
35
|
readonly hideSlot: boolean;
|
|
34
36
|
readonly prefix?: string | undefined;
|
|
@@ -38,7 +40,7 @@ declare function __VLS_template(): {
|
|
|
38
40
|
readonly onConfirm?: ((modelValue: import('./types').SelectUserType[]) => any) | undefined;
|
|
39
41
|
readonly "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
40
42
|
readonly "onDelete-user"?: ((id: string) => any) | undefined;
|
|
41
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "maxVisibleCount" | "hideSlot">;
|
|
43
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "activeColor" | "maxVisibleCount" | "hideSlot">;
|
|
42
44
|
$attrs: import('vue').Attrs;
|
|
43
45
|
$refs: {
|
|
44
46
|
[x: string]: unknown;
|
|
@@ -89,6 +91,10 @@ declare function __VLS_template(): {
|
|
|
89
91
|
readonly default: false;
|
|
90
92
|
};
|
|
91
93
|
readonly prefix: StringConstructor;
|
|
94
|
+
readonly activeColor: {
|
|
95
|
+
readonly type: StringConstructor;
|
|
96
|
+
readonly default: "#1161ff";
|
|
97
|
+
};
|
|
92
98
|
readonly maxVisibleCount: {
|
|
93
99
|
readonly type: NumberConstructor;
|
|
94
100
|
readonly default: 5;
|
|
@@ -123,6 +129,7 @@ declare function __VLS_template(): {
|
|
|
123
129
|
readonly variant: "B" | "A";
|
|
124
130
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
125
131
|
readonly isBuiltInRequest: boolean;
|
|
132
|
+
readonly activeColor: string;
|
|
126
133
|
readonly maxVisibleCount: number;
|
|
127
134
|
readonly hideSlot: boolean;
|
|
128
135
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -155,6 +162,7 @@ declare function __VLS_template(): {
|
|
|
155
162
|
readonly variant: "B" | "A";
|
|
156
163
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
157
164
|
readonly isBuiltInRequest: boolean;
|
|
165
|
+
readonly activeColor: string;
|
|
158
166
|
readonly maxVisibleCount: number;
|
|
159
167
|
readonly hideSlot: boolean;
|
|
160
168
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -195,6 +203,10 @@ declare function __VLS_template(): {
|
|
|
195
203
|
readonly default: false;
|
|
196
204
|
};
|
|
197
205
|
readonly prefix: StringConstructor;
|
|
206
|
+
readonly activeColor: {
|
|
207
|
+
readonly type: StringConstructor;
|
|
208
|
+
readonly default: "#1161ff";
|
|
209
|
+
};
|
|
198
210
|
readonly maxVisibleCount: {
|
|
199
211
|
readonly type: NumberConstructor;
|
|
200
212
|
readonly default: 5;
|
|
@@ -210,7 +222,7 @@ declare function __VLS_template(): {
|
|
|
210
222
|
onConfirm?: ((modelValue: import('./types').SelectUserType[]) => any) | undefined;
|
|
211
223
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
212
224
|
"onDelete-user"?: ((id: string) => any) | undefined;
|
|
213
|
-
}>, "deleteCheckedUser" | ("type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "maxVisibleCount" | "hideSlot")> & {
|
|
225
|
+
}>, "deleteCheckedUser" | ("type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "activeColor" | "maxVisibleCount" | "hideSlot")> & {
|
|
214
226
|
deleteCheckedUser: (id: string) => void;
|
|
215
227
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
216
228
|
$slots: {
|
|
@@ -237,6 +249,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
237
249
|
readonly variant: "B" | "A";
|
|
238
250
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
239
251
|
readonly isBuiltInRequest: boolean;
|
|
252
|
+
readonly activeColor: string;
|
|
240
253
|
readonly maxVisibleCount: number;
|
|
241
254
|
readonly hideSlot: boolean;
|
|
242
255
|
}> & Omit<{
|
|
@@ -249,6 +262,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
249
262
|
readonly variant: "B" | "A";
|
|
250
263
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
251
264
|
readonly isBuiltInRequest: boolean;
|
|
265
|
+
readonly activeColor: string;
|
|
252
266
|
readonly maxVisibleCount: number;
|
|
253
267
|
readonly hideSlot: boolean;
|
|
254
268
|
readonly prefix?: string | undefined;
|
|
@@ -258,7 +272,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
258
272
|
readonly onConfirm?: ((modelValue: import('./types').SelectUserType[]) => any) | undefined;
|
|
259
273
|
readonly "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
260
274
|
readonly "onDelete-user"?: ((id: string) => any) | undefined;
|
|
261
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "maxVisibleCount" | "hideSlot">;
|
|
275
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "activeColor" | "maxVisibleCount" | "hideSlot">;
|
|
262
276
|
$attrs: import('vue').Attrs;
|
|
263
277
|
$refs: {
|
|
264
278
|
[x: string]: unknown;
|
|
@@ -309,6 +323,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
309
323
|
readonly default: false;
|
|
310
324
|
};
|
|
311
325
|
readonly prefix: StringConstructor;
|
|
326
|
+
readonly activeColor: {
|
|
327
|
+
readonly type: StringConstructor;
|
|
328
|
+
readonly default: "#1161ff";
|
|
329
|
+
};
|
|
312
330
|
readonly maxVisibleCount: {
|
|
313
331
|
readonly type: NumberConstructor;
|
|
314
332
|
readonly default: 5;
|
|
@@ -343,6 +361,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
343
361
|
readonly variant: "B" | "A";
|
|
344
362
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
345
363
|
readonly isBuiltInRequest: boolean;
|
|
364
|
+
readonly activeColor: string;
|
|
346
365
|
readonly maxVisibleCount: number;
|
|
347
366
|
readonly hideSlot: boolean;
|
|
348
367
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -375,6 +394,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
375
394
|
readonly variant: "B" | "A";
|
|
376
395
|
readonly initData: () => Promise<import('./types').Department[]>;
|
|
377
396
|
readonly isBuiltInRequest: boolean;
|
|
397
|
+
readonly activeColor: string;
|
|
378
398
|
readonly maxVisibleCount: number;
|
|
379
399
|
readonly hideSlot: boolean;
|
|
380
400
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -415,6 +435,10 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
415
435
|
readonly default: false;
|
|
416
436
|
};
|
|
417
437
|
readonly prefix: StringConstructor;
|
|
438
|
+
readonly activeColor: {
|
|
439
|
+
readonly type: StringConstructor;
|
|
440
|
+
readonly default: "#1161ff";
|
|
441
|
+
};
|
|
418
442
|
readonly maxVisibleCount: {
|
|
419
443
|
readonly type: NumberConstructor;
|
|
420
444
|
readonly default: 5;
|
|
@@ -430,7 +454,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
430
454
|
onConfirm?: ((modelValue: import('./types').SelectUserType[]) => any) | undefined;
|
|
431
455
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
432
456
|
"onDelete-user"?: ((id: string) => any) | undefined;
|
|
433
|
-
}>, "deleteCheckedUser" | ("type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "maxVisibleCount" | "hideSlot")> & {
|
|
457
|
+
}>, "deleteCheckedUser" | ("type" | "title" | "visible" | "modelValue" | "maxCount" | "http" | "variant" | "initData" | "isBuiltInRequest" | "activeColor" | "maxVisibleCount" | "hideSlot")> & {
|
|
434
458
|
deleteCheckedUser: (id: string) => void;
|
|
435
459
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
436
460
|
$slots: {
|
|
@@ -49,6 +49,13 @@ export declare const UserSelectorProps: {
|
|
|
49
49
|
readonly default: false;
|
|
50
50
|
};
|
|
51
51
|
readonly prefix: StringConstructor;
|
|
52
|
+
/**
|
|
53
|
+
* 组件内部选中、激活与 focus 主色;默认不继承宿主 ConfigProvider / --primary-*。
|
|
54
|
+
*/
|
|
55
|
+
readonly activeColor: {
|
|
56
|
+
readonly type: StringConstructor;
|
|
57
|
+
readonly default: "#1161ff";
|
|
58
|
+
};
|
|
52
59
|
/**
|
|
53
60
|
* 弹框关闭后的回显最多显示数量,超出折叠为 +N;不影响 maxCount 选择上限
|
|
54
61
|
* @default 5
|
|
@@ -20,6 +20,7 @@ export declare const GdAntProSelectorGroup: import('../utils/install').SFCWithIn
|
|
|
20
20
|
type: "user" | "role" | "dept";
|
|
21
21
|
title: string;
|
|
22
22
|
isSingle: boolean;
|
|
23
|
+
activeColor: string;
|
|
23
24
|
hideSlot: boolean;
|
|
24
25
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
25
26
|
P: {};
|
|
@@ -41,6 +42,7 @@ export declare const GdAntProSelectorGroup: import('../utils/install').SFCWithIn
|
|
|
41
42
|
type: "user" | "role" | "dept";
|
|
42
43
|
title: string;
|
|
43
44
|
isSingle: boolean;
|
|
45
|
+
activeColor: string;
|
|
44
46
|
hideSlot: boolean;
|
|
45
47
|
}>;
|
|
46
48
|
__isFragment?: never;
|
|
@@ -66,6 +68,7 @@ export declare const GdAntProSelectorGroup: import('../utils/install').SFCWithIn
|
|
|
66
68
|
type: "user" | "role" | "dept";
|
|
67
69
|
title: string;
|
|
68
70
|
isSingle: boolean;
|
|
71
|
+
activeColor: string;
|
|
69
72
|
hideSlot: boolean;
|
|
70
73
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
71
74
|
$slots: {
|
|
@@ -30,6 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
30
30
|
type: "user" | "role" | "dept";
|
|
31
31
|
title: string;
|
|
32
32
|
isSingle: boolean;
|
|
33
|
+
activeColor: string;
|
|
33
34
|
hideSlot: boolean;
|
|
34
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
36
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -9,4 +9,4 @@ export declare function selectorOptionKey(type: Options['type'] | string | undef
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function normalizeSelectorOptions(value: unknown): Options[];
|
|
11
11
|
export declare function replaceSelectorOptionsForType(current: Options[], type: Options['type'], next: Options[]): Options[];
|
|
12
|
-
export declare function removeSelectorOption(current: Options[], value: string, type?: Options['type']): Options[];
|
|
12
|
+
export declare function removeSelectorOption(current: Options[], value: string, type: NonNullable<Options['type']>, defaultType?: NonNullable<Options['type']>): Options[];
|
|
@@ -23,6 +23,10 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
23
23
|
readonly default: () => void;
|
|
24
24
|
};
|
|
25
25
|
readonly prefix: StringConstructor;
|
|
26
|
+
readonly activeColor: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "#1161ff";
|
|
29
|
+
};
|
|
26
30
|
readonly valueField: {
|
|
27
31
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
28
32
|
readonly default: "roleKey";
|
|
@@ -53,6 +57,7 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
53
57
|
readonly http: any;
|
|
54
58
|
readonly isBuiltInRequest: boolean;
|
|
55
59
|
readonly valueField: "id" | "roleKey";
|
|
60
|
+
readonly activeColor: string;
|
|
56
61
|
readonly maxVisibleCount: number;
|
|
57
62
|
readonly hideSlot: boolean;
|
|
58
63
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -85,6 +90,10 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
85
90
|
readonly default: () => void;
|
|
86
91
|
};
|
|
87
92
|
readonly prefix: StringConstructor;
|
|
93
|
+
readonly activeColor: {
|
|
94
|
+
readonly type: StringConstructor;
|
|
95
|
+
readonly default: "#1161ff";
|
|
96
|
+
};
|
|
88
97
|
readonly valueField: {
|
|
89
98
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
90
99
|
readonly default: "roleKey";
|
|
@@ -110,6 +119,7 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
110
119
|
readonly http: any;
|
|
111
120
|
readonly isBuiltInRequest: boolean;
|
|
112
121
|
readonly valueField: "id" | "roleKey";
|
|
122
|
+
readonly activeColor: string;
|
|
113
123
|
readonly maxVisibleCount: number;
|
|
114
124
|
readonly hideSlot: boolean;
|
|
115
125
|
}>;
|
|
@@ -139,6 +149,10 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
139
149
|
readonly default: () => void;
|
|
140
150
|
};
|
|
141
151
|
readonly prefix: StringConstructor;
|
|
152
|
+
readonly activeColor: {
|
|
153
|
+
readonly type: StringConstructor;
|
|
154
|
+
readonly default: "#1161ff";
|
|
155
|
+
};
|
|
142
156
|
readonly valueField: {
|
|
143
157
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
144
158
|
readonly default: "roleKey";
|
|
@@ -169,6 +183,7 @@ export declare const GdAntRoleSelector: import('../utils/install').SFCWithInstal
|
|
|
169
183
|
readonly http: any;
|
|
170
184
|
readonly isBuiltInRequest: boolean;
|
|
171
185
|
readonly valueField: "id" | "roleKey";
|
|
186
|
+
readonly activeColor: string;
|
|
172
187
|
readonly maxVisibleCount: number;
|
|
173
188
|
readonly hideSlot: boolean;
|
|
174
189
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -200,6 +215,10 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
200
215
|
readonly default: () => void;
|
|
201
216
|
};
|
|
202
217
|
readonly prefix: StringConstructor;
|
|
218
|
+
readonly activeColor: {
|
|
219
|
+
readonly type: StringConstructor;
|
|
220
|
+
readonly default: "#1161ff";
|
|
221
|
+
};
|
|
203
222
|
readonly valueField: {
|
|
204
223
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
205
224
|
readonly default: "roleKey";
|
|
@@ -230,6 +249,7 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
230
249
|
readonly http: any;
|
|
231
250
|
readonly isBuiltInRequest: boolean;
|
|
232
251
|
readonly valueField: "id" | "roleKey";
|
|
252
|
+
readonly activeColor: string;
|
|
233
253
|
readonly maxVisibleCount: number;
|
|
234
254
|
readonly hideSlot: boolean;
|
|
235
255
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -262,6 +282,10 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
262
282
|
readonly default: () => void;
|
|
263
283
|
};
|
|
264
284
|
readonly prefix: StringConstructor;
|
|
285
|
+
readonly activeColor: {
|
|
286
|
+
readonly type: StringConstructor;
|
|
287
|
+
readonly default: "#1161ff";
|
|
288
|
+
};
|
|
265
289
|
readonly valueField: {
|
|
266
290
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
267
291
|
readonly default: "roleKey";
|
|
@@ -287,6 +311,7 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
287
311
|
readonly http: any;
|
|
288
312
|
readonly isBuiltInRequest: boolean;
|
|
289
313
|
readonly valueField: "id" | "roleKey";
|
|
314
|
+
readonly activeColor: string;
|
|
290
315
|
readonly maxVisibleCount: number;
|
|
291
316
|
readonly hideSlot: boolean;
|
|
292
317
|
}>;
|
|
@@ -316,6 +341,10 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
316
341
|
readonly default: () => void;
|
|
317
342
|
};
|
|
318
343
|
readonly prefix: StringConstructor;
|
|
344
|
+
readonly activeColor: {
|
|
345
|
+
readonly type: StringConstructor;
|
|
346
|
+
readonly default: "#1161ff";
|
|
347
|
+
};
|
|
319
348
|
readonly valueField: {
|
|
320
349
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
321
350
|
readonly default: "roleKey";
|
|
@@ -346,6 +375,7 @@ export declare const GdAntProRoleSelector: import('../utils/install').SFCWithIns
|
|
|
346
375
|
readonly http: any;
|
|
347
376
|
readonly isBuiltInRequest: boolean;
|
|
348
377
|
readonly valueField: "id" | "roleKey";
|
|
378
|
+
readonly activeColor: string;
|
|
349
379
|
readonly maxVisibleCount: number;
|
|
350
380
|
readonly hideSlot: boolean;
|
|
351
381
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -31,6 +31,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
31
31
|
readonly default: () => void;
|
|
32
32
|
};
|
|
33
33
|
readonly prefix: StringConstructor;
|
|
34
|
+
readonly activeColor: {
|
|
35
|
+
readonly type: StringConstructor;
|
|
36
|
+
readonly default: "#1161ff";
|
|
37
|
+
};
|
|
34
38
|
readonly valueField: {
|
|
35
39
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
36
40
|
readonly default: "roleKey";
|
|
@@ -71,6 +75,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
71
75
|
readonly default: () => void;
|
|
72
76
|
};
|
|
73
77
|
readonly prefix: StringConstructor;
|
|
78
|
+
readonly activeColor: {
|
|
79
|
+
readonly type: StringConstructor;
|
|
80
|
+
readonly default: "#1161ff";
|
|
81
|
+
};
|
|
74
82
|
readonly valueField: {
|
|
75
83
|
readonly type: import('vue').PropType<"id" | "roleKey">;
|
|
76
84
|
readonly default: "roleKey";
|
|
@@ -96,6 +104,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
96
104
|
readonly http: any;
|
|
97
105
|
readonly isBuiltInRequest: boolean;
|
|
98
106
|
readonly valueField: "id" | "roleKey";
|
|
107
|
+
readonly activeColor: string;
|
|
99
108
|
readonly maxVisibleCount: number;
|
|
100
109
|
readonly hideSlot: boolean;
|
|
101
110
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -48,6 +48,13 @@ export declare const roleSelectorProps: {
|
|
|
48
48
|
* 请求前缀,如 qy-user-service
|
|
49
49
|
*/
|
|
50
50
|
readonly prefix: StringConstructor;
|
|
51
|
+
/**
|
|
52
|
+
* 组件内部选中、激活与 focus 主色;默认不继承宿主 ConfigProvider / --primary-*。
|
|
53
|
+
*/
|
|
54
|
+
readonly activeColor: {
|
|
55
|
+
readonly type: StringConstructor;
|
|
56
|
+
readonly default: "#1161ff";
|
|
57
|
+
};
|
|
51
58
|
/**
|
|
52
59
|
* 选项 value 取值字段,id 或 roleKey
|
|
53
60
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SelectorEntity } from '../model';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: SelectorEntity[];
|
|
4
|
+
maxVisibleCount?: number;
|
|
5
|
+
addText: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
add: () => any;
|
|
9
|
+
remove: (item: SelectorEntity) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onAdd?: (() => any) | undefined;
|
|
12
|
+
onRemove?: ((item: SelectorEntity) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
maxVisibleCount: number;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -16,6 +16,7 @@ type __VLS_Props = {
|
|
|
16
16
|
roleOptions?: unknown[];
|
|
17
17
|
isBuiltInRequest?: boolean;
|
|
18
18
|
valueField?: 'id' | 'roleKey';
|
|
19
|
+
activeColor?: string;
|
|
19
20
|
modalProps?: Record<string, any>;
|
|
20
21
|
};
|
|
21
22
|
type __VLS_PublicProps = {
|
|
@@ -43,5 +44,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
43
44
|
isSingle: boolean;
|
|
44
45
|
isBuiltInRequest: boolean;
|
|
45
46
|
valueField: "id" | "roleKey";
|
|
47
|
+
activeColor: string;
|
|
46
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
49
|
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
export declare const DEFAULT_SELECTION_ACTIVE_COLOR = "#1161ff";
|
|
3
|
+
declare const SELECTION_COLOR_STEPS: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
4
|
+
type SelectionColorStep = typeof SELECTION_COLOR_STEPS[number];
|
|
5
|
+
type SelectionColorVariable = `--gd-selection-primary-${SelectionColorStep}`;
|
|
6
|
+
export type SelectionThemeStyle = CSSProperties & Record<SelectionColorVariable, string>;
|
|
7
|
+
export interface SelectionTheme {
|
|
8
|
+
color: string;
|
|
9
|
+
style: SelectionThemeStyle;
|
|
10
|
+
config: {
|
|
11
|
+
token: {
|
|
12
|
+
colorPrimary: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 为选择类组件建立独立主色边界:默认色不再继承宿主主题,显式 activeColor 才生成新色阶。
|
|
18
|
+
*/
|
|
19
|
+
export declare function createSelectionTheme(activeColor?: string): SelectionTheme;
|
|
20
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guodun/antdv",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"CHANGELOG.md",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"vite": "^8.0.1",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
54
|
"vue-tsc": "^3.2.5",
|
|
55
|
-
"@guodun/
|
|
56
|
-
"@guodun/
|
|
55
|
+
"@guodun/theme": "^1.0.1",
|
|
56
|
+
"@guodun/tsconfig": "^1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@ant-design/icons-vue": "^7.0.1",
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
//#region src/components/pro-contract-template-designer/src/utils/clause-snippets.ts
|
|
2
|
-
var e = [
|
|
3
|
-
{
|
|
4
|
-
key: "scope",
|
|
5
|
-
label: "合作范围与分工",
|
|
6
|
-
description: "明确事项、成果与各方职责",
|
|
7
|
-
prompts: [
|
|
8
|
-
"合作事项:[填写标的、服务范围及不包含的事项]。",
|
|
9
|
-
"成果清单:[列明成果名称、规格与数量]。",
|
|
10
|
-
"各方分工:[分别填写各方承担的工作与配合事项]。"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
key: "payment",
|
|
15
|
-
label: "价款与付款安排",
|
|
16
|
-
description: "梳理金额、节点与开票信息",
|
|
17
|
-
prompts: [
|
|
18
|
-
"合同价款:[填写金额、币种、计价方式及税费口径]。",
|
|
19
|
-
"付款节点:[列明每期金额、付款条件及时间]。",
|
|
20
|
-
"开票与收款:[填写发票要求、收款信息及确认方式]。"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
key: "delivery",
|
|
25
|
-
label: "交付与验收",
|
|
26
|
-
description: "对齐交付物、标准与反馈流程",
|
|
27
|
-
prompts: [
|
|
28
|
-
"交付安排:[填写交付清单、时间、地点与接收人]。",
|
|
29
|
-
"验收依据:[填写可核验的标准、方式与完成时限]。",
|
|
30
|
-
"反馈处理:[约定问题反馈、整改复验及确认流程]。"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
function t(t) {
|
|
35
|
-
let n = e.find((e) => e.key === t);
|
|
36
|
-
return n ? [
|
|
37
|
-
{
|
|
38
|
-
type: "heading",
|
|
39
|
-
attrs: { level: 2 },
|
|
40
|
-
content: [{
|
|
41
|
-
type: "text",
|
|
42
|
-
text: n.label
|
|
43
|
-
}]
|
|
44
|
-
},
|
|
45
|
-
...n.prompts.map((e) => ({
|
|
46
|
-
type: "paragraph",
|
|
47
|
-
content: [{
|
|
48
|
-
type: "text",
|
|
49
|
-
text: e
|
|
50
|
-
}]
|
|
51
|
-
})),
|
|
52
|
-
{ type: "paragraph" }
|
|
53
|
-
] : [];
|
|
54
|
-
}
|
|
55
|
-
//#endregion
|
|
56
|
-
export { e as CONTRACT_CLAUSE_SNIPPETS, t as buildContractClauseSnippet };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=[{key:`scope`,label:`合作范围与分工`,description:`明确事项、成果与各方职责`,prompts:[`合作事项:[填写标的、服务范围及不包含的事项]。`,`成果清单:[列明成果名称、规格与数量]。`,`各方分工:[分别填写各方承担的工作与配合事项]。`]},{key:`payment`,label:`价款与付款安排`,description:`梳理金额、节点与开票信息`,prompts:[`合同价款:[填写金额、币种、计价方式及税费口径]。`,`付款节点:[列明每期金额、付款条件及时间]。`,`开票与收款:[填写发票要求、收款信息及确认方式]。`]},{key:`delivery`,label:`交付与验收`,description:`对齐交付物、标准与反馈流程`,prompts:[`交付安排:[填写交付清单、时间、地点与接收人]。`,`验收依据:[填写可核验的标准、方式与完成时限]。`,`反馈处理:[约定问题反馈、整改复验及确认流程]。`]}];function t(t){let n=e.find(e=>e.key===t);return n?[{type:`heading`,attrs:{level:2},content:[{type:`text`,text:n.label}]},...n.prompts.map(e=>({type:`paragraph`,content:[{type:`text`,text:e}]})),{type:`paragraph`}]:[]}exports.CONTRACT_CLAUSE_SNIPPETS=e,exports.buildContractClauseSnippet=t;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { JSONContent } from '@tiptap/core';
|
|
2
|
-
import { ContractTemplateClauseSnippetKey } from '../types';
|
|
3
|
-
/** 结构提示而非法律结论;插入后均为普通标题 / 段落,由编写人按实际约定填写。 */
|
|
4
|
-
export declare const CONTRACT_CLAUSE_SNIPPETS: ReadonlyArray<{
|
|
5
|
-
key: ContractTemplateClauseSnippetKey;
|
|
6
|
-
label: string;
|
|
7
|
-
description: string;
|
|
8
|
-
prompts: readonly string[];
|
|
9
|
-
}>;
|
|
10
|
-
export declare function buildContractClauseSnippet(key: ContractTemplateClauseSnippetKey): JSONContent[];
|