lambo-design-bi 0.0.185 → 0.0.186
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/bi/widget/num/index.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<LamboNumberInfoBi :title="title" :sub-title="subTitle" :num="num" :sub-num1="subNum1" :trend1="trend1"
|
|
3
3
|
:widget="widget" :is-drill="isDrill" @on-drill="onDrill" :sub-num2="subNum2" :trend2="trend2" :polar1="polar1"
|
|
4
|
-
:polar2="polar2" :eva-level="evaLevel" :tab-clickable="tabClickable" @on-tab-click="onTabClick">
|
|
4
|
+
:polar2="polar2" :eva-level="evaLevel" :tab-clickable="tabClickable" :default-tab-active="defaultTabActive" @on-tab-click="onTabClick">
|
|
5
5
|
</LamboNumberInfoBi>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
@@ -62,6 +62,7 @@ export default {
|
|
|
62
62
|
this.tabClickable = true
|
|
63
63
|
}
|
|
64
64
|
if (this.widget.options["defaultTabActive"] === '1') {
|
|
65
|
+
console.log("num-info initConfig 卡片初始设置为激活状态触发点击,START 当前实例:", this.widget.id + "_" + this.widget.name + ",defaultTabActive:" + this.widget.options["defaultTabActive"])
|
|
65
66
|
this.defaultTabActive = true
|
|
66
67
|
}
|
|
67
68
|
},
|
package/package.json
CHANGED
|
@@ -181,17 +181,20 @@ export default {
|
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
initDefTabClickActiveStatus() {
|
|
184
|
-
|
|
184
|
+
console.log("num-info handleCardClick 卡片初始设置为激活状态触发点击,START 当前实例:", this.widget.id + "_" + this.widget.name + ",this.defaultTabActive:" + this.defaultTabActive)
|
|
185
|
+
if (this.tabClickable === true && this.defaultTabActive === true) {
|
|
185
186
|
if (!this.isActive) {
|
|
186
187
|
this.isActive = true
|
|
187
188
|
this.$emit('on-tab-click', {})
|
|
188
189
|
}
|
|
189
|
-
console.log("num-info handleCardClick
|
|
190
|
+
console.log("num-info handleCardClick 卡片初始设置为激活状态触发点击,END 当前实例:", this.widget.id + "_" + this.widget.name)
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
193
|
},
|
|
193
194
|
created() {
|
|
194
195
|
this.eventBusOn()
|
|
196
|
+
},
|
|
197
|
+
mounted() {
|
|
195
198
|
this.initDefTabClickActiveStatus()
|
|
196
199
|
},
|
|
197
200
|
beforeDestroy() {
|