@jt-home/mfe-components 1.0.9 → 1.0.11
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/JtAttachmentPreview/style.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2120 -1632
- package/dist/style.css +1 -1
- package/dist/types/components/form/item/JtCascader/cascaderProps.d.ts +11 -0
- package/dist/types/components/form/item/JtCascader/index.vue.d.ts +4 -6
- package/dist/types/components/form/item/JtSelect/index.vue.d.ts +4 -4
- package/dist/types/components/globalInfo/components/GlobalInfoGroup.vue.d.ts +8 -1
- package/dist/types/components/globalInfo/components/GlobalInfoProvider.vue.d.ts +2 -8
- package/dist/types/components/globalInfo/components/GlobalInfoSectionBlock.vue.d.ts +8 -1
- package/dist/types/components/globalInfo/components/GlobalInfoSectionOutlet.vue.d.ts +3 -1
- package/dist/types/components/globalInfo/components/GlobalInfoSections.vue.d.ts +5 -1
- package/dist/types/components/globalInfo/controller/controllerFieldOptions.d.ts +11 -0
- package/dist/types/components/globalInfo/controller/controllerIdentity.d.ts +10 -0
- package/dist/types/components/globalInfo/controller/controllerRequests.d.ts +37 -0
- package/dist/types/components/globalInfo/controller/controllerSectionStore.d.ts +21 -0
- package/dist/types/components/globalInfo/controller/controllerStatus.d.ts +2 -0
- package/dist/types/components/globalInfo/controller/useGlobalInfoController.d.ts +2 -1
- package/dist/types/components/globalInfo/index.d.ts +1 -1
- package/dist/types/components/globalInfo/model/fieldUtils.d.ts +14 -2
- package/dist/types/components/globalInfo/model/types.d.ts +135 -3
- package/dist/types/components/globalInfo/renderers/GlobalInfoAutoRenderer.vue.d.ts +2 -1
- package/dist/types/components/globalInfo/renderers/GlobalInfoFormRenderer.vue.d.ts +2 -1
- package/dist/types/components/globalInfo/renderers/GlobalInfoTableRenderer.vue.d.ts +4 -3
- package/dist/types/components/globalInfo/renderers/optionPreload.d.ts +4 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/table/JtCrudTable.vue.d.ts +12 -12
- package/dist/types/components/table/JtFilterBar.vue.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/package.json +87 -87
- package/readme.md +663 -663
|
@@ -6,13 +6,82 @@ export type GlobalInfoPrimitive = string | number | boolean | null;
|
|
|
6
6
|
export type GlobalInfoFieldValue = unknown;
|
|
7
7
|
/** 信息集最终渲染类型:表单、表格、文本、HTML、代码、多行、空态或文件。 */
|
|
8
8
|
export type GlobalInfoRenderType = 'form' | 'table' | 'text' | 'html' | 'code' | 'multi-row' | 'empty' | 'file';
|
|
9
|
+
/** 字段动态隐藏方法上下文,values 是当前表单或当前表格行的完整值。 */
|
|
10
|
+
export interface GlobalInfoFieldHiddenContext {
|
|
11
|
+
/** 当前字段定义。 */
|
|
12
|
+
field: GlobalInfoField;
|
|
13
|
+
/** 当前字段所属 section。 */
|
|
14
|
+
section?: GlobalInfoSection | null;
|
|
15
|
+
/** 当前表单或表格行的所有字段值。 */
|
|
16
|
+
values: GlobalInfoRawRecord;
|
|
17
|
+
/** values 的语义别名,方便页面配置时读起来更直观。 */
|
|
18
|
+
allValues: GlobalInfoRawRecord;
|
|
19
|
+
/** 当前字段值。 */
|
|
20
|
+
value: unknown;
|
|
21
|
+
/** value 的语义别名。 */
|
|
22
|
+
currentValue: unknown;
|
|
23
|
+
/** 表格场景下的完整行数据;表单场景为空数组。 */
|
|
24
|
+
rows?: GlobalInfoRawRecord[];
|
|
25
|
+
}
|
|
26
|
+
/** 返回 true 时隐藏当前字段。 */
|
|
27
|
+
export type GlobalInfoFieldHiddenRule = (context: GlobalInfoFieldHiddenContext) => boolean;
|
|
28
|
+
/** 字段业务变更回调上下文,组件只提供现场数据,具体联动规则由外部业务决定。 */
|
|
29
|
+
export interface GlobalInfoFieldBusinessChangeContext {
|
|
30
|
+
/** 当前字段定义。 */
|
|
31
|
+
field: GlobalInfoField;
|
|
32
|
+
/** 当前字段值。 */
|
|
33
|
+
value: unknown;
|
|
34
|
+
/** 当前字段所在 section。 */
|
|
35
|
+
section?: GlobalInfoSection | null;
|
|
36
|
+
/** 当前信息集模型,表格场景下是当前行合并 section model 后的值。 */
|
|
37
|
+
model: GlobalInfoRawRecord;
|
|
38
|
+
/** 当前信息集值的语义别名,便于表单和表格共用业务逻辑。 */
|
|
39
|
+
values: GlobalInfoRawRecord;
|
|
40
|
+
/** 表格场景下的当前行数据,表单场景不传。 */
|
|
41
|
+
row?: GlobalInfoRawRecord;
|
|
42
|
+
/** 表格场景下的当前行下标,表单场景不传。 */
|
|
43
|
+
rowIndex?: number;
|
|
44
|
+
/** 表格场景下的完整 rows,已包含本次字段变更。 */
|
|
45
|
+
rows?: GlobalInfoRawRecord[];
|
|
46
|
+
/** 所有已加载 section,方便外部判断跨信息集联动。 */
|
|
47
|
+
sections: GlobalInfoSection[];
|
|
48
|
+
/** 所有已加载信息集的当前值,key/setId/infSetId 都会指向同一份值。 */
|
|
49
|
+
sectionValues: Record<string, GlobalInfoRawRecord | GlobalInfoRawRecord[]>;
|
|
50
|
+
/** 当前整体视图模型。 */
|
|
51
|
+
viewModel?: GlobalInfoViewModel | null;
|
|
52
|
+
/** 当前激活节点。 */
|
|
53
|
+
activeNode?: GlobalInfoNode | null;
|
|
54
|
+
/** 当前字段归属节点。 */
|
|
55
|
+
node?: GlobalInfoNode | null;
|
|
56
|
+
/** controller 动作集合,外部业务可自行决定是否触发刷新或更新。 */
|
|
57
|
+
actions: GlobalInfoActions;
|
|
58
|
+
/** 当前值命中的第一个下拉选项,未命中时为空。 */
|
|
59
|
+
selectedOption?: GlobalInfoFieldOption;
|
|
60
|
+
/** 当前值命中的全部下拉选项,多选场景可直接使用。 */
|
|
61
|
+
selectedOptions: GlobalInfoFieldOption[];
|
|
62
|
+
}
|
|
63
|
+
/** 字段业务变更回调;组件不内置联动策略,只把上下文交给外部。 */
|
|
64
|
+
export type GlobalInfoFieldBusinessChangeHandler = (context: GlobalInfoFieldBusinessChangeContext) => void | Promise<void>;
|
|
65
|
+
/** globalInfo 默认渲染器配置,字段隐藏只保留 hiddenRule 一种方式,避免多套规则互相覆盖。 */
|
|
66
|
+
export interface GlobalInfoRenderConfig {
|
|
67
|
+
/** 字段隐藏方法;字段值变化后 computed 会重新执行,返回 true 时隐藏当前字段。 */
|
|
68
|
+
hiddenRule?: GlobalInfoFieldHiddenRule;
|
|
69
|
+
/** 字段业务变更回调,用于把字段变更现场交给外部业务处理。 */
|
|
70
|
+
onFieldBusinessChange?: GlobalInfoFieldBusinessChangeHandler;
|
|
71
|
+
/** 序号列表头文案。 */
|
|
72
|
+
sequenceLabel?: string;
|
|
73
|
+
/** 序号列宽度。 */
|
|
74
|
+
sequenceWidth?: string | number;
|
|
75
|
+
/** 序号起始值,默认从 1 开始。 */
|
|
76
|
+
sequenceStart?: number;
|
|
77
|
+
}
|
|
9
78
|
/** 后端 operationInfo 里的接口描述,页面不用解析,交给 service.requestOperation 执行。 */
|
|
10
79
|
export interface GlobalInfoApiOperation {
|
|
11
80
|
/** 请求方法,例如 post/get。 */
|
|
12
81
|
method?: string;
|
|
13
82
|
/** 请求地址,通常来自后端 operationInfo。 */
|
|
14
83
|
url?: string;
|
|
15
|
-
/**
|
|
84
|
+
/** 请求参数模板;组件原样透传,业务侧可通过 formatOperationParams 生成最终参数。 */
|
|
16
85
|
params?: GlobalInfoRawRecord;
|
|
17
86
|
/** 保留后端扩展字段,例如 javaApi、headers 等。 */
|
|
18
87
|
[key: string]: unknown;
|
|
@@ -47,7 +116,9 @@ export interface GlobalInfoDetailParams extends GlobalInfoTemplateTreeParams {
|
|
|
47
116
|
}
|
|
48
117
|
/** 保存信息集时的入参,包含待提交数据和当前渲染上下文。 */
|
|
49
118
|
export interface GlobalInfoUpdateParams extends GlobalInfoDetailParams {
|
|
50
|
-
/**
|
|
119
|
+
/** 保存接口的正式提交字段,表单也会整理成单行数组。 */
|
|
120
|
+
infSetValues?: Record<string, unknown>[];
|
|
121
|
+
/** 兼容历史调用方的旧字段名,新逻辑默认不再主动写入。 */
|
|
51
122
|
infSetFields?: Record<string, unknown>[];
|
|
52
123
|
/** 当前表单模型。 */
|
|
53
124
|
values?: Record<string, unknown>;
|
|
@@ -66,15 +137,64 @@ export interface GlobalInfoUpdateParams extends GlobalInfoDetailParams {
|
|
|
66
137
|
export interface GlobalInfoOperationContext {
|
|
67
138
|
/** 操作类型:展开树、查详情、保存、加载字段选项。 */
|
|
68
139
|
type: 'openTag' | 'queryInfoSet' | 'editInfoSet' | 'fieldOptions';
|
|
140
|
+
/** 当前请求来源区域,service 如需区分顶部侧边栏或内部请求可使用。 */
|
|
141
|
+
requestSource?: GlobalInfoRequestSource;
|
|
142
|
+
/** 当前请求所属 tagId。 */
|
|
143
|
+
tagId?: string | number | null;
|
|
69
144
|
/** 当前树节点。 */
|
|
70
145
|
node?: GlobalInfoNode | null;
|
|
71
146
|
/** 当前信息集。 */
|
|
72
147
|
section?: GlobalInfoSection | null;
|
|
73
148
|
/** 当前字段,主要用于动态下拉。 */
|
|
74
149
|
field?: GlobalInfoField | null;
|
|
75
|
-
/**
|
|
150
|
+
/** 本次请求参数,外部 formatter 存在时等于 formatter 返回值。 */
|
|
151
|
+
params?: GlobalInfoRawRecord;
|
|
152
|
+
/** 当前表单或表格行数据,组件只透传给外部 formatter。 */
|
|
153
|
+
model?: GlobalInfoRawRecord;
|
|
154
|
+
/** 表格场景下的当前行数据,表单场景不传。 */
|
|
155
|
+
row?: GlobalInfoRawRecord;
|
|
156
|
+
/** 当前整体视图模型,外部格式化请求参数时可按完整上下文判断。 */
|
|
157
|
+
viewModel?: GlobalInfoViewModel | null;
|
|
158
|
+
}
|
|
159
|
+
/** 所有 operationInfo 请求类型。 */
|
|
160
|
+
export type GlobalInfoRequestType = GlobalInfoOperationContext['type'];
|
|
161
|
+
/** 请求来源区域,用于外部 formatter 区分顶部、侧边栏和信息集内部请求。 */
|
|
162
|
+
export type GlobalInfoRequestSource = 'top' | 'sidebar' | 'inner';
|
|
163
|
+
/** 外部请求参数格式化上下文,组件不解释业务参数,只提供发请求前可用的现场数据。 */
|
|
164
|
+
export interface GlobalInfoExternalOperationParamsFormatterContext {
|
|
165
|
+
/** 当前待执行的 operation 描述。 */
|
|
166
|
+
operation: GlobalInfoApiOperation;
|
|
167
|
+
/** 字段级接口描述,字段选项接口场景下通常等同于 field.interface。 */
|
|
168
|
+
interfaceOperation?: GlobalInfoApiOperation;
|
|
169
|
+
/** 当前请求类型。 */
|
|
170
|
+
type?: GlobalInfoRequestType;
|
|
171
|
+
/** 当前 formatter 请求来源区域;当前仅信息集内部请求会触发。 */
|
|
172
|
+
requestSource?: GlobalInfoRequestSource;
|
|
173
|
+
/** 当前内部请求所属 tagId。 */
|
|
174
|
+
tagId?: string | number | null;
|
|
175
|
+
/** 当前信息集模型,表格场景下可以由外部决定是否合并 row。 */
|
|
176
|
+
model: GlobalInfoRawRecord;
|
|
177
|
+
/** 表格场景下的当前行数据,表单场景不传。 */
|
|
178
|
+
row?: GlobalInfoRawRecord;
|
|
179
|
+
/** 当前 section 数据。 */
|
|
180
|
+
section?: GlobalInfoSection | null;
|
|
181
|
+
/** 当前字段,字段级请求场景传入。 */
|
|
182
|
+
field?: GlobalInfoField | null;
|
|
183
|
+
/** 当前树节点。 */
|
|
184
|
+
node?: GlobalInfoNode | null;
|
|
185
|
+
/** 当前整体视图模型。 */
|
|
186
|
+
viewModel?: GlobalInfoViewModel | null;
|
|
187
|
+
/** 所有已加载 section。 */
|
|
188
|
+
sections?: GlobalInfoSection[];
|
|
189
|
+
/** 当前激活节点。 */
|
|
190
|
+
activeNode?: GlobalInfoNode | null;
|
|
191
|
+
/** 当前激活 section。 */
|
|
192
|
+
activeSection?: GlobalInfoSection | null;
|
|
193
|
+
/** 本次请求候选参数;字段接口通常来自 operation.params,保存接口通常来自 controller 构造的 payload。 */
|
|
76
194
|
params?: GlobalInfoRawRecord;
|
|
77
195
|
}
|
|
196
|
+
/** 外部请求参数格式化器;返回值就是最终请求 params,组件不再追加内置业务规则。 */
|
|
197
|
+
export type GlobalInfoExternalOperationParamsFormatter = (context: GlobalInfoExternalOperationParamsFormatterContext) => GlobalInfoRawRecord | Promise<GlobalInfoRawRecord>;
|
|
78
198
|
/** 页面注入的数据服务。新功能只保留顶部树入口和 operationInfo 统一执行入口。 */
|
|
79
199
|
export interface GlobalInfoService {
|
|
80
200
|
/** 加载顶部模板树,返回一级菜单和每个一级菜单的 operationInfo.openTag。 */
|
|
@@ -189,6 +309,8 @@ export interface GlobalInfoField {
|
|
|
189
309
|
type: string;
|
|
190
310
|
/** 后端原始字段类型。 */
|
|
191
311
|
fieldType?: string;
|
|
312
|
+
/** 后端前端控件类型,缺少 type/fieldType 时可作为控件归一化来源。 */
|
|
313
|
+
frontInputType?: string;
|
|
192
314
|
/** 只读展示类型。 */
|
|
193
315
|
renderType: GlobalInfoRenderType;
|
|
194
316
|
/** 是否必填,归一后的字段。 */
|
|
@@ -435,6 +557,8 @@ export interface GlobalInfoSectionSlotScope {
|
|
|
435
557
|
node?: GlobalInfoNode | null;
|
|
436
558
|
/** 当前字段列表。 */
|
|
437
559
|
fields?: GlobalInfoField[];
|
|
560
|
+
/** 当前默认渲染配置,供页面接管插槽时复用同一套字段显示规则。 */
|
|
561
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
438
562
|
/** 当前整体视图模型。 */
|
|
439
563
|
viewModel?: GlobalInfoViewModel;
|
|
440
564
|
/** 当前标题。 */
|
|
@@ -486,6 +610,8 @@ export interface GlobalInfoProviderSlotProps {
|
|
|
486
610
|
state: GlobalInfoState;
|
|
487
611
|
/** 动作集合。 */
|
|
488
612
|
actions: GlobalInfoActions;
|
|
613
|
+
/** Provider 接收的渲染配置,方便页面继续透传给 sections/renderers。 */
|
|
614
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
489
615
|
}
|
|
490
616
|
/** 外部自管渲染状态的扩展结构,保留给自定义页面使用。 */
|
|
491
617
|
export interface GlobalInfoRenderState {
|
|
@@ -516,6 +642,8 @@ export interface GlobalInfoControllerOptions<TService extends GlobalInfoService
|
|
|
516
642
|
service?: TService;
|
|
517
643
|
/** 可选自定义适配器。 */
|
|
518
644
|
adapter?: GlobalInfoAdapter;
|
|
645
|
+
/** 请求参数外部格式化器,controller 接入后应直接使用其返回 params。 */
|
|
646
|
+
formatOperationParams?: GlobalInfoExternalOperationParamsFormatter;
|
|
519
647
|
}
|
|
520
648
|
/** controller 返回值的基础结构,组合式 API 内部使用。 */
|
|
521
649
|
export interface GlobalInfoControllerReturn {
|
|
@@ -546,6 +674,10 @@ export interface GlobalInfoProps<TService extends GlobalInfoService = GlobalInfo
|
|
|
546
674
|
autoLoad?: boolean;
|
|
547
675
|
/** 初始激活节点 key。 */
|
|
548
676
|
initialActiveNodeKey?: string;
|
|
677
|
+
/** 默认渲染配置,字段业务变更回调也从这里传入。 */
|
|
678
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
679
|
+
/** 请求参数外部格式化器,组件发请求前把上下文交给它并直接使用返回 params。 */
|
|
680
|
+
formatOperationParams?: GlobalInfoExternalOperationParamsFormatter;
|
|
549
681
|
}
|
|
550
682
|
/** 字段级插槽上下文。 */
|
|
551
683
|
export interface GlobalInfoItemSlotProps {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoNode, GlobalInfoRenderConfig, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
section: GlobalInfoSection;
|
|
4
4
|
node?: GlobalInfoNode | null;
|
|
5
5
|
editing: boolean;
|
|
6
6
|
state: GlobalInfoState;
|
|
7
7
|
actions: GlobalInfoActions;
|
|
8
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
8
9
|
};
|
|
9
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalInfoActions, GlobalInfoField, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoField, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
section: GlobalInfoSection;
|
|
4
4
|
node?: GlobalInfoNode | null;
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
actions: GlobalInfoActions;
|
|
8
8
|
model?: GlobalInfoRawRecord;
|
|
9
9
|
onUpdateModel?: (model: GlobalInfoRawRecord) => void;
|
|
10
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
10
11
|
};
|
|
11
12
|
declare var __VLS_28: string, __VLS_29: {
|
|
12
13
|
field: GlobalInfoField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalInfoActions, GlobalInfoField, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
1
|
+
import type { GlobalInfoActions, GlobalInfoField, GlobalInfoNode, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoSection, GlobalInfoState } from '../model/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
section: GlobalInfoSection;
|
|
4
4
|
node?: GlobalInfoNode | null;
|
|
@@ -7,8 +7,9 @@ type __VLS_Props = {
|
|
|
7
7
|
actions: GlobalInfoActions;
|
|
8
8
|
showAdd?: boolean;
|
|
9
9
|
showDelete?: boolean;
|
|
10
|
+
renderConfig?: GlobalInfoRenderConfig;
|
|
10
11
|
};
|
|
11
|
-
declare var
|
|
12
|
+
declare var __VLS_21: string, __VLS_22: {
|
|
12
13
|
field: GlobalInfoField;
|
|
13
14
|
section: GlobalInfoSection;
|
|
14
15
|
sectionView: GlobalInfoSection;
|
|
@@ -23,7 +24,7 @@ declare var __VLS_16: string, __VLS_17: {
|
|
|
23
24
|
updateModelValue: (value: unknown) => void;
|
|
24
25
|
};
|
|
25
26
|
type __VLS_Slots = {} & {
|
|
26
|
-
[K in NonNullable<typeof
|
|
27
|
+
[K in NonNullable<typeof __VLS_21>]?: (props: typeof __VLS_22) => any;
|
|
27
28
|
};
|
|
28
29
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
30
|
showAdd: boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GlobalInfoField, GlobalInfoRawRecord } from '../model/types.js';
|
|
2
|
+
export declare function isDynamicSelectField(field: GlobalInfoField): boolean;
|
|
3
|
+
export declare function buildFieldOptionsPreloadKey(sectionKey: string, field: Pick<GlobalInfoField, 'key' | 'id' | 'code' | 'cascadeDependFields'>, model?: GlobalInfoRawRecord, rowKey?: string): string;
|
|
4
|
+
export declare function shouldReuseLoadedFieldOptions(field: Pick<GlobalInfoField, 'options' | 'cascadeDependFields'>, cachedPreloadKey: string | undefined, currentPreloadKey: string): boolean;
|
|
@@ -8,4 +8,4 @@ export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl
|
|
|
8
8
|
export type { JTCascaderFormItemConfig, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemCascaderOption, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JtOptionItem, } from './form/index';
|
|
9
9
|
export type { JtPageHeaderOperate, JtPageHeaderProps } from './JtPageHeader/index';
|
|
10
10
|
export type { JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, } from './JtAttachmentPreview/index';
|
|
11
|
-
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './globalInfo/index';
|
|
11
|
+
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, } from './globalInfo/index';
|
|
@@ -49,16 +49,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
readonly option?: JtCrudOption | undefined;
|
|
50
50
|
readonly modelValue: Record<string, any>;
|
|
51
51
|
readonly onReset?: (() => any) | undefined;
|
|
52
|
-
readonly "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
53
52
|
readonly onSearch?: (() => any) | undefined;
|
|
53
|
+
readonly "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
54
54
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{
|
|
55
55
|
columns: JtCrudColumn[];
|
|
56
56
|
option?: JtCrudOption;
|
|
57
57
|
modelValue: Record<string, any>;
|
|
58
58
|
}> & Readonly<{
|
|
59
59
|
onReset?: (() => any) | undefined;
|
|
60
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
61
60
|
onSearch?: (() => any) | undefined;
|
|
61
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
$attrs: {
|
|
64
64
|
[x: string]: unknown;
|
|
@@ -72,7 +72,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
72
72
|
$root: import("vue").ComponentPublicInstance | null;
|
|
73
73
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
74
74
|
$host: Element | null;
|
|
75
|
-
$emit: ((event: "reset") => void) & ((event: "
|
|
75
|
+
$emit: ((event: "reset") => void) & ((event: "search") => void) & ((event: "update:modelValue", value: Record<string, any>) => void);
|
|
76
76
|
$el: any;
|
|
77
77
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
78
78
|
columns: JtCrudColumn[];
|
|
@@ -80,8 +80,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
80
80
|
modelValue: Record<string, any>;
|
|
81
81
|
}> & Readonly<{
|
|
82
82
|
onReset?: (() => any) | undefined;
|
|
83
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
84
83
|
onSearch?: (() => any) | undefined;
|
|
84
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
85
85
|
}>, {
|
|
86
86
|
formRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
|
|
87
87
|
searchDisabled: import("vue").Ref<boolean, boolean>;
|
|
@@ -89,8 +89,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
89
89
|
searchDone: () => void;
|
|
90
90
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
91
|
reset: () => any;
|
|
92
|
-
"update:modelValue": (value: Record<string, any>) => any;
|
|
93
92
|
search: () => any;
|
|
93
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
94
94
|
}, string, {
|
|
95
95
|
option: JtCrudOption;
|
|
96
96
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
@@ -121,8 +121,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
121
121
|
modelValue: Record<string, any>;
|
|
122
122
|
}> & Readonly<{
|
|
123
123
|
onReset?: (() => any) | undefined;
|
|
124
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
125
124
|
onSearch?: (() => any) | undefined;
|
|
125
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
126
126
|
}>, "option" | "searchDisabled" | "searchLoading" | "searchDone" | "formRef"> & import("vue").ShallowUnwrapRef<{
|
|
127
127
|
formRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
|
|
128
128
|
searchDisabled: import("vue").Ref<boolean, boolean>;
|
|
@@ -155,16 +155,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
155
155
|
readonly option?: JtCrudOption | undefined;
|
|
156
156
|
readonly modelValue: Record<string, any>;
|
|
157
157
|
readonly onReset?: (() => any) | undefined;
|
|
158
|
-
readonly "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
159
158
|
readonly onSearch?: (() => any) | undefined;
|
|
159
|
+
readonly "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
160
160
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{
|
|
161
161
|
columns: JtCrudColumn[];
|
|
162
162
|
option?: JtCrudOption;
|
|
163
163
|
modelValue: Record<string, any>;
|
|
164
164
|
}> & Readonly<{
|
|
165
165
|
onReset?: (() => any) | undefined;
|
|
166
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
167
166
|
onSearch?: (() => any) | undefined;
|
|
167
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
168
168
|
}>;
|
|
169
169
|
$attrs: {
|
|
170
170
|
[x: string]: unknown;
|
|
@@ -178,7 +178,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
178
178
|
$root: import("vue").ComponentPublicInstance | null;
|
|
179
179
|
$parent: import("vue").ComponentPublicInstance | null;
|
|
180
180
|
$host: Element | null;
|
|
181
|
-
$emit: ((event: "reset") => void) & ((event: "
|
|
181
|
+
$emit: ((event: "reset") => void) & ((event: "search") => void) & ((event: "update:modelValue", value: Record<string, any>) => void);
|
|
182
182
|
$el: any;
|
|
183
183
|
$options: import("vue").ComponentOptionsBase<Readonly<{
|
|
184
184
|
columns: JtCrudColumn[];
|
|
@@ -186,8 +186,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
186
186
|
modelValue: Record<string, any>;
|
|
187
187
|
}> & Readonly<{
|
|
188
188
|
onReset?: (() => any) | undefined;
|
|
189
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
190
189
|
onSearch?: (() => any) | undefined;
|
|
190
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
191
191
|
}>, {
|
|
192
192
|
formRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
|
|
193
193
|
searchDisabled: import("vue").Ref<boolean, boolean>;
|
|
@@ -195,8 +195,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
195
195
|
searchDone: () => void;
|
|
196
196
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
197
197
|
reset: () => any;
|
|
198
|
-
"update:modelValue": (value: Record<string, any>) => any;
|
|
199
198
|
search: () => any;
|
|
199
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
200
200
|
}, string, {
|
|
201
201
|
option: JtCrudOption;
|
|
202
202
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
@@ -227,8 +227,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
227
227
|
modelValue: Record<string, any>;
|
|
228
228
|
}> & Readonly<{
|
|
229
229
|
onReset?: (() => any) | undefined;
|
|
230
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
231
230
|
onSearch?: (() => any) | undefined;
|
|
231
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
232
232
|
}>, "option" | "searchDisabled" | "searchLoading" | "searchDone" | "formRef"> & import("vue").ShallowUnwrapRef<{
|
|
233
233
|
formRef: import("vue").Ref<import("element-plus").FormInstance | undefined, import("element-plus").FormInstance | undefined>;
|
|
234
234
|
searchDisabled: import("vue").Ref<boolean, boolean>;
|
|
@@ -46,12 +46,12 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
|
46
46
|
searchDone: () => void;
|
|
47
47
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
48
|
reset: () => any;
|
|
49
|
-
"update:modelValue": (value: Record<string, any>) => any;
|
|
50
49
|
search: () => any;
|
|
50
|
+
"update:modelValue": (value: Record<string, any>) => any;
|
|
51
51
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
52
52
|
onReset?: (() => any) | undefined;
|
|
53
|
-
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
54
53
|
onSearch?: (() => any) | undefined;
|
|
54
|
+
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
55
55
|
}>, {
|
|
56
56
|
option: JtCrudOption;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './assets/styles/base.css';
|
|
2
2
|
export { GlobalInfoAutoRenderer, GlobalInfoDeleteConfirm, GlobalInfoFieldControl, GlobalInfoFieldValue, GlobalInfoFormRenderer, GlobalInfoGroup, GlobalInfoProvider, GlobalInfoSectionBlock, GlobalInfoSectionOutlet, GlobalInfoSections, GlobalInfoTableRenderer, JtAttachmentPreview, JtAttachmentPreviewByParams, JtCascader, JtButton, JtCrudTable, JtDatePicker, JtFilterBar, JtFormItems, JtInput, JtPageHeader, JtPagination, JtSelect, JtTable, buildGlobalInfoUpdatePayload, createEmptyGlobalInfoViewModel, isGlobalInfoNode, mergeGlobalInfoChildren, normalizeGlobalInfoDetail, normalizeGlobalInfoTree, resolveGlobalInfoRenderType, setupJtAttachmentPreview, useGlobalInfoController, } from './components/index';
|
|
3
|
-
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, JTCascaderFormItemConfig, JtCrudColumn, JtCrudOption, JtDicItem, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JTFormItemCascaderOption, JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, JtOptionItem, JtPageHeaderOperate, JtPageHeaderProps, JtPaginationData, JtSearchType, } from './components/index';
|
|
3
|
+
export type { GlobalInfoActions, GlobalInfoApiOperation, GlobalInfoDetailParams, GlobalInfoField, GlobalInfoFieldHiddenContext, GlobalInfoFieldHiddenRule, GlobalInfoFieldOption, GlobalInfoInfoSet, GlobalInfoNode, GlobalInfoOperationContext, GlobalInfoOpenTreeParams, GlobalInfoProviderSlotProps, GlobalInfoRawRecord, GlobalInfoRenderConfig, GlobalInfoRenderType, GlobalInfoScheme, GlobalInfoSection, GlobalInfoSectionLoadTarget, GlobalInfoSectionSlotScope, GlobalInfoSectionStatus, GlobalInfoSectionTarget, GlobalInfoService, GlobalInfoSetMark, GlobalInfoState, GlobalInfoTemplateTreeParams, GlobalInfoUpdateParams, GlobalInfoViewModel, JTCascaderFormItemConfig, JtCrudColumn, JtCrudOption, JtDicItem, JTCompatibleFormItemType, JTElementFormItemType, JTFormItemConfig, JTFormItemEventHandler, JTFormItemType, JTFormItemsForm, JTFormItemsProps, JTFormItemCascaderOption, JtAttachmentPreviewHandler, JtAttachmentPreviewFileOptions, JtAttachmentPreviewRequestConfig, JtAttachmentPreviewService, JtAttachmentPreviewMode, JtAttachmentPreviewOptions, JtAttachmentPreviewResolvedType, JtOptionItem, JtPageHeaderOperate, JtPageHeaderProps, JtPaginationData, JtSearchType, } from './components/index';
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jt-home/mfe-components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
8
|
-
"types": "dist/types/main.d.ts",
|
|
9
|
-
"style": "dist/style.css",
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"types": "./dist/types/main.d.ts",
|
|
16
|
-
"import": "./dist/index.mjs",
|
|
17
|
-
"require": "./dist/index.cjs"
|
|
18
|
-
},
|
|
19
|
-
"./JtAttachmentPreview": {
|
|
20
|
-
"types": "./dist/types/components/JtAttachmentPreview/index.d.ts",
|
|
21
|
-
"import": "./dist/JtAttachmentPreview/index.mjs",
|
|
22
|
-
"require": "./dist/JtAttachmentPreview/index.cjs"
|
|
23
|
-
},
|
|
24
|
-
"./style.css": "./dist/style.css",
|
|
25
|
-
"./JtAttachmentPreview/style.css": "./dist/JtAttachmentPreview/style.css"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist"
|
|
29
|
-
],
|
|
30
|
-
"sideEffects": [
|
|
31
|
-
"*.css",
|
|
32
|
-
"*.scss"
|
|
33
|
-
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"dev": "vite",
|
|
36
|
-
"build:types": "vue-tsc -p tsconfig.lib.json",
|
|
37
|
-
"build:bundle": "vite build",
|
|
38
|
-
"build": "pnpm run build:bundle && pnpm run build:types",
|
|
39
|
-
"build:analyze": "vite build --mode analyze",
|
|
40
|
-
"prepublishOnly": "pnpm build",
|
|
41
|
-
"preview": "vite preview --host 127.0.0.1 --port 5001",
|
|
42
|
-
"test:component-attrs": "tsc --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/utils/componentAttrs.ts src/utils/componentAttrs.test.ts && node tmp/unit-tests/componentAttrs.test.js"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"@
|
|
47
|
-
"pdfjs-dist": "^5.7.284"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@babel/eslint-parser": "^7.24.5",
|
|
51
|
-
"@commitlint/cli": "^20.4.2",
|
|
52
|
-
"@commitlint/config-conventional": "^20.4.2",
|
|
53
|
-
"@dd-code/eslint-config-standard": "^1.0.3",
|
|
54
|
-
"@types/node": "^24.10.1",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
56
|
-
"@typescript-eslint/parser": "^7.9.0",
|
|
57
|
-
"@vitejs/plugin-vue": "^5.2.4",
|
|
58
|
-
"@vue/tsconfig": "^0.8.1",
|
|
59
|
-
"element-plus": "^2.14.0",
|
|
60
|
-
"eslint": "^8.57.0",
|
|
61
|
-
"eslint-config-prettier": "^9.1.0",
|
|
62
|
-
"eslint-plugin-html": "^8.1.1",
|
|
63
|
-
"eslint-plugin-import": "^2.29.1",
|
|
64
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
65
|
-
"eslint-plugin-react": "^7.34.1",
|
|
66
|
-
"eslint-plugin-vue": "^9.26.0",
|
|
67
|
-
"husky": "^9.1.7",
|
|
68
|
-
"postcss": "^8.5.8",
|
|
69
|
-
"postcss-pxtorem": "^6.1.0",
|
|
70
|
-
"prettier": "^3.2.5",
|
|
71
|
-
"rollup-plugin-visualizer": "^7.0.1",
|
|
72
|
-
"sass": "^1.97.3",
|
|
73
|
-
"typescript": "^5.4.5",
|
|
74
|
-
"unocss": "^66.6.2",
|
|
75
|
-
"unplugin-auto-import": "^19.3.0",
|
|
76
|
-
"unplugin-vue-components": "^28.8.0",
|
|
77
|
-
"vite": "^5.4.6",
|
|
78
|
-
"vite-plugin-svg-icons": "^2.0.1",
|
|
79
|
-
"vue": "
|
|
80
|
-
"vue-
|
|
81
|
-
"vue
|
|
82
|
-
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"element-plus": "^2.14.0",
|
|
85
|
-
"vue": "^3.5.10"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@jt-home/mfe-components",
|
|
3
|
+
"version": "1.0.11",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"types": "dist/types/main.d.ts",
|
|
9
|
+
"style": "dist/style.css",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/types/main.d.ts",
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./JtAttachmentPreview": {
|
|
20
|
+
"types": "./dist/types/components/JtAttachmentPreview/index.d.ts",
|
|
21
|
+
"import": "./dist/JtAttachmentPreview/index.mjs",
|
|
22
|
+
"require": "./dist/JtAttachmentPreview/index.cjs"
|
|
23
|
+
},
|
|
24
|
+
"./style.css": "./dist/style.css",
|
|
25
|
+
"./JtAttachmentPreview/style.css": "./dist/JtAttachmentPreview/style.css"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"*.css",
|
|
32
|
+
"*.scss"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"dev": "vite",
|
|
36
|
+
"build:types": "vue-tsc -p tsconfig.lib.json",
|
|
37
|
+
"build:bundle": "vite build",
|
|
38
|
+
"build": "pnpm run build:bundle && pnpm run build:types",
|
|
39
|
+
"build:analyze": "vite build --mode analyze",
|
|
40
|
+
"prepublishOnly": "pnpm build",
|
|
41
|
+
"preview": "vite preview --host 127.0.0.1 --port 5001",
|
|
42
|
+
"test:component-attrs": "tsc --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/utils/componentAttrs.ts src/utils/componentAttrs.test.ts && node tmp/unit-tests/componentAttrs.test.js",
|
|
43
|
+
"test:cascader-props": "tsc --skipLibCheck --module NodeNext --moduleResolution NodeNext --target ES2020 --outDir tmp/unit-tests src/components/form/item/JtCascader/cascaderProps.ts src/components/form/item/JtCascader/cascaderProps.test.ts && node tmp/unit-tests/cascaderProps.test.js"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
47
|
+
"pdfjs-dist": "^5.7.284"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@babel/eslint-parser": "^7.24.5",
|
|
51
|
+
"@commitlint/cli": "^20.4.2",
|
|
52
|
+
"@commitlint/config-conventional": "^20.4.2",
|
|
53
|
+
"@dd-code/eslint-config-standard": "^1.0.3",
|
|
54
|
+
"@types/node": "^24.10.1",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
56
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
57
|
+
"@vitejs/plugin-vue": "^5.2.4",
|
|
58
|
+
"@vue/tsconfig": "^0.8.1",
|
|
59
|
+
"element-plus": "^2.14.0",
|
|
60
|
+
"eslint": "^8.57.0",
|
|
61
|
+
"eslint-config-prettier": "^9.1.0",
|
|
62
|
+
"eslint-plugin-html": "^8.1.1",
|
|
63
|
+
"eslint-plugin-import": "^2.29.1",
|
|
64
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
65
|
+
"eslint-plugin-react": "^7.34.1",
|
|
66
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
67
|
+
"husky": "^9.1.7",
|
|
68
|
+
"postcss": "^8.5.8",
|
|
69
|
+
"postcss-pxtorem": "^6.1.0",
|
|
70
|
+
"prettier": "^3.2.5",
|
|
71
|
+
"rollup-plugin-visualizer": "^7.0.1",
|
|
72
|
+
"sass": "^1.97.3",
|
|
73
|
+
"typescript": "^5.4.5",
|
|
74
|
+
"unocss": "^66.6.2",
|
|
75
|
+
"unplugin-auto-import": "^19.3.0",
|
|
76
|
+
"unplugin-vue-components": "^28.8.0",
|
|
77
|
+
"vite": "^5.4.6",
|
|
78
|
+
"vite-plugin-svg-icons": "^2.0.1",
|
|
79
|
+
"vue-eslint-parser": "^9.4.2",
|
|
80
|
+
"vue-tsc": "^3.1.5",
|
|
81
|
+
"vue": "^3.5.10"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"element-plus": "^2.14.0",
|
|
85
|
+
"vue": "^3.5.10"
|
|
86
|
+
}
|
|
87
|
+
}
|