@panpanzhao/component-ui 0.0.30 → 0.0.31

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.
@@ -1625,7 +1625,7 @@ var SelectTree_component = normalizeComponent(
1625
1625
  if (this.selectMode === "group") {
1626
1626
  return this.renderGroup(h, scoped);
1627
1627
  }
1628
- return this.optionData.map(function (itemOpt) {
1628
+ return this.optionData && this.optionData.map(function (itemOpt) {
1629
1629
  return h("el-option", {
1630
1630
  "key": itemOpt[_this3._optionProps.value],
1631
1631
  "attrs": {
@@ -3552,6 +3552,15 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
3552
3552
  }, {
3553
3553
  button: button
3554
3554
  });
3555
+ if (_this3.on && typeof _this3.on.success === "function") {
3556
+ _this3.call(_this3, {
3557
+ request: _this3.requester,
3558
+ reqData: reqData,
3559
+ expandData: _this3.expandModel
3560
+ }, {
3561
+ button: button
3562
+ });
3563
+ }
3555
3564
  return false;
3556
3565
  }
3557
3566
  button.loading = true;
@@ -3570,6 +3579,15 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
3570
3579
  resData: res,
3571
3580
  expandData: _this3.expandModel
3572
3581
  });
3582
+ if (_this3.on && typeof _this3.on.success === "function") {
3583
+ _this3.call(_this3, {
3584
+ request: _this3.requester,
3585
+ reqData: reqData,
3586
+ expandData: _this3.expandModel
3587
+ }, {
3588
+ button: button
3589
+ });
3590
+ }
3573
3591
  }).catch(function (error) {
3574
3592
  button.loading = false;
3575
3593
  _this3.$emit("error", {
@@ -3578,6 +3596,15 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
3578
3596
  resError: error,
3579
3597
  expandData: _this3.expandModel
3580
3598
  });
3599
+ if (_this3.on && typeof _this3.on.success === "function") {
3600
+ _this3.call(_this3, {
3601
+ request: _this3.requester,
3602
+ reqData: reqData,
3603
+ expandData: _this3.expandModel
3604
+ }, {
3605
+ button: button
3606
+ });
3607
+ }
3581
3608
  });
3582
3609
  });
3583
3610
  },
@@ -1597,6 +1597,15 @@ var external_lodash_ = __webpack_require__(2);
1597
1597
  }, {
1598
1598
  button: button
1599
1599
  });
1600
+ if (_this3.on && typeof _this3.on.success === "function") {
1601
+ _this3.call(_this3, {
1602
+ request: _this3.requester,
1603
+ reqData: reqData,
1604
+ expandData: _this3.expandModel
1605
+ }, {
1606
+ button: button
1607
+ });
1608
+ }
1600
1609
  return false;
1601
1610
  }
1602
1611
  button.loading = true;
@@ -1615,6 +1624,15 @@ var external_lodash_ = __webpack_require__(2);
1615
1624
  resData: res,
1616
1625
  expandData: _this3.expandModel
1617
1626
  });
1627
+ if (_this3.on && typeof _this3.on.success === "function") {
1628
+ _this3.call(_this3, {
1629
+ request: _this3.requester,
1630
+ reqData: reqData,
1631
+ expandData: _this3.expandModel
1632
+ }, {
1633
+ button: button
1634
+ });
1635
+ }
1618
1636
  }).catch(function (error) {
1619
1637
  button.loading = false;
1620
1638
  _this3.$emit("error", {
@@ -1623,6 +1641,15 @@ var external_lodash_ = __webpack_require__(2);
1623
1641
  resError: error,
1624
1642
  expandData: _this3.expandModel
1625
1643
  });
1644
+ if (_this3.on && typeof _this3.on.success === "function") {
1645
+ _this3.call(_this3, {
1646
+ request: _this3.requester,
1647
+ reqData: reqData,
1648
+ expandData: _this3.expandModel
1649
+ }, {
1650
+ button: button
1651
+ });
1652
+ }
1626
1653
  });
1627
1654
  });
1628
1655
  },
