为CheckButton和浏览器命令添加占位符提示

This commit is contained in:
fofolee 2025-01-26 23:35:22 +08:00
parent b964cdc839
commit 9d3a5cbdf7
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@
class="q-ml-xs check-btn-icon"
/>
</div>
<q-tooltip v-if="tooltip">{{ tooltip }}</q-tooltip>
<q-tooltip v-if="placeholder">{{ placeholder }}</q-tooltip>
</template>
</q-btn>
</div>
@ -43,7 +43,7 @@ export default defineComponent({
type: String,
default: "",
},
tooltip: {
placeholder: {
type: String,
default: "",
},

View File

@ -60,6 +60,8 @@ export const browserCommands = {
},
useSingleUserDataDir: {
label: "使用独立用户数据目录",
placeholder:
"⚠️注意:不勾选时,会自动关闭所有已打开的浏览器;如需运行多实例必须勾选",
component: "CheckButton",
width: 3,
},