|
@@ -1,8 +1,5 @@
|
|
|
<template>
|
|
|
- <el-tooltip
|
|
|
- v-if="btn_Info" :content="btn_Info.textInfo" placement="top"
|
|
|
- :disabled="!isBubble || !btn_Info.textInfo"
|
|
|
- >
|
|
|
+ <el-tooltip v-if="btn_Info" :content="btn_Info.textInfo" placement="top" :disabled="!isBubble || !btn_Info.textInfo">
|
|
|
<slot />
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -28,9 +25,8 @@ const isBubble = ref(useAppState.getBubble)
|
|
|
|
|
|
//监听
|
|
|
watch(() => [
|
|
|
- props.keys,
|
|
|
- useAppState.getBubble,
|
|
|
-], ([keys, bubble]) => {
|
|
|
+ props.keys, useAppState.getBubble, useAppState.getButtons,
|
|
|
+], ([keys, bubble, btns]) => {
|
|
|
btn_key.value = keys
|
|
|
isBubble.value = bubble
|
|
|
btn_Info.value = getButtonsVal(keys)
|