@baosight/er4j 0.0.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/README.md +24 -0
- package/er4j-dist/ErPopFree-DkF2PbwS.js +5 -0
- package/er4j-dist/ErPopFree-DkF2PbwS.js.map +1 -0
- package/er4j-dist/ErPopQuery-I5jqN6v5.js +5 -0
- package/er4j-dist/ErPopQuery-I5jqN6v5.js.map +1 -0
- package/er4j-dist/ErPopTree-DrQaECbP.js +164 -0
- package/er4j-dist/ErPopTree-DrQaECbP.js.map +1 -0
- package/er4j-dist/er4j.css +1 -0
- package/er4j-dist/er4j.es.js +14 -0
- package/er4j-dist/er4j.es.js.map +1 -0
- package/er4j-dist/er4j.umd.js +47 -0
- package/er4j-dist/er4j.umd.js.map +1 -0
- package/er4j-dist/favicon.ico +0 -0
- package/er4j-dist/iconfont-CV-ODMQE.js +36 -0
- package/er4j-dist/iconfont-CV-ODMQE.js.map +1 -0
- package/er4j-dist/img/login/bright-background.png +0 -0
- package/er4j-dist/index-BHXVGSb6.js +22345 -0
- package/er4j-dist/index-BHXVGSb6.js.map +1 -0
- package/er4j-dist/types/assets/iconfont/iconfont.json.d.ts +796 -0
- package/er4j-dist/types/components/ErDialog/DialogBase.vue.d.ts +161 -0
- package/er4j-dist/types/components/ErDialog/ErDialog.vue.d.ts +443 -0
- package/er4j-dist/types/components/ErFormToolbar/ErFormToolbar.vue.d.ts +1192 -0
- package/er4j-dist/types/components/ErGrid/ErGrid.vue.d.ts +3952 -0
- package/er4j-dist/types/components/ErGridCellEditor/ButtonEditor.vue.d.ts +2985 -0
- package/er4j-dist/types/components/ErGridCellEditor/ColorEditor.vue.d.ts +18 -0
- package/er4j-dist/types/components/ErGridCellEditor/DatetimeEditor.vue.d.ts +6114 -0
- package/er4j-dist/types/components/ErGridCellEditor/DropdownEditor.vue.d.ts +2675 -0
- package/er4j-dist/types/components/ErGridCellEditor/LargeTextEditor.vue.d.ts +1829 -0
- package/er4j-dist/types/components/ErGridCellEditor/NumberEditor.vue.d.ts +2676 -0
- package/er4j-dist/types/components/ErGridCellEditor/TextEditor.vue.d.ts +2677 -0
- package/er4j-dist/types/components/ErGridCellRender/ButtonGroup.vue.d.ts +1887 -0
- package/er4j-dist/types/components/ErGridCellRender/ColorCell.vue.d.ts +10 -0
- package/er4j-dist/types/components/ErGridCellRender/DefaultRender.vue.d.ts +1001 -0
- package/er4j-dist/types/components/ErGridCellRender/ImagePreview.vue.d.ts +352 -0
- package/er4j-dist/types/components/ErGridCellRender/PreviewDetail.vue.d.ts +10 -0
- package/er4j-dist/types/components/ErGridCellRender/ProgressBar.vue.d.ts +17 -0
- package/er4j-dist/types/components/ErGridStatusBar/AggregationPanel.vue.d.ts +11 -0
- package/er4j-dist/types/components/ErGridStatusBar/InformationPanel.vue.d.ts +317 -0
- package/er4j-dist/types/components/ErGridStatusBar/PaginationPanel.vue.d.ts +26 -0
- package/er4j-dist/types/components/ErGridStatusBar/ToolbarPanel.vue.d.ts +1889 -0
- package/er4j-dist/types/components/ErLayout/ErLayout.vue.d.ts +13794 -0
- package/er4j-dist/types/components/ErMemoEditor/ErMemoEditor.vue.d.ts +2761 -0
- package/er4j-dist/types/components/ErMenuDevPlat/CustomCellRenderer.vue.d.ts +1873 -0
- package/er4j-dist/types/components/ErMenuDevPlat/ErMenuDevPlat.vue.d.ts +8913 -0
- package/er4j-dist/types/components/ErPanel/ErPanel.vue.d.ts +239 -0
- package/er4j-dist/types/components/ErPopFree/ErPopFree.vue.d.ts +1074 -0
- package/er4j-dist/types/components/ErPopQuery/ErPopQuery.vue.d.ts +1599 -0
- package/er4j-dist/types/components/ErPopTree/ErPopTree.vue.d.ts +1290 -0
- package/er4j-dist/types/components/ErSelect/ErSelect.vue.d.ts +2601 -0
- package/er4j-dist/types/components/ErTree/ErTree.vue.d.ts +1689 -0
- package/er4j-dist/types/components/ErTree/NodeRenderer.vue.d.ts +11 -0
- package/er4j-dist/types/components/ag-grid/agGridVue3.d.ts +2 -0
- package/er4j-dist/types/components/hooks/useI18n.d.ts +99 -0
- package/er4j-dist/types/index.d.ts +12 -0
- package/er4j-dist/types/locales/agGridLocale/locale.ar.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.en.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.id.d.ts +377 -0
- package/er4j-dist/types/locales/agGridLocale/locale.zh.d.ts +371 -0
- package/er4j-dist/types/locales/erLocale/locale.ar.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.en.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.id.d.ts +178 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hans.d.ts +177 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hant.d.ts +178 -0
- package/er4j-dist/types/locales/localeConfig.d.ts +32 -0
- package/er4j-dist/types/styles/themes/ant-design-vue-theme/index.d.ts +134 -0
- package/er4j-dist/types/type/er-type.d.ts +107 -0
- package/er4j-dist/types/utils/er.d.ts +5350 -0
- package/er4j-dist/types/utils/theme.d.ts +144 -0
- package/package.json +128 -0
- package/src/views/JA/ER/JAER01.vue +38 -0
- package/src/views/JA/ER/JAER02.vue +94 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Locale } from 'ant-design-vue/es/locale';
|
|
2
|
+
/**
|
|
3
|
+
* @description: 获取当前需要切换的语言类型
|
|
4
|
+
* @param {*} string
|
|
5
|
+
* @return {*}
|
|
6
|
+
*/
|
|
7
|
+
export declare const getLocale: () => string;
|
|
8
|
+
export declare let vueI18n: any;
|
|
9
|
+
declare const getVueI18n: (messages: any) => import('vue-i18n').I18n<any, {}, {}, string, false>;
|
|
10
|
+
export declare const getVueI18nInstance: () => any;
|
|
11
|
+
/**
|
|
12
|
+
* @description: 切换语言
|
|
13
|
+
* @param {*} locale "zh_Hans" | 'en' | 'ar'
|
|
14
|
+
* @param {*} realReload
|
|
15
|
+
* @return {*}
|
|
16
|
+
*/
|
|
17
|
+
export declare const setI18nLanguage: (locale: string, realReload?: boolean) => void;
|
|
18
|
+
export declare const getAgLocaleText: () => {};
|
|
19
|
+
export declare const getAntdLocale: () => Locale;
|
|
20
|
+
export declare const getDayjsLocale: () => string;
|
|
21
|
+
/**
|
|
22
|
+
* @description: 自定义dayjs本地化的语言配置formats
|
|
23
|
+
* @param {any} dayjsUpdateLocale
|
|
24
|
+
* @return {*}
|
|
25
|
+
*/
|
|
26
|
+
export declare const customDayjsLocale: (dayjsUpdateLocale: any) => void;
|
|
27
|
+
/**
|
|
28
|
+
* @description: 获取当前语言模式下的画面布局方向
|
|
29
|
+
* @return {*}
|
|
30
|
+
*/
|
|
31
|
+
export declare const isRTL: () => any;
|
|
32
|
+
export default getVueI18n;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export declare const antdLightTheme: {
|
|
2
|
+
token: {
|
|
3
|
+
fontSize: number;
|
|
4
|
+
sizeStep: number;
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
wireframe: boolean;
|
|
7
|
+
colorPrimary: string;
|
|
8
|
+
};
|
|
9
|
+
components: {
|
|
10
|
+
Form: {
|
|
11
|
+
marginLG: number;
|
|
12
|
+
};
|
|
13
|
+
Button: {
|
|
14
|
+
lineHeight: number;
|
|
15
|
+
};
|
|
16
|
+
Tabs: {
|
|
17
|
+
margin: number;
|
|
18
|
+
colorBgContainer: string;
|
|
19
|
+
colorPrimary: string;
|
|
20
|
+
colorText: string;
|
|
21
|
+
colorSplit: string;
|
|
22
|
+
colorBorder: string;
|
|
23
|
+
colorPrimaryBorder: string;
|
|
24
|
+
lineHeight: number;
|
|
25
|
+
};
|
|
26
|
+
DatePicker: {
|
|
27
|
+
colorPrimary: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const antdDarkTheme: {
|
|
32
|
+
token: {
|
|
33
|
+
fontSize: number;
|
|
34
|
+
sizeStep: number;
|
|
35
|
+
borderRadius: number;
|
|
36
|
+
wireframe: boolean;
|
|
37
|
+
colorBgBase: string;
|
|
38
|
+
colorTextBase: string;
|
|
39
|
+
colorPrimary: string;
|
|
40
|
+
colorPrimaryBorder: string;
|
|
41
|
+
colorPrimaryBorderHover: string;
|
|
42
|
+
colorPrimaryText: string;
|
|
43
|
+
};
|
|
44
|
+
components: {
|
|
45
|
+
Button: {
|
|
46
|
+
colorBgContainer: string;
|
|
47
|
+
colorBorder: string;
|
|
48
|
+
colorText: string;
|
|
49
|
+
lineHeight: number;
|
|
50
|
+
};
|
|
51
|
+
Form: {
|
|
52
|
+
marginLG: number;
|
|
53
|
+
colorPrimary: string;
|
|
54
|
+
colorTextHeading: string;
|
|
55
|
+
colorTextDescription: string;
|
|
56
|
+
colorText: string;
|
|
57
|
+
colorBorder: string;
|
|
58
|
+
controlOutline: string;
|
|
59
|
+
colorError: string;
|
|
60
|
+
};
|
|
61
|
+
Input: {
|
|
62
|
+
colorBgContainer: string;
|
|
63
|
+
colorBorder: string;
|
|
64
|
+
colorIconHover: string;
|
|
65
|
+
colorPrimaryActive: string;
|
|
66
|
+
colorBgContainerDisabled: string;
|
|
67
|
+
colorText: string;
|
|
68
|
+
};
|
|
69
|
+
Checkbox: {
|
|
70
|
+
colorBgContainer: string;
|
|
71
|
+
colorBorder: string;
|
|
72
|
+
};
|
|
73
|
+
InputNumber: {
|
|
74
|
+
colorBgContainer: string;
|
|
75
|
+
colorBorder: string;
|
|
76
|
+
colorIconHover: string;
|
|
77
|
+
colorPrimaryActive: string;
|
|
78
|
+
colorBgContainerDisabled: string;
|
|
79
|
+
colorText: string;
|
|
80
|
+
};
|
|
81
|
+
Radio: {
|
|
82
|
+
colorBgContainer: string;
|
|
83
|
+
colorBgContainerDisabled: string;
|
|
84
|
+
};
|
|
85
|
+
Switch: {
|
|
86
|
+
colorPrimary: string;
|
|
87
|
+
colorBgContainer: string;
|
|
88
|
+
};
|
|
89
|
+
TreeSelect: {
|
|
90
|
+
colorBgContainer: string;
|
|
91
|
+
};
|
|
92
|
+
Tabs: {
|
|
93
|
+
margin: number;
|
|
94
|
+
colorPrimaryActive: string;
|
|
95
|
+
colorBgContainer: string;
|
|
96
|
+
colorPrimary: string;
|
|
97
|
+
colorFillAlter: string;
|
|
98
|
+
colorSplit: string;
|
|
99
|
+
colorText: string;
|
|
100
|
+
lineHeight: number;
|
|
101
|
+
};
|
|
102
|
+
Select: {
|
|
103
|
+
colorBgContainer: string;
|
|
104
|
+
colorBgContainerDisabled: string;
|
|
105
|
+
colorBgElevated: string;
|
|
106
|
+
controlItemBgActive: string;
|
|
107
|
+
colorBorder: string;
|
|
108
|
+
colorText: string;
|
|
109
|
+
};
|
|
110
|
+
DatePicker: {
|
|
111
|
+
colorBgContainer: string;
|
|
112
|
+
colorBgContainerDisabled: string;
|
|
113
|
+
colorBorder: string;
|
|
114
|
+
colorText: string;
|
|
115
|
+
colorBgElevated: string;
|
|
116
|
+
colorTextHeading: string;
|
|
117
|
+
colorIcon: string;
|
|
118
|
+
colorIconHover: string;
|
|
119
|
+
colorTextDisabled: string;
|
|
120
|
+
controlItemBgHover: string;
|
|
121
|
+
controlItemBgActive: string;
|
|
122
|
+
};
|
|
123
|
+
Calendar: {
|
|
124
|
+
colorBgContainer: string;
|
|
125
|
+
};
|
|
126
|
+
Modal: {
|
|
127
|
+
colorBgElevated: string;
|
|
128
|
+
colorTextHeading: string;
|
|
129
|
+
};
|
|
130
|
+
Tree: {
|
|
131
|
+
colorBgContainer: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export interface DialogResult {
|
|
2
|
+
result: 'ok' | 'cancel' | 'yes' | 'no' | 'none';
|
|
3
|
+
context?: any;
|
|
4
|
+
}
|
|
5
|
+
export interface LoadingOptions {
|
|
6
|
+
show: boolean;
|
|
7
|
+
target?: string;
|
|
8
|
+
showAnimation?: boolean;
|
|
9
|
+
ms?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ErPopFree组件返回参数
|
|
13
|
+
*/
|
|
14
|
+
export interface PopFreeReturnInfo {
|
|
15
|
+
sender: any;
|
|
16
|
+
dialogResult: 'ok' | 'cancel' | 'none';
|
|
17
|
+
dialogColseType?: string;
|
|
18
|
+
formHelper: any;
|
|
19
|
+
dataModel: any;
|
|
20
|
+
modelId?: string;
|
|
21
|
+
isModified: boolean;
|
|
22
|
+
context?: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ErPopQuery组件返回参数
|
|
26
|
+
*/
|
|
27
|
+
export interface PopQueryReturnInfo {
|
|
28
|
+
sender: any;
|
|
29
|
+
dialogResult: 'ok' | 'cancel' | 'clear' | 'none';
|
|
30
|
+
dialogColseType?: string;
|
|
31
|
+
formHelper: any;
|
|
32
|
+
modelId: string;
|
|
33
|
+
checkedItem?: any;
|
|
34
|
+
checkedItemArray?: any[];
|
|
35
|
+
checkedCodes?: string;
|
|
36
|
+
checkedDescs?: string;
|
|
37
|
+
context?: any;
|
|
38
|
+
}
|
|
39
|
+
export interface PopFormReturnInfo {
|
|
40
|
+
sender: any;
|
|
41
|
+
dialogResult: 'ok' | 'cancel' | 'none';
|
|
42
|
+
dialogColseType?: string;
|
|
43
|
+
formHelper: any;
|
|
44
|
+
dataModel: any;
|
|
45
|
+
modelId?: string;
|
|
46
|
+
isModified: boolean;
|
|
47
|
+
context?: any;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* ErPopTree组件返回参数
|
|
51
|
+
*/
|
|
52
|
+
export interface PopTreeReturnInfo {
|
|
53
|
+
sender: any;
|
|
54
|
+
dialogResult: 'ok' | 'cancel' | 'clear' | 'none';
|
|
55
|
+
dialogColseType?: string;
|
|
56
|
+
formHelper: any;
|
|
57
|
+
modelId: string;
|
|
58
|
+
data: any;
|
|
59
|
+
checkedItem?: any;
|
|
60
|
+
checkedItemArray?: any[];
|
|
61
|
+
checkedCodes?: string;
|
|
62
|
+
checkedDescs?: string;
|
|
63
|
+
context?: any;
|
|
64
|
+
}
|
|
65
|
+
export interface PopWindowReturnInfo {
|
|
66
|
+
sender: any;
|
|
67
|
+
dialogResult: 'ok' | 'cancel' | 'close' | 'open';
|
|
68
|
+
dialogColseType?: string;
|
|
69
|
+
formHelper: any;
|
|
70
|
+
context?: any;
|
|
71
|
+
}
|
|
72
|
+
export interface DataTableSchemaField {
|
|
73
|
+
name: string | undefined;
|
|
74
|
+
caption?: string | undefined;
|
|
75
|
+
defaultValue?: any;
|
|
76
|
+
editable?: boolean | undefined;
|
|
77
|
+
nullable?: boolean | undefined;
|
|
78
|
+
parse?: Function | undefined;
|
|
79
|
+
type?: 'string' | 'boolean' | 'number' | 'datetime';
|
|
80
|
+
required?: boolean | undefined;
|
|
81
|
+
min?: any;
|
|
82
|
+
max?: any;
|
|
83
|
+
maxLength?: any;
|
|
84
|
+
[rule: string]: any;
|
|
85
|
+
}
|
|
86
|
+
export interface DataTableSchemaFields {
|
|
87
|
+
[index: string]: DataTableSchemaField;
|
|
88
|
+
}
|
|
89
|
+
export interface DataTableChangeEvent {
|
|
90
|
+
sender: any;
|
|
91
|
+
field?: string | undefined;
|
|
92
|
+
value?: any;
|
|
93
|
+
action?: string | undefined;
|
|
94
|
+
index?: number | undefined;
|
|
95
|
+
items?: any;
|
|
96
|
+
}
|
|
97
|
+
export interface DataTableOptions {
|
|
98
|
+
data?: any;
|
|
99
|
+
hierarchy?: {
|
|
100
|
+
primaryField?: string | undefined;
|
|
101
|
+
parentField?: string | undefined;
|
|
102
|
+
};
|
|
103
|
+
filter?: any;
|
|
104
|
+
schema?: DataTableSchemaFields | undefined;
|
|
105
|
+
change?(e: DataTableChangeEvent): void;
|
|
106
|
+
}
|
|
107
|
+
export type GetGridRowsType = 'current' | 'select' | 'checked' | 'checkedAfterFilter' | 'add' | 'modify' | 'delete' | 'all';
|