@@ -1168,6 +1168,15 @@ var external_lodash_ = __webpack_require__(2);
1168
1168
  }, {
1169
1169
  button: button
1170
1170
  });
1171
+ if (_this3.on && typeof _this3.on.success === "function") {
1172
+ _this3.call(_this3, {
1173
+ request: _this3.requester,
1174
+ reqData: reqData,
1175
+ expandData: _this3.expandModel
1176
+ }, {
1177
+ button: button
1178
+ });
1179
+ }
1171
1180
  return false;
1172
1181
  }
1173
1182
  button.loading = true;
@@ -1186,6 +1195,15 @@ var external_lodash_ = __webpack_require__(2);
1186
1195
  resData: res,
1187
1196
  expandData: _this3.expandModel
1188
1197
  });
1198
+ if (_this3.on && typeof _this3.on.success === "function") {
1199
+ _this3.call(_this3, {
1200
+ request: _this3.requester,
1201
+ reqData: reqData,
1202
+ expandData: _this3.expandModel
1203
+ }, {
1204
+ button: button
1205
+ });
1206
+ }
1189
1207
  }).catch(function (error) {
1190
1208
  button.loading = false;
1191
1209
  _this3.$emit("error", {
@@ -1194,6 +1212,15 @@ var external_lodash_ = __webpack_require__(2);
1194
1212
  resError: error,
1195
1213
  expandData: _this3.expandModel
1196
1214
  });
1215
+ if (_this3.on && typeof _this3.on.success === "function") {
1216
+ _this3.call(_this3, {
1217
+ request: _this3.requester,
1218
+ reqData: reqData,
1219
+ expandData: _this3.expandModel
1220
+ }, {
1221
+ button: button
1222
+ });
1223
+ }
1197
1224
  });
1198
1225
  });
1199
1226
  },
@@ -1129,7 +1129,7 @@ var formula_ = __webpack_require__(3);
1129
1129
  if (this.selectMode === "group") {
1130
1130
  return this.renderGroup(h, scoped);
1131
1131
  }
1132
- return this.optionData.map(function (itemOpt) {
1132
+ return this.optionData && this.optionData.map(function (itemOpt) {
1133
1133
  return h("el-option", {
1134
1134
  "key": itemOpt[_this3._optionProps.value],
1135
1135
  "attrs": {
@@ -1597,6 +1597,15 @@ var external_lodash_ = __webpack_require__(2);
1597
1597
  }, {
1598
1598
  button: button
1599
1599
  });
1600
+ if (_this3.on && typeof _this3.on.success === "function") {
1601
+ _this3.call(_this3, {
1602
+ request: _this3.requester,
1603
+ reqData: reqData,
1604
+ expandData: _this3.expandModel
1605
+ }, {
1606
+ button: button
1607
+ });
1608
+ }
1600
1609
  return false;
1601
1610
  }
1602
1611
  button.loading = true;
@@ -1615,6 +1624,15 @@ var external_lodash_ = __webpack_require__(2);
1615
1624
  resData: res,
1616
1625
  expandData: _this3.expandModel
1617
1626
  });
1627
+ if (_this3.on && typeof _this3.on.success === "function") {
1628
+ _this3.call(_this3, {
1629
+ request: _this3.requester,
1630
+ reqData: reqData,
1631
+ expandData: _this3.expandModel
1632
+ }, {
1633
+ button: button
1634
+ });
1635
+ }
1618
1636
  }).catch(function (error) {
1619
1637
  button.loading = false;
1620
1638
  _this3.$emit("error", {
@@ -1623,6 +1641,15 @@ var external_lodash_ = __webpack_require__(2);
1623
1641
  resError: error,
1624
1642
  expandData: _this3.expandModel
1625
1643
  });
1644
+ if (_this3.on && typeof _this3.on.success === "function") {
1645
+ _this3.call(_this3, {
1646
+ request: _this3.requester,
1647
+ reqData: reqData,
1648
+ expandData: _this3.expandModel
1649
+ }, {
1650
+ button: button
1651
+ });
1652
+ }
1626
1653
  });
1627
1654
  });
1628
1655
  },