sard-uniapp 1.29.2 → 1.29.4
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
## <small>1.29.4 (2026-04-27)</small>
|
|
3
|
+
|
|
4
|
+
* Bug Fixes: 修复动态加载数据时不生成nav的问题 ([d1cdaf1](https://github.com/sutras/sard-uniapp/commit/d1cdaf1))
|
|
5
|
+
|
|
6
|
+
## <small>1.29.3 (2026-04-13)</small>
|
|
7
|
+
|
|
8
|
+
* Bug Fixes: 修复textarea-base导入问题 ([fa9e57f](https://github.com/sutras/sard-uniapp/commit/fa9e57f))
|
|
9
|
+
|
|
2
10
|
## <small>1.29.2 (2026-04-11)</small>
|
|
3
11
|
|
|
4
12
|
* Bug Fixes: 优化输入框在微信聚焦问题 ([8df22dd](https://github.com/sutras/sard-uniapp/commit/8df22dd))
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
import { compactContextSymbol } from "../compact/common";
|
|
81
81
|
import { popoutInputContextSymbol } from "../popout-input/common";
|
|
82
82
|
import SarInputBase from "../input-base/input-base.vue";
|
|
83
|
-
import SarTextareaBase from "../
|
|
83
|
+
import SarTextareaBase from "../textarea-base/textarea-base.vue";
|
|
84
84
|
/**
|
|
85
85
|
* @property {string} rootClass 组件根元素类名,默认值:-。
|
|
86
86
|
* @property {StyleValue} rootStyle 组件根元素样式,默认值:-。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TextareaBaseProps } from '
|
|
1
|
+
import { type TextareaBaseProps } from '../input-base/common';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<TextareaBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
blur: (event: any) => any;
|
|
4
4
|
confirm: (event: any) => any;
|
package/package.json
CHANGED
package/use/useScrollSpy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, ref, shallowRef } from 'vue';
|
|
1
|
+
import { computed, nextTick, ref, shallowRef } from 'vue';
|
|
2
2
|
import { useTimeout } from './useTimeout';
|
|
3
3
|
import { isNullish, matchScrollVisible } from '../utils';
|
|
4
4
|
export function useScrollSpy(options) {
|
|
@@ -10,14 +10,26 @@ export function useScrollSpy(options) {
|
|
|
10
10
|
const anchorRectList = shallowRef([]);
|
|
11
11
|
const anchorMap = new Map();
|
|
12
12
|
let lockScroll = false;
|
|
13
|
+
let requestUpdate = false;
|
|
14
|
+
const queueUpdate = () => {
|
|
15
|
+
if (requestUpdate)
|
|
16
|
+
return;
|
|
17
|
+
requestUpdate = true;
|
|
18
|
+
nextTick(() => {
|
|
19
|
+
requestUpdate = false;
|
|
20
|
+
update();
|
|
21
|
+
});
|
|
22
|
+
};
|
|
13
23
|
const { start: unLockScrollLater } = useTimeout(() => {
|
|
14
24
|
lockScroll = false;
|
|
15
25
|
}, 150);
|
|
16
26
|
const register = (name, getRect) => {
|
|
17
27
|
anchorMap.set(name, getRect);
|
|
28
|
+
queueUpdate();
|
|
18
29
|
};
|
|
19
30
|
const unregister = (name) => {
|
|
20
31
|
anchorMap.delete(name);
|
|
32
|
+
queueUpdate();
|
|
21
33
|
};
|
|
22
34
|
const calcPosition = (offset) => {
|
|
23
35
|
matchScrollVisible(anchorRectList.value.map((item) => item[1]), (index) => {
|