@d-mok/quasar-app-extension-quasar-axe 3.1.45 → 3.1.46
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
|
@@ -9,7 +9,7 @@ type onfulfilled<T, U> = ((value: T) => Promisable<U>) | undefined | null
|
|
|
9
9
|
type onrejected<U> = ((reason: any) => Promisable<U>) | undefined | null
|
|
10
10
|
|
|
11
11
|
abstract class BuilderUI {
|
|
12
|
-
private
|
|
12
|
+
private isSilence: boolean = false
|
|
13
13
|
private isConfirm: boolean = false
|
|
14
14
|
private confirmContent: { title: string; msg: string } = {
|
|
15
15
|
title: '',
|
|
@@ -21,7 +21,7 @@ abstract class BuilderUI {
|
|
|
21
21
|
protected abstract dataLogic(): Promise<void>
|
|
22
22
|
|
|
23
23
|
protected async run() {
|
|
24
|
-
if (this.
|
|
24
|
+
if (this.isSilence) ui.loadingOff()
|
|
25
25
|
|
|
26
26
|
if (this.isConfirm) {
|
|
27
27
|
let { title, msg } = this.confirmContent
|
|
@@ -32,7 +32,7 @@ abstract class BuilderUI {
|
|
|
32
32
|
|
|
33
33
|
if (this.isNotify) ui.onNotify(this.notifyContent)
|
|
34
34
|
|
|
35
|
-
if (this.
|
|
35
|
+
if (this.isSilence) ui.loadingOn()
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
confirm(title: string, ...msgs: string[]): this {
|
|
@@ -52,8 +52,17 @@ abstract class BuilderUI {
|
|
|
52
52
|
return this
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
55
58
|
slience(): this {
|
|
56
|
-
this.
|
|
59
|
+
this.isSilence = true
|
|
60
|
+
this.isNotify = false
|
|
61
|
+
return this
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
silence(): this {
|
|
65
|
+
this.isSilence = true
|
|
57
66
|
this.isNotify = false
|
|
58
67
|
return this
|
|
59
68
|
}
|