@panpanzhao/component-ui 0.0.29 → 0.0.30
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 +21 -12
- package/lib/components/table-column.js +12 -2
- package/lib/components/table.js +6 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -4544,8 +4544,8 @@ form_view_dialog_src.install = function (Vue) {
|
|
|
4544
4544
|
Vue.component(form_view_dialog_src.name, form_view_dialog_src);
|
|
4545
4545
|
};
|
|
4546
4546
|
/* 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=
|
|
4548
|
-
var
|
|
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=7ea6d01a&
|
|
4548
|
+
var tablevue_type_template_id_7ea6d01a_render = function render() {
|
|
4549
4549
|
var _vm = this,
|
|
4550
4550
|
_c = _vm._self._c
|
|
4551
4551
|
return _c("div", { staticClass: "table" }, [
|
|
@@ -4623,11 +4623,11 @@ var tablevue_type_template_id_56965e96_render = function render() {
|
|
|
4623
4623
|
: _vm._e(),
|
|
4624
4624
|
])
|
|
4625
4625
|
}
|
|
4626
|
-
var
|
|
4627
|
-
|
|
4626
|
+
var tablevue_type_template_id_7ea6d01a_staticRenderFns = []
|
|
4627
|
+
tablevue_type_template_id_7ea6d01a_render._withStripped = true
|
|
4628
4628
|
|
|
4629
4629
|
|
|
4630
|
-
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=
|
|
4630
|
+
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=7ea6d01a&
|
|
4631
4631
|
|
|
4632
4632
|
// EXTERNAL MODULE: external "element-ui/lib/table"
|
|
4633
4633
|
var table_ = __webpack_require__(21);
|
|
@@ -4837,7 +4837,7 @@ var index_ = __webpack_require__(3);
|
|
|
4837
4837
|
},
|
|
4838
4838
|
tableListeners: function tableListeners() {
|
|
4839
4839
|
var _this2 = this;
|
|
4840
|
-
return Object.assign({}, this.$listeners, {
|
|
4840
|
+
return Object.assign({}, this.$listeners, this.on, {
|
|
4841
4841
|
"row-click": function rowClick(row) {
|
|
4842
4842
|
var selectColumns = _this2.columns.filter(function (item) {
|
|
4843
4843
|
return item.control === "Selection";
|
|
@@ -4974,8 +4974,8 @@ var index_ = __webpack_require__(3);
|
|
|
4974
4974
|
|
|
4975
4975
|
var table_component = normalizeComponent(
|
|
4976
4976
|
src_tablevue_type_script_lang_js_,
|
|
4977
|
-
|
|
4978
|
-
|
|
4977
|
+
tablevue_type_template_id_7ea6d01a_render,
|
|
4978
|
+
tablevue_type_template_id_7ea6d01a_staticRenderFns,
|
|
4979
4979
|
false,
|
|
4980
4980
|
null,
|
|
4981
4981
|
null,
|
|
@@ -5463,6 +5463,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5463
5463
|
|
|
5464
5464
|
/* harmony default export */ var operatevue_type_script_lang_js_ = ({
|
|
5465
5465
|
name: "Operate",
|
|
5466
|
+
inject: ["table"],
|
|
5466
5467
|
props: {
|
|
5467
5468
|
max: Number,
|
|
5468
5469
|
item: {
|
|
@@ -5541,6 +5542,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5541
5542
|
itemVNode: function itemVNode(h, itemRow, scoped) {
|
|
5542
5543
|
var cloneItem = Object(external_lodash_["merge"])({}, this.defaultItem, itemRow);
|
|
5543
5544
|
cloneItem.parentData = scoped;
|
|
5545
|
+
cloneItem.table = this.table;
|
|
5544
5546
|
if (typeof cloneItem.render === "function") {
|
|
5545
5547
|
return cloneItem.render.call(this, h, scoped, cloneItem);
|
|
5546
5548
|
}
|
|
@@ -5612,6 +5614,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5612
5614
|
props: {
|
|
5613
5615
|
label: String,
|
|
5614
5616
|
parentData: Object,
|
|
5617
|
+
table: Object,
|
|
5615
5618
|
show: [Boolean, String, Function],
|
|
5616
5619
|
on: Object
|
|
5617
5620
|
},
|
|
@@ -5633,7 +5636,10 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5633
5636
|
click: function click(e) {
|
|
5634
5637
|
e.stopPropagation();
|
|
5635
5638
|
if (typeof _this4.$listeners.click === "function") {
|
|
5636
|
-
_this4.$listeners.click.call(_this4, _this4.parentData,
|
|
5639
|
+
_this4.$listeners.click.call(_this4, _this4.parentData, {
|
|
5640
|
+
table: _this4.table,
|
|
5641
|
+
button: _this4
|
|
5642
|
+
});
|
|
5637
5643
|
}
|
|
5638
5644
|
}
|
|
5639
5645
|
}
|
|
@@ -5653,6 +5659,7 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5653
5659
|
props: {
|
|
5654
5660
|
label: String,
|
|
5655
5661
|
parentData: Object,
|
|
5662
|
+
table: Object,
|
|
5656
5663
|
show: [Boolean, String, Function],
|
|
5657
5664
|
on: Object
|
|
5658
5665
|
},
|
|
@@ -5679,7 +5686,10 @@ var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
|
5679
5686
|
click: function click(e) {
|
|
5680
5687
|
e.stopPropagation();
|
|
5681
5688
|
if (typeof _this5.$listeners.click === "function") {
|
|
5682
|
-
_this5.$listeners.click.call(_this5, _this5.parentData,
|
|
5689
|
+
_this5.$listeners.click.call(_this5, _this5.parentData, {
|
|
5690
|
+
table: _this5.table,
|
|
5691
|
+
button: _this5
|
|
5692
|
+
});
|
|
5683
5693
|
}
|
|
5684
5694
|
}
|
|
5685
5695
|
}
|
|
@@ -10620,8 +10630,7 @@ var install = function install(Vue, opts) {
|
|
|
10620
10630
|
Vue.prototype.$COMPONENT = opts;
|
|
10621
10631
|
Vue.prototype.$API = API;
|
|
10622
10632
|
Vue.prototype.$ELEMENT = {
|
|
10623
|
-
size: opts.size || 'small'
|
|
10624
|
-
zIndex: opts.zIndex || 2000
|
|
10633
|
+
size: opts.size || 'small'
|
|
10625
10634
|
};
|
|
10626
10635
|
};
|
|
10627
10636
|
|
|
@@ -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,
|
|
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,
|
|
1013
|
+
_this5.$listeners.click.call(_this5, _this5.parentData, {
|
|
1014
|
+
table: _this5.table,
|
|
1015
|
+
button: _this5
|
|
1016
|
+
});
|
|
1007
1017
|
}
|
|
1008
1018
|
}
|
|
1009
1019
|
}
|
package/lib/components/table.js
CHANGED
|
@@ -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=
|
|
266
|
-
var
|
|
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
|
-
|
|
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=
|
|
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
|
-
|
|
712
|
+
tablevue_type_template_id_7ea6d01a_render,
|
|
713
713
|
staticRenderFns,
|
|
714
714
|
false,
|
|
715
715
|
null,
|