mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 18:37:07 +00:00
fix: datasource版本错误问题
This commit is contained in:
parent
aadb1708c4
commit
a24787870a
@ -26,8 +26,8 @@ const adapt2Runtime = (dataSource: InterpretDataSource, context: IDataSourceRunt
|
|||||||
const list: RuntimeDataSourceConfig[] = interpretConfigList.map((el: InterpretDataSourceConfig) => {
|
const list: RuntimeDataSourceConfig[] = interpretConfigList.map((el: InterpretDataSourceConfig) => {
|
||||||
return {
|
return {
|
||||||
id: el.id,
|
id: el.id,
|
||||||
isInit: getRuntimeValueFromConfig('boolean', el.isInit, context) || true, // 默认 true
|
isInit: getRuntimeValueFromConfig('boolean', el.isInit, context), // 默认 true
|
||||||
isSync: getRuntimeValueFromConfig('boolean', el.isSync, context) || false, // 默认 false
|
isSync: getRuntimeValueFromConfig('boolean', el.isSync, context), // 默认 false
|
||||||
type: el.type || 'fetch',
|
type: el.type || 'fetch',
|
||||||
willFetch: el.willFetch ? getRuntimeJsValue(el.willFetch, context) : defaultWillFetch,
|
willFetch: el.willFetch ? getRuntimeJsValue(el.willFetch, context) : defaultWillFetch,
|
||||||
shouldFetch: buildShouldFetch(el, context),
|
shouldFetch: buildShouldFetch(el, context),
|
||||||
|
|||||||
@ -64,7 +64,7 @@ export const getRuntimeBaseValue = (type: string, value: any) => {
|
|||||||
case 'boolean':
|
case 'boolean':
|
||||||
return typeof value === 'string'
|
return typeof value === 'string'
|
||||||
? transformBoolStr(value as string)
|
? transformBoolStr(value as string)
|
||||||
: value;
|
: !!value;
|
||||||
case 'number':
|
case 'number':
|
||||||
return Number(value);
|
return Number(value);
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -54,5 +54,5 @@
|
|||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://registry.npm.alibaba-inc.com"
|
"registry": "http://registry.npm.alibaba-inc.com"
|
||||||
},
|
},
|
||||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@1.0.16/build/index.html"
|
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@1.0.17/build/index.html"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { ComponentsMap } from './npm';
|
import { ComponentsMap } from './npm';
|
||||||
import { CompositeValue, JSExpression, JSFunction, CompositeObject, JSONObject } from './value-type';
|
import { CompositeValue, JSExpression, JSFunction, CompositeObject, JSONObject } from './value-type';
|
||||||
import { DataSource } from './data-source';
|
import { InterpretDataSource as DataSource } from './data-source-interpret';
|
||||||
import { I18nMap } from './i18n';
|
import { I18nMap } from './i18n';
|
||||||
import { UtilsMap } from './utils';
|
import { UtilsMap } from './utils';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user