@hhfenpm/micro-app 1.0.3 → 1.0.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/dist/index.esm.js CHANGED
@@ -1,12 +1,24 @@
1
1
  var uiHandler = vm => ({
2
- $message: vm.$message,
2
+ $message: (...args) => vm.$message(...args),
3
3
  $success: msg => vm.$message.success(msg),
4
4
  $warning: msg => vm.$message.warning(msg),
5
5
  $error: msg => vm.$message.error(msg),
6
6
  $notify: options => vm.$notify(options),
7
- $confirm: (...args) => vm.$confirm(...args).then(() => true).catch(() => false),
8
- $alert: (...args) => vm.$alert(...args).then(() => true).catch(() => false),
9
- $prompt: (...args) => vm.$prompt(...args).then(res => res.value).catch(() => null),
7
+ $confirm: (...args) =>
8
+ vm
9
+ .$confirm(...args)
10
+ .then(() => true)
11
+ .catch(() => false),
12
+ $alert: (...args) =>
13
+ vm
14
+ .$alert(...args)
15
+ .then(() => true)
16
+ .catch(() => false),
17
+ $prompt: (...args) =>
18
+ vm
19
+ .$prompt(...args)
20
+ .then(res => res.value)
21
+ .catch(() => null),
10
22
  $loading: options => {
11
23
  const loading = vm.$loading(options);
12
24
  return () => loading.close()
package/dist/index.js CHANGED
@@ -3,14 +3,26 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var uiHandler = vm => ({
6
- $message: vm.$message,
6
+ $message: (...args) => vm.$message(...args),
7
7
  $success: msg => vm.$message.success(msg),
8
8
  $warning: msg => vm.$message.warning(msg),
9
9
  $error: msg => vm.$message.error(msg),
10
10
  $notify: options => vm.$notify(options),
11
- $confirm: (...args) => vm.$confirm(...args).then(() => true).catch(() => false),
12
- $alert: (...args) => vm.$alert(...args).then(() => true).catch(() => false),
13
- $prompt: (...args) => vm.$prompt(...args).then(res => res.value).catch(() => null),
11
+ $confirm: (...args) =>
12
+ vm
13
+ .$confirm(...args)
14
+ .then(() => true)
15
+ .catch(() => false),
16
+ $alert: (...args) =>
17
+ vm
18
+ .$alert(...args)
19
+ .then(() => true)
20
+ .catch(() => false),
21
+ $prompt: (...args) =>
22
+ vm
23
+ .$prompt(...args)
24
+ .then(res => res.value)
25
+ .catch(() => null),
14
26
  $loading: options => {
15
27
  const loading = vm.$loading(options);
16
28
  return () => loading.close()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhfenpm/micro-app",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "微前端通信桥接和状态同步工具,支持父子应用通信、状态同步、生命周期管理",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",