fix: 🐛 变量绑定器可选项名称增加tooltip

This commit is contained in:
“chenhuachun”
2026-04-16 11:45:46 +08:00
parent bb86c794ea
commit 1c0acda36d
3 changed files with 7 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
:minimizable="false"
@close="onClose">
<XContainer fit direction="row" overflow="hidden">
<XContainer width="30%" height="100%">
<XContainer width="36%" height="100%">
<Tabs class="v-binder__tabs" :items="tabs" v-model="currentTab">
<XContainer class="v-binder__tab-content" fit padding :flex="false">
<div v-show="currentTab === 'normal'">
@@ -28,6 +28,7 @@
:title="item"
background
:actions="['copy']"
:tooltip="item"
small
@click="onPicker(item)"
@action="onCopy(item)"></Item>
@@ -49,6 +50,7 @@
:subtitle="item.path"
background
:actions="['copy']"
:tooltip="item.path"
small
@click="onPicker(`this.$router.push('${item.path}')`)"
@action="onCopy(item.path)"></Item>
@@ -70,6 +72,7 @@
:subtitle="item.key"
background
:actions="['copy']"
:tooltip="item.key"
small
@click="onPicker(`this.$t('${item.key}')`)"
@action="onCopy(item.key)"></Item>

View File

@@ -4,6 +4,7 @@
:class="classes"
justify="space-between"
align="center"
:title="props.tooltip"
@click="onClick">
<XContainer class="v-item__title" align="center">
<slot>
@@ -151,6 +152,7 @@
actionInMore?: boolean;
textTags?: string[];
nowrap?: boolean;
tooltip?: string;
}
const props = withDefaults(defineProps<Props>(), {

View File

@@ -26,6 +26,7 @@
@click="onPick(data)"
background
:actions="['copy']"
:tooltip="data.path"
@action="onCopy(data)"
grow
small>