@panpanzhao/component-ui 0.0.41 → 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.
- package/lib/component-ui.common.js +41 -35
- package/lib/components/crud.js +35 -29
- package/lib/components/form-dialog.js +35 -29
- package/lib/components/form-drawer.js +6 -6
- package/lib/components/table-operate.js +35 -29
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -3516,18 +3516,18 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message_);
|
|
|
3516
3516
|
formModel: {},
|
|
3517
3517
|
expandModel: null,
|
|
3518
3518
|
defaultTools: [{
|
|
3519
|
-
label: this.dialog.
|
|
3520
|
-
type: this.confirmButtonType
|
|
3519
|
+
label: this.dialog.cancelButtonText || "取消",
|
|
3520
|
+
type: this.confirmButtonType,
|
|
3521
3521
|
loading: false,
|
|
3522
3522
|
on: {
|
|
3523
|
-
click: this.
|
|
3523
|
+
click: this.close
|
|
3524
3524
|
}
|
|
3525
3525
|
}, {
|
|
3526
|
-
label: this.dialog.
|
|
3527
|
-
type: this.confirmButtonType,
|
|
3526
|
+
label: this.dialog.confirmButtonText || "确认",
|
|
3527
|
+
type: this.confirmButtonType || "primary",
|
|
3528
3528
|
loading: false,
|
|
3529
3529
|
on: {
|
|
3530
|
-
click: this.
|
|
3530
|
+
click: this.submit
|
|
3531
3531
|
}
|
|
3532
3532
|
}]
|
|
3533
3533
|
};
|
|
@@ -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.$
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
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.$
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
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.$
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
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,
|
|
@@ -3861,18 +3867,18 @@ var drawer_default = /*#__PURE__*/__webpack_require__.n(drawer_);
|
|
|
3861
3867
|
show: false,
|
|
3862
3868
|
formModel: {},
|
|
3863
3869
|
defaultTools: [{
|
|
3864
|
-
label: this.drawer.
|
|
3865
|
-
type: this.confirmButtonType
|
|
3870
|
+
label: this.drawer.cancelButtonText || "取消",
|
|
3871
|
+
type: this.confirmButtonType,
|
|
3866
3872
|
loading: false,
|
|
3867
3873
|
on: {
|
|
3868
|
-
click: this.
|
|
3874
|
+
click: this.close
|
|
3869
3875
|
}
|
|
3870
3876
|
}, {
|
|
3871
|
-
label: this.drawer.
|
|
3872
|
-
type: this.confirmButtonType,
|
|
3877
|
+
label: this.drawer.confirmButtonText || "确认",
|
|
3878
|
+
type: this.confirmButtonType || "primary",
|
|
3873
3879
|
loading: false,
|
|
3874
3880
|
on: {
|
|
3875
|
-
click: this.
|
|
3881
|
+
click: this.submit
|
|
3876
3882
|
}
|
|
3877
3883
|
}]
|
|
3878
3884
|
};
|
package/lib/components/crud.js
CHANGED
|
@@ -1556,18 +1556,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1556
1556
|
formModel: {},
|
|
1557
1557
|
expandModel: null,
|
|
1558
1558
|
defaultTools: [{
|
|
1559
|
-
label: this.dialog.
|
|
1560
|
-
type: this.confirmButtonType
|
|
1559
|
+
label: this.dialog.cancelButtonText || "取消",
|
|
1560
|
+
type: this.confirmButtonType,
|
|
1561
1561
|
loading: false,
|
|
1562
1562
|
on: {
|
|
1563
|
-
click: this.
|
|
1563
|
+
click: this.close
|
|
1564
1564
|
}
|
|
1565
1565
|
}, {
|
|
1566
|
-
label: this.dialog.
|
|
1567
|
-
type: this.confirmButtonType,
|
|
1566
|
+
label: this.dialog.confirmButtonText || "确认",
|
|
1567
|
+
type: this.confirmButtonType || "primary",
|
|
1568
1568
|
loading: false,
|
|
1569
1569
|
on: {
|
|
1570
|
-
click: this.
|
|
1570
|
+
click: this.submit
|
|
1571
1571
|
}
|
|
1572
1572
|
}]
|
|
1573
1573
|
};
|
|
@@ -1616,13 +1616,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1616
1616
|
_this3.reset();
|
|
1617
1617
|
_this3.show = false;
|
|
1618
1618
|
}
|
|
1619
|
-
_this3.$
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
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.$
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
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.$
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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,
|
|
@@ -1127,18 +1127,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1127
1127
|
formModel: {},
|
|
1128
1128
|
expandModel: null,
|
|
1129
1129
|
defaultTools: [{
|
|
1130
|
-
label: this.dialog.
|
|
1131
|
-
type: this.confirmButtonType
|
|
1130
|
+
label: this.dialog.cancelButtonText || "取消",
|
|
1131
|
+
type: this.confirmButtonType,
|
|
1132
1132
|
loading: false,
|
|
1133
1133
|
on: {
|
|
1134
|
-
click: this.
|
|
1134
|
+
click: this.close
|
|
1135
1135
|
}
|
|
1136
1136
|
}, {
|
|
1137
|
-
label: this.dialog.
|
|
1138
|
-
type: this.confirmButtonType,
|
|
1137
|
+
label: this.dialog.confirmButtonText || "确认",
|
|
1138
|
+
type: this.confirmButtonType || "primary",
|
|
1139
1139
|
loading: false,
|
|
1140
1140
|
on: {
|
|
1141
|
-
click: this.
|
|
1141
|
+
click: this.submit
|
|
1142
1142
|
}
|
|
1143
1143
|
}]
|
|
1144
1144
|
};
|
|
@@ -1187,13 +1187,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1187
1187
|
_this3.reset();
|
|
1188
1188
|
_this3.show = false;
|
|
1189
1189
|
}
|
|
1190
|
-
_this3.$
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
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.$
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
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.$
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
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,
|
|
@@ -1108,18 +1108,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1108
1108
|
show: false,
|
|
1109
1109
|
formModel: {},
|
|
1110
1110
|
defaultTools: [{
|
|
1111
|
-
label: this.drawer.
|
|
1112
|
-
type: this.confirmButtonType
|
|
1111
|
+
label: this.drawer.cancelButtonText || "取消",
|
|
1112
|
+
type: this.confirmButtonType,
|
|
1113
1113
|
loading: false,
|
|
1114
1114
|
on: {
|
|
1115
|
-
click: this.
|
|
1115
|
+
click: this.close
|
|
1116
1116
|
}
|
|
1117
1117
|
}, {
|
|
1118
|
-
label: this.drawer.
|
|
1119
|
-
type: this.confirmButtonType,
|
|
1118
|
+
label: this.drawer.confirmButtonText || "确认",
|
|
1119
|
+
type: this.confirmButtonType || "primary",
|
|
1120
1120
|
loading: false,
|
|
1121
1121
|
on: {
|
|
1122
|
-
click: this.
|
|
1122
|
+
click: this.submit
|
|
1123
1123
|
}
|
|
1124
1124
|
}]
|
|
1125
1125
|
};
|
|
@@ -1556,18 +1556,18 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1556
1556
|
formModel: {},
|
|
1557
1557
|
expandModel: null,
|
|
1558
1558
|
defaultTools: [{
|
|
1559
|
-
label: this.dialog.
|
|
1560
|
-
type: this.confirmButtonType
|
|
1559
|
+
label: this.dialog.cancelButtonText || "取消",
|
|
1560
|
+
type: this.confirmButtonType,
|
|
1561
1561
|
loading: false,
|
|
1562
1562
|
on: {
|
|
1563
|
-
click: this.
|
|
1563
|
+
click: this.close
|
|
1564
1564
|
}
|
|
1565
1565
|
}, {
|
|
1566
|
-
label: this.dialog.
|
|
1567
|
-
type: this.confirmButtonType,
|
|
1566
|
+
label: this.dialog.confirmButtonText || "确认",
|
|
1567
|
+
type: this.confirmButtonType || "primary",
|
|
1568
1568
|
loading: false,
|
|
1569
1569
|
on: {
|
|
1570
|
-
click: this.
|
|
1570
|
+
click: this.submit
|
|
1571
1571
|
}
|
|
1572
1572
|
}]
|
|
1573
1573
|
};
|
|
@@ -1616,13 +1616,15 @@ var external_lodash_ = __webpack_require__(2);
|
|
|
1616
1616
|
_this3.reset();
|
|
1617
1617
|
_this3.show = false;
|
|
1618
1618
|
}
|
|
1619
|
-
_this3.$
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
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.$
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
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.$
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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,
|