eoss-ui 0.4.49 → 0.4.51
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 +29 -21
- package/lib/index.js +1 -1
- package/lib/table-form.js +8 -5
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/package.json +1 -1
- package/packages/data-table/src/main.vue +11 -5
- package/packages/form/src/table.vue +2 -1
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/form.scss +6 -130
- package/src/index.js +1 -1
- package/CHANGELOG.md +0 -929
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,
|
|
@@ -65749,8 +65754,8 @@ toolbar_src_main.install = function (Vue) {
|
|
|
65749
65754
|
};
|
|
65750
65755
|
|
|
65751
65756
|
/* harmony default export */ var packages_toolbar = (toolbar_src_main);
|
|
65752
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=
|
|
65753
|
-
var
|
|
65757
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=44894e1e&
|
|
65758
|
+
var tablevue_type_template_id_44894e1e_render = function () {
|
|
65754
65759
|
var _vm = this
|
|
65755
65760
|
var _h = _vm.$createElement
|
|
65756
65761
|
var _c = _vm._self._c || _h
|
|
@@ -65955,6 +65960,8 @@ var tablevue_type_template_id_d04e82f8_render = function () {
|
|
|
65955
65960
|
item.type === "label" ||
|
|
65956
65961
|
item.type === "empty"
|
|
65957
65962
|
? "es-table-form-label"
|
|
65963
|
+
: item.disabled
|
|
65964
|
+
? "es-table-form-item td-disabled"
|
|
65958
65965
|
: "es-table-form-item",
|
|
65959
65966
|
attrs: {
|
|
65960
65967
|
align:
|
|
@@ -68284,11 +68291,11 @@ var tablevue_type_template_id_d04e82f8_render = function () {
|
|
|
68284
68291
|
2
|
|
68285
68292
|
)
|
|
68286
68293
|
}
|
|
68287
|
-
var
|
|
68288
|
-
|
|
68294
|
+
var tablevue_type_template_id_44894e1e_staticRenderFns = []
|
|
68295
|
+
tablevue_type_template_id_44894e1e_render._withStripped = true
|
|
68289
68296
|
|
|
68290
68297
|
|
|
68291
|
-
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=
|
|
68298
|
+
// CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=44894e1e&
|
|
68292
68299
|
|
|
68293
68300
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=script&lang=js&
|
|
68294
68301
|
//
|
|
@@ -69279,6 +69286,7 @@ tablevue_type_template_id_d04e82f8_render._withStripped = true
|
|
|
69279
69286
|
render: [Function, String]
|
|
69280
69287
|
},
|
|
69281
69288
|
render: function render(h, ctx) {
|
|
69289
|
+
console.log('ctx', ctx);
|
|
69282
69290
|
if (typeof ctx.props.render == 'string') {
|
|
69283
69291
|
try {
|
|
69284
69292
|
return utils_util["a" /* default */].toFunction(ctx.props.render)(h, params);
|
|
@@ -69554,8 +69562,8 @@ tablevue_type_template_id_d04e82f8_render._withStripped = true
|
|
|
69554
69562
|
|
|
69555
69563
|
var form_src_table_component = normalizeComponent(
|
|
69556
69564
|
packages_form_src_tablevue_type_script_lang_js_,
|
|
69557
|
-
|
|
69558
|
-
|
|
69565
|
+
tablevue_type_template_id_44894e1e_render,
|
|
69566
|
+
tablevue_type_template_id_44894e1e_staticRenderFns,
|
|
69559
69567
|
false,
|
|
69560
69568
|
null,
|
|
69561
69569
|
null,
|
|
@@ -71417,7 +71425,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
71417
71425
|
}
|
|
71418
71426
|
|
|
71419
71427
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
71420
|
-
version: '0.4.
|
|
71428
|
+
version: '0.4.51',
|
|
71421
71429
|
install: install,
|
|
71422
71430
|
Button: packages_button,
|
|
71423
71431
|
ButtonGroup: button_group,
|