no message

This commit is contained in:
kuaifan 2021-08-11 17:43:04 +08:00
parent d959815f5e
commit 1cace2b698
3 changed files with 11 additions and 5 deletions

6
cmd
View File

@ -33,12 +33,12 @@ supervisorctl_restart() {
} }
check_docker() { check_docker() {
docker -v &> /dev/null docker --help &> /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "${Error} ${RedBG} 未安装 Docker${Font}" echo -e "${Error} ${RedBG} 未安装 Docker${Font}"
exit 1 exit 1
fi fi
docker-compose -v &> /dev/null docker-compose --help &> /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "${Error} ${RedBG} 未安装 Docker-compose${Font}" echo -e "${Error} ${RedBG} 未安装 Docker-compose${Font}"
exit 1 exit 1
@ -46,7 +46,7 @@ check_docker() {
} }
check_node() { check_node() {
npm -v > /dev/null npm --help &> /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "${Error} ${RedBG} 未安装nodejs${Font}" echo -e "${Error} ${RedBG} 未安装nodejs${Font}"
exit 1 exit 1

View File

@ -7,7 +7,7 @@
:disabled="!showTooltip" :disabled="!showTooltip"
:max-width="tooltipMaxWidth" :max-width="tooltipMaxWidth"
transfer> transfer>
<span ref="content" @mouseenter="handleTooltipIn" class="common-auto-tip"> <span ref="content" @mouseenter="handleTooltipIn" class="common-auto-tip" @click="onClick">
<template v-if="existSlot"><slot/></template> <template v-if="existSlot"><slot/></template>
<template v-else>{{text}}</template> <template v-else>{{text}}</template>
</span> </span>
@ -87,6 +87,9 @@
this.showTooltip = Math.floor(rangeWidth) > Math.floor($content.offsetWidth); this.showTooltip = Math.floor(rangeWidth) > Math.floor($content.offsetWidth);
range = null; range = null;
}, },
onClick(e) {
this.$emit("on-click", e)
}
} }
} }
</script> </script>

View File

@ -54,7 +54,7 @@ export default {
this.isEdit = true; this.isEdit = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.input.focus({ this.$refs.input.focus({
cursor: 'all' cursor: 'all'
}); });
}) })
}, },
@ -68,6 +68,9 @@ export default {
this.isEdit = false; this.isEdit = false;
return; return;
} }
if (this.isLoad) {
return;
}
this.isLoad = true; this.isLoad = true;
this.$emit("input", this.content); this.$emit("input", this.content);
this.$emit("on-update", this.content, () => { this.$emit("on-update", this.content, () => {