mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Update element-plus to 2.4.3 (no-changelog) (#10281)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
committed by
GitHub
parent
03c19723d2
commit
ecd287564d
@@ -47,6 +47,7 @@
|
||||
|
||||
<div
|
||||
v-show="showActions"
|
||||
ref="stickOptions"
|
||||
:class="{ 'sticky-options': true, 'no-select-on-click': true, 'force-show': forceActions }"
|
||||
>
|
||||
<div
|
||||
@@ -58,7 +59,6 @@
|
||||
<font-awesome-icon icon="trash" />
|
||||
</div>
|
||||
<n8n-popover
|
||||
v-on-click-outside="() => setColorPopoverVisible(false)"
|
||||
effect="dark"
|
||||
trigger="click"
|
||||
placement="top"
|
||||
@@ -109,6 +109,8 @@ import { defineComponent, ref } from 'vue';
|
||||
import type { PropType, StyleValue } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
import { onClickOutside } from '@vueuse/core';
|
||||
|
||||
import { isNumber, isString } from '@/utils/typeGuards';
|
||||
import type {
|
||||
INodeUi,
|
||||
@@ -178,6 +180,9 @@ export default defineComponent({
|
||||
const toast = useToast();
|
||||
const forceActions = ref(false);
|
||||
const isColorPopoverVisible = ref(false);
|
||||
|
||||
const stickOptions = ref<HTMLElement>();
|
||||
|
||||
const setForceActions = (value: boolean) => {
|
||||
forceActions.value = value;
|
||||
};
|
||||
@@ -200,6 +205,8 @@ export default defineComponent({
|
||||
emit: emit as (event: string, ...args: unknown[]) => void,
|
||||
});
|
||||
|
||||
onClickOutside(stickOptions, () => setColorPopoverVisible(false));
|
||||
|
||||
return {
|
||||
deviceSupport,
|
||||
toast,
|
||||
@@ -209,6 +216,7 @@ export default defineComponent({
|
||||
setForceActions,
|
||||
isColorPopoverVisible,
|
||||
setColorPopoverVisible,
|
||||
stickOptions,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user