@geelato/gl-runtime-core 0.0.1
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/gl-runtime-core.css +1 -0
- package/dist/gl-runtime-core.css.gz +0 -0
- package/dist/gl-runtime-core.js +169768 -0
- package/dist/gl-runtime-core.js.gz +0 -0
- package/dist/gl-runtime-core.umd.cjs +35 -0
- package/dist/iconfont-BJ2VOOKJ.js +35 -0
- package/dist/iconfont-BJ2VOOKJ.js.gz +0 -0
- package/dist/types/actions/JsScriptExecutor.d.ts +291 -0
- package/dist/types/actions/fns/datetime.d.ts +22 -0
- package/dist/types/actions/fns/device.d.ts +23 -0
- package/dist/types/actions/fns/math.d.ts +27 -0
- package/dist/types/api/EntityApi.d.ts +143 -0
- package/dist/types/api/EntityDataSource.d.ts +272 -0
- package/dist/types/api/EntityDeleteService.d.ts +47 -0
- package/dist/types/api/EntityQueryCache.d.ts +62 -0
- package/dist/types/api/EntityQueryService.d.ts +71 -0
- package/dist/types/api/EntityResultMapping.d.ts +11 -0
- package/dist/types/api/EntitySaveService.d.ts +46 -0
- package/dist/types/api/EntityTypes.d.ts +135 -0
- package/dist/types/api/EntityUtilService.d.ts +42 -0
- package/dist/types/assets/globalConfig.d.ts +5 -0
- package/dist/types/components/AppProvideProxy.d.ts +21 -0
- package/dist/types/components/ComponentTreeParser.d.ts +17 -0
- package/dist/types/components/FormProvideProxy.d.ts +35 -0
- package/dist/types/components/Hooks.d.ts +7 -0
- package/dist/types/components/PageDataSourceManager.d.ts +28 -0
- package/dist/types/components/PageLoader.d.ts +6 -0
- package/dist/types/components/PageProvideProxy.d.ts +413 -0
- package/dist/types/components/UiEventNames.d.ts +15 -0
- package/dist/types/components/gl-chart/GlChart.vue.d.ts +135 -0
- package/dist/types/components/gl-component/GlComponent.vue.d.ts +191 -0
- package/dist/types/components/gl-component/GlComponentSupport.d.ts +49 -0
- package/dist/types/components/gl-component/GlInsts.vue.d.ts +19 -0
- package/dist/types/components/gl-div/GlDiv.vue.d.ts +107 -0
- package/dist/types/components/gl-dnd-placeholder/Index.vue.d.ts +112 -0
- package/dist/types/components/gl-html/Index.vue.d.ts +7 -0
- package/dist/types/components/gl-iconfont/IconsJson.d.ts +15 -0
- package/dist/types/components/gl-iconfont/Index.vue.d.ts +19 -0
- package/dist/types/components/gl-loader/GlLoader.vue.d.ts +3 -0
- package/dist/types/components/gl-login/FloatingActionButton.vue.d.ts +9 -0
- package/dist/types/components/gl-login/LoginDialog.vue.d.ts +9 -0
- package/dist/types/components/gl-loop/GlLoop.vue.d.ts +230 -0
- package/dist/types/components/gl-page-viewer/GlPageViewer.vue.d.ts +221 -0
- package/dist/types/components/gl-scanner/GlScanner.vue.d.ts +44 -0
- package/dist/types/components/gl-template/GlTemplate.vue.d.ts +154 -0
- package/dist/types/components/gl-template/Typs.d.ts +4 -0
- package/dist/types/components/gl-virtual/Index.vue.d.ts +3 -0
- package/dist/types/components/mixins.d.ts +86 -0
- package/dist/types/components/ui-mixins.d.ts +16 -0
- package/dist/types/composables/useApiUrl.d.ts +30 -0
- package/dist/types/composables/useGlobal.d.ts +21 -0
- package/dist/types/composables/useLoading.d.ts +6 -0
- package/dist/types/composables/useLogger.d.ts +32 -0
- package/dist/types/composables/useMessages.d.ts +15 -0
- package/dist/types/composables/useRole.d.ts +5 -0
- package/dist/types/locales/index.d.ts +21 -0
- package/dist/types/locales/lang/en-US.d.ts +4 -0
- package/dist/types/locales/lang/zh-CN.d.ts +4 -0
- package/dist/types/m/datasource/ApplicationApi.d.ts +163 -0
- package/dist/types/m/datasource/ArcoApi.d.ts +76 -0
- package/dist/types/m/datasource/Base.d.ts +99 -0
- package/dist/types/m/datasource/BranchApi.d.ts +2 -0
- package/dist/types/m/datasource/CompanyApi.d.ts +49 -0
- package/dist/types/m/datasource/DictApi.d.ts +127 -0
- package/dist/types/m/datasource/DictionaryApi.d.ts +16 -0
- package/dist/types/m/datasource/EncodingApi.d.ts +59 -0
- package/dist/types/m/datasource/Entry.d.ts +5 -0
- package/dist/types/m/datasource/FieldMeta.d.ts +6 -0
- package/dist/types/m/datasource/FileApi.d.ts +273 -0
- package/dist/types/m/datasource/FileTemplateApi.d.ts +114 -0
- package/dist/types/m/datasource/InterApi.d.ts +104 -0
- package/dist/types/m/datasource/MarketApi.d.ts +191 -0
- package/dist/types/m/datasource/MessageApi.d.ts +27 -0
- package/dist/types/m/datasource/ModelApi.d.ts +327 -0
- package/dist/types/m/datasource/NoticeApi.d.ts +37 -0
- package/dist/types/m/datasource/OcrPdfApi.d.ts +145 -0
- package/dist/types/m/datasource/PluginApi.d.ts +35 -0
- package/dist/types/m/datasource/ScheduleApi.d.ts +67 -0
- package/dist/types/m/datasource/SecurityApi.d.ts +253 -0
- package/dist/types/m/datasource/SiteApi.d.ts +38 -0
- package/dist/types/m/datasource/SqlApi.d.ts +45 -0
- package/dist/types/m/datasource/SysConfigApi.d.ts +52 -0
- package/dist/types/m/datasource/TenantApi.d.ts +107 -0
- package/dist/types/m/datasource/UserApi.d.ts +173 -0
- package/dist/types/m/datasource/VersionApi.d.ts +59 -0
- package/dist/types/m/datasource/WeChatApi.d.ts +34 -0
- package/dist/types/m/datasource/WorkflowApi.d.ts +317 -0
- package/dist/types/m/datasource/ZxingApi.d.ts +38 -0
- package/dist/types/main.d.ts +114 -0
- package/dist/types/store/index.d.ts +2 -0
- package/dist/types/store/modules/user/index.d.ts +16 -0
- package/dist/types/types/Operators.d.ts +19 -0
- package/dist/types/types/global.d.ts +198 -0
- package/dist/types/types/options.d.ts +35 -0
- package/dist/types/utils/Auth.d.ts +37 -0
- package/dist/types/utils/CacheManager.d.ts +110 -0
- package/dist/types/utils/CheckUtil.d.ts +5 -0
- package/dist/types/utils/ClipboardUtil.d.ts +24 -0
- package/dist/types/utils/ConvertUtil.d.ts +81 -0
- package/dist/types/utils/Event.d.ts +2 -0
- package/dist/types/utils/FileUtil.d.ts +7 -0
- package/dist/types/utils/GenerateUtil.d.ts +14 -0
- package/dist/types/utils/IsUtil.d.ts +126 -0
- package/dist/types/utils/MixUtil.d.ts +49 -0
- package/dist/types/utils/Monitor.d.ts +2 -0
- package/dist/types/utils/PageUtil.d.ts +14 -0
- package/dist/types/utils/PluginUtil.d.ts +9 -0
- package/dist/types/utils/RecordsUtil.d.ts +3 -0
- package/dist/types/utils/SseClient.d.ts +34 -0
- package/dist/types/utils/StoreUtil.d.ts +8 -0
- package/dist/types/utils/StringUtil.d.ts +29 -0
- package/dist/types/utils/Utils.d.ts +217 -0
- package/dist/types/utils/emitter.d.ts +3 -0
- package/dist/types/utils/renderTemplate.d.ts +6 -0
- package/dist/types/utils/toChineseCurrency.d.ts +5 -0
- package/package.json +76 -0
- package/src/main.ts +498 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { EntityReader } from '../../api/EntityDataSource.ts';
|
|
3
|
+
import { IComponentInstance } from '@geelato/gl-types';
|
|
4
|
+
import { ComponentInstance } from '@geelato/gl-ui-schema';
|
|
5
|
+
import { PageCustomType, PagePermission } from '../PageProvideProxy.ts';
|
|
6
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
7
|
+
parentId: {
|
|
8
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
9
|
+
};
|
|
10
|
+
glComponentInst: {
|
|
11
|
+
type: PropType< IComponentInstance>;
|
|
12
|
+
default(): ComponentInstance;
|
|
13
|
+
};
|
|
14
|
+
glChildren: {
|
|
15
|
+
type: PropType<Array< IComponentInstance>>;
|
|
16
|
+
default(): never[];
|
|
17
|
+
};
|
|
18
|
+
glCtx: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default(): {};
|
|
21
|
+
};
|
|
22
|
+
glIsRuntime: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default(): boolean;
|
|
25
|
+
};
|
|
26
|
+
glRuntimeFlag: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default(): string;
|
|
29
|
+
};
|
|
30
|
+
glIndex: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
};
|
|
33
|
+
glLoopItem: ObjectConstructor;
|
|
34
|
+
glLoopIndex: NumberConstructor;
|
|
35
|
+
glIgnoreInjectPageProxy: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default(): boolean;
|
|
38
|
+
};
|
|
39
|
+
componentStoreId: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default(): string;
|
|
42
|
+
};
|
|
43
|
+
pageCustom: PropType< PageCustomType>;
|
|
44
|
+
pagePermission: PropType< PagePermission>;
|
|
45
|
+
glDoAction: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
modelValue: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default(): string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 模板数据源类型
|
|
55
|
+
* staticArray:静态数组数据源
|
|
56
|
+
* dynamicArray:动态的实体数据源(entityReader)
|
|
57
|
+
*/
|
|
58
|
+
dataSourceType: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default(): string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 静态的数据源
|
|
64
|
+
*/
|
|
65
|
+
staticArray: {
|
|
66
|
+
type: PropType<Array<Record<string, any>>>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 数据实体
|
|
70
|
+
*/
|
|
71
|
+
entityReader: {
|
|
72
|
+
type: PropType<EntityReader>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* 对齐方式
|
|
77
|
+
* 'start' | 'end' | 'center' | 'baseline'
|
|
78
|
+
*/
|
|
79
|
+
align: PropType<"start" | "end" | "center" | "baseline">;
|
|
80
|
+
/**
|
|
81
|
+
* 间距方向
|
|
82
|
+
* 'vertical' | 'horizontal'
|
|
83
|
+
* 默认为'horizontal'
|
|
84
|
+
*/
|
|
85
|
+
direction: PropType<"horizontal" | "vertical">;
|
|
86
|
+
/**
|
|
87
|
+
* 间距大小,支持分别制定横向和竖向的间距
|
|
88
|
+
* number | 'mini' | 'small' | 'medium' | 'large' | [SpaceSize, SpaceSize]
|
|
89
|
+
* 默认为'small'
|
|
90
|
+
*/
|
|
91
|
+
size: (StringConstructor | NumberConstructor)[];
|
|
92
|
+
/**
|
|
93
|
+
* 是否可折行
|
|
94
|
+
* 环绕类型的间距,用于折行的场景。
|
|
95
|
+
* 默认为false
|
|
96
|
+
*/
|
|
97
|
+
wrap: BooleanConstructor;
|
|
98
|
+
/**
|
|
99
|
+
* 充满整行
|
|
100
|
+
* 默认为false
|
|
101
|
+
*/
|
|
102
|
+
fill: BooleanConstructor;
|
|
103
|
+
/**
|
|
104
|
+
* 分隔
|
|
105
|
+
* 默认为false
|
|
106
|
+
*/
|
|
107
|
+
divider: BooleanConstructor;
|
|
108
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
109
|
+
"update:modelValue": (...args: any[]) => void;
|
|
110
|
+
clickLoopItem: (...args: any[]) => void;
|
|
111
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
112
|
+
parentId: {
|
|
113
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
114
|
+
};
|
|
115
|
+
glComponentInst: {
|
|
116
|
+
type: PropType< IComponentInstance>;
|
|
117
|
+
default(): ComponentInstance;
|
|
118
|
+
};
|
|
119
|
+
glChildren: {
|
|
120
|
+
type: PropType<Array< IComponentInstance>>;
|
|
121
|
+
default(): never[];
|
|
122
|
+
};
|
|
123
|
+
glCtx: {
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
default(): {};
|
|
126
|
+
};
|
|
127
|
+
glIsRuntime: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default(): boolean;
|
|
130
|
+
};
|
|
131
|
+
glRuntimeFlag: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default(): string;
|
|
134
|
+
};
|
|
135
|
+
glIndex: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
};
|
|
138
|
+
glLoopItem: ObjectConstructor;
|
|
139
|
+
glLoopIndex: NumberConstructor;
|
|
140
|
+
glIgnoreInjectPageProxy: {
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
default(): boolean;
|
|
143
|
+
};
|
|
144
|
+
componentStoreId: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default(): string;
|
|
147
|
+
};
|
|
148
|
+
pageCustom: PropType< PageCustomType>;
|
|
149
|
+
pagePermission: PropType< PagePermission>;
|
|
150
|
+
glDoAction: {
|
|
151
|
+
type: FunctionConstructor;
|
|
152
|
+
required: boolean;
|
|
153
|
+
};
|
|
154
|
+
modelValue: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
default(): string;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* 模板数据源类型
|
|
160
|
+
* staticArray:静态数组数据源
|
|
161
|
+
* dynamicArray:动态的实体数据源(entityReader)
|
|
162
|
+
*/
|
|
163
|
+
dataSourceType: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default(): string;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* 静态的数据源
|
|
169
|
+
*/
|
|
170
|
+
staticArray: {
|
|
171
|
+
type: PropType<Array<Record<string, any>>>;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* 数据实体
|
|
175
|
+
*/
|
|
176
|
+
entityReader: {
|
|
177
|
+
type: PropType<EntityReader>;
|
|
178
|
+
required: true;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* 对齐方式
|
|
182
|
+
* 'start' | 'end' | 'center' | 'baseline'
|
|
183
|
+
*/
|
|
184
|
+
align: PropType<"start" | "end" | "center" | "baseline">;
|
|
185
|
+
/**
|
|
186
|
+
* 间距方向
|
|
187
|
+
* 'vertical' | 'horizontal'
|
|
188
|
+
* 默认为'horizontal'
|
|
189
|
+
*/
|
|
190
|
+
direction: PropType<"horizontal" | "vertical">;
|
|
191
|
+
/**
|
|
192
|
+
* 间距大小,支持分别制定横向和竖向的间距
|
|
193
|
+
* number | 'mini' | 'small' | 'medium' | 'large' | [SpaceSize, SpaceSize]
|
|
194
|
+
* 默认为'small'
|
|
195
|
+
*/
|
|
196
|
+
size: (StringConstructor | NumberConstructor)[];
|
|
197
|
+
/**
|
|
198
|
+
* 是否可折行
|
|
199
|
+
* 环绕类型的间距,用于折行的场景。
|
|
200
|
+
* 默认为false
|
|
201
|
+
*/
|
|
202
|
+
wrap: BooleanConstructor;
|
|
203
|
+
/**
|
|
204
|
+
* 充满整行
|
|
205
|
+
* 默认为false
|
|
206
|
+
*/
|
|
207
|
+
fill: BooleanConstructor;
|
|
208
|
+
/**
|
|
209
|
+
* 分隔
|
|
210
|
+
* 默认为false
|
|
211
|
+
*/
|
|
212
|
+
divider: BooleanConstructor;
|
|
213
|
+
}>> & Readonly<{
|
|
214
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
215
|
+
onClickLoopItem?: ((...args: any[]) => any) | undefined;
|
|
216
|
+
}>, {
|
|
217
|
+
fill: boolean;
|
|
218
|
+
glComponentInst: IComponentInstance;
|
|
219
|
+
glChildren: IComponentInstance[];
|
|
220
|
+
glCtx: Record<string, any>;
|
|
221
|
+
glIsRuntime: boolean;
|
|
222
|
+
glRuntimeFlag: string;
|
|
223
|
+
glIgnoreInjectPageProxy: boolean;
|
|
224
|
+
componentStoreId: string;
|
|
225
|
+
modelValue: string;
|
|
226
|
+
dataSourceType: string;
|
|
227
|
+
wrap: boolean;
|
|
228
|
+
divider: boolean;
|
|
229
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
230
|
+
export default _default;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { ComponentInstance } from '@geelato/gl-ui-schema';
|
|
2
|
+
import { PageCustomType, PagePermission } from '../PageProvideProxy';
|
|
3
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { IComponentInstance } from '@geelato/gl-types';
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
6
|
+
parentId: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
};
|
|
9
|
+
glComponentInst: {
|
|
10
|
+
type: PropType<IComponentInstance>;
|
|
11
|
+
default(): ComponentInstance;
|
|
12
|
+
};
|
|
13
|
+
glChildren: {
|
|
14
|
+
type: PropType<Array< IComponentInstance>>;
|
|
15
|
+
default(): never[];
|
|
16
|
+
};
|
|
17
|
+
glCtx: {
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
default(): {};
|
|
20
|
+
};
|
|
21
|
+
glIsRuntime: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default(): boolean;
|
|
24
|
+
};
|
|
25
|
+
glRuntimeFlag: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default(): string;
|
|
28
|
+
};
|
|
29
|
+
glIndex: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
};
|
|
32
|
+
glLoopItem: ObjectConstructor;
|
|
33
|
+
glLoopIndex: NumberConstructor;
|
|
34
|
+
glIgnoreInjectPageProxy: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default(): boolean;
|
|
37
|
+
};
|
|
38
|
+
componentStoreId: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default(): string;
|
|
41
|
+
};
|
|
42
|
+
pageCustom: PropType<PageCustomType>;
|
|
43
|
+
pagePermission: PropType<PagePermission>;
|
|
44
|
+
glDoAction: {
|
|
45
|
+
type: FunctionConstructor;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 页面数据
|
|
50
|
+
* 外部传入的页面数据,包含releaseContent、pageCustom、pagePerms等
|
|
51
|
+
*/
|
|
52
|
+
pageData: {
|
|
53
|
+
type: () => PageData;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 页面ID
|
|
58
|
+
*/
|
|
59
|
+
pageId: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 应用页面树节点ID
|
|
64
|
+
*/
|
|
65
|
+
extendId: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 页面状态
|
|
70
|
+
*/
|
|
71
|
+
pageStatus: StringConstructor;
|
|
72
|
+
/**
|
|
73
|
+
* 页面模板组件名称
|
|
74
|
+
* 默认为空
|
|
75
|
+
*/
|
|
76
|
+
pageTemplateName: StringConstructor;
|
|
77
|
+
pageProps: {
|
|
78
|
+
type: ObjectConstructor;
|
|
79
|
+
default(): {};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 页面高度
|
|
83
|
+
*/
|
|
84
|
+
pageHeight: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* 关闭回调
|
|
90
|
+
* 当用modal或drawer打开页面时,关闭页面时调用
|
|
91
|
+
* 用于关闭modal或drawer
|
|
92
|
+
*/
|
|
93
|
+
onClose: {
|
|
94
|
+
type: FunctionConstructor;
|
|
95
|
+
default: () => void;
|
|
96
|
+
};
|
|
97
|
+
}>, {
|
|
98
|
+
/**
|
|
99
|
+
* 关闭页面
|
|
100
|
+
* 用于关闭modal或drawer
|
|
101
|
+
*/
|
|
102
|
+
closePage: () => void;
|
|
103
|
+
/**
|
|
104
|
+
* 获取PageProvideProxy对象
|
|
105
|
+
* 用于事件监听和页面交互
|
|
106
|
+
*/
|
|
107
|
+
getPageProvideProxy: () => any;
|
|
108
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
109
|
+
parentId: {
|
|
110
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
111
|
+
};
|
|
112
|
+
glComponentInst: {
|
|
113
|
+
type: PropType<IComponentInstance>;
|
|
114
|
+
default(): ComponentInstance;
|
|
115
|
+
};
|
|
116
|
+
glChildren: {
|
|
117
|
+
type: PropType<Array< IComponentInstance>>;
|
|
118
|
+
default(): never[];
|
|
119
|
+
};
|
|
120
|
+
glCtx: {
|
|
121
|
+
type: ObjectConstructor;
|
|
122
|
+
default(): {};
|
|
123
|
+
};
|
|
124
|
+
glIsRuntime: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default(): boolean;
|
|
127
|
+
};
|
|
128
|
+
glRuntimeFlag: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default(): string;
|
|
131
|
+
};
|
|
132
|
+
glIndex: {
|
|
133
|
+
type: NumberConstructor;
|
|
134
|
+
};
|
|
135
|
+
glLoopItem: ObjectConstructor;
|
|
136
|
+
glLoopIndex: NumberConstructor;
|
|
137
|
+
glIgnoreInjectPageProxy: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default(): boolean;
|
|
140
|
+
};
|
|
141
|
+
componentStoreId: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default(): string;
|
|
144
|
+
};
|
|
145
|
+
pageCustom: PropType<PageCustomType>;
|
|
146
|
+
pagePermission: PropType<PagePermission>;
|
|
147
|
+
glDoAction: {
|
|
148
|
+
type: FunctionConstructor;
|
|
149
|
+
required: boolean;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* 页面数据
|
|
153
|
+
* 外部传入的页面数据,包含releaseContent、pageCustom、pagePerms等
|
|
154
|
+
*/
|
|
155
|
+
pageData: {
|
|
156
|
+
type: () => PageData;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* 页面ID
|
|
161
|
+
*/
|
|
162
|
+
pageId: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* 应用页面树节点ID
|
|
167
|
+
*/
|
|
168
|
+
extendId: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* 页面状态
|
|
173
|
+
*/
|
|
174
|
+
pageStatus: StringConstructor;
|
|
175
|
+
/**
|
|
176
|
+
* 页面模板组件名称
|
|
177
|
+
* 默认为空
|
|
178
|
+
*/
|
|
179
|
+
pageTemplateName: StringConstructor;
|
|
180
|
+
pageProps: {
|
|
181
|
+
type: ObjectConstructor;
|
|
182
|
+
default(): {};
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* 页面高度
|
|
186
|
+
*/
|
|
187
|
+
pageHeight: {
|
|
188
|
+
type: NumberConstructor;
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* 关闭回调
|
|
193
|
+
* 当用modal或drawer打开页面时,关闭页面时调用
|
|
194
|
+
* 用于关闭modal或drawer
|
|
195
|
+
*/
|
|
196
|
+
onClose: {
|
|
197
|
+
type: FunctionConstructor;
|
|
198
|
+
default: () => void;
|
|
199
|
+
};
|
|
200
|
+
}>> & Readonly<{}>, {
|
|
201
|
+
glComponentInst: IComponentInstance;
|
|
202
|
+
pageData: PageData;
|
|
203
|
+
pageProps: Record<string, any>;
|
|
204
|
+
pageHeight: number;
|
|
205
|
+
onClose: Function;
|
|
206
|
+
glChildren: IComponentInstance[];
|
|
207
|
+
glCtx: Record<string, any>;
|
|
208
|
+
glIsRuntime: boolean;
|
|
209
|
+
glRuntimeFlag: string;
|
|
210
|
+
glIgnoreInjectPageProxy: boolean;
|
|
211
|
+
componentStoreId: string;
|
|
212
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
213
|
+
glComponentRef: unknown;
|
|
214
|
+
}, HTMLDivElement>;
|
|
215
|
+
export default _default;
|
|
216
|
+
interface PageData {
|
|
217
|
+
releaseContent: string;
|
|
218
|
+
pageCustom?: PageCustomType;
|
|
219
|
+
pagePerms?: any[];
|
|
220
|
+
pageLang?: string;
|
|
221
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
onClose?: () => void;
|
|
4
|
+
onSuccess?: (decodedText: string, decodedResult: unknown) => void;
|
|
5
|
+
onScan?: (decodedText: string, decodedResult: unknown, meta: {
|
|
6
|
+
duplicated: boolean;
|
|
7
|
+
index: number;
|
|
8
|
+
}) => void;
|
|
9
|
+
onComplete?: (decodedText: string, decodedResult: unknown) => void;
|
|
10
|
+
onError?: (err: unknown) => void;
|
|
11
|
+
continuous?: boolean;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
separator?: string;
|
|
14
|
+
scanKinds?: ("qr" | "barcode")[];
|
|
15
|
+
barcodeFormats?: string[];
|
|
16
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onSuccess?: (decodedText: string, decodedResult: unknown) => void;
|
|
19
|
+
onScan?: (decodedText: string, decodedResult: unknown, meta: {
|
|
20
|
+
duplicated: boolean;
|
|
21
|
+
index: number;
|
|
22
|
+
}) => void;
|
|
23
|
+
onComplete?: (decodedText: string, decodedResult: unknown) => void;
|
|
24
|
+
onError?: (err: unknown) => void;
|
|
25
|
+
continuous?: boolean;
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
separator?: string;
|
|
28
|
+
scanKinds?: ("qr" | "barcode")[];
|
|
29
|
+
barcodeFormats?: string[];
|
|
30
|
+
}> & Readonly<{}>, {
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
onError: (err: unknown) => void;
|
|
33
|
+
onSuccess: (decodedText: string, decodedResult: unknown) => void;
|
|
34
|
+
continuous: boolean;
|
|
35
|
+
multiple: boolean;
|
|
36
|
+
separator: string;
|
|
37
|
+
scanKinds: ("qr" | "barcode")[];
|
|
38
|
+
barcodeFormats: string[];
|
|
39
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
40
|
+
videoElement: HTMLVideoElement;
|
|
41
|
+
fileInput: HTMLInputElement;
|
|
42
|
+
resultsContainer: HTMLDivElement;
|
|
43
|
+
}, HTMLDivElement>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { TemplateCfg } from './Typs';
|
|
3
|
+
import { IComponentInstance } from '@geelato/gl-types';
|
|
4
|
+
import { ComponentInstance } from '@geelato/gl-ui-schema';
|
|
5
|
+
import { PageCustomType, PagePermission } from '../PageProvideProxy';
|
|
6
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
7
|
+
parentId: {
|
|
8
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
9
|
+
};
|
|
10
|
+
glComponentInst: {
|
|
11
|
+
type: PropType< IComponentInstance>;
|
|
12
|
+
default(): ComponentInstance;
|
|
13
|
+
};
|
|
14
|
+
glChildren: {
|
|
15
|
+
type: PropType<Array< IComponentInstance>>;
|
|
16
|
+
default(): never[];
|
|
17
|
+
};
|
|
18
|
+
glCtx: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default(): {};
|
|
21
|
+
};
|
|
22
|
+
glIsRuntime: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default(): boolean;
|
|
25
|
+
};
|
|
26
|
+
glRuntimeFlag: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default(): string;
|
|
29
|
+
};
|
|
30
|
+
glIndex: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
};
|
|
33
|
+
glLoopItem: ObjectConstructor;
|
|
34
|
+
glLoopIndex: NumberConstructor;
|
|
35
|
+
glIgnoreInjectPageProxy: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default(): boolean;
|
|
38
|
+
};
|
|
39
|
+
componentStoreId: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default(): string;
|
|
42
|
+
};
|
|
43
|
+
pageCustom: PropType< PageCustomType>;
|
|
44
|
+
pagePermission: PropType< PagePermission>;
|
|
45
|
+
glDoAction: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* vue模板配置:含内容及参数
|
|
51
|
+
*/
|
|
52
|
+
templateConfig: {
|
|
53
|
+
type: PropType<TemplateCfg>;
|
|
54
|
+
default(): {
|
|
55
|
+
content: string;
|
|
56
|
+
params: {};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 参数
|
|
61
|
+
*/
|
|
62
|
+
params: {
|
|
63
|
+
type: ObjectConstructor;
|
|
64
|
+
default(): {};
|
|
65
|
+
};
|
|
66
|
+
}>, {
|
|
67
|
+
updateParams: (params: {
|
|
68
|
+
newParams: Record<string, unknown>;
|
|
69
|
+
updateMode?: "merge" | "replace";
|
|
70
|
+
}) => void;
|
|
71
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
72
|
+
clickTemplate: (...args: any[]) => void;
|
|
73
|
+
innerClick: (...args: any[]) => void;
|
|
74
|
+
innerChange: (...args: any[]) => void;
|
|
75
|
+
innerDblclick: (...args: any[]) => void;
|
|
76
|
+
paramsUpdated: (...args: any[]) => void;
|
|
77
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
78
|
+
parentId: {
|
|
79
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
80
|
+
};
|
|
81
|
+
glComponentInst: {
|
|
82
|
+
type: PropType< IComponentInstance>;
|
|
83
|
+
default(): ComponentInstance;
|
|
84
|
+
};
|
|
85
|
+
glChildren: {
|
|
86
|
+
type: PropType<Array< IComponentInstance>>;
|
|
87
|
+
default(): never[];
|
|
88
|
+
};
|
|
89
|
+
glCtx: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
default(): {};
|
|
92
|
+
};
|
|
93
|
+
glIsRuntime: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default(): boolean;
|
|
96
|
+
};
|
|
97
|
+
glRuntimeFlag: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default(): string;
|
|
100
|
+
};
|
|
101
|
+
glIndex: {
|
|
102
|
+
type: NumberConstructor;
|
|
103
|
+
};
|
|
104
|
+
glLoopItem: ObjectConstructor;
|
|
105
|
+
glLoopIndex: NumberConstructor;
|
|
106
|
+
glIgnoreInjectPageProxy: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default(): boolean;
|
|
109
|
+
};
|
|
110
|
+
componentStoreId: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default(): string;
|
|
113
|
+
};
|
|
114
|
+
pageCustom: PropType< PageCustomType>;
|
|
115
|
+
pagePermission: PropType< PagePermission>;
|
|
116
|
+
glDoAction: {
|
|
117
|
+
type: FunctionConstructor;
|
|
118
|
+
required: boolean;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* vue模板配置:含内容及参数
|
|
122
|
+
*/
|
|
123
|
+
templateConfig: {
|
|
124
|
+
type: PropType<TemplateCfg>;
|
|
125
|
+
default(): {
|
|
126
|
+
content: string;
|
|
127
|
+
params: {};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* 参数
|
|
132
|
+
*/
|
|
133
|
+
params: {
|
|
134
|
+
type: ObjectConstructor;
|
|
135
|
+
default(): {};
|
|
136
|
+
};
|
|
137
|
+
}>> & Readonly<{
|
|
138
|
+
onClickTemplate?: ((...args: any[]) => any) | undefined;
|
|
139
|
+
onInnerClick?: ((...args: any[]) => any) | undefined;
|
|
140
|
+
onInnerChange?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
onInnerDblclick?: ((...args: any[]) => any) | undefined;
|
|
142
|
+
onParamsUpdated?: ((...args: any[]) => any) | undefined;
|
|
143
|
+
}>, {
|
|
144
|
+
params: Record<string, any>;
|
|
145
|
+
glComponentInst: IComponentInstance;
|
|
146
|
+
glChildren: IComponentInstance[];
|
|
147
|
+
glCtx: Record<string, any>;
|
|
148
|
+
glIsRuntime: boolean;
|
|
149
|
+
glRuntimeFlag: string;
|
|
150
|
+
glIgnoreInjectPageProxy: boolean;
|
|
151
|
+
componentStoreId: string;
|
|
152
|
+
templateConfig: TemplateCfg;
|
|
153
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
154
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|