lambo-design-bi 0.0.136 → 0.0.137
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.
|
@@ -22,6 +22,7 @@ export const WIDGET_MAP = {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export function getWidgetName(item) {
|
|
25
|
+
console.log('getWidgetName WIDGET_MAP=', WIDGET_MAP)
|
|
25
26
|
let type = item.type
|
|
26
27
|
if (type && Object.prototype.hasOwnProperty.call(WIDGET_MAP, type) && WIDGET_MAP[type]) {
|
|
27
28
|
return WIDGET_MAP[type]
|
|
@@ -29,7 +30,7 @@ export function getWidgetName(item) {
|
|
|
29
30
|
console.warn(`未找到type=${type}对应的组件,使用默认组件`)
|
|
30
31
|
console.log('getWidgetName item=', item)
|
|
31
32
|
console.log('getWidgetName type=', type)
|
|
32
|
-
|
|
33
|
+
|
|
33
34
|
if (type && Object.prototype.hasOwnProperty.call(WIDGET_MAP, type)) {
|
|
34
35
|
console.log('getWidgetName 类型包含组件但未成功获取 WIDGET_MAP[type]=', WIDGET_MAP[type])
|
|
35
36
|
} else {
|