@solar-taro/core 1.6.0 → 1.6.2
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 +14 -0
- package/operators.js +3 -4
- package/operators.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.6.1 (2025-11-01)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **core:** dismiss loading overlay only on completion
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- HyperLife1119
|
|
10
|
+
|
|
11
|
+
## 1.6.0 (2025-10-31)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for core to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
1
15
|
## 1.5.2 (2025-10-23)
|
|
2
16
|
|
|
3
17
|
### 🚀 Features
|
package/operators.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tap } from 'rxjs';
|
|
1
|
+
import { delay, tap } from 'rxjs';
|
|
2
2
|
import { overlay } from './services/overlay.js';
|
|
3
3
|
/**
|
|
4
4
|
* 为异步操作添加 Loading 浮层
|
|
@@ -8,9 +8,8 @@ export function withLoading(msg) {
|
|
|
8
8
|
return (observable) => {
|
|
9
9
|
const loading = overlay.loading(msg);
|
|
10
10
|
return observable.pipe(tap({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}));
|
|
11
|
+
complete: () => loading.dismiss(),
|
|
12
|
+
}), delay(0));
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
export function withSaveLoading() {
|
package/operators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../packages/core/src/operators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,GAAG,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../packages/core/src/operators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAc,GAAG,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAI,GAAY;IACzC,OAAO,CAAC,UAAyB,EAAE,EAAE;QACnC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACrC,OAAO,UAAU,CAAC,IAAI,CACpB,GAAG,CAAC;YACF,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;SAClC,CAAC,EACF,KAAK,CAAC,CAAC,CAAC,CACT,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,OAAO,WAAW,CAAI,MAAM,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,WAAW,CAAI,MAAM,CAAC,CAAC;AAChC,CAAC"}
|