@94ai/nf-notification 3.2.72 → 3.2.76

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.
@@ -180,14 +180,14 @@ var _sfc_render = function render() {
180
180
  })];
181
181
  })], 2), _vm.cancelButtonText || _vm.confirmButtonText ? _c("div", {
182
182
  staticClass: "nf-notification__btns"
183
- }, [_c("nf-button", {
183
+ }, [_vm.cancelButtonText ? _c("nf-button", {
184
184
  on: {
185
185
  "click": function($event) {
186
186
  $event.stopPropagation();
187
187
  return _vm.handleCancel.apply(null, arguments);
188
188
  }
189
189
  }
190
- }, [_vm._v(_vm._s(_vm.cancelButtonText))]), _c("nf-button", {
190
+ }, [_vm._v(_vm._s(_vm.cancelButtonText))]) : _vm._e(), _vm.confirmButtonText ? _c("nf-button", {
191
191
  attrs: {
192
192
  "type": "primary"
193
193
  },
@@ -197,7 +197,7 @@ var _sfc_render = function render() {
197
197
  return _vm.handleConfirm.apply(null, arguments);
198
198
  }
199
199
  }
200
- }, [_vm._v(_vm._s(_vm.confirmButtonText))])], 1) : _vm._e(), _vm.showClose ? _c("div", {
200
+ }, [_vm._v(_vm._s(_vm.confirmButtonText))]) : _vm._e()], 1) : _vm._e(), _vm.showClose ? _c("div", {
201
201
  staticClass: "nf-notification__closeBtn el-icon-close",
202
202
  on: {
203
203
  "click": function($event) {
@@ -178,14 +178,14 @@ var _sfc_render = function render() {
178
178
  })];
179
179
  })], 2), _vm.cancelButtonText || _vm.confirmButtonText ? _c("div", {
180
180
  staticClass: "nf-notification__btns"
181
- }, [_c("nf-button", {
181
+ }, [_vm.cancelButtonText ? _c("nf-button", {
182
182
  on: {
183
183
  "click": function($event) {
184
184
  $event.stopPropagation();
185
185
  return _vm.handleCancel.apply(null, arguments);
186
186
  }
187
187
  }
188
- }, [_vm._v(_vm._s(_vm.cancelButtonText))]), _c("nf-button", {
188
+ }, [_vm._v(_vm._s(_vm.cancelButtonText))]) : _vm._e(), _vm.confirmButtonText ? _c("nf-button", {
189
189
  attrs: {
190
190
  "type": "primary"
191
191
  },
@@ -195,7 +195,7 @@ var _sfc_render = function render() {
195
195
  return _vm.handleConfirm.apply(null, arguments);
196
196
  }
197
197
  }
198
- }, [_vm._v(_vm._s(_vm.confirmButtonText))])], 1) : _vm._e(), _vm.showClose ? _c("div", {
198
+ }, [_vm._v(_vm._s(_vm.confirmButtonText))]) : _vm._e()], 1) : _vm._e(), _vm.showClose ? _c("div", {
199
199
  staticClass: "nf-notification__closeBtn el-icon-close",
200
200
  on: {
201
201
  "click": function($event) {
@@ -23,8 +23,8 @@
23
23
  </slot>
24
24
  </div>
25
25
  <div class="nf-notification__btns" v-if="cancelButtonText || confirmButtonText">
26
- <nf-button @click.stop="handleCancel">{{ cancelButtonText }}</nf-button>
27
- <nf-button type="primary" @click.stop="handleConfirm">{{ confirmButtonText }}</nf-button>
26
+ <nf-button @click.stop="handleCancel" v-if="cancelButtonText">{{ cancelButtonText }}</nf-button>
27
+ <nf-button type="primary" @click.stop="handleConfirm" v-if="confirmButtonText">{{ confirmButtonText }}</nf-button>
28
28
  </div>
29
29
  <div
30
30
  class="nf-notification__closeBtn el-icon-close"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-notification",
3
- "version": "3.2.72",
3
+ "version": "3.2.76",
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": "^3.2.72",
17
+ "@94ai/nf-theme-chalk": "^3.2.76",
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-notification.cjs.js",
32
32
  "module": "lib/nf-notification.esm-bundler.js",
33
- "gitHead": "92c79145b64d591457896ae871b4b553ab096422"
33
+ "gitHead": "07f6d8aca65e93849c2f70cf0b83fdf2ae2cc0f1"
34
34
  }