eoss-ui 0.4.49 → 0.4.50
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/data-table.js +16 -11
- package/lib/eoss-ui.common.js +19 -14
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +11 -5
- package/src/index.js +1 -1
package/lib/data-table.js
CHANGED
|
@@ -2852,8 +2852,8 @@ module.exports = require("vue");
|
|
|
2852
2852
|
// ESM COMPAT FLAG
|
|
2853
2853
|
__webpack_require__.r(__webpack_exports__);
|
|
2854
2854
|
|
|
2855
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
2856
|
-
var
|
|
2855
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=59cbc514&
|
|
2856
|
+
var mainvue_type_template_id_59cbc514_render = function () {
|
|
2857
2857
|
var _vm = this
|
|
2858
2858
|
var _h = _vm.$createElement
|
|
2859
2859
|
var _c = _vm._self._c || _h
|
|
@@ -3188,10 +3188,10 @@ var mainvue_type_template_id_da343bae_render = function () {
|
|
|
3188
3188
|
)
|
|
3189
3189
|
}
|
|
3190
3190
|
var staticRenderFns = []
|
|
3191
|
-
|
|
3191
|
+
mainvue_type_template_id_59cbc514_render._withStripped = true
|
|
3192
3192
|
|
|
3193
3193
|
|
|
3194
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
3194
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=59cbc514&
|
|
3195
3195
|
|
|
3196
3196
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3197
3197
|
var api = __webpack_require__(1);
|
|
@@ -5963,6 +5963,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
5963
5963
|
handler: function handler(val) {
|
|
5964
5964
|
if (this.tableHeight != 'auto' && this.display) {
|
|
5965
5965
|
this.resetHeight();
|
|
5966
|
+
this.doLayout();
|
|
5966
5967
|
}
|
|
5967
5968
|
}
|
|
5968
5969
|
},
|
|
@@ -5970,11 +5971,12 @@ var mainvue_type_script_lang_js_components;
|
|
|
5970
5971
|
handler: function handler(val) {
|
|
5971
5972
|
if (this.tableHeight != 'auto' && this.display) {
|
|
5972
5973
|
this.resetHeight();
|
|
5974
|
+
this.doLayout();
|
|
5973
5975
|
}
|
|
5974
5976
|
}
|
|
5975
5977
|
},
|
|
5976
5978
|
checked: function checked(newVal) {
|
|
5977
|
-
this.checkSelect(newVal);
|
|
5979
|
+
this.datas.length && this.checkSelect(newVal);
|
|
5978
5980
|
},
|
|
5979
5981
|
|
|
5980
5982
|
thead: {
|
|
@@ -6026,6 +6028,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6026
6028
|
display: function display(val) {
|
|
6027
6029
|
if (val) {
|
|
6028
6030
|
this.resetHeight();
|
|
6031
|
+
this.doLayout();
|
|
6029
6032
|
}
|
|
6030
6033
|
}
|
|
6031
6034
|
},
|
|
@@ -6033,7 +6036,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6033
6036
|
this.immediate && this.getTableData();
|
|
6034
6037
|
},
|
|
6035
6038
|
mounted: function mounted() {
|
|
6036
|
-
this.checkSelect(this.checked);
|
|
6039
|
+
this.datas.length && this.checkSelect(this.checked);
|
|
6037
6040
|
this.resetHeight();
|
|
6038
6041
|
},
|
|
6039
6042
|
|
|
@@ -6130,7 +6133,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6130
6133
|
checkSelect: function checkSelect(newVal) {
|
|
6131
6134
|
var _this4 = this;
|
|
6132
6135
|
|
|
6133
|
-
|
|
6136
|
+
this.$nextTick(function () {
|
|
6134
6137
|
if (util["a" /* default */].getObjectType(newVal) === 'array') {
|
|
6135
6138
|
newVal.forEach(function (row) {
|
|
6136
6139
|
if (util["a" /* default */].isObject(row)) {
|
|
@@ -6143,10 +6146,9 @@ var mainvue_type_script_lang_js_components;
|
|
|
6143
6146
|
});
|
|
6144
6147
|
});
|
|
6145
6148
|
} else if (newVal === true) {
|
|
6146
|
-
|
|
6149
|
+
_this4.toggleAllSelection();
|
|
6147
6150
|
}
|
|
6148
|
-
|
|
6149
|
-
}
|
|
6151
|
+
});
|
|
6150
6152
|
},
|
|
6151
6153
|
getTheads: function getTheads() {
|
|
6152
6154
|
var _this5 = this;
|
|
@@ -6215,6 +6217,9 @@ var mainvue_type_script_lang_js_components;
|
|
|
6215
6217
|
var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
|
|
6216
6218
|
_this6.list = results.data || results.records || results.list || [];
|
|
6217
6219
|
_this6.config.totalCount = results.count || results.total || results.totalCount;
|
|
6220
|
+
_this6.checked && _this6.$nextTick(function () {
|
|
6221
|
+
_this6.checkSelect(_this6.checked);
|
|
6222
|
+
});
|
|
6218
6223
|
} else {
|
|
6219
6224
|
_this6.list = [];
|
|
6220
6225
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
@@ -6675,7 +6680,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
6675
6680
|
|
|
6676
6681
|
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
6677
6682
|
src_mainvue_type_script_lang_js_,
|
|
6678
|
-
|
|
6683
|
+
mainvue_type_template_id_59cbc514_render,
|
|
6679
6684
|
staticRenderFns,
|
|
6680
6685
|
false,
|
|
6681
6686
|
null,
|
package/lib/eoss-ui.common.js
CHANGED
|
@@ -4599,8 +4599,8 @@ clients_src_main.install = function (Vue) {
|
|
|
4599
4599
|
};
|
|
4600
4600
|
|
|
4601
4601
|
/* harmony default export */ var clients = (clients_src_main);
|
|
4602
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=
|
|
4603
|
-
var
|
|
4602
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/main.vue?vue&type=template&id=59cbc514&
|
|
4603
|
+
var mainvue_type_template_id_59cbc514_render = function () {
|
|
4604
4604
|
var _vm = this
|
|
4605
4605
|
var _h = _vm.$createElement
|
|
4606
4606
|
var _c = _vm._self._c || _h
|
|
@@ -4934,11 +4934,11 @@ var mainvue_type_template_id_da343bae_render = function () {
|
|
|
4934
4934
|
1
|
|
4935
4935
|
)
|
|
4936
4936
|
}
|
|
4937
|
-
var
|
|
4938
|
-
|
|
4937
|
+
var mainvue_type_template_id_59cbc514_staticRenderFns = []
|
|
4938
|
+
mainvue_type_template_id_59cbc514_render._withStripped = true
|
|
4939
4939
|
|
|
4940
4940
|
|
|
4941
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
4941
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=59cbc514&
|
|
4942
4942
|
|
|
4943
4943
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/data-table/src/children.vue?vue&type=template&id=796433ee&
|
|
4944
4944
|
var childrenvue_type_template_id_796433ee_render = function () {
|
|
@@ -7706,6 +7706,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7706
7706
|
handler: function handler(val) {
|
|
7707
7707
|
if (this.tableHeight != 'auto' && this.display) {
|
|
7708
7708
|
this.resetHeight();
|
|
7709
|
+
this.doLayout();
|
|
7709
7710
|
}
|
|
7710
7711
|
}
|
|
7711
7712
|
},
|
|
@@ -7713,11 +7714,12 @@ var mainvue_type_script_lang_js_components;
|
|
|
7713
7714
|
handler: function handler(val) {
|
|
7714
7715
|
if (this.tableHeight != 'auto' && this.display) {
|
|
7715
7716
|
this.resetHeight();
|
|
7717
|
+
this.doLayout();
|
|
7716
7718
|
}
|
|
7717
7719
|
}
|
|
7718
7720
|
},
|
|
7719
7721
|
checked: function checked(newVal) {
|
|
7720
|
-
this.checkSelect(newVal);
|
|
7722
|
+
this.datas.length && this.checkSelect(newVal);
|
|
7721
7723
|
},
|
|
7722
7724
|
|
|
7723
7725
|
thead: {
|
|
@@ -7769,6 +7771,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7769
7771
|
display: function display(val) {
|
|
7770
7772
|
if (val) {
|
|
7771
7773
|
this.resetHeight();
|
|
7774
|
+
this.doLayout();
|
|
7772
7775
|
}
|
|
7773
7776
|
}
|
|
7774
7777
|
},
|
|
@@ -7776,7 +7779,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7776
7779
|
this.immediate && this.getTableData();
|
|
7777
7780
|
},
|
|
7778
7781
|
mounted: function mounted() {
|
|
7779
|
-
this.checkSelect(this.checked);
|
|
7782
|
+
this.datas.length && this.checkSelect(this.checked);
|
|
7780
7783
|
this.resetHeight();
|
|
7781
7784
|
},
|
|
7782
7785
|
|
|
@@ -7873,7 +7876,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7873
7876
|
checkSelect: function checkSelect(newVal) {
|
|
7874
7877
|
var _this4 = this;
|
|
7875
7878
|
|
|
7876
|
-
|
|
7879
|
+
this.$nextTick(function () {
|
|
7877
7880
|
if (utils_util["a" /* default */].getObjectType(newVal) === 'array') {
|
|
7878
7881
|
newVal.forEach(function (row) {
|
|
7879
7882
|
if (utils_util["a" /* default */].isObject(row)) {
|
|
@@ -7886,10 +7889,9 @@ var mainvue_type_script_lang_js_components;
|
|
|
7886
7889
|
});
|
|
7887
7890
|
});
|
|
7888
7891
|
} else if (newVal === true) {
|
|
7889
|
-
|
|
7892
|
+
_this4.toggleAllSelection();
|
|
7890
7893
|
}
|
|
7891
|
-
|
|
7892
|
-
}
|
|
7894
|
+
});
|
|
7893
7895
|
},
|
|
7894
7896
|
getTheads: function getTheads() {
|
|
7895
7897
|
var _this5 = this;
|
|
@@ -7958,6 +7960,9 @@ var mainvue_type_script_lang_js_components;
|
|
|
7958
7960
|
var results = _this6.parseData !== undefined ? _this6.parseData(res.results || res.data || res) : res.results || res.data;
|
|
7959
7961
|
_this6.list = results.data || results.records || results.list || [];
|
|
7960
7962
|
_this6.config.totalCount = results.count || results.total || results.totalCount;
|
|
7963
|
+
_this6.checked && _this6.$nextTick(function () {
|
|
7964
|
+
_this6.checkSelect(_this6.checked);
|
|
7965
|
+
});
|
|
7961
7966
|
} else {
|
|
7962
7967
|
_this6.list = [];
|
|
7963
7968
|
var msg = res.msg || '系统错误,请联系管理员!';
|
|
@@ -8418,8 +8423,8 @@ var mainvue_type_script_lang_js_components;
|
|
|
8418
8423
|
|
|
8419
8424
|
var data_table_src_main_component = normalizeComponent(
|
|
8420
8425
|
packages_data_table_src_mainvue_type_script_lang_js_,
|
|
8421
|
-
|
|
8422
|
-
|
|
8426
|
+
mainvue_type_template_id_59cbc514_render,
|
|
8427
|
+
mainvue_type_template_id_59cbc514_staticRenderFns,
|
|
8423
8428
|
false,
|
|
8424
8429
|
null,
|
|
8425
8430
|
null,
|
|
@@ -71417,7 +71422,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
71417
71422
|
}
|
|
71418
71423
|
|
|
71419
71424
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
71420
|
-
version: '0.4.
|
|
71425
|
+
version: '0.4.50',
|
|
71421
71426
|
install: install,
|
|
71422
71427
|
Button: packages_button,
|
|
71423
71428
|
ButtonGroup: button_group,
|