@neatui/vue 1.2.11 → 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
|
@@ -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 (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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 {
|
package/src/store/myui.ts
CHANGED
|
@@ -29,15 +29,21 @@ export const useMyuiStore = defineStore('myui', {
|
|
|
29
29
|
this.theme = theme;
|
|
30
30
|
document.documentElement.setAttribute('theme', theme);
|
|
31
31
|
then(theme);
|
|
32
|
+
} else {
|
|
33
|
+
document.documentElement.setAttribute('theme', this.theme);
|
|
34
|
+
then(this.theme);
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
// 设置系统字号
|
|
35
38
|
async setsize(size: any = '', then = (res: any) => {}) {
|
|
36
39
|
if (size) {
|
|
37
40
|
localStorage.setItem('neatui_size', size);
|
|
38
|
-
this.
|
|
39
|
-
document.documentElement.setAttribute('size',
|
|
41
|
+
this.size = size;
|
|
42
|
+
document.documentElement.setAttribute('size', size);
|
|
40
43
|
then(size);
|
|
44
|
+
} else {
|
|
45
|
+
document.documentElement.setAttribute('size', this.size);
|
|
46
|
+
then(this.size);
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
}
|