@neatui/vue 1.2.12 → 1.2.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neatui/vue",
3
- "version": "1.2.12",
3
+ "version": "1.2.15",
4
4
  "description": "basic component ui",
5
5
  "main": "./src/index.ts",
6
6
  "license": "MIT",
@@ -144,12 +144,18 @@
144
144
  watch([() => dom.value, () => tip.value], () => {
145
145
  if (dom.value && tip.value) {
146
146
  ex.value = new Follow(dom.value, tip.value, (status) => {
147
- if (status === 'b') {
148
- const _pos = props.pos.replace(/b/g, 't');
149
- state.pos = _pos;
150
- } else {
151
- const _pos = props.pos.replace(/t/g, 'b');
152
- state.pos = _pos;
147
+ if (!props?.pos?.includes(':fixed')) {
148
+ if (status === 'b') {
149
+ const _pos = props?.pos?.replace(/b/g, 't');
150
+ if (_pos) {
151
+ state.pos = _pos;
152
+ }
153
+ } else {
154
+ const _pos = props?.pos?.replace(/t/g, 'b');
155
+ if (_pos) {
156
+ state.pos = _pos;
157
+ }
158
+ }
153
159
  }
154
160
  });
155
161
  } else {