@panpanzhao/component-ui 0.0.30 → 0.0.32
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.on.success.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;
|
|
@@ -3569,7 +3578,18 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
3569
3578
|
reqData: reqData,
|
|
3570
3579
|
resData: res,
|
|
3571
3580
|
expandData: _this3.expandModel
|
|
3581
|
+
}, {
|
|
3582
|
+
button: button
|
|
3572
3583
|
});
|
|
3584
|
+
if (_this3.on && typeof _this3.on.success === "function") {
|
|
3585
|
+
_this3.on.success.call(_this3, {
|
|
3586
|
+
request: _this3.requester,
|
|
3587
|
+
reqData: reqData,
|
|
3588
|
+
expandData: _this3.expandModel
|
|
3589
|
+
}, {
|
|
3590
|
+
button: button
|
|
3591
|
+
});
|
|
3592
|
+
}
|
|
3573
3593
|
}).catch(function (error) {
|
|
3574
3594
|
button.loading = false;
|
|
3575
3595
|
_this3.$emit("error", {
|
|
@@ -3577,7 +3597,18 @@ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
|
3577
3597
|
reqData: reqData,
|
|
3578
3598
|
resError: error,
|
|
3579
3599
|
expandData: _this3.expandModel
|
|
3600
|
+
}, {
|
|
3601
|
+
button: button
|
|
3580
3602
|
});
|
|
3603
|
+
if (_this3.on && typeof _this3.on.error === "function") {
|
|
3604
|
+
_this3.on.error.call(_this3, {
|
|
3605
|
+
request: _this3.requester,
|
|
3606
|
+
reqData: reqData,
|
|
3607
|
+
expandData: _this3.expandModel
|
|
3608
|
+
}, {
|
|
3609
|
+
button: button
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3581
3612
|
});
|
|
3582
3613
|
});
|
|
3583
3614
|
},
|
package/lib/components/crud.js
CHANGED
|
@@ -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.on.success.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;
|
|
@@ -1614,7 +1623,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1614
1623
|
reqData: reqData,
|
|
1615
1624
|
resData: res,
|
|
1616
1625
|
expandData: _this3.expandModel
|
|
1626
|
+
}, {
|
|
1627
|
+
button: button
|
|
1617
1628
|
});
|
|
1629
|
+
if (_this3.on && typeof _this3.on.success === "function") {
|
|
1630
|
+
_this3.on.success.call(_this3, {
|
|
1631
|
+
request: _this3.requester,
|
|
1632
|
+
reqData: reqData,
|
|
1633
|
+
expandData: _this3.expandModel
|
|
1634
|
+
}, {
|
|
1635
|
+
button: button
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1618
1638
|
}).catch(function (error) {
|
|
1619
1639
|
button.loading = false;
|
|
1620
1640
|
_this3.$emit("error", {
|
|
@@ -1622,7 +1642,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1622
1642
|
reqData: reqData,
|
|
1623
1643
|
resError: error,
|
|
1624
1644
|
expandData: _this3.expandModel
|
|
1645
|
+
}, {
|
|
1646
|
+
button: button
|
|
1625
1647
|
});
|
|
1648
|
+
if (_this3.on && typeof _this3.on.error === "function") {
|
|
1649
|
+
_this3.on.error.call(_this3, {
|
|
1650
|
+
request: _this3.requester,
|
|
1651
|
+
reqData: reqData,
|
|
1652
|
+
expandData: _this3.expandModel
|
|
1653
|
+
}, {
|
|
1654
|
+
button: button
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1626
1657
|
});
|
|
1627
1658
|
});
|
|
1628
1659
|
},
|
|
@@ -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.on.success.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;
|
|
@@ -1185,7 +1194,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1185
1194
|
reqData: reqData,
|
|
1186
1195
|
resData: res,
|
|
1187
1196
|
expandData: _this3.expandModel
|
|
1197
|
+
}, {
|
|
1198
|
+
button: button
|
|
1188
1199
|
});
|
|
1200
|
+
if (_this3.on && typeof _this3.on.success === "function") {
|
|
1201
|
+
_this3.on.success.call(_this3, {
|
|
1202
|
+
request: _this3.requester,
|
|
1203
|
+
reqData: reqData,
|
|
1204
|
+
expandData: _this3.expandModel
|
|
1205
|
+
}, {
|
|
1206
|
+
button: button
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1189
1209
|
}).catch(function (error) {
|
|
1190
1210
|
button.loading = false;
|
|
1191
1211
|
_this3.$emit("error", {
|
|
@@ -1193,7 +1213,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1193
1213
|
reqData: reqData,
|
|
1194
1214
|
resError: error,
|
|
1195
1215
|
expandData: _this3.expandModel
|
|
1216
|
+
}, {
|
|
1217
|
+
button: button
|
|
1196
1218
|
});
|
|
1219
|
+
if (_this3.on && typeof _this3.on.error === "function") {
|
|
1220
|
+
_this3.on.error.call(_this3, {
|
|
1221
|
+
request: _this3.requester,
|
|
1222
|
+
reqData: reqData,
|
|
1223
|
+
expandData: _this3.expandModel
|
|
1224
|
+
}, {
|
|
1225
|
+
button: button
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1197
1228
|
});
|
|
1198
1229
|
});
|
|
1199
1230
|
},
|
|
@@ -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.on.success.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;
|
|
@@ -1614,7 +1623,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1614
1623
|
reqData: reqData,
|
|
1615
1624
|
resData: res,
|
|
1616
1625
|
expandData: _this3.expandModel
|
|
1626
|
+
}, {
|
|
1627
|
+
button: button
|
|
1617
1628
|
});
|
|
1629
|
+
if (_this3.on && typeof _this3.on.success === "function") {
|
|
1630
|
+
_this3.on.success.call(_this3, {
|
|
1631
|
+
request: _this3.requester,
|
|
1632
|
+
reqData: reqData,
|
|
1633
|
+
expandData: _this3.expandModel
|
|
1634
|
+
}, {
|
|
1635
|
+
button: button
|
|
1636
|
+
});
|
|
1637
|
+
}
|
|
1618
1638
|
}).catch(function (error) {
|
|
1619
1639
|
button.loading = false;
|
|
1620
1640
|
_this3.$emit("error", {
|
|
@@ -1622,7 +1642,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1622
1642
|
reqData: reqData,
|
|
1623
1643
|
resError: error,
|
|
1624
1644
|
expandData: _this3.expandModel
|
|
1645
|
+
}, {
|
|
1646
|
+
button: button
|
|
1625
1647
|
});
|
|
1648
|
+
if (_this3.on && typeof _this3.on.error === "function") {
|
|
1649
|
+
_this3.on.error.call(_this3, {
|
|
1650
|
+
request: _this3.requester,
|
|
1651
|
+
reqData: reqData,
|
|
1652
|
+
expandData: _this3.expandModel
|
|
1653
|
+
}, {
|
|
1654
|
+
button: button
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1626
1657
|
});
|
|
1627
1658
|
});
|
|
1628
1659
|
},
|