@neatui/vue 2.0.11 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
:ui-tips-view="state.show ? 1 : 0"
|
|
14
14
|
@mouseover="hovershow"
|
|
15
15
|
@mouseout="hoverhide"
|
|
16
|
+
@click="clickhide"
|
|
16
17
|
>
|
|
17
18
|
<div ref="box" :ui-tips-box="state.pos" :class="tipBoxClass" :style="tipBoxStyle" @mousedown="downdom">
|
|
18
19
|
<slot name="tips"></slot>
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
tipBoxClass?: string;
|
|
47
48
|
tipBoxStyle?: string;
|
|
48
49
|
arrow?: any;
|
|
50
|
+
clickTipHide?: boolean;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
// 入参
|
|
@@ -59,7 +61,8 @@
|
|
|
59
61
|
tipStyle: '',
|
|
60
62
|
tipBoxClass: '',
|
|
61
63
|
tipBoxStyle: '',
|
|
62
|
-
arrow: {}
|
|
64
|
+
arrow: {},
|
|
65
|
+
clickTipHide: false
|
|
63
66
|
});
|
|
64
67
|
|
|
65
68
|
const dom: any = ref(null);
|
|
@@ -124,6 +127,12 @@
|
|
|
124
127
|
}
|
|
125
128
|
};
|
|
126
129
|
|
|
130
|
+
const clickhide = () => {
|
|
131
|
+
if (props.clickTipHide) {
|
|
132
|
+
state.show = 0;
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
127
136
|
const show = () => {
|
|
128
137
|
state.show = 1;
|
|
129
138
|
};
|