vxe-table 3.5.9-beta.7 → 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 +13 -9
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +1 -1
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +7 -2
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/form/src/form-config-item.js +10 -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 +13 -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 +494 -401
- 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/body.js +5 -2
- package/lib/table/src/body.min.js +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 +33 -13
- 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 +12 -9
- package/packages/export/src/mixin.js +2 -2
- package/packages/filter/src/panel.js +13 -6
- package/packages/form/src/form-config-item.js +23 -19
- package/packages/form/src/form-gather.js +1 -3
- package/packages/form/src/form-item.js +24 -18
- 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/body.js +38 -23
- package/packages/table/src/cell.js +9 -5
- package/packages/table/src/methods.js +24 -11
- 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 +15 -2
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
|
-
if (false) {}
|
|
9942
|
+
var conf = this.store[name]; // 检测是否覆盖
|
|
9933
9943
|
|
|
9934
|
-
|
|
9944
|
+
if (false) { var confKeys; }
|
|
9945
|
+
|
|
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",
|
|
@@ -10964,7 +10970,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
10964
10970
|
isAllOverflow = $xetable.isAllOverflow,
|
|
10965
10971
|
allAlign = $xetable.align,
|
|
10966
10972
|
currentColumn = $xetable.currentColumn,
|
|
10967
|
-
|
|
10973
|
+
allCellClassName = $xetable.cellClassName,
|
|
10968
10974
|
cellStyle = $xetable.cellStyle,
|
|
10969
10975
|
mergeList = $xetable.mergeList,
|
|
10970
10976
|
spanMethod = $xetable.spanMethod,
|
|
@@ -10993,6 +10999,9 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
10993
10999
|
var actived = editStore.actived;
|
|
10994
11000
|
var scrollYRHeight = sYOpts.rHeight;
|
|
10995
11001
|
var rowHeight = rowOpts.height;
|
|
11002
|
+
var renderOpts = editRender || cellRender;
|
|
11003
|
+
var compConf = renderOpts ? v_x_e_table.renderer.get(renderOpts.name) : null;
|
|
11004
|
+
var cellClassName = compConf ? compConf.cellClassName : '';
|
|
10996
11005
|
var showAllTip = tooltipOpts.showAll || tooltipOpts.enabled;
|
|
10997
11006
|
var columnIndex = $xetable.getColumnIndex(column);
|
|
10998
11007
|
|
|
@@ -11198,7 +11207,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
11198
11207
|
}
|
|
11199
11208
|
|
|
11200
11209
|
return h('td', {
|
|
11201
|
-
class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), utils.getClass(className, params), utils.getClass(
|
|
11210
|
+
class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), _defineProperty(_ref2, "col--".concat(type), type), _defineProperty(_ref2, 'col--last', $columnIndex === columns.length - 1), _defineProperty(_ref2, 'col--tree-node', treeNode), _defineProperty(_ref2, 'col--edit', isEdit), _defineProperty(_ref2, 'col--ellipsis', hasEllipsis), _defineProperty(_ref2, 'fixed--hidden', fixedHiddenColumn), _defineProperty(_ref2, 'col--dirty', isDirty), _defineProperty(_ref2, 'col--actived', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_ref2, 'col--valid-error', hasValidError), _defineProperty(_ref2, 'col--current', currentColumn === column), _ref2), utils.getClass(cellClassName, params), utils.getClass(className, params), utils.getClass(allCellClassName, params)],
|
|
11202
11211
|
key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
|
|
11203
11212
|
attrs: attrs,
|
|
11204
11213
|
style: Object.assign({
|
|
@@ -11513,7 +11522,7 @@ function syncBodyScroll(_vm, fixedType, scrollTop, elem1, elem2) {
|
|
|
11513
11522
|
$table: $xetable
|
|
11514
11523
|
});
|
|
11515
11524
|
} else {
|
|
11516
|
-
emptyContent = $xetable.emptyText ||
|
|
11525
|
+
emptyContent = $xetable.emptyText || src_conf.i18n('vxe.table.emptyText');
|
|
11517
11526
|
}
|
|
11518
11527
|
}
|
|
11519
11528
|
|
|
@@ -11897,6 +11906,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
11897
11906
|
|
|
11898
11907
|
|
|
11899
11908
|
|
|
11909
|
+
|
|
11900
11910
|
var cellType = 'header';
|
|
11901
11911
|
/* harmony default export */ var header = ({
|
|
11902
11912
|
name: 'VxeTableHeader',
|
|
@@ -12230,7 +12240,8 @@ var cellType = 'header';
|
|
|
12230
12240
|
document.onmouseup = function (evnt) {
|
|
12231
12241
|
document.onmousemove = domMousemove;
|
|
12232
12242
|
document.onmouseup = domMouseup;
|
|
12233
|
-
|
|
12243
|
+
var resizeWidth = column.renderWidth + (isRightFixed ? dragPosLeft - dragLeft : dragLeft - dragPosLeft);
|
|
12244
|
+
column.resizeWidth = resizeWidth;
|
|
12234
12245
|
resizeBarElem.style.display = 'none';
|
|
12235
12246
|
$xetable._isResize = false;
|
|
12236
12247
|
$xetable._lastResizeTime = Date.now();
|
|
@@ -12238,7 +12249,9 @@ var cellType = 'header';
|
|
|
12238
12249
|
$xetable.recalculate(true).then(function () {
|
|
12239
12250
|
$xetable.saveCustomResizable();
|
|
12240
12251
|
$xetable.updateCellAreas();
|
|
12241
|
-
$xetable.emitEvent('resizable-change', params,
|
|
12252
|
+
$xetable.emitEvent('resizable-change', _objectSpread2(_objectSpread2({}, params), {}, {
|
|
12253
|
+
resizeWidth: resizeWidth
|
|
12254
|
+
}), evnt);
|
|
12242
12255
|
});
|
|
12243
12256
|
dom.removeClass($xetable.$el, 'drag--resize');
|
|
12244
12257
|
};
|
|
@@ -12310,7 +12323,7 @@ function eventHandle() {
|
|
|
12310
12323
|
|
|
12311
12324
|
function eventListener() {
|
|
12312
12325
|
clearTimeout(resizeTimeout);
|
|
12313
|
-
resizeTimeout = setTimeout(eventHandle,
|
|
12326
|
+
resizeTimeout = setTimeout(eventHandle, src_conf.resizeInterval || defaultInterval);
|
|
12314
12327
|
}
|
|
12315
12328
|
|
|
12316
12329
|
var resize_ResizeObserverPolyfill = /*#__PURE__*/function () {
|
|
@@ -12481,6 +12494,15 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
12481
12494
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
12482
12495
|
var es_promise_finally = __webpack_require__("a79d");
|
|
12483
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
|
+
}
|
|
12484
12506
|
// CONCATENATED MODULE: ./packages/table/src/cell.js
|
|
12485
12507
|
|
|
12486
12508
|
|
|
@@ -12493,12 +12515,13 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
12493
12515
|
|
|
12494
12516
|
|
|
12495
12517
|
|
|
12518
|
+
|
|
12496
12519
|
function renderHelpIcon(h, params) {
|
|
12497
12520
|
var $table = params.$table,
|
|
12498
12521
|
column = params.column;
|
|
12499
12522
|
var titlePrefix = column.titlePrefix || column.titleHelp;
|
|
12500
12523
|
return titlePrefix ? [h('i', {
|
|
12501
|
-
class: ['vxe-cell-help-icon', titlePrefix.icon ||
|
|
12524
|
+
class: ['vxe-cell-help-icon', titlePrefix.icon || src_conf.icon.TABLE_HELP],
|
|
12502
12525
|
on: {
|
|
12503
12526
|
mouseenter: function mouseenter(evnt) {
|
|
12504
12527
|
$table.triggerHeaderHelpEvent(evnt, params);
|
|
@@ -12579,7 +12602,7 @@ function getFooterContent(h, params) {
|
|
|
12579
12602
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12580
12603
|
|
|
12581
12604
|
if (compConf && compConf.renderFooter) {
|
|
12582
|
-
return compConf.renderFooter.call($table, h, renderOpts, params);
|
|
12605
|
+
return getSlotVNs(compConf.renderFooter.call($table, h, renderOpts, params));
|
|
12583
12606
|
}
|
|
12584
12607
|
}
|
|
12585
12608
|
|
|
@@ -12680,7 +12703,7 @@ var Cell = {
|
|
|
12680
12703
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12681
12704
|
|
|
12682
12705
|
if (compConf && compConf.renderHeader) {
|
|
12683
|
-
return renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params));
|
|
12706
|
+
return getSlotVNs(renderTitleContent(h, params, compConf.renderHeader.call($table, h, renderOpts, params)));
|
|
12684
12707
|
}
|
|
12685
12708
|
}
|
|
12686
12709
|
|
|
@@ -12707,9 +12730,9 @@ var Cell = {
|
|
|
12707
12730
|
var compConf = v_x_e_table.renderer.get(renderOpts.name);
|
|
12708
12731
|
|
|
12709
12732
|
if (compConf && compConf[funName]) {
|
|
12710
|
-
return compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12733
|
+
return getSlotVNs(compConf[funName].call($table, h, renderOpts, Object.assign({
|
|
12711
12734
|
$type: editRender ? 'edit' : 'cell'
|
|
12712
|
-
}, params));
|
|
12735
|
+
}, params)));
|
|
12713
12736
|
}
|
|
12714
12737
|
}
|
|
12715
12738
|
|
|
@@ -12789,7 +12812,7 @@ var Cell = {
|
|
|
12789
12812
|
class: 'vxe-tree--btn-wrapper',
|
|
12790
12813
|
on: on
|
|
12791
12814
|
}, [h('i', {
|
|
12792
|
-
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]
|
|
12793
12816
|
})])] : null, h('div', {
|
|
12794
12817
|
class: 'vxe-tree-cell'
|
|
12795
12818
|
}, cellVNodes)])];
|
|
@@ -12960,7 +12983,7 @@ var Cell = {
|
|
|
12960
12983
|
'is--indeterminate': isAllCheckboxIndeterminate
|
|
12961
12984
|
}],
|
|
12962
12985
|
attrs: {
|
|
12963
|
-
title:
|
|
12986
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
12964
12987
|
},
|
|
12965
12988
|
on: on
|
|
12966
12989
|
}, [h('span', {
|
|
@@ -13189,7 +13212,7 @@ var Cell = {
|
|
|
13189
13212
|
}
|
|
13190
13213
|
}
|
|
13191
13214
|
}, [h('i', {
|
|
13192
|
-
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]
|
|
13193
13216
|
})]) : null, defaultSlot || labelField ? h('span', {
|
|
13194
13217
|
class: 'vxe-table--expand-label'
|
|
13195
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];
|
|
@@ -13208,7 +13231,7 @@ var Cell = {
|
|
|
13208
13231
|
var compConf = v_x_e_table.renderer.get(contentRender.name);
|
|
13209
13232
|
|
|
13210
13233
|
if (compConf && compConf.renderExpand) {
|
|
13211
|
-
return compConf.renderExpand.call($table, h, contentRender, params);
|
|
13234
|
+
return getSlotVNs(compConf.renderExpand.call($table, h, contentRender, params));
|
|
13212
13235
|
}
|
|
13213
13236
|
}
|
|
13214
13237
|
|
|
@@ -13261,11 +13284,11 @@ var Cell = {
|
|
|
13261
13284
|
return showIcon ? [h('span', {
|
|
13262
13285
|
class: 'vxe-cell--sort'
|
|
13263
13286
|
}, [h('i', {
|
|
13264
|
-
class: ['vxe-sort--asc-btn', iconAsc ||
|
|
13287
|
+
class: ['vxe-sort--asc-btn', iconAsc || src_conf.icon.TABLE_SORT_ASC, {
|
|
13265
13288
|
'sort--active': column.order === 'asc'
|
|
13266
13289
|
}],
|
|
13267
13290
|
attrs: {
|
|
13268
|
-
title:
|
|
13291
|
+
title: src_conf.i18n('vxe.table.sortAsc')
|
|
13269
13292
|
},
|
|
13270
13293
|
on: {
|
|
13271
13294
|
click: function click(evnt) {
|
|
@@ -13273,11 +13296,11 @@ var Cell = {
|
|
|
13273
13296
|
}
|
|
13274
13297
|
}
|
|
13275
13298
|
}), h('i', {
|
|
13276
|
-
class: ['vxe-sort--desc-btn', iconDesc ||
|
|
13299
|
+
class: ['vxe-sort--desc-btn', iconDesc || src_conf.icon.TABLE_SORT_DESC, {
|
|
13277
13300
|
'sort--active': column.order === 'desc'
|
|
13278
13301
|
}],
|
|
13279
13302
|
attrs: {
|
|
13280
|
-
title:
|
|
13303
|
+
title: src_conf.i18n('vxe.table.sortDesc')
|
|
13281
13304
|
},
|
|
13282
13305
|
on: {
|
|
13283
13306
|
click: function click(evnt) {
|
|
@@ -13307,9 +13330,9 @@ var Cell = {
|
|
|
13307
13330
|
'is--active': filterStore.visible && filterStore.column === column
|
|
13308
13331
|
}]
|
|
13309
13332
|
}, [h('i', {
|
|
13310
|
-
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],
|
|
13311
13334
|
attrs: {
|
|
13312
|
-
title:
|
|
13335
|
+
title: src_conf.i18n('vxe.table.filter')
|
|
13313
13336
|
},
|
|
13314
13337
|
on: {
|
|
13315
13338
|
click: function click(evnt) {
|
|
@@ -13347,7 +13370,7 @@ var Cell = {
|
|
|
13347
13370
|
return (isEnableConf(editConfig) ? [isRequired && editOpts.showAsterisk ? h('i', {
|
|
13348
13371
|
class: 'vxe-cell--required-icon'
|
|
13349
13372
|
}) : null, isEnableConf(editRender) && editOpts.showIcon ? h('i', {
|
|
13350
|
-
class: ['vxe-cell--edit-icon', editOpts.icon ||
|
|
13373
|
+
class: ['vxe-cell--edit-icon', editOpts.icon || src_conf.icon.TABLE_EDIT]
|
|
13351
13374
|
}) : null] : []).concat(Cell.renderDefaultHeader(h, params)).concat(sortable || remoteSort ? Cell.renderSortIcon(h, params) : []).concat(filters ? Cell.renderFilterIcon(h, params) : []);
|
|
13352
13375
|
},
|
|
13353
13376
|
// 行格编辑模式
|
|
@@ -13385,9 +13408,13 @@ var Cell = {
|
|
|
13385
13408
|
return $table.callSlot(slots.edit, params, h);
|
|
13386
13409
|
}
|
|
13387
13410
|
|
|
13388
|
-
|
|
13389
|
-
$
|
|
13390
|
-
|
|
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 [];
|
|
13391
13418
|
}
|
|
13392
13419
|
|
|
13393
13420
|
if (slots && slots.default) {
|
|
@@ -13439,6 +13466,7 @@ var Cell = {
|
|
|
13439
13466
|
|
|
13440
13467
|
|
|
13441
13468
|
|
|
13469
|
+
|
|
13442
13470
|
|
|
13443
13471
|
|
|
13444
13472
|
var methods_setCellValue = utils.setCellValue,
|
|
@@ -13485,7 +13513,7 @@ function getNextSortOrder(_vm, column) {
|
|
|
13485
13513
|
}
|
|
13486
13514
|
|
|
13487
13515
|
function getCustomStorageMap(key) {
|
|
13488
|
-
var version =
|
|
13516
|
+
var version = src_conf.version;
|
|
13489
13517
|
var rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toStringJSON(localStorage.getItem(key));
|
|
13490
13518
|
return rest && rest._v === version ? rest : {
|
|
13491
13519
|
_v: version
|
|
@@ -13619,14 +13647,14 @@ function setMerges(_vm, merges, mList, rowList) {
|
|
|
13619
13647
|
var treeConfig = _vm.treeConfig,
|
|
13620
13648
|
visibleColumn = _vm.visibleColumn;
|
|
13621
13649
|
|
|
13622
|
-
if (treeConfig) {
|
|
13623
|
-
throw new Error(utils.getLog('vxe.error.noTree', ['merge-footer-items']));
|
|
13624
|
-
}
|
|
13625
|
-
|
|
13626
13650
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(merges)) {
|
|
13627
13651
|
merges = [merges];
|
|
13628
13652
|
}
|
|
13629
13653
|
|
|
13654
|
+
if (treeConfig && merges.length) {
|
|
13655
|
+
errLog('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
13656
|
+
}
|
|
13657
|
+
|
|
13630
13658
|
merges.forEach(function (item) {
|
|
13631
13659
|
var row = item.row,
|
|
13632
13660
|
col = item.col,
|
|
@@ -13683,14 +13711,14 @@ function removeMerges(_vm, merges, mList, rowList) {
|
|
|
13683
13711
|
var treeConfig = _vm.treeConfig,
|
|
13684
13712
|
visibleColumn = _vm.visibleColumn;
|
|
13685
13713
|
|
|
13686
|
-
if (treeConfig) {
|
|
13687
|
-
throw new Error(utils.getLog('vxe.error.noTree', ['merge-cells']));
|
|
13688
|
-
}
|
|
13689
|
-
|
|
13690
13714
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isArray(merges)) {
|
|
13691
13715
|
merges = [merges];
|
|
13692
13716
|
}
|
|
13693
13717
|
|
|
13718
|
+
if (treeConfig && merges.length) {
|
|
13719
|
+
errLog('vxe.error.noTree', ['merge-cells | merge-footer-items']);
|
|
13720
|
+
}
|
|
13721
|
+
|
|
13694
13722
|
merges.forEach(function (item) {
|
|
13695
13723
|
var row = item.row,
|
|
13696
13724
|
col = item.col;
|
|
@@ -13760,7 +13788,7 @@ var Methods = {
|
|
|
13760
13788
|
}
|
|
13761
13789
|
|
|
13762
13790
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
13763
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
13791
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
13764
13792
|
}
|
|
13765
13793
|
}
|
|
13766
13794
|
|
|
@@ -14645,7 +14673,7 @@ var Methods = {
|
|
|
14645
14673
|
var rowIndex = _this15.getRowIndex(row);
|
|
14646
14674
|
|
|
14647
14675
|
if (treeConfig && rowIndex === -1) {
|
|
14648
|
-
|
|
14676
|
+
errLog('vxe.error.noTree', ['revertData']);
|
|
14649
14677
|
}
|
|
14650
14678
|
|
|
14651
14679
|
var oRow = tableSourceData[rowIndex];
|
|
@@ -16350,7 +16378,7 @@ var Methods = {
|
|
|
16350
16378
|
if (isClearActived || // 如果点击了当前表格之外
|
|
16351
16379
|
!getEventTargetNode(evnt, $el).flag) {
|
|
16352
16380
|
setTimeout(function () {
|
|
16353
|
-
return _this26.
|
|
16381
|
+
return _this26.clearEdit(evnt);
|
|
16354
16382
|
});
|
|
16355
16383
|
}
|
|
16356
16384
|
});
|
|
@@ -16432,7 +16460,7 @@ var Methods = {
|
|
|
16432
16460
|
if (actived.row) {
|
|
16433
16461
|
var params = actived.args;
|
|
16434
16462
|
|
|
16435
|
-
_this27.
|
|
16463
|
+
_this27.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
|
|
16436
16464
|
|
|
16437
16465
|
|
|
16438
16466
|
if (mouseConfig && mouseOpts.selected) {
|
|
@@ -16552,7 +16580,7 @@ var Methods = {
|
|
|
16552
16580
|
if (actived.row) {
|
|
16553
16581
|
params = actived.args;
|
|
16554
16582
|
|
|
16555
|
-
_this28.
|
|
16583
|
+
_this28.clearEdit(evnt); // 如果配置了选中功能,则为选中状态
|
|
16556
16584
|
|
|
16557
16585
|
|
|
16558
16586
|
if (mouseConfig && mouseOpts.selected) {
|
|
@@ -19763,12 +19791,30 @@ var Methods = {
|
|
|
19763
19791
|
|
|
19764
19792
|
return cellLabel;
|
|
19765
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
|
+
},
|
|
19766
19812
|
|
|
19767
19813
|
/*************************
|
|
19768
19814
|
* Publish methods
|
|
19769
19815
|
*************************/
|
|
19770
19816
|
getSetupOptions: function getSetupOptions() {
|
|
19771
|
-
return
|
|
19817
|
+
return src_conf;
|
|
19772
19818
|
}
|
|
19773
19819
|
}; // Module methods
|
|
19774
19820
|
|
|
@@ -19789,9 +19835,9 @@ funcs.forEach(function (name) {
|
|
|
19789
19835
|
loading: Boolean
|
|
19790
19836
|
},
|
|
19791
19837
|
render: function render(h) {
|
|
19792
|
-
var icon =
|
|
19793
|
-
var loadingText =
|
|
19794
|
-
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');
|
|
19795
19841
|
return h('div', {
|
|
19796
19842
|
class: ['vxe-loading', {
|
|
19797
19843
|
'is--visible': this.loading
|
|
@@ -19915,7 +19961,7 @@ function renderEmptyContenet(h, _vm) {
|
|
|
19915
19961
|
if (renderEmpty) {
|
|
19916
19962
|
emptyContent = renderEmpty.call(_vm, h, emptyOpts, params);
|
|
19917
19963
|
} else {
|
|
19918
|
-
emptyContent = getFuncText(_vm.emptyText) ||
|
|
19964
|
+
emptyContent = getFuncText(_vm.emptyText) || src_conf.i18n('vxe.table.emptyText');
|
|
19919
19965
|
}
|
|
19920
19966
|
}
|
|
19921
19967
|
|
|
@@ -19946,42 +19992,42 @@ function handleUupdateResize(_vm) {
|
|
|
19946
19992
|
resizable: {
|
|
19947
19993
|
type: Boolean,
|
|
19948
19994
|
default: function _default() {
|
|
19949
|
-
return
|
|
19995
|
+
return src_conf.table.resizable;
|
|
19950
19996
|
}
|
|
19951
19997
|
},
|
|
19952
19998
|
// 是否带有斑马纹
|
|
19953
19999
|
stripe: {
|
|
19954
20000
|
type: Boolean,
|
|
19955
20001
|
default: function _default() {
|
|
19956
|
-
return
|
|
20002
|
+
return src_conf.table.stripe;
|
|
19957
20003
|
}
|
|
19958
20004
|
},
|
|
19959
20005
|
// 是否带有边框
|
|
19960
20006
|
border: {
|
|
19961
20007
|
type: [Boolean, String],
|
|
19962
20008
|
default: function _default() {
|
|
19963
|
-
return
|
|
20009
|
+
return src_conf.table.border;
|
|
19964
20010
|
}
|
|
19965
20011
|
},
|
|
19966
20012
|
// 是否圆角边框
|
|
19967
20013
|
round: {
|
|
19968
20014
|
type: Boolean,
|
|
19969
20015
|
default: function _default() {
|
|
19970
|
-
return
|
|
20016
|
+
return src_conf.table.round;
|
|
19971
20017
|
}
|
|
19972
20018
|
},
|
|
19973
20019
|
// 表格的尺寸
|
|
19974
20020
|
size: {
|
|
19975
20021
|
type: String,
|
|
19976
20022
|
default: function _default() {
|
|
19977
|
-
return
|
|
20023
|
+
return src_conf.table.size || src_conf.size;
|
|
19978
20024
|
}
|
|
19979
20025
|
},
|
|
19980
20026
|
// 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
|
|
19981
20027
|
fit: {
|
|
19982
20028
|
type: Boolean,
|
|
19983
20029
|
default: function _default() {
|
|
19984
|
-
return
|
|
20030
|
+
return src_conf.table.fit;
|
|
19985
20031
|
}
|
|
19986
20032
|
},
|
|
19987
20033
|
// 表格是否加载中
|
|
@@ -19990,56 +20036,56 @@ function handleUupdateResize(_vm) {
|
|
|
19990
20036
|
align: {
|
|
19991
20037
|
type: String,
|
|
19992
20038
|
default: function _default() {
|
|
19993
|
-
return
|
|
20039
|
+
return src_conf.table.align;
|
|
19994
20040
|
}
|
|
19995
20041
|
},
|
|
19996
20042
|
// 所有的表头列的对齐方式
|
|
19997
20043
|
headerAlign: {
|
|
19998
20044
|
type: String,
|
|
19999
20045
|
default: function _default() {
|
|
20000
|
-
return
|
|
20046
|
+
return src_conf.table.headerAlign;
|
|
20001
20047
|
}
|
|
20002
20048
|
},
|
|
20003
20049
|
// 所有的表尾列的对齐方式
|
|
20004
20050
|
footerAlign: {
|
|
20005
20051
|
type: String,
|
|
20006
20052
|
default: function _default() {
|
|
20007
|
-
return
|
|
20053
|
+
return src_conf.table.footerAlign;
|
|
20008
20054
|
}
|
|
20009
20055
|
},
|
|
20010
20056
|
// 是否显示表头
|
|
20011
20057
|
showHeader: {
|
|
20012
20058
|
type: Boolean,
|
|
20013
20059
|
default: function _default() {
|
|
20014
|
-
return
|
|
20060
|
+
return src_conf.table.showHeader;
|
|
20015
20061
|
}
|
|
20016
20062
|
},
|
|
20017
20063
|
// 已废弃,被 row-config.isCurrent 替换
|
|
20018
20064
|
highlightCurrentRow: {
|
|
20019
20065
|
type: Boolean,
|
|
20020
20066
|
default: function _default() {
|
|
20021
|
-
return
|
|
20067
|
+
return src_conf.table.highlightCurrentRow;
|
|
20022
20068
|
}
|
|
20023
20069
|
},
|
|
20024
20070
|
// 已废弃,被 row-config.isHover 替换
|
|
20025
20071
|
highlightHoverRow: {
|
|
20026
20072
|
type: Boolean,
|
|
20027
20073
|
default: function _default() {
|
|
20028
|
-
return
|
|
20074
|
+
return src_conf.table.highlightHoverRow;
|
|
20029
20075
|
}
|
|
20030
20076
|
},
|
|
20031
20077
|
// 已废弃,被 column-config.isCurrent 替换
|
|
20032
20078
|
highlightCurrentColumn: {
|
|
20033
20079
|
type: Boolean,
|
|
20034
20080
|
default: function _default() {
|
|
20035
|
-
return
|
|
20081
|
+
return src_conf.table.highlightCurrentColumn;
|
|
20036
20082
|
}
|
|
20037
20083
|
},
|
|
20038
20084
|
// 已废弃,被 column-config.isHover 替换
|
|
20039
20085
|
highlightHoverColumn: {
|
|
20040
20086
|
type: Boolean,
|
|
20041
20087
|
default: function _default() {
|
|
20042
|
-
return
|
|
20088
|
+
return src_conf.table.highlightHoverColumn;
|
|
20043
20089
|
}
|
|
20044
20090
|
},
|
|
20045
20091
|
// 已废弃,直接删除
|
|
@@ -20084,21 +20130,21 @@ function handleUupdateResize(_vm) {
|
|
|
20084
20130
|
showOverflow: {
|
|
20085
20131
|
type: [Boolean, String],
|
|
20086
20132
|
default: function _default() {
|
|
20087
|
-
return
|
|
20133
|
+
return src_conf.table.showOverflow;
|
|
20088
20134
|
}
|
|
20089
20135
|
},
|
|
20090
20136
|
// 设置表头所有内容过长时显示为省略号
|
|
20091
20137
|
showHeaderOverflow: {
|
|
20092
20138
|
type: [Boolean, String],
|
|
20093
20139
|
default: function _default() {
|
|
20094
|
-
return
|
|
20140
|
+
return src_conf.table.showHeaderOverflow;
|
|
20095
20141
|
}
|
|
20096
20142
|
},
|
|
20097
20143
|
// 设置表尾所有内容过长时显示为省略号
|
|
20098
20144
|
showFooterOverflow: {
|
|
20099
20145
|
type: [Boolean, String],
|
|
20100
20146
|
default: function _default() {
|
|
20101
|
-
return
|
|
20147
|
+
return src_conf.table.showFooterOverflow;
|
|
20102
20148
|
}
|
|
20103
20149
|
},
|
|
20104
20150
|
|
|
@@ -20111,27 +20157,27 @@ function handleUupdateResize(_vm) {
|
|
|
20111
20157
|
rowId: {
|
|
20112
20158
|
type: String,
|
|
20113
20159
|
default: function _default() {
|
|
20114
|
-
return
|
|
20160
|
+
return src_conf.table.rowId;
|
|
20115
20161
|
}
|
|
20116
20162
|
},
|
|
20117
20163
|
zIndex: Number,
|
|
20118
20164
|
emptyText: {
|
|
20119
20165
|
type: String,
|
|
20120
20166
|
default: function _default() {
|
|
20121
|
-
return
|
|
20167
|
+
return src_conf.table.emptyText;
|
|
20122
20168
|
}
|
|
20123
20169
|
},
|
|
20124
20170
|
keepSource: {
|
|
20125
20171
|
type: Boolean,
|
|
20126
20172
|
default: function _default() {
|
|
20127
|
-
return
|
|
20173
|
+
return src_conf.table.keepSource;
|
|
20128
20174
|
}
|
|
20129
20175
|
},
|
|
20130
20176
|
// 是否自动监听父容器变化去更新响应式表格宽高
|
|
20131
20177
|
autoResize: {
|
|
20132
20178
|
type: Boolean,
|
|
20133
20179
|
default: function _default() {
|
|
20134
|
-
return
|
|
20180
|
+
return src_conf.table.autoResize;
|
|
20135
20181
|
}
|
|
20136
20182
|
},
|
|
20137
20183
|
// 是否自动根据状态属性去更新响应式表格宽高
|
|
@@ -20196,14 +20242,14 @@ function handleUupdateResize(_vm) {
|
|
|
20196
20242
|
animat: {
|
|
20197
20243
|
type: Boolean,
|
|
20198
20244
|
default: function _default() {
|
|
20199
|
-
return
|
|
20245
|
+
return src_conf.table.animat;
|
|
20200
20246
|
}
|
|
20201
20247
|
},
|
|
20202
20248
|
// (可能会被废弃的参数,不要使用)
|
|
20203
20249
|
delayHover: {
|
|
20204
20250
|
type: Number,
|
|
20205
20251
|
default: function _default() {
|
|
20206
|
-
return
|
|
20252
|
+
return src_conf.table.delayHover;
|
|
20207
20253
|
}
|
|
20208
20254
|
},
|
|
20209
20255
|
// 额外的参数
|
|
@@ -20416,13 +20462,13 @@ function handleUupdateResize(_vm) {
|
|
|
20416
20462
|
validOpts: function validOpts() {
|
|
20417
20463
|
return Object.assign({
|
|
20418
20464
|
message: 'default'
|
|
20419
|
-
},
|
|
20465
|
+
}, src_conf.table.validConfig, this.validConfig);
|
|
20420
20466
|
},
|
|
20421
20467
|
sXOpts: function sXOpts() {
|
|
20422
|
-
return Object.assign({},
|
|
20468
|
+
return Object.assign({}, src_conf.table.scrollX, this.scrollX);
|
|
20423
20469
|
},
|
|
20424
20470
|
sYOpts: function sYOpts() {
|
|
20425
|
-
return Object.assign({},
|
|
20471
|
+
return Object.assign({}, src_conf.table.scrollY, this.scrollY);
|
|
20426
20472
|
},
|
|
20427
20473
|
rowHeightMaps: function rowHeightMaps() {
|
|
20428
20474
|
return {
|
|
@@ -20433,27 +20479,27 @@ function handleUupdateResize(_vm) {
|
|
|
20433
20479
|
};
|
|
20434
20480
|
},
|
|
20435
20481
|
columnOpts: function columnOpts() {
|
|
20436
|
-
return Object.assign({},
|
|
20482
|
+
return Object.assign({}, src_conf.table.columnConfig, this.columnConfig);
|
|
20437
20483
|
},
|
|
20438
20484
|
rowOpts: function rowOpts() {
|
|
20439
|
-
return Object.assign({},
|
|
20485
|
+
return Object.assign({}, src_conf.table.rowConfig, this.rowConfig);
|
|
20440
20486
|
},
|
|
20441
20487
|
resizableOpts: function resizableOpts() {
|
|
20442
|
-
return Object.assign({},
|
|
20488
|
+
return Object.assign({}, src_conf.table.resizableConfig, this.resizableConfig);
|
|
20443
20489
|
},
|
|
20444
20490
|
seqOpts: function seqOpts() {
|
|
20445
20491
|
return Object.assign({
|
|
20446
20492
|
startIndex: 0
|
|
20447
|
-
},
|
|
20493
|
+
}, src_conf.table.seqConfig, this.seqConfig);
|
|
20448
20494
|
},
|
|
20449
20495
|
radioOpts: function radioOpts() {
|
|
20450
|
-
return Object.assign({},
|
|
20496
|
+
return Object.assign({}, src_conf.table.radioConfig, this.radioConfig);
|
|
20451
20497
|
},
|
|
20452
20498
|
checkboxOpts: function checkboxOpts() {
|
|
20453
|
-
return Object.assign({},
|
|
20499
|
+
return Object.assign({}, src_conf.table.checkboxConfig, this.checkboxConfig);
|
|
20454
20500
|
},
|
|
20455
20501
|
tooltipOpts: function tooltipOpts() {
|
|
20456
|
-
return Object.assign({},
|
|
20502
|
+
return Object.assign({}, src_conf.tooltip, src_conf.table.tooltipConfig, this.tooltipConfig);
|
|
20457
20503
|
},
|
|
20458
20504
|
tipConfig: function tipConfig() {
|
|
20459
20505
|
return _objectSpread2(_objectSpread2({}, this.tooltipOpts), this.tooltipStore.currOpts);
|
|
@@ -20464,30 +20510,30 @@ function handleUupdateResize(_vm) {
|
|
|
20464
20510
|
}, this.tooltipOpts);
|
|
20465
20511
|
},
|
|
20466
20512
|
editOpts: function editOpts() {
|
|
20467
|
-
return Object.assign({},
|
|
20513
|
+
return Object.assign({}, src_conf.table.editConfig, this.editConfig);
|
|
20468
20514
|
},
|
|
20469
20515
|
sortOpts: function sortOpts() {
|
|
20470
20516
|
return Object.assign({
|
|
20471
20517
|
orders: ['asc', 'desc', null]
|
|
20472
|
-
},
|
|
20518
|
+
}, src_conf.table.sortConfig, this.sortConfig);
|
|
20473
20519
|
},
|
|
20474
20520
|
filterOpts: function filterOpts() {
|
|
20475
|
-
return Object.assign({},
|
|
20521
|
+
return Object.assign({}, src_conf.table.filterConfig, this.filterConfig);
|
|
20476
20522
|
},
|
|
20477
20523
|
mouseOpts: function mouseOpts() {
|
|
20478
|
-
return Object.assign({},
|
|
20524
|
+
return Object.assign({}, src_conf.table.mouseConfig, this.mouseConfig);
|
|
20479
20525
|
},
|
|
20480
20526
|
areaOpts: function areaOpts() {
|
|
20481
|
-
return Object.assign({},
|
|
20527
|
+
return Object.assign({}, src_conf.table.areaConfig, this.areaConfig);
|
|
20482
20528
|
},
|
|
20483
20529
|
keyboardOpts: function keyboardOpts() {
|
|
20484
|
-
return Object.assign({},
|
|
20530
|
+
return Object.assign({}, src_conf.table.keyboardConfig, this.keyboardConfig);
|
|
20485
20531
|
},
|
|
20486
20532
|
clipOpts: function clipOpts() {
|
|
20487
|
-
return Object.assign({},
|
|
20533
|
+
return Object.assign({}, src_conf.table.clipConfig, this.clipConfig);
|
|
20488
20534
|
},
|
|
20489
20535
|
fnrOpts: function fnrOpts() {
|
|
20490
|
-
return Object.assign({},
|
|
20536
|
+
return Object.assign({}, src_conf.table.fnrConfig, this.fnrConfig);
|
|
20491
20537
|
},
|
|
20492
20538
|
hasTip: function hasTip() {
|
|
20493
20539
|
return v_x_e_table._tooltip;
|
|
@@ -20508,7 +20554,7 @@ function handleUupdateResize(_vm) {
|
|
|
20508
20554
|
return !!((this.contextMenu || this.menuConfig) && isEnableConf(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
|
|
20509
20555
|
},
|
|
20510
20556
|
ctxMenuOpts: function ctxMenuOpts() {
|
|
20511
|
-
return Object.assign({},
|
|
20557
|
+
return Object.assign({}, src_conf.table.menuConfig, this.contextMenu, this.menuConfig);
|
|
20512
20558
|
},
|
|
20513
20559
|
ctxMenuList: function ctxMenuList() {
|
|
20514
20560
|
var rest = [];
|
|
@@ -20520,28 +20566,28 @@ function handleUupdateResize(_vm) {
|
|
|
20520
20566
|
return rest;
|
|
20521
20567
|
},
|
|
20522
20568
|
exportOpts: function exportOpts() {
|
|
20523
|
-
return Object.assign({},
|
|
20569
|
+
return Object.assign({}, src_conf.table.exportConfig, this.exportConfig);
|
|
20524
20570
|
},
|
|
20525
20571
|
importOpts: function importOpts() {
|
|
20526
|
-
return Object.assign({},
|
|
20572
|
+
return Object.assign({}, src_conf.table.importConfig, this.importConfig);
|
|
20527
20573
|
},
|
|
20528
20574
|
printOpts: function printOpts() {
|
|
20529
|
-
return Object.assign({},
|
|
20575
|
+
return Object.assign({}, src_conf.table.printConfig, this.printConfig);
|
|
20530
20576
|
},
|
|
20531
20577
|
expandOpts: function expandOpts() {
|
|
20532
|
-
return Object.assign({},
|
|
20578
|
+
return Object.assign({}, src_conf.table.expandConfig, this.expandConfig);
|
|
20533
20579
|
},
|
|
20534
20580
|
treeOpts: function treeOpts() {
|
|
20535
|
-
return Object.assign({},
|
|
20581
|
+
return Object.assign({}, src_conf.table.treeConfig, this.treeConfig);
|
|
20536
20582
|
},
|
|
20537
20583
|
emptyOpts: function emptyOpts() {
|
|
20538
|
-
return Object.assign({},
|
|
20584
|
+
return Object.assign({}, src_conf.table.emptyRender, this.emptyRender);
|
|
20539
20585
|
},
|
|
20540
20586
|
cellOffsetWidth: function cellOffsetWidth() {
|
|
20541
20587
|
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
20542
20588
|
},
|
|
20543
20589
|
customOpts: function customOpts() {
|
|
20544
|
-
return Object.assign({},
|
|
20590
|
+
return Object.assign({}, src_conf.table.customConfig, this.customConfig);
|
|
20545
20591
|
},
|
|
20546
20592
|
tableBorder: function tableBorder() {
|
|
20547
20593
|
var border = this.border;
|
|
@@ -21116,11 +21162,16 @@ var Table = Object.assign(table, {
|
|
|
21116
21162
|
render: function render(h) {
|
|
21117
21163
|
var $xetable = this.$parent,
|
|
21118
21164
|
filterStore = this.filterStore;
|
|
21119
|
-
var
|
|
21165
|
+
var args = filterStore.args,
|
|
21166
|
+
column = filterStore.column;
|
|
21120
21167
|
var filterRender = column ? column.filterRender : null;
|
|
21121
21168
|
var compConf = filterRender ? v_x_e_table.renderer.get(filterRender.name) : null;
|
|
21169
|
+
var filterClassName = compConf ? compConf.filterClassName : '';
|
|
21122
21170
|
return h('div', {
|
|
21123
|
-
class: ['vxe-table--filter-wrapper', 'filter--prevent-default', compConf && compConf.className ? compConf.className : '', {
|
|
21171
|
+
class: ['vxe-table--filter-wrapper', 'filter--prevent-default', compConf && compConf.className ? compConf.className : '', utils.getClass(filterClassName, Object.assign({
|
|
21172
|
+
$panel: this,
|
|
21173
|
+
$table: $xetable
|
|
21174
|
+
}, args)), {
|
|
21124
21175
|
'is--animat': $xetable.animat,
|
|
21125
21176
|
'is--multiple': filterStore.multiple,
|
|
21126
21177
|
'is--active': filterStore.visible
|
|
@@ -21166,7 +21217,7 @@ var Table = Object.assign(table, {
|
|
|
21166
21217
|
'is--indeterminate': multiple && filterStore.isIndeterminate
|
|
21167
21218
|
}],
|
|
21168
21219
|
attrs: {
|
|
21169
|
-
title:
|
|
21220
|
+
title: src_conf.i18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter')
|
|
21170
21221
|
},
|
|
21171
21222
|
on: {
|
|
21172
21223
|
click: function click(evnt) {
|
|
@@ -21181,7 +21232,7 @@ var Table = Object.assign(table, {
|
|
|
21181
21232
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
21182
21233
|
})] : []).concat([h('span', {
|
|
21183
21234
|
class: 'vxe-checkbox--label'
|
|
21184
|
-
},
|
|
21235
|
+
}, src_conf.i18n('vxe.table.allFilter'))]))]), h('ul', {
|
|
21185
21236
|
class: 'vxe-table--filter-body',
|
|
21186
21237
|
style: maxHeight ? {
|
|
21187
21238
|
maxHeight: "".concat(maxHeight, "px")
|
|
@@ -21230,11 +21281,11 @@ var Table = Object.assign(table, {
|
|
|
21230
21281
|
on: {
|
|
21231
21282
|
click: this.confirmFilter
|
|
21232
21283
|
}
|
|
21233
|
-
},
|
|
21284
|
+
}, src_conf.i18n('vxe.table.confirmFilter')), h('button', {
|
|
21234
21285
|
on: {
|
|
21235
21286
|
click: this.resetFilter
|
|
21236
21287
|
}
|
|
21237
|
-
},
|
|
21288
|
+
}, src_conf.i18n('vxe.table.resetFilter'))])] : [];
|
|
21238
21289
|
},
|
|
21239
21290
|
// 全部筛选事件
|
|
21240
21291
|
filterCheckAllEvent: function filterCheckAllEvent(evnt, value) {
|
|
@@ -22357,7 +22408,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
22357
22408
|
}
|
|
22358
22409
|
} else {
|
|
22359
22410
|
if (treeConfig) {
|
|
22360
|
-
throw new Error(
|
|
22411
|
+
throw new Error(getLog('vxe.error.noTree', ['insert']));
|
|
22361
22412
|
}
|
|
22362
22413
|
|
|
22363
22414
|
var afIndex = -1; // 如果是可视索引
|
|
@@ -22918,20 +22969,24 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
22918
22969
|
var compRender = v_x_e_table.renderer.get(editRender.name);
|
|
22919
22970
|
var autofocus = editRender.autofocus,
|
|
22920
22971
|
autoselect = editRender.autoselect;
|
|
22921
|
-
var inputElem;
|
|
22972
|
+
var inputElem;
|
|
22973
|
+
|
|
22974
|
+
if (!autofocus && compRender) {
|
|
22975
|
+
autofocus = compRender.autofocus;
|
|
22976
|
+
} // 如果指定了聚焦 class
|
|
22922
22977
|
|
|
22923
|
-
if (autofocus) {
|
|
22924
|
-
inputElem = cell.querySelector(autofocus);
|
|
22925
|
-
} // 渲染器的聚焦处理
|
|
22926
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);
|
|
22927
22983
|
|
|
22928
|
-
|
|
22929
|
-
|
|
22984
|
+
if (inputElem) {
|
|
22985
|
+
inputElem.focus();
|
|
22986
|
+
}
|
|
22930
22987
|
}
|
|
22931
22988
|
|
|
22932
22989
|
if (inputElem) {
|
|
22933
|
-
inputElem.focus();
|
|
22934
|
-
|
|
22935
22990
|
if (autoselect) {
|
|
22936
22991
|
inputElem.select();
|
|
22937
22992
|
} else {
|
|
@@ -23222,6 +23277,7 @@ function _slicedToArray(arr, i) {
|
|
|
23222
23277
|
|
|
23223
23278
|
|
|
23224
23279
|
|
|
23280
|
+
|
|
23225
23281
|
|
|
23226
23282
|
var allActivedModals = [];
|
|
23227
23283
|
var msgQueue = [];
|
|
@@ -23245,7 +23301,7 @@ var msgQueue = [];
|
|
|
23245
23301
|
top: {
|
|
23246
23302
|
type: [Number, String],
|
|
23247
23303
|
default: function _default() {
|
|
23248
|
-
return
|
|
23304
|
+
return src_conf.modal.top;
|
|
23249
23305
|
}
|
|
23250
23306
|
},
|
|
23251
23307
|
position: [String, Object],
|
|
@@ -23253,7 +23309,7 @@ var msgQueue = [];
|
|
|
23253
23309
|
duration: {
|
|
23254
23310
|
type: [Number, String],
|
|
23255
23311
|
default: function _default() {
|
|
23256
|
-
return
|
|
23312
|
+
return src_conf.modal.duration;
|
|
23257
23313
|
}
|
|
23258
23314
|
},
|
|
23259
23315
|
// 请使用 content
|
|
@@ -23262,56 +23318,56 @@ var msgQueue = [];
|
|
|
23262
23318
|
cancelButtonText: {
|
|
23263
23319
|
type: String,
|
|
23264
23320
|
default: function _default() {
|
|
23265
|
-
return
|
|
23321
|
+
return src_conf.modal.cancelButtonText;
|
|
23266
23322
|
}
|
|
23267
23323
|
},
|
|
23268
23324
|
confirmButtonText: {
|
|
23269
23325
|
type: String,
|
|
23270
23326
|
default: function _default() {
|
|
23271
|
-
return
|
|
23327
|
+
return src_conf.modal.confirmButtonText;
|
|
23272
23328
|
}
|
|
23273
23329
|
},
|
|
23274
23330
|
lockView: {
|
|
23275
23331
|
type: Boolean,
|
|
23276
23332
|
default: function _default() {
|
|
23277
|
-
return
|
|
23333
|
+
return src_conf.modal.lockView;
|
|
23278
23334
|
}
|
|
23279
23335
|
},
|
|
23280
23336
|
lockScroll: Boolean,
|
|
23281
23337
|
mask: {
|
|
23282
23338
|
type: Boolean,
|
|
23283
23339
|
default: function _default() {
|
|
23284
|
-
return
|
|
23340
|
+
return src_conf.modal.mask;
|
|
23285
23341
|
}
|
|
23286
23342
|
},
|
|
23287
23343
|
maskClosable: {
|
|
23288
23344
|
type: Boolean,
|
|
23289
23345
|
default: function _default() {
|
|
23290
|
-
return
|
|
23346
|
+
return src_conf.modal.maskClosable;
|
|
23291
23347
|
}
|
|
23292
23348
|
},
|
|
23293
23349
|
escClosable: {
|
|
23294
23350
|
type: Boolean,
|
|
23295
23351
|
default: function _default() {
|
|
23296
|
-
return
|
|
23352
|
+
return src_conf.modal.escClosable;
|
|
23297
23353
|
}
|
|
23298
23354
|
},
|
|
23299
23355
|
resize: {
|
|
23300
23356
|
type: Boolean,
|
|
23301
23357
|
default: function _default() {
|
|
23302
|
-
return
|
|
23358
|
+
return src_conf.modal.resize;
|
|
23303
23359
|
}
|
|
23304
23360
|
},
|
|
23305
23361
|
showHeader: {
|
|
23306
23362
|
type: Boolean,
|
|
23307
23363
|
default: function _default() {
|
|
23308
|
-
return
|
|
23364
|
+
return src_conf.modal.showHeader;
|
|
23309
23365
|
}
|
|
23310
23366
|
},
|
|
23311
23367
|
showFooter: {
|
|
23312
23368
|
type: Boolean,
|
|
23313
23369
|
default: function _default() {
|
|
23314
|
-
return
|
|
23370
|
+
return src_conf.modal.showFooter;
|
|
23315
23371
|
}
|
|
23316
23372
|
},
|
|
23317
23373
|
showZoom: {
|
|
@@ -23321,13 +23377,13 @@ var msgQueue = [];
|
|
|
23321
23377
|
showClose: {
|
|
23322
23378
|
type: Boolean,
|
|
23323
23379
|
default: function _default() {
|
|
23324
|
-
return
|
|
23380
|
+
return src_conf.modal.showClose;
|
|
23325
23381
|
}
|
|
23326
23382
|
},
|
|
23327
23383
|
dblclickZoom: {
|
|
23328
23384
|
type: Boolean,
|
|
23329
23385
|
default: function _default() {
|
|
23330
|
-
return
|
|
23386
|
+
return src_conf.modal.dblclickZoom;
|
|
23331
23387
|
}
|
|
23332
23388
|
},
|
|
23333
23389
|
width: [Number, String],
|
|
@@ -23335,81 +23391,81 @@ var msgQueue = [];
|
|
|
23335
23391
|
minWidth: {
|
|
23336
23392
|
type: [Number, String],
|
|
23337
23393
|
default: function _default() {
|
|
23338
|
-
return
|
|
23394
|
+
return src_conf.modal.minWidth;
|
|
23339
23395
|
}
|
|
23340
23396
|
},
|
|
23341
23397
|
minHeight: {
|
|
23342
23398
|
type: [Number, String],
|
|
23343
23399
|
default: function _default() {
|
|
23344
|
-
return
|
|
23400
|
+
return src_conf.modal.minHeight;
|
|
23345
23401
|
}
|
|
23346
23402
|
},
|
|
23347
23403
|
zIndex: Number,
|
|
23348
23404
|
marginSize: {
|
|
23349
23405
|
type: [Number, String],
|
|
23350
23406
|
default: function _default() {
|
|
23351
|
-
return
|
|
23407
|
+
return src_conf.modal.marginSize;
|
|
23352
23408
|
}
|
|
23353
23409
|
},
|
|
23354
23410
|
fullscreen: Boolean,
|
|
23355
23411
|
draggable: {
|
|
23356
23412
|
type: Boolean,
|
|
23357
23413
|
default: function _default() {
|
|
23358
|
-
return
|
|
23414
|
+
return src_conf.modal.draggable;
|
|
23359
23415
|
}
|
|
23360
23416
|
},
|
|
23361
23417
|
remember: {
|
|
23362
23418
|
type: Boolean,
|
|
23363
23419
|
default: function _default() {
|
|
23364
|
-
return
|
|
23420
|
+
return src_conf.modal.remember;
|
|
23365
23421
|
}
|
|
23366
23422
|
},
|
|
23367
23423
|
destroyOnClose: {
|
|
23368
23424
|
type: Boolean,
|
|
23369
23425
|
default: function _default() {
|
|
23370
|
-
return
|
|
23426
|
+
return src_conf.modal.destroyOnClose;
|
|
23371
23427
|
}
|
|
23372
23428
|
},
|
|
23373
23429
|
showTitleOverflow: {
|
|
23374
23430
|
type: Boolean,
|
|
23375
23431
|
default: function _default() {
|
|
23376
|
-
return
|
|
23432
|
+
return src_conf.modal.showTitleOverflow;
|
|
23377
23433
|
}
|
|
23378
23434
|
},
|
|
23379
23435
|
transfer: {
|
|
23380
23436
|
type: Boolean,
|
|
23381
23437
|
default: function _default() {
|
|
23382
|
-
return
|
|
23438
|
+
return src_conf.modal.transfer;
|
|
23383
23439
|
}
|
|
23384
23440
|
},
|
|
23385
23441
|
storage: {
|
|
23386
23442
|
type: Boolean,
|
|
23387
23443
|
default: function _default() {
|
|
23388
|
-
return
|
|
23444
|
+
return src_conf.modal.storage;
|
|
23389
23445
|
}
|
|
23390
23446
|
},
|
|
23391
23447
|
storageKey: {
|
|
23392
23448
|
type: String,
|
|
23393
23449
|
default: function _default() {
|
|
23394
|
-
return
|
|
23450
|
+
return src_conf.modal.storageKey;
|
|
23395
23451
|
}
|
|
23396
23452
|
},
|
|
23397
23453
|
animat: {
|
|
23398
23454
|
type: Boolean,
|
|
23399
23455
|
default: function _default() {
|
|
23400
|
-
return
|
|
23456
|
+
return src_conf.modal.animat;
|
|
23401
23457
|
}
|
|
23402
23458
|
},
|
|
23403
23459
|
size: {
|
|
23404
23460
|
type: String,
|
|
23405
23461
|
default: function _default() {
|
|
23406
|
-
return
|
|
23462
|
+
return src_conf.modal.size || src_conf.size;
|
|
23407
23463
|
}
|
|
23408
23464
|
},
|
|
23409
23465
|
beforeHideMethod: {
|
|
23410
23466
|
type: Function,
|
|
23411
23467
|
default: function _default() {
|
|
23412
|
-
return
|
|
23468
|
+
return src_conf.modal.beforeHideMethod;
|
|
23413
23469
|
}
|
|
23414
23470
|
},
|
|
23415
23471
|
slots: Object,
|
|
@@ -23556,24 +23612,24 @@ var msgQueue = [];
|
|
|
23556
23612
|
'is--ellipsis': !isMsg && showTitleOverflow
|
|
23557
23613
|
}],
|
|
23558
23614
|
on: headerOns
|
|
23559
|
-
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : headerSlot.call(this, {
|
|
23615
|
+
}, headerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(headerSlot.call(this, {
|
|
23560
23616
|
$modal: this
|
|
23561
|
-
}, h) : [titleSlot ? titleSlot.call(this, {
|
|
23617
|
+
}, h)) : [titleSlot ? getSlotVNs(titleSlot.call(this, {
|
|
23562
23618
|
$modal: this
|
|
23563
|
-
}, h) : h('span', {
|
|
23619
|
+
}, h)) : h('span', {
|
|
23564
23620
|
class: 'vxe-modal--title'
|
|
23565
|
-
}, title ? getFuncText(title) :
|
|
23566
|
-
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],
|
|
23567
23623
|
attrs: {
|
|
23568
|
-
title:
|
|
23624
|
+
title: src_conf.i18n("vxe.modal.zoom".concat(zoomLocat ? 'Out' : 'In'))
|
|
23569
23625
|
},
|
|
23570
23626
|
on: {
|
|
23571
23627
|
click: this.toggleZoomEvent
|
|
23572
23628
|
}
|
|
23573
23629
|
}) : _e(), showClose ? h('i', {
|
|
23574
|
-
class: ['vxe-modal--close-btn', 'trigger--btn',
|
|
23630
|
+
class: ['vxe-modal--close-btn', 'trigger--btn', src_conf.icon.MODAL_CLOSE],
|
|
23575
23631
|
attrs: {
|
|
23576
|
-
title:
|
|
23632
|
+
title: src_conf.i18n('vxe.modal.close')
|
|
23577
23633
|
},
|
|
23578
23634
|
on: {
|
|
23579
23635
|
click: this.closeEvent
|
|
@@ -23583,12 +23639,12 @@ var msgQueue = [];
|
|
|
23583
23639
|
}, [status ? h('div', {
|
|
23584
23640
|
class: 'vxe-modal--status-wrapper'
|
|
23585
23641
|
}, [h('i', {
|
|
23586
|
-
class: ['vxe-modal--status-icon', iconStatus ||
|
|
23642
|
+
class: ['vxe-modal--status-icon', iconStatus || src_conf.icon["MODAL_".concat(status).toLocaleUpperCase()]]
|
|
23587
23643
|
})]) : null, h('div', {
|
|
23588
23644
|
class: 'vxe-modal--content'
|
|
23589
|
-
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : defaultSlot.call(this, {
|
|
23645
|
+
}, defaultSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(defaultSlot.call(this, {
|
|
23590
23646
|
$modal: this
|
|
23591
|
-
}, h) : getFuncText(content)),
|
|
23647
|
+
}, h)) : getFuncText(content)),
|
|
23592
23648
|
/**
|
|
23593
23649
|
* 加载中
|
|
23594
23650
|
*/
|
|
@@ -23599,14 +23655,14 @@ var msgQueue = [];
|
|
|
23599
23655
|
}
|
|
23600
23656
|
}) : null]), showFooter ? h('div', {
|
|
23601
23657
|
class: 'vxe-modal--footer'
|
|
23602
|
-
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : footerSlot.call(this, {
|
|
23658
|
+
}, footerSlot ? !inited || destroyOnClose && !visible ? [] : getSlotVNs(footerSlot.call(this, {
|
|
23603
23659
|
$modal: this
|
|
23604
|
-
}, h) : [type === 'confirm' ? h('vxe-button', {
|
|
23660
|
+
}, h)) : [type === 'confirm' ? h('vxe-button', {
|
|
23605
23661
|
ref: 'cancelBtn',
|
|
23606
23662
|
on: {
|
|
23607
23663
|
click: this.cancelEvent
|
|
23608
23664
|
}
|
|
23609
|
-
}, this.cancelButtonText ||
|
|
23665
|
+
}, this.cancelButtonText || src_conf.i18n('vxe.button.cancel')) : null, h('vxe-button', {
|
|
23610
23666
|
ref: 'confirmBtn',
|
|
23611
23667
|
props: {
|
|
23612
23668
|
status: 'primary'
|
|
@@ -23614,7 +23670,7 @@ var msgQueue = [];
|
|
|
23614
23670
|
on: {
|
|
23615
23671
|
click: this.confirmEvent
|
|
23616
23672
|
}
|
|
23617
|
-
}, this.confirmButtonText ||
|
|
23673
|
+
}, this.confirmButtonText || src_conf.i18n('vxe.button.confirm'))]) : null, !isMsg && resize ? h('span', {
|
|
23618
23674
|
class: 'vxe-modal--resize'
|
|
23619
23675
|
}, ['wl', 'wr', 'swst', 'sest', 'st', 'swlb', 'selb', 'sb'].map(function (type) {
|
|
23620
23676
|
return h('span', {
|
|
@@ -24335,7 +24391,7 @@ var msgQueue = [];
|
|
|
24335
24391
|
};
|
|
24336
24392
|
},
|
|
24337
24393
|
getStorageMap: function getStorageMap(key) {
|
|
24338
|
-
var version =
|
|
24394
|
+
var version = src_conf.version;
|
|
24339
24395
|
var rest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.toStringJSON(localStorage.getItem(key));
|
|
24340
24396
|
return rest && rest._v === version ? rest : {
|
|
24341
24397
|
_v: version
|
|
@@ -24716,7 +24772,7 @@ function renderDateMonthTable(h, _vm) {
|
|
|
24716
24772
|
return _vm.dateMouseenterEvent(item);
|
|
24717
24773
|
}
|
|
24718
24774
|
}
|
|
24719
|
-
}, renderDateLabel(h, _vm, item,
|
|
24775
|
+
}, renderDateLabel(h, _vm, item, src_conf.i18n("vxe.input.date.months.m".concat(item.month))));
|
|
24720
24776
|
}));
|
|
24721
24777
|
}))])];
|
|
24722
24778
|
}
|
|
@@ -24758,7 +24814,7 @@ function renderDateQuarterTable(h, _vm) {
|
|
|
24758
24814
|
return _vm.dateMouseenterEvent(item);
|
|
24759
24815
|
}
|
|
24760
24816
|
}
|
|
24761
|
-
}, renderDateLabel(h, _vm, item,
|
|
24817
|
+
}, renderDateLabel(h, _vm, item, src_conf.i18n("vxe.input.date.quarters.q".concat(item.quarter))));
|
|
24762
24818
|
}));
|
|
24763
24819
|
}))])];
|
|
24764
24820
|
}
|
|
@@ -24880,7 +24936,7 @@ function renderDatePanel(h, _vm) {
|
|
|
24880
24936
|
on: {
|
|
24881
24937
|
click: _vm.dateConfirmEvent
|
|
24882
24938
|
}
|
|
24883
|
-
},
|
|
24939
|
+
}, src_conf.i18n('vxe.button.confirm'))]) : null])]), h('div', {
|
|
24884
24940
|
class: 'vxe-input--date-picker-body'
|
|
24885
24941
|
}, renderDateTable(h, _vm))];
|
|
24886
24942
|
}
|
|
@@ -24903,7 +24959,7 @@ function renderTimePanel(h, _vm) {
|
|
|
24903
24959
|
on: {
|
|
24904
24960
|
click: _vm.dateConfirmEvent
|
|
24905
24961
|
}
|
|
24906
|
-
},
|
|
24962
|
+
}, src_conf.i18n('vxe.button.confirm'))]), h('div', {
|
|
24907
24963
|
ref: 'timeBody',
|
|
24908
24964
|
class: 'vxe-input--time-picker-body'
|
|
24909
24965
|
}, [h('ul', {
|
|
@@ -25009,7 +25065,7 @@ function renderNumberIcon(h, _vm) {
|
|
|
25009
25065
|
mouseleave: _vm.numberStopDown
|
|
25010
25066
|
}
|
|
25011
25067
|
}, [h('i', {
|
|
25012
|
-
class: ['vxe-input--number-prev-icon',
|
|
25068
|
+
class: ['vxe-input--number-prev-icon', src_conf.icon.INPUT_PREV_NUM]
|
|
25013
25069
|
})]), h('span', {
|
|
25014
25070
|
class: ['vxe-input--number-next is--next', {
|
|
25015
25071
|
'is--disabled': _vm.isDisabledSubtractNumber
|
|
@@ -25020,7 +25076,7 @@ function renderNumberIcon(h, _vm) {
|
|
|
25020
25076
|
mouseleave: _vm.numberStopDown
|
|
25021
25077
|
}
|
|
25022
25078
|
}, [h('i', {
|
|
25023
|
-
class: ['vxe-input--number-next-icon',
|
|
25079
|
+
class: ['vxe-input--number-next-icon', src_conf.icon.INPUT_NEXT_NUM]
|
|
25024
25080
|
})])]);
|
|
25025
25081
|
}
|
|
25026
25082
|
|
|
@@ -25031,7 +25087,7 @@ function renderDatePickerIcon(h, _vm) {
|
|
|
25031
25087
|
click: _vm.datePickerOpenEvent
|
|
25032
25088
|
}
|
|
25033
25089
|
}, [h('i', {
|
|
25034
|
-
class: ['vxe-input--date-picker-icon',
|
|
25090
|
+
class: ['vxe-input--date-picker-icon', src_conf.icon.INPUT_DATE]
|
|
25035
25091
|
})]);
|
|
25036
25092
|
}
|
|
25037
25093
|
|
|
@@ -25042,7 +25098,7 @@ function renderSearchIcon(h, _vm) {
|
|
|
25042
25098
|
click: _vm.searchEvent
|
|
25043
25099
|
}
|
|
25044
25100
|
}, [h('i', {
|
|
25045
|
-
class: ['vxe-input--search-icon',
|
|
25101
|
+
class: ['vxe-input--search-icon', src_conf.icon.INPUT_SEARCH]
|
|
25046
25102
|
})]);
|
|
25047
25103
|
}
|
|
25048
25104
|
|
|
@@ -25054,7 +25110,7 @@ function renderPasswordIcon(h, _vm) {
|
|
|
25054
25110
|
click: _vm.passwordToggleEvent
|
|
25055
25111
|
}
|
|
25056
25112
|
}, [h('i', {
|
|
25057
|
-
class: ['vxe-input--password-icon', showPwd ?
|
|
25113
|
+
class: ['vxe-input--password-icon', showPwd ? src_conf.icon.INPUT_SHOW_PWD : src_conf.icon.INPUT_PWD]
|
|
25058
25114
|
})]);
|
|
25059
25115
|
}
|
|
25060
25116
|
|
|
@@ -25101,7 +25157,7 @@ function renderSuffixIcon(h, _vm) {
|
|
|
25101
25157
|
|
|
25102
25158
|
if (isClearable) {
|
|
25103
25159
|
icons.push(h('i', {
|
|
25104
|
-
class: ['vxe-input--clear-icon',
|
|
25160
|
+
class: ['vxe-input--clear-icon', src_conf.icon.INPUT_CLEAR]
|
|
25105
25161
|
}));
|
|
25106
25162
|
}
|
|
25107
25163
|
|
|
@@ -25161,7 +25217,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25161
25217
|
clearable: {
|
|
25162
25218
|
type: Boolean,
|
|
25163
25219
|
default: function _default() {
|
|
25164
|
-
return
|
|
25220
|
+
return src_conf.input.clearable;
|
|
25165
25221
|
}
|
|
25166
25222
|
},
|
|
25167
25223
|
readonly: Boolean,
|
|
@@ -25178,7 +25234,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25178
25234
|
size: {
|
|
25179
25235
|
type: String,
|
|
25180
25236
|
default: function _default() {
|
|
25181
|
-
return
|
|
25237
|
+
return src_conf.input.size || src_conf.size;
|
|
25182
25238
|
}
|
|
25183
25239
|
},
|
|
25184
25240
|
multiple: Boolean,
|
|
@@ -25195,21 +25251,21 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25195
25251
|
exponential: {
|
|
25196
25252
|
type: Boolean,
|
|
25197
25253
|
default: function _default() {
|
|
25198
|
-
return
|
|
25254
|
+
return src_conf.input.exponential;
|
|
25199
25255
|
}
|
|
25200
25256
|
},
|
|
25201
25257
|
// number、integer、float、password
|
|
25202
25258
|
controls: {
|
|
25203
25259
|
type: Boolean,
|
|
25204
25260
|
default: function _default() {
|
|
25205
|
-
return
|
|
25261
|
+
return src_conf.input.controls;
|
|
25206
25262
|
}
|
|
25207
25263
|
},
|
|
25208
25264
|
// float
|
|
25209
25265
|
digits: {
|
|
25210
25266
|
type: [String, Number],
|
|
25211
25267
|
default: function _default() {
|
|
25212
|
-
return
|
|
25268
|
+
return src_conf.input.digits;
|
|
25213
25269
|
}
|
|
25214
25270
|
},
|
|
25215
25271
|
// date、week、month、year
|
|
@@ -25217,13 +25273,13 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25217
25273
|
startDate: {
|
|
25218
25274
|
type: [String, Number, Date],
|
|
25219
25275
|
default: function _default() {
|
|
25220
|
-
return
|
|
25276
|
+
return src_conf.input.startDate;
|
|
25221
25277
|
}
|
|
25222
25278
|
},
|
|
25223
25279
|
endDate: {
|
|
25224
25280
|
type: [String, Number, Date],
|
|
25225
25281
|
default: function _default() {
|
|
25226
|
-
return
|
|
25282
|
+
return src_conf.input.endDate;
|
|
25227
25283
|
}
|
|
25228
25284
|
},
|
|
25229
25285
|
minDate: [String, Number, Date],
|
|
@@ -25233,19 +25289,19 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25233
25289
|
startDay: {
|
|
25234
25290
|
type: [String, Number],
|
|
25235
25291
|
default: function _default() {
|
|
25236
|
-
return
|
|
25292
|
+
return src_conf.input.startDay;
|
|
25237
25293
|
}
|
|
25238
25294
|
},
|
|
25239
25295
|
labelFormat: {
|
|
25240
25296
|
type: String,
|
|
25241
25297
|
default: function _default() {
|
|
25242
|
-
return
|
|
25298
|
+
return src_conf.input.labelFormat;
|
|
25243
25299
|
}
|
|
25244
25300
|
},
|
|
25245
25301
|
valueFormat: {
|
|
25246
25302
|
type: String,
|
|
25247
25303
|
default: function _default() {
|
|
25248
|
-
return
|
|
25304
|
+
return src_conf.input.valueFormat;
|
|
25249
25305
|
}
|
|
25250
25306
|
},
|
|
25251
25307
|
editable: {
|
|
@@ -25255,20 +25311,20 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25255
25311
|
festivalMethod: {
|
|
25256
25312
|
type: Function,
|
|
25257
25313
|
default: function _default() {
|
|
25258
|
-
return
|
|
25314
|
+
return src_conf.input.festivalMethod;
|
|
25259
25315
|
}
|
|
25260
25316
|
},
|
|
25261
25317
|
disabledMethod: {
|
|
25262
25318
|
type: Function,
|
|
25263
25319
|
default: function _default() {
|
|
25264
|
-
return
|
|
25320
|
+
return src_conf.input.disabledMethod;
|
|
25265
25321
|
}
|
|
25266
25322
|
},
|
|
25267
25323
|
// week
|
|
25268
25324
|
selectDay: {
|
|
25269
25325
|
type: Number,
|
|
25270
25326
|
default: function _default() {
|
|
25271
|
-
return
|
|
25327
|
+
return src_conf.input.selectDay;
|
|
25272
25328
|
}
|
|
25273
25329
|
},
|
|
25274
25330
|
prefixIcon: String,
|
|
@@ -25277,7 +25333,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25277
25333
|
transfer: {
|
|
25278
25334
|
type: Boolean,
|
|
25279
25335
|
default: function _default() {
|
|
25280
|
-
return
|
|
25336
|
+
return src_conf.input.transfer;
|
|
25281
25337
|
}
|
|
25282
25338
|
}
|
|
25283
25339
|
},
|
|
@@ -25438,7 +25494,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25438
25494
|
},
|
|
25439
25495
|
dateLabelFormat: function dateLabelFormat() {
|
|
25440
25496
|
if (this.isDatePickerType) {
|
|
25441
|
-
return this.labelFormat ||
|
|
25497
|
+
return this.labelFormat || src_conf.i18n("vxe.input.date.labelFormat.".concat(this.type));
|
|
25442
25498
|
}
|
|
25443
25499
|
|
|
25444
25500
|
return null;
|
|
@@ -25461,14 +25517,14 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25461
25517
|
}
|
|
25462
25518
|
|
|
25463
25519
|
if (datePanelType === 'quarter') {
|
|
25464
|
-
return
|
|
25520
|
+
return src_conf.i18n('vxe.input.date.quarterLabel', [year]);
|
|
25465
25521
|
} else if (datePanelType === 'month') {
|
|
25466
|
-
return
|
|
25522
|
+
return src_conf.i18n('vxe.input.date.monthLabel', [year]);
|
|
25467
25523
|
} else if (datePanelType === 'year') {
|
|
25468
25524
|
return yearList.length ? "".concat(yearList[0].year, " - ").concat(yearList[yearList.length - 1].year) : '';
|
|
25469
25525
|
}
|
|
25470
25526
|
|
|
25471
|
-
return
|
|
25527
|
+
return src_conf.i18n('vxe.input.date.dayLabel', [year, month ? src_conf.i18n("vxe.input.date.m".concat(month)) : '-']);
|
|
25472
25528
|
}
|
|
25473
25529
|
|
|
25474
25530
|
return '';
|
|
@@ -25503,7 +25559,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25503
25559
|
return this.weekDatas.map(function (day) {
|
|
25504
25560
|
return {
|
|
25505
25561
|
value: day,
|
|
25506
|
-
label:
|
|
25562
|
+
label: src_conf.i18n("vxe.input.date.weeks.w".concat(day))
|
|
25507
25563
|
};
|
|
25508
25564
|
});
|
|
25509
25565
|
}
|
|
@@ -25513,7 +25569,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
25513
25569
|
weekHeaders: function weekHeaders() {
|
|
25514
25570
|
if (this.isDatePickerType) {
|
|
25515
25571
|
return [{
|
|
25516
|
-
label:
|
|
25572
|
+
label: src_conf.i18n('vxe.input.date.weeks.w')
|
|
25517
25573
|
}].concat(this.dateHeaders);
|
|
25518
25574
|
}
|
|
25519
25575
|
|
|
@@ -27133,7 +27189,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
27133
27189
|
size: {
|
|
27134
27190
|
type: String,
|
|
27135
27191
|
default: function _default() {
|
|
27136
|
-
return
|
|
27192
|
+
return src_conf.checkbox.size || src_conf.size;
|
|
27137
27193
|
}
|
|
27138
27194
|
}
|
|
27139
27195
|
},
|
|
@@ -27250,6 +27306,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
27250
27306
|
|
|
27251
27307
|
|
|
27252
27308
|
|
|
27309
|
+
|
|
27253
27310
|
|
|
27254
27311
|
function isOptionVisible(option) {
|
|
27255
27312
|
return option.visible !== false;
|
|
@@ -27494,10 +27551,10 @@ function select_renderOpts(h, _vm) {
|
|
|
27494
27551
|
return [h('div', {
|
|
27495
27552
|
class: 'vxe-select--search-loading'
|
|
27496
27553
|
}, [h('i', {
|
|
27497
|
-
class: ['vxe-select--search-icon',
|
|
27554
|
+
class: ['vxe-select--search-icon', src_conf.icon.SELECT_LOADED]
|
|
27498
27555
|
}), h('span', {
|
|
27499
27556
|
class: 'vxe-select--search-text'
|
|
27500
|
-
},
|
|
27557
|
+
}, src_conf.i18n('vxe.select.loadingText'))])];
|
|
27501
27558
|
}
|
|
27502
27559
|
|
|
27503
27560
|
if (isGroup) {
|
|
@@ -27512,7 +27569,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27512
27569
|
|
|
27513
27570
|
return [h('div', {
|
|
27514
27571
|
class: 'vxe-select--empty-placeholder'
|
|
27515
|
-
}, _vm.emptyText ||
|
|
27572
|
+
}, _vm.emptyText || src_conf.i18n('vxe.select.emptyText'))];
|
|
27516
27573
|
}
|
|
27517
27574
|
|
|
27518
27575
|
/* harmony default export */ var src_select = ({
|
|
@@ -27528,7 +27585,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27528
27585
|
multiCharOverflow: {
|
|
27529
27586
|
type: [Number, String],
|
|
27530
27587
|
default: function _default() {
|
|
27531
|
-
return
|
|
27588
|
+
return src_conf.select.multiCharOverflow;
|
|
27532
27589
|
}
|
|
27533
27590
|
},
|
|
27534
27591
|
prefixIcon: String,
|
|
@@ -27542,7 +27599,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27542
27599
|
size: {
|
|
27543
27600
|
type: String,
|
|
27544
27601
|
default: function _default() {
|
|
27545
|
-
return
|
|
27602
|
+
return src_conf.select.size || src_conf.size;
|
|
27546
27603
|
}
|
|
27547
27604
|
},
|
|
27548
27605
|
filterable: Boolean,
|
|
@@ -27554,7 +27611,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27554
27611
|
optionId: {
|
|
27555
27612
|
type: String,
|
|
27556
27613
|
default: function _default() {
|
|
27557
|
-
return
|
|
27614
|
+
return src_conf.select.optionId;
|
|
27558
27615
|
}
|
|
27559
27616
|
},
|
|
27560
27617
|
// 已废弃,被 option-config.useKey 替换
|
|
@@ -27562,7 +27619,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27562
27619
|
transfer: {
|
|
27563
27620
|
type: Boolean,
|
|
27564
27621
|
default: function _default() {
|
|
27565
|
-
return
|
|
27622
|
+
return src_conf.select.transfer;
|
|
27566
27623
|
}
|
|
27567
27624
|
}
|
|
27568
27625
|
},
|
|
@@ -27623,7 +27680,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27623
27680
|
return this.groupPropsOpts.options || 'options';
|
|
27624
27681
|
},
|
|
27625
27682
|
optionOpts: function optionOpts() {
|
|
27626
|
-
return Object.assign({},
|
|
27683
|
+
return Object.assign({}, src_conf.select.optionConfig, this.optionConfig);
|
|
27627
27684
|
},
|
|
27628
27685
|
isGroup: function isGroup() {
|
|
27629
27686
|
return this.fullGroupList.some(function (item) {
|
|
@@ -27752,7 +27809,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27752
27809
|
disabled: disabled,
|
|
27753
27810
|
type: 'text',
|
|
27754
27811
|
prefixIcon: this.prefixIcon,
|
|
27755
|
-
suffixIcon: loading ?
|
|
27812
|
+
suffixIcon: loading ? src_conf.icon.SELECT_LOADED : visiblePanel ? src_conf.icon.SELECT_OPEN : src_conf.icon.SELECT_CLOSE,
|
|
27756
27813
|
value: this.selectLabel
|
|
27757
27814
|
},
|
|
27758
27815
|
on: {
|
|
@@ -27783,8 +27840,8 @@ function select_renderOpts(h, _vm) {
|
|
|
27783
27840
|
value: this.searchValue,
|
|
27784
27841
|
type: 'text',
|
|
27785
27842
|
clearable: true,
|
|
27786
|
-
placeholder:
|
|
27787
|
-
prefixIcon:
|
|
27843
|
+
placeholder: src_conf.i18n('vxe.select.search'),
|
|
27844
|
+
prefixIcon: src_conf.icon.INPUT_SEARCH
|
|
27788
27845
|
},
|
|
27789
27846
|
on: {
|
|
27790
27847
|
modelValue: this.modelSearchEvent,
|
|
@@ -27808,7 +27865,7 @@ function select_renderOpts(h, _vm) {
|
|
|
27808
27865
|
}
|
|
27809
27866
|
|
|
27810
27867
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
27811
|
-
return slotFunc.call(this, params, h);
|
|
27868
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
27812
27869
|
}
|
|
27813
27870
|
}
|
|
27814
27871
|
|
|
@@ -28568,7 +28625,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28568
28625
|
res: 'modal',
|
|
28569
28626
|
props: {
|
|
28570
28627
|
value: storeData.visible,
|
|
28571
|
-
title:
|
|
28628
|
+
title: src_conf.i18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle'),
|
|
28572
28629
|
width: 660,
|
|
28573
28630
|
mask: true,
|
|
28574
28631
|
lockView: true,
|
|
@@ -28591,20 +28648,20 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28591
28648
|
cellpadding: 0,
|
|
28592
28649
|
border: 0
|
|
28593
28650
|
}
|
|
28594
|
-
}, [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', {
|
|
28595
28652
|
ref: 'filename',
|
|
28596
28653
|
props: {
|
|
28597
28654
|
value: defaultOptions.filename,
|
|
28598
28655
|
type: 'text',
|
|
28599
28656
|
clearable: true,
|
|
28600
|
-
placeholder:
|
|
28657
|
+
placeholder: src_conf.i18n('vxe.export.expNamePlaceholder')
|
|
28601
28658
|
},
|
|
28602
28659
|
on: {
|
|
28603
28660
|
modelValue: function modelValue(value) {
|
|
28604
28661
|
defaultOptions.filename = value;
|
|
28605
28662
|
}
|
|
28606
28663
|
}
|
|
28607
|
-
})])]), isPrint ? _e() : h('tr', [h('td',
|
|
28664
|
+
})])]), isPrint ? _e() : h('tr', [h('td', src_conf.i18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
28608
28665
|
props: {
|
|
28609
28666
|
value: defaultOptions.type
|
|
28610
28667
|
},
|
|
@@ -28617,23 +28674,23 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28617
28674
|
return h('vxe-option', {
|
|
28618
28675
|
props: {
|
|
28619
28676
|
value: item.value,
|
|
28620
|
-
label:
|
|
28677
|
+
label: src_conf.i18n(item.label)
|
|
28621
28678
|
}
|
|
28622
28679
|
});
|
|
28623
|
-
}))])]), isPrint || showSheet ? h('tr', [h('td',
|
|
28680
|
+
}))])]), isPrint || showSheet ? h('tr', [h('td', src_conf.i18n('vxe.export.expSheetName')), h('td', [h('vxe-input', {
|
|
28624
28681
|
ref: 'sheetname',
|
|
28625
28682
|
props: {
|
|
28626
28683
|
value: defaultOptions.sheetName,
|
|
28627
28684
|
type: 'text',
|
|
28628
28685
|
clearable: true,
|
|
28629
|
-
placeholder:
|
|
28686
|
+
placeholder: src_conf.i18n('vxe.export.expSheetNamePlaceholder')
|
|
28630
28687
|
},
|
|
28631
28688
|
on: {
|
|
28632
28689
|
modelValue: function modelValue(value) {
|
|
28633
28690
|
defaultOptions.sheetName = value;
|
|
28634
28691
|
}
|
|
28635
28692
|
}
|
|
28636
|
-
})])]) : _e(), h('tr', [h('td',
|
|
28693
|
+
})])]) : _e(), h('tr', [h('td', src_conf.i18n('vxe.export.expMode')), h('td', [h('vxe-select', {
|
|
28637
28694
|
props: {
|
|
28638
28695
|
value: defaultOptions.mode
|
|
28639
28696
|
},
|
|
@@ -28646,10 +28703,10 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28646
28703
|
return h('vxe-option', {
|
|
28647
28704
|
props: {
|
|
28648
28705
|
value: item.value,
|
|
28649
|
-
label:
|
|
28706
|
+
label: src_conf.i18n(item.label)
|
|
28650
28707
|
}
|
|
28651
28708
|
});
|
|
28652
|
-
}))])]), h('tr', [h('td', [
|
|
28709
|
+
}))])]), h('tr', [h('td', [src_conf.i18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
28653
28710
|
class: 'vxe-export--panel-column'
|
|
28654
28711
|
}, [h('ul', {
|
|
28655
28712
|
class: 'vxe-export--panel-column-header'
|
|
@@ -28659,7 +28716,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28659
28716
|
'is--indeterminate': isIndeterminate
|
|
28660
28717
|
}],
|
|
28661
28718
|
attrs: {
|
|
28662
|
-
title:
|
|
28719
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
28663
28720
|
},
|
|
28664
28721
|
on: {
|
|
28665
28722
|
click: this.allColumnEvent
|
|
@@ -28672,15 +28729,15 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28672
28729
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
28673
28730
|
}), h('span', {
|
|
28674
28731
|
class: 'vxe-checkbox--label'
|
|
28675
|
-
},
|
|
28732
|
+
}, src_conf.i18n('vxe.export.expCurrentColumn'))])]), h('ul', {
|
|
28676
28733
|
class: 'vxe-export--panel-column-body'
|
|
28677
|
-
}, cols)])])]), h('tr', [h('td',
|
|
28734
|
+
}, cols)])])]), h('tr', [h('td', src_conf.i18n('vxe.export.expOpts')), h('td', [h('div', {
|
|
28678
28735
|
class: 'vxe-export--panel-option-row'
|
|
28679
28736
|
}, [h('vxe-checkbox', {
|
|
28680
28737
|
props: {
|
|
28681
28738
|
value: isHeader,
|
|
28682
|
-
title:
|
|
28683
|
-
content:
|
|
28739
|
+
title: src_conf.i18n('vxe.export.expHeaderTitle'),
|
|
28740
|
+
content: src_conf.i18n('vxe.export.expOptHeader')
|
|
28684
28741
|
},
|
|
28685
28742
|
on: {
|
|
28686
28743
|
input: function input(value) {
|
|
@@ -28691,8 +28748,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28691
28748
|
props: {
|
|
28692
28749
|
value: defaultOptions.isFooter,
|
|
28693
28750
|
disabled: !storeData.hasFooter,
|
|
28694
|
-
title:
|
|
28695
|
-
content:
|
|
28751
|
+
title: src_conf.i18n('vxe.export.expFooterTitle'),
|
|
28752
|
+
content: src_conf.i18n('vxe.export.expOptFooter')
|
|
28696
28753
|
},
|
|
28697
28754
|
on: {
|
|
28698
28755
|
input: function input(value) {
|
|
@@ -28702,8 +28759,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28702
28759
|
}), h('vxe-checkbox', {
|
|
28703
28760
|
props: {
|
|
28704
28761
|
value: defaultOptions.original,
|
|
28705
|
-
title:
|
|
28706
|
-
content:
|
|
28762
|
+
title: src_conf.i18n('vxe.export.expOriginalTitle'),
|
|
28763
|
+
content: src_conf.i18n('vxe.export.expOptOriginal')
|
|
28707
28764
|
},
|
|
28708
28765
|
on: {
|
|
28709
28766
|
input: function input(value) {
|
|
@@ -28716,8 +28773,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28716
28773
|
props: {
|
|
28717
28774
|
value: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
28718
28775
|
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
28719
|
-
title:
|
|
28720
|
-
content:
|
|
28776
|
+
title: src_conf.i18n('vxe.export.expColgroupTitle'),
|
|
28777
|
+
content: src_conf.i18n('vxe.export.expOptColgroup')
|
|
28721
28778
|
},
|
|
28722
28779
|
on: {
|
|
28723
28780
|
input: function input(value) {
|
|
@@ -28728,8 +28785,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28728
28785
|
props: {
|
|
28729
28786
|
value: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
28730
28787
|
disabled: !hasMerge || !supportMerge || !checkedAll,
|
|
28731
|
-
title:
|
|
28732
|
-
content:
|
|
28788
|
+
title: src_conf.i18n('vxe.export.expMergeTitle'),
|
|
28789
|
+
content: src_conf.i18n('vxe.export.expOptMerge')
|
|
28733
28790
|
},
|
|
28734
28791
|
on: {
|
|
28735
28792
|
input: function input(value) {
|
|
@@ -28740,8 +28797,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28740
28797
|
props: {
|
|
28741
28798
|
value: supportStyle ? defaultOptions.useStyle : false,
|
|
28742
28799
|
disabled: !supportStyle,
|
|
28743
|
-
title:
|
|
28744
|
-
content:
|
|
28800
|
+
title: src_conf.i18n('vxe.export.expUseStyleTitle'),
|
|
28801
|
+
content: src_conf.i18n('vxe.export.expOptUseStyle')
|
|
28745
28802
|
},
|
|
28746
28803
|
on: {
|
|
28747
28804
|
input: function input(value) {
|
|
@@ -28752,8 +28809,8 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28752
28809
|
props: {
|
|
28753
28810
|
value: hasTree ? defaultOptions.isAllExpand : false,
|
|
28754
28811
|
disabled: !hasTree,
|
|
28755
|
-
title:
|
|
28756
|
-
content:
|
|
28812
|
+
title: src_conf.i18n('vxe.export.expAllExpandTitle'),
|
|
28813
|
+
content: src_conf.i18n('vxe.export.expOptAllExpand')
|
|
28757
28814
|
},
|
|
28758
28815
|
on: {
|
|
28759
28816
|
input: function input(value) {
|
|
@@ -28764,7 +28821,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28764
28821
|
class: 'vxe-export--panel-btns'
|
|
28765
28822
|
}, [h('vxe-button', {
|
|
28766
28823
|
props: {
|
|
28767
|
-
content:
|
|
28824
|
+
content: src_conf.i18n('vxe.export.expCancel')
|
|
28768
28825
|
},
|
|
28769
28826
|
on: {
|
|
28770
28827
|
click: this.cancelEvent
|
|
@@ -28773,7 +28830,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28773
28830
|
ref: 'confirmBtn',
|
|
28774
28831
|
props: {
|
|
28775
28832
|
status: 'primary',
|
|
28776
|
-
content:
|
|
28833
|
+
content: src_conf.i18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm')
|
|
28777
28834
|
},
|
|
28778
28835
|
on: {
|
|
28779
28836
|
click: this.confirmEvent
|
|
@@ -28910,13 +28967,13 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
28910
28967
|
strict: {
|
|
28911
28968
|
type: Boolean,
|
|
28912
28969
|
default: function _default() {
|
|
28913
|
-
return
|
|
28970
|
+
return src_conf.radio.strict;
|
|
28914
28971
|
}
|
|
28915
28972
|
},
|
|
28916
28973
|
size: {
|
|
28917
28974
|
type: String,
|
|
28918
28975
|
default: function _default() {
|
|
28919
|
-
return
|
|
28976
|
+
return src_conf.radio.size || src_conf.size;
|
|
28920
28977
|
}
|
|
28921
28978
|
}
|
|
28922
28979
|
},
|
|
@@ -29066,7 +29123,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29066
29123
|
var selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.find(typeList, function (item) {
|
|
29067
29124
|
return type === item.value;
|
|
29068
29125
|
});
|
|
29069
|
-
return selectItem ?
|
|
29126
|
+
return selectItem ? src_conf.i18n(selectItem.label) : '*.*';
|
|
29070
29127
|
}
|
|
29071
29128
|
|
|
29072
29129
|
return "*.".concat(typeList.map(function (item) {
|
|
@@ -29084,7 +29141,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29084
29141
|
res: 'modal',
|
|
29085
29142
|
props: {
|
|
29086
29143
|
value: storeData.visible,
|
|
29087
|
-
title:
|
|
29144
|
+
title: src_conf.i18n('vxe.import.impTitle'),
|
|
29088
29145
|
width: 440,
|
|
29089
29146
|
mask: true,
|
|
29090
29147
|
lockView: true,
|
|
@@ -29107,13 +29164,13 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29107
29164
|
cellpadding: 0,
|
|
29108
29165
|
border: 0
|
|
29109
29166
|
}
|
|
29110
|
-
}, [h('tbody', [h('tr', [h('td',
|
|
29167
|
+
}, [h('tbody', [h('tr', [h('td', src_conf.i18n('vxe.import.impFile')), h('td', [hasFile ? h('div', {
|
|
29111
29168
|
class: 'vxe-import-selected--file',
|
|
29112
29169
|
attrs: {
|
|
29113
29170
|
title: selectName
|
|
29114
29171
|
}
|
|
29115
29172
|
}, [h('span', selectName), h('i', {
|
|
29116
|
-
class:
|
|
29173
|
+
class: src_conf.icon.INPUT_CLEAR,
|
|
29117
29174
|
on: {
|
|
29118
29175
|
click: this.clearFileEvent
|
|
29119
29176
|
}
|
|
@@ -29126,7 +29183,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29126
29183
|
on: {
|
|
29127
29184
|
click: this.selectFileEvent
|
|
29128
29185
|
}
|
|
29129
|
-
},
|
|
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', {
|
|
29130
29187
|
props: {
|
|
29131
29188
|
value: defaultOptions.mode
|
|
29132
29189
|
},
|
|
@@ -29140,14 +29197,14 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29140
29197
|
props: {
|
|
29141
29198
|
label: item.value
|
|
29142
29199
|
}
|
|
29143
|
-
},
|
|
29200
|
+
}, src_conf.i18n(item.label));
|
|
29144
29201
|
}))])])])]), h('div', {
|
|
29145
29202
|
class: 'vxe-export--panel-btns'
|
|
29146
29203
|
}, [h('vxe-button', {
|
|
29147
29204
|
on: {
|
|
29148
29205
|
click: this.cancelEvent
|
|
29149
29206
|
}
|
|
29150
|
-
},
|
|
29207
|
+
}, src_conf.i18n('vxe.import.impCancel')), h('vxe-button', {
|
|
29151
29208
|
props: {
|
|
29152
29209
|
status: 'primary',
|
|
29153
29210
|
disabled: !hasFile
|
|
@@ -29155,7 +29212,7 @@ Object.keys(option_props).forEach(function (name) {
|
|
|
29155
29212
|
on: {
|
|
29156
29213
|
click: this.importEvent
|
|
29157
29214
|
}
|
|
29158
|
-
},
|
|
29215
|
+
}, src_conf.i18n('vxe.import.impConfirm'))])])]);
|
|
29159
29216
|
},
|
|
29160
29217
|
methods: {
|
|
29161
29218
|
clearFileEvent: function clearFileEvent() {
|
|
@@ -29960,7 +30017,7 @@ function saveLocalFile(options) {
|
|
|
29960
30017
|
return Promise.resolve();
|
|
29961
30018
|
}
|
|
29962
30019
|
|
|
29963
|
-
return Promise.reject(new Error(
|
|
30020
|
+
return Promise.reject(new Error(getLog('vxe.error.notExp')));
|
|
29964
30021
|
}
|
|
29965
30022
|
|
|
29966
30023
|
function downloadFile($xetable, opts, content) {
|
|
@@ -29987,7 +30044,7 @@ function downloadFile($xetable, opts, content) {
|
|
|
29987
30044
|
if (false) {}
|
|
29988
30045
|
|
|
29989
30046
|
v_x_e_table.modal.message({
|
|
29990
|
-
content:
|
|
30047
|
+
content: src_conf.i18n('vxe.table.expSuccess'),
|
|
29991
30048
|
status: 'success'
|
|
29992
30049
|
});
|
|
29993
30050
|
}
|
|
@@ -30290,7 +30347,7 @@ function handleImport($xetable, content, opts) {
|
|
|
30290
30347
|
if (false) {}
|
|
30291
30348
|
|
|
30292
30349
|
v_x_e_table.modal.message({
|
|
30293
|
-
content:
|
|
30350
|
+
content: src_conf.i18n('vxe.table.impSuccess', [rows.length]),
|
|
30294
30351
|
status: 'success'
|
|
30295
30352
|
});
|
|
30296
30353
|
}
|
|
@@ -30308,7 +30365,7 @@ function handleImport($xetable, content, opts) {
|
|
|
30308
30365
|
if (false) {}
|
|
30309
30366
|
|
|
30310
30367
|
v_x_e_table.modal.message({
|
|
30311
|
-
content:
|
|
30368
|
+
content: src_conf.i18n('vxe.error.impFields'),
|
|
30312
30369
|
status: 'error'
|
|
30313
30370
|
});
|
|
30314
30371
|
|
|
@@ -30335,7 +30392,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
30335
30392
|
if (false) {}
|
|
30336
30393
|
|
|
30337
30394
|
v_x_e_table.modal.message({
|
|
30338
|
-
content:
|
|
30395
|
+
content: src_conf.i18n('vxe.error.notType', [type]),
|
|
30339
30396
|
status: 'error'
|
|
30340
30397
|
});
|
|
30341
30398
|
}
|
|
@@ -30498,7 +30555,7 @@ function readLocalFile() {
|
|
|
30498
30555
|
if (false) {}
|
|
30499
30556
|
|
|
30500
30557
|
v_x_e_table.modal.message({
|
|
30501
|
-
content:
|
|
30558
|
+
content: src_conf.i18n('vxe.error.notType', [errType]),
|
|
30502
30559
|
status: 'error'
|
|
30503
30560
|
});
|
|
30504
30561
|
}
|
|
@@ -30872,7 +30929,7 @@ var mixin_convertToRows = function convertToRows(originColumns) {
|
|
|
30872
30929
|
opts.colgroups = mixin_convertToRows(groups);
|
|
30873
30930
|
|
|
30874
30931
|
if (!opts.filename) {
|
|
30875
|
-
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')]);
|
|
30876
30933
|
}
|
|
30877
30934
|
|
|
30878
30935
|
if (!opts.sheetName) {
|
|
@@ -31049,7 +31106,7 @@ var mixin_convertToRows = function convertToRows(originColumns) {
|
|
|
31049
31106
|
if (isTree) {
|
|
31050
31107
|
if (defOpts.message) {
|
|
31051
31108
|
v_x_e_table.modal.message({
|
|
31052
|
-
content:
|
|
31109
|
+
content: src_conf.i18n('vxe.error.treeNotImp'),
|
|
31053
31110
|
status: 'error'
|
|
31054
31111
|
});
|
|
31055
31112
|
}
|
|
@@ -31854,7 +31911,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
31854
31911
|
cb(validRest);
|
|
31855
31912
|
resolve();
|
|
31856
31913
|
} else {
|
|
31857
|
-
if (
|
|
31914
|
+
if (src_conf.validToReject === 'obsolete') {
|
|
31858
31915
|
// 已废弃,校验失败将不会执行catch
|
|
31859
31916
|
reject(validRest);
|
|
31860
31917
|
} else {
|
|
@@ -32700,6 +32757,7 @@ var Colgroup = Object.assign(src_group, {
|
|
|
32700
32757
|
|
|
32701
32758
|
|
|
32702
32759
|
|
|
32760
|
+
|
|
32703
32761
|
|
|
32704
32762
|
|
|
32705
32763
|
var grid_methods = {};
|
|
@@ -32874,7 +32932,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32874
32932
|
size: {
|
|
32875
32933
|
type: String,
|
|
32876
32934
|
default: function _default() {
|
|
32877
|
-
return
|
|
32935
|
+
return src_conf.grid.size || src_conf.size;
|
|
32878
32936
|
}
|
|
32879
32937
|
}
|
|
32880
32938
|
}),
|
|
@@ -32895,7 +32953,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32895
32953
|
tZindex: 0,
|
|
32896
32954
|
tablePage: {
|
|
32897
32955
|
total: 0,
|
|
32898
|
-
pageSize:
|
|
32956
|
+
pageSize: src_conf.pager.pageSize || 10,
|
|
32899
32957
|
currentPage: 1
|
|
32900
32958
|
}
|
|
32901
32959
|
};
|
|
@@ -32905,19 +32963,19 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
32905
32963
|
return this.proxyOpts.message !== false;
|
|
32906
32964
|
},
|
|
32907
32965
|
proxyOpts: function proxyOpts() {
|
|
32908
|
-
return Object.assign({},
|
|
32966
|
+
return Object.assign({}, src_conf.grid.proxyConfig, this.proxyConfig);
|
|
32909
32967
|
},
|
|
32910
32968
|
pagerOpts: function pagerOpts() {
|
|
32911
|
-
return Object.assign({},
|
|
32969
|
+
return Object.assign({}, src_conf.grid.pagerConfig, this.pagerConfig);
|
|
32912
32970
|
},
|
|
32913
32971
|
formOpts: function formOpts() {
|
|
32914
|
-
return Object.assign({},
|
|
32972
|
+
return Object.assign({}, src_conf.grid.formConfig, this.formConfig);
|
|
32915
32973
|
},
|
|
32916
32974
|
toolbarOpts: function toolbarOpts() {
|
|
32917
|
-
return Object.assign({},
|
|
32975
|
+
return Object.assign({}, src_conf.grid.toolbarConfig, this.toolbarConfig || this.toolbar);
|
|
32918
32976
|
},
|
|
32919
32977
|
zoomOpts: function zoomOpts() {
|
|
32920
|
-
return Object.assign({},
|
|
32978
|
+
return Object.assign({}, src_conf.grid.zoomConfig, this.zoomConfig);
|
|
32921
32979
|
},
|
|
32922
32980
|
renderStyle: function renderStyle() {
|
|
32923
32981
|
return this.isZMax ? {
|
|
@@ -33115,7 +33173,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33115
33173
|
}
|
|
33116
33174
|
|
|
33117
33175
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
33118
|
-
return slotFunc.call(this, params, h, vNodes);
|
|
33176
|
+
return getSlotVNs(slotFunc.call(this, params, h, vNodes));
|
|
33119
33177
|
}
|
|
33120
33178
|
}
|
|
33121
33179
|
|
|
@@ -33514,7 +33572,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33514
33572
|
|
|
33515
33573
|
v_x_e_table.modal.message({
|
|
33516
33574
|
id: code,
|
|
33517
|
-
content:
|
|
33575
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33518
33576
|
status: 'warning'
|
|
33519
33577
|
});
|
|
33520
33578
|
}
|
|
@@ -33617,7 +33675,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33617
33675
|
|
|
33618
33676
|
v_x_e_table.modal.message({
|
|
33619
33677
|
id: code,
|
|
33620
|
-
content:
|
|
33678
|
+
content: src_conf.i18n('vxe.grid.dataUnchanged'),
|
|
33621
33679
|
status: 'info'
|
|
33622
33680
|
});
|
|
33623
33681
|
}
|
|
@@ -33656,7 +33714,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33656
33714
|
msg = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(rest, proxyProps.message);
|
|
33657
33715
|
}
|
|
33658
33716
|
|
|
33659
|
-
return msg ||
|
|
33717
|
+
return msg || src_conf.i18n(defaultMsg);
|
|
33660
33718
|
},
|
|
33661
33719
|
handleDeleteRow: function handleDeleteRow(code, alertKey, callback) {
|
|
33662
33720
|
var selectRecords = this.getCheckboxRecords();
|
|
@@ -33665,7 +33723,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33665
33723
|
if (selectRecords.length) {
|
|
33666
33724
|
return v_x_e_table.modal.confirm({
|
|
33667
33725
|
id: "cfm_".concat(code),
|
|
33668
|
-
content:
|
|
33726
|
+
content: src_conf.i18n(alertKey),
|
|
33669
33727
|
escClosable: true
|
|
33670
33728
|
}).then(function (type) {
|
|
33671
33729
|
if (type === 'confirm') {
|
|
@@ -33678,7 +33736,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33678
33736
|
|
|
33679
33737
|
v_x_e_table.modal.message({
|
|
33680
33738
|
id: "msg_".concat(code),
|
|
33681
|
-
content:
|
|
33739
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33682
33740
|
status: 'warning'
|
|
33683
33741
|
});
|
|
33684
33742
|
}
|
|
@@ -33756,7 +33814,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
33756
33814
|
|
|
33757
33815
|
v_x_e_table.modal.message({
|
|
33758
33816
|
id: code,
|
|
33759
|
-
content:
|
|
33817
|
+
content: src_conf.i18n('vxe.grid.selectOneRecord'),
|
|
33760
33818
|
status: 'warning'
|
|
33761
33819
|
});
|
|
33762
33820
|
}
|
|
@@ -34181,10 +34239,10 @@ function renderCustoms(h, _vm) {
|
|
|
34181
34239
|
}, [h('vxe-button', {
|
|
34182
34240
|
props: {
|
|
34183
34241
|
circle: true,
|
|
34184
|
-
icon: customOpts.icon ||
|
|
34242
|
+
icon: customOpts.icon || src_conf.icon.TOOLBAR_TOOLS_CUSTOM
|
|
34185
34243
|
},
|
|
34186
34244
|
attrs: {
|
|
34187
|
-
title:
|
|
34245
|
+
title: src_conf.i18n('vxe.toolbar.custom')
|
|
34188
34246
|
},
|
|
34189
34247
|
on: customBtnOns
|
|
34190
34248
|
}), h('div', {
|
|
@@ -34197,7 +34255,7 @@ function renderCustoms(h, _vm) {
|
|
|
34197
34255
|
'is--indeterminate': customStore.isIndeterminate
|
|
34198
34256
|
}],
|
|
34199
34257
|
attrs: {
|
|
34200
|
-
title:
|
|
34258
|
+
title: src_conf.i18n('vxe.table.allTitle')
|
|
34201
34259
|
},
|
|
34202
34260
|
on: {
|
|
34203
34261
|
click: _vm.allCustomEvent
|
|
@@ -34210,7 +34268,7 @@ function renderCustoms(h, _vm) {
|
|
|
34210
34268
|
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
34211
34269
|
}), h('span', {
|
|
34212
34270
|
class: 'vxe-checkbox--label'
|
|
34213
|
-
},
|
|
34271
|
+
}, src_conf.i18n('vxe.toolbar.customAll'))])]), h('ul', {
|
|
34214
34272
|
class: 'vxe-custom--body',
|
|
34215
34273
|
on: customWrapperOns
|
|
34216
34274
|
}, cols), customOpts.isFooter === false ? null : h('div', {
|
|
@@ -34220,12 +34278,12 @@ function renderCustoms(h, _vm) {
|
|
|
34220
34278
|
on: {
|
|
34221
34279
|
click: _vm.confirmCustomEvent
|
|
34222
34280
|
}
|
|
34223
|
-
},
|
|
34281
|
+
}, src_conf.i18n('vxe.toolbar.customConfirm')), h('button', {
|
|
34224
34282
|
class: 'btn--reset',
|
|
34225
34283
|
on: {
|
|
34226
34284
|
click: _vm.resetCustomEvent
|
|
34227
34285
|
}
|
|
34228
|
-
},
|
|
34286
|
+
}, src_conf.i18n('vxe.toolbar.customRestore'))])])]);
|
|
34229
34287
|
}
|
|
34230
34288
|
|
|
34231
34289
|
/* harmony default export */ var src_toolbar = ({
|
|
@@ -34242,25 +34300,25 @@ function renderCustoms(h, _vm) {
|
|
|
34242
34300
|
buttons: {
|
|
34243
34301
|
type: Array,
|
|
34244
34302
|
default: function _default() {
|
|
34245
|
-
return
|
|
34303
|
+
return src_conf.toolbar.buttons;
|
|
34246
34304
|
}
|
|
34247
34305
|
},
|
|
34248
34306
|
tools: {
|
|
34249
34307
|
type: Array,
|
|
34250
34308
|
default: function _default() {
|
|
34251
|
-
return
|
|
34309
|
+
return src_conf.toolbar.tools;
|
|
34252
34310
|
}
|
|
34253
34311
|
},
|
|
34254
34312
|
perfect: {
|
|
34255
34313
|
type: Boolean,
|
|
34256
34314
|
default: function _default() {
|
|
34257
|
-
return
|
|
34315
|
+
return src_conf.toolbar.perfect;
|
|
34258
34316
|
}
|
|
34259
34317
|
},
|
|
34260
34318
|
size: {
|
|
34261
34319
|
type: String,
|
|
34262
34320
|
default: function _default() {
|
|
34263
|
-
return
|
|
34321
|
+
return src_conf.toolbar.size || src_conf.size;
|
|
34264
34322
|
}
|
|
34265
34323
|
},
|
|
34266
34324
|
className: [String, Function]
|
|
@@ -34284,22 +34342,22 @@ function renderCustoms(h, _vm) {
|
|
|
34284
34342
|
},
|
|
34285
34343
|
computed: {
|
|
34286
34344
|
refreshOpts: function refreshOpts() {
|
|
34287
|
-
return Object.assign({},
|
|
34345
|
+
return Object.assign({}, src_conf.toolbar.refresh, this.refresh);
|
|
34288
34346
|
},
|
|
34289
34347
|
importOpts: function importOpts() {
|
|
34290
|
-
return Object.assign({},
|
|
34348
|
+
return Object.assign({}, src_conf.toolbar.import, this.import);
|
|
34291
34349
|
},
|
|
34292
34350
|
exportOpts: function exportOpts() {
|
|
34293
|
-
return Object.assign({},
|
|
34351
|
+
return Object.assign({}, src_conf.toolbar.export, this.export);
|
|
34294
34352
|
},
|
|
34295
34353
|
printOpts: function printOpts() {
|
|
34296
|
-
return Object.assign({},
|
|
34354
|
+
return Object.assign({}, src_conf.toolbar.print, this.print);
|
|
34297
34355
|
},
|
|
34298
34356
|
zoomOpts: function zoomOpts() {
|
|
34299
|
-
return Object.assign({},
|
|
34357
|
+
return Object.assign({}, src_conf.toolbar.zoom, this.zoom);
|
|
34300
34358
|
},
|
|
34301
34359
|
customOpts: function customOpts() {
|
|
34302
|
-
return Object.assign({},
|
|
34360
|
+
return Object.assign({}, src_conf.toolbar.custom, this.custom);
|
|
34303
34361
|
}
|
|
34304
34362
|
},
|
|
34305
34363
|
created: function created() {
|
|
@@ -34356,10 +34414,10 @@ function renderCustoms(h, _vm) {
|
|
|
34356
34414
|
}, [this.import ? h('vxe-button', {
|
|
34357
34415
|
props: {
|
|
34358
34416
|
circle: true,
|
|
34359
|
-
icon: importOpts.icon ||
|
|
34417
|
+
icon: importOpts.icon || src_conf.icon.TOOLBAR_TOOLS_IMPORT
|
|
34360
34418
|
},
|
|
34361
34419
|
attrs: {
|
|
34362
|
-
title:
|
|
34420
|
+
title: src_conf.i18n('vxe.toolbar.import')
|
|
34363
34421
|
},
|
|
34364
34422
|
on: {
|
|
34365
34423
|
click: this.importEvent
|
|
@@ -34367,10 +34425,10 @@ function renderCustoms(h, _vm) {
|
|
|
34367
34425
|
}) : _e(), this.export ? h('vxe-button', {
|
|
34368
34426
|
props: {
|
|
34369
34427
|
circle: true,
|
|
34370
|
-
icon: exportOpts.icon ||
|
|
34428
|
+
icon: exportOpts.icon || src_conf.icon.TOOLBAR_TOOLS_EXPORT
|
|
34371
34429
|
},
|
|
34372
34430
|
attrs: {
|
|
34373
|
-
title:
|
|
34431
|
+
title: src_conf.i18n('vxe.toolbar.export')
|
|
34374
34432
|
},
|
|
34375
34433
|
on: {
|
|
34376
34434
|
click: this.exportEvent
|
|
@@ -34378,10 +34436,10 @@ function renderCustoms(h, _vm) {
|
|
|
34378
34436
|
}) : _e(), this.print ? h('vxe-button', {
|
|
34379
34437
|
props: {
|
|
34380
34438
|
circle: true,
|
|
34381
|
-
icon: this.printOpts.icon ||
|
|
34439
|
+
icon: this.printOpts.icon || src_conf.icon.TOOLBAR_TOOLS_PRINT
|
|
34382
34440
|
},
|
|
34383
34441
|
attrs: {
|
|
34384
|
-
title:
|
|
34442
|
+
title: src_conf.i18n('vxe.toolbar.print')
|
|
34385
34443
|
},
|
|
34386
34444
|
on: {
|
|
34387
34445
|
click: this.printEvent
|
|
@@ -34389,10 +34447,10 @@ function renderCustoms(h, _vm) {
|
|
|
34389
34447
|
}) : _e(), refresh ? h('vxe-button', {
|
|
34390
34448
|
props: {
|
|
34391
34449
|
circle: true,
|
|
34392
|
-
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
|
|
34393
34451
|
},
|
|
34394
34452
|
attrs: {
|
|
34395
|
-
title:
|
|
34453
|
+
title: src_conf.i18n('vxe.toolbar.refresh')
|
|
34396
34454
|
},
|
|
34397
34455
|
on: {
|
|
34398
34456
|
click: this.refreshEvent
|
|
@@ -34400,10 +34458,10 @@ function renderCustoms(h, _vm) {
|
|
|
34400
34458
|
}) : _e(), zoom && $xegrid ? h('vxe-button', {
|
|
34401
34459
|
props: {
|
|
34402
34460
|
circle: true,
|
|
34403
|
-
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
|
|
34404
34462
|
},
|
|
34405
34463
|
attrs: {
|
|
34406
|
-
title:
|
|
34464
|
+
title: src_conf.i18n("vxe.toolbar.zoom".concat($xegrid.isMaximized() ? 'Out' : 'In'))
|
|
34407
34465
|
},
|
|
34408
34466
|
on: {
|
|
34409
34467
|
click: $xegrid.triggerZoomEvent
|
|
@@ -34737,14 +34795,14 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34737
34795
|
size: {
|
|
34738
34796
|
type: String,
|
|
34739
34797
|
default: function _default() {
|
|
34740
|
-
return
|
|
34798
|
+
return src_conf.pager.size || src_conf.size;
|
|
34741
34799
|
}
|
|
34742
34800
|
},
|
|
34743
34801
|
// 自定义布局
|
|
34744
34802
|
layouts: {
|
|
34745
34803
|
type: Array,
|
|
34746
34804
|
default: function _default() {
|
|
34747
|
-
return
|
|
34805
|
+
return src_conf.pager.layouts || ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total'];
|
|
34748
34806
|
}
|
|
34749
34807
|
},
|
|
34750
34808
|
// 当前页
|
|
@@ -34758,7 +34816,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34758
34816
|
pageSize: {
|
|
34759
34817
|
type: Number,
|
|
34760
34818
|
default: function _default() {
|
|
34761
|
-
return
|
|
34819
|
+
return src_conf.pager.pageSize || 10;
|
|
34762
34820
|
}
|
|
34763
34821
|
},
|
|
34764
34822
|
// 总条数
|
|
@@ -34770,55 +34828,55 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34770
34828
|
pagerCount: {
|
|
34771
34829
|
type: Number,
|
|
34772
34830
|
default: function _default() {
|
|
34773
|
-
return
|
|
34831
|
+
return src_conf.pager.pagerCount || 7;
|
|
34774
34832
|
}
|
|
34775
34833
|
},
|
|
34776
34834
|
// 每页大小选项列表
|
|
34777
34835
|
pageSizes: {
|
|
34778
34836
|
type: Array,
|
|
34779
34837
|
default: function _default() {
|
|
34780
|
-
return
|
|
34838
|
+
return src_conf.pager.pageSizes || [10, 15, 20, 50, 100];
|
|
34781
34839
|
}
|
|
34782
34840
|
},
|
|
34783
34841
|
// 列对其方式
|
|
34784
34842
|
align: {
|
|
34785
34843
|
type: String,
|
|
34786
34844
|
default: function _default() {
|
|
34787
|
-
return
|
|
34845
|
+
return src_conf.pager.align;
|
|
34788
34846
|
}
|
|
34789
34847
|
},
|
|
34790
34848
|
// 带边框
|
|
34791
34849
|
border: {
|
|
34792
34850
|
type: Boolean,
|
|
34793
34851
|
default: function _default() {
|
|
34794
|
-
return
|
|
34852
|
+
return src_conf.pager.border;
|
|
34795
34853
|
}
|
|
34796
34854
|
},
|
|
34797
34855
|
// 带背景颜色
|
|
34798
34856
|
background: {
|
|
34799
34857
|
type: Boolean,
|
|
34800
34858
|
default: function _default() {
|
|
34801
|
-
return
|
|
34859
|
+
return src_conf.pager.background;
|
|
34802
34860
|
}
|
|
34803
34861
|
},
|
|
34804
34862
|
// 配套的样式
|
|
34805
34863
|
perfect: {
|
|
34806
34864
|
type: Boolean,
|
|
34807
34865
|
default: function _default() {
|
|
34808
|
-
return
|
|
34866
|
+
return src_conf.pager.perfect;
|
|
34809
34867
|
}
|
|
34810
34868
|
},
|
|
34811
34869
|
// 当只有一页时隐藏
|
|
34812
34870
|
autoHidden: {
|
|
34813
34871
|
type: Boolean,
|
|
34814
34872
|
default: function _default() {
|
|
34815
|
-
return
|
|
34873
|
+
return src_conf.pager.autoHidden;
|
|
34816
34874
|
}
|
|
34817
34875
|
},
|
|
34818
34876
|
transfer: {
|
|
34819
34877
|
type: Boolean,
|
|
34820
34878
|
default: function _default() {
|
|
34821
|
-
return
|
|
34879
|
+
return src_conf.pager.transfer;
|
|
34822
34880
|
}
|
|
34823
34881
|
},
|
|
34824
34882
|
className: [String, Function],
|
|
@@ -34866,7 +34924,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34866
34924
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isNumber(item)) {
|
|
34867
34925
|
return {
|
|
34868
34926
|
value: item,
|
|
34869
|
-
label: "".concat(
|
|
34927
|
+
label: "".concat(src_conf.i18n('vxe.pager.pagesize', [item]))
|
|
34870
34928
|
};
|
|
34871
34929
|
}
|
|
34872
34930
|
|
|
@@ -34930,13 +34988,13 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34930
34988
|
}],
|
|
34931
34989
|
attrs: {
|
|
34932
34990
|
type: 'button',
|
|
34933
|
-
title:
|
|
34991
|
+
title: src_conf.i18n('vxe.pager.prevPage')
|
|
34934
34992
|
},
|
|
34935
34993
|
on: {
|
|
34936
34994
|
click: this.prevPage
|
|
34937
34995
|
}
|
|
34938
34996
|
}, [h('i', {
|
|
34939
|
-
class: ['vxe-pager--btn-icon', this.iconPrevPage ||
|
|
34997
|
+
class: ['vxe-pager--btn-icon', this.iconPrevPage || src_conf.icon.PAGER_PREV_PAGE]
|
|
34940
34998
|
})]);
|
|
34941
34999
|
},
|
|
34942
35000
|
// 向上翻页
|
|
@@ -34948,15 +35006,15 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34948
35006
|
}],
|
|
34949
35007
|
attrs: {
|
|
34950
35008
|
type: 'button',
|
|
34951
|
-
title:
|
|
35009
|
+
title: src_conf.i18n('vxe.pager.prevJump')
|
|
34952
35010
|
},
|
|
34953
35011
|
on: {
|
|
34954
35012
|
click: this.prevJump
|
|
34955
35013
|
}
|
|
34956
35014
|
}, [tagName ? h('i', {
|
|
34957
|
-
class: ['vxe-pager--jump-more-icon', this.iconJumpMore ||
|
|
35015
|
+
class: ['vxe-pager--jump-more-icon', this.iconJumpMore || src_conf.icon.PAGER_JUMP_MORE]
|
|
34958
35016
|
}) : null, h('i', {
|
|
34959
|
-
class: ['vxe-pager--jump-icon', this.iconJumpPrev ||
|
|
35017
|
+
class: ['vxe-pager--jump-icon', this.iconJumpPrev || src_conf.icon.PAGER_JUMP_PREV]
|
|
34960
35018
|
})]);
|
|
34961
35019
|
},
|
|
34962
35020
|
// number
|
|
@@ -34980,15 +35038,15 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34980
35038
|
}],
|
|
34981
35039
|
attrs: {
|
|
34982
35040
|
type: 'button',
|
|
34983
|
-
title:
|
|
35041
|
+
title: src_conf.i18n('vxe.pager.nextJump')
|
|
34984
35042
|
},
|
|
34985
35043
|
on: {
|
|
34986
35044
|
click: this.nextJump
|
|
34987
35045
|
}
|
|
34988
35046
|
}, [tagName ? h('i', {
|
|
34989
|
-
class: ['vxe-pager--jump-more-icon', this.iconJumpMore ||
|
|
35047
|
+
class: ['vxe-pager--jump-more-icon', this.iconJumpMore || src_conf.icon.PAGER_JUMP_MORE]
|
|
34990
35048
|
}) : null, h('i', {
|
|
34991
|
-
class: ['vxe-pager--jump-icon', this.iconJumpNext ||
|
|
35049
|
+
class: ['vxe-pager--jump-icon', this.iconJumpNext || src_conf.icon.PAGER_JUMP_NEXT]
|
|
34992
35050
|
})]);
|
|
34993
35051
|
},
|
|
34994
35052
|
// 下一页
|
|
@@ -34999,13 +35057,13 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
34999
35057
|
}],
|
|
35000
35058
|
attrs: {
|
|
35001
35059
|
type: 'button',
|
|
35002
|
-
title:
|
|
35060
|
+
title: src_conf.i18n('vxe.pager.nextPage')
|
|
35003
35061
|
},
|
|
35004
35062
|
on: {
|
|
35005
35063
|
click: this.nextPage
|
|
35006
35064
|
}
|
|
35007
35065
|
}, [h('i', {
|
|
35008
|
-
class: ['vxe-pager--btn-icon', this.iconNextPage ||
|
|
35066
|
+
class: ['vxe-pager--btn-icon', this.iconNextPage || src_conf.icon.PAGER_NEXT_PAGE]
|
|
35009
35067
|
})]);
|
|
35010
35068
|
},
|
|
35011
35069
|
// sizes
|
|
@@ -35039,7 +35097,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35039
35097
|
class: 'vxe-pager--jump'
|
|
35040
35098
|
}, [isFull ? h('span', {
|
|
35041
35099
|
class: 'vxe-pager--goto-text'
|
|
35042
|
-
},
|
|
35100
|
+
}, src_conf.i18n('vxe.pager.goto')) : null, h('input', {
|
|
35043
35101
|
class: 'vxe-pager--goto',
|
|
35044
35102
|
domProps: {
|
|
35045
35103
|
value: this.inpCurrPage
|
|
@@ -35055,7 +35113,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35055
35113
|
}
|
|
35056
35114
|
}), isFull ? h('span', {
|
|
35057
35115
|
class: 'vxe-pager--classifier-text'
|
|
35058
|
-
},
|
|
35116
|
+
}, src_conf.i18n('vxe.pager.pageClassifier')) : null]);
|
|
35059
35117
|
},
|
|
35060
35118
|
// PageCount
|
|
35061
35119
|
renderPageCount: function renderPageCount(h) {
|
|
@@ -35069,7 +35127,7 @@ var Toolbar = Object.assign(src_toolbar, {
|
|
|
35069
35127
|
renderTotal: function renderTotal(h) {
|
|
35070
35128
|
return h('span', {
|
|
35071
35129
|
class: 'vxe-pager--total'
|
|
35072
|
-
},
|
|
35130
|
+
}, src_conf.i18n('vxe.pager.total', [this.total]));
|
|
35073
35131
|
},
|
|
35074
35132
|
// number
|
|
35075
35133
|
renderPageBtn: function renderPageBtn(h, showJump) {
|
|
@@ -35247,7 +35305,7 @@ var Checkbox = Object.assign(src_checkbox, {
|
|
|
35247
35305
|
size: {
|
|
35248
35306
|
type: String,
|
|
35249
35307
|
default: function _default() {
|
|
35250
|
-
return
|
|
35308
|
+
return src_conf.checkbox.size || src_conf.size;
|
|
35251
35309
|
}
|
|
35252
35310
|
}
|
|
35253
35311
|
},
|
|
@@ -35333,13 +35391,13 @@ var Radio = Object.assign(src_radio, {
|
|
|
35333
35391
|
strict: {
|
|
35334
35392
|
type: Boolean,
|
|
35335
35393
|
default: function _default() {
|
|
35336
|
-
return
|
|
35394
|
+
return src_conf.radioGroup.strict;
|
|
35337
35395
|
}
|
|
35338
35396
|
},
|
|
35339
35397
|
size: {
|
|
35340
35398
|
type: String,
|
|
35341
35399
|
default: function _default() {
|
|
35342
|
-
return
|
|
35400
|
+
return src_conf.radioGroup.size || src_conf.size;
|
|
35343
35401
|
}
|
|
35344
35402
|
}
|
|
35345
35403
|
},
|
|
@@ -35410,13 +35468,13 @@ var RadioGroup = Object.assign(radio_src_group, {
|
|
|
35410
35468
|
strict: {
|
|
35411
35469
|
type: Boolean,
|
|
35412
35470
|
default: function _default() {
|
|
35413
|
-
return
|
|
35471
|
+
return src_conf.radioButton.strict;
|
|
35414
35472
|
}
|
|
35415
35473
|
},
|
|
35416
35474
|
size: {
|
|
35417
35475
|
type: String,
|
|
35418
35476
|
default: function _default() {
|
|
35419
|
-
return
|
|
35477
|
+
return src_conf.radioButton.size || src_conf.size;
|
|
35420
35478
|
}
|
|
35421
35479
|
}
|
|
35422
35480
|
},
|
|
@@ -35588,14 +35646,14 @@ var autoTxtElem;
|
|
|
35588
35646
|
resize: {
|
|
35589
35647
|
type: String,
|
|
35590
35648
|
default: function _default() {
|
|
35591
|
-
return
|
|
35649
|
+
return src_conf.textarea.resize;
|
|
35592
35650
|
}
|
|
35593
35651
|
},
|
|
35594
35652
|
className: String,
|
|
35595
35653
|
size: {
|
|
35596
35654
|
type: String,
|
|
35597
35655
|
default: function _default() {
|
|
35598
|
-
return
|
|
35656
|
+
return src_conf.textarea.size || src_conf.size;
|
|
35599
35657
|
}
|
|
35600
35658
|
}
|
|
35601
35659
|
},
|
|
@@ -35637,7 +35695,7 @@ var autoTxtElem;
|
|
|
35637
35695
|
return Object.assign({
|
|
35638
35696
|
minRows: 1,
|
|
35639
35697
|
maxRows: 10
|
|
35640
|
-
},
|
|
35698
|
+
}, src_conf.textarea.autosize, this.autosize);
|
|
35641
35699
|
}
|
|
35642
35700
|
},
|
|
35643
35701
|
watch: {
|
|
@@ -35861,7 +35919,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35861
35919
|
size: {
|
|
35862
35920
|
type: String,
|
|
35863
35921
|
default: function _default() {
|
|
35864
|
-
return
|
|
35922
|
+
return src_conf.button.size || src_conf.size;
|
|
35865
35923
|
}
|
|
35866
35924
|
},
|
|
35867
35925
|
name: [String, Number],
|
|
@@ -35878,7 +35936,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35878
35936
|
transfer: {
|
|
35879
35937
|
type: Boolean,
|
|
35880
35938
|
default: function _default() {
|
|
35881
|
-
return
|
|
35939
|
+
return src_conf.button.transfer;
|
|
35882
35940
|
}
|
|
35883
35941
|
}
|
|
35884
35942
|
},
|
|
@@ -35961,7 +36019,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
35961
36019
|
};
|
|
35962
36020
|
}))
|
|
35963
36021
|
}, this.renderContent(h).concat([h('i', {
|
|
35964
|
-
class: "vxe-button--dropdown-arrow ".concat(
|
|
36022
|
+
class: "vxe-button--dropdown-arrow ".concat(src_conf.icon.BUTTON_DROPDOWN)
|
|
35965
36023
|
})])), h('div', {
|
|
35966
36024
|
ref: 'panel',
|
|
35967
36025
|
class: ['vxe-button--dropdown-panel', (_ref3 = {}, _defineProperty(_ref3, "size--".concat(vSize), vSize), _defineProperty(_ref3, 'animat--leave', animatVisible), _defineProperty(_ref3, 'animat--enter', showPanel), _ref3)],
|
|
@@ -36004,8 +36062,12 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36004
36062
|
|
|
36005
36063
|
if (loading) {
|
|
36006
36064
|
contents.push(h('i', {
|
|
36007
|
-
class: ['vxe-button--loading-icon',
|
|
36065
|
+
class: ['vxe-button--loading-icon', src_conf.icon.BUTTON_LOADING]
|
|
36008
36066
|
}));
|
|
36067
|
+
} else if ($scopedSlots.icon) {
|
|
36068
|
+
contents.push(h('span', {
|
|
36069
|
+
class: 'vxe-button--custom-icon'
|
|
36070
|
+
}, $scopedSlots.icon.call(this, {})));
|
|
36009
36071
|
} else if (icon) {
|
|
36010
36072
|
contents.push(h('i', {
|
|
36011
36073
|
class: ['vxe-button--icon', icon]
|
|
@@ -36015,7 +36077,7 @@ var Textarea = Object.assign(src_textarea, {
|
|
|
36015
36077
|
if ($scopedSlots.default) {
|
|
36016
36078
|
contents.push(h('span', {
|
|
36017
36079
|
class: 'vxe-button--content'
|
|
36018
|
-
}, $scopedSlots.default.call(this)));
|
|
36080
|
+
}, $scopedSlots.default.call(this, {})));
|
|
36019
36081
|
} else if (content) {
|
|
36020
36082
|
contents.push(h('span', {
|
|
36021
36083
|
class: 'vxe-button--content'
|
|
@@ -36493,19 +36555,19 @@ function tooltip_renderContent(h, _vm) {
|
|
|
36493
36555
|
size: {
|
|
36494
36556
|
type: String,
|
|
36495
36557
|
default: function _default() {
|
|
36496
|
-
return
|
|
36558
|
+
return src_conf.tooltip.size || src_conf.size;
|
|
36497
36559
|
}
|
|
36498
36560
|
},
|
|
36499
36561
|
trigger: {
|
|
36500
36562
|
type: String,
|
|
36501
36563
|
default: function _default() {
|
|
36502
|
-
return
|
|
36564
|
+
return src_conf.tooltip.trigger;
|
|
36503
36565
|
}
|
|
36504
36566
|
},
|
|
36505
36567
|
theme: {
|
|
36506
36568
|
type: String,
|
|
36507
36569
|
default: function _default() {
|
|
36508
|
-
return
|
|
36570
|
+
return src_conf.tooltip.theme;
|
|
36509
36571
|
}
|
|
36510
36572
|
},
|
|
36511
36573
|
content: {
|
|
@@ -36522,13 +36584,13 @@ function tooltip_renderContent(h, _vm) {
|
|
|
36522
36584
|
enterDelay: {
|
|
36523
36585
|
type: Number,
|
|
36524
36586
|
default: function _default() {
|
|
36525
|
-
return
|
|
36587
|
+
return src_conf.tooltip.enterDelay;
|
|
36526
36588
|
}
|
|
36527
36589
|
},
|
|
36528
36590
|
leaveDelay: {
|
|
36529
36591
|
type: Number,
|
|
36530
36592
|
default: function _default() {
|
|
36531
|
-
return
|
|
36593
|
+
return src_conf.tooltip.leaveDelay;
|
|
36532
36594
|
}
|
|
36533
36595
|
}
|
|
36534
36596
|
},
|
|
@@ -36795,6 +36857,7 @@ var Tooltip = Object.assign(tooltip, {
|
|
|
36795
36857
|
|
|
36796
36858
|
|
|
36797
36859
|
|
|
36860
|
+
|
|
36798
36861
|
var util_ItemConfig = /*#__PURE__*/function () {
|
|
36799
36862
|
function ItemConfig($xeform, item) {
|
|
36800
36863
|
_classCallCheck(this, ItemConfig);
|
|
@@ -36852,6 +36915,41 @@ var util_handleFieldOrItem = function handleFieldOrItem($xeform, fieldOrItem) {
|
|
|
36852
36915
|
|
|
36853
36916
|
return null;
|
|
36854
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
|
+
}
|
|
36855
36953
|
function createItem($xeform, _vm) {
|
|
36856
36954
|
return getItemConfig($xeform, _vm);
|
|
36857
36955
|
}
|
|
@@ -36895,7 +36993,7 @@ function renderPrefixIcon(h, titlePrefix) {
|
|
|
36895
36993
|
return h('span', {
|
|
36896
36994
|
class: 'vxe-form--item-title-prefix'
|
|
36897
36995
|
}, [h('i', {
|
|
36898
|
-
class: titlePrefix.icon ||
|
|
36996
|
+
class: titlePrefix.icon || src_conf.icon.FORM_PREFIX
|
|
36899
36997
|
})]);
|
|
36900
36998
|
}
|
|
36901
36999
|
|
|
@@ -36903,7 +37001,7 @@ function render_renderSuffixIcon(h, titleSuffix) {
|
|
|
36903
37001
|
return h('span', {
|
|
36904
37002
|
class: 'vxe-form--item-title-suffix'
|
|
36905
37003
|
}, [h('i', {
|
|
36906
|
-
class: titleSuffix.icon ||
|
|
37004
|
+
class: titleSuffix.icon || src_conf.icon.FORM_SUFFIX
|
|
36907
37005
|
})]);
|
|
36908
37006
|
}
|
|
36909
37007
|
|
|
@@ -36964,6 +37062,8 @@ function renderTitle(h, _vm, item) {
|
|
|
36964
37062
|
|
|
36965
37063
|
|
|
36966
37064
|
|
|
37065
|
+
|
|
37066
|
+
|
|
36967
37067
|
/**
|
|
36968
37068
|
* 配置式项
|
|
36969
37069
|
*/
|
|
@@ -36981,9 +37081,7 @@ var VxeFormConfigItem = {
|
|
|
36981
37081
|
provide: function provide() {
|
|
36982
37082
|
return {
|
|
36983
37083
|
$xeformgather: null,
|
|
36984
|
-
$xeformiteminfo:
|
|
36985
|
-
itemConfig: this.itemConfig
|
|
36986
|
-
}
|
|
37084
|
+
$xeformiteminfo: this
|
|
36987
37085
|
};
|
|
36988
37086
|
},
|
|
36989
37087
|
render: function render(h) {
|
|
@@ -37003,7 +37101,6 @@ var VxeFormConfigItem = {
|
|
|
37003
37101
|
title = item.title,
|
|
37004
37102
|
folding = item.folding,
|
|
37005
37103
|
visible = item.visible,
|
|
37006
|
-
visibleMethod = item.visibleMethod,
|
|
37007
37104
|
field = item.field,
|
|
37008
37105
|
collapseNode = item.collapseNode,
|
|
37009
37106
|
itemRender = item.itemRender,
|
|
@@ -37013,13 +37110,13 @@ var VxeFormConfigItem = {
|
|
|
37013
37110
|
titleOverflow = item.titleOverflow,
|
|
37014
37111
|
children = item.children;
|
|
37015
37112
|
var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
|
|
37113
|
+
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
37016
37114
|
var span = item.span || $xeform.span;
|
|
37017
37115
|
var align = item.align || $xeform.align;
|
|
37018
37116
|
var titleAlign = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleAlign) ? allTitleAlign : item.titleAlign;
|
|
37019
37117
|
var titleWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleWidth) ? allTitleWidth : item.titleWidth;
|
|
37020
37118
|
var titleColon = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleColon) ? allTitleColon : item.titleColon;
|
|
37021
37119
|
var titleAsterisk = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.eqNull(item.titleAsterisk) ? allTitleAsterisk : item.titleAsterisk;
|
|
37022
|
-
var itemVisibleMethod = visibleMethod;
|
|
37023
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;
|
|
37024
37121
|
var showEllipsis = itemOverflow === 'ellipsis';
|
|
37025
37122
|
var showTitle = itemOverflow === 'title';
|
|
@@ -37055,10 +37152,6 @@ var VxeFormConfigItem = {
|
|
|
37055
37152
|
}, childVNs) : _e();
|
|
37056
37153
|
}
|
|
37057
37154
|
|
|
37058
|
-
if (!itemVisibleMethod && compConf && compConf.itemVisibleMethod) {
|
|
37059
|
-
itemVisibleMethod = compConf.itemVisibleMethod;
|
|
37060
|
-
}
|
|
37061
|
-
|
|
37062
37155
|
if (rules) {
|
|
37063
37156
|
var itemRules = rules[field];
|
|
37064
37157
|
|
|
@@ -37074,9 +37167,9 @@ var VxeFormConfigItem = {
|
|
|
37074
37167
|
if (slots && slots.default) {
|
|
37075
37168
|
contentVNs = $xeform.callSlot(slots.default, params, h);
|
|
37076
37169
|
} else if (compConf && compConf.renderItemContent) {
|
|
37077
|
-
contentVNs = compConf.renderItemContent.call($xeform, h, itemRender, params);
|
|
37170
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call($xeform, h, itemRender, params));
|
|
37078
37171
|
} else if (compConf && compConf.renderItem) {
|
|
37079
|
-
contentVNs = compConf.renderItem.call($xeform, h, itemRender, params);
|
|
37172
|
+
contentVNs = getSlotVNs(compConf.renderItem.call($xeform, h, itemRender, params));
|
|
37080
37173
|
} else if (field) {
|
|
37081
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))];
|
|
37082
37175
|
}
|
|
@@ -37088,13 +37181,13 @@ var VxeFormConfigItem = {
|
|
|
37088
37181
|
mouseleave: $xeform.handleTitleTipLeaveEvent
|
|
37089
37182
|
} : {};
|
|
37090
37183
|
return h('div', {
|
|
37091
|
-
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 : '', {
|
|
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 : '', {
|
|
37092
37185
|
'is--title': title,
|
|
37093
37186
|
'is--colon': titleColon,
|
|
37094
37187
|
'is--asterisk': titleAsterisk,
|
|
37095
37188
|
'is--required': isRequired,
|
|
37096
37189
|
'is--hidden': folding && collapseAll,
|
|
37097
|
-
'is--active':
|
|
37190
|
+
'is--active': isActivetem($xeform, item),
|
|
37098
37191
|
'is--error': showError
|
|
37099
37192
|
}],
|
|
37100
37193
|
props: {
|
|
@@ -37123,8 +37216,8 @@ var VxeFormConfigItem = {
|
|
|
37123
37216
|
}
|
|
37124
37217
|
}, [h('span', {
|
|
37125
37218
|
class: 'vxe-form--item-trigger-text'
|
|
37126
|
-
}, collapseAll ?
|
|
37127
|
-
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]
|
|
37128
37221
|
})]) : null, errRule && validOpts.showMessage ? h('div', {
|
|
37129
37222
|
class: 'vxe-form--item-valid',
|
|
37130
37223
|
style: errRule.maxWidth ? {
|
|
@@ -37161,6 +37254,8 @@ var VxeFormConfigItem = {
|
|
|
37161
37254
|
|
|
37162
37255
|
|
|
37163
37256
|
|
|
37257
|
+
|
|
37258
|
+
|
|
37164
37259
|
|
|
37165
37260
|
|
|
37166
37261
|
|
|
@@ -37247,43 +37342,43 @@ function getResetValue(value, resetValue) {
|
|
|
37247
37342
|
size: {
|
|
37248
37343
|
type: String,
|
|
37249
37344
|
default: function _default() {
|
|
37250
|
-
return
|
|
37345
|
+
return src_conf.form.size || src_conf.size;
|
|
37251
37346
|
}
|
|
37252
37347
|
},
|
|
37253
37348
|
span: {
|
|
37254
37349
|
type: [String, Number],
|
|
37255
37350
|
default: function _default() {
|
|
37256
|
-
return
|
|
37351
|
+
return src_conf.form.span;
|
|
37257
37352
|
}
|
|
37258
37353
|
},
|
|
37259
37354
|
align: {
|
|
37260
37355
|
type: String,
|
|
37261
37356
|
default: function _default() {
|
|
37262
|
-
return
|
|
37357
|
+
return src_conf.form.align;
|
|
37263
37358
|
}
|
|
37264
37359
|
},
|
|
37265
37360
|
titleAlign: {
|
|
37266
37361
|
type: String,
|
|
37267
37362
|
default: function _default() {
|
|
37268
|
-
return
|
|
37363
|
+
return src_conf.form.titleAlign;
|
|
37269
37364
|
}
|
|
37270
37365
|
},
|
|
37271
37366
|
titleWidth: {
|
|
37272
37367
|
type: [String, Number],
|
|
37273
37368
|
default: function _default() {
|
|
37274
|
-
return
|
|
37369
|
+
return src_conf.form.titleWidth;
|
|
37275
37370
|
}
|
|
37276
37371
|
},
|
|
37277
37372
|
titleColon: {
|
|
37278
37373
|
type: Boolean,
|
|
37279
37374
|
default: function _default() {
|
|
37280
|
-
return
|
|
37375
|
+
return src_conf.form.titleColon;
|
|
37281
37376
|
}
|
|
37282
37377
|
},
|
|
37283
37378
|
titleAsterisk: {
|
|
37284
37379
|
type: Boolean,
|
|
37285
37380
|
default: function _default() {
|
|
37286
|
-
return
|
|
37381
|
+
return src_conf.form.titleAsterisk;
|
|
37287
37382
|
}
|
|
37288
37383
|
},
|
|
37289
37384
|
titleOverflow: {
|
|
@@ -37291,12 +37386,13 @@ function getResetValue(value, resetValue) {
|
|
|
37291
37386
|
default: null
|
|
37292
37387
|
},
|
|
37293
37388
|
className: [String, Function],
|
|
37389
|
+
readonly: Boolean,
|
|
37294
37390
|
items: Array,
|
|
37295
37391
|
rules: Object,
|
|
37296
37392
|
preventSubmit: {
|
|
37297
37393
|
type: Boolean,
|
|
37298
37394
|
default: function _default() {
|
|
37299
|
-
return
|
|
37395
|
+
return src_conf.form.preventSubmit;
|
|
37300
37396
|
}
|
|
37301
37397
|
},
|
|
37302
37398
|
validConfig: Object,
|
|
@@ -37304,7 +37400,7 @@ function getResetValue(value, resetValue) {
|
|
|
37304
37400
|
customLayout: {
|
|
37305
37401
|
type: Boolean,
|
|
37306
37402
|
default: function _default() {
|
|
37307
|
-
return
|
|
37403
|
+
return src_conf.form.customLayout;
|
|
37308
37404
|
}
|
|
37309
37405
|
}
|
|
37310
37406
|
},
|
|
@@ -37330,10 +37426,10 @@ function getResetValue(value, resetValue) {
|
|
|
37330
37426
|
},
|
|
37331
37427
|
computed: {
|
|
37332
37428
|
validOpts: function validOpts() {
|
|
37333
|
-
return Object.assign({},
|
|
37429
|
+
return Object.assign({}, src_conf.form.validConfig, this.validConfig);
|
|
37334
37430
|
},
|
|
37335
37431
|
tooltipOpts: function tooltipOpts() {
|
|
37336
|
-
return Object.assign({},
|
|
37432
|
+
return Object.assign({}, src_conf.tooltip, src_conf.form.tooltipConfig, this.tooltipConfig);
|
|
37337
37433
|
}
|
|
37338
37434
|
},
|
|
37339
37435
|
watch: {
|
|
@@ -37423,7 +37519,7 @@ function getResetValue(value, resetValue) {
|
|
|
37423
37519
|
}
|
|
37424
37520
|
|
|
37425
37521
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.isFunction(slotFunc)) {
|
|
37426
|
-
return slotFunc.call(this, params, h);
|
|
37522
|
+
return getSlotVNs(slotFunc.call(this, params, h));
|
|
37427
37523
|
}
|
|
37428
37524
|
}
|
|
37429
37525
|
|
|
@@ -37648,7 +37744,7 @@ function getResetValue(value, resetValue) {
|
|
|
37648
37744
|
itemList.forEach(function (item) {
|
|
37649
37745
|
var field = item.field;
|
|
37650
37746
|
|
|
37651
|
-
if (field) {
|
|
37747
|
+
if (field && !isHiddenItem(_this6, item) && isActivetem(_this6, item)) {
|
|
37652
37748
|
itemValids.push(_this6.validItemRules(type || 'all', field).then(function () {
|
|
37653
37749
|
item.errRule = null;
|
|
37654
37750
|
}).catch(function (_ref2) {
|
|
@@ -37842,7 +37938,7 @@ function getResetValue(value, resetValue) {
|
|
|
37842
37938
|
var _this9 = this;
|
|
37843
37939
|
|
|
37844
37940
|
if (field) {
|
|
37845
|
-
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 () {
|
|
37846
37942
|
_this9.clearValidate(field);
|
|
37847
37943
|
}).catch(function (_ref3) {
|
|
37848
37944
|
var rule = _ref3.rule;
|
|
@@ -37892,6 +37988,7 @@ var Form = Object.assign(src_form, {
|
|
|
37892
37988
|
|
|
37893
37989
|
|
|
37894
37990
|
|
|
37991
|
+
|
|
37895
37992
|
var form_item_props = {
|
|
37896
37993
|
title: String,
|
|
37897
37994
|
field: String,
|
|
@@ -37935,7 +38032,8 @@ Object.keys(form_item_props).forEach(function (name) {
|
|
|
37935
38032
|
});
|
|
37936
38033
|
|
|
37937
38034
|
var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
37938
|
-
var
|
|
38035
|
+
var _e = _vm._e,
|
|
38036
|
+
rules = _vm.rules,
|
|
37939
38037
|
data = _vm.data,
|
|
37940
38038
|
collapseAll = _vm.collapseAll,
|
|
37941
38039
|
validOpts = _vm.validOpts,
|
|
@@ -37943,7 +38041,6 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37943
38041
|
var title = item.title,
|
|
37944
38042
|
folding = item.folding,
|
|
37945
38043
|
visible = item.visible,
|
|
37946
|
-
visibleMethod = item.visibleMethod,
|
|
37947
38044
|
field = item.field,
|
|
37948
38045
|
collapseNode = item.collapseNode,
|
|
37949
38046
|
itemRender = item.itemRender,
|
|
@@ -37952,11 +38049,11 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37952
38049
|
className = item.className,
|
|
37953
38050
|
titleOverflow = item.titleOverflow;
|
|
37954
38051
|
var compConf = isEnableConf(itemRender) ? v_x_e_table.renderer.get(itemRender.name) : null;
|
|
38052
|
+
var itemClassName = compConf ? compConf.itemClassName : '';
|
|
37955
38053
|
var span = item.span || _vm.span;
|
|
37956
38054
|
var align = item.align || _vm.align;
|
|
37957
38055
|
var titleAlign = item.titleAlign || _vm.titleAlign;
|
|
37958
38056
|
var titleWidth = item.titleWidth || _vm.titleWidth;
|
|
37959
|
-
var itemVisibleMethod = visibleMethod;
|
|
37960
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;
|
|
37961
38058
|
var showEllipsis = itemOverflow === 'ellipsis';
|
|
37962
38059
|
var showTitle = itemOverflow === 'title';
|
|
@@ -37971,8 +38068,8 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37971
38068
|
};
|
|
37972
38069
|
var isRequired;
|
|
37973
38070
|
|
|
37974
|
-
if (
|
|
37975
|
-
|
|
38071
|
+
if (visible === false) {
|
|
38072
|
+
return _e();
|
|
37976
38073
|
}
|
|
37977
38074
|
|
|
37978
38075
|
if (rules) {
|
|
@@ -37990,9 +38087,9 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
37990
38087
|
if (slots && slots.default) {
|
|
37991
38088
|
contentVNs = _vm.callSlot(slots.default, params, h);
|
|
37992
38089
|
} else if (compConf && compConf.renderItemContent) {
|
|
37993
|
-
contentVNs = compConf.renderItemContent.call(_vm, h, itemRender, params);
|
|
38090
|
+
contentVNs = getSlotVNs(compConf.renderItemContent.call(_vm, h, itemRender, params));
|
|
37994
38091
|
} else if (compConf && compConf.renderItem) {
|
|
37995
|
-
contentVNs = compConf.renderItem.call(_vm, h, itemRender, params);
|
|
38092
|
+
contentVNs = getSlotVNs(compConf.renderItem.call(_vm, h, itemRender, params));
|
|
37996
38093
|
} else if (field) {
|
|
37997
38094
|
contentVNs = ["".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default.a.get(data, field))];
|
|
37998
38095
|
}
|
|
@@ -38004,11 +38101,11 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38004
38101
|
mouseleave: _vm.handleTitleTipLeaveEvent
|
|
38005
38102
|
} : {};
|
|
38006
38103
|
return h('div', {
|
|
38007
|
-
class: ['vxe-form--item', item.id, span ? "vxe-col--".concat(span, " is--span") :
|
|
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 : '', {
|
|
38008
38105
|
'is--title': title,
|
|
38009
38106
|
'is--required': isRequired,
|
|
38010
|
-
'is--hidden':
|
|
38011
|
-
'is--active':
|
|
38107
|
+
'is--hidden': folding && collapseAll,
|
|
38108
|
+
'is--active': isActivetem(_vm, item),
|
|
38012
38109
|
'is--error': showError
|
|
38013
38110
|
}]
|
|
38014
38111
|
}, [h('div', {
|
|
@@ -38033,8 +38130,8 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38033
38130
|
}
|
|
38034
38131
|
}, [h('span', {
|
|
38035
38132
|
class: 'vxe-form--item-trigger-text'
|
|
38036
|
-
}, collapseAll ?
|
|
38037
|
-
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]
|
|
38038
38135
|
})]) : null, errRule && validOpts.showMessage ? h('div', {
|
|
38039
38136
|
class: 'vxe-form--item-valid',
|
|
38040
38137
|
style: errRule.maxWidth ? {
|
|
@@ -38057,9 +38154,7 @@ var form_item_renderItem = function renderItem(h, _vm, item, slots) {
|
|
|
38057
38154
|
provide: function provide() {
|
|
38058
38155
|
return {
|
|
38059
38156
|
$xeformitem: this,
|
|
38060
|
-
$xeformiteminfo:
|
|
38061
|
-
itemConfig: this.itemConfig
|
|
38062
|
-
}
|
|
38157
|
+
$xeformiteminfo: this
|
|
38063
38158
|
};
|
|
38064
38159
|
},
|
|
38065
38160
|
data: function data() {
|
|
@@ -38102,9 +38197,7 @@ var FormItem = Object.assign(form_item, {
|
|
|
38102
38197
|
return {
|
|
38103
38198
|
$xeformgather: this,
|
|
38104
38199
|
xeformitem: null,
|
|
38105
|
-
$xeformiteminfo:
|
|
38106
|
-
itemConfig: this.itemConfig
|
|
38107
|
-
}
|
|
38200
|
+
$xeformiteminfo: this
|
|
38108
38201
|
};
|
|
38109
38202
|
},
|
|
38110
38203
|
created: function created() {
|
|
@@ -38234,7 +38327,7 @@ var Option = Object.assign(src_option, {
|
|
|
38234
38327
|
size: {
|
|
38235
38328
|
type: String,
|
|
38236
38329
|
default: function _default() {
|
|
38237
|
-
return
|
|
38330
|
+
return src_conf.switch.size || src_conf.size;
|
|
38238
38331
|
}
|
|
38239
38332
|
},
|
|
38240
38333
|
openLabel: String,
|
|
@@ -38410,13 +38503,13 @@ var Switch = Object.assign(src_switch, {
|
|
|
38410
38503
|
size: {
|
|
38411
38504
|
type: String,
|
|
38412
38505
|
default: function _default() {
|
|
38413
|
-
return
|
|
38506
|
+
return src_conf.list.size || src_conf.size;
|
|
38414
38507
|
}
|
|
38415
38508
|
},
|
|
38416
38509
|
autoResize: {
|
|
38417
38510
|
type: Boolean,
|
|
38418
38511
|
default: function _default() {
|
|
38419
|
-
return
|
|
38512
|
+
return src_conf.list.autoResize;
|
|
38420
38513
|
}
|
|
38421
38514
|
},
|
|
38422
38515
|
syncResize: [Boolean, String, Number],
|
|
@@ -38432,7 +38525,7 @@ var Switch = Object.assign(src_switch, {
|
|
|
38432
38525
|
},
|
|
38433
38526
|
computed: {
|
|
38434
38527
|
sYOpts: function sYOpts() {
|
|
38435
|
-
return Object.assign({},
|
|
38528
|
+
return Object.assign({}, src_conf.list.scrollY, this.scrollY);
|
|
38436
38529
|
},
|
|
38437
38530
|
styles: function styles() {
|
|
38438
38531
|
var height = this.height,
|
|
@@ -38794,7 +38887,7 @@ var List = Object.assign(src_list, {
|
|
|
38794
38887
|
size: {
|
|
38795
38888
|
type: String,
|
|
38796
38889
|
default: function _default() {
|
|
38797
|
-
return
|
|
38890
|
+
return src_conf.size;
|
|
38798
38891
|
}
|
|
38799
38892
|
},
|
|
38800
38893
|
destroyOnClose: Boolean,
|