vxe-table 3.5.9-beta.13 → 3.5.9-beta.16
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/form/src/form-config-item.js +5 -3
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +4 -2
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +4 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/grid/src/grid.js +3 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/style/style.css +0 -100
- package/lib/header/style/style.min.css +0 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +48 -26
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +9 -7
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -2
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/select/src/select.js +3 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +14 -8
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +3 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +101 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/style/style.css +1 -1
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/vn.js +18 -0
- package/lib/tools/vn.min.js +1 -0
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +1 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/form/src/form-config-item.js +4 -3
- package/packages/form/src/form-item.js +3 -2
- package/packages/form/src/form.js +3 -1
- package/packages/grid/src/grid.js +2 -1
- package/packages/modal/src/modal.js +5 -4
- package/packages/select/src/select.js +2 -1
- package/packages/table/src/cell.js +9 -5
- package/packages/table/src/methods.js +2 -1
- package/packages/tools/vn.js +8 -0
- package/styles/header.scss +0 -134
- package/styles/table.scss +134 -0
- package/styles/variable.scss +1 -1
- package/types/column.d.ts +8 -8
- package/types/component.d.ts +3 -1
package/lib/index.umd.js
CHANGED
|
@@ -8808,7 +8808,7 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
8808
8808
|
|
|
8809
8809
|
|
|
8810
8810
|
function getLog(message, params) {
|
|
8811
|
-
return "[vxe-table v".concat("3.5.9-beta.
|
|
8811
|
+
return "[vxe-table v".concat("3.5.9-beta.16", "] ").concat(src_conf.i18n(message, params));
|
|
8812
8812
|
}
|
|
8813
8813
|
|
|
8814
8814
|
function outLog(type) {
|
|
@@ -10089,7 +10089,7 @@ function _t(key, args) {
|
|
|
10089
10089
|
var v = 'v3';
|
|
10090
10090
|
var VXETable = {
|
|
10091
10091
|
v: v,
|
|
10092
|
-
version: "3.5.9-beta.
|
|
10092
|
+
version: "3.5.9-beta.16",
|
|
10093
10093
|
reg: reg,
|
|
10094
10094
|
use: use,
|
|
10095
10095
|
setup: setup,
|
|
@@ -12494,6 +12494,15 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
12494
12494
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
12495
12495
|
var es_promise_finally = __webpack_require__("a79d");
|
|
12496
12496
|
|
|
12497
|
+
// CONCATENATED MODULE: ./packages/tools/vn.js
|
|
12498
|
+
|
|
12499
|
+
function getSlotVNs(vns) {
|
|
12500
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(vns)) {
|
|
12501
|
+
return vns;
|
|
12502
|
+
}
|
|
12503
|
+
|
|
12504
|
+
return [vns];
|
|
12505
|
+
}
|
|
12497
12506
|
// CONCATENATED MODULE: ./packages/table/src/cell.js
|
|
12498
12507
|
|
|
12499
12508
|
|
|
@@ -12506,6 +12515,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
12506
12515
|
|
|
12507
12516
|
|
|
12508
12517
|
|
|
12518
|
+
|
|
12509
12519
|
function renderHelpIcon(h, params) {
|
|
12510
12520
|
var $table = params.$table,
|
|
12511
12521
|
column = params.column;
|
|
@@ -12592,7 +12602,7 @@ function getFooterContent(h, params) {
|
|
|
12592
12602
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12593
12603
|
|
|
12594
12604
|
if (compConf && compConf.renderFooter) {
|
|
12595
|
-
return compConf.renderFooter.call($table, h, renderOpts, params);
|
|
12605
|
+
return getSlotVNs(compConf.renderFooter.call($table, h, renderOpts, params));
|
|
12596
12606
|
}
|
|
12597
12607
|
}
|
|
12598
12608
|
|
|
@@ -12693,7 +12703,7 @@ var Cell = {
|
|
|
12693
12703
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12694
12704
|
|
|
12695
12705
|
if (compConf && compConf.renderHeader) {
|
|
12696
|
-
return renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params));
|
|
12706
|
+
return getSlotVNs(renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params)));
|
|
12697
12707
|
}
|
|
12698
12708
|
}
|
|
12699
12709
|
|
|
@@ -12720,9 +12730,9 @@ var Cell = {
|
|
|
12720
12730
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12721
12731
|
|
|
12722
12732
|
if (compConf && compConf[funName]) {
|
|
12723
|
-
return compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12733
|
+
return getSlotVNs(compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12724
12734
|
$type: editRender ? 'edit' : 'cell'
|
|
12725
|
-
}, params));
|
|
12735
|
+
}, params)));
|
|
12726
12736
|
}
|
|
12727
12737
|
}
|
|
12728
12738
|
|
|
@@ -13221,7 +13231,7 @@ var Cell = {
|
|
|
13221
13231
|
var compConf = v_x_e_table.renderer.get(contentRender.name);
|
|
13222
13232
|
|
|
13223
13233
|
if (compConf && compConf.renderExpand) {
|
|
13224
|
-
return compConf.renderExpand.call($table, h, contentRender, params);
|
|
13234
|
+
return getSlotVNs(compConf.renderExpand.call($table, h, contentRender, params));
|
|
13225
13235
|
}
|
|
13226
13236
|
}
|
|
13227
13237
|
|
|
@@ -13398,9 +13408,13 @@ var Cell = {
|
|
|
13398
13408
|
return $table.callSlot(slots.edit, params, h);
|
|
13399
13409
|
}
|
|
13400
13410
|
|
|
13401
|
-
|
|
13402
|
-
$
|
|
13403
|
-
|
|
13411
|
+
if (compConf && compConf.renderEdit) {
|
|
13412
|
+
return getSlotVNs(compConf.renderEdit.call($table, h, editRender, Object.assign({
|
|
13413
|
+
$type: 'edit'
|
|
13414
|
+
}, params)));
|
|
13415
|
+
}
|
|
13416
|
+
|
|
13417
|
+
return [];
|
|
13404
13418
|
}
|
|
13405
13419
|
|
|
13406
13420
|
if (slots && slots.default) {
|
|
@@ -13452,6 +13466,7 @@ var Cell = {
|
|
|
13452
13466
|
|
|
13453
13467
|
|
|
13454
13468
|
|
|
13469
|
+
|
|
13455
13470
|
|
|
13456
13471
|
|
|
13457
13472
|
var methods_setCellValue = utils.setCellValue,
|
|
@@ -13773,7 +13788,7 @@ var Methods = {
|
|
|
13773
13788
|
}
|
|
13774
13789
|
|
|
13775
13790
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
13776
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
13791
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
13777
13792
|
}
|
|
13778
13793
|
}
|
|
13779
13794
|
|
|
@@ -23244,6 +23259,7 @@ function _slicedToArray(arr, i) {
|
|
|
23244
23259
|
|
|
23245
23260
|
|
|
23246
23261
|
|
|
23262
|
+
|
|
23247
23263
|
|
|
23248
23264
|
var allActivedModals = [];
|
|
23249
23265
|
var msgQueue = [];
|
|
@@ -23578,11 +23594,11 @@ var msgQueue = [];
|
|
|
23578
23594
|
'is--ellipsis': !isMsg && showTitleOverflow
|
|
23579
23595
|
}],
|
|
23580
23596
|
on: headerOns
|
|
23581
|
-
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : headerSlot.call(this, {
|
|
23597
|
+
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(headerSlot.call(this, {
|
|
23582
23598
|
$modal: this
|
|
23583
|
-
}, h) : [titleSlot ? titleSlot.call(this, {
|
|
23599
|
+
}, h)) : [titleSlot ? getSlotVNs(titleSlot.call(this, {
|
|
23584
23600
|
$modal: this
|
|
23585
|
-
}, h) : h('span', {
|
|
23601
|
+
}, h)) : h('span', {
|
|
23586
23602
|
class: 'vxe-modal--title'
|
|
23587
23603
|
}, title ? getFuncText(title) : src_conf.i18n('vxe.alert.title')), showZoom ? h('i', {
|
|
23588
23604
|
class: ['vxe-modal--zoom-btn', 'trigger--btn', zoomLocat ? src_conf.icon.MODAL_ZOOM_OUT : src_conf.icon.MODAL_ZOOM_IN],
|
|
@@ -23608,9 +23624,9 @@ var msgQueue = [];
|
|
|
23608
23624
|
class: ['vxe-modal--status-icon', iconStatus || src_conf.icon["MODAL_".concat(status).toLocaleUpperCase()]]
|
|
23609
23625
|
})]) : null, h('div', {
|
|
23610
23626
|
class: 'vxe-modal--content'
|
|
23611
|
-
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : defaultSlot.call(this, {
|
|
23627
|
+
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(defaultSlot.call(this, {
|
|
23612
23628
|
$modal: this
|
|
23613
|
-
}, h) : getFuncText(content)),
|
|
23629
|
+
}, h)) : getFuncText(content)),
|
|
23614
23630
|
/**
|
|
23615
23631
|
* 加载中
|
|
23616
23632
|
*/
|
|
@@ -23621,9 +23637,9 @@ var msgQueue = [];
|
|
|
23621
23637
|
}
|
|
23622
23638
|
}) : null]), showFooter ? h('div', {
|
|
23623
23639
|
class: 'vxe-modal--footer'
|
|
23624
|
-
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : footerSlot.call(this, {
|
|
23640
|
+
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(footerSlot.call(this, {
|
|
23625
23641
|
$modal: this
|
|
23626
|
-
}, h) : [type === 'confirm' ? h('vxe-button', {
|
|
23642
|
+
}, h)) : [type === 'confirm' ? h('vxe-button', {
|
|
23627
23643
|
ref: 'cancelBtn',
|
|
23628
23644
|
on: {
|
|
23629
23645
|
click: this.cancelEvent
|
|
@@ -27272,6 +27288,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
27272
27288
|
|
|
27273
27289
|
|
|
27274
27290
|
|
|
27291
|
+
|
|
27275
27292
|
|
|
27276
27293
|
function isOptionVisible(option) {
|
|
27277
27294
|
return option.visible !== false;
|
|
@@ -27830,7 +27847,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27830
27847
|
}
|
|
27831
27848
|
|
|
27832
27849
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
27833
|
-
return slotFunc.call(this, params, h);
|
|
27850
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
27834
27851
|
}
|
|
27835
27852
|
}
|
|
27836
27853
|
|
|
@@ -32722,6 +32739,7 @@ var Colgroup = Object.assign(src_group, {
|
|
|
32722
32739
|
|
|
32723
32740
|
|
|
32724
32741
|
|
|
32742
|
+
|
|
32725
32743
|
|
|
32726
32744
|
|
|
32727
32745
|
var grid_methods = {};
|
|
@@ -33137,7 +33155,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33137
33155
|
}
|
|
33138
33156
|
|
|
33139
33157
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
33140
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
33158
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
33141
33159
|
}
|
|
33142
33160
|
}
|
|
33143
33161
|
|
|
@@ -37027,6 +37045,7 @@ function renderTitle(h, _vm, item) {
|
|
|
37027
37045
|
|
|
37028
37046
|
|
|
37029
37047
|
|
|
37048
|
+
|
|
37030
37049
|
/**
|
|
37031
37050
|
* 配置式项
|
|
37032
37051
|
*/
|
|
@@ -37130,9 +37149,9 @@ var VxeFormConfigItem = {
|
|
|
37130
37149
|
if (slots && slots.default) {
|
|
37131
37150
|
contentVNs = $xeform.callSlot(slots.default, params, h);
|
|
37132
37151
|
} else if (compConf && compConf.renderItemContent) {
|
|
37133
|
-
contentVNs = compConf.renderItemContent.call($xeform, h, itemRender, params);
|
|
37152
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call($xeform, h, itemRender, params));
|
|
37134
37153
|
} else if (compConf && compConf.renderItem) {
|
|
37135
|
-
contentVNs = compConf.renderItem.call($xeform, h, itemRender, params);
|
|
37154
|
+
contentVNs = getSlotVNs(compConf.renderItem.call($xeform, h, itemRender, params));
|
|
37136
37155
|
} else if (field) {
|
|
37137
37156
|
contentVNs = [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(data, field))];
|
|
37138
37157
|
}
|
|
@@ -37150,7 +37169,7 @@ var VxeFormConfigItem = {
|
|
|
37150
37169
|
'is--asterisk': titleAsterisk,
|
|
37151
37170
|
'is--required': isRequired,
|
|
37152
37171
|
'is--hidden': folding && collapseAll,
|
|
37153
|
-
'is--active': isActivetem(
|
|
37172
|
+
'is--active': isActivetem($xeform, item),
|
|
37154
37173
|
'is--error': showError
|
|
37155
37174
|
}],
|
|
37156
37175
|
props: {
|
|
@@ -37219,6 +37238,7 @@ var VxeFormConfigItem = {
|
|
|
37219
37238
|
|
|
37220
37239
|
|
|
37221
37240
|
|
|
37241
|
+
|
|
37222
37242
|
|
|
37223
37243
|
|
|
37224
37244
|
var form_Rule = /*#__PURE__*/function () {
|
|
@@ -37348,6 +37368,7 @@ function getResetValue(value, resetValue) {
|
|
|
37348
37368
|
default: null
|
|
37349
37369
|
},
|
|
37350
37370
|
className: [String, Function],
|
|
37371
|
+
readonly: Boolean,
|
|
37351
37372
|
items: Array,
|
|
37352
37373
|
rules: Object,
|
|
37353
37374
|
preventSubmit: {
|
|
@@ -37480,7 +37501,7 @@ function getResetValue(value, resetValue) {
|
|
|
37480
37501
|
}
|
|
37481
37502
|
|
|
37482
37503
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
37483
|
-
return slotFunc.call(this, params, h);
|
|
37504
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
37484
37505
|
}
|
|
37485
37506
|
}
|
|
37486
37507
|
|
|
@@ -37949,6 +37970,7 @@ var Form = Object.assign(src_form, {
|
|
|
37949
37970
|
|
|
37950
37971
|
|
|
37951
37972
|
|
|
37973
|
+
|
|
37952
37974
|
var form_item_props = {
|
|
37953
37975
|
title: String,
|
|
37954
37976
|
field: String,
|
|
@@ -38047,9 +38069,9 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38047
38069
|
if (slots && slots.default) {
|
|
38048
38070
|
contentVNs = _vm.callSlot(slots.default, params, h);
|
|
38049
38071
|
} else if (compConf && compConf.renderItemContent) {
|
|
38050
|
-
contentVNs = compConf.renderItemContent.call(_vm, h, itemRender, params);
|
|
38072
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call(_vm, h, itemRender, params));
|
|
38051
38073
|
} else if (compConf && compConf.renderItem) {
|
|
38052
|
-
contentVNs = compConf.renderItem.call(_vm, h, itemRender, params);
|
|
38074
|
+
contentVNs = getSlotVNs(compConf.renderItem.call(_vm, h, itemRender, params));
|
|
38053
38075
|
} else if (field) {
|
|
38054
38076
|
contentVNs = ["".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(data, field))];
|
|
38055
38077
|
}
|