eoss-ui 0.4.84 → 0.4.85
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/button-group.js +26 -4
- package/lib/data-table.js +35 -34
- package/lib/eoss-ui.common.js +286 -195
- package/lib/form.js +150 -116
- package/lib/index.js +1 -1
- package/lib/table-form.js +60 -26
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +8 -2
- package/packages/data-table/src/main.vue +51 -47
- package/packages/form/src/main.vue +40 -24
- package/packages/form/src/table.vue +18 -7
- package/src/index.js +1 -1
package/lib/button-group.js
CHANGED
|
@@ -3394,7 +3394,7 @@ module.exports = require("qs");
|
|
|
3394
3394
|
// ESM COMPAT FLAG
|
|
3395
3395
|
__webpack_require__.r(__webpack_exports__);
|
|
3396
3396
|
|
|
3397
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=
|
|
3397
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button-group/src/main.vue?vue&type=template&id=d8f0dac2&
|
|
3398
3398
|
var render = function () {
|
|
3399
3399
|
var _vm = this
|
|
3400
3400
|
var _h = _vm.$createElement
|
|
@@ -3422,7 +3422,17 @@ var render = function () {
|
|
|
3422
3422
|
item,
|
|
3423
3423
|
false
|
|
3424
3424
|
),
|
|
3425
|
-
[
|
|
3425
|
+
[
|
|
3426
|
+
_vm._v(
|
|
3427
|
+
"\n " +
|
|
3428
|
+
_vm._s(
|
|
3429
|
+
item.template
|
|
3430
|
+
? item.template({ row: _vm.data, config: item })
|
|
3431
|
+
: item.text
|
|
3432
|
+
) +
|
|
3433
|
+
"\n "
|
|
3434
|
+
),
|
|
3435
|
+
]
|
|
3426
3436
|
)
|
|
3427
3437
|
: _vm._e(),
|
|
3428
3438
|
_vm.other.length > 0 && index == _vm.btns.length - 1
|
|
@@ -3445,7 +3455,13 @@ var render = function () {
|
|
|
3445
3455
|
{ key: index, attrs: { command: item } },
|
|
3446
3456
|
[
|
|
3447
3457
|
item.icon ? _c("i", { class: item.icon }) : _vm._e(),
|
|
3448
|
-
_vm._v(
|
|
3458
|
+
_vm._v(
|
|
3459
|
+
_vm._s(
|
|
3460
|
+
item.template
|
|
3461
|
+
? item.template({ row: _vm.data, config: item })
|
|
3462
|
+
: item.text
|
|
3463
|
+
)
|
|
3464
|
+
),
|
|
3449
3465
|
]
|
|
3450
3466
|
)
|
|
3451
3467
|
}),
|
|
@@ -3465,7 +3481,7 @@ var staticRenderFns = []
|
|
|
3465
3481
|
render._withStripped = true
|
|
3466
3482
|
|
|
3467
3483
|
|
|
3468
|
-
// CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=
|
|
3484
|
+
// CONCATENATED MODULE: ./packages/button-group/src/main.vue?vue&type=template&id=d8f0dac2&
|
|
3469
3485
|
|
|
3470
3486
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
3471
3487
|
var util = __webpack_require__(0);
|
|
@@ -3507,6 +3523,12 @@ var util = __webpack_require__(0);
|
|
|
3507
3523
|
//
|
|
3508
3524
|
//
|
|
3509
3525
|
//
|
|
3526
|
+
//
|
|
3527
|
+
//
|
|
3528
|
+
//
|
|
3529
|
+
//
|
|
3530
|
+
//
|
|
3531
|
+
//
|
|
3510
3532
|
|
|
3511
3533
|
|
|
3512
3534
|
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
package/lib/data-table.js
CHANGED
|
@@ -3455,8 +3455,8 @@ module.exports = require("vue");
|
|
|
3455
3455
|
// ESM COMPAT FLAG
|
|
3456
3456
|
__webpack_require__.r(__webpack_exports__);
|
|
3457
3457
|
|
|
3458
|
-
// 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=
|
|
3459
|
-
var
|
|
3458
|
+
// 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=7556022c&
|
|
3459
|
+
var mainvue_type_template_id_7556022c_render = function () {
|
|
3460
3460
|
var _vm = this
|
|
3461
3461
|
var _h = _vm.$createElement
|
|
3462
3462
|
var _c = _vm._self._c || _h
|
|
@@ -3792,10 +3792,10 @@ var mainvue_type_template_id_620c8a78_render = function () {
|
|
|
3792
3792
|
)
|
|
3793
3793
|
}
|
|
3794
3794
|
var staticRenderFns = []
|
|
3795
|
-
|
|
3795
|
+
mainvue_type_template_id_7556022c_render._withStripped = true
|
|
3796
3796
|
|
|
3797
3797
|
|
|
3798
|
-
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=
|
|
3798
|
+
// CONCATENATED MODULE: ./packages/data-table/src/main.vue?vue&type=template&id=7556022c&
|
|
3799
3799
|
|
|
3800
3800
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
3801
3801
|
var api = __webpack_require__(1);
|
|
@@ -7228,37 +7228,38 @@ var mainvue_type_script_lang_js_components;
|
|
|
7228
7228
|
resetHeight: function resetHeight(warn) {
|
|
7229
7229
|
var _this9 = this;
|
|
7230
7230
|
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7231
|
+
this.$nextTick(function () {
|
|
7232
|
+
if (_this9.full && !_this9.height && !_this9.maxHeight) {
|
|
7233
|
+
var height = _this9.$el.parentNode.offsetHeight;
|
|
7234
|
+
if (height) {
|
|
7235
|
+
height = parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'height', '%'), 10);
|
|
7236
|
+
height = (height == NaN ? 0 : height) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-top'), 10) - parseInt(util["a" /* default */].getStyle(_this9.$el.parentNode, 'padding-bottom'), 10);
|
|
7237
|
+
for (var i = 0; i < _this9.$el.parentNode.childNodes.length; i++) {
|
|
7238
|
+
var ele = _this9.$el.parentNode.childNodes[i];
|
|
7239
|
+
if (ele !== _this9.$el && ele.offsetHeight !== undefined) {
|
|
7240
|
+
height = height - ele.offsetHeight - parseInt(util["a" /* default */].getStyle(ele, 'margin-top'), 10) - parseInt(util["a" /* default */].getStyle(ele, 'margin-bottom'), 10);
|
|
7241
|
+
}
|
|
7242
|
+
}
|
|
7243
|
+
height -= _this9.showToolbar ? 45 : 0;
|
|
7244
|
+
height -= _this9.page === false ? 0 : 46;
|
|
7245
|
+
height -= _this9.title ? _this9.$refs.title.offsetHeight : 0;
|
|
7246
|
+
height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-top'), 10);
|
|
7247
|
+
height -= parseInt(util["a" /* default */].getStyle(_this9.$refs.esTableContent, 'padding-bottom'), 10);
|
|
7248
|
+
var emptyText = _this9.$refs.esTableContent.querySelector('.el-table__empty-text');
|
|
7249
|
+
var eht = 0;
|
|
7250
|
+
if (emptyText) {
|
|
7251
|
+
eht = emptyText.offsetHeight;
|
|
7252
|
+
var thead = _this9.$refs.esTableContent.querySelector('.el-table__header');
|
|
7253
|
+
thead && (eht += thead.offsetHeight);
|
|
7254
|
+
}
|
|
7255
|
+
if (height > 1 && height - eht > 1) {
|
|
7256
|
+
_this9.tableHeight = height;
|
|
7257
|
+
} else {
|
|
7258
|
+
console.warn(_this9.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
|
|
7259
|
+
}
|
|
7238
7260
|
}
|
|
7239
7261
|
}
|
|
7240
|
-
|
|
7241
|
-
height -= this.page === false ? 0 : 46;
|
|
7242
|
-
height -= this.title ? this.$refs.title.offsetHeight : 0;
|
|
7243
|
-
height -= parseInt(util["a" /* default */].getStyle(this.$refs.esTableContent, 'padding-top'), 10);
|
|
7244
|
-
height -= parseInt(util["a" /* default */].getStyle(this.$refs.esTableContent, 'padding-bottom'), 10);
|
|
7245
|
-
var emptyText = this.$refs.esTableContent.querySelector('.el-table__empty-text');
|
|
7246
|
-
var eht = 0;
|
|
7247
|
-
if (emptyText) {
|
|
7248
|
-
eht = emptyText.offsetHeight;
|
|
7249
|
-
var thead = this.$refs.esTableContent.querySelector('.el-table__header');
|
|
7250
|
-
thead && (eht += thead.offsetHeight);
|
|
7251
|
-
}
|
|
7252
|
-
if (height > 1 && height - eht > 1) {
|
|
7253
|
-
this.tableHeight = height;
|
|
7254
|
-
} else if (warn) {
|
|
7255
|
-
console.warn(this.$el.parentNode, '\u83B7\u53D6\u4E0D\u5230\u9AD8\u5EA6\uFF01');
|
|
7256
|
-
} else {
|
|
7257
|
-
this.$nextTick(function () {
|
|
7258
|
-
_this9.resetHeight(true);
|
|
7259
|
-
});
|
|
7260
|
-
}
|
|
7261
|
-
}
|
|
7262
|
+
});
|
|
7262
7263
|
},
|
|
7263
7264
|
validate: function validate(callback) {
|
|
7264
7265
|
var form = this.elForm || this.$refs.esTableForm;
|
|
@@ -7304,7 +7305,7 @@ var mainvue_type_script_lang_js_components;
|
|
|
7304
7305
|
|
|
7305
7306
|
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
7306
7307
|
src_mainvue_type_script_lang_js_,
|
|
7307
|
-
|
|
7308
|
+
mainvue_type_template_id_7556022c_render,
|
|
7308
7309
|
staticRenderFns,
|
|
7309
7310
|
false,
|
|
7310
7311
|
null,
|