no message
This commit is contained in:
parent
d959815f5e
commit
1cace2b698
6
cmd
6
cmd
@ -33,12 +33,12 @@ supervisorctl_restart() {
|
||||
}
|
||||
|
||||
check_docker() {
|
||||
docker -v &> /dev/null
|
||||
docker --help &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${Error} ${RedBG} 未安装 Docker!${Font}"
|
||||
exit 1
|
||||
fi
|
||||
docker-compose -v &> /dev/null
|
||||
docker-compose --help &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${Error} ${RedBG} 未安装 Docker-compose!${Font}"
|
||||
exit 1
|
||||
@ -46,7 +46,7 @@ check_docker() {
|
||||
}
|
||||
|
||||
check_node() {
|
||||
npm -v > /dev/null
|
||||
npm --help &> /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "${Error} ${RedBG} 未安装nodejs!${Font}"
|
||||
exit 1
|
||||
|
@ -7,7 +7,7 @@
|
||||
:disabled="!showTooltip"
|
||||
:max-width="tooltipMaxWidth"
|
||||
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-else>{{text}}</template>
|
||||
</span>
|
||||
@ -87,6 +87,9 @@
|
||||
this.showTooltip = Math.floor(rangeWidth) > Math.floor($content.offsetWidth);
|
||||
range = null;
|
||||
},
|
||||
onClick(e) {
|
||||
this.$emit("on-click", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -54,7 +54,7 @@ export default {
|
||||
this.isEdit = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.input.focus({
|
||||
cursor: 'all'
|
||||
cursor: 'all'
|
||||
});
|
||||
})
|
||||
},
|
||||
@ -68,6 +68,9 @@ export default {
|
||||
this.isEdit = false;
|
||||
return;
|
||||
}
|
||||
if (this.isLoad) {
|
||||
return;
|
||||
}
|
||||
this.isLoad = true;
|
||||
this.$emit("input", this.content);
|
||||
this.$emit("on-update", this.content, () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user