@vue-start/pro 0.4.4 → 0.4.5

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/dist/index.es.js CHANGED
@@ -1501,7 +1501,8 @@ var PageCurd = defineComponent({
1501
1501
 
1502
1502
  var _useProCurd = useProCurd(),
1503
1503
  rowKey = _useProCurd.rowKey,
1504
- curdState = _useProCurd.curdState;
1504
+ curdState = _useProCurd.curdState,
1505
+ refreshList = _useProCurd.refreshList;
1505
1506
 
1506
1507
  var dealList = function dealList(subAction) {
1507
1508
  if (subAction === CurdSubAction.PAGE) {
@@ -1587,6 +1588,13 @@ var PageCurd = defineComponent({
1587
1588
  }
1588
1589
  };
1589
1590
 
1591
+ var dealDelete = function dealDelete(subAction) {
1592
+ if (subAction === CurdSubAction.SUCCESS) {
1593
+ //刷新列表
1594
+ refreshList();
1595
+ }
1596
+ };
1597
+
1590
1598
  useModuleEvent(function (_ref3) {
1591
1599
  var type = _ref3.type,
1592
1600
  payload = _ref3.payload,
@@ -1626,6 +1634,10 @@ var PageCurd = defineComponent({
1626
1634
  record: record
1627
1635
  });
1628
1636
  break;
1637
+
1638
+ case CurdAction.DELETE:
1639
+ dealDelete(subAction);
1640
+ break;
1629
1641
  }
1630
1642
  });
1631
1643
  return function () {
package/dist/index.js CHANGED
@@ -1505,7 +1505,8 @@ var PageCurd = vue.defineComponent({
1505
1505
 
1506
1506
  var _useProCurd = useProCurd(),
1507
1507
  rowKey = _useProCurd.rowKey,
1508
- curdState = _useProCurd.curdState;
1508
+ curdState = _useProCurd.curdState,
1509
+ refreshList = _useProCurd.refreshList;
1509
1510
 
1510
1511
  var dealList = function dealList(subAction) {
1511
1512
  if (subAction === exports.CurdSubAction.PAGE) {
@@ -1591,6 +1592,13 @@ var PageCurd = vue.defineComponent({
1591
1592
  }
1592
1593
  };
1593
1594
 
1595
+ var dealDelete = function dealDelete(subAction) {
1596
+ if (subAction === exports.CurdSubAction.SUCCESS) {
1597
+ //刷新列表
1598
+ refreshList();
1599
+ }
1600
+ };
1601
+
1594
1602
  useModuleEvent(function (_ref3) {
1595
1603
  var type = _ref3.type,
1596
1604
  payload = _ref3.payload,
@@ -1630,6 +1638,10 @@ var PageCurd = vue.defineComponent({
1630
1638
  record: record
1631
1639
  });
1632
1640
  break;
1641
+
1642
+ case exports.CurdAction.DELETE:
1643
+ dealDelete(subAction);
1644
+ break;
1633
1645
  }
1634
1646
  });
1635
1647
  return function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-start/pro",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "> TODO: description",
5
5
  "author": "zx <zxpstudy@163.com>",
6
6
  "homepage": "https://github.com/zxeryu/vue-start#readme",
@@ -32,5 +32,5 @@
32
32
  "vue": ">=3.x",
33
33
  "vue-router": ">=4.x"
34
34
  },
35
- "gitHead": "4cadd260951f249478eabe6e9b21bdbeb802de4c"
35
+ "gitHead": "817582dc319eea2d525e93234e02185d0844a207"
36
36
  }