@panpanzhao/component-ui 0.0.42 → 0.0.43

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.
@@ -3576,13 +3576,15 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message_);
3576
3576
  _this3.reset();
3577
3577
  _this3.show = false;
3578
3578
  }
3579
- _this3.$emit("success", {
3580
- request: _this3.requester,
3581
- reqData: reqData,
3582
- expandData: _this3.expandModel
3583
- }, {
3584
- button: button
3585
- });
3579
+ if (_this3.$listeners.success) {
3580
+ _this3.$emit("success", {
3581
+ request: _this3.requester,
3582
+ reqData: reqData,
3583
+ expandData: _this3.expandModel
3584
+ }, {
3585
+ button: button
3586
+ });
3587
+ }
3586
3588
  if (_this3.on && typeof _this3.on.success === "function") {
3587
3589
  _this3.on.success.call(_this3, {
3588
3590
  request: _this3.requester,
@@ -3604,14 +3606,16 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message_);
3604
3606
  button.loading = false;
3605
3607
  _this3.reset();
3606
3608
  _this3.show = false;
3607
- _this3.$emit("success", {
3608
- request: _this3.requester,
3609
- reqData: reqData,
3610
- resData: res,
3611
- expandData: _this3.expandModel
3612
- }, {
3613
- button: button
3614
- });
3609
+ if (_this3.$listeners.success) {
3610
+ _this3.$emit("success", {
3611
+ request: _this3.requester,
3612
+ reqData: reqData,
3613
+ resData: res,
3614
+ expandData: _this3.expandModel
3615
+ }, {
3616
+ button: button
3617
+ });
3618
+ }
3615
3619
  if (_this3.on && typeof _this3.on.success === "function") {
3616
3620
  _this3.on.success.call(_this3, {
3617
3621
  request: _this3.requester,
@@ -3627,14 +3631,16 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message_);
3627
3631
  }
3628
3632
  }).catch(function (error) {
3629
3633
  button.loading = false;
3630
- _this3.$emit("error", {
3631
- request: _this3.requester,
3632
- reqData: reqData,
3633
- resError: error,
3634
- expandData: _this3.expandModel
3635
- }, {
3636
- button: button
3637
- });
3634
+ if (_this3.$listeners.error) {
3635
+ _this3.$emit("error", {
3636
+ request: _this3.requester,
3637
+ reqData: reqData,
3638
+ resError: error,
3639
+ expandData: _this3.expandModel
3640
+ }, {
3641
+ button: button
3642
+ });
3643
+ }
3638
3644
  if (_this3.on && typeof _this3.on.error === "function") {
3639
3645
  _this3.on.error.call(_this3, {
3640
3646
  request: _this3.requester,
@@ -1616,13 +1616,15 @@ var external_lodash_ = __webpack_require__(2);
1616
1616
  _this3.reset();
1617
1617
  _this3.show = false;
1618
1618
  }
1619
- _this3.$emit("success", {
1620
- request: _this3.requester,
1621
- reqData: reqData,
1622
- expandData: _this3.expandModel
1623
- }, {
1624
- button: button
1625
- });
1619
+ if (_this3.$listeners.success) {
1620
+ _this3.$emit("success", {
1621
+ request: _this3.requester,
1622
+ reqData: reqData,
1623
+ expandData: _this3.expandModel
1624
+ }, {
1625
+ button: button
1626
+ });
1627
+ }
1626
1628
  if (_this3.on && typeof _this3.on.success === "function") {
1627
1629
  _this3.on.success.call(_this3, {
1628
1630
  request: _this3.requester,
@@ -1644,14 +1646,16 @@ var external_lodash_ = __webpack_require__(2);
1644
1646
  button.loading = false;
1645
1647
  _this3.reset();
1646
1648
  _this3.show = false;
1647
- _this3.$emit("success", {
1648
- request: _this3.requester,
1649
- reqData: reqData,
1650
- resData: res,
1651
- expandData: _this3.expandModel
1652
- }, {
1653
- button: button
1654
- });
1649
+ if (_this3.$listeners.success) {
1650
+ _this3.$emit("success", {
1651
+ request: _this3.requester,
1652
+ reqData: reqData,
1653
+ resData: res,
1654
+ expandData: _this3.expandModel
1655
+ }, {
1656
+ button: button
1657
+ });
1658
+ }
1655
1659
  if (_this3.on && typeof _this3.on.success === "function") {
1656
1660
  _this3.on.success.call(_this3, {
1657
1661
  request: _this3.requester,
@@ -1667,14 +1671,16 @@ var external_lodash_ = __webpack_require__(2);
1667
1671
  }
1668
1672
  }).catch(function (error) {
1669
1673
  button.loading = false;
1670
- _this3.$emit("error", {
1671
- request: _this3.requester,
1672
- reqData: reqData,
1673
- resError: error,
1674
- expandData: _this3.expandModel
1675
- }, {
1676
- button: button
1677
- });
1674
+ if (_this3.$listeners.error) {
1675
+ _this3.$emit("error", {
1676
+ request: _this3.requester,
1677
+ reqData: reqData,
1678
+ resError: error,
1679
+ expandData: _this3.expandModel
1680
+ }, {
1681
+ button: button
1682
+ });
1683
+ }
1678
1684
  if (_this3.on && typeof _this3.on.error === "function") {
1679
1685
  _this3.on.error.call(_this3, {
1680
1686
  request: _this3.requester,
@@ -1187,13 +1187,15 @@ var external_lodash_ = __webpack_require__(2);
1187
1187
  _this3.reset();
1188
1188
  _this3.show = false;
1189
1189
  }
1190
- _this3.$emit("success", {
1191
- request: _this3.requester,
1192
- reqData: reqData,
1193
- expandData: _this3.expandModel
1194
- }, {
1195
- button: button
1196
- });
1190
+ if (_this3.$listeners.success) {
1191
+ _this3.$emit("success", {
1192
+ request: _this3.requester,
1193
+ reqData: reqData,
1194
+ expandData: _this3.expandModel
1195
+ }, {
1196
+ button: button
1197
+ });
1198
+ }
1197
1199
  if (_this3.on && typeof _this3.on.success === "function") {
1198
1200
  _this3.on.success.call(_this3, {
1199
1201
  request: _this3.requester,
@@ -1215,14 +1217,16 @@ var external_lodash_ = __webpack_require__(2);
1215
1217
  button.loading = false;
1216
1218
  _this3.reset();
1217
1219
  _this3.show = false;
1218
- _this3.$emit("success", {
1219
- request: _this3.requester,
1220
- reqData: reqData,
1221
- resData: res,
1222
- expandData: _this3.expandModel
1223
- }, {
1224
- button: button
1225
- });
1220
+ if (_this3.$listeners.success) {
1221
+ _this3.$emit("success", {
1222
+ request: _this3.requester,
1223
+ reqData: reqData,
1224
+ resData: res,
1225
+ expandData: _this3.expandModel
1226
+ }, {
1227
+ button: button
1228
+ });
1229
+ }
1226
1230
  if (_this3.on && typeof _this3.on.success === "function") {
1227
1231
  _this3.on.success.call(_this3, {
1228
1232
  request: _this3.requester,
@@ -1238,14 +1242,16 @@ var external_lodash_ = __webpack_require__(2);
1238
1242
  }
1239
1243
  }).catch(function (error) {
1240
1244
  button.loading = false;
1241
- _this3.$emit("error", {
1242
- request: _this3.requester,
1243
- reqData: reqData,
1244
- resError: error,
1245
- expandData: _this3.expandModel
1246
- }, {
1247
- button: button
1248
- });
1245
+ if (_this3.$listeners.error) {
1246
+ _this3.$emit("error", {
1247
+ request: _this3.requester,
1248
+ reqData: reqData,
1249
+ resError: error,
1250
+ expandData: _this3.expandModel
1251
+ }, {
1252
+ button: button
1253
+ });
1254
+ }
1249
1255
  if (_this3.on && typeof _this3.on.error === "function") {
1250
1256
  _this3.on.error.call(_this3, {
1251
1257
  request: _this3.requester,
@@ -1616,13 +1616,15 @@ var external_lodash_ = __webpack_require__(2);
1616
1616
  _this3.reset();
1617
1617
  _this3.show = false;
1618
1618
  }
1619
- _this3.$emit("success", {
1620
- request: _this3.requester,
1621
- reqData: reqData,
1622
- expandData: _this3.expandModel
1623
- }, {
1624
- button: button
1625
- });
1619
+ if (_this3.$listeners.success) {
1620
+ _this3.$emit("success", {
1621
+ request: _this3.requester,
1622
+ reqData: reqData,
1623
+ expandData: _this3.expandModel
1624
+ }, {
1625
+ button: button
1626
+ });
1627
+ }
1626
1628
  if (_this3.on && typeof _this3.on.success === "function") {
1627
1629
  _this3.on.success.call(_this3, {
1628
1630
  request: _this3.requester,
@@ -1644,14 +1646,16 @@ var external_lodash_ = __webpack_require__(2);
1644
1646
  button.loading = false;
1645
1647
  _this3.reset();
1646
1648
  _this3.show = false;
1647
- _this3.$emit("success", {
1648
- request: _this3.requester,
1649
- reqData: reqData,
1650
- resData: res,
1651
- expandData: _this3.expandModel
1652
- }, {
1653
- button: button
1654
- });
1649
+ if (_this3.$listeners.success) {
1650
+ _this3.$emit("success", {
1651
+ request: _this3.requester,
1652
+ reqData: reqData,
1653
+ resData: res,
1654
+ expandData: _this3.expandModel
1655
+ }, {
1656
+ button: button
1657
+ });
1658
+ }
1655
1659
  if (_this3.on && typeof _this3.on.success === "function") {
1656
1660
  _this3.on.success.call(_this3, {
1657
1661
  request: _this3.requester,
@@ -1667,14 +1671,16 @@ var external_lodash_ = __webpack_require__(2);
1667
1671
  }
1668
1672
  }).catch(function (error) {
1669
1673
  button.loading = false;
1670
- _this3.$emit("error", {
1671
- request: _this3.requester,
1672
- reqData: reqData,
1673
- resError: error,
1674
- expandData: _this3.expandModel
1675
- }, {
1676
- button: button
1677
- });
1674
+ if (_this3.$listeners.error) {
1675
+ _this3.$emit("error", {
1676
+ request: _this3.requester,
1677
+ reqData: reqData,
1678
+ resError: error,
1679
+ expandData: _this3.expandModel
1680
+ }, {
1681
+ button: button
1682
+ });
1683
+ }
1678
1684
  if (_this3.on && typeof _this3.on.error === "function") {
1679
1685
  _this3.on.error.call(_this3, {
1680
1686
  request: _this3.requester,