@panpanzhao/component-ui 0.0.29 → 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
  },
@@ -4544,8 +4571,8 @@ form_view_dialog_src.install = function (Vue) {
4544
4571
  Vue.component(form_view_dialog_src.name, form_view_dialog_src);
4545
4572
  };
4546
4573
  /* harmony default export */ var form_view_dialog = (form_view_dialog_src);
4547
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=56965e96&
4548
- var tablevue_type_template_id_56965e96_render = function render() {
4574
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=7ea6d01a&
4575
+ var tablevue_type_template_id_7ea6d01a_render = function render() {
4549
4576
  var _vm = this,
4550
4577
  _c = _vm._self._c
4551
4578
  return _c("div", { staticClass: "table" }, [
@@ -4623,11 +4650,11 @@ var tablevue_type_template_id_56965e96_render = function render() {
4623
4650
  : _vm._e(),
4624
4651
  ])
4625
4652
  }
4626
- var tablevue_type_template_id_56965e96_staticRenderFns = []
4627
- tablevue_type_template_id_56965e96_render._withStripped = true
4653
+ var tablevue_type_template_id_7ea6d01a_staticRenderFns = []
4654
+ tablevue_type_template_id_7ea6d01a_render._withStripped = true
4628
4655
 
4629
4656
 
4630
- // CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=56965e96&
4657
+ // CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=7ea6d01a&
4631
4658
 
4632
4659
  // EXTERNAL MODULE: external "element-ui/lib/table"
4633
4660
  var table_ = __webpack_require__(21);
@@ -4837,7 +4864,7 @@ var index_ = __webpack_require__(3);
4837
4864
  },
4838
4865
  tableListeners: function tableListeners() {
4839
4866
  var _this2 = this;
4840
- return Object.assign({}, this.$listeners, {
4867
+ return Object.assign({}, this.$listeners, this.on, {
4841
4868
  "row-click": function rowClick(row) {
4842
4869
  var selectColumns = _this2.columns.filter(function (item) {
4843
4870
  return item.control === "Selection";
@@ -4974,8 +5001,8 @@ var index_ = __webpack_require__(3);
4974
5001
 
4975
5002
  var table_component = normalizeComponent(
4976
5003
  src_tablevue_type_script_lang_js_,
4977
- tablevue_type_template_id_56965e96_render,
4978
- tablevue_type_template_id_56965e96_staticRenderFns,
5004
+ tablevue_type_template_id_7ea6d01a_render,
5005
+ tablevue_type_template_id_7ea6d01a_staticRenderFns,
4979
5006
  false,
4980
5007
  null,
4981
5008
  null,
@@ -5463,6 +5490,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5463
5490
 
5464
5491
  /* harmony default export */ var operatevue_type_script_lang_js_ = ({
5465
5492
  name: "Operate",
5493
+ inject: ["table"],
5466
5494
  props: {
5467
5495
  max: Number,
5468
5496
  item: {
@@ -5541,6 +5569,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5541
5569
  itemVNode: function itemVNode(h, itemRow, scoped) {
5542
5570
  var cloneItem = Object(external_lodash_["merge"])({}, this.defaultItem, itemRow);
5543
5571
  cloneItem.parentData = scoped;
5572
+ cloneItem.table = this.table;
5544
5573
  if (typeof cloneItem.render === "function") {
5545
5574
  return cloneItem.render.call(this, h, scoped, cloneItem);
5546
5575
  }
@@ -5612,6 +5641,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5612
5641
  props: {
5613
5642
  label: String,
5614
5643
  parentData: Object,
5644
+ table: Object,
5615
5645
  show: [Boolean, String, Function],
5616
5646
  on: Object
5617
5647
  },
@@ -5633,7 +5663,10 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5633
5663
  click: function click(e) {
5634
5664
  e.stopPropagation();
5635
5665
  if (typeof _this4.$listeners.click === "function") {
5636
- _this4.$listeners.click.call(_this4, _this4.parentData, _this4);
5666
+ _this4.$listeners.click.call(_this4, _this4.parentData, {
5667
+ table: _this4.table,
5668
+ button: _this4
5669
+ });
5637
5670
  }
5638
5671
  }
5639
5672
  }
@@ -5653,6 +5686,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5653
5686
  props: {
5654
5687
  label: String,
5655
5688
  parentData: Object,
5689
+ table: Object,
5656
5690
  show: [Boolean, String, Function],
5657
5691
  on: Object
5658
5692
  },
@@ -5679,7 +5713,10 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
5679
5713
  click: function click(e) {
5680
5714
  e.stopPropagation();
5681
5715
  if (typeof _this5.$listeners.click === "function") {
5682
- _this5.$listeners.click.call(_this5, _this5.parentData, _this5);
5716
+ _this5.$listeners.click.call(_this5, _this5.parentData, {
5717
+ table: _this5.table,
5718
+ button: _this5
5719
+ });
5683
5720
  }
5684
5721
  }
5685
5722
  }
@@ -10620,8 +10657,7 @@ var install = function install(Vue, opts) {
10620
10657
  Vue.prototype.$COMPONENT = opts;
10621
10658
  Vue.prototype.$API = API;
10622
10659
  Vue.prototype.$ELEMENT = {
10623
- size: opts.size || 'small',
10624
- zIndex: opts.zIndex || 2000
10660
+ size: opts.size || 'small'
10625
10661
  };
10626
10662
  };
10627
10663
 
@@ -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": {
@@ -787,6 +787,7 @@ var external_lodash_ = __webpack_require__(2);
787
787
 
788
788
  /* harmony default export */ var operatevue_type_script_lang_js_ = ({
789
789
  name: "Operate",
790
+ inject: ["table"],
790
791
  props: {
791
792
  max: Number,
792
793
  item: {
@@ -865,6 +866,7 @@ var external_lodash_ = __webpack_require__(2);
865
866
  itemVNode: function itemVNode(h, itemRow, scoped) {
866
867
  var cloneItem = Object(external_lodash_["merge"])({}, this.defaultItem, itemRow);
867
868
  cloneItem.parentData = scoped;
869
+ cloneItem.table = this.table;
868
870
  if (typeof cloneItem.render === "function") {
869
871
  return cloneItem.render.call(this, h, scoped, cloneItem);
870
872
  }
@@ -936,6 +938,7 @@ var external_lodash_ = __webpack_require__(2);
936
938
  props: {
937
939
  label: String,
938
940
  parentData: Object,
941
+ table: Object,
939
942
  show: [Boolean, String, Function],
940
943
  on: Object
941
944
  },
@@ -957,7 +960,10 @@ var external_lodash_ = __webpack_require__(2);
957
960
  click: function click(e) {
958
961
  e.stopPropagation();
959
962
  if (typeof _this4.$listeners.click === "function") {
960
- _this4.$listeners.click.call(_this4, _this4.parentData, _this4);
963
+ _this4.$listeners.click.call(_this4, _this4.parentData, {
964
+ table: _this4.table,
965
+ button: _this4
966
+ });
961
967
  }
962
968
  }
963
969
  }
@@ -977,6 +983,7 @@ var external_lodash_ = __webpack_require__(2);
977
983
  props: {
978
984
  label: String,
979
985
  parentData: Object,
986
+ table: Object,
980
987
  show: [Boolean, String, Function],
981
988
  on: Object
982
989
  },
@@ -1003,7 +1010,10 @@ var external_lodash_ = __webpack_require__(2);
1003
1010
  click: function click(e) {
1004
1011
  e.stopPropagation();
1005
1012
  if (typeof _this5.$listeners.click === "function") {
1006
- _this5.$listeners.click.call(_this5, _this5.parentData, _this5);
1013
+ _this5.$listeners.click.call(_this5, _this5.parentData, {
1014
+ table: _this5.table,
1015
+ button: _this5
1016
+ });
1007
1017
  }
1008
1018
  }
1009
1019
  }
@@ -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
  },
@@ -262,8 +262,8 @@ module.exports = require("element-ui/lib/pagination");
262
262
  // ESM COMPAT FLAG
263
263
  __webpack_require__.r(__webpack_exports__);
264
264
 
265
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=56965e96&
266
- var tablevue_type_template_id_56965e96_render = function render() {
265
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/table.vue?vue&type=template&id=7ea6d01a&
266
+ var tablevue_type_template_id_7ea6d01a_render = function render() {
267
267
  var _vm = this,
268
268
  _c = _vm._self._c
269
269
  return _c("div", { staticClass: "table" }, [
@@ -342,10 +342,10 @@ var tablevue_type_template_id_56965e96_render = function render() {
342
342
  ])
343
343
  }
344
344
  var staticRenderFns = []
345
- tablevue_type_template_id_56965e96_render._withStripped = true
345
+ tablevue_type_template_id_7ea6d01a_render._withStripped = true
346
346
 
347
347
 
348
- // CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=56965e96&
348
+ // CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=7ea6d01a&
349
349
 
350
350
  // EXTERNAL MODULE: external "@vue/babel-helper-vue-jsx-merge-props"
351
351
  var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
@@ -569,7 +569,7 @@ var external_lodash_ = __webpack_require__(2);
569
569
  },
570
570
  tableListeners: function tableListeners() {
571
571
  var _this2 = this;
572
- return Object.assign({}, this.$listeners, {
572
+ return Object.assign({}, this.$listeners, this.on, {
573
573
  "row-click": function rowClick(row) {
574
574
  var selectColumns = _this2.columns.filter(function (item) {
575
575
  return item.control === "Selection";
@@ -709,7 +709,7 @@ var componentNormalizer = __webpack_require__(1);
709
709
 
710
710
  var component = Object(componentNormalizer["a" /* default */])(
711
711
  src_tablevue_type_script_lang_js_,
712
- tablevue_type_template_id_56965e96_render,
712
+ tablevue_type_template_id_7ea6d01a_render,
713
713
  staticRenderFns,
714
714
  false,
715
715
  null,