@dckj-npm/lowcode-code-generator 1.2.18 → 1.2.19
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/package.json +4 -2
- package/dist/standalone-loader.esm.js +0 -100
- package/dist/standalone-loader.esm.js.map +0 -7
- package/dist/standalone-loader.js +0 -127
- package/dist/standalone-loader.js.map +0 -7
- package/types/analyzer/componentAnalyzer.d.ts +0 -2
- package/types/cli/index.d.ts +0 -2
- package/types/cli/init-solution.d.ts +0 -4
- package/types/cli/run.d.ts +0 -15
- package/types/cli/solutions/example-solution.d.ts +0 -4
- package/types/config/env.d.ts +0 -1
- package/types/const/file.d.ts +0 -2
- package/types/const/generator.d.ts +0 -58
- package/types/const/index.d.ts +0 -11
- package/types/core/jsx/handlers/transformJsExpression.d.ts +0 -5
- package/types/core/jsx/handlers/transformThis2Context.d.ts +0 -9
- package/types/core/jsx/util/isLiteralAtomicExpr.d.ts +0 -4
- package/types/core/jsx/util/isSimpleStraightLiteral.d.ts +0 -3
- package/types/core/vue/handlers/transformJsExpression.d.ts +0 -5
- package/types/core/vue/handlers/transformThis2Context.d.ts +0 -9
- package/types/core/vue/util/isLiteralAtomicExpr.d.ts +0 -4
- package/types/core/vue/util/isSimpleStraightLiteral.d.ts +0 -3
- package/types/generator/ChunkBuilder.d.ts +0 -23
- package/types/generator/CodeBuilder.d.ts +0 -17
- package/types/generator/ModuleBuilder.d.ts +0 -7
- package/types/generator/ProjectBuilder.d.ts +0 -62
- package/types/index.d.ts +0 -260
- package/types/parser/SchemaParser.d.ts +0 -25
- package/types/plugins/common/esmodule.d.ts +0 -8
- package/types/plugins/common/requireUtils.d.ts +0 -3
- package/types/plugins/common/styleImport.d.ts +0 -3
- package/types/plugins/component/rax/commonDeps.d.ts +0 -3
- package/types/plugins/component/rax/const.d.ts +0 -18
- package/types/plugins/component/rax/containerClass.d.ts +0 -3
- package/types/plugins/component/rax/containerInitState.d.ts +0 -7
- package/types/plugins/component/rax/containerInjectContext.d.ts +0 -6
- package/types/plugins/component/rax/containerInjectDataSourceEngine.d.ts +0 -12
- package/types/plugins/component/rax/containerInjectUtils.d.ts +0 -6
- package/types/plugins/component/rax/containerLifeCycle.d.ts +0 -8
- package/types/plugins/component/rax/containerMethods.d.ts +0 -6
- package/types/plugins/component/rax/jsx.d.ts +0 -8
- package/types/plugins/component/react/const.d.ts +0 -9
- package/types/plugins/component/react/containerClass.d.ts +0 -3
- package/types/plugins/component/react/containerInitState.d.ts +0 -7
- package/types/plugins/component/react/containerInjectConstants.d.ts +0 -6
- package/types/plugins/component/react/containerInjectContext.d.ts +0 -6
- package/types/plugins/component/react/containerInjectDataSourceEngine.d.ts +0 -23
- package/types/plugins/component/react/containerInjectI18n.d.ts +0 -6
- package/types/plugins/component/react/containerInjectUtils.d.ts +0 -8
- package/types/plugins/component/react/containerLifeCycle.d.ts +0 -9
- package/types/plugins/component/react/containerMethod.d.ts +0 -6
- package/types/plugins/component/react/jsx.d.ts +0 -7
- package/types/plugins/component/react/reactCommonDeps.d.ts +0 -3
- package/types/plugins/component/style/css.d.ts +0 -7
- package/types/plugins/component/vue/apiImport.d.ts +0 -23
- package/types/plugins/component/vue/containerInitVariable.d.ts +0 -7
- package/types/plugins/component/vue/containerInjectDataSourceEngine.d.ts +0 -23
- package/types/plugins/component/vue/containerLifeCycle.d.ts +0 -9
- package/types/plugins/component/vue/containerMethod.d.ts +0 -6
- package/types/plugins/component/vue/containerVue.d.ts +0 -3
- package/types/plugins/component/vue/convert/convert-function.d.ts +0 -6
- package/types/plugins/component/vue/convert/convert-variable.d.ts +0 -11
- package/types/plugins/component/vue/dataSourceMap.d.ts +0 -7
- package/types/plugins/component/vue/esmodule.d.ts +0 -8
- package/types/plugins/component/vue/routerSecond.d.ts +0 -3
- package/types/plugins/component/vue/styleImport.d.ts +0 -0
- package/types/plugins/component/vue/template.d.ts +0 -7
- package/types/plugins/component/vue/vueCommonDeps.d.ts +0 -3
- package/types/plugins/project/constants.d.ts +0 -3
- package/types/plugins/project/framework/icejs/index.d.ts +0 -11
- package/types/plugins/project/framework/icejs/plugins/entry.d.ts +0 -3
- package/types/plugins/project/framework/icejs/plugins/entryHtml.d.ts +0 -3
- package/types/plugins/project/framework/icejs/plugins/globalStyle.d.ts +0 -3
- package/types/plugins/project/framework/icejs/plugins/packageJSON.d.ts +0 -26
- package/types/plugins/project/framework/icejs/plugins/router.d.ts +0 -3
- package/types/plugins/project/framework/icejs/template/files/README.md.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/abc.json.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/build.json.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/editorconfig.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/eslintignore.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/eslintrc.js.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/gitignore.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/jsconfig.json.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/prettierignore.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/prettierrc.js.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintignore.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/stylelintrc.js.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/files/tsconfig.json.d.ts +0 -2
- package/types/plugins/project/framework/icejs/template/index.d.ts +0 -3
- package/types/plugins/project/framework/icejs/template/static-files.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/index.d.ts +0 -11
- package/types/plugins/project/framework/icejs3/plugins/appConfig.d.ts +0 -5
- package/types/plugins/project/framework/icejs3/plugins/buildConfig.d.ts +0 -7
- package/types/plugins/project/framework/icejs3/plugins/globalStyle.d.ts +0 -3
- package/types/plugins/project/framework/icejs3/plugins/layout.d.ts +0 -3
- package/types/plugins/project/framework/icejs3/plugins/packageJSON.d.ts +0 -26
- package/types/plugins/project/framework/icejs3/template/files/README.md.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/browserslistrc.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/document.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/gitignore.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Footer/index.style.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/Logo/index.style.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/components/PageNav/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/index.jsx.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/src/layouts/BasicLayout/menuConfig.js.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/tsconfig.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/files/typings.d.ts +0 -2
- package/types/plugins/project/framework/icejs3/template/index.d.ts +0 -3
- package/types/plugins/project/framework/icejs3/template/static-files.d.ts +0 -2
- package/types/plugins/project/framework/rax/index.d.ts +0 -12
- package/types/plugins/project/framework/rax/plugins/appConfig.d.ts +0 -4
- package/types/plugins/project/framework/rax/plugins/buildConfig.d.ts +0 -4
- package/types/plugins/project/framework/rax/plugins/entry.d.ts +0 -4
- package/types/plugins/project/framework/rax/plugins/entryDocument.d.ts +0 -7
- package/types/plugins/project/framework/rax/plugins/globalStyle.d.ts +0 -6
- package/types/plugins/project/framework/rax/plugins/packageJSON.d.ts +0 -4
- package/types/plugins/project/framework/rax/template/files/.eslintignore.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.eslintrc.js.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.gitignore.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.prettierignore.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.prettierrc.js.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintignore.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/.stylelintrc.js.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/README.md.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/jsconfig.json.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/files/tsconfig.json.d.ts +0 -2
- package/types/plugins/project/framework/rax/template/index.d.ts +0 -3
- package/types/plugins/project/framework/rax/template/static-files.d.ts +0 -2
- package/types/plugins/project/framework/rax/types/RaxFrameworkOptions.d.ts +0 -81
- package/types/plugins/project/framework/vuejs3/index.d.ts +0 -11
- package/types/plugins/project/framework/vuejs3/plugins/form.d.ts +0 -3
- package/types/plugins/project/framework/vuejs3/plugins/hooks.d.ts +0 -3
- package/types/plugins/project/framework/vuejs3/plugins/main.d.ts +0 -4
- package/types/plugins/project/framework/vuejs3/plugins/packageJSON.d.ts +0 -26
- package/types/plugins/project/framework/vuejs3/plugins/router.d.ts +0 -3
- package/types/plugins/project/framework/vuejs3/template/files/css/global.scss.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/mixin.scss.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/css/theme.css.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/env.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintignore.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/eslintrc.yml.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/gitignore.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/index.html.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/npmrc.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/postcss.config.cjs.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierignore.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/prettierrc.yml.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/App.vue.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/main.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/utils/utils.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/tabs.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/views/baseIndexA/welcome.vue.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/src/vite-env.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.json.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/tsconfig.node.json.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/files/vite.config.ts.d.ts +0 -2
- package/types/plugins/project/framework/vuejs3/template/index.d.ts +0 -3
- package/types/plugins/project/framework/vuejs3/template/static-files.d.ts +0 -2
- package/types/plugins/project/i18n.d.ts +0 -3
- package/types/plugins/project/utils.d.ts +0 -3
- package/types/polyfills/buffer.d.ts +0 -1
- package/types/postprocessor/index.d.ts +0 -2
- package/types/postprocessor/prettier/index.d.ts +0 -8
- package/types/publisher/disk/index.d.ts +0 -13
- package/types/publisher/disk/utils.d.ts +0 -9
- package/types/publisher/zip/index.d.ts +0 -14
- package/types/publisher/zip/utils.d.ts +0 -5
- package/types/solutions/icejs.d.ts +0 -18
- package/types/solutions/icejs3.d.ts +0 -15
- package/types/solutions/rax-app.d.ts +0 -27
- package/types/solutions/vuejs3.d.ts +0 -22
- package/types/standalone-loader.d.ts +0 -17
- package/types/standalone-worker.d.ts +0 -1
- package/types/standalone.d.ts +0 -260
- package/types/types/analyze.d.ts +0 -5
- package/types/types/column-type.d.ts +0 -316
- package/types/types/core.d.ts +0 -197
- package/types/types/datasource-extra-base.d.ts +0 -32
- package/types/types/datasource-page-helper.d.ts +0 -30
- package/types/types/datasource.d.ts +0 -0
- package/types/types/deps.d.ts +0 -36
- package/types/types/error.d.ts +0 -10
- package/types/types/file.d.ts +0 -14
- package/types/types/index.d.ts +0 -8
- package/types/types/intermediate.d.ts +0 -234
- package/types/types/jsx.d.ts +0 -34
- package/types/types/publisher.d.ts +0 -14
- package/types/types/tab.d.ts +0 -6
- package/types/utils/OrderedSet.d.ts +0 -9
- package/types/utils/Scope.d.ts +0 -12
- package/types/utils/ScopeBindings.d.ts +0 -20
- package/types/utils/aopHelper.d.ts +0 -2
- package/types/utils/apiHandler.d.ts +0 -4
- package/types/utils/changeCase.d.ts +0 -10
- package/types/utils/columnType.d.ts +0 -1
- package/types/utils/common.d.ts +0 -14
- package/types/utils/compositeType.d.ts +0 -3
- package/types/utils/dataSource.d.ts +0 -17
- package/types/utils/debug.d.ts +0 -2
- package/types/utils/encodeJsxAttrString.d.ts +0 -1
- package/types/utils/errors.d.ts +0 -4
- package/types/utils/expressionParser.d.ts +0 -16
- package/types/utils/format.d.ts +0 -1
- package/types/utils/index.d.ts +0 -15
- package/types/utils/jsExpression.d.ts +0 -50
- package/types/utils/jsSlot.d.ts +0 -2
- package/types/utils/jsxHelpers.d.ts +0 -5
- package/types/utils/nodeToJSX.d.ts +0 -32
- package/types/utils/nodeToTemplate.d.ts +0 -17
- package/types/utils/pathHelper.d.ts +0 -6
- package/types/utils/requestHandle.d.ts +0 -72
- package/types/utils/resultHelper.d.ts +0 -51
- package/types/utils/routerHandle.d.ts +0 -11
- package/types/utils/schema.d.ts +0 -24
- package/types/utils/templateHelper.d.ts +0 -11
- package/types/utils/theme.d.ts +0 -9
- package/types/utils/validate.d.ts +0 -8
- package/types/utils/version.d.ts +0 -1
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { IPublicTypeI18nMap, IPublicTypeUtilsMap, IPublicTypeContainerSchema, IPublicTypeJSONObject, IPublicTypeNodeSchema, IPublicTypeCompositeValue, IPublicTypeJSExpression, IPublicTypeJSFunction, IPublicTypeCompositeObject, InterpretDataSource } from '@alilc/lowcode-types';
|
|
2
|
-
import { IDependency, INpmPackage } from './deps';
|
|
3
|
-
import { ICompAnalyzeResult } from './analyze';
|
|
4
|
-
import { DataSourcePageHelperType } from './datasource-page-helper';
|
|
5
|
-
export interface IParseResult {
|
|
6
|
-
containers: IContainerInfo[];
|
|
7
|
-
globalUtils?: IUtilInfo;
|
|
8
|
-
globalI18n?: IPublicTypeI18nMap;
|
|
9
|
-
globalRouter?: IRouterInfo;
|
|
10
|
-
project?: IProjectInfo;
|
|
11
|
-
}
|
|
12
|
-
export interface IWithDependency {
|
|
13
|
-
deps?: IDependency[];
|
|
14
|
-
}
|
|
15
|
-
export interface IContainerInfo extends IPublicTypeContainerSchema, IWithDependency {
|
|
16
|
-
containerType: string;
|
|
17
|
-
moduleName: string;
|
|
18
|
-
analyzeResult?: ICompAnalyzeResult;
|
|
19
|
-
}
|
|
20
|
-
export interface IUtilInfo extends IWithDependency {
|
|
21
|
-
utils: IPublicTypeUtilsMap;
|
|
22
|
-
}
|
|
23
|
-
export interface RouterInfoItem {
|
|
24
|
-
path: string;
|
|
25
|
-
fileName: string;
|
|
26
|
-
componentName: string;
|
|
27
|
-
isFormRouter?: boolean;
|
|
28
|
-
firstPage: 'true' | 'false';
|
|
29
|
-
title: string;
|
|
30
|
-
}
|
|
31
|
-
export interface IRouterInfo extends IWithDependency {
|
|
32
|
-
routes: Array<RouterInfoItem>;
|
|
33
|
-
}
|
|
34
|
-
export interface IFormInfo extends IPublicTypeFormContainerSchema, IWithDependency {
|
|
35
|
-
containerType: string;
|
|
36
|
-
moduleName: string;
|
|
37
|
-
analyzeResult?: ICompAnalyzeResult;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* project's remarks
|
|
41
|
-
*/
|
|
42
|
-
export interface ProjectRemark {
|
|
43
|
-
/** if current project only contain one container which type is `Component` */
|
|
44
|
-
isSingleComponent?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface IProjectInfo {
|
|
47
|
-
css?: string;
|
|
48
|
-
containersDeps?: IDependency[];
|
|
49
|
-
utilsDeps?: IDependency[];
|
|
50
|
-
constants?: IPublicTypeJSONObject;
|
|
51
|
-
i18n?: IPublicTypeI18nMap;
|
|
52
|
-
packages: INpmPackage[];
|
|
53
|
-
meta?: {
|
|
54
|
-
name?: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
} | Record<string, any>;
|
|
57
|
-
config?: Record<string, any>;
|
|
58
|
-
dataSourcesTypes?: string[];
|
|
59
|
-
projectRemark?: ProjectRemark;
|
|
60
|
-
}
|
|
61
|
-
export interface IPageMeta {
|
|
62
|
-
router?: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* From meta
|
|
66
|
-
* page title
|
|
67
|
-
* router
|
|
68
|
-
* spmb
|
|
69
|
-
*
|
|
70
|
-
* Utils
|
|
71
|
-
*
|
|
72
|
-
* constants
|
|
73
|
-
*
|
|
74
|
-
* i18n
|
|
75
|
-
*
|
|
76
|
-
* components
|
|
77
|
-
*
|
|
78
|
-
* pages
|
|
79
|
-
*
|
|
80
|
-
* layout
|
|
81
|
-
*/
|
|
82
|
-
/**
|
|
83
|
-
* 容器结构描述
|
|
84
|
-
*/
|
|
85
|
-
export interface IPublicTypeFormContainerSchema extends IPublicTypeNodeSchema {
|
|
86
|
-
/**
|
|
87
|
-
* 'Block' | 'Page' | 'Component';
|
|
88
|
-
*/
|
|
89
|
-
componentName: string;
|
|
90
|
-
/**
|
|
91
|
-
* 文件名称
|
|
92
|
-
*/
|
|
93
|
-
fileName: string;
|
|
94
|
-
/**
|
|
95
|
-
* @todo 待文档定义
|
|
96
|
-
*/
|
|
97
|
-
meta?: Record<string, unknown>;
|
|
98
|
-
/**
|
|
99
|
-
* 容器初始数据
|
|
100
|
-
*/
|
|
101
|
-
state?: {
|
|
102
|
-
[key: string]: IPublicTypeCompositeValue;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* 自定义方法设置
|
|
106
|
-
*/
|
|
107
|
-
methods?: {
|
|
108
|
-
[key: string]: IPublicTypeJSExpression | IPublicTypeJSFunction;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* 生命周期对象
|
|
112
|
-
*/
|
|
113
|
-
lifeCycles?: {
|
|
114
|
-
[key: string]: IPublicTypeJSExpression | IPublicTypeJSFunction;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* 样式文件
|
|
118
|
-
*/
|
|
119
|
-
css?: string;
|
|
120
|
-
/**
|
|
121
|
-
* 异步数据源配置
|
|
122
|
-
*/
|
|
123
|
-
dataSource?: ExtraInterpretDataSource;
|
|
124
|
-
/**
|
|
125
|
-
* 低代码业务组件默认属性
|
|
126
|
-
*/
|
|
127
|
-
defaultProps?: IPublicTypeCompositeObject;
|
|
128
|
-
}
|
|
129
|
-
export type TypeDataSourceType = 'dynamicForm' | 'dataDictionary' | 'dynamicFormCache' | 'dynamicFormDetail' | 'dataLoginUserInfo' | 'listSelectUser' | 'listSelectDept' | 'listSelectOrg' | 'formPage';
|
|
130
|
-
/**
|
|
131
|
-
* 自定义的额外信息
|
|
132
|
-
*/
|
|
133
|
-
export interface DataSourceCustomExtra {
|
|
134
|
-
/**
|
|
135
|
-
* 数据源类型(动态表单、数据字典、页面缓存)
|
|
136
|
-
*/
|
|
137
|
-
dataSourceType: TypeDataSourceType;
|
|
138
|
-
/**
|
|
139
|
-
* 当前的组件id
|
|
140
|
-
*/
|
|
141
|
-
componentId: string;
|
|
142
|
-
/**
|
|
143
|
-
* 使用的组件id(使用缓存数据的时候会用到)
|
|
144
|
-
*/
|
|
145
|
-
usedComponentId?: string;
|
|
146
|
-
/**
|
|
147
|
-
* 数据源id(数据字典code、动态表单id)
|
|
148
|
-
*/
|
|
149
|
-
id: string;
|
|
150
|
-
/**
|
|
151
|
-
* 数据源code(数据字典code、动态表单code)
|
|
152
|
-
*/
|
|
153
|
-
code: string;
|
|
154
|
-
/**
|
|
155
|
-
* 用于存储属性和绑定字段对应关系
|
|
156
|
-
*/
|
|
157
|
-
columnToAttribute: Record<string, any>;
|
|
158
|
-
/**
|
|
159
|
-
* 排序列
|
|
160
|
-
*/
|
|
161
|
-
extraSortList?: DataSourceCustomOrderItem[];
|
|
162
|
-
/**
|
|
163
|
-
* 额外参数列表
|
|
164
|
-
*/
|
|
165
|
-
extraParamList?: DataSourceExtraParams[];
|
|
166
|
-
/**
|
|
167
|
-
* 分页信息
|
|
168
|
-
*/
|
|
169
|
-
pageHelperInfo?: DataSourcePageHelperType;
|
|
170
|
-
/**
|
|
171
|
-
* 是否需要将数据缓存
|
|
172
|
-
*/
|
|
173
|
-
isOpenCache?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* 详情数据源配置面板
|
|
176
|
-
*/
|
|
177
|
-
configItemVariable?: ConfigItemVariableReturnType;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* 数据源类型
|
|
181
|
-
*/
|
|
182
|
-
export interface ExtraInterpretDataSource extends InterpretDataSource {
|
|
183
|
-
extra: Record<string, DataSourceCustomExtra>;
|
|
184
|
-
}
|
|
185
|
-
export type TypeCustomOrder = 'desc' | 'asc';
|
|
186
|
-
/**
|
|
187
|
-
* 排序列
|
|
188
|
-
*/
|
|
189
|
-
export interface DataSourceCustomOrderItem {
|
|
190
|
-
/**
|
|
191
|
-
* 排序的id
|
|
192
|
-
*/
|
|
193
|
-
key: string;
|
|
194
|
-
/**
|
|
195
|
-
* 排序的id
|
|
196
|
-
*/
|
|
197
|
-
id?: string;
|
|
198
|
-
/**
|
|
199
|
-
* 排序的值
|
|
200
|
-
*/
|
|
201
|
-
order: TypeCustomOrder;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* 额外字段
|
|
205
|
-
*/
|
|
206
|
-
export interface DataSourceExtraParams {
|
|
207
|
-
/**
|
|
208
|
-
* 排序的id
|
|
209
|
-
*/
|
|
210
|
-
key: string;
|
|
211
|
-
/**
|
|
212
|
-
* 额外参数的id
|
|
213
|
-
*/
|
|
214
|
-
id?: string;
|
|
215
|
-
/**
|
|
216
|
-
* 默认值
|
|
217
|
-
*/
|
|
218
|
-
value?: string;
|
|
219
|
-
}
|
|
220
|
-
export type TypeDataFrom = 'query' | 'cookie' | 'local-storage' | 'session-storage';
|
|
221
|
-
export interface ConfigItemVariableReturnType {
|
|
222
|
-
/**
|
|
223
|
-
* 数据值来源
|
|
224
|
-
*/
|
|
225
|
-
dataFrom: TypeDataFrom;
|
|
226
|
-
/**
|
|
227
|
-
* 数据值字段名称
|
|
228
|
-
*/
|
|
229
|
-
dataField: string;
|
|
230
|
-
/**
|
|
231
|
-
* 数据默认值
|
|
232
|
-
*/
|
|
233
|
-
defaultValue?: string;
|
|
234
|
-
}
|
package/types/types/jsx.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IPublicTypeNodeSchema, IPublicTypeCompositeValue } from '@alilc/lowcode-types';
|
|
2
|
-
import { HandlerSet, BaseGenerator, NodeGenerator } from './core';
|
|
3
|
-
export declare enum PIECE_TYPE {
|
|
4
|
-
BEFORE = "NodeCodePieceBefore",
|
|
5
|
-
TAG = "NodeCodePieceTag",
|
|
6
|
-
ATTR = "NodeCodePieceAttr",
|
|
7
|
-
CHILDREN = "NodeCodePieceChildren",
|
|
8
|
-
AFTER = "NodeCodePieceAfter"
|
|
9
|
-
}
|
|
10
|
-
export interface CodePiece {
|
|
11
|
-
name?: string;
|
|
12
|
-
value: string;
|
|
13
|
-
type: PIECE_TYPE;
|
|
14
|
-
}
|
|
15
|
-
export interface AttrData {
|
|
16
|
-
attrName: string;
|
|
17
|
-
attrValue: IPublicTypeCompositeValue;
|
|
18
|
-
}
|
|
19
|
-
export type AttrPlugin = BaseGenerator<AttrData, CodePiece[], NodeGeneratorConfig>;
|
|
20
|
-
export type NodePlugin = BaseGenerator<IPublicTypeNodeSchema, CodePiece[], NodeGeneratorConfig>;
|
|
21
|
-
export interface NodeGeneratorConfig {
|
|
22
|
-
handlers?: HandlerSet<string>;
|
|
23
|
-
tagMapping?: (input: string) => string;
|
|
24
|
-
attrPlugins?: AttrPlugin[];
|
|
25
|
-
nodePlugins?: NodePlugin[];
|
|
26
|
-
self?: NodeGenerator<string>;
|
|
27
|
-
/**
|
|
28
|
-
* 是否要容忍对 JSExpression 求值时的异常
|
|
29
|
-
* 默认:true
|
|
30
|
-
* 注:如果容忍异常,则会在求值时包裹 try-catch 块 -- 通过 __$$eval / __$$evalArray
|
|
31
|
-
* catch 到异常时默认会抛出一个 CustomEvent 事件里面包含异常信息和求值的表达式
|
|
32
|
-
*/
|
|
33
|
-
tolerateEvalErrors?: boolean;
|
|
34
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ResultDir } from '@alilc/lowcode-types';
|
|
2
|
-
export type PublisherFactory<T, U> = (configuration?: Partial<T>) => U;
|
|
3
|
-
export interface IPublisher<T, U> {
|
|
4
|
-
publish: (options?: T) => Promise<IPublisherResponse<U>>;
|
|
5
|
-
getProject: (() => ResultDir) | (() => void);
|
|
6
|
-
setProject: (project: ResultDir) => void;
|
|
7
|
-
}
|
|
8
|
-
export interface IPublisherFactoryParams {
|
|
9
|
-
project?: ResultDir;
|
|
10
|
-
}
|
|
11
|
-
export interface IPublisherResponse<T> {
|
|
12
|
-
success: boolean;
|
|
13
|
-
payload?: T;
|
|
14
|
-
}
|
package/types/types/tab.d.ts
DELETED
package/types/utils/Scope.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IScope } from '../types/core';
|
|
2
|
-
import { IScopeBindings } from './ScopeBindings';
|
|
3
|
-
export declare class Scope implements IScope {
|
|
4
|
-
readonly parent: IScope | null;
|
|
5
|
-
/**
|
|
6
|
-
* 创建根部 Scope,根据需要被上溯的作用域链决定是否开启新的
|
|
7
|
-
*/
|
|
8
|
-
static createRootScope(): IScope;
|
|
9
|
-
bindings?: IScopeBindings;
|
|
10
|
-
constructor(parent?: IScope | null);
|
|
11
|
-
createSubScope(ownIdentifiers: string[]): IScope;
|
|
12
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface IScopeBindings {
|
|
2
|
-
readonly parent: IScopeBindings | null;
|
|
3
|
-
hasBinding: (varName: string) => boolean;
|
|
4
|
-
hasOwnBinding: (varName: string) => boolean;
|
|
5
|
-
addBinding: (varName: string) => void;
|
|
6
|
-
removeBinding: (varName: string) => void;
|
|
7
|
-
getAllBindings: () => string[];
|
|
8
|
-
getAllOwnedBindings: () => string[];
|
|
9
|
-
}
|
|
10
|
-
export declare class ScopeBindings implements IScopeBindings {
|
|
11
|
-
readonly parent: IScopeBindings | null;
|
|
12
|
-
private _bindings;
|
|
13
|
-
constructor(p?: IScopeBindings | null);
|
|
14
|
-
hasBinding(varName: string): boolean;
|
|
15
|
-
hasOwnBinding(varName: string): boolean;
|
|
16
|
-
addBinding(varName: string): void;
|
|
17
|
-
removeBinding(varName: string): void;
|
|
18
|
-
getAllBindings(): string[];
|
|
19
|
-
getAllOwnedBindings(): string[];
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getFieldType: (columnKeyType: number) => "text" | "field" | "textarea" | "date-picker" | "time-picker" | "switch" | "radio" | "checkbox" | "picker" | "cascader" | "uploader" | "auto-complete" | "rich-text" | "amap" | "rate";
|
package/types/utils/common.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IPublicTypeJSFunction } from '@alilc/lowcode-types';
|
|
2
|
-
import { IDependency, IExternalDependency, IInternalDependency } from '../types';
|
|
3
|
-
export declare function camel2dash(input: string): string;
|
|
4
|
-
/**
|
|
5
|
-
* 转为驼峰
|
|
6
|
-
*/
|
|
7
|
-
export declare function camelize(str: string): string;
|
|
8
|
-
export declare function generateID(): string;
|
|
9
|
-
export declare function upperCaseFirst(inputValue: string): string;
|
|
10
|
-
export declare function uniqueArray<T>(arr: T[], by: (i: T) => string): T[];
|
|
11
|
-
export declare function getStaticExprValue<T>(expr: string): T;
|
|
12
|
-
export declare function isJSExpressionFn(data: any): data is IPublicTypeJSFunction;
|
|
13
|
-
export declare function isInternalDependency(dependency: IDependency): dependency is IInternalDependency;
|
|
14
|
-
export declare function isExternalDependency(dependency: IDependency): dependency is IExternalDependency;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { IPublicTypeCompositeValue } from '@alilc/lowcode-types';
|
|
2
|
-
import { IScope, CompositeValueGeneratorOptions } from '../types';
|
|
3
|
-
export declare function generateCompositeType(value: IPublicTypeCompositeValue, scope: IScope, options?: CompositeValueGeneratorOptions): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DataSourceCustomExtra, IProjectInfo } from '../types/intermediate';
|
|
2
|
-
export interface DataSourceDependenciesConfig {
|
|
3
|
-
/** 数据源引擎的版本 */
|
|
4
|
-
engineVersion?: string;
|
|
5
|
-
/** 数据源引擎的包名 */
|
|
6
|
-
enginePackage?: string;
|
|
7
|
-
/** 数据源 handlers 的版本 */
|
|
8
|
-
handlersVersion?: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
/** 数据源 handlers 的包名 */
|
|
12
|
-
handlersPackages?: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function buildDataSourceDependencies(ir: IProjectInfo, cfg?: DataSourceDependenciesConfig): Record<string, string>;
|
|
17
|
-
export declare function isFormPage(obj: Record<string, DataSourceCustomExtra>): boolean;
|
package/types/utils/debug.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function encodeJsxStringNode(str: string): string;
|
package/types/utils/errors.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as parser from '@babel/parser';
|
|
2
|
-
import * as t from '@babel/types';
|
|
3
|
-
import { IScope } from '../types';
|
|
4
|
-
export declare class ParseError extends Error {
|
|
5
|
-
readonly expr: string | t.Expression;
|
|
6
|
-
readonly detail: unknown;
|
|
7
|
-
constructor(expr: string | t.Expression, detail: unknown);
|
|
8
|
-
}
|
|
9
|
-
export interface ParseExpressionGetGlobalVariablesOptions {
|
|
10
|
-
filter?: (varName: string) => boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function parseExpressionGetKeywords(expr: string | null | undefined): string[];
|
|
13
|
-
export declare function parseExpressionGetGlobalVariables(expr: string | null | undefined, { filter }?: ParseExpressionGetGlobalVariablesOptions): string[];
|
|
14
|
-
export declare function parseExpressionConvertThis2Context(expr: string | t.Expression, contextName?: string, localVariables?: string[]): string;
|
|
15
|
-
export declare function parseExpression(expr: string): parser.ParseResult<t.Expression>;
|
|
16
|
-
export declare function transformExpressionLocalRef(expr: string, scope: IScope): string;
|
package/types/utils/format.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function format(content: string, options?: {}): string;
|
package/types/utils/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as common from './common';
|
|
2
|
-
import * as compositeType from './compositeType';
|
|
3
|
-
import * as jsExpression from './jsExpression';
|
|
4
|
-
import * as jsSlot from './jsSlot';
|
|
5
|
-
import * as nodeToJSX from './nodeToJSX';
|
|
6
|
-
import * as resultHelper from './resultHelper';
|
|
7
|
-
import * as templateHelper from './templateHelper';
|
|
8
|
-
import * as validate from './validate';
|
|
9
|
-
import * as schema from './schema';
|
|
10
|
-
import * as version from './version';
|
|
11
|
-
import * as scope from './Scope';
|
|
12
|
-
import * as expressionParser from './expressionParser';
|
|
13
|
-
import * as dataSource from './dataSource';
|
|
14
|
-
import * as pathHelper from './pathHelper';
|
|
15
|
-
export { common, compositeType, jsExpression, jsSlot, nodeToJSX, resultHelper, templateHelper, validate, schema, version, scope, expressionParser, dataSource, pathHelper, };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as t from '@babel/types';
|
|
2
|
-
import { IScope } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* 是否是广义上的 JSFunction
|
|
5
|
-
* @param value
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare function isBroadJSFunction(value: unknown): boolean;
|
|
9
|
-
export declare function generateExpression(value: any, scope: IScope): string;
|
|
10
|
-
/**
|
|
11
|
-
* 生成函数代码
|
|
12
|
-
*
|
|
13
|
-
* @param value 函数或表达式
|
|
14
|
-
* @param config 配置对象,包含以下属性:
|
|
15
|
-
* - name: 函数名称,可选
|
|
16
|
-
* - isMember: 是否为成员函数,默认为false
|
|
17
|
-
* - isBlock: 是否为块级函数,默认为false
|
|
18
|
-
* - isArrow: 是否为箭头函数,默认为false
|
|
19
|
-
* - isBindExpr: 是否为绑定表达式,默认为false
|
|
20
|
-
* - isToVue 是否转化为vue(state,this转换)
|
|
21
|
-
* - isDeleteLastSemicolon 是否删除生成代码最后的一个分号,默认为false
|
|
22
|
-
* - isBelongTemplate 是否是template的表达式
|
|
23
|
-
* @returns 返回生成的函数代码
|
|
24
|
-
* @throws 当 value 不是 JSFunction 或 JSExpression 时抛出 CodeGeneratorError
|
|
25
|
-
*/
|
|
26
|
-
export declare function generateFunction(value: any, config?: {
|
|
27
|
-
name?: string;
|
|
28
|
-
isMember?: boolean;
|
|
29
|
-
isBlock?: boolean;
|
|
30
|
-
isArrow?: boolean;
|
|
31
|
-
isBindExpr?: boolean;
|
|
32
|
-
isToVue?: boolean;
|
|
33
|
-
isDeleteLastSemicolon?: boolean;
|
|
34
|
-
isBelongTemplate?: boolean;
|
|
35
|
-
}): string;
|
|
36
|
-
/**
|
|
37
|
-
* 解析给定的字符串内容为js表达式。
|
|
38
|
-
* @note 使用babel转化为ast树,再对树进行处理
|
|
39
|
-
* @param content 要解析的字符串内容。
|
|
40
|
-
* @param isToVue
|
|
41
|
-
* @param isBelongTemplate 是否是template的表达式
|
|
42
|
-
* @returns 解析成功的表达式节点,如果解析失败则返回null。
|
|
43
|
-
* @throws 如果解析过程中发生错误,将抛出ParseError异常。
|
|
44
|
-
*/
|
|
45
|
-
export declare function parseExpression(content: string, isToVue?: boolean, isBelongTemplate?: boolean): t.FunctionExpression | null;
|
|
46
|
-
/**
|
|
47
|
-
* 解析js表达式获取this.state.xxx 的xxx
|
|
48
|
-
* @param content
|
|
49
|
-
*/
|
|
50
|
-
export declare function parseExpressionGetState(content: string): Set<string>;
|
package/types/utils/jsSlot.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IPublicTypeNodeSchema } from '@alilc/lowcode-types';
|
|
2
|
-
import { IScope, CodePiece, NodeGenerator, NodeGeneratorConfig, NodePlugin } from '../types';
|
|
3
|
-
export declare function isPureString(v: string): boolean;
|
|
4
|
-
/**
|
|
5
|
-
* JSX 生成逻辑插件。在 React 代码模式下生成 loop 相关的逻辑代码
|
|
6
|
-
* @type NodePlugin Extended
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
|
-
* @param {IPublicTypeNodeSchema} nodeItem 当前 UI 节点
|
|
10
|
-
* @returns {CodePiece[]} 实现功能的相关代码片段
|
|
11
|
-
*/
|
|
12
|
-
export declare function generateReactLoopCtrl(nodeItem: IPublicTypeNodeSchema, scope: IScope, config?: NodeGeneratorConfig, next?: NodePlugin): CodePiece[];
|
|
13
|
-
/**
|
|
14
|
-
* JSX 生成逻辑插件。在 React 代码模式下生成 condition 相关的逻辑代码
|
|
15
|
-
* @type NodePlugin
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @param {IPublicTypeNodeSchema} nodeItem 当前 UI 节点
|
|
19
|
-
* @returns {CodePiece[]} 实现功能的相关代码片段
|
|
20
|
-
*/
|
|
21
|
-
export declare function generateConditionReactCtrl(nodeItem: IPublicTypeNodeSchema, scope: IScope, config?: NodeGeneratorConfig, next?: NodePlugin): CodePiece[];
|
|
22
|
-
/**
|
|
23
|
-
* JSX 生成逻辑插件。在 React 代码模式下,如果 Node 生成结果是一个表达式,则对其进行 { Expression } 包装
|
|
24
|
-
* @type NodePlugin
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @param {IPublicTypeNodeSchema} nodeItem 当前 UI 节点
|
|
28
|
-
* @returns {CodePiece[]} 实现功能的相关代码片段
|
|
29
|
-
*/
|
|
30
|
-
export declare function generateReactExprInJS(nodeItem: IPublicTypeNodeSchema, scope: IScope, config?: NodeGeneratorConfig, next?: NodePlugin): CodePiece[];
|
|
31
|
-
export declare function createNodeGenerator(cfg?: NodeGeneratorConfig): NodeGenerator<string>;
|
|
32
|
-
export declare function createReactNodeGenerator(cfg?: NodeGeneratorConfig): NodeGenerator<string>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IScope, NodeGenerator, NodeGeneratorConfig } from '../types';
|
|
2
|
-
import { IPublicTypeNodeSchema, IPublicTypeNodeDataType } from '@alilc/lowcode-types';
|
|
3
|
-
export declare function isPureString(v: string): boolean;
|
|
4
|
-
export declare function createNodeGenerator(cfg?: NodeGeneratorConfig): NodeGenerator<string>;
|
|
5
|
-
export declare function createVueNodeGenerator(cfg?: NodeGeneratorConfig): NodeGenerator<string>;
|
|
6
|
-
/**
|
|
7
|
-
* 生成指定节点
|
|
8
|
-
* @param name 指定节点名称
|
|
9
|
-
* @param nodeItem schema文件
|
|
10
|
-
* @param scope
|
|
11
|
-
* @param cfg 配置
|
|
12
|
-
* @param props 要额外添加给组件的属性
|
|
13
|
-
*/
|
|
14
|
-
export declare function generateByName(cfg: NodeGeneratorConfig | undefined, name: string, nodeItem: IPublicTypeNodeDataType, scope: IScope, props: Record<string, any>): {
|
|
15
|
-
code: string;
|
|
16
|
-
node: IPublicTypeNodeSchema;
|
|
17
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { JSONObject } from '@alilc/lowcode-datasource-types/src/value-type';
|
|
2
|
-
import { InterpretDataSourceConfig } from "@alilc/lowcode-types";
|
|
3
|
-
import { DataSourceCustomExtra, ExtraInterpretDataSource } from "../types";
|
|
4
|
-
export declare const PREFIX_API_CACHE = "page_cache_";
|
|
5
|
-
export declare const PREFIX_PAGE_NUM = "_nowPage";
|
|
6
|
-
export declare const PREFIX_IS_LAST_PAGE = "_isLastPage";
|
|
7
|
-
export declare const PREFIX_API_PARAM_NAME = "Params";
|
|
8
|
-
export declare const SUFFIX_API_SCRIPT = "Request";
|
|
9
|
-
export declare const SUFFIX_DATA_SOURCE_MAP = "dataSourceMap";
|
|
10
|
-
export declare const SUFFIX_API_METHOD = "Method";
|
|
11
|
-
export declare const GLOBE_API_PARAM = "globeParam";
|
|
12
|
-
export type TypeDataSourceType = 'dynamicForm' | 'dataDictionary' | 'dynamicFormCache' | 'dynamicFormDetail' | 'dataLoginUserInfo';
|
|
13
|
-
/**
|
|
14
|
-
* 请求体处理
|
|
15
|
-
* @param params 请求体
|
|
16
|
-
*/
|
|
17
|
-
export declare function requestParamsHandler(params: JSONObject): string;
|
|
18
|
-
/**
|
|
19
|
-
* 请求结果处理
|
|
20
|
-
*/
|
|
21
|
-
export declare function requestAfterDataHandler(dataSourceItems: InterpretDataSourceConfig, extra: Record<string, DataSourceCustomExtra>): string[];
|
|
22
|
-
/**
|
|
23
|
-
* 是否是js表达式
|
|
24
|
-
* @param value
|
|
25
|
-
*/
|
|
26
|
-
export declare function isJsExpression(value: any): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 将线上地址转为出码后的请求地址
|
|
29
|
-
* @param dataSourceConfig
|
|
30
|
-
* @param extra 额外参数
|
|
31
|
-
*/
|
|
32
|
-
export declare function handleUrl(dataSourceConfig: InterpretDataSourceConfig, extra: any): string;
|
|
33
|
-
/**
|
|
34
|
-
* 处理分页请求参数
|
|
35
|
-
* 将分页参数转换为ref(pageNum和isLastPage)
|
|
36
|
-
*/
|
|
37
|
-
export declare function handlePageParamToRef(data: ExtraInterpretDataSource): string[];
|
|
38
|
-
/**
|
|
39
|
-
* 将请求参数itemList里面的this.state.xxx 都包裹进reactive里面
|
|
40
|
-
* @param data
|
|
41
|
-
*/
|
|
42
|
-
export declare function handleParamToRef(data: ExtraInterpretDataSource): string[];
|
|
43
|
-
/**
|
|
44
|
-
* 将API转换为ref变量
|
|
45
|
-
* @param data
|
|
46
|
-
*/
|
|
47
|
-
export declare function handleApiToRef(data: ExtraInterpretDataSource): string[];
|
|
48
|
-
/**
|
|
49
|
-
* 获取数据源的id
|
|
50
|
-
* @param id
|
|
51
|
-
* @param extra
|
|
52
|
-
*/
|
|
53
|
-
export declare function getApiId(id: string, extra: Record<string, DataSourceCustomExtra>): string;
|
|
54
|
-
/**
|
|
55
|
-
* 获取请求参数名字
|
|
56
|
-
* @param id
|
|
57
|
-
*/
|
|
58
|
-
export declare function getApiParamName(id: string): string;
|
|
59
|
-
/**
|
|
60
|
-
* 获取请求后置处理方法名
|
|
61
|
-
* @param id
|
|
62
|
-
*/
|
|
63
|
-
export declare function getApiHandleFunctionName(id: string): string;
|
|
64
|
-
/**
|
|
65
|
-
* 获取script 里引入的api名称
|
|
66
|
-
*/
|
|
67
|
-
export declare function getApiName(apiId: string): string;
|
|
68
|
-
/**
|
|
69
|
-
* 获取api请求方法名
|
|
70
|
-
* @param id
|
|
71
|
-
*/
|
|
72
|
-
export declare function getApiRequestMethodName(id: string): string;
|