vxe-table 3.5.9-beta.9 → 3.5.9
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/src/button.js +5 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/edit/src/mixin.js +12 -8
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +2 -1
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/form/src/form-config-item.js +9 -13
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +1 -3
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +12 -13
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +6 -3
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/util.js +41 -0
- package/lib/form/src/util.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/src/header.js +9 -2
- package/lib/header/src/header.min.js +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 +471 -387
- 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 +24 -4
- 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/src/store.js +10 -5
- package/lib/v-x-e-table/src/store.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/button/src/button.js +7 -1
- package/packages/edit/src/mixin.js +10 -7
- package/packages/filter/src/panel.js +1 -1
- package/packages/form/src/form-config-item.js +8 -12
- package/packages/form/src/form-gather.js +1 -3
- package/packages/form/src/form-item.js +12 -14
- package/packages/form/src/form.js +6 -4
- package/packages/form/src/util.js +23 -0
- package/packages/grid/src/grid.js +2 -1
- package/packages/header/src/header.js +3 -2
- 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 +17 -4
- package/packages/tools/vn.js +8 -0
- package/packages/v-x-e-table/src/store.js +8 -4
- 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/types/v-x-e-table/renderer.d.ts +2 -1
package/lib/index.umd.js
CHANGED
|
@@ -8448,7 +8448,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
8448
8448
|
}
|
|
8449
8449
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/conf.js
|
|
8450
8450
|
var iconPrefix = 'vxe-icon--';
|
|
8451
|
-
/* harmony default export */ var
|
|
8451
|
+
/* harmony default export */ var src_conf = ({
|
|
8452
8452
|
size: null,
|
|
8453
8453
|
// 全局尺寸
|
|
8454
8454
|
zIndex: 999,
|
|
@@ -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
|
|
8811
|
+
return "[vxe-table v".concat("3.5.9", "] ").concat(src_conf.i18n(message, params));
|
|
8812
8812
|
}
|
|
8813
8813
|
|
|
8814
8814
|
function outLog(type) {
|
|
@@ -9013,7 +9013,7 @@ function eqEmptyValue(cellValue) {
|
|
|
9013
9013
|
return cellValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(cellValue);
|
|
9014
9014
|
}
|
|
9015
9015
|
function getFuncText(content) {
|
|
9016
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(content) ? content() :
|
|
9016
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(content) ? content() : src_conf.translate ? src_conf.translate(content) : content;
|
|
9017
9017
|
} // 获取所有的列,排除分组
|
|
9018
9018
|
|
|
9019
9019
|
function getColumnList(columns) {
|
|
@@ -9025,7 +9025,7 @@ function getColumnList(columns) {
|
|
|
9025
9025
|
}
|
|
9026
9026
|
var UtilTools = {
|
|
9027
9027
|
nextZIndex: function nextZIndex() {
|
|
9028
|
-
lastZindex =
|
|
9028
|
+
lastZindex = src_conf.zIndex + zindexIndex++;
|
|
9029
9029
|
return lastZindex;
|
|
9030
9030
|
},
|
|
9031
9031
|
getLastZIndex: function getLastZIndex() {
|
|
@@ -9036,7 +9036,7 @@ var UtilTools = {
|
|
|
9036
9036
|
return property ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(property) ? property(params) : property : '';
|
|
9037
9037
|
},
|
|
9038
9038
|
formatText: function formatText(value, placeholder) {
|
|
9039
|
-
return '' + (value === '' || value === null || value === undefined ? placeholder ?
|
|
9039
|
+
return '' + (value === '' || value === null || value === undefined ? placeholder ? src_conf.emptyCell : '' : value);
|
|
9040
9040
|
},
|
|
9041
9041
|
getCellValue: function getCellValue(row, column) {
|
|
9042
9042
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, column.field);
|
|
@@ -9142,7 +9142,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
9142
9142
|
}
|
|
9143
9143
|
|
|
9144
9144
|
function getLabelFormatDate(value, props) {
|
|
9145
|
-
return getFormatDate(value, props,
|
|
9145
|
+
return getFormatDate(value, props, src_conf.i18n("vxe.input.date.labelFormat.".concat(props.type)));
|
|
9146
9146
|
}
|
|
9147
9147
|
|
|
9148
9148
|
function getDefaultComponentName(_ref) {
|
|
@@ -9759,7 +9759,7 @@ var renderMap = {
|
|
|
9759
9759
|
props = _renderOpts$props2 === void 0 ? {} : _renderOpts$props2;
|
|
9760
9760
|
var row = params.row,
|
|
9761
9761
|
column = params.column;
|
|
9762
|
-
var digits = props.digits ||
|
|
9762
|
+
var digits = props.digits || src_conf.input.digits;
|
|
9763
9763
|
var cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, column.property);
|
|
9764
9764
|
|
|
9765
9765
|
if (cellValue) {
|
|
@@ -9897,12 +9897,23 @@ var renderer = {
|
|
|
9897
9897
|
return renderer;
|
|
9898
9898
|
}
|
|
9899
9899
|
};
|
|
9900
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
9901
|
+
var es_array_includes = __webpack_require__("caad");
|
|
9902
|
+
|
|
9903
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
9904
|
+
var es_string_includes = __webpack_require__("2532");
|
|
9905
|
+
|
|
9900
9906
|
// CONCATENATED MODULE: ./packages/v-x-e-table/src/store.js
|
|
9901
9907
|
|
|
9902
9908
|
|
|
9903
9909
|
|
|
9904
9910
|
|
|
9905
9911
|
|
|
9912
|
+
|
|
9913
|
+
|
|
9914
|
+
|
|
9915
|
+
|
|
9916
|
+
|
|
9906
9917
|
/**
|
|
9907
9918
|
* 创建数据仓库
|
|
9908
9919
|
*/
|
|
@@ -9928,10 +9939,11 @@ var store_Store = /*#__PURE__*/function () {
|
|
|
9928
9939
|
}, {
|
|
9929
9940
|
key: "add",
|
|
9930
9941
|
value: function add(name, render) {
|
|
9931
|
-
// 检测是否覆盖
|
|
9932
|
-
|
|
9942
|
+
var conf = this.store[name]; // 检测是否覆盖
|
|
9943
|
+
|
|
9944
|
+
if (false) { var confKeys; }
|
|
9933
9945
|
|
|
9934
|
-
this.store[name] = render;
|
|
9946
|
+
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.merge(conf, render) : render;
|
|
9935
9947
|
return Store;
|
|
9936
9948
|
}
|
|
9937
9949
|
}, {
|
|
@@ -9972,7 +9984,7 @@ if (false) {}
|
|
|
9972
9984
|
*/
|
|
9973
9985
|
|
|
9974
9986
|
function setup(options) {
|
|
9975
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.merge(
|
|
9987
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.merge(src_conf, options);
|
|
9976
9988
|
}
|
|
9977
9989
|
// CONCATENATED MODULE: ./packages/v-x-e-table/index.js
|
|
9978
9990
|
|
|
@@ -10051,7 +10063,7 @@ var v_x_e_table_VXETableConfig = /*#__PURE__*/function () {
|
|
|
10051
10063
|
}, {
|
|
10052
10064
|
key: "exportTypes",
|
|
10053
10065
|
get: function get() {
|
|
10054
|
-
return getExportOrImpotType(
|
|
10066
|
+
return getExportOrImpotType(src_conf.export.types, 1);
|
|
10055
10067
|
}
|
|
10056
10068
|
/**
|
|
10057
10069
|
* 获取所有导入类型
|
|
@@ -10060,7 +10072,7 @@ var v_x_e_table_VXETableConfig = /*#__PURE__*/function () {
|
|
|
10060
10072
|
}, {
|
|
10061
10073
|
key: "importTypes",
|
|
10062
10074
|
get: function get() {
|
|
10063
|
-
return getExportOrImpotType(
|
|
10075
|
+
return getExportOrImpotType(src_conf.export.types, 2);
|
|
10064
10076
|
}
|
|
10065
10077
|
}]);
|
|
10066
10078
|
|
|
@@ -10069,15 +10081,15 @@ var v_x_e_table_VXETableConfig = /*#__PURE__*/function () {
|
|
|
10069
10081
|
|
|
10070
10082
|
var v_x_e_table_config = new v_x_e_table_VXETableConfig();
|
|
10071
10083
|
function t(key, args) {
|
|
10072
|
-
return
|
|
10084
|
+
return src_conf.i18n(key, args);
|
|
10073
10085
|
}
|
|
10074
10086
|
function _t(key, args) {
|
|
10075
|
-
return key ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(
|
|
10087
|
+
return key ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toValueString(src_conf.translate ? src_conf.translate(key, args) : key) : '';
|
|
10076
10088
|
}
|
|
10077
10089
|
var v = 'v3';
|
|
10078
10090
|
var VXETable = {
|
|
10079
10091
|
v: v,
|
|
10080
|
-
version: "3.5.9
|
|
10092
|
+
version: "3.5.9",
|
|
10081
10093
|
reg: reg,
|
|
10082
10094
|
use: use,
|
|
10083
10095
|
setup: setup,
|
|
@@ -10167,12 +10179,6 @@ var es_number_constructor = __webpack_require__("a9e3");
|
|
|
10167
10179
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
|
|
10168
10180
|
var es_map = __webpack_require__("4ec9");
|
|
10169
10181
|
|
|
10170
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
10171
|
-
var es_array_includes = __webpack_require__("caad");
|
|
10172
|
-
|
|
10173
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
10174
|
-
var es_string_includes = __webpack_require__("2532");
|
|
10175
|
-
|
|
10176
10182
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
|
|
10177
10183
|
var es_string_fixed = __webpack_require__("c7cd");
|
|
10178
10184
|
|
|
@@ -10292,7 +10298,7 @@ var columnInfo_ColumnInfo = /*#__PURE__*/function () {
|
|
|
10292
10298
|
_createClass(ColumnInfo, [{
|
|
10293
10299
|
key: "getTitle",
|
|
10294
10300
|
value: function getTitle() {
|
|
10295
|
-
return getFuncText(this.title || (this.type === 'seq' ?
|
|
10301
|
+
return getFuncText(this.title || (this.type === 'seq' ? src_conf.i18n('vxe.table.seqTitle') : ''));
|
|
10296
10302
|
}
|
|
10297
10303
|
}, {
|
|
10298
10304
|
key: "getKey",
|
|
@@ -11516,7 +11522,7 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
|
|
|
11516
11522
|
$table: $xetable
|
|
11517
11523
|
});
|
|
11518
11524
|
} else {
|
|
11519
|
-
emptyContent = $xetable.emptyText ||
|
|
11525
|
+
emptyContent = $xetable.emptyText || src_conf.i18n('vxe.table.emptyText');
|
|
11520
11526
|
}
|
|
11521
11527
|
}
|
|
11522
11528
|
|
|
@@ -11900,6 +11906,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
11900
11906
|
|
|
11901
11907
|
|
|
11902
11908
|
|
|
11909
|
+
|
|
11903
11910
|
var cellType = 'header';
|
|
11904
11911
|
/* harmony default export */ var header = ({
|
|
11905
11912
|
name: 'VxeTableHeader',
|
|
@@ -12233,7 +12240,8 @@ var cellType = 'header';
|
|
|
12233
12240
|
document.onmouseup = function (evnt) {
|
|
12234
12241
|
document.onmousemove = domMousemove;
|
|
12235
12242
|
document.onmouseup = domMouseup;
|
|
12236
|
-
|
|
12243
|
+
var resizeWidth = column.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft);
|
|
12244
|
+
column.resizeWidth = resizeWidth;
|
|
12237
12245
|
resizeBarElem.style.display = 'none';
|
|
12238
12246
|
$xetable._isResize = false;
|
|
12239
12247
|
$xetable._lastResizeTime = Date.now();
|
|
@@ -12241,7 +12249,9 @@ var cellType = 'header';
|
|
|
12241
12249
|
$xetable.recalculate(true).then(function () {
|
|
12242
12250
|
$xetable.saveCustomResizable();
|
|
12243
12251
|
$xetable.updateCellAreas();
|
|
12244
|
-
$xetable.emitEvent('resizable-change', params,
|
|
12252
|
+
$xetable.emitEvent('resizable-change', _objectSpread2(_objectSpread2({}, params), {}, {
|
|
12253
|
+
resizeWidth: resizeWidth
|
|
12254
|
+
}), evnt);
|
|
12245
12255
|
});
|
|
12246
12256
|
dom.removeClass($xetable.$el, 'drag--resize');
|
|
12247
12257
|
};
|
|
@@ -12313,7 +12323,7 @@ function eventHandle() {
|
|
|
12313
12323
|
|
|
12314
12324
|
function eventListener() {
|
|
12315
12325
|
clearTimeout(resizeTimeout);
|
|
12316
|
-
resizeTimeout = setTimeout(eventHandle,
|
|
12326
|
+
resizeTimeout = setTimeout(eventHandle, src_conf.resizeInterval || defaultInterval);
|
|
12317
12327
|
}
|
|
12318
12328
|
|
|
12319
12329
|
var resize_ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
@@ -12484,6 +12494,15 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
12484
12494
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
12485
12495
|
var es_promise_finally = __webpack_require__("a79d");
|
|
12486
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
|
+
}
|
|
12487
12506
|
// CONCATENATED MODULE: ./packages/table/src/cell.js
|
|
12488
12507
|
|
|
12489
12508
|
|
|
@@ -12496,12 +12515,13 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
12496
12515
|
|
|
12497
12516
|
|
|
12498
12517
|
|
|
12518
|
+
|
|
12499
12519
|
function renderHelpIcon(h, params) {
|
|
12500
12520
|
var $table = params.$table,
|
|
12501
12521
|
column = params.column;
|
|
12502
12522
|
var titlePrefix = column.titlePrefix || column.titleHelp;
|
|
12503
12523
|
return titlePrefix ? [h('i', {
|
|
12504
|
-
class: ['vxe-cell-help-icon', titlePrefix.icon ||
|
|
12524
|
+
class: ['vxe-cell-help-icon', titlePrefix.icon || src_conf.icon.TABLE_HELP],
|
|
12505
12525
|
on: {
|
|
12506
12526
|
mouseenter: function mouseenter(evnt) {
|
|
12507
12527
|
$table.triggerHeaderHelpEvent(evnt, params);
|
|
@@ -12582,7 +12602,7 @@ function getFooterContent(h, params) {
|
|
|
12582
12602
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12583
12603
|
|
|
12584
12604
|
if (compConf && compConf.renderFooter) {
|
|
12585
|
-
return compConf.renderFooter.call($table, h, renderOpts, params);
|
|
12605
|
+
return getSlotVNs(compConf.renderFooter.call($table, h, renderOpts, params));
|
|
12586
12606
|
}
|
|
12587
12607
|
}
|
|
12588
12608
|
|
|
@@ -12683,7 +12703,7 @@ var Cell = {
|
|
|
12683
12703
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12684
12704
|
|
|
12685
12705
|
if (compConf && compConf.renderHeader) {
|
|
12686
|
-
return renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params));
|
|
12706
|
+
return getSlotVNs(renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params)));
|
|
12687
12707
|
}
|
|
12688
12708
|
}
|
|
12689
12709
|
|
|
@@ -12710,9 +12730,9 @@ var Cell = {
|
|
|
12710
12730
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12711
12731
|
|
|
12712
12732
|
if (compConf && compConf[funName]) {
|
|
12713
|
-
return compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12733
|
+
return getSlotVNs(compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12714
12734
|
$type: editRender ? 'edit' : 'cell'
|
|
12715
|
-
}, params));
|
|
12735
|
+
}, params)));
|
|
12716
12736
|
}
|
|
12717
12737
|
}
|
|
12718
12738
|
|
|
@@ -12792,7 +12812,7 @@ var Cell = {
|
|
|
12792
12812
|
class: 'vxe-tree--btn-wrapper',
|
|
12793
12813
|
on: on
|
|
12794
12814
|
}, [h('i', {
|
|
12795
|
-
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded ||
|
|
12815
|
+
class: ['vxe-tree--node-btn', isLazyLoaded ? iconLoaded || src_conf.icon.TABLE_TREE_LOADED : isAceived ? iconOpen || src_conf.icon.TABLE_TREE_OPEN : iconClose || src_conf.icon.TABLE_TREE_CLOSE]
|
|
12796
12816
|
})])] : null, h('div', {
|
|
12797
12817
|
class: 'vxe-tree-cell'
|
|
12798
12818
|
}, cellVNodes)])];
|
|
@@ -12963,7 +12983,7 @@ var Cell = {
|
|
|
12963
12983
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
12964
12984
|
}],
|
|
12965
12985
|
attrs: {
|
|
12966
|
-
title:
|
|
12986
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
12967
12987
|
},
|
|
12968
12988
|
on: on
|
|
12969
12989
|
}, [h('span', {
|
|
@@ -13192,7 +13212,7 @@ var Cell = {
|
|
|
13192
13212
|
}
|
|
13193
13213
|
}
|
|
13194
13214
|
}, [h('i', {
|
|
13195
|
-
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded ||
|
|
13215
|
+
class: ['vxe-table--expand-btn', isLazyLoaded ? iconLoaded || src_conf.icon.TABLE_EXPAND_LOADED : isAceived ? iconOpen || src_conf.icon.TABLE_EXPAND_OPEN : iconClose || src_conf.icon.TABLE_EXPAND_CLOSE]
|
|
13196
13216
|
})]) : null, defaultSlot || labelField ? h('span', {
|
|
13197
13217
|
class: 'vxe-table--expand-label'
|
|
13198
13218
|
}, defaultSlot ? $table.callSlot(defaultSlot, params, h) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(row, labelField)) : null];
|
|
@@ -13211,7 +13231,7 @@ var Cell = {
|
|
|
13211
13231
|
var compConf = v_x_e_table.renderer.get(contentRender.name);
|
|
13212
13232
|
|
|
13213
13233
|
if (compConf && compConf.renderExpand) {
|
|
13214
|
-
return compConf.renderExpand.call($table, h, contentRender, params);
|
|
13234
|
+
return getSlotVNs(compConf.renderExpand.call($table, h, contentRender, params));
|
|
13215
13235
|
}
|
|
13216
13236
|
}
|
|
13217
13237
|
|
|
@@ -13264,11 +13284,11 @@ var Cell = {
|
|
|
13264
13284
|
return showIcon ? [h('span', {
|
|
13265
13285
|
class: 'vxe-cell--sort'
|
|
13266
13286
|
}, [h('i', {
|
|
13267
|
-
class: ['vxe-sort--asc-btn', iconAsc ||
|
|
13287
|
+
class: ['vxe-sort--asc-btn', iconAsc || src_conf.icon.TABLE_SORT_ASC, {
|
|
13268
13288
|
'sort--active': column.order === 'asc'
|
|
13269
13289
|
}],
|
|
13270
13290
|
attrs: {
|
|
13271
|
-
title:
|
|
13291
|
+
title: src_conf.i18n('vxe.table.sortAsc')
|
|
13272
13292
|
},
|
|
13273
13293
|
on: {
|
|
13274
13294
|
click: function click(evnt) {
|
|
@@ -13276,11 +13296,11 @@ var Cell = {
|
|
|
13276
13296
|
}
|
|
13277
13297
|
}
|
|
13278
13298
|
}), h('i', {
|
|
13279
|
-
class: ['vxe-sort--desc-btn', iconDesc ||
|
|
13299
|
+
class: ['vxe-sort--desc-btn', iconDesc || src_conf.icon.TABLE_SORT_DESC, {
|
|
13280
13300
|
'sort--active': column.order === 'desc'
|
|
13281
13301
|
}],
|
|
13282
13302
|
attrs: {
|
|
13283
|
-
title:
|
|
13303
|
+
title: src_conf.i18n('vxe.table.sortDesc')
|
|
13284
13304
|
},
|
|
13285
13305
|
on: {
|
|
13286
13306
|
click: function click(evnt) {
|
|
@@ -13310,9 +13330,9 @@ var Cell = {
|
|
|
13310
13330
|
'is--active': filterStore.visible && filterStore.column === column
|
|
13311
13331
|
}]
|
|
13312
13332
|
}, [h('i', {
|
|
13313
|
-
class: ['vxe-filter--btn', hasFilter ? iconMatch ||
|
|
13333
|
+
class: ['vxe-filter--btn', hasFilter ? iconMatch || src_conf.icon.TABLE_FILTER_MATCH : iconNone || src_conf.icon.TABLE_FILTER_NONE],
|
|
13314
13334
|
attrs: {
|
|
13315
|
-
title:
|
|
13335
|
+
title: src_conf.i18n('vxe.table.filter')
|
|
13316
13336
|
},
|
|
13317
13337
|
on: {
|
|
13318
13338
|
click: function click(evnt) {
|
|
@@ -13350,7 +13370,7 @@ var Cell = {
|
|
|
13350
13370
|
return (isEnableConf(editConfig) ? [isRequired && editOpts.showAsterisk ? h('i', {
|
|
13351
13371
|
class: 'vxe-cell--required-icon'
|
|
13352
13372
|
}) : null, isEnableConf(editRender) && editOpts.showIcon ? h('i', {
|
|
13353
|
-
class: ['vxe-cell--edit-icon', editOpts.icon ||
|
|
13373
|
+
class: ['vxe-cell--edit-icon', editOpts.icon || src_conf.icon.TABLE_EDIT]
|
|
13354
13374
|
}) : null] : []).concat(Cell.renderDefaultHeader(h, params)).concat(sortable || remoteSort ? Cell.renderSortIcon(h, params) : []).concat(filters ? Cell.renderFilterIcon(h, params) : []);
|
|
13355
13375
|
},
|
|
13356
13376
|
// 行格编辑模式
|
|
@@ -13388,9 +13408,13 @@ var Cell = {
|
|
|
13388
13408
|
return $table.callSlot(slots.edit, params, h);
|
|
13389
13409
|
}
|
|
13390
13410
|
|
|
13391
|
-
|
|
13392
|
-
$
|
|
13393
|
-
|
|
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 [];
|
|
13394
13418
|
}
|
|
13395
13419
|
|
|
13396
13420
|
if (slots && slots.default) {
|
|
@@ -13442,6 +13466,7 @@ var Cell = {
|
|
|
13442
13466
|
|
|
13443
13467
|
|
|
13444
13468
|
|
|
13469
|
+
|
|
13445
13470
|
|
|
13446
13471
|
|
|
13447
13472
|
var methods_setCellValue = utils.setCellValue,
|
|
@@ -13488,7 +13513,7 @@ function getNextSortOrder(_vm, column) {
|
|
|
13488
13513
|
}
|
|
13489
13514
|
|
|
13490
13515
|
function getCustomStorageMap(key) {
|
|
13491
|
-
var version =
|
|
13516
|
+
var version = src_conf.version;
|
|
13492
13517
|
var rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toStringJSON(localStorage.getItem(key));
|
|
13493
13518
|
return rest && rest._v === version ? rest : {
|
|
13494
13519
|
_v: version
|
|
@@ -13763,7 +13788,7 @@ var Methods = {
|
|
|
13763
13788
|
}
|
|
13764
13789
|
|
|
13765
13790
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
13766
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
13791
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
13767
13792
|
}
|
|
13768
13793
|
}
|
|
13769
13794
|
|
|
@@ -16353,7 +16378,7 @@ var Methods = {
|
|
|
16353
16378
|
if (isClearActived || // 如果点击了当前表格之外
|
|
16354
16379
|
!getEventTargetNode(evnt, $el).flag) {
|
|
16355
16380
|
setTimeout(function () {
|
|
16356
|
-
return _this26.
|
|
16381
|
+
return _this26.clearEdit(evnt);
|
|
16357
16382
|
});
|
|
16358
16383
|
}
|
|
16359
16384
|
});
|
|
@@ -16435,7 +16460,7 @@ var Methods = {
|
|
|
16435
16460
|
if (actived.row) {
|
|
16436
16461
|
var params = actived.args;
|
|
16437
16462
|
|
|
16438
|
-
_this27.
|
|
16463
|
+
_this27.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
|
|
16439
16464
|
|
|
16440
16465
|
|
|
16441
16466
|
if (mouseConfig && mouseOpts.selected) {
|
|
@@ -16555,7 +16580,7 @@ var Methods = {
|
|
|
16555
16580
|
if (actived.row) {
|
|
16556
16581
|
params = actived.args;
|
|
16557
16582
|
|
|
16558
|
-
_this28.
|
|
16583
|
+
_this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
|
|
16559
16584
|
|
|
16560
16585
|
|
|
16561
16586
|
if (mouseConfig && mouseOpts.selected) {
|
|
@@ -19766,12 +19791,30 @@ var Methods = {
|
|
|
19766
19791
|
|
|
19767
19792
|
return cellLabel;
|
|
19768
19793
|
},
|
|
19794
|
+
findRowIndexOf: function findRowIndexOf(list, row) {
|
|
19795
|
+
var _this58 = this;
|
|
19796
|
+
|
|
19797
|
+
return row ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.findIndexOf(list, function (item) {
|
|
19798
|
+
return _this58.eqRow(item, row);
|
|
19799
|
+
}) : -1;
|
|
19800
|
+
},
|
|
19801
|
+
eqRow: function eqRow(row1, row2) {
|
|
19802
|
+
if (row1 && row2) {
|
|
19803
|
+
if (row1 === row2) {
|
|
19804
|
+
return true;
|
|
19805
|
+
}
|
|
19806
|
+
|
|
19807
|
+
return getRowid(this, row1) === getRowid(this, row2);
|
|
19808
|
+
}
|
|
19809
|
+
|
|
19810
|
+
return false;
|
|
19811
|
+
},
|
|
19769
19812
|
|
|
19770
19813
|
/*************************
|
|
19771
19814
|
* Publish methods
|
|
19772
19815
|
*************************/
|
|
19773
19816
|
getSetupOptions: function getSetupOptions() {
|
|
19774
|
-
return
|
|
19817
|
+
return src_conf;
|
|
19775
19818
|
}
|
|
19776
19819
|
}; // Module methods
|
|
19777
19820
|
|
|
@@ -19792,9 +19835,9 @@ funcs.forEach(function (name) {
|
|
|
19792
19835
|
loading: Boolean
|
|
19793
19836
|
},
|
|
19794
19837
|
render: function render(h) {
|
|
19795
|
-
var icon =
|
|
19796
|
-
var loadingText =
|
|
19797
|
-
var text = loadingText === null ? loadingText :
|
|
19838
|
+
var icon = src_conf.icon.LOADING;
|
|
19839
|
+
var loadingText = src_conf.loadingText;
|
|
19840
|
+
var text = loadingText === null ? loadingText : src_conf.i18n('vxe.loading.text');
|
|
19798
19841
|
return h('div', {
|
|
19799
19842
|
class: ['vxe-loading', {
|
|
19800
19843
|
'is--visible': this.loading
|
|
@@ -19918,7 +19961,7 @@ function renderEmptyContenet(h, _vm) {
|
|
|
19918
19961
|
if (renderEmpty) {
|
|
19919
19962
|
emptyContent = renderEmpty.call(_vm, h, emptyOpts, params);
|
|
19920
19963
|
} else {
|
|
19921
|
-
emptyContent = getFuncText(_vm.emptyText) ||
|
|
19964
|
+
emptyContent = getFuncText(_vm.emptyText) || src_conf.i18n('vxe.table.emptyText');
|
|
19922
19965
|
}
|
|
19923
19966
|
}
|
|
19924
19967
|
|
|
@@ -19949,42 +19992,42 @@ function handleUupdateResize(_vm) {
|
|
|
19949
19992
|
resizable: {
|
|
19950
19993
|
type: Boolean,
|
|
19951
19994
|
default: function _default() {
|
|
19952
|
-
return
|
|
19995
|
+
return src_conf.table.resizable;
|
|
19953
19996
|
}
|
|
19954
19997
|
},
|
|
19955
19998
|
// 是否带有斑马纹
|
|
19956
19999
|
stripe: {
|
|
19957
20000
|
type: Boolean,
|
|
19958
20001
|
default: function _default() {
|
|
19959
|
-
return
|
|
20002
|
+
return src_conf.table.stripe;
|
|
19960
20003
|
}
|
|
19961
20004
|
},
|
|
19962
20005
|
// 是否带有边框
|
|
19963
20006
|
border: {
|
|
19964
20007
|
type: [Boolean, String],
|
|
19965
20008
|
default: function _default() {
|
|
19966
|
-
return
|
|
20009
|
+
return src_conf.table.border;
|
|
19967
20010
|
}
|
|
19968
20011
|
},
|
|
19969
20012
|
// 是否圆角边框
|
|
19970
20013
|
round: {
|
|
19971
20014
|
type: Boolean,
|
|
19972
20015
|
default: function _default() {
|
|
19973
|
-
return
|
|
20016
|
+
return src_conf.table.round;
|
|
19974
20017
|
}
|
|
19975
20018
|
},
|
|
19976
20019
|
// 表格的尺寸
|
|
19977
20020
|
size: {
|
|
19978
20021
|
type: String,
|
|
19979
20022
|
default: function _default() {
|
|
19980
|
-
return
|
|
20023
|
+
return src_conf.table.size || src_conf.size;
|
|
19981
20024
|
}
|
|
19982
20025
|
},
|
|
19983
20026
|
// 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
|
|
19984
20027
|
fit: {
|
|
19985
20028
|
type: Boolean,
|
|
19986
20029
|
default: function _default() {
|
|
19987
|
-
return
|
|
20030
|
+
return src_conf.table.fit;
|
|
19988
20031
|
}
|
|
19989
20032
|
},
|
|
19990
20033
|
// 表格是否加载中
|
|
@@ -19993,56 +20036,56 @@ function handleUupdateResize(_vm) {
|
|
|
19993
20036
|
align: {
|
|
19994
20037
|
type: String,
|
|
19995
20038
|
default: function _default() {
|
|
19996
|
-
return
|
|
20039
|
+
return src_conf.table.align;
|
|
19997
20040
|
}
|
|
19998
20041
|
},
|
|
19999
20042
|
// 所有的表头列的对齐方式
|
|
20000
20043
|
headerAlign: {
|
|
20001
20044
|
type: String,
|
|
20002
20045
|
default: function _default() {
|
|
20003
|
-
return
|
|
20046
|
+
return src_conf.table.headerAlign;
|
|
20004
20047
|
}
|
|
20005
20048
|
},
|
|
20006
20049
|
// 所有的表尾列的对齐方式
|
|
20007
20050
|
footerAlign: {
|
|
20008
20051
|
type: String,
|
|
20009
20052
|
default: function _default() {
|
|
20010
|
-
return
|
|
20053
|
+
return src_conf.table.footerAlign;
|
|
20011
20054
|
}
|
|
20012
20055
|
},
|
|
20013
20056
|
// 是否显示表头
|
|
20014
20057
|
showHeader: {
|
|
20015
20058
|
type: Boolean,
|
|
20016
20059
|
default: function _default() {
|
|
20017
|
-
return
|
|
20060
|
+
return src_conf.table.showHeader;
|
|
20018
20061
|
}
|
|
20019
20062
|
},
|
|
20020
20063
|
// 已废弃,被 row-config.isCurrent 替换
|
|
20021
20064
|
highlightCurrentRow: {
|
|
20022
20065
|
type: Boolean,
|
|
20023
20066
|
default: function _default() {
|
|
20024
|
-
return
|
|
20067
|
+
return src_conf.table.highlightCurrentRow;
|
|
20025
20068
|
}
|
|
20026
20069
|
},
|
|
20027
20070
|
// 已废弃,被 row-config.isHover 替换
|
|
20028
20071
|
highlightHoverRow: {
|
|
20029
20072
|
type: Boolean,
|
|
20030
20073
|
default: function _default() {
|
|
20031
|
-
return
|
|
20074
|
+
return src_conf.table.highlightHoverRow;
|
|
20032
20075
|
}
|
|
20033
20076
|
},
|
|
20034
20077
|
// 已废弃,被 column-config.isCurrent 替换
|
|
20035
20078
|
highlightCurrentColumn: {
|
|
20036
20079
|
type: Boolean,
|
|
20037
20080
|
default: function _default() {
|
|
20038
|
-
return
|
|
20081
|
+
return src_conf.table.highlightCurrentColumn;
|
|
20039
20082
|
}
|
|
20040
20083
|
},
|
|
20041
20084
|
// 已废弃,被 column-config.isHover 替换
|
|
20042
20085
|
highlightHoverColumn: {
|
|
20043
20086
|
type: Boolean,
|
|
20044
20087
|
default: function _default() {
|
|
20045
|
-
return
|
|
20088
|
+
return src_conf.table.highlightHoverColumn;
|
|
20046
20089
|
}
|
|
20047
20090
|
},
|
|
20048
20091
|
// 已废弃,直接删除
|
|
@@ -20087,21 +20130,21 @@ function handleUupdateResize(_vm) {
|
|
|
20087
20130
|
showOverflow: {
|
|
20088
20131
|
type: [Boolean, String],
|
|
20089
20132
|
default: function _default() {
|
|
20090
|
-
return
|
|
20133
|
+
return src_conf.table.showOverflow;
|
|
20091
20134
|
}
|
|
20092
20135
|
},
|
|
20093
20136
|
// 设置表头所有内容过长时显示为省略号
|
|
20094
20137
|
showHeaderOverflow: {
|
|
20095
20138
|
type: [Boolean, String],
|
|
20096
20139
|
default: function _default() {
|
|
20097
|
-
return
|
|
20140
|
+
return src_conf.table.showHeaderOverflow;
|
|
20098
20141
|
}
|
|
20099
20142
|
},
|
|
20100
20143
|
// 设置表尾所有内容过长时显示为省略号
|
|
20101
20144
|
showFooterOverflow: {
|
|
20102
20145
|
type: [Boolean, String],
|
|
20103
20146
|
default: function _default() {
|
|
20104
|
-
return
|
|
20147
|
+
return src_conf.table.showFooterOverflow;
|
|
20105
20148
|
}
|
|
20106
20149
|
},
|
|
20107
20150
|
|
|
@@ -20114,27 +20157,27 @@ function handleUupdateResize(_vm) {
|
|
|
20114
20157
|
rowId: {
|
|
20115
20158
|
type: String,
|
|
20116
20159
|
default: function _default() {
|
|
20117
|
-
return
|
|
20160
|
+
return src_conf.table.rowId;
|
|
20118
20161
|
}
|
|
20119
20162
|
},
|
|
20120
20163
|
zIndex: Number,
|
|
20121
20164
|
emptyText: {
|
|
20122
20165
|
type: String,
|
|
20123
20166
|
default: function _default() {
|
|
20124
|
-
return
|
|
20167
|
+
return src_conf.table.emptyText;
|
|
20125
20168
|
}
|
|
20126
20169
|
},
|
|
20127
20170
|
keepSource: {
|
|
20128
20171
|
type: Boolean,
|
|
20129
20172
|
default: function _default() {
|
|
20130
|
-
return
|
|
20173
|
+
return src_conf.table.keepSource;
|
|
20131
20174
|
}
|
|
20132
20175
|
},
|
|
20133
20176
|
// 是否自动监听父容器变化去更新响应式表格宽高
|
|
20134
20177
|
autoResize: {
|
|
20135
20178
|
type: Boolean,
|
|
20136
20179
|
default: function _default() {
|
|
20137
|
-
return
|
|
20180
|
+
return src_conf.table.autoResize;
|
|
20138
20181
|
}
|
|
20139
20182
|
},
|
|
20140
20183
|
// 是否自动根据状态属性去更新响应式表格宽高
|
|
@@ -20199,14 +20242,14 @@ function handleUupdateResize(_vm) {
|
|
|
20199
20242
|
animat: {
|
|
20200
20243
|
type: Boolean,
|
|
20201
20244
|
default: function _default() {
|
|
20202
|
-
return
|
|
20245
|
+
return src_conf.table.animat;
|
|
20203
20246
|
}
|
|
20204
20247
|
},
|
|
20205
20248
|
// (可能会被废弃的参数,不要使用)
|
|
20206
20249
|
delayHover: {
|
|
20207
20250
|
type: Number,
|
|
20208
20251
|
default: function _default() {
|
|
20209
|
-
return
|
|
20252
|
+
return src_conf.table.delayHover;
|
|
20210
20253
|
}
|
|
20211
20254
|
},
|
|
20212
20255
|
// 额外的参数
|
|
@@ -20419,13 +20462,13 @@ function handleUupdateResize(_vm) {
|
|
|
20419
20462
|
validOpts: function validOpts() {
|
|
20420
20463
|
return Object.assign({
|
|
20421
20464
|
message: 'default'
|
|
20422
|
-
},
|
|
20465
|
+
}, src_conf.table.validConfig, this.validConfig);
|
|
20423
20466
|
},
|
|
20424
20467
|
sXOpts: function sXOpts() {
|
|
20425
|
-
return Object.assign({},
|
|
20468
|
+
return Object.assign({}, src_conf.table.scrollX, this.scrollX);
|
|
20426
20469
|
},
|
|
20427
20470
|
sYOpts: function sYOpts() {
|
|
20428
|
-
return Object.assign({},
|
|
20471
|
+
return Object.assign({}, src_conf.table.scrollY, this.scrollY);
|
|
20429
20472
|
},
|
|
20430
20473
|
rowHeightMaps: function rowHeightMaps() {
|
|
20431
20474
|
return {
|
|
@@ -20436,27 +20479,27 @@ function handleUupdateResize(_vm) {
|
|
|
20436
20479
|
};
|
|
20437
20480
|
},
|
|
20438
20481
|
columnOpts: function columnOpts() {
|
|
20439
|
-
return Object.assign({},
|
|
20482
|
+
return Object.assign({}, src_conf.table.columnConfig, this.columnConfig);
|
|
20440
20483
|
},
|
|
20441
20484
|
rowOpts: function rowOpts() {
|
|
20442
|
-
return Object.assign({},
|
|
20485
|
+
return Object.assign({}, src_conf.table.rowConfig, this.rowConfig);
|
|
20443
20486
|
},
|
|
20444
20487
|
resizableOpts: function resizableOpts() {
|
|
20445
|
-
return Object.assign({},
|
|
20488
|
+
return Object.assign({}, src_conf.table.resizableConfig, this.resizableConfig);
|
|
20446
20489
|
},
|
|
20447
20490
|
seqOpts: function seqOpts() {
|
|
20448
20491
|
return Object.assign({
|
|
20449
20492
|
startIndex: 0
|
|
20450
|
-
},
|
|
20493
|
+
}, src_conf.table.seqConfig, this.seqConfig);
|
|
20451
20494
|
},
|
|
20452
20495
|
radioOpts: function radioOpts() {
|
|
20453
|
-
return Object.assign({},
|
|
20496
|
+
return Object.assign({}, src_conf.table.radioConfig, this.radioConfig);
|
|
20454
20497
|
},
|
|
20455
20498
|
checkboxOpts: function checkboxOpts() {
|
|
20456
|
-
return Object.assign({},
|
|
20499
|
+
return Object.assign({}, src_conf.table.checkboxConfig, this.checkboxConfig);
|
|
20457
20500
|
},
|
|
20458
20501
|
tooltipOpts: function tooltipOpts() {
|
|
20459
|
-
return Object.assign({},
|
|
20502
|
+
return Object.assign({}, src_conf.tooltip, src_conf.table.tooltipConfig, this.tooltipConfig);
|
|
20460
20503
|
},
|
|
20461
20504
|
tipConfig: function tipConfig() {
|
|
20462
20505
|
return _objectSpread2(_objectSpread2({}, this.tooltipOpts), this.tooltipStore.currOpts);
|
|
@@ -20467,30 +20510,30 @@ function handleUupdateResize(_vm) {
|
|
|
20467
20510
|
}, this.tooltipOpts);
|
|
20468
20511
|
},
|
|
20469
20512
|
editOpts: function editOpts() {
|
|
20470
|
-
return Object.assign({},
|
|
20513
|
+
return Object.assign({}, src_conf.table.editConfig, this.editConfig);
|
|
20471
20514
|
},
|
|
20472
20515
|
sortOpts: function sortOpts() {
|
|
20473
20516
|
return Object.assign({
|
|
20474
20517
|
orders: ['asc', 'desc', null]
|
|
20475
|
-
},
|
|
20518
|
+
}, src_conf.table.sortConfig, this.sortConfig);
|
|
20476
20519
|
},
|
|
20477
20520
|
filterOpts: function filterOpts() {
|
|
20478
|
-
return Object.assign({},
|
|
20521
|
+
return Object.assign({}, src_conf.table.filterConfig, this.filterConfig);
|
|
20479
20522
|
},
|
|
20480
20523
|
mouseOpts: function mouseOpts() {
|
|
20481
|
-
return Object.assign({},
|
|
20524
|
+
return Object.assign({}, src_conf.table.mouseConfig, this.mouseConfig);
|
|
20482
20525
|
},
|
|
20483
20526
|
areaOpts: function areaOpts() {
|
|
20484
|
-
return Object.assign({},
|
|
20527
|
+
return Object.assign({}, src_conf.table.areaConfig, this.areaConfig);
|
|
20485
20528
|
},
|
|
20486
20529
|
keyboardOpts: function keyboardOpts() {
|
|
20487
|
-
return Object.assign({},
|
|
20530
|
+
return Object.assign({}, src_conf.table.keyboardConfig, this.keyboardConfig);
|
|
20488
20531
|
},
|
|
20489
20532
|
clipOpts: function clipOpts() {
|
|
20490
|
-
return Object.assign({},
|
|
20533
|
+
return Object.assign({}, src_conf.table.clipConfig, this.clipConfig);
|
|
20491
20534
|
},
|
|
20492
20535
|
fnrOpts: function fnrOpts() {
|
|
20493
|
-
return Object.assign({},
|
|
20536
|
+
return Object.assign({}, src_conf.table.fnrConfig, this.fnrConfig);
|
|
20494
20537
|
},
|
|
20495
20538
|
hasTip: function hasTip() {
|
|
20496
20539
|
return v_x_e_table._tooltip;
|
|
@@ -20511,7 +20554,7 @@ function handleUupdateResize(_vm) {
|
|
|
20511
20554
|
return !!((this.contextMenu || this.menuConfig) && isEnableConf(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
|
|
20512
20555
|
},
|
|
20513
20556
|
ctxMenuOpts: function ctxMenuOpts() {
|
|
20514
|
-
return Object.assign({},
|
|
20557
|
+
return Object.assign({}, src_conf.table.menuConfig, this.contextMenu, this.menuConfig);
|
|
20515
20558
|
},
|
|
20516
20559
|
ctxMenuList: function ctxMenuList() {
|
|
20517
20560
|
var rest = [];
|
|
@@ -20523,28 +20566,28 @@ function handleUupdateResize(_vm) {
|
|
|
20523
20566
|
return rest;
|
|
20524
20567
|
},
|
|
20525
20568
|
exportOpts: function exportOpts() {
|
|
20526
|
-
return Object.assign({},
|
|
20569
|
+
return Object.assign({}, src_conf.table.exportConfig, this.exportConfig);
|
|
20527
20570
|
},
|
|
20528
20571
|
importOpts: function importOpts() {
|
|
20529
|
-
return Object.assign({},
|
|
20572
|
+
return Object.assign({}, src_conf.table.importConfig, this.importConfig);
|
|
20530
20573
|
},
|
|
20531
20574
|
printOpts: function printOpts() {
|
|
20532
|
-
return Object.assign({},
|
|
20575
|
+
return Object.assign({}, src_conf.table.printConfig, this.printConfig);
|
|
20533
20576
|
},
|
|
20534
20577
|
expandOpts: function expandOpts() {
|
|
20535
|
-
return Object.assign({},
|
|
20578
|
+
return Object.assign({}, src_conf.table.expandConfig, this.expandConfig);
|
|
20536
20579
|
},
|
|
20537
20580
|
treeOpts: function treeOpts() {
|
|
20538
|
-
return Object.assign({},
|
|
20581
|
+
return Object.assign({}, src_conf.table.treeConfig, this.treeConfig);
|
|
20539
20582
|
},
|
|
20540
20583
|
emptyOpts: function emptyOpts() {
|
|
20541
|
-
return Object.assign({},
|
|
20584
|
+
return Object.assign({}, src_conf.table.emptyRender, this.emptyRender);
|
|
20542
20585
|
},
|
|
20543
20586
|
cellOffsetWidth: function cellOffsetWidth() {
|
|
20544
20587
|
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
20545
20588
|
},
|
|
20546
20589
|
customOpts: function customOpts() {
|
|
20547
|
-
return Object.assign({},
|
|
20590
|
+
return Object.assign({}, src_conf.table.customConfig, this.customConfig);
|
|
20548
20591
|
},
|
|
20549
20592
|
tableBorder: function tableBorder() {
|
|
20550
20593
|
var border = this.border;
|
|
@@ -21126,7 +21169,8 @@ var Table = Object.assign(table, {
|
|
|
21126
21169
|
var filterClassName = compConf ? compConf.filterClassName : '';
|
|
21127
21170
|
return h('div', {
|
|
21128
21171
|
class: ['vxe-table--filter-wrapper', 'filter--prevent-default', compConf && compConf.className ? compConf.className : '', utils.getClass(filterClassName, Object.assign({
|
|
21129
|
-
$panel: this
|
|
21172
|
+
$panel: this,
|
|
21173
|
+
$table: $xetable
|
|
21130
21174
|
}, args)), {
|
|
21131
21175
|
'is--animat': $xetable.animat,
|
|
21132
21176
|
'is--multiple': filterStore.multiple,
|
|
@@ -21173,7 +21217,7 @@ var Table = Object.assign(table, {
|
|
|
21173
21217
|
'is--indeterminate': multiple && filterStore.isIndeterminate
|
|
21174
21218
|
}],
|
|
21175
21219
|
attrs: {
|
|
21176
|
-
title:
|
|
21220
|
+
title: src_conf.i18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter')
|
|
21177
21221
|
},
|
|
21178
21222
|
on: {
|
|
21179
21223
|
click: function click(evnt) {
|
|
@@ -21188,7 +21232,7 @@ var Table = Object.assign(table, {
|
|
|
21188
21232
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
21189
21233
|
})] : []).concat([h('span', {
|
|
21190
21234
|
class: 'vxe-checkbox--label'
|
|
21191
|
-
},
|
|
21235
|
+
}, src_conf.i18n('vxe.table.allFilter'))]))]), h('ul', {
|
|
21192
21236
|
class: 'vxe-table--filter-body',
|
|
21193
21237
|
style: maxHeight ? {
|
|
21194
21238
|
maxHeight: "".concat(maxHeight, "px")
|
|
@@ -21237,11 +21281,11 @@ var Table = Object.assign(table, {
|
|
|
21237
21281
|
on: {
|
|
21238
21282
|
click: this.confirmFilter
|
|
21239
21283
|
}
|
|
21240
|
-
},
|
|
21284
|
+
}, src_conf.i18n('vxe.table.confirmFilter')), h('button', {
|
|
21241
21285
|
on: {
|
|
21242
21286
|
click: this.resetFilter
|
|
21243
21287
|
}
|
|
21244
|
-
},
|
|
21288
|
+
}, src_conf.i18n('vxe.table.resetFilter'))])] : [];
|
|
21245
21289
|
},
|
|
21246
21290
|
// 全部筛选事件
|
|
21247
21291
|
filterCheckAllEvent: function filterCheckAllEvent(evnt, value) {
|
|
@@ -22925,20 +22969,24 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
22925
22969
|
var compRender = v_x_e_table.renderer.get(editRender.name);
|
|
22926
22970
|
var autofocus = editRender.autofocus,
|
|
22927
22971
|
autoselect = editRender.autoselect;
|
|
22928
|
-
var inputElem;
|
|
22972
|
+
var inputElem;
|
|
22973
|
+
|
|
22974
|
+
if (!autofocus && compRender) {
|
|
22975
|
+
autofocus = compRender.autofocus;
|
|
22976
|
+
} // 如果指定了聚焦 class
|
|
22929
22977
|
|
|
22930
|
-
if (autofocus) {
|
|
22931
|
-
inputElem = cell.querySelector(autofocus);
|
|
22932
|
-
} // 渲染器的聚焦处理
|
|
22933
22978
|
|
|
22979
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(autofocus)) {
|
|
22980
|
+
inputElem = autofocus.call(this, params);
|
|
22981
|
+
} else if (autofocus) {
|
|
22982
|
+
inputElem = cell.querySelector(autofocus);
|
|
22934
22983
|
|
|
22935
|
-
|
|
22936
|
-
|
|
22984
|
+
if (inputElem) {
|
|
22985
|
+
inputElem.focus();
|
|
22986
|
+
}
|
|
22937
22987
|
}
|
|
22938
22988
|
|
|
22939
22989
|
if (inputElem) {
|
|
22940
|
-
inputElem.focus();
|
|
22941
|
-
|
|
22942
22990
|
if (autoselect) {
|
|
22943
22991
|
inputElem.select();
|
|
22944
22992
|
} else {
|
|
@@ -23229,6 +23277,7 @@ function _slicedToArray(arr, i) {
|
|
|
23229
23277
|
|
|
23230
23278
|
|
|
23231
23279
|
|
|
23280
|
+
|
|
23232
23281
|
|
|
23233
23282
|
var allActivedModals = [];
|
|
23234
23283
|
var msgQueue = [];
|
|
@@ -23252,7 +23301,7 @@ var msgQueue = [];
|
|
|
23252
23301
|
top: {
|
|
23253
23302
|
type: [Number, String],
|
|
23254
23303
|
default: function _default() {
|
|
23255
|
-
return
|
|
23304
|
+
return src_conf.modal.top;
|
|
23256
23305
|
}
|
|
23257
23306
|
},
|
|
23258
23307
|
position: [String, Object],
|
|
@@ -23260,7 +23309,7 @@ var msgQueue = [];
|
|
|
23260
23309
|
duration: {
|
|
23261
23310
|
type: [Number, String],
|
|
23262
23311
|
default: function _default() {
|
|
23263
|
-
return
|
|
23312
|
+
return src_conf.modal.duration;
|
|
23264
23313
|
}
|
|
23265
23314
|
},
|
|
23266
23315
|
// 请使用 content
|
|
@@ -23269,56 +23318,56 @@ var msgQueue = [];
|
|
|
23269
23318
|
cancelButtonText: {
|
|
23270
23319
|
type: String,
|
|
23271
23320
|
default: function _default() {
|
|
23272
|
-
return
|
|
23321
|
+
return src_conf.modal.cancelButtonText;
|
|
23273
23322
|
}
|
|
23274
23323
|
},
|
|
23275
23324
|
confirmButtonText: {
|
|
23276
23325
|
type: String,
|
|
23277
23326
|
default: function _default() {
|
|
23278
|
-
return
|
|
23327
|
+
return src_conf.modal.confirmButtonText;
|
|
23279
23328
|
}
|
|
23280
23329
|
},
|
|
23281
23330
|
lockView: {
|
|
23282
23331
|
type: Boolean,
|
|
23283
23332
|
default: function _default() {
|
|
23284
|
-
return
|
|
23333
|
+
return src_conf.modal.lockView;
|
|
23285
23334
|
}
|
|
23286
23335
|
},
|
|
23287
23336
|
lockScroll: Boolean,
|
|
23288
23337
|
mask: {
|
|
23289
23338
|
type: Boolean,
|
|
23290
23339
|
default: function _default() {
|
|
23291
|
-
return
|
|
23340
|
+
return src_conf.modal.mask;
|
|
23292
23341
|
}
|
|
23293
23342
|
},
|
|
23294
23343
|
maskClosable: {
|
|
23295
23344
|
type: Boolean,
|
|
23296
23345
|
default: function _default() {
|
|
23297
|
-
return
|
|
23346
|
+
return src_conf.modal.maskClosable;
|
|
23298
23347
|
}
|
|
23299
23348
|
},
|
|
23300
23349
|
escClosable: {
|
|
23301
23350
|
type: Boolean,
|
|
23302
23351
|
default: function _default() {
|
|
23303
|
-
return
|
|
23352
|
+
return src_conf.modal.escClosable;
|
|
23304
23353
|
}
|
|
23305
23354
|
},
|
|
23306
23355
|
resize: {
|
|
23307
23356
|
type: Boolean,
|
|
23308
23357
|
default: function _default() {
|
|
23309
|
-
return
|
|
23358
|
+
return src_conf.modal.resize;
|
|
23310
23359
|
}
|
|
23311
23360
|
},
|
|
23312
23361
|
showHeader: {
|
|
23313
23362
|
type: Boolean,
|
|
23314
23363
|
default: function _default() {
|
|
23315
|
-
return
|
|
23364
|
+
return src_conf.modal.showHeader;
|
|
23316
23365
|
}
|
|
23317
23366
|
},
|
|
23318
23367
|
showFooter: {
|
|
23319
23368
|
type: Boolean,
|
|
23320
23369
|
default: function _default() {
|
|
23321
|
-
return
|
|
23370
|
+
return src_conf.modal.showFooter;
|
|
23322
23371
|
}
|
|
23323
23372
|
},
|
|
23324
23373
|
showZoom: {
|
|
@@ -23328,13 +23377,13 @@ var msgQueue = [];
|
|
|
23328
23377
|
showClose: {
|
|
23329
23378
|
type: Boolean,
|
|
23330
23379
|
default: function _default() {
|
|
23331
|
-
return
|
|
23380
|
+
return src_conf.modal.showClose;
|
|
23332
23381
|
}
|
|
23333
23382
|
},
|
|
23334
23383
|
dblclickZoom: {
|
|
23335
23384
|
type: Boolean,
|
|
23336
23385
|
default: function _default() {
|
|
23337
|
-
return
|
|
23386
|
+
return src_conf.modal.dblclickZoom;
|
|
23338
23387
|
}
|
|
23339
23388
|
},
|
|
23340
23389
|
width: [Number, String],
|
|
@@ -23342,81 +23391,81 @@ var msgQueue = [];
|
|
|
23342
23391
|
minWidth: {
|
|
23343
23392
|
type: [Number, String],
|
|
23344
23393
|
default: function _default() {
|
|
23345
|
-
return
|
|
23394
|
+
return src_conf.modal.minWidth;
|
|
23346
23395
|
}
|
|
23347
23396
|
},
|
|
23348
23397
|
minHeight: {
|
|
23349
23398
|
type: [Number, String],
|
|
23350
23399
|
default: function _default() {
|
|
23351
|
-
return
|
|
23400
|
+
return src_conf.modal.minHeight;
|
|
23352
23401
|
}
|
|
23353
23402
|
},
|
|
23354
23403
|
zIndex: Number,
|
|
23355
23404
|
marginSize: {
|
|
23356
23405
|
type: [Number, String],
|
|
23357
23406
|
default: function _default() {
|
|
23358
|
-
return
|
|
23407
|
+
return src_conf.modal.marginSize;
|
|
23359
23408
|
}
|
|
23360
23409
|
},
|
|
23361
23410
|
fullscreen: Boolean,
|
|
23362
23411
|
draggable: {
|
|
23363
23412
|
type: Boolean,
|
|
23364
23413
|
default: function _default() {
|
|
23365
|
-
return
|
|
23414
|
+
return src_conf.modal.draggable;
|
|
23366
23415
|
}
|
|
23367
23416
|
},
|
|
23368
23417
|
remember: {
|
|
23369
23418
|
type: Boolean,
|
|
23370
23419
|
default: function _default() {
|
|
23371
|
-
return
|
|
23420
|
+
return src_conf.modal.remember;
|
|
23372
23421
|
}
|
|
23373
23422
|
},
|
|
23374
23423
|
destroyOnClose: {
|
|
23375
23424
|
type: Boolean,
|
|
23376
23425
|
default: function _default() {
|
|
23377
|
-
return
|
|
23426
|
+
return src_conf.modal.destroyOnClose;
|
|
23378
23427
|
}
|
|
23379
23428
|
},
|
|
23380
23429
|
showTitleOverflow: {
|
|
23381
23430
|
type: Boolean,
|
|
23382
23431
|
default: function _default() {
|
|
23383
|
-
return
|
|
23432
|
+
return src_conf.modal.showTitleOverflow;
|
|
23384
23433
|
}
|
|
23385
23434
|
},
|
|
23386
23435
|
transfer: {
|
|
23387
23436
|
type: Boolean,
|
|
23388
23437
|
default: function _default() {
|
|
23389
|
-
return
|
|
23438
|
+
return src_conf.modal.transfer;
|
|
23390
23439
|
}
|
|
23391
23440
|
},
|
|
23392
23441
|
storage: {
|
|
23393
23442
|
type: Boolean,
|
|
23394
23443
|
default: function _default() {
|
|
23395
|
-
return
|
|
23444
|
+
return src_conf.modal.storage;
|
|
23396
23445
|
}
|
|
23397
23446
|
},
|
|
23398
23447
|
storageKey: {
|
|
23399
23448
|
type: String,
|
|
23400
23449
|
default: function _default() {
|
|
23401
|
-
return
|
|
23450
|
+
return src_conf.modal.storageKey;
|
|
23402
23451
|
}
|
|
23403
23452
|
},
|
|
23404
23453
|
animat: {
|
|
23405
23454
|
type: Boolean,
|
|
23406
23455
|
default: function _default() {
|
|
23407
|
-
return
|
|
23456
|
+
return src_conf.modal.animat;
|
|
23408
23457
|
}
|
|
23409
23458
|
},
|
|
23410
23459
|
size: {
|
|
23411
23460
|
type: String,
|
|
23412
23461
|
default: function _default() {
|
|
23413
|
-
return
|
|
23462
|
+
return src_conf.modal.size || src_conf.size;
|
|
23414
23463
|
}
|
|
23415
23464
|
},
|
|
23416
23465
|
beforeHideMethod: {
|
|
23417
23466
|
type: Function,
|
|
23418
23467
|
default: function _default() {
|
|
23419
|
-
return
|
|
23468
|
+
return src_conf.modal.beforeHideMethod;
|
|
23420
23469
|
}
|
|
23421
23470
|
},
|
|
23422
23471
|
slots: Object,
|
|
@@ -23563,24 +23612,24 @@ var msgQueue = [];
|
|
|
23563
23612
|
'is--ellipsis': !isMsg && showTitleOverflow
|
|
23564
23613
|
}],
|
|
23565
23614
|
on: headerOns
|
|
23566
|
-
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : headerSlot.call(this, {
|
|
23615
|
+
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(headerSlot.call(this, {
|
|
23567
23616
|
$modal: this
|
|
23568
|
-
}, h) : [titleSlot ? titleSlot.call(this, {
|
|
23617
|
+
}, h)) : [titleSlot ? getSlotVNs(titleSlot.call(this, {
|
|
23569
23618
|
$modal: this
|
|
23570
|
-
}, h) : h('span', {
|
|
23619
|
+
}, h)) : h('span', {
|
|
23571
23620
|
class: 'vxe-modal--title'
|
|
23572
|
-
}, title ? getFuncText(title) :
|
|
23573
|
-
class: ['vxe-modal--zoom-btn', 'trigger--btn', zoomLocat ?
|
|
23621
|
+
}, title ? getFuncText(title) : src_conf.i18n('vxe.alert.title')), showZoom ? h('i', {
|
|
23622
|
+
class: ['vxe-modal--zoom-btn', 'trigger--btn', zoomLocat ? src_conf.icon.MODAL_ZOOM_OUT : src_conf.icon.MODAL_ZOOM_IN],
|
|
23574
23623
|
attrs: {
|
|
23575
|
-
title:
|
|
23624
|
+
title: src_conf.i18n("vxe.modal.zoom".concat(zoomLocat ? 'Out' : 'In'))
|
|
23576
23625
|
},
|
|
23577
23626
|
on: {
|
|
23578
23627
|
click: this.toggleZoomEvent
|
|
23579
23628
|
}
|
|
23580
23629
|
}) : _e(), showClose ? h('i', {
|
|
23581
|
-
class: ['vxe-modal--close-btn', 'trigger--btn',
|
|
23630
|
+
class: ['vxe-modal--close-btn', 'trigger--btn', src_conf.icon.MODAL_CLOSE],
|
|
23582
23631
|
attrs: {
|
|
23583
|
-
title:
|
|
23632
|
+
title: src_conf.i18n('vxe.modal.close')
|
|
23584
23633
|
},
|
|
23585
23634
|
on: {
|
|
23586
23635
|
click: this.closeEvent
|
|
@@ -23590,12 +23639,12 @@ var msgQueue = [];
|
|
|
23590
23639
|
}, [status ? h('div', {
|
|
23591
23640
|
class: 'vxe-modal--status-wrapper'
|
|
23592
23641
|
}, [h('i', {
|
|
23593
|
-
class: ['vxe-modal--status-icon', iconStatus ||
|
|
23642
|
+
class: ['vxe-modal--status-icon', iconStatus || src_conf.icon["MODAL_".concat(status).toLocaleUpperCase()]]
|
|
23594
23643
|
})]) : null, h('div', {
|
|
23595
23644
|
class: 'vxe-modal--content'
|
|
23596
|
-
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : defaultSlot.call(this, {
|
|
23645
|
+
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(defaultSlot.call(this, {
|
|
23597
23646
|
$modal: this
|
|
23598
|
-
}, h) : getFuncText(content)),
|
|
23647
|
+
}, h)) : getFuncText(content)),
|
|
23599
23648
|
/**
|
|
23600
23649
|
* 加载中
|
|
23601
23650
|
*/
|
|
@@ -23606,14 +23655,14 @@ var msgQueue = [];
|
|
|
23606
23655
|
}
|
|
23607
23656
|
}) : null]), showFooter ? h('div', {
|
|
23608
23657
|
class: 'vxe-modal--footer'
|
|
23609
|
-
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : footerSlot.call(this, {
|
|
23658
|
+
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(footerSlot.call(this, {
|
|
23610
23659
|
$modal: this
|
|
23611
|
-
}, h) : [type === 'confirm' ? h('vxe-button', {
|
|
23660
|
+
}, h)) : [type === 'confirm' ? h('vxe-button', {
|
|
23612
23661
|
ref: 'cancelBtn',
|
|
23613
23662
|
on: {
|
|
23614
23663
|
click: this.cancelEvent
|
|
23615
23664
|
}
|
|
23616
|
-
}, this.cancelButtonText ||
|
|
23665
|
+
}, this.cancelButtonText || src_conf.i18n('vxe.button.cancel')) : null, h('vxe-button', {
|
|
23617
23666
|
ref: 'confirmBtn',
|
|
23618
23667
|
props: {
|
|
23619
23668
|
status: 'primary'
|
|
@@ -23621,7 +23670,7 @@ var msgQueue = [];
|
|
|
23621
23670
|
on: {
|
|
23622
23671
|
click: this.confirmEvent
|
|
23623
23672
|
}
|
|
23624
|
-
}, this.confirmButtonText ||
|
|
23673
|
+
}, this.confirmButtonText || src_conf.i18n('vxe.button.confirm'))]) : null, !isMsg && resize ? h('span', {
|
|
23625
23674
|
class: 'vxe-modal--resize'
|
|
23626
23675
|
}, ['wl', 'wr', 'swst', 'sest', 'st', 'swlb', 'selb', 'sb'].map(function (type) {
|
|
23627
23676
|
return h('span', {
|
|
@@ -24342,7 +24391,7 @@ var msgQueue = [];
|
|
|
24342
24391
|
};
|
|
24343
24392
|
},
|
|
24344
24393
|
getStorageMap: function getStorageMap(key) {
|
|
24345
|
-
var version =
|
|
24394
|
+
var version = src_conf.version;
|
|
24346
24395
|
var rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toStringJSON(localStorage.getItem(key));
|
|
24347
24396
|
return rest && rest._v === version ? rest : {
|
|
24348
24397
|
_v: version
|
|
@@ -24723,7 +24772,7 @@ function renderDateMonthTable(h, _vm) {
|
|
|
24723
24772
|
return _vm.dateMouseenterEvent(item);
|
|
24724
24773
|
}
|
|
24725
24774
|
}
|
|
24726
|
-
}, renderDateLabel(h, _vm, item,
|
|
24775
|
+
}, renderDateLabel(h, _vm, item, src_conf.i18n("vxe.input.date.months.m".concat(item.month))));
|
|
24727
24776
|
}));
|
|
24728
24777
|
}))])];
|
|
24729
24778
|
}
|
|
@@ -24765,7 +24814,7 @@ function renderDateQuarterTable(h, _vm) {
|
|
|
24765
24814
|
return _vm.dateMouseenterEvent(item);
|
|
24766
24815
|
}
|
|
24767
24816
|
}
|
|
24768
|
-
}, renderDateLabel(h, _vm, item,
|
|
24817
|
+
}, renderDateLabel(h, _vm, item, src_conf.i18n("vxe.input.date.quarters.q".concat(item.quarter))));
|
|
24769
24818
|
}));
|
|
24770
24819
|
}))])];
|
|
24771
24820
|
}
|
|
@@ -24887,7 +24936,7 @@ function renderDatePanel(h, _vm) {
|
|
|
24887
24936
|
on: {
|
|
24888
24937
|
click: _vm.dateConfirmEvent
|
|
24889
24938
|
}
|
|
24890
|
-
},
|
|
24939
|
+
}, src_conf.i18n('vxe.button.confirm'))]) : null])]), h('div', {
|
|
24891
24940
|
class: 'vxe-input--date-picker-body'
|
|
24892
24941
|
}, renderDateTable(h, _vm))];
|
|
24893
24942
|
}
|
|
@@ -24910,7 +24959,7 @@ function renderTimePanel(h, _vm) {
|
|
|
24910
24959
|
on: {
|
|
24911
24960
|
click: _vm.dateConfirmEvent
|
|
24912
24961
|
}
|
|
24913
|
-
},
|
|
24962
|
+
}, src_conf.i18n('vxe.button.confirm'))]), h('div', {
|
|
24914
24963
|
ref: 'timeBody',
|
|
24915
24964
|
class: 'vxe-input--time-picker-body'
|
|
24916
24965
|
}, [h('ul', {
|
|
@@ -25016,7 +25065,7 @@ function renderNumberIcon(h, _vm) {
|
|
|
25016
25065
|
mouseleave: _vm.numberStopDown
|
|
25017
25066
|
}
|
|
25018
25067
|
}, [h('i', {
|
|
25019
|
-
class: ['vxe-input--number-prev-icon',
|
|
25068
|
+
class: ['vxe-input--number-prev-icon', src_conf.icon.INPUT_PREV_NUM]
|
|
25020
25069
|
})]), h('span', {
|
|
25021
25070
|
class: ['vxe-input--number-next is--next', {
|
|
25022
25071
|
'is--disabled': _vm.isDisabledSubtractNumber
|
|
@@ -25027,7 +25076,7 @@ function renderNumberIcon(h, _vm) {
|
|
|
25027
25076
|
mouseleave: _vm.numberStopDown
|
|
25028
25077
|
}
|
|
25029
25078
|
}, [h('i', {
|
|
25030
|
-
class: ['vxe-input--number-next-icon',
|
|
25079
|
+
class: ['vxe-input--number-next-icon', src_conf.icon.INPUT_NEXT_NUM]
|
|
25031
25080
|
})])]);
|
|
25032
25081
|
}
|
|
25033
25082
|
|
|
@@ -25038,7 +25087,7 @@ function renderDatePickerIcon(h, _vm) {
|
|
|
25038
25087
|
click: _vm.datePickerOpenEvent
|
|
25039
25088
|
}
|
|
25040
25089
|
}, [h('i', {
|
|
25041
|
-
class: ['vxe-input--date-picker-icon',
|
|
25090
|
+
class: ['vxe-input--date-picker-icon', src_conf.icon.INPUT_DATE]
|
|
25042
25091
|
})]);
|
|
25043
25092
|
}
|
|
25044
25093
|
|
|
@@ -25049,7 +25098,7 @@ function renderSearchIcon(h, _vm) {
|
|
|
25049
25098
|
click: _vm.searchEvent
|
|
25050
25099
|
}
|
|
25051
25100
|
}, [h('i', {
|
|
25052
|
-
class: ['vxe-input--search-icon',
|
|
25101
|
+
class: ['vxe-input--search-icon', src_conf.icon.INPUT_SEARCH]
|
|
25053
25102
|
})]);
|
|
25054
25103
|
}
|
|
25055
25104
|
|
|
@@ -25061,7 +25110,7 @@ function renderPasswordIcon(h, _vm) {
|
|
|
25061
25110
|
click: _vm.passwordToggleEvent
|
|
25062
25111
|
}
|
|
25063
25112
|
}, [h('i', {
|
|
25064
|
-
class: ['vxe-input--password-icon', showPwd ?
|
|
25113
|
+
class: ['vxe-input--password-icon', showPwd ? src_conf.icon.INPUT_SHOW_PWD : src_conf.icon.INPUT_PWD]
|
|
25065
25114
|
})]);
|
|
25066
25115
|
}
|
|
25067
25116
|
|
|
@@ -25108,7 +25157,7 @@ function renderSuffixIcon(h, _vm) {
|
|
|
25108
25157
|
|
|
25109
25158
|
if (isClearable) {
|
|
25110
25159
|
icons.push(h('i', {
|
|
25111
|
-
class: ['vxe-input--clear-icon',
|
|
25160
|
+
class: ['vxe-input--clear-icon', src_conf.icon.INPUT_CLEAR]
|
|
25112
25161
|
}));
|
|
25113
25162
|
}
|
|
25114
25163
|
|
|
@@ -25168,7 +25217,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25168
25217
|
clearable: {
|
|
25169
25218
|
type: Boolean,
|
|
25170
25219
|
default: function _default() {
|
|
25171
|
-
return
|
|
25220
|
+
return src_conf.input.clearable;
|
|
25172
25221
|
}
|
|
25173
25222
|
},
|
|
25174
25223
|
readonly: Boolean,
|
|
@@ -25185,7 +25234,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25185
25234
|
size: {
|
|
25186
25235
|
type: String,
|
|
25187
25236
|
default: function _default() {
|
|
25188
|
-
return
|
|
25237
|
+
return src_conf.input.size || src_conf.size;
|
|
25189
25238
|
}
|
|
25190
25239
|
},
|
|
25191
25240
|
multiple: Boolean,
|
|
@@ -25202,21 +25251,21 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25202
25251
|
exponential: {
|
|
25203
25252
|
type: Boolean,
|
|
25204
25253
|
default: function _default() {
|
|
25205
|
-
return
|
|
25254
|
+
return src_conf.input.exponential;
|
|
25206
25255
|
}
|
|
25207
25256
|
},
|
|
25208
25257
|
// number、integer、float、password
|
|
25209
25258
|
controls: {
|
|
25210
25259
|
type: Boolean,
|
|
25211
25260
|
default: function _default() {
|
|
25212
|
-
return
|
|
25261
|
+
return src_conf.input.controls;
|
|
25213
25262
|
}
|
|
25214
25263
|
},
|
|
25215
25264
|
// float
|
|
25216
25265
|
digits: {
|
|
25217
25266
|
type: [String, Number],
|
|
25218
25267
|
default: function _default() {
|
|
25219
|
-
return
|
|
25268
|
+
return src_conf.input.digits;
|
|
25220
25269
|
}
|
|
25221
25270
|
},
|
|
25222
25271
|
// date、week、month、year
|
|
@@ -25224,13 +25273,13 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25224
25273
|
startDate: {
|
|
25225
25274
|
type: [String, Number, Date],
|
|
25226
25275
|
default: function _default() {
|
|
25227
|
-
return
|
|
25276
|
+
return src_conf.input.startDate;
|
|
25228
25277
|
}
|
|
25229
25278
|
},
|
|
25230
25279
|
endDate: {
|
|
25231
25280
|
type: [String, Number, Date],
|
|
25232
25281
|
default: function _default() {
|
|
25233
|
-
return
|
|
25282
|
+
return src_conf.input.endDate;
|
|
25234
25283
|
}
|
|
25235
25284
|
},
|
|
25236
25285
|
minDate: [String, Number, Date],
|
|
@@ -25240,19 +25289,19 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25240
25289
|
startDay: {
|
|
25241
25290
|
type: [String, Number],
|
|
25242
25291
|
default: function _default() {
|
|
25243
|
-
return
|
|
25292
|
+
return src_conf.input.startDay;
|
|
25244
25293
|
}
|
|
25245
25294
|
},
|
|
25246
25295
|
labelFormat: {
|
|
25247
25296
|
type: String,
|
|
25248
25297
|
default: function _default() {
|
|
25249
|
-
return
|
|
25298
|
+
return src_conf.input.labelFormat;
|
|
25250
25299
|
}
|
|
25251
25300
|
},
|
|
25252
25301
|
valueFormat: {
|
|
25253
25302
|
type: String,
|
|
25254
25303
|
default: function _default() {
|
|
25255
|
-
return
|
|
25304
|
+
return src_conf.input.valueFormat;
|
|
25256
25305
|
}
|
|
25257
25306
|
},
|
|
25258
25307
|
editable: {
|
|
@@ -25262,20 +25311,20 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25262
25311
|
festivalMethod: {
|
|
25263
25312
|
type: Function,
|
|
25264
25313
|
default: function _default() {
|
|
25265
|
-
return
|
|
25314
|
+
return src_conf.input.festivalMethod;
|
|
25266
25315
|
}
|
|
25267
25316
|
},
|
|
25268
25317
|
disabledMethod: {
|
|
25269
25318
|
type: Function,
|
|
25270
25319
|
default: function _default() {
|
|
25271
|
-
return
|
|
25320
|
+
return src_conf.input.disabledMethod;
|
|
25272
25321
|
}
|
|
25273
25322
|
},
|
|
25274
25323
|
// week
|
|
25275
25324
|
selectDay: {
|
|
25276
25325
|
type: Number,
|
|
25277
25326
|
default: function _default() {
|
|
25278
|
-
return
|
|
25327
|
+
return src_conf.input.selectDay;
|
|
25279
25328
|
}
|
|
25280
25329
|
},
|
|
25281
25330
|
prefixIcon: String,
|
|
@@ -25284,7 +25333,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25284
25333
|
transfer: {
|
|
25285
25334
|
type: Boolean,
|
|
25286
25335
|
default: function _default() {
|
|
25287
|
-
return
|
|
25336
|
+
return src_conf.input.transfer;
|
|
25288
25337
|
}
|
|
25289
25338
|
}
|
|
25290
25339
|
},
|
|
@@ -25445,7 +25494,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25445
25494
|
},
|
|
25446
25495
|
dateLabelFormat: function dateLabelFormat() {
|
|
25447
25496
|
if (this.isDatePickerType) {
|
|
25448
|
-
return this.labelFormat ||
|
|
25497
|
+
return this.labelFormat || src_conf.i18n("vxe.input.date.labelFormat.".concat(this.type));
|
|
25449
25498
|
}
|
|
25450
25499
|
|
|
25451
25500
|
return null;
|
|
@@ -25468,14 +25517,14 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25468
25517
|
}
|
|
25469
25518
|
|
|
25470
25519
|
if (datePanelType === 'quarter') {
|
|
25471
|
-
return
|
|
25520
|
+
return src_conf.i18n('vxe.input.date.quarterLabel', [year]);
|
|
25472
25521
|
} else if (datePanelType === 'month') {
|
|
25473
|
-
return
|
|
25522
|
+
return src_conf.i18n('vxe.input.date.monthLabel', [year]);
|
|
25474
25523
|
} else if (datePanelType === 'year') {
|
|
25475
25524
|
return yearList.length ? "".concat(yearList[0].year, " - ").concat(yearList[yearList.length - 1].year) : '';
|
|
25476
25525
|
}
|
|
25477
25526
|
|
|
25478
|
-
return
|
|
25527
|
+
return src_conf.i18n('vxe.input.date.dayLabel', [year, month ? src_conf.i18n("vxe.input.date.m".concat(month)) : '-']);
|
|
25479
25528
|
}
|
|
25480
25529
|
|
|
25481
25530
|
return '';
|
|
@@ -25510,7 +25559,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25510
25559
|
return this.weekDatas.map(function (day) {
|
|
25511
25560
|
return {
|
|
25512
25561
|
value: day,
|
|
25513
|
-
label:
|
|
25562
|
+
label: src_conf.i18n("vxe.input.date.weeks.w".concat(day))
|
|
25514
25563
|
};
|
|
25515
25564
|
});
|
|
25516
25565
|
}
|
|
@@ -25520,7 +25569,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25520
25569
|
weekHeaders: function weekHeaders() {
|
|
25521
25570
|
if (this.isDatePickerType) {
|
|
25522
25571
|
return [{
|
|
25523
|
-
label:
|
|
25572
|
+
label: src_conf.i18n('vxe.input.date.weeks.w')
|
|
25524
25573
|
}].concat(this.dateHeaders);
|
|
25525
25574
|
}
|
|
25526
25575
|
|
|
@@ -27140,7 +27189,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
27140
27189
|
size: {
|
|
27141
27190
|
type: String,
|
|
27142
27191
|
default: function _default() {
|
|
27143
|
-
return
|
|
27192
|
+
return src_conf.checkbox.size || src_conf.size;
|
|
27144
27193
|
}
|
|
27145
27194
|
}
|
|
27146
27195
|
},
|
|
@@ -27257,6 +27306,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
27257
27306
|
|
|
27258
27307
|
|
|
27259
27308
|
|
|
27309
|
+
|
|
27260
27310
|
|
|
27261
27311
|
function isOptionVisible(option) {
|
|
27262
27312
|
return option.visible !== false;
|
|
@@ -27501,10 +27551,10 @@ function select_renderOpts(h, _vm) {
|
|
|
27501
27551
|
return [h('div', {
|
|
27502
27552
|
class: 'vxe-select--search-loading'
|
|
27503
27553
|
}, [h('i', {
|
|
27504
|
-
class: ['vxe-select--search-icon',
|
|
27554
|
+
class: ['vxe-select--search-icon', src_conf.icon.SELECT_LOADED]
|
|
27505
27555
|
}), h('span', {
|
|
27506
27556
|
class: 'vxe-select--search-text'
|
|
27507
|
-
},
|
|
27557
|
+
}, src_conf.i18n('vxe.select.loadingText'))])];
|
|
27508
27558
|
}
|
|
27509
27559
|
|
|
27510
27560
|
if (isGroup) {
|
|
@@ -27519,7 +27569,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27519
27569
|
|
|
27520
27570
|
return [h('div', {
|
|
27521
27571
|
class: 'vxe-select--empty-placeholder'
|
|
27522
|
-
}, _vm.emptyText ||
|
|
27572
|
+
}, _vm.emptyText || src_conf.i18n('vxe.select.emptyText'))];
|
|
27523
27573
|
}
|
|
27524
27574
|
|
|
27525
27575
|
/* harmony default export */ var src_select = ({
|
|
@@ -27535,7 +27585,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27535
27585
|
multiCharOverflow: {
|
|
27536
27586
|
type: [Number, String],
|
|
27537
27587
|
default: function _default() {
|
|
27538
|
-
return
|
|
27588
|
+
return src_conf.select.multiCharOverflow;
|
|
27539
27589
|
}
|
|
27540
27590
|
},
|
|
27541
27591
|
prefixIcon: String,
|
|
@@ -27549,7 +27599,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27549
27599
|
size: {
|
|
27550
27600
|
type: String,
|
|
27551
27601
|
default: function _default() {
|
|
27552
|
-
return
|
|
27602
|
+
return src_conf.select.size || src_conf.size;
|
|
27553
27603
|
}
|
|
27554
27604
|
},
|
|
27555
27605
|
filterable: Boolean,
|
|
@@ -27561,7 +27611,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27561
27611
|
optionId: {
|
|
27562
27612
|
type: String,
|
|
27563
27613
|
default: function _default() {
|
|
27564
|
-
return
|
|
27614
|
+
return src_conf.select.optionId;
|
|
27565
27615
|
}
|
|
27566
27616
|
},
|
|
27567
27617
|
// 已废弃,被 option-config.useKey 替换
|
|
@@ -27569,7 +27619,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27569
27619
|
transfer: {
|
|
27570
27620
|
type: Boolean,
|
|
27571
27621
|
default: function _default() {
|
|
27572
|
-
return
|
|
27622
|
+
return src_conf.select.transfer;
|
|
27573
27623
|
}
|
|
27574
27624
|
}
|
|
27575
27625
|
},
|
|
@@ -27630,7 +27680,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27630
27680
|
return this.groupPropsOpts.options || 'options';
|
|
27631
27681
|
},
|
|
27632
27682
|
optionOpts: function optionOpts() {
|
|
27633
|
-
return Object.assign({},
|
|
27683
|
+
return Object.assign({}, src_conf.select.optionConfig, this.optionConfig);
|
|
27634
27684
|
},
|
|
27635
27685
|
isGroup: function isGroup() {
|
|
27636
27686
|
return this.fullGroupList.some(function (item) {
|
|
@@ -27759,7 +27809,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27759
27809
|
disabled: disabled,
|
|
27760
27810
|
type: 'text',
|
|
27761
27811
|
prefixIcon: this.prefixIcon,
|
|
27762
|
-
suffixIcon: loading ?
|
|
27812
|
+
suffixIcon: loading ? src_conf.icon.SELECT_LOADED : visiblePanel ? src_conf.icon.SELECT_OPEN : src_conf.icon.SELECT_CLOSE,
|
|
27763
27813
|
value: this.selectLabel
|
|
27764
27814
|
},
|
|
27765
27815
|
on: {
|
|
@@ -27790,8 +27840,8 @@ function select_renderOpts(h, _vm) {
|
|
|
27790
27840
|
value: this.searchValue,
|
|
27791
27841
|
type: 'text',
|
|
27792
27842
|
clearable: true,
|
|
27793
|
-
placeholder:
|
|
27794
|
-
prefixIcon:
|
|
27843
|
+
placeholder: src_conf.i18n('vxe.select.search'),
|
|
27844
|
+
prefixIcon: src_conf.icon.INPUT_SEARCH
|
|
27795
27845
|
},
|
|
27796
27846
|
on: {
|
|
27797
27847
|
modelValue: this.modelSearchEvent,
|
|
@@ -27815,7 +27865,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27815
27865
|
}
|
|
27816
27866
|
|
|
27817
27867
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
27818
|
-
return slotFunc.call(this, params, h);
|
|
27868
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
27819
27869
|
}
|
|
27820
27870
|
}
|
|
27821
27871
|
|
|
@@ -28575,7 +28625,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28575
28625
|
res: 'modal',
|
|
28576
28626
|
props: {
|
|
28577
28627
|
value: storeData.visible,
|
|
28578
|
-
title:
|
|
28628
|
+
title: src_conf.i18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
28579
28629
|
width: 660,
|
|
28580
28630
|
mask: true,
|
|
28581
28631
|
lockView: true,
|
|
@@ -28598,20 +28648,20 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28598
28648
|
cellpadding: 0,
|
|
28599
28649
|
border: 0
|
|
28600
28650
|
}
|
|
28601
|
-
}, [h('tbody', [[isPrint ? _e() : h('tr', [h('td',
|
|
28651
|
+
}, [h('tbody', [[isPrint ? _e() : h('tr', [h('td', src_conf.i18n('vxe.export.expName')), h('td', [h('vxe-input', {
|
|
28602
28652
|
ref: 'filename',
|
|
28603
28653
|
props: {
|
|
28604
28654
|
value: defaultOptions.filename,
|
|
28605
28655
|
type: 'text',
|
|
28606
28656
|
clearable: true,
|
|
28607
|
-
placeholder:
|
|
28657
|
+
placeholder: src_conf.i18n('vxe.export.expNamePlaceholder')
|
|
28608
28658
|
},
|
|
28609
28659
|
on: {
|
|
28610
28660
|
modelValue: function modelValue(value) {
|
|
28611
28661
|
defaultOptions.filename = value;
|
|
28612
28662
|
}
|
|
28613
28663
|
}
|
|
28614
|
-
})])]), isPrint ? _e() : h('tr', [h('td',
|
|
28664
|
+
})])]), isPrint ? _e() : h('tr', [h('td', src_conf.i18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
28615
28665
|
props: {
|
|
28616
28666
|
value: defaultOptions.type
|
|
28617
28667
|
},
|
|
@@ -28624,23 +28674,23 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28624
28674
|
return h('vxe-option', {
|
|
28625
28675
|
props: {
|
|
28626
28676
|
value: item.value,
|
|
28627
|
-
label:
|
|
28677
|
+
label: src_conf.i18n(item.label)
|
|
28628
28678
|
}
|
|
28629
28679
|
});
|
|
28630
|
-
}))])]), isPrint || showSheet ? h('tr', [h('td',
|
|
28680
|
+
}))])]), isPrint || showSheet ? h('tr', [h('td', src_conf.i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
|
|
28631
28681
|
ref: 'sheetname',
|
|
28632
28682
|
props: {
|
|
28633
28683
|
value: defaultOptions.sheetName,
|
|
28634
28684
|
type: 'text',
|
|
28635
28685
|
clearable: true,
|
|
28636
|
-
placeholder:
|
|
28686
|
+
placeholder: src_conf.i18n('vxe.export.expSheetNamePlaceholder')
|
|
28637
28687
|
},
|
|
28638
28688
|
on: {
|
|
28639
28689
|
modelValue: function modelValue(value) {
|
|
28640
28690
|
defaultOptions.sheetName = value;
|
|
28641
28691
|
}
|
|
28642
28692
|
}
|
|
28643
|
-
})])]) : _e(), h('tr', [h('td',
|
|
28693
|
+
})])]) : _e(), h('tr', [h('td', src_conf.i18n('vxe.export.expMode')), h('td', [h('vxe-select', {
|
|
28644
28694
|
props: {
|
|
28645
28695
|
value: defaultOptions.mode
|
|
28646
28696
|
},
|
|
@@ -28653,10 +28703,10 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28653
28703
|
return h('vxe-option', {
|
|
28654
28704
|
props: {
|
|
28655
28705
|
value: item.value,
|
|
28656
|
-
label:
|
|
28706
|
+
label: src_conf.i18n(item.label)
|
|
28657
28707
|
}
|
|
28658
28708
|
});
|
|
28659
|
-
}))])]), h('tr', [h('td', [
|
|
28709
|
+
}))])]), h('tr', [h('td', [src_conf.i18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
28660
28710
|
class: 'vxe-export--panel-column'
|
|
28661
28711
|
}, [h('ul', {
|
|
28662
28712
|
class: 'vxe-export--panel-column-header'
|
|
@@ -28666,7 +28716,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28666
28716
|
'is--indeterminate': isIndeterminate
|
|
28667
28717
|
}],
|
|
28668
28718
|
attrs: {
|
|
28669
|
-
title:
|
|
28719
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
28670
28720
|
},
|
|
28671
28721
|
on: {
|
|
28672
28722
|
click: this.allColumnEvent
|
|
@@ -28679,15 +28729,15 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28679
28729
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
28680
28730
|
}), h('span', {
|
|
28681
28731
|
class: 'vxe-checkbox--label'
|
|
28682
|
-
},
|
|
28732
|
+
}, src_conf.i18n('vxe.export.expCurrentColumn'))])]), h('ul', {
|
|
28683
28733
|
class: 'vxe-export--panel-column-body'
|
|
28684
|
-
}, cols)])])]), h('tr', [h('td',
|
|
28734
|
+
}, cols)])])]), h('tr', [h('td', src_conf.i18n('vxe.export.expOpts')), h('td', [h('div', {
|
|
28685
28735
|
class: 'vxe-export--panel-option-row'
|
|
28686
28736
|
}, [h('vxe-checkbox', {
|
|
28687
28737
|
props: {
|
|
28688
28738
|
value: isHeader,
|
|
28689
|
-
title:
|
|
28690
|
-
content:
|
|
28739
|
+
title: src_conf.i18n('vxe.export.expHeaderTitle'),
|
|
28740
|
+
content: src_conf.i18n('vxe.export.expOptHeader')
|
|
28691
28741
|
},
|
|
28692
28742
|
on: {
|
|
28693
28743
|
input: function input(value) {
|
|
@@ -28698,8 +28748,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28698
28748
|
props: {
|
|
28699
28749
|
value: defaultOptions.isFooter,
|
|
28700
28750
|
disabled: !storeData.hasFooter,
|
|
28701
|
-
title:
|
|
28702
|
-
content:
|
|
28751
|
+
title: src_conf.i18n('vxe.export.expFooterTitle'),
|
|
28752
|
+
content: src_conf.i18n('vxe.export.expOptFooter')
|
|
28703
28753
|
},
|
|
28704
28754
|
on: {
|
|
28705
28755
|
input: function input(value) {
|
|
@@ -28709,8 +28759,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28709
28759
|
}), h('vxe-checkbox', {
|
|
28710
28760
|
props: {
|
|
28711
28761
|
value: defaultOptions.original,
|
|
28712
|
-
title:
|
|
28713
|
-
content:
|
|
28762
|
+
title: src_conf.i18n('vxe.export.expOriginalTitle'),
|
|
28763
|
+
content: src_conf.i18n('vxe.export.expOptOriginal')
|
|
28714
28764
|
},
|
|
28715
28765
|
on: {
|
|
28716
28766
|
input: function input(value) {
|
|
@@ -28723,8 +28773,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28723
28773
|
props: {
|
|
28724
28774
|
value: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
28725
28775
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
28726
|
-
title:
|
|
28727
|
-
content:
|
|
28776
|
+
title: src_conf.i18n('vxe.export.expColgroupTitle'),
|
|
28777
|
+
content: src_conf.i18n('vxe.export.expOptColgroup')
|
|
28728
28778
|
},
|
|
28729
28779
|
on: {
|
|
28730
28780
|
input: function input(value) {
|
|
@@ -28735,8 +28785,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28735
28785
|
props: {
|
|
28736
28786
|
value: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
28737
28787
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
28738
|
-
title:
|
|
28739
|
-
content:
|
|
28788
|
+
title: src_conf.i18n('vxe.export.expMergeTitle'),
|
|
28789
|
+
content: src_conf.i18n('vxe.export.expOptMerge')
|
|
28740
28790
|
},
|
|
28741
28791
|
on: {
|
|
28742
28792
|
input: function input(value) {
|
|
@@ -28747,8 +28797,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28747
28797
|
props: {
|
|
28748
28798
|
value: supportStyle ? defaultOptions.useStyle : false,
|
|
28749
28799
|
disabled: !supportStyle,
|
|
28750
|
-
title:
|
|
28751
|
-
content:
|
|
28800
|
+
title: src_conf.i18n('vxe.export.expUseStyleTitle'),
|
|
28801
|
+
content: src_conf.i18n('vxe.export.expOptUseStyle')
|
|
28752
28802
|
},
|
|
28753
28803
|
on: {
|
|
28754
28804
|
input: function input(value) {
|
|
@@ -28759,8 +28809,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28759
28809
|
props: {
|
|
28760
28810
|
value: hasTree ? defaultOptions.isAllExpand : false,
|
|
28761
28811
|
disabled: !hasTree,
|
|
28762
|
-
title:
|
|
28763
|
-
content:
|
|
28812
|
+
title: src_conf.i18n('vxe.export.expAllExpandTitle'),
|
|
28813
|
+
content: src_conf.i18n('vxe.export.expOptAllExpand')
|
|
28764
28814
|
},
|
|
28765
28815
|
on: {
|
|
28766
28816
|
input: function input(value) {
|
|
@@ -28771,7 +28821,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28771
28821
|
class: 'vxe-export--panel-btns'
|
|
28772
28822
|
}, [h('vxe-button', {
|
|
28773
28823
|
props: {
|
|
28774
|
-
content:
|
|
28824
|
+
content: src_conf.i18n('vxe.export.expCancel')
|
|
28775
28825
|
},
|
|
28776
28826
|
on: {
|
|
28777
28827
|
click: this.cancelEvent
|
|
@@ -28780,7 +28830,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28780
28830
|
ref: 'confirmBtn',
|
|
28781
28831
|
props: {
|
|
28782
28832
|
status: 'primary',
|
|
28783
|
-
content:
|
|
28833
|
+
content: src_conf.i18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm')
|
|
28784
28834
|
},
|
|
28785
28835
|
on: {
|
|
28786
28836
|
click: this.confirmEvent
|
|
@@ -28917,13 +28967,13 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28917
28967
|
strict: {
|
|
28918
28968
|
type: Boolean,
|
|
28919
28969
|
default: function _default() {
|
|
28920
|
-
return
|
|
28970
|
+
return src_conf.radio.strict;
|
|
28921
28971
|
}
|
|
28922
28972
|
},
|
|
28923
28973
|
size: {
|
|
28924
28974
|
type: String,
|
|
28925
28975
|
default: function _default() {
|
|
28926
|
-
return
|
|
28976
|
+
return src_conf.radio.size || src_conf.size;
|
|
28927
28977
|
}
|
|
28928
28978
|
}
|
|
28929
28979
|
},
|
|
@@ -29073,7 +29123,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29073
29123
|
var selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.find(typeList, function (item) {
|
|
29074
29124
|
return type === item.value;
|
|
29075
29125
|
});
|
|
29076
|
-
return selectItem ?
|
|
29126
|
+
return selectItem ? src_conf.i18n(selectItem.label) : '*.*';
|
|
29077
29127
|
}
|
|
29078
29128
|
|
|
29079
29129
|
return "*.".concat(typeList.map(function (item) {
|
|
@@ -29091,7 +29141,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29091
29141
|
res: 'modal',
|
|
29092
29142
|
props: {
|
|
29093
29143
|
value: storeData.visible,
|
|
29094
|
-
title:
|
|
29144
|
+
title: src_conf.i18n('vxe.import.impTitle'),
|
|
29095
29145
|
width: 440,
|
|
29096
29146
|
mask: true,
|
|
29097
29147
|
lockView: true,
|
|
@@ -29114,13 +29164,13 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29114
29164
|
cellpadding: 0,
|
|
29115
29165
|
border: 0
|
|
29116
29166
|
}
|
|
29117
|
-
}, [h('tbody', [h('tr', [h('td',
|
|
29167
|
+
}, [h('tbody', [h('tr', [h('td', src_conf.i18n('vxe.import.impFile')), h('td', [hasFile ? h('div', {
|
|
29118
29168
|
class: 'vxe-import-selected--file',
|
|
29119
29169
|
attrs: {
|
|
29120
29170
|
title: selectName
|
|
29121
29171
|
}
|
|
29122
29172
|
}, [h('span', selectName), h('i', {
|
|
29123
|
-
class:
|
|
29173
|
+
class: src_conf.icon.INPUT_CLEAR,
|
|
29124
29174
|
on: {
|
|
29125
29175
|
click: this.clearFileEvent
|
|
29126
29176
|
}
|
|
@@ -29133,7 +29183,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29133
29183
|
on: {
|
|
29134
29184
|
click: this.selectFileEvent
|
|
29135
29185
|
}
|
|
29136
|
-
},
|
|
29186
|
+
}, src_conf.i18n('vxe.import.impSelect'))])]), h('tr', [h('td', src_conf.i18n('vxe.import.impType')), h('td', parseTypeLabel)]), h('tr', [h('td', src_conf.i18n('vxe.import.impOpts')), h('td', [h('vxe-radio-group', {
|
|
29137
29187
|
props: {
|
|
29138
29188
|
value: defaultOptions.mode
|
|
29139
29189
|
},
|
|
@@ -29147,14 +29197,14 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29147
29197
|
props: {
|
|
29148
29198
|
label: item.value
|
|
29149
29199
|
}
|
|
29150
|
-
},
|
|
29200
|
+
}, src_conf.i18n(item.label));
|
|
29151
29201
|
}))])])])]), h('div', {
|
|
29152
29202
|
class: 'vxe-export--panel-btns'
|
|
29153
29203
|
}, [h('vxe-button', {
|
|
29154
29204
|
on: {
|
|
29155
29205
|
click: this.cancelEvent
|
|
29156
29206
|
}
|
|
29157
|
-
},
|
|
29207
|
+
}, src_conf.i18n('vxe.import.impCancel')), h('vxe-button', {
|
|
29158
29208
|
props: {
|
|
29159
29209
|
status: 'primary',
|
|
29160
29210
|
disabled: !hasFile
|
|
@@ -29162,7 +29212,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29162
29212
|
on: {
|
|
29163
29213
|
click: this.importEvent
|
|
29164
29214
|
}
|
|
29165
|
-
},
|
|
29215
|
+
}, src_conf.i18n('vxe.import.impConfirm'))])])]);
|
|
29166
29216
|
},
|
|
29167
29217
|
methods: {
|
|
29168
29218
|
clearFileEvent: function clearFileEvent() {
|
|
@@ -29994,7 +30044,7 @@ function downloadFile($xetable, opts, content) {
|
|
|
29994
30044
|
if (false) {}
|
|
29995
30045
|
|
|
29996
30046
|
v_x_e_table.modal.message({
|
|
29997
|
-
content:
|
|
30047
|
+
content: src_conf.i18n('vxe.table.expSuccess'),
|
|
29998
30048
|
status: 'success'
|
|
29999
30049
|
});
|
|
30000
30050
|
}
|
|
@@ -30297,7 +30347,7 @@ function handleImport($xetable, content, opts) {
|
|
|
30297
30347
|
if (false) {}
|
|
30298
30348
|
|
|
30299
30349
|
v_x_e_table.modal.message({
|
|
30300
|
-
content:
|
|
30350
|
+
content: src_conf.i18n('vxe.table.impSuccess', [rows.length]),
|
|
30301
30351
|
status: 'success'
|
|
30302
30352
|
});
|
|
30303
30353
|
}
|
|
@@ -30315,7 +30365,7 @@ function handleImport($xetable, content, opts) {
|
|
|
30315
30365
|
if (false) {}
|
|
30316
30366
|
|
|
30317
30367
|
v_x_e_table.modal.message({
|
|
30318
|
-
content:
|
|
30368
|
+
content: src_conf.i18n('vxe.error.impFields'),
|
|
30319
30369
|
status: 'error'
|
|
30320
30370
|
});
|
|
30321
30371
|
|
|
@@ -30342,7 +30392,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
30342
30392
|
if (false) {}
|
|
30343
30393
|
|
|
30344
30394
|
v_x_e_table.modal.message({
|
|
30345
|
-
content:
|
|
30395
|
+
content: src_conf.i18n('vxe.error.notType', [type]),
|
|
30346
30396
|
status: 'error'
|
|
30347
30397
|
});
|
|
30348
30398
|
}
|
|
@@ -30505,7 +30555,7 @@ function readLocalFile() {
|
|
|
30505
30555
|
if (false) {}
|
|
30506
30556
|
|
|
30507
30557
|
v_x_e_table.modal.message({
|
|
30508
|
-
content:
|
|
30558
|
+
content: src_conf.i18n('vxe.error.notType', [errType]),
|
|
30509
30559
|
status: 'error'
|
|
30510
30560
|
});
|
|
30511
30561
|
}
|
|
@@ -30879,7 +30929,7 @@ var mixin_convertToRows = function convertToRows(originColumns) {
|
|
|
30879
30929
|
opts.colgroups = mixin_convertToRows(groups);
|
|
30880
30930
|
|
|
30881
30931
|
if (!opts.filename) {
|
|
30882
|
-
opts.filename =
|
|
30932
|
+
opts.filename = src_conf.i18n(opts.original ? 'vxe.table.expOriginFilename' : 'vxe.table.expFilename', [external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toDateString(Date.now(), 'yyyyMMddHHmmss')]);
|
|
30883
30933
|
}
|
|
30884
30934
|
|
|
30885
30935
|
if (!opts.sheetName) {
|
|
@@ -31056,7 +31106,7 @@ var mixin_convertToRows = function convertToRows(originColumns) {
|
|
|
31056
31106
|
if (isTree) {
|
|
31057
31107
|
if (defOpts.message) {
|
|
31058
31108
|
v_x_e_table.modal.message({
|
|
31059
|
-
content:
|
|
31109
|
+
content: src_conf.i18n('vxe.error.treeNotImp'),
|
|
31060
31110
|
status: 'error'
|
|
31061
31111
|
});
|
|
31062
31112
|
}
|
|
@@ -31861,7 +31911,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
31861
31911
|
cb(validRest);
|
|
31862
31912
|
resolve();
|
|
31863
31913
|
} else {
|
|
31864
|
-
if (
|
|
31914
|
+
if (src_conf.validToReject === 'obsolete') {
|
|
31865
31915
|
// 已废弃,校验失败将不会执行catch
|
|
31866
31916
|
reject(validRest);
|
|
31867
31917
|
} else {
|
|
@@ -32707,6 +32757,7 @@ var Colgroup = Object.assign(src_group, {
|
|
|
32707
32757
|
|
|
32708
32758
|
|
|
32709
32759
|
|
|
32760
|
+
|
|
32710
32761
|
|
|
32711
32762
|
|
|
32712
32763
|
var grid_methods = {};
|
|
@@ -32881,7 +32932,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32881
32932
|
size: {
|
|
32882
32933
|
type: String,
|
|
32883
32934
|
default: function _default() {
|
|
32884
|
-
return
|
|
32935
|
+
return src_conf.grid.size || src_conf.size;
|
|
32885
32936
|
}
|
|
32886
32937
|
}
|
|
32887
32938
|
}),
|
|
@@ -32902,7 +32953,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32902
32953
|
tZindex: 0,
|
|
32903
32954
|
tablePage: {
|
|
32904
32955
|
total: 0,
|
|
32905
|
-
pageSize:
|
|
32956
|
+
pageSize: src_conf.pager.pageSize || 10,
|
|
32906
32957
|
currentPage: 1
|
|
32907
32958
|
}
|
|
32908
32959
|
};
|
|
@@ -32912,19 +32963,19 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32912
32963
|
return this.proxyOpts.message !== false;
|
|
32913
32964
|
},
|
|
32914
32965
|
proxyOpts: function proxyOpts() {
|
|
32915
|
-
return Object.assign({},
|
|
32966
|
+
return Object.assign({}, src_conf.grid.proxyConfig, this.proxyConfig);
|
|
32916
32967
|
},
|
|
32917
32968
|
pagerOpts: function pagerOpts() {
|
|
32918
|
-
return Object.assign({},
|
|
32969
|
+
return Object.assign({}, src_conf.grid.pagerConfig, this.pagerConfig);
|
|
32919
32970
|
},
|
|
32920
32971
|
formOpts: function formOpts() {
|
|
32921
|
-
return Object.assign({},
|
|
32972
|
+
return Object.assign({}, src_conf.grid.formConfig, this.formConfig);
|
|
32922
32973
|
},
|
|
32923
32974
|
toolbarOpts: function toolbarOpts() {
|
|
32924
|
-
return Object.assign({},
|
|
32975
|
+
return Object.assign({}, src_conf.grid.toolbarConfig, this.toolbarConfig || this.toolbar);
|
|
32925
32976
|
},
|
|
32926
32977
|
zoomOpts: function zoomOpts() {
|
|
32927
|
-
return Object.assign({},
|
|
32978
|
+
return Object.assign({}, src_conf.grid.zoomConfig, this.zoomConfig);
|
|
32928
32979
|
},
|
|
32929
32980
|
renderStyle: function renderStyle() {
|
|
32930
32981
|
return this.isZMax ? {
|
|
@@ -33122,7 +33173,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33122
33173
|
}
|
|
33123
33174
|
|
|
33124
33175
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
33125
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
33176
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
33126
33177
|
}
|
|
33127
33178
|
}
|
|
33128
33179
|
|
|
@@ -33521,7 +33572,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33521
33572
|
|
|
33522
33573
|
v_x_e_table.modal.message({
|
|
33523
33574
|
id: code,
|
|
33524
|
-
content:
|
|
33575
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33525
33576
|
status: 'warning'
|
|
33526
33577
|
});
|
|
33527
33578
|
}
|
|
@@ -33624,7 +33675,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33624
33675
|
|
|
33625
33676
|
v_x_e_table.modal.message({
|
|
33626
33677
|
id: code,
|
|
33627
|
-
content:
|
|
33678
|
+
content: src_conf.i18n('vxe.grid.dataUnchanged'),
|
|
33628
33679
|
status: 'info'
|
|
33629
33680
|
});
|
|
33630
33681
|
}
|
|
@@ -33663,7 +33714,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33663
33714
|
msg = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(rest, proxyProps.message);
|
|
33664
33715
|
}
|
|
33665
33716
|
|
|
33666
|
-
return msg ||
|
|
33717
|
+
return msg || src_conf.i18n(defaultMsg);
|
|
33667
33718
|
},
|
|
33668
33719
|
handleDeleteRow: function handleDeleteRow(code, alertKey, callback) {
|
|
33669
33720
|
var selectRecords = this.getCheckboxRecords();
|
|
@@ -33672,7 +33723,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33672
33723
|
if (selectRecords.length) {
|
|
33673
33724
|
return v_x_e_table.modal.confirm({
|
|
33674
33725
|
id: "cfm_".concat(code),
|
|
33675
|
-
content:
|
|
33726
|
+
content: src_conf.i18n(alertKey),
|
|
33676
33727
|
escClosable: true
|
|
33677
33728
|
}).then(function (type) {
|
|
33678
33729
|
if (type === 'confirm') {
|
|
@@ -33685,7 +33736,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33685
33736
|
|
|
33686
33737
|
v_x_e_table.modal.message({
|
|
33687
33738
|
id: "msg_".concat(code),
|
|
33688
|
-
content:
|
|
33739
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33689
33740
|
status: 'warning'
|
|
33690
33741
|
});
|
|
33691
33742
|
}
|
|
@@ -33763,7 +33814,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33763
33814
|
|
|
33764
33815
|
v_x_e_table.modal.message({
|
|
33765
33816
|
id: code,
|
|
33766
|
-
content:
|
|
33817
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33767
33818
|
status: 'warning'
|
|
33768
33819
|
});
|
|
33769
33820
|
}
|
|
@@ -34188,10 +34239,10 @@ function renderCustoms(h, _vm) {
|
|
|
34188
34239
|
}, [h('vxe-button', {
|
|
34189
34240
|
props: {
|
|
34190
34241
|
circle: true,
|
|
34191
|
-
icon: customOpts.icon ||
|
|
34242
|
+
icon: customOpts.icon || src_conf.icon.TOOLBAR_TOOLS_CUSTOM
|
|
34192
34243
|
},
|
|
34193
34244
|
attrs: {
|
|
34194
|
-
title:
|
|
34245
|
+
title: src_conf.i18n('vxe.toolbar.custom')
|
|
34195
34246
|
},
|
|
34196
34247
|
on: customBtnOns
|
|
34197
34248
|
}), h('div', {
|
|
@@ -34204,7 +34255,7 @@ function renderCustoms(h, _vm) {
|
|
|
34204
34255
|
'is--indeterminate': customStore.isIndeterminate
|
|
34205
34256
|
}],
|
|
34206
34257
|
attrs: {
|
|
34207
|
-
title:
|
|
34258
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
34208
34259
|
},
|
|
34209
34260
|
on: {
|
|
34210
34261
|
click: _vm.allCustomEvent
|
|
@@ -34217,7 +34268,7 @@ function renderCustoms(h, _vm) {
|
|
|
34217
34268
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
34218
34269
|
}), h('span', {
|
|
34219
34270
|
class: 'vxe-checkbox--label'
|
|
34220
|
-
},
|
|
34271
|
+
}, src_conf.i18n('vxe.toolbar.customAll'))])]), h('ul', {
|
|
34221
34272
|
class: 'vxe-custom--body',
|
|
34222
34273
|
on: customWrapperOns
|
|
34223
34274
|
}, cols), customOpts.isFooter === false ? null : h('div', {
|
|
@@ -34227,12 +34278,12 @@ function renderCustoms(h, _vm) {
|
|
|
34227
34278
|
on: {
|
|
34228
34279
|
click: _vm.confirmCustomEvent
|
|
34229
34280
|
}
|
|
34230
|
-
},
|
|
34281
|
+
}, src_conf.i18n('vxe.toolbar.customConfirm')), h('button', {
|
|
34231
34282
|
class: 'btn--reset',
|
|
34232
34283
|
on: {
|
|
34233
34284
|
click: _vm.resetCustomEvent
|
|
34234
34285
|
}
|
|
34235
|
-
},
|
|
34286
|
+
}, src_conf.i18n('vxe.toolbar.customRestore'))])])]);
|
|
34236
34287
|
}
|
|
34237
34288
|
|
|
34238
34289
|
/* harmony default export */ var src_toolbar = ({
|
|
@@ -34249,25 +34300,25 @@ function renderCustoms(h, _vm) {
|
|
|
34249
34300
|
buttons: {
|
|
34250
34301
|
type: Array,
|
|
34251
34302
|
default: function _default() {
|
|
34252
|
-
return
|
|
34303
|
+
return src_conf.toolbar.buttons;
|
|
34253
34304
|
}
|
|
34254
34305
|
},
|
|
34255
34306
|
tools: {
|
|
34256
34307
|
type: Array,
|
|
34257
34308
|
default: function _default() {
|
|
34258
|
-
return
|
|
34309
|
+
return src_conf.toolbar.tools;
|
|
34259
34310
|
}
|
|
34260
34311
|
},
|
|
34261
34312
|
perfect: {
|
|
34262
34313
|
type: Boolean,
|
|
34263
34314
|
default: function _default() {
|
|
34264
|
-
return
|
|
34315
|
+
return src_conf.toolbar.perfect;
|
|
34265
34316
|
}
|
|
34266
34317
|
},
|
|
34267
34318
|
size: {
|
|
34268
34319
|
type: String,
|
|
34269
34320
|
default: function _default() {
|
|
34270
|
-
return
|
|
34321
|
+
return src_conf.toolbar.size || src_conf.size;
|
|
34271
34322
|
}
|
|
34272
34323
|
},
|
|
34273
34324
|
className: [String, Function]
|
|
@@ -34291,22 +34342,22 @@ function renderCustoms(h, _vm) {
|
|
|
34291
34342
|
},
|
|
34292
34343
|
computed: {
|
|
34293
34344
|
refreshOpts: function refreshOpts() {
|
|
34294
|
-
return Object.assign({},
|
|
34345
|
+
return Object.assign({}, src_conf.toolbar.refresh, this.refresh);
|
|
34295
34346
|
},
|
|
34296
34347
|
importOpts: function importOpts() {
|
|
34297
|
-
return Object.assign({},
|
|
34348
|
+
return Object.assign({}, src_conf.toolbar.import, this.import);
|
|
34298
34349
|
},
|
|
34299
34350
|
exportOpts: function exportOpts() {
|
|
34300
|
-
return Object.assign({},
|
|
34351
|
+
return Object.assign({}, src_conf.toolbar.export, this.export);
|
|
34301
34352
|
},
|
|
34302
34353
|
printOpts: function printOpts() {
|
|
34303
|
-
return Object.assign({},
|
|
34354
|
+
return Object.assign({}, src_conf.toolbar.print, this.print);
|
|
34304
34355
|
},
|
|
34305
34356
|
zoomOpts: function zoomOpts() {
|
|
34306
|
-
return Object.assign({},
|
|
34357
|
+
return Object.assign({}, src_conf.toolbar.zoom, this.zoom);
|
|
34307
34358
|
},
|
|
34308
34359
|
customOpts: function customOpts() {
|
|
34309
|
-
return Object.assign({},
|
|
34360
|
+
return Object.assign({}, src_conf.toolbar.custom, this.custom);
|
|
34310
34361
|
}
|
|
34311
34362
|
},
|
|
34312
34363
|
created: function created() {
|
|
@@ -34363,10 +34414,10 @@ function renderCustoms(h, _vm) {
|
|
|
34363
34414
|
}, [this.import ? h('vxe-button', {
|
|
34364
34415
|
props: {
|
|
34365
34416
|
circle: true,
|
|
34366
|
-
icon: importOpts.icon ||
|
|
34417
|
+
icon: importOpts.icon || src_conf.icon.TOOLBAR_TOOLS_IMPORT
|
|
34367
34418
|
},
|
|
34368
34419
|
attrs: {
|
|
34369
|
-
title:
|
|
34420
|
+
title: src_conf.i18n('vxe.toolbar.import')
|
|
34370
34421
|
},
|
|
34371
34422
|
on: {
|
|
34372
34423
|
click: this.importEvent
|
|
@@ -34374,10 +34425,10 @@ function renderCustoms(h, _vm) {
|
|
|
34374
34425
|
}) : _e(), this.export ? h('vxe-button', {
|
|
34375
34426
|
props: {
|
|
34376
34427
|
circle: true,
|
|
34377
|
-
icon: exportOpts.icon ||
|
|
34428
|
+
icon: exportOpts.icon || src_conf.icon.TOOLBAR_TOOLS_EXPORT
|
|
34378
34429
|
},
|
|
34379
34430
|
attrs: {
|
|
34380
|
-
title:
|
|
34431
|
+
title: src_conf.i18n('vxe.toolbar.export')
|
|
34381
34432
|
},
|
|
34382
34433
|
on: {
|
|
34383
34434
|
click: this.exportEvent
|
|
@@ -34385,10 +34436,10 @@ function renderCustoms(h, _vm) {
|
|
|
34385
34436
|
}) : _e(), this.print ? h('vxe-button', {
|
|
34386
34437
|
props: {
|
|
34387
34438
|
circle: true,
|
|
34388
|
-
icon: this.printOpts.icon ||
|
|
34439
|
+
icon: this.printOpts.icon || src_conf.icon.TOOLBAR_TOOLS_PRINT
|
|
34389
34440
|
},
|
|
34390
34441
|
attrs: {
|
|
34391
|
-
title:
|
|
34442
|
+
title: src_conf.i18n('vxe.toolbar.print')
|
|
34392
34443
|
},
|
|
34393
34444
|
on: {
|
|
34394
34445
|
click: this.printEvent
|
|
@@ -34396,10 +34447,10 @@ function renderCustoms(h, _vm) {
|
|
|
34396
34447
|
}) : _e(), refresh ? h('vxe-button', {
|
|
34397
34448
|
props: {
|
|
34398
34449
|
circle: true,
|
|
34399
|
-
icon: this.isRefresh ? refreshOpts.iconLoading ||
|
|
34450
|
+
icon: this.isRefresh ? refreshOpts.iconLoading || src_conf.icon.TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || src_conf.icon.TOOLBAR_TOOLS_REFRESH
|
|
34400
34451
|
},
|
|
34401
34452
|
attrs: {
|
|
34402
|
-
title:
|
|
34453
|
+
title: src_conf.i18n('vxe.toolbar.refresh')
|
|
34403
34454
|
},
|
|
34404
34455
|
on: {
|
|
34405
34456
|
click: this.refreshEvent
|
|
@@ -34407,10 +34458,10 @@ function renderCustoms(h, _vm) {
|
|
|
34407
34458
|
}) : _e(), zoom && $xegrid ? h('vxe-button', {
|
|
34408
34459
|
props: {
|
|
34409
34460
|
circle: true,
|
|
34410
|
-
icon: $xegrid.isMaximized() ? zoomOpts.iconOut ||
|
|
34461
|
+
icon: $xegrid.isMaximized() ? zoomOpts.iconOut || src_conf.icon.TOOLBAR_TOOLS_ZOOM_OUT : zoomOpts.iconIn || src_conf.icon.TOOLBAR_TOOLS_ZOOM_IN
|
|
34411
34462
|
},
|
|
34412
34463
|
attrs: {
|
|
34413
|
-
title:
|
|
34464
|
+
title: src_conf.i18n("vxe.toolbar.zoom".concat($xegrid.isMaximized() ? 'Out' : 'In'))
|
|
34414
34465
|
},
|
|
34415
34466
|
on: {
|
|
34416
34467
|
click: $xegrid.triggerZoomEvent
|
|
@@ -34744,14 +34795,14 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34744
34795
|
size: {
|
|
34745
34796
|
type: String,
|
|
34746
34797
|
default: function _default() {
|
|
34747
|
-
return
|
|
34798
|
+
return src_conf.pager.size || src_conf.size;
|
|
34748
34799
|
}
|
|
34749
34800
|
},
|
|
34750
34801
|
// 自定义布局
|
|
34751
34802
|
layouts: {
|
|
34752
34803
|
type: Array,
|
|
34753
34804
|
default: function _default() {
|
|
34754
|
-
return
|
|
34805
|
+
return src_conf.pager.layouts || ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total'];
|
|
34755
34806
|
}
|
|
34756
34807
|
},
|
|
34757
34808
|
// 当前页
|
|
@@ -34765,7 +34816,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34765
34816
|
pageSize: {
|
|
34766
34817
|
type: Number,
|
|
34767
34818
|
default: function _default() {
|
|
34768
|
-
return
|
|
34819
|
+
return src_conf.pager.pageSize || 10;
|
|
34769
34820
|
}
|
|
34770
34821
|
},
|
|
34771
34822
|
// 总条数
|
|
@@ -34777,55 +34828,55 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34777
34828
|
pagerCount: {
|
|
34778
34829
|
type: Number,
|
|
34779
34830
|
default: function _default() {
|
|
34780
|
-
return
|
|
34831
|
+
return src_conf.pager.pagerCount || 7;
|
|
34781
34832
|
}
|
|
34782
34833
|
},
|
|
34783
34834
|
// 每页大小选项列表
|
|
34784
34835
|
pageSizes: {
|
|
34785
34836
|
type: Array,
|
|
34786
34837
|
default: function _default() {
|
|
34787
|
-
return
|
|
34838
|
+
return src_conf.pager.pageSizes || [10, 15, 20, 50, 100];
|
|
34788
34839
|
}
|
|
34789
34840
|
},
|
|
34790
34841
|
// 列对其方式
|
|
34791
34842
|
align: {
|
|
34792
34843
|
type: String,
|
|
34793
34844
|
default: function _default() {
|
|
34794
|
-
return
|
|
34845
|
+
return src_conf.pager.align;
|
|
34795
34846
|
}
|
|
34796
34847
|
},
|
|
34797
34848
|
// 带边框
|
|
34798
34849
|
border: {
|
|
34799
34850
|
type: Boolean,
|
|
34800
34851
|
default: function _default() {
|
|
34801
|
-
return
|
|
34852
|
+
return src_conf.pager.border;
|
|
34802
34853
|
}
|
|
34803
34854
|
},
|
|
34804
34855
|
// 带背景颜色
|
|
34805
34856
|
background: {
|
|
34806
34857
|
type: Boolean,
|
|
34807
34858
|
default: function _default() {
|
|
34808
|
-
return
|
|
34859
|
+
return src_conf.pager.background;
|
|
34809
34860
|
}
|
|
34810
34861
|
},
|
|
34811
34862
|
// 配套的样式
|
|
34812
34863
|
perfect: {
|
|
34813
34864
|
type: Boolean,
|
|
34814
34865
|
default: function _default() {
|
|
34815
|
-
return
|
|
34866
|
+
return src_conf.pager.perfect;
|
|
34816
34867
|
}
|
|
34817
34868
|
},
|
|
34818
34869
|
// 当只有一页时隐藏
|
|
34819
34870
|
autoHidden: {
|
|
34820
34871
|
type: Boolean,
|
|
34821
34872
|
default: function _default() {
|
|
34822
|
-
return
|
|
34873
|
+
return src_conf.pager.autoHidden;
|
|
34823
34874
|
}
|
|
34824
34875
|
},
|
|
34825
34876
|
transfer: {
|
|
34826
34877
|
type: Boolean,
|
|
34827
34878
|
default: function _default() {
|
|
34828
|
-
return
|
|
34879
|
+
return src_conf.pager.transfer;
|
|
34829
34880
|
}
|
|
34830
34881
|
},
|
|
34831
34882
|
className: [String, Function],
|
|
@@ -34873,7 +34924,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34873
34924
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isNumber(item)) {
|
|
34874
34925
|
return {
|
|
34875
34926
|
value: item,
|
|
34876
|
-
label: "".concat(
|
|
34927
|
+
label: "".concat(src_conf.i18n('vxe.pager.pagesize', [item]))
|
|
34877
34928
|
};
|
|
34878
34929
|
}
|
|
34879
34930
|
|
|
@@ -34937,13 +34988,13 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34937
34988
|
}],
|
|
34938
34989
|
attrs: {
|
|
34939
34990
|
type: 'button',
|
|
34940
|
-
title:
|
|
34991
|
+
title: src_conf.i18n('vxe.pager.prevPage')
|
|
34941
34992
|
},
|
|
34942
34993
|
on: {
|
|
34943
34994
|
click: this.prevPage
|
|
34944
34995
|
}
|
|
34945
34996
|
}, [h('i', {
|
|
34946
|
-
class: ['vxe-pager--btn-icon', this.iconPrevPage ||
|
|
34997
|
+
class: ['vxe-pager--btn-icon', this.iconPrevPage || src_conf.icon.PAGER_PREV_PAGE]
|
|
34947
34998
|
})]);
|
|
34948
34999
|
},
|
|
34949
35000
|
// 向上翻页
|
|
@@ -34955,15 +35006,15 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34955
35006
|
}],
|
|
34956
35007
|
attrs: {
|
|
34957
35008
|
type: 'button',
|
|
34958
|
-
title:
|
|
35009
|
+
title: src_conf.i18n('vxe.pager.prevJump')
|
|
34959
35010
|
},
|
|
34960
35011
|
on: {
|
|
34961
35012
|
click: this.prevJump
|
|
34962
35013
|
}
|
|
34963
35014
|
}, [tagName ? h('i', {
|
|
34964
|
-
class: ['vxe-pager--jump-more-icon', this.iconJumpMore ||
|
|
35015
|
+
class: ['vxe-pager--jump-more-icon', this.iconJumpMore || src_conf.icon.PAGER_JUMP_MORE]
|
|
34965
35016
|
}) : null, h('i', {
|
|
34966
|
-
class: ['vxe-pager--jump-icon', this.iconJumpPrev ||
|
|
35017
|
+
class: ['vxe-pager--jump-icon', this.iconJumpPrev || src_conf.icon.PAGER_JUMP_PREV]
|
|
34967
35018
|
})]);
|
|
34968
35019
|
},
|
|
34969
35020
|
// number
|
|
@@ -34987,15 +35038,15 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34987
35038
|
}],
|
|
34988
35039
|
attrs: {
|
|
34989
35040
|
type: 'button',
|
|
34990
|
-
title:
|
|
35041
|
+
title: src_conf.i18n('vxe.pager.nextJump')
|
|
34991
35042
|
},
|
|
34992
35043
|
on: {
|
|
34993
35044
|
click: this.nextJump
|
|
34994
35045
|
}
|
|
34995
35046
|
}, [tagName ? h('i', {
|
|
34996
|
-
class: ['vxe-pager--jump-more-icon', this.iconJumpMore ||
|
|
35047
|
+
class: ['vxe-pager--jump-more-icon', this.iconJumpMore || src_conf.icon.PAGER_JUMP_MORE]
|
|
34997
35048
|
}) : null, h('i', {
|
|
34998
|
-
class: ['vxe-pager--jump-icon', this.iconJumpNext ||
|
|
35049
|
+
class: ['vxe-pager--jump-icon', this.iconJumpNext || src_conf.icon.PAGER_JUMP_NEXT]
|
|
34999
35050
|
})]);
|
|
35000
35051
|
},
|
|
35001
35052
|
// 下一页
|
|
@@ -35006,13 +35057,13 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35006
35057
|
}],
|
|
35007
35058
|
attrs: {
|
|
35008
35059
|
type: 'button',
|
|
35009
|
-
title:
|
|
35060
|
+
title: src_conf.i18n('vxe.pager.nextPage')
|
|
35010
35061
|
},
|
|
35011
35062
|
on: {
|
|
35012
35063
|
click: this.nextPage
|
|
35013
35064
|
}
|
|
35014
35065
|
}, [h('i', {
|
|
35015
|
-
class: ['vxe-pager--btn-icon', this.iconNextPage ||
|
|
35066
|
+
class: ['vxe-pager--btn-icon', this.iconNextPage || src_conf.icon.PAGER_NEXT_PAGE]
|
|
35016
35067
|
})]);
|
|
35017
35068
|
},
|
|
35018
35069
|
// sizes
|
|
@@ -35046,7 +35097,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35046
35097
|
class: 'vxe-pager--jump'
|
|
35047
35098
|
}, [isFull ? h('span', {
|
|
35048
35099
|
class: 'vxe-pager--goto-text'
|
|
35049
|
-
},
|
|
35100
|
+
}, src_conf.i18n('vxe.pager.goto')) : null, h('input', {
|
|
35050
35101
|
class: 'vxe-pager--goto',
|
|
35051
35102
|
domProps: {
|
|
35052
35103
|
value: this.inpCurrPage
|
|
@@ -35062,7 +35113,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35062
35113
|
}
|
|
35063
35114
|
}), isFull ? h('span', {
|
|
35064
35115
|
class: 'vxe-pager--classifier-text'
|
|
35065
|
-
},
|
|
35116
|
+
}, src_conf.i18n('vxe.pager.pageClassifier')) : null]);
|
|
35066
35117
|
},
|
|
35067
35118
|
// PageCount
|
|
35068
35119
|
renderPageCount: function renderPageCount(h) {
|
|
@@ -35076,7 +35127,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35076
35127
|
renderTotal: function renderTotal(h) {
|
|
35077
35128
|
return h('span', {
|
|
35078
35129
|
class: 'vxe-pager--total'
|
|
35079
|
-
},
|
|
35130
|
+
}, src_conf.i18n('vxe.pager.total', [this.total]));
|
|
35080
35131
|
},
|
|
35081
35132
|
// number
|
|
35082
35133
|
renderPageBtn: function renderPageBtn(h, showJump) {
|
|
@@ -35254,7 +35305,7 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
35254
35305
|
size: {
|
|
35255
35306
|
type: String,
|
|
35256
35307
|
default: function _default() {
|
|
35257
|
-
return
|
|
35308
|
+
return src_conf.checkbox.size || src_conf.size;
|
|
35258
35309
|
}
|
|
35259
35310
|
}
|
|
35260
35311
|
},
|
|
@@ -35340,13 +35391,13 @@ var Radio = Object.assign(src_radio, {
|
|
|
35340
35391
|
strict: {
|
|
35341
35392
|
type: Boolean,
|
|
35342
35393
|
default: function _default() {
|
|
35343
|
-
return
|
|
35394
|
+
return src_conf.radioGroup.strict;
|
|
35344
35395
|
}
|
|
35345
35396
|
},
|
|
35346
35397
|
size: {
|
|
35347
35398
|
type: String,
|
|
35348
35399
|
default: function _default() {
|
|
35349
|
-
return
|
|
35400
|
+
return src_conf.radioGroup.size || src_conf.size;
|
|
35350
35401
|
}
|
|
35351
35402
|
}
|
|
35352
35403
|
},
|
|
@@ -35417,13 +35468,13 @@ var RadioGroup = Object.assign(radio_src_group, {
|
|
|
35417
35468
|
strict: {
|
|
35418
35469
|
type: Boolean,
|
|
35419
35470
|
default: function _default() {
|
|
35420
|
-
return
|
|
35471
|
+
return src_conf.radioButton.strict;
|
|
35421
35472
|
}
|
|
35422
35473
|
},
|
|
35423
35474
|
size: {
|
|
35424
35475
|
type: String,
|
|
35425
35476
|
default: function _default() {
|
|
35426
|
-
return
|
|
35477
|
+
return src_conf.radioButton.size || src_conf.size;
|
|
35427
35478
|
}
|
|
35428
35479
|
}
|
|
35429
35480
|
},
|
|
@@ -35595,14 +35646,14 @@ var autoTxtElem;
|
|
|
35595
35646
|
resize: {
|
|
35596
35647
|
type: String,
|
|
35597
35648
|
default: function _default() {
|
|
35598
|
-
return
|
|
35649
|
+
return src_conf.textarea.resize;
|
|
35599
35650
|
}
|
|
35600
35651
|
},
|
|
35601
35652
|
className: String,
|
|
35602
35653
|
size: {
|
|
35603
35654
|
type: String,
|
|
35604
35655
|
default: function _default() {
|
|
35605
|
-
return
|
|
35656
|
+
return src_conf.textarea.size || src_conf.size;
|
|
35606
35657
|
}
|
|
35607
35658
|
}
|
|
35608
35659
|
},
|
|
@@ -35644,7 +35695,7 @@ var autoTxtElem;
|
|
|
35644
35695
|
return Object.assign({
|
|
35645
35696
|
minRows: 1,
|
|
35646
35697
|
maxRows: 10
|
|
35647
|
-
},
|
|
35698
|
+
}, src_conf.textarea.autosize, this.autosize);
|
|
35648
35699
|
}
|
|
35649
35700
|
},
|
|
35650
35701
|
watch: {
|
|
@@ -35868,7 +35919,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35868
35919
|
size: {
|
|
35869
35920
|
type: String,
|
|
35870
35921
|
default: function _default() {
|
|
35871
|
-
return
|
|
35922
|
+
return src_conf.button.size || src_conf.size;
|
|
35872
35923
|
}
|
|
35873
35924
|
},
|
|
35874
35925
|
name: [String, Number],
|
|
@@ -35885,7 +35936,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35885
35936
|
transfer: {
|
|
35886
35937
|
type: Boolean,
|
|
35887
35938
|
default: function _default() {
|
|
35888
|
-
return
|
|
35939
|
+
return src_conf.button.transfer;
|
|
35889
35940
|
}
|
|
35890
35941
|
}
|
|
35891
35942
|
},
|
|
@@ -35968,7 +36019,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35968
36019
|
};
|
|
35969
36020
|
}))
|
|
35970
36021
|
}, this.renderContent(h).concat([h('i', {
|
|
35971
|
-
class: "vxe-button--dropdown-arrow ".concat(
|
|
36022
|
+
class: "vxe-button--dropdown-arrow ".concat(src_conf.icon.BUTTON_DROPDOWN)
|
|
35972
36023
|
})])), h('div', {
|
|
35973
36024
|
ref: 'panel',
|
|
35974
36025
|
class: ['vxe-button--dropdown-panel', (_ref3 = {}, _defineProperty(_ref3, "size--".concat(vSize), vSize), _defineProperty(_ref3, 'animat--leave', animatVisible), _defineProperty(_ref3, 'animat--enter', showPanel), _ref3)],
|
|
@@ -36011,8 +36062,12 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36011
36062
|
|
|
36012
36063
|
if (loading) {
|
|
36013
36064
|
contents.push(h('i', {
|
|
36014
|
-
class: ['vxe-button--loading-icon',
|
|
36065
|
+
class: ['vxe-button--loading-icon', src_conf.icon.BUTTON_LOADING]
|
|
36015
36066
|
}));
|
|
36067
|
+
} else if ($scopedSlots.icon) {
|
|
36068
|
+
contents.push(h('span', {
|
|
36069
|
+
class: 'vxe-button--custom-icon'
|
|
36070
|
+
}, $scopedSlots.icon.call(this, {})));
|
|
36016
36071
|
} else if (icon) {
|
|
36017
36072
|
contents.push(h('i', {
|
|
36018
36073
|
class: ['vxe-button--icon', icon]
|
|
@@ -36022,7 +36077,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36022
36077
|
if ($scopedSlots.default) {
|
|
36023
36078
|
contents.push(h('span', {
|
|
36024
36079
|
class: 'vxe-button--content'
|
|
36025
|
-
}, $scopedSlots.default.call(this)));
|
|
36080
|
+
}, $scopedSlots.default.call(this, {})));
|
|
36026
36081
|
} else if (content) {
|
|
36027
36082
|
contents.push(h('span', {
|
|
36028
36083
|
class: 'vxe-button--content'
|
|
@@ -36500,19 +36555,19 @@ function tooltip_renderContent(h, _vm) {
|
|
|
36500
36555
|
size: {
|
|
36501
36556
|
type: String,
|
|
36502
36557
|
default: function _default() {
|
|
36503
|
-
return
|
|
36558
|
+
return src_conf.tooltip.size || src_conf.size;
|
|
36504
36559
|
}
|
|
36505
36560
|
},
|
|
36506
36561
|
trigger: {
|
|
36507
36562
|
type: String,
|
|
36508
36563
|
default: function _default() {
|
|
36509
|
-
return
|
|
36564
|
+
return src_conf.tooltip.trigger;
|
|
36510
36565
|
}
|
|
36511
36566
|
},
|
|
36512
36567
|
theme: {
|
|
36513
36568
|
type: String,
|
|
36514
36569
|
default: function _default() {
|
|
36515
|
-
return
|
|
36570
|
+
return src_conf.tooltip.theme;
|
|
36516
36571
|
}
|
|
36517
36572
|
},
|
|
36518
36573
|
content: {
|
|
@@ -36529,13 +36584,13 @@ function tooltip_renderContent(h, _vm) {
|
|
|
36529
36584
|
enterDelay: {
|
|
36530
36585
|
type: Number,
|
|
36531
36586
|
default: function _default() {
|
|
36532
|
-
return
|
|
36587
|
+
return src_conf.tooltip.enterDelay;
|
|
36533
36588
|
}
|
|
36534
36589
|
},
|
|
36535
36590
|
leaveDelay: {
|
|
36536
36591
|
type: Number,
|
|
36537
36592
|
default: function _default() {
|
|
36538
|
-
return
|
|
36593
|
+
return src_conf.tooltip.leaveDelay;
|
|
36539
36594
|
}
|
|
36540
36595
|
}
|
|
36541
36596
|
},
|
|
@@ -36802,6 +36857,7 @@ var Tooltip = Object.assign(tooltip, {
|
|
|
36802
36857
|
|
|
36803
36858
|
|
|
36804
36859
|
|
|
36860
|
+
|
|
36805
36861
|
var util_ItemConfig = /*#__PURE__*/function () {
|
|
36806
36862
|
function ItemConfig($xeform, item) {
|
|
36807
36863
|
_classCallCheck(this, ItemConfig);
|
|
@@ -36859,6 +36915,41 @@ var util_handleFieldOrItem = function handleFieldOrItem($xeform, fieldOrItem) {
|
|
|
36859
36915
|
|
|
36860
36916
|
return null;
|
|
36861
36917
|
};
|
|
36918
|
+
function isHiddenItem($xeform, formItem) {
|
|
36919
|
+
var collapseAll = $xeform.collapseAll;
|
|
36920
|
+
var folding = formItem.folding,
|
|
36921
|
+
visible = formItem.visible;
|
|
36922
|
+
return visible === false || folding && collapseAll;
|
|
36923
|
+
}
|
|
36924
|
+
function isActivetem($xeform, formItem) {
|
|
36925
|
+
var visibleMethod = formItem.visibleMethod,
|
|
36926
|
+
itemRender = formItem.itemRender,
|
|
36927
|
+
visible = formItem.visible,
|
|
36928
|
+
field = formItem.field;
|
|
36929
|
+
|
|
36930
|
+
if (visible === false) {
|
|
36931
|
+
return visible;
|
|
36932
|
+
}
|
|
36933
|
+
|
|
36934
|
+
var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
|
|
36935
|
+
|
|
36936
|
+
if (!visibleMethod && compConf && compConf.itemVisibleMethod) {
|
|
36937
|
+
visibleMethod = compConf.itemVisibleMethod;
|
|
36938
|
+
}
|
|
36939
|
+
|
|
36940
|
+
if (!visibleMethod) {
|
|
36941
|
+
return true;
|
|
36942
|
+
}
|
|
36943
|
+
|
|
36944
|
+
var data = $xeform.data;
|
|
36945
|
+
return visibleMethod({
|
|
36946
|
+
data: data,
|
|
36947
|
+
field: field,
|
|
36948
|
+
property: field,
|
|
36949
|
+
item: formItem,
|
|
36950
|
+
$form: $xeform
|
|
36951
|
+
});
|
|
36952
|
+
}
|
|
36862
36953
|
function createItem($xeform, _vm) {
|
|
36863
36954
|
return getItemConfig($xeform, _vm);
|
|
36864
36955
|
}
|
|
@@ -36902,7 +36993,7 @@ function renderPrefixIcon(h, titlePrefix) {
|
|
|
36902
36993
|
return h('span', {
|
|
36903
36994
|
class: 'vxe-form--item-title-prefix'
|
|
36904
36995
|
}, [h('i', {
|
|
36905
|
-
class: titlePrefix.icon ||
|
|
36996
|
+
class: titlePrefix.icon || src_conf.icon.FORM_PREFIX
|
|
36906
36997
|
})]);
|
|
36907
36998
|
}
|
|
36908
36999
|
|
|
@@ -36910,7 +37001,7 @@ function render_renderSuffixIcon(h, titleSuffix) {
|
|
|
36910
37001
|
return h('span', {
|
|
36911
37002
|
class: 'vxe-form--item-title-suffix'
|
|
36912
37003
|
}, [h('i', {
|
|
36913
|
-
class: titleSuffix.icon ||
|
|
37004
|
+
class: titleSuffix.icon || src_conf.icon.FORM_SUFFIX
|
|
36914
37005
|
})]);
|
|
36915
37006
|
}
|
|
36916
37007
|
|
|
@@ -36971,6 +37062,8 @@ function renderTitle(h, _vm, item) {
|
|
|
36971
37062
|
|
|
36972
37063
|
|
|
36973
37064
|
|
|
37065
|
+
|
|
37066
|
+
|
|
36974
37067
|
/**
|
|
36975
37068
|
* 配置式项
|
|
36976
37069
|
*/
|
|
@@ -36988,9 +37081,7 @@ var VxeFormConfigItem = {
|
|
|
36988
37081
|
provide: function provide() {
|
|
36989
37082
|
return {
|
|
36990
37083
|
$xeformgather: null,
|
|
36991
|
-
$xeformiteminfo:
|
|
36992
|
-
itemConfig: this.itemConfig
|
|
36993
|
-
}
|
|
37084
|
+
$xeformiteminfo: this
|
|
36994
37085
|
};
|
|
36995
37086
|
},
|
|
36996
37087
|
render: function render(h) {
|
|
@@ -37010,7 +37101,6 @@ var VxeFormConfigItem = {
|
|
|
37010
37101
|
title = item.title,
|
|
37011
37102
|
folding = item.folding,
|
|
37012
37103
|
visible = item.visible,
|
|
37013
|
-
visibleMethod = item.visibleMethod,
|
|
37014
37104
|
field = item.field,
|
|
37015
37105
|
collapseNode = item.collapseNode,
|
|
37016
37106
|
itemRender = item.itemRender,
|
|
@@ -37027,7 +37117,6 @@ var VxeFormConfigItem = {
|
|
|
37027
37117
|
var titleWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleWidth) ? allTitleWidth : item.titleWidth;
|
|
37028
37118
|
var titleColon = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
37029
37119
|
var titleAsterisk = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
37030
|
-
var itemVisibleMethod = visibleMethod;
|
|
37031
37120
|
var itemOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(titleOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
37032
37121
|
var showEllipsis = itemOverflow === 'ellipsis';
|
|
37033
37122
|
var showTitle = itemOverflow === 'title';
|
|
@@ -37063,10 +37152,6 @@ var VxeFormConfigItem = {
|
|
|
37063
37152
|
}, childVNs) : _e();
|
|
37064
37153
|
}
|
|
37065
37154
|
|
|
37066
|
-
if (!itemVisibleMethod && compConf && compConf.itemVisibleMethod) {
|
|
37067
|
-
itemVisibleMethod = compConf.itemVisibleMethod;
|
|
37068
|
-
}
|
|
37069
|
-
|
|
37070
37155
|
if (rules) {
|
|
37071
37156
|
var itemRules = rules[field];
|
|
37072
37157
|
|
|
@@ -37082,9 +37167,9 @@ var VxeFormConfigItem = {
|
|
|
37082
37167
|
if (slots && slots.default) {
|
|
37083
37168
|
contentVNs = $xeform.callSlot(slots.default, params, h);
|
|
37084
37169
|
} else if (compConf && compConf.renderItemContent) {
|
|
37085
|
-
contentVNs = compConf.renderItemContent.call($xeform, h, itemRender, params);
|
|
37170
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call($xeform, h, itemRender, params));
|
|
37086
37171
|
} else if (compConf && compConf.renderItem) {
|
|
37087
|
-
contentVNs = compConf.renderItem.call($xeform, h, itemRender, params);
|
|
37172
|
+
contentVNs = getSlotVNs(compConf.renderItem.call($xeform, h, itemRender, params));
|
|
37088
37173
|
} else if (field) {
|
|
37089
37174
|
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))];
|
|
37090
37175
|
}
|
|
@@ -37096,13 +37181,13 @@ var VxeFormConfigItem = {
|
|
|
37096
37181
|
mouseleave: $xeform.handleTitleTipLeaveEvent
|
|
37097
37182
|
} : {};
|
|
37098
37183
|
return h('div', {
|
|
37099
|
-
class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : null, className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(itemClassName) ? itemClassName(params) :
|
|
37184
|
+
class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : null, className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
|
|
37100
37185
|
'is--title': title,
|
|
37101
37186
|
'is--colon': titleColon,
|
|
37102
37187
|
'is--asterisk': titleAsterisk,
|
|
37103
37188
|
'is--required': isRequired,
|
|
37104
37189
|
'is--hidden': folding && collapseAll,
|
|
37105
|
-
'is--active':
|
|
37190
|
+
'is--active': isActivetem($xeform, item),
|
|
37106
37191
|
'is--error': showError
|
|
37107
37192
|
}],
|
|
37108
37193
|
props: {
|
|
@@ -37131,8 +37216,8 @@ var VxeFormConfigItem = {
|
|
|
37131
37216
|
}
|
|
37132
37217
|
}, [h('span', {
|
|
37133
37218
|
class: 'vxe-form--item-trigger-text'
|
|
37134
|
-
}, collapseAll ?
|
|
37135
|
-
class: ['vxe-form--item-trigger-icon', collapseAll ?
|
|
37219
|
+
}, collapseAll ? src_conf.i18n('vxe.form.unfolding') : src_conf.i18n('vxe.form.folding')), h('i', {
|
|
37220
|
+
class: ['vxe-form--item-trigger-icon', collapseAll ? src_conf.icon.FORM_FOLDING : src_conf.icon.FORM_UNFOLDING]
|
|
37136
37221
|
})]) : null, errRule && validOpts.showMessage ? h('div', {
|
|
37137
37222
|
class: 'vxe-form--item-valid',
|
|
37138
37223
|
style: errRule.maxWidth ? {
|
|
@@ -37169,6 +37254,8 @@ var VxeFormConfigItem = {
|
|
|
37169
37254
|
|
|
37170
37255
|
|
|
37171
37256
|
|
|
37257
|
+
|
|
37258
|
+
|
|
37172
37259
|
|
|
37173
37260
|
|
|
37174
37261
|
|
|
@@ -37255,43 +37342,43 @@ function getResetValue(value, resetValue) {
|
|
|
37255
37342
|
size: {
|
|
37256
37343
|
type: String,
|
|
37257
37344
|
default: function _default() {
|
|
37258
|
-
return
|
|
37345
|
+
return src_conf.form.size || src_conf.size;
|
|
37259
37346
|
}
|
|
37260
37347
|
},
|
|
37261
37348
|
span: {
|
|
37262
37349
|
type: [String, Number],
|
|
37263
37350
|
default: function _default() {
|
|
37264
|
-
return
|
|
37351
|
+
return src_conf.form.span;
|
|
37265
37352
|
}
|
|
37266
37353
|
},
|
|
37267
37354
|
align: {
|
|
37268
37355
|
type: String,
|
|
37269
37356
|
default: function _default() {
|
|
37270
|
-
return
|
|
37357
|
+
return src_conf.form.align;
|
|
37271
37358
|
}
|
|
37272
37359
|
},
|
|
37273
37360
|
titleAlign: {
|
|
37274
37361
|
type: String,
|
|
37275
37362
|
default: function _default() {
|
|
37276
|
-
return
|
|
37363
|
+
return src_conf.form.titleAlign;
|
|
37277
37364
|
}
|
|
37278
37365
|
},
|
|
37279
37366
|
titleWidth: {
|
|
37280
37367
|
type: [String, Number],
|
|
37281
37368
|
default: function _default() {
|
|
37282
|
-
return
|
|
37369
|
+
return src_conf.form.titleWidth;
|
|
37283
37370
|
}
|
|
37284
37371
|
},
|
|
37285
37372
|
titleColon: {
|
|
37286
37373
|
type: Boolean,
|
|
37287
37374
|
default: function _default() {
|
|
37288
|
-
return
|
|
37375
|
+
return src_conf.form.titleColon;
|
|
37289
37376
|
}
|
|
37290
37377
|
},
|
|
37291
37378
|
titleAsterisk: {
|
|
37292
37379
|
type: Boolean,
|
|
37293
37380
|
default: function _default() {
|
|
37294
|
-
return
|
|
37381
|
+
return src_conf.form.titleAsterisk;
|
|
37295
37382
|
}
|
|
37296
37383
|
},
|
|
37297
37384
|
titleOverflow: {
|
|
@@ -37299,12 +37386,13 @@ function getResetValue(value, resetValue) {
|
|
|
37299
37386
|
default: null
|
|
37300
37387
|
},
|
|
37301
37388
|
className: [String, Function],
|
|
37389
|
+
readonly: Boolean,
|
|
37302
37390
|
items: Array,
|
|
37303
37391
|
rules: Object,
|
|
37304
37392
|
preventSubmit: {
|
|
37305
37393
|
type: Boolean,
|
|
37306
37394
|
default: function _default() {
|
|
37307
|
-
return
|
|
37395
|
+
return src_conf.form.preventSubmit;
|
|
37308
37396
|
}
|
|
37309
37397
|
},
|
|
37310
37398
|
validConfig: Object,
|
|
@@ -37312,7 +37400,7 @@ function getResetValue(value, resetValue) {
|
|
|
37312
37400
|
customLayout: {
|
|
37313
37401
|
type: Boolean,
|
|
37314
37402
|
default: function _default() {
|
|
37315
|
-
return
|
|
37403
|
+
return src_conf.form.customLayout;
|
|
37316
37404
|
}
|
|
37317
37405
|
}
|
|
37318
37406
|
},
|
|
@@ -37338,10 +37426,10 @@ function getResetValue(value, resetValue) {
|
|
|
37338
37426
|
},
|
|
37339
37427
|
computed: {
|
|
37340
37428
|
validOpts: function validOpts() {
|
|
37341
|
-
return Object.assign({},
|
|
37429
|
+
return Object.assign({}, src_conf.form.validConfig, this.validConfig);
|
|
37342
37430
|
},
|
|
37343
37431
|
tooltipOpts: function tooltipOpts() {
|
|
37344
|
-
return Object.assign({},
|
|
37432
|
+
return Object.assign({}, src_conf.tooltip, src_conf.form.tooltipConfig, this.tooltipConfig);
|
|
37345
37433
|
}
|
|
37346
37434
|
},
|
|
37347
37435
|
watch: {
|
|
@@ -37431,7 +37519,7 @@ function getResetValue(value, resetValue) {
|
|
|
37431
37519
|
}
|
|
37432
37520
|
|
|
37433
37521
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
37434
|
-
return slotFunc.call(this, params, h);
|
|
37522
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
37435
37523
|
}
|
|
37436
37524
|
}
|
|
37437
37525
|
|
|
@@ -37656,7 +37744,7 @@ function getResetValue(value, resetValue) {
|
|
|
37656
37744
|
itemList.forEach(function (item) {
|
|
37657
37745
|
var field = item.field;
|
|
37658
37746
|
|
|
37659
|
-
if (field) {
|
|
37747
|
+
if (field && !isHiddenItem(_this6, item) && isActivetem(_this6, item)) {
|
|
37660
37748
|
itemValids.push(_this6.validItemRules(type || 'all', field).then(function () {
|
|
37661
37749
|
item.errRule = null;
|
|
37662
37750
|
}).catch(function (_ref2) {
|
|
@@ -37850,7 +37938,7 @@ function getResetValue(value, resetValue) {
|
|
|
37850
37938
|
var _this9 = this;
|
|
37851
37939
|
|
|
37852
37940
|
if (field) {
|
|
37853
|
-
return this.validItemRules(evnt ? evnt.type : 'all', field, itemValue).then(function () {
|
|
37941
|
+
return this.validItemRules(evnt ? ['blur'].includes(evnt.type) ? 'blur' : 'change' : 'all', field, itemValue).then(function () {
|
|
37854
37942
|
_this9.clearValidate(field);
|
|
37855
37943
|
}).catch(function (_ref3) {
|
|
37856
37944
|
var rule = _ref3.rule;
|
|
@@ -37900,6 +37988,7 @@ var Form = Object.assign(src_form, {
|
|
|
37900
37988
|
|
|
37901
37989
|
|
|
37902
37990
|
|
|
37991
|
+
|
|
37903
37992
|
var form_item_props = {
|
|
37904
37993
|
title: String,
|
|
37905
37994
|
field: String,
|
|
@@ -37943,7 +38032,8 @@ Object.keys(form_item_props).forEach(function (name) {
|
|
|
37943
38032
|
});
|
|
37944
38033
|
|
|
37945
38034
|
var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
37946
|
-
var
|
|
38035
|
+
var _e = _vm._e,
|
|
38036
|
+
rules = _vm.rules,
|
|
37947
38037
|
data = _vm.data,
|
|
37948
38038
|
collapseAll = _vm.collapseAll,
|
|
37949
38039
|
validOpts = _vm.validOpts,
|
|
@@ -37951,7 +38041,6 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37951
38041
|
var title = item.title,
|
|
37952
38042
|
folding = item.folding,
|
|
37953
38043
|
visible = item.visible,
|
|
37954
|
-
visibleMethod = item.visibleMethod,
|
|
37955
38044
|
field = item.field,
|
|
37956
38045
|
collapseNode = item.collapseNode,
|
|
37957
38046
|
itemRender = item.itemRender,
|
|
@@ -37965,7 +38054,6 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37965
38054
|
var align = item.align || _vm.align;
|
|
37966
38055
|
var titleAlign = item.titleAlign || _vm.titleAlign;
|
|
37967
38056
|
var titleWidth = item.titleWidth || _vm.titleWidth;
|
|
37968
|
-
var itemVisibleMethod = visibleMethod;
|
|
37969
38057
|
var itemOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isUndefined(titleOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isNull(titleOverflow) ? allTitleOverflow : titleOverflow;
|
|
37970
38058
|
var showEllipsis = itemOverflow === 'ellipsis';
|
|
37971
38059
|
var showTitle = itemOverflow === 'title';
|
|
@@ -37980,8 +38068,8 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37980
38068
|
};
|
|
37981
38069
|
var isRequired;
|
|
37982
38070
|
|
|
37983
|
-
if (
|
|
37984
|
-
|
|
38071
|
+
if (visible === false) {
|
|
38072
|
+
return _e();
|
|
37985
38073
|
}
|
|
37986
38074
|
|
|
37987
38075
|
if (rules) {
|
|
@@ -37999,9 +38087,9 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37999
38087
|
if (slots && slots.default) {
|
|
38000
38088
|
contentVNs = _vm.callSlot(slots.default, params, h);
|
|
38001
38089
|
} else if (compConf && compConf.renderItemContent) {
|
|
38002
|
-
contentVNs = compConf.renderItemContent.call(_vm, h, itemRender, params);
|
|
38090
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call(_vm, h, itemRender, params));
|
|
38003
38091
|
} else if (compConf && compConf.renderItem) {
|
|
38004
|
-
contentVNs = compConf.renderItem.call(_vm, h, itemRender, params);
|
|
38092
|
+
contentVNs = getSlotVNs(compConf.renderItem.call(_vm, h, itemRender, params));
|
|
38005
38093
|
} else if (field) {
|
|
38006
38094
|
contentVNs = ["".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(data, field))];
|
|
38007
38095
|
}
|
|
@@ -38013,11 +38101,11 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38013
38101
|
mouseleave: _vm.handleTitleTipLeaveEvent
|
|
38014
38102
|
} : {};
|
|
38015
38103
|
return h('div', {
|
|
38016
|
-
class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(itemClassName) ? itemClassName(params) :
|
|
38104
|
+
class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") : '', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(className) ? className(params) : className : '', itemClassName ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(itemClassName) ? itemClassName(params) : itemClassName : '', {
|
|
38017
38105
|
'is--title': title,
|
|
38018
38106
|
'is--required': isRequired,
|
|
38019
|
-
'is--hidden':
|
|
38020
|
-
'is--active':
|
|
38107
|
+
'is--hidden': folding && collapseAll,
|
|
38108
|
+
'is--active': isActivetem(_vm, item),
|
|
38021
38109
|
'is--error': showError
|
|
38022
38110
|
}]
|
|
38023
38111
|
}, [h('div', {
|
|
@@ -38042,8 +38130,8 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38042
38130
|
}
|
|
38043
38131
|
}, [h('span', {
|
|
38044
38132
|
class: 'vxe-form--item-trigger-text'
|
|
38045
|
-
}, collapseAll ?
|
|
38046
|
-
class: ['vxe-form--item-trigger-icon', collapseAll ?
|
|
38133
|
+
}, collapseAll ? src_conf.i18n('vxe.form.unfolding') : src_conf.i18n('vxe.form.folding')), h('i', {
|
|
38134
|
+
class: ['vxe-form--item-trigger-icon', collapseAll ? src_conf.icon.FORM_FOLDING : src_conf.icon.FORM_UNFOLDING]
|
|
38047
38135
|
})]) : null, errRule && validOpts.showMessage ? h('div', {
|
|
38048
38136
|
class: 'vxe-form--item-valid',
|
|
38049
38137
|
style: errRule.maxWidth ? {
|
|
@@ -38066,9 +38154,7 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38066
38154
|
provide: function provide() {
|
|
38067
38155
|
return {
|
|
38068
38156
|
$xeformitem: this,
|
|
38069
|
-
$xeformiteminfo:
|
|
38070
|
-
itemConfig: this.itemConfig
|
|
38071
|
-
}
|
|
38157
|
+
$xeformiteminfo: this
|
|
38072
38158
|
};
|
|
38073
38159
|
},
|
|
38074
38160
|
data: function data() {
|
|
@@ -38111,9 +38197,7 @@ var FormItem = Object.assign(form_item, {
|
|
|
38111
38197
|
return {
|
|
38112
38198
|
$xeformgather: this,
|
|
38113
38199
|
xeformitem: null,
|
|
38114
|
-
$xeformiteminfo:
|
|
38115
|
-
itemConfig: this.itemConfig
|
|
38116
|
-
}
|
|
38200
|
+
$xeformiteminfo: this
|
|
38117
38201
|
};
|
|
38118
38202
|
},
|
|
38119
38203
|
created: function created() {
|
|
@@ -38243,7 +38327,7 @@ var Option = Object.assign(src_option, {
|
|
|
38243
38327
|
size: {
|
|
38244
38328
|
type: String,
|
|
38245
38329
|
default: function _default() {
|
|
38246
|
-
return
|
|
38330
|
+
return src_conf.switch.size || src_conf.size;
|
|
38247
38331
|
}
|
|
38248
38332
|
},
|
|
38249
38333
|
openLabel: String,
|
|
@@ -38419,13 +38503,13 @@ var Switch = Object.assign(src_switch, {
|
|
|
38419
38503
|
size: {
|
|
38420
38504
|
type: String,
|
|
38421
38505
|
default: function _default() {
|
|
38422
|
-
return
|
|
38506
|
+
return src_conf.list.size || src_conf.size;
|
|
38423
38507
|
}
|
|
38424
38508
|
},
|
|
38425
38509
|
autoResize: {
|
|
38426
38510
|
type: Boolean,
|
|
38427
38511
|
default: function _default() {
|
|
38428
|
-
return
|
|
38512
|
+
return src_conf.list.autoResize;
|
|
38429
38513
|
}
|
|
38430
38514
|
},
|
|
38431
38515
|
syncResize: [Boolean, String, Number],
|
|
@@ -38441,7 +38525,7 @@ var Switch = Object.assign(src_switch, {
|
|
|
38441
38525
|
},
|
|
38442
38526
|
computed: {
|
|
38443
38527
|
sYOpts: function sYOpts() {
|
|
38444
|
-
return Object.assign({},
|
|
38528
|
+
return Object.assign({}, src_conf.list.scrollY, this.scrollY);
|
|
38445
38529
|
},
|
|
38446
38530
|
styles: function styles() {
|
|
38447
38531
|
var height = this.height,
|
|
@@ -38803,7 +38887,7 @@ var List = Object.assign(src_list, {
|
|
|
38803
38887
|
size: {
|
|
38804
38888
|
type: String,
|
|
38805
38889
|
default: function _default() {
|
|
38806
|
-
return
|
|
38890
|
+
return src_conf.size;
|
|
38807
38891
|
}
|
|
38808
38892
|
},
|
|
38809
38893
|
destroyOnClose: Boolean,
|