cnhis-design-vue 3.1.13-beta.4 → 3.1.13-beta.7
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/es/packages/big-table/src/BigTable.vue.d.ts +15 -7
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +30 -19
- package/es/packages/big-table/src/utils.js +2 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.d.ts +5 -0
- package/es/packages/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/packages/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/packages/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +3 -6
- package/es/packages/fabric-chart/src/hooks/useCenter.js +15 -4
- package/es/packages/fabric-chart/src/hooks/useDraw.js +23 -29
- package/es/packages/fabric-chart/src/hooks/useLeft.js +51 -12
- package/es/packages/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/packages/fabric-chart/src/utils/index.d.ts +6823 -2
- package/es/packages/form-render/index.d.ts +5 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +7 -2
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +24 -4
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/packages/form-render/src/types/fieldItem.d.ts +58 -7
- package/es/packages/form-render/src/types/index.d.ts +5 -0
- package/es/packages/form-render/src/utils/index.d.ts +8 -2
- package/es/packages/form-render/src/utils/index.js +29 -2
- package/package.json +153 -153
|
@@ -410,6 +410,11 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
410
410
|
scrollTo: (id: string) => Promise<void>;
|
|
411
411
|
onScroll: () => Promise<void>;
|
|
412
412
|
bindInfo: (info: import("../../../es/src/types").AnyObject) => import("../../../es/src/types").AnyObject;
|
|
413
|
+
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("./src/types").FieldItem[]) => Promise<{
|
|
414
|
+
widgetElement: HTMLInputElement | null | undefined;
|
|
415
|
+
widgetElementList: HTMLInputElement[];
|
|
416
|
+
decoratorElement: HTMLElement | null | undefined;
|
|
417
|
+
}>;
|
|
413
418
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
414
419
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
|
415
420
|
form: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
2
|
import { AnyObject } from '../../../../es/src/types';
|
|
3
|
-
import { Component, FunctionalComponent, PropType } from 'vue';
|
|
3
|
+
import { Component, FunctionalComponent, nextTick, PropType } from 'vue';
|
|
4
4
|
import { FieldItem, FieldVisitor, FormBusinessFilter } from './types';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
fieldList: {
|
|
@@ -410,6 +410,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
410
410
|
scrollTo: (id: string) => Promise<void>;
|
|
411
411
|
onScroll: () => Promise<void>;
|
|
412
412
|
bindInfo: (info: AnyObject) => AnyObject;
|
|
413
|
+
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
414
|
+
widgetElement: HTMLInputElement | null | undefined;
|
|
415
|
+
widgetElementList: HTMLInputElement[];
|
|
416
|
+
decoratorElement: HTMLElement | null | undefined;
|
|
417
|
+
}>;
|
|
413
418
|
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
414
419
|
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
|
415
420
|
form: any;
|
|
@@ -1010,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1010
1015
|
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[] | undefined;
|
|
1011
1016
|
};
|
|
1012
1017
|
$forceUpdate: () => void;
|
|
1013
|
-
$nextTick: typeof
|
|
1018
|
+
$nextTick: typeof nextTick;
|
|
1014
1019
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
1015
1020
|
} & import("vue").ShallowUnwrapRef<{}> & import("vue").ComponentCustomProperties) | null>;
|
|
1016
1021
|
scrollWrapperElRef: import("vue").Ref<HTMLElement | null>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { defineComponent, computed, watch, openBlock, createBlock, unref, withCtx, createElementBlock, createVNode, isRef, Fragment, renderList, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, toDisplayString } from 'vue';
|
|
1
|
+
import { defineComponent, computed, watch, openBlock, createBlock, unref, withCtx, createElementBlock, createVNode, isRef, Fragment, renderList, createCommentVNode, createElementVNode, normalizeStyle, renderSlot, toDisplayString, nextTick } from 'vue';
|
|
2
2
|
import { createForm, onFieldValueChange, isField } from '@formily/core';
|
|
3
3
|
import { FormProvider, FormConsumer } from '@formily/vue';
|
|
4
4
|
import { cloneDeep } from 'lodash-es';
|
|
5
5
|
import { NForm, NTabs, NTabPane } from 'naive-ui';
|
|
6
|
+
import { FormItemLineBarDepKeyPrepend } from '../../../packages/form-render/src/constants';
|
|
7
|
+
import { queryDecorator, queryInput, getParentLinebar } from '../../../packages/form-render/src/utils';
|
|
6
8
|
import { useFormContext } from './hooks/useFormContext.js';
|
|
7
9
|
import { useInitialData } from './hooks/useInitialData.js';
|
|
8
10
|
import { useFieldListAdaptor } from './hooks/useFieldListAdaptor.js';
|
|
@@ -72,12 +74,27 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
72
74
|
const { currentAnchor, scrollbarRef, generateAnchorList, anchorIdList, formHeight, scrollTo, onScroll } = useAnchor(props, formItemDepsCollector);
|
|
73
75
|
watch(parsedSchema, generateAnchorList, { immediate: true });
|
|
74
76
|
function bindInfo(info) {
|
|
75
|
-
var _a, _b;
|
|
76
77
|
info.title = formModel.query(info.path).get("title");
|
|
77
|
-
info.decoratorElement = (
|
|
78
|
-
info
|
|
78
|
+
info.decoratorElement = queryDecorator(info.path, scrollbarRef.value, formUUID);
|
|
79
|
+
Object.assign(info, queryInput(info.decoratorElement));
|
|
79
80
|
return info;
|
|
80
81
|
}
|
|
82
|
+
async function queryWidget(key, wrapperElement, fieldList) {
|
|
83
|
+
if (!scrollbarRef.value)
|
|
84
|
+
return createResult();
|
|
85
|
+
const decoratorElement = queryDecorator(key, wrapperElement, formUUID);
|
|
86
|
+
if (decoratorElement)
|
|
87
|
+
return createResult(decoratorElement);
|
|
88
|
+
const parentLinebarKey = getParentLinebar(key, fieldList);
|
|
89
|
+
if (!parentLinebarKey)
|
|
90
|
+
return createResult();
|
|
91
|
+
formItemDepsCollector.trigger(FormItemLineBarDepKeyPrepend + parentLinebarKey, true);
|
|
92
|
+
await nextTick();
|
|
93
|
+
return createResult(queryDecorator(key, wrapperElement, formUUID));
|
|
94
|
+
function createResult(decoratorElement2) {
|
|
95
|
+
return { decoratorElement: decoratorElement2, ...queryInput(decoratorElement2) };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
81
98
|
expose({
|
|
82
99
|
validate(path = "*") {
|
|
83
100
|
return formModel.validate(path).catch((err) => {
|
|
@@ -102,6 +119,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
102
119
|
field.value = (_a = field.initialValue) != null ? _a : null;
|
|
103
120
|
}
|
|
104
121
|
});
|
|
122
|
+
},
|
|
123
|
+
async queryWidget(key) {
|
|
124
|
+
return scrollbarRef.value ? await queryWidget(key, scrollbarRef.value, props.fieldList || []) : null;
|
|
105
125
|
}
|
|
106
126
|
});
|
|
107
127
|
return (_ctx, _cache) => {
|
|
@@ -115,7 +115,7 @@ function useFieldListAdaptor(collector, uuid) {
|
|
|
115
115
|
const createSliderSchema = (item) => {
|
|
116
116
|
const schema = createStandardSchema(item);
|
|
117
117
|
Object.assign(schema["x-component-props"], {
|
|
118
|
-
step:
|
|
118
|
+
step: Number(item.step_length),
|
|
119
119
|
max: +item.max_length,
|
|
120
120
|
min: +item.min_length,
|
|
121
121
|
option: item.option
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnyObject } from '../../../../../es/src/types';
|
|
1
|
+
import { AnyObject, ArrayAble } from '../../../../../es/src/types';
|
|
2
|
+
import { CSSProperties, VNode } from 'vue';
|
|
2
3
|
export declare type ValidateItem = Partial<{
|
|
3
4
|
obj_type: string;
|
|
4
5
|
vali_obj: string;
|
|
@@ -20,12 +21,28 @@ export interface Ievent {
|
|
|
20
21
|
event_field: string;
|
|
21
22
|
event_type: string;
|
|
22
23
|
}
|
|
24
|
+
interface FormRendererPayload {
|
|
25
|
+
clearable: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
fieldItem: FieldItem;
|
|
28
|
+
readOnly: boolean;
|
|
29
|
+
value: unknown;
|
|
30
|
+
}
|
|
31
|
+
export interface FormRenderer {
|
|
32
|
+
(payload: FormRendererPayload): ArrayAble<VNode> | any;
|
|
33
|
+
}
|
|
34
|
+
interface SwitchProperty {
|
|
35
|
+
value?: any;
|
|
36
|
+
describe?: string;
|
|
37
|
+
}
|
|
23
38
|
export declare type FieldItem = {
|
|
24
39
|
val_key: string;
|
|
25
|
-
elem_width: number;
|
|
26
40
|
html_type: string;
|
|
27
41
|
} & Partial<{
|
|
42
|
+
annotation: boolean;
|
|
43
|
+
val_key_unit: string;
|
|
28
44
|
is_edit: string;
|
|
45
|
+
elem_width: number;
|
|
29
46
|
is_show: string | number;
|
|
30
47
|
is_null: string;
|
|
31
48
|
name: string;
|
|
@@ -35,13 +52,47 @@ export declare type FieldItem = {
|
|
|
35
52
|
group: string;
|
|
36
53
|
hide_title: string;
|
|
37
54
|
placeholder: string;
|
|
38
|
-
validate
|
|
39
|
-
option
|
|
40
|
-
wordbook
|
|
41
|
-
suFieldList
|
|
42
|
-
bindEventSetting
|
|
55
|
+
validate: ValidateItem;
|
|
56
|
+
option: OptionItem[];
|
|
57
|
+
wordbook: AnyObject;
|
|
58
|
+
suFieldList: any[];
|
|
59
|
+
bindEventSetting: Ievent[];
|
|
60
|
+
open: SwitchProperty;
|
|
61
|
+
close: SwitchProperty;
|
|
62
|
+
date_format: string;
|
|
63
|
+
step_length: string | number;
|
|
64
|
+
urlConfig: Partial<{
|
|
65
|
+
url: string;
|
|
66
|
+
method: 'post' | 'get' | 'put' | 'patch' | 'delete';
|
|
67
|
+
dependKey: string | string[];
|
|
68
|
+
params: AnyObject;
|
|
69
|
+
nameKey: string;
|
|
70
|
+
valueKey: string;
|
|
71
|
+
}>;
|
|
43
72
|
fieldType: 'string' | 'object' | 'array' | 'number' | 'void' | 'boolean' | 'datetime';
|
|
73
|
+
content: string | FormRenderer | Record<string, FormRenderer>;
|
|
44
74
|
properties: FieldItem[];
|
|
75
|
+
children: FieldItem[];
|
|
76
|
+
componentProps: AnyObject;
|
|
77
|
+
decoratorProps: AnyObject;
|
|
78
|
+
display: 'grid' | 'flex';
|
|
79
|
+
wrapperStyle: CSSProperties | Record<string, string>;
|
|
80
|
+
validator: (value: any, fieldItem: FieldItem) => void | string;
|
|
81
|
+
reactions: {
|
|
82
|
+
target?: string;
|
|
83
|
+
dependencies?: string[];
|
|
84
|
+
fulfill: {
|
|
85
|
+
state?: Partial<{
|
|
86
|
+
value: string;
|
|
87
|
+
disabled: string;
|
|
88
|
+
display: string;
|
|
89
|
+
componentProps: AnyObject;
|
|
90
|
+
decoratorProps: AnyObject;
|
|
91
|
+
selfErrors: string;
|
|
92
|
+
[key: string]: string | AnyObject;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
45
96
|
[key: string]: any;
|
|
46
97
|
}>;
|
|
47
98
|
export {};
|
|
@@ -26,6 +26,11 @@ export declare type FormRenderExpose = {
|
|
|
26
26
|
getFormValues(): AnyObject;
|
|
27
27
|
setFieldState(path: string, setter: (field: Field) => void): void;
|
|
28
28
|
resetFields(path?: string): void;
|
|
29
|
+
queryWidget(key: string): Promise<{
|
|
30
|
+
widgetElement: HTMLInputElement | null;
|
|
31
|
+
widgetElementList: HTMLInputElement[];
|
|
32
|
+
decoratorElement: HTMLElement | null;
|
|
33
|
+
}>;
|
|
29
34
|
};
|
|
30
35
|
export declare type FormChangeContext = Partial<{
|
|
31
36
|
currentOption: AnyObject;
|
|
@@ -2,13 +2,13 @@ import { AnyObject, ArrayAble } from '../../../../../es/src/types';
|
|
|
2
2
|
import { ISchema } from '@formily/json-schema/esm/types';
|
|
3
3
|
import { GeneralField } from '@formily/core';
|
|
4
4
|
import { InjectionKey, VNode } from 'vue';
|
|
5
|
-
import { AgeContext, IdCardParseInfo } from '../types';
|
|
5
|
+
import { AgeContext, FieldItem, IdCardParseInfo } from '../types';
|
|
6
6
|
export declare function formRenderLog(message: string, type?: keyof Console): void;
|
|
7
7
|
export declare function arrayed<T>(maybeArray: T): T extends Array<any> ? T : [T];
|
|
8
8
|
export declare function assignUpdateValue(props: AnyObject, field: GeneralField): {
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
};
|
|
11
|
-
export declare function transformDateFormat(format
|
|
11
|
+
export declare function transformDateFormat(format?: string): "date" | "datetime";
|
|
12
12
|
export declare function isIdCard(idCardNo: string): boolean;
|
|
13
13
|
export declare function isMobile(mobile: string): boolean;
|
|
14
14
|
export declare function parseBirthday(birthday: string): AgeContext;
|
|
@@ -20,3 +20,9 @@ export declare function uuidGenerator(): string;
|
|
|
20
20
|
export declare function createSlot(renderer: unknown, props: any): Record<string, () => ArrayAble<VNode>> | {
|
|
21
21
|
default(): any;
|
|
22
22
|
};
|
|
23
|
+
export declare function queryDecorator(key: string, wrapperElement: HTMLElement, formUUID: string): HTMLElement | null;
|
|
24
|
+
export declare function queryInput(decoratorElement?: HTMLElement | null): {
|
|
25
|
+
widgetElement: HTMLInputElement | null | undefined;
|
|
26
|
+
widgetElementList: HTMLInputElement[];
|
|
27
|
+
};
|
|
28
|
+
export declare function getParentLinebar(key: string, fieldList: FieldItem[]): string | null;
|
|
@@ -26,7 +26,7 @@ function assignUpdateValue(props, field) {
|
|
|
26
26
|
}
|
|
27
27
|
return _props;
|
|
28
28
|
}
|
|
29
|
-
function transformDateFormat(format) {
|
|
29
|
+
function transformDateFormat(format = "") {
|
|
30
30
|
return format.includes("HH") ? "datetime" : "date";
|
|
31
31
|
}
|
|
32
32
|
function isIdCard(idCardNo) {
|
|
@@ -109,5 +109,32 @@ function createSlot(renderer, props) {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
+
function queryDecorator(key, wrapperElement, formUUID) {
|
|
113
|
+
return wrapperElement.querySelector(`#${formUUID}-${key}`);
|
|
114
|
+
}
|
|
115
|
+
function queryInput(decoratorElement) {
|
|
116
|
+
var _a;
|
|
117
|
+
return {
|
|
118
|
+
widgetElement: decoratorElement == null ? void 0 : decoratorElement.querySelector("input"),
|
|
119
|
+
widgetElementList: Array.from((_a = decoratorElement == null ? void 0 : decoratorElement.querySelectorAll("input")) != null ? _a : [])
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function getParentLinebar(key, fieldList) {
|
|
123
|
+
let result = null;
|
|
124
|
+
for (const fieldItem of fieldList) {
|
|
125
|
+
if (fieldItem.val_key === key) {
|
|
126
|
+
if (isLinebar(fieldItem))
|
|
127
|
+
result = null;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
if (isLinebar(fieldItem)) {
|
|
131
|
+
result = fieldItem.val_key;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
function isLinebar(field) {
|
|
136
|
+
return field.html_type === "LINEBAR";
|
|
137
|
+
}
|
|
138
|
+
}
|
|
112
139
|
|
|
113
|
-
export { arrayed, assignUpdateValue, createSlot, formRenderLog, generateUrlParams, injectOrProvide, isIdCard, isMobile, parseBirthday, parseIdCard, transformDateFormat, traverseSchema, uuidGenerator };
|
|
140
|
+
export { arrayed, assignUpdateValue, createSlot, formRenderLog, generateUrlParams, getParentLinebar, injectOrProvide, isIdCard, isMobile, parseBirthday, parseIdCard, queryDecorator, queryInput, transformDateFormat, traverseSchema, uuidGenerator };
|
package/package.json
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
2
|
+
"name": "cnhis-design-vue",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "3.1.13-beta.7",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"module": "es/packages/index.js",
|
|
7
|
+
"main": "es/packages/index.js",
|
|
8
|
+
"types": "es/packages/index.d.ts",
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"es/packages/**/style/*",
|
|
11
|
+
"es/packages/*(.css,.less)"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "vite --host --port 3200",
|
|
15
|
+
"start": "gulp --require @esbuild-kit/cjs-loader -f build/gulpfile.ts",
|
|
16
|
+
"build": "npm run start",
|
|
17
|
+
"build:doc": "cross-env CUI_DOCS=true vite build",
|
|
18
|
+
"build:doc-local": "vite build",
|
|
19
|
+
"test": "vitest spec",
|
|
20
|
+
"test:resnap": "vitest spec -u",
|
|
21
|
+
"test:coverage": "vitest run --coverage",
|
|
22
|
+
"preview": "vite preview",
|
|
23
|
+
"release": "standard-version",
|
|
24
|
+
"deploy": "sh sync.sh",
|
|
25
|
+
"deploy-w": "sh sync-w.sh",
|
|
26
|
+
"prepare": "husky install",
|
|
27
|
+
"prettier": "prettier --write ./packages ./examples ./build ./plugins ./src"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"naive-ui": "^2.29.0",
|
|
31
|
+
"vue": "^3.2.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@formily/core": "^2.1.9",
|
|
35
|
+
"@formily/vue": "^2.1.9",
|
|
36
|
+
"@highlightjs/vue-plugin": "^2.1.0",
|
|
37
|
+
"@vicons/ionicons5": "^0.12.0",
|
|
38
|
+
"@vueuse/core": "^8.6.0",
|
|
39
|
+
"@vueuse/shared": "^8.6.0",
|
|
40
|
+
"@wangeditor/editor": "^5.1.1",
|
|
41
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
|
42
|
+
"axios": "^0.27.2",
|
|
43
|
+
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
44
|
+
"bpmn-js": "^9.2.2",
|
|
45
|
+
"crypto-js": "^4.1.1",
|
|
46
|
+
"highlight.js": "^11.5.1",
|
|
47
|
+
"lodash": "^4.17.21",
|
|
48
|
+
"lodash-es": "^4.17.21",
|
|
49
|
+
"lodash-unified": "^1.0.2",
|
|
50
|
+
"moment": "^2.29.1",
|
|
51
|
+
"naive-ui": "^2.29.0",
|
|
52
|
+
"rimraf": "^3.0.2",
|
|
53
|
+
"spark-md5": "^3.0.2",
|
|
54
|
+
"type-fest": "^2.13.0",
|
|
55
|
+
"v-viewer": "^3.0.10",
|
|
56
|
+
"video.js": "^7.19.2",
|
|
57
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
58
|
+
"viewerjs": "^1.10.5",
|
|
59
|
+
"vue": "^3.2.0",
|
|
60
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
|
61
|
+
"vuedraggable": "4.1.0",
|
|
62
|
+
"vxe-table": "4.2.5",
|
|
63
|
+
"xe-utils": "^3.5.4"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@babel/cli": "^7.17.10",
|
|
67
|
+
"@babel/core": "^7.18.2",
|
|
68
|
+
"@babel/preset-env": "^7.18.2",
|
|
69
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
70
|
+
"@commitlint/cli": "^16.1.0",
|
|
71
|
+
"@commitlint/config-conventional": "^16.2.4",
|
|
72
|
+
"@esbuild-kit/cjs-loader": "^2.0.0",
|
|
73
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
74
|
+
"@rollup/plugin-commonjs": "^22.0.0",
|
|
75
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
76
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
77
|
+
"@types/babel__core": "^7.1.19",
|
|
78
|
+
"@types/fs-extra": "^9.0.13",
|
|
79
|
+
"@types/gulp": "^4.0.9",
|
|
80
|
+
"@types/gulp-less": "^0.0.32",
|
|
81
|
+
"@types/lodash-es": "^4.17.6",
|
|
82
|
+
"@types/markdown-it": "^12.2.3",
|
|
83
|
+
"@types/node": "^17.0.38",
|
|
84
|
+
"@types/replacestream": "^4.0.1",
|
|
85
|
+
"@types/vue-router": "^2.0.0",
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
87
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
88
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
89
|
+
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
|
90
|
+
"@vue/babel-preset-jsx": "^1.2.4",
|
|
91
|
+
"@vue/compiler-sfc": "^3.2.33",
|
|
92
|
+
"@vue/shared": "^3.2.36",
|
|
93
|
+
"autoprefixer": "^10.4.7",
|
|
94
|
+
"axios": "^0.27.2",
|
|
95
|
+
"bpmn-js": "^9.2.2",
|
|
96
|
+
"chalk": "^5.0.1",
|
|
97
|
+
"codesandbox": "^2.2.3",
|
|
98
|
+
"commitlint": "^17.0.3",
|
|
99
|
+
"consola": "^2.15.3",
|
|
100
|
+
"cross-env": "^7.0.3",
|
|
101
|
+
"cssnano": "^5.1.7",
|
|
102
|
+
"esbuild": "^0.14.42",
|
|
103
|
+
"eslint": "^8.7.0",
|
|
104
|
+
"eslint-config-prettier": "^8.3.0",
|
|
105
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
106
|
+
"eslint-plugin-vue": "^8.3.0",
|
|
107
|
+
"gulp": "^4.0.2",
|
|
108
|
+
"gulp-cssimport": "^7.0.0",
|
|
109
|
+
"gulp-less": "^5.0.0",
|
|
110
|
+
"gulp-rename": "^2.0.0",
|
|
111
|
+
"gulp-replace": "^1.1.3",
|
|
112
|
+
"gulp-util": "^3.0.8",
|
|
113
|
+
"heapdump": "^0.3.15",
|
|
114
|
+
"husky": "^7.0.4",
|
|
115
|
+
"less": "^4.1.2",
|
|
116
|
+
"lint-staged": "^13.0.3",
|
|
117
|
+
"markdown-it": "^13.0.1",
|
|
118
|
+
"postcss": "^8.4.14",
|
|
119
|
+
"prettier": "^2.7.1",
|
|
120
|
+
"replacestream": "^4.0.3",
|
|
121
|
+
"rollup": "^2.75.5",
|
|
122
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
123
|
+
"rollup-plugin-esbuild": "^4.9.1",
|
|
124
|
+
"rollup-plugin-external-globals": "^0.6.1",
|
|
125
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
126
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
127
|
+
"rollup-plugin-typescript2": "^0.32.0",
|
|
128
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
129
|
+
"standard-version": "^9.3.2",
|
|
130
|
+
"ts-morph": "^15.1.0",
|
|
131
|
+
"typescript": "4.6.4",
|
|
132
|
+
"vite": "^2.9.9",
|
|
133
|
+
"vitest": "^0.16.0",
|
|
134
|
+
"vue-tsc": "^0.29.8"
|
|
135
|
+
},
|
|
136
|
+
"husky": {
|
|
137
|
+
"hooks": {
|
|
138
|
+
"pre-commit": "lint-staged"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"lint-staged": {
|
|
142
|
+
"*.{js,jsx,vue,ts,tsx}": [
|
|
143
|
+
"prettier --write",
|
|
144
|
+
"git add"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"browserslist": [
|
|
148
|
+
"defaults",
|
|
149
|
+
"not ie < 8",
|
|
150
|
+
"last 2 versions",
|
|
151
|
+
"> 1%",
|
|
152
|
+
"iOS 7",
|
|
153
|
+
"last 3 iOS versions"
|
|
154
|
+
]
|
|
155
155
|
}
|