@94ai/nf-confirm 8.0.8 → 8.0.12

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.
@@ -34,13 +34,15 @@ const _sfc_main = vueDemi.defineComponent({
34
34
  }
35
35
  },
36
36
  methods: {
37
- close() {
37
+ close(close = true) {
38
38
  this.loading = false;
39
- this.visible = false;
40
- this.$nextTick(() => {
41
- this.$destroy(true);
42
- this.$el.parentNode.removeChild(this.$el);
43
- });
39
+ if (close) {
40
+ this.visible = false;
41
+ this.$nextTick(() => {
42
+ this.$destroy(true);
43
+ this.$el.parentNode.removeChild(this.$el);
44
+ });
45
+ }
44
46
  },
45
47
  handleCancel() {
46
48
  if (typeof this.onCancel === "function") {
@@ -32,13 +32,15 @@ const _sfc_main = defineComponent({
32
32
  }
33
33
  },
34
34
  methods: {
35
- close() {
35
+ close(close = true) {
36
36
  this.loading = false;
37
- this.visible = false;
38
- this.$nextTick(() => {
39
- this.$destroy(true);
40
- this.$el.parentNode.removeChild(this.$el);
41
- });
37
+ if (close) {
38
+ this.visible = false;
39
+ this.$nextTick(() => {
40
+ this.$destroy(true);
41
+ this.$el.parentNode.removeChild(this.$el);
42
+ });
43
+ }
42
44
  },
43
45
  handleCancel() {
44
46
  if (typeof this.onCancel === "function") {
@@ -53,13 +53,15 @@ export default defineComponent({
53
53
  }
54
54
  },
55
55
  methods: {
56
- close() {
56
+ close(close = true) {
57
57
  this.loading = false
58
- this.visible = false
59
- this.$nextTick(()=>{
60
- this.$destroy(true);
61
- this.$el.parentNode.removeChild(this.$el);
62
- })
58
+ if (close) {
59
+ this.visible = false
60
+ this.$nextTick(()=>{
61
+ this.$destroy(true);
62
+ this.$el.parentNode.removeChild(this.$el);
63
+ })
64
+ }
63
65
  },
64
66
 
65
67
  handleCancel() {
@@ -83,4 +85,4 @@ export default defineComponent({
83
85
  }
84
86
 
85
87
  })
86
- </script>
88
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-confirm",
3
- "version": "8.0.8",
3
+ "version": "8.0.12",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zhongzhenjie <1476686104@qq.com>",
@@ -14,7 +14,7 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-theme-chalk": "^8.0.8",
17
+ "@94ai/nf-theme-chalk": "^8.0.12",
18
18
  "vue-demi": "^0.14.5"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -30,5 +30,5 @@
30
30
  "types": "lib/index.d.ts",
31
31
  "main": "lib/nf-confirm.cjs.js",
32
32
  "module": "lib/nf-confirm.esm-bundler.js",
33
- "gitHead": "348837ce37e1b93e62681cbd0021bc66cc94e660"
33
+ "gitHead": "dd2adc2b66c074a49c7a33477c806464d85ee254"
34
34
  }