vxe-table 3.7.0-beta.6 → 3.7.0-beta.8
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/README.md +6 -9
- package/lib/filter/src/mixin.js +13 -7
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/form/src/form.js +24 -4
- package/lib/form/src/form.min.js +1 -1
- package/lib/grid/src/grid.js +7 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +352 -89
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +6 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/locale/lang/en-US.js +8 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +8 -0
- package/lib/locale/lang/es-ES.js +8 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +8 -0
- package/lib/locale/lang/ja-JP.d.ts +1 -1
- package/lib/locale/lang/ja-JP.js +8 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +8 -0
- package/lib/locale/lang/pt-BR.d.ts +8 -0
- package/lib/locale/lang/pt-BR.js +330 -0
- package/lib/locale/lang/pt-BR.min.js +1 -0
- package/lib/locale/lang/pt-BR.umd.js +344 -0
- package/lib/locale/lang/zh-CN.d.ts +1 -1
- package/lib/locale/lang/zh-CN.js +8 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +8 -0
- package/lib/locale/lang/zh-HK.d.ts +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +8 -0
- package/lib/locale/lang/zh-MO.d.ts +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +8 -0
- package/lib/locale/lang/zh-TC.d.ts +1 -1
- package/lib/locale/lang/zh-TC.js +8 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +8 -0
- package/lib/locale/lang/zh-TW.d.ts +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +8 -0
- package/lib/menu/src/mixin.js +3 -3
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/select/src/select.js +6 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +2 -0
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +6 -6
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +43 -16
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +11 -24
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +2 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +6 -1
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +18 -6
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +3 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +58 -2
- package/lib/v-x-e-table/src/commands.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +4 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/formats.js +58 -2
- package/lib/v-x-e-table/src/formats.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +58 -2
- package/lib/v-x-e-table/src/menus.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +10 -0
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +5 -2
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/src/validators.js +15 -0
- package/lib/v-x-e-table/src/validators.min.js +1 -0
- package/lib/validator/src/mixin.js +26 -4
- package/lib/validator/src/mixin.min.js +1 -1
- package/package.json +2 -2
- package/packages/filter/src/mixin.js +5 -1
- package/packages/form/src/form.js +24 -5
- package/packages/grid/src/grid.js +7 -3
- package/packages/input/src/input.js +4 -1
- package/packages/locale/lang/en-US.js +8 -0
- package/packages/locale/lang/es-ES.js +8 -0
- package/packages/locale/lang/ja-JP.d.ts +1 -1
- package/packages/locale/lang/ja-JP.js +8 -0
- package/packages/locale/lang/pt-BR.d.ts +8 -0
- package/packages/locale/lang/pt-BR.js +323 -0
- package/packages/locale/lang/zh-CN.d.ts +1 -1
- package/packages/locale/lang/zh-CN.js +8 -0
- package/packages/locale/lang/zh-HK.d.ts +1 -1
- package/packages/locale/lang/zh-MO.d.ts +1 -1
- package/packages/locale/lang/zh-TC.d.ts +1 -1
- package/packages/locale/lang/zh-TC.js +8 -0
- package/packages/locale/lang/zh-TW.d.ts +1 -1
- package/packages/menu/src/mixin.js +3 -3
- package/packages/select/src/select.js +4 -1
- package/packages/table/src/cell.js +2 -0
- package/packages/table/src/columnInfo.js +6 -6
- package/packages/table/src/methods.js +36 -15
- package/packages/table/src/table.js +5 -1
- package/packages/textarea/src/textarea.js +4 -1
- package/packages/toolbar/src/toolbar.js +18 -6
- package/packages/v-x-e-table/index.js +2 -0
- package/packages/v-x-e-table/src/commands.js +48 -2
- package/packages/v-x-e-table/src/conf.js +4 -1
- package/packages/v-x-e-table/src/formats.js +48 -2
- package/packages/v-x-e-table/src/menus.js +48 -2
- package/packages/v-x-e-table/src/renderer.js +11 -1
- package/packages/v-x-e-table/src/store.js +4 -2
- package/packages/v-x-e-table/src/validators.js +7 -0
- package/packages/validator/src/mixin.js +25 -4
- package/styles/all.scss +30 -0
- package/styles/css-variable.scss +272 -0
- package/styles/cssvar.scss +2 -275
- package/styles/index.scss +2 -0
- package/styles/modules.scss +4 -1
- package/styles/table.scss +4 -4
- package/styles/tooltip.scss +2 -2
- package/styles/variable.scss +1 -4
- package/types/form.d.ts +14 -12
- package/types/table.d.ts +4 -0
- package/types/v-x-e-table/commands.d.ts +21 -13
- package/types/v-x-e-table/formats.d.ts +19 -12
- package/types/v-x-e-table/index.d.ts +7 -1
- package/types/v-x-e-table/menus.d.ts +17 -6
- package/types/v-x-e-table/validators.d.ts +30 -0
- package/types/validator.d.ts +15 -4
- /package/lib/icon/style/{iconfont.1689639571797.ttf → iconfont.1690504677290.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1689639571797.woff → iconfont.1690504677290.woff} +0 -0
- /package/lib/icon/style/{iconfont.1689639571797.woff2 → iconfont.1690504677290.woff2} +0 -0
- /package/lib/{iconfont.1689639571797.ttf → iconfont.1690504677290.ttf} +0 -0
- /package/lib/{iconfont.1689639571797.woff → iconfont.1690504677290.woff} +0 -0
- /package/lib/{iconfont.1689639571797.woff2 → iconfont.1690504677290.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -10677,6 +10677,7 @@ var iconPrefix = 'vxe-icon-';
|
|
|
10677
10677
|
animat: true,
|
|
10678
10678
|
delayHover: 250,
|
|
10679
10679
|
autoResize: true,
|
|
10680
|
+
minHeight: 144,
|
|
10680
10681
|
// keepSource: false,
|
|
10681
10682
|
// showOverflow: null,
|
|
10682
10683
|
// showHeaderOverflow: null,
|
|
@@ -10710,7 +10711,9 @@ var iconPrefix = 'vxe-icon-';
|
|
|
10710
10711
|
},
|
|
10711
10712
|
validConfig: {
|
|
10712
10713
|
showMessage: true,
|
|
10713
|
-
|
|
10714
|
+
autoClear: true,
|
|
10715
|
+
message: 'inline',
|
|
10716
|
+
msgMode: 'single'
|
|
10714
10717
|
},
|
|
10715
10718
|
columnConfig: {
|
|
10716
10719
|
maxFixedSize: 4
|
|
@@ -11042,7 +11045,7 @@ var es_array_concat = __webpack_require__(2222);
|
|
|
11042
11045
|
|
|
11043
11046
|
|
|
11044
11047
|
function getLog(message, params) {
|
|
11045
|
-
return "[vxe-table v".concat("3.7.0-beta.
|
|
11048
|
+
return "[vxe-table v".concat("3.7.0-beta.8", "] ").concat(conf.i18n(message, params));
|
|
11046
11049
|
}
|
|
11047
11050
|
function outLog(type) {
|
|
11048
11051
|
return function (message, params) {
|
|
@@ -11437,6 +11440,7 @@ function getNativeOns(renderOpts, params) {
|
|
|
11437
11440
|
var nativeOns = {};
|
|
11438
11441
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(nativeEvents, function (func, key) {
|
|
11439
11442
|
nativeOns[key] = function () {
|
|
11443
|
+
if (false) {}
|
|
11440
11444
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
11441
11445
|
args[_key] = arguments[_key];
|
|
11442
11446
|
}
|
|
@@ -11454,6 +11458,7 @@ function getOns(renderOpts, params, inputFunc, changeFunc) {
|
|
|
11454
11458
|
var ons = {};
|
|
11455
11459
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, function (func, key) {
|
|
11456
11460
|
ons[key] = function () {
|
|
11461
|
+
if (false) {}
|
|
11457
11462
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
11458
11463
|
args[_key2] = arguments[_key2];
|
|
11459
11464
|
}
|
|
@@ -12056,8 +12061,181 @@ var renderer = {
|
|
|
12056
12061
|
var es_array_includes = __webpack_require__(6699);
|
|
12057
12062
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
12058
12063
|
var es_string_includes = __webpack_require__(2023);
|
|
12059
|
-
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/
|
|
12064
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/commands.js
|
|
12065
|
+
|
|
12066
|
+
|
|
12067
|
+
|
|
12068
|
+
|
|
12069
|
+
|
|
12070
|
+
|
|
12071
|
+
|
|
12072
|
+
|
|
12073
|
+
|
|
12074
|
+
|
|
12075
|
+
var VXECommandsStore = /*#__PURE__*/function () {
|
|
12076
|
+
function VXECommandsStore() {
|
|
12077
|
+
_classCallCheck(this, VXECommandsStore);
|
|
12078
|
+
this.store = {};
|
|
12079
|
+
}
|
|
12080
|
+
_createClass(VXECommandsStore, [{
|
|
12081
|
+
key: "mixin",
|
|
12082
|
+
value: function mixin(options) {
|
|
12083
|
+
var _this = this;
|
|
12084
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
|
|
12085
|
+
_this.add(key, item);
|
|
12086
|
+
});
|
|
12087
|
+
return VXECommandsStore;
|
|
12088
|
+
}
|
|
12089
|
+
}, {
|
|
12090
|
+
key: "get",
|
|
12091
|
+
value: function get(name) {
|
|
12092
|
+
return this.store[name];
|
|
12093
|
+
}
|
|
12094
|
+
}, {
|
|
12095
|
+
key: "add",
|
|
12096
|
+
value: function add(name, render) {
|
|
12097
|
+
var conf = this.store[name];
|
|
12098
|
+
// 兼容
|
|
12099
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
12100
|
+
// warnLog('vxe.error.delProp', ['callback', 'commandMethod'])
|
|
12101
|
+
render = {
|
|
12102
|
+
commandMethod: render
|
|
12103
|
+
};
|
|
12104
|
+
}
|
|
12105
|
+
|
|
12106
|
+
// 检测是否覆盖
|
|
12107
|
+
if (false) { var confKeys; }
|
|
12108
|
+
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
12109
|
+
return VXECommandsStore;
|
|
12110
|
+
}
|
|
12111
|
+
}, {
|
|
12112
|
+
key: "delete",
|
|
12113
|
+
value: function _delete(name) {
|
|
12114
|
+
delete this.store[name];
|
|
12115
|
+
return VXECommandsStore;
|
|
12116
|
+
}
|
|
12117
|
+
}]);
|
|
12118
|
+
return VXECommandsStore;
|
|
12119
|
+
}();
|
|
12120
|
+
var commands = new VXECommandsStore();
|
|
12121
|
+
if (false) {}
|
|
12122
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
|
|
12123
|
+
|
|
12124
|
+
|
|
12125
|
+
|
|
12126
|
+
|
|
12127
|
+
|
|
12128
|
+
|
|
12129
|
+
|
|
12130
|
+
|
|
12131
|
+
|
|
12132
|
+
|
|
12133
|
+
var VXEMenusStore = /*#__PURE__*/function () {
|
|
12134
|
+
function VXEMenusStore() {
|
|
12135
|
+
_classCallCheck(this, VXEMenusStore);
|
|
12136
|
+
this.store = {};
|
|
12137
|
+
}
|
|
12138
|
+
_createClass(VXEMenusStore, [{
|
|
12139
|
+
key: "mixin",
|
|
12140
|
+
value: function mixin(options) {
|
|
12141
|
+
var _this = this;
|
|
12142
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
|
|
12143
|
+
_this.add(key, item);
|
|
12144
|
+
});
|
|
12145
|
+
return VXEMenusStore;
|
|
12146
|
+
}
|
|
12147
|
+
}, {
|
|
12148
|
+
key: "get",
|
|
12149
|
+
value: function get(name) {
|
|
12150
|
+
return this.store[name];
|
|
12151
|
+
}
|
|
12152
|
+
}, {
|
|
12153
|
+
key: "add",
|
|
12154
|
+
value: function add(name, render) {
|
|
12155
|
+
var conf = this.store[name];
|
|
12156
|
+
// 兼容
|
|
12157
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
12158
|
+
// warnLog('vxe.error.delProp', ['callback', 'menuMethod'])
|
|
12159
|
+
render = {
|
|
12160
|
+
menuMethod: render
|
|
12161
|
+
};
|
|
12162
|
+
}
|
|
12163
|
+
|
|
12164
|
+
// 检测是否覆盖
|
|
12165
|
+
if (false) { var confKeys; }
|
|
12166
|
+
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
12167
|
+
return VXEMenusStore;
|
|
12168
|
+
}
|
|
12169
|
+
}, {
|
|
12170
|
+
key: "delete",
|
|
12171
|
+
value: function _delete(name) {
|
|
12172
|
+
delete this.store[name];
|
|
12173
|
+
return VXEMenusStore;
|
|
12174
|
+
}
|
|
12175
|
+
}]);
|
|
12176
|
+
return VXEMenusStore;
|
|
12177
|
+
}();
|
|
12178
|
+
var menus = new VXEMenusStore();
|
|
12179
|
+
if (false) {}
|
|
12180
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
|
|
12181
|
+
|
|
12182
|
+
|
|
12183
|
+
|
|
12184
|
+
|
|
12185
|
+
|
|
12186
|
+
|
|
12187
|
+
|
|
12188
|
+
|
|
12189
|
+
|
|
12190
|
+
|
|
12191
|
+
var VXEFormatsStore = /*#__PURE__*/function () {
|
|
12192
|
+
function VXEFormatsStore() {
|
|
12193
|
+
_classCallCheck(this, VXEFormatsStore);
|
|
12194
|
+
this.store = {};
|
|
12195
|
+
}
|
|
12196
|
+
_createClass(VXEFormatsStore, [{
|
|
12197
|
+
key: "mixin",
|
|
12198
|
+
value: function mixin(options) {
|
|
12199
|
+
var _this = this;
|
|
12200
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
|
|
12201
|
+
_this.add(key, item);
|
|
12202
|
+
});
|
|
12203
|
+
return VXEFormatsStore;
|
|
12204
|
+
}
|
|
12205
|
+
}, {
|
|
12206
|
+
key: "get",
|
|
12207
|
+
value: function get(name) {
|
|
12208
|
+
return this.store[name];
|
|
12209
|
+
}
|
|
12210
|
+
}, {
|
|
12211
|
+
key: "add",
|
|
12212
|
+
value: function add(name, render) {
|
|
12213
|
+
var conf = this.store[name];
|
|
12214
|
+
// 兼容
|
|
12215
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(render)) {
|
|
12216
|
+
// warnLog('vxe.error.delProp', ['callback', 'formatMethod'])
|
|
12217
|
+
render = {
|
|
12218
|
+
formatMethod: render
|
|
12219
|
+
};
|
|
12220
|
+
}
|
|
12060
12221
|
|
|
12222
|
+
// 检测是否覆盖
|
|
12223
|
+
if (false) { var confKeys; }
|
|
12224
|
+
this.store[name] = conf ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, render) : render;
|
|
12225
|
+
return VXEFormatsStore;
|
|
12226
|
+
}
|
|
12227
|
+
}, {
|
|
12228
|
+
key: "delete",
|
|
12229
|
+
value: function _delete(name) {
|
|
12230
|
+
delete this.store[name];
|
|
12231
|
+
return VXEFormatsStore;
|
|
12232
|
+
}
|
|
12233
|
+
}]);
|
|
12234
|
+
return VXEFormatsStore;
|
|
12235
|
+
}();
|
|
12236
|
+
var formats = new VXEFormatsStore();
|
|
12237
|
+
if (false) {}
|
|
12238
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/store.js
|
|
12061
12239
|
|
|
12062
12240
|
|
|
12063
12241
|
|
|
@@ -12078,8 +12256,11 @@ var Store = /*#__PURE__*/function () {
|
|
|
12078
12256
|
}
|
|
12079
12257
|
_createClass(Store, [{
|
|
12080
12258
|
key: "mixin",
|
|
12081
|
-
value: function mixin(
|
|
12082
|
-
|
|
12259
|
+
value: function mixin(options) {
|
|
12260
|
+
var _this = this;
|
|
12261
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(options, function (item, key) {
|
|
12262
|
+
_this.add(key, item);
|
|
12263
|
+
});
|
|
12083
12264
|
return Store;
|
|
12084
12265
|
}
|
|
12085
12266
|
}, {
|
|
@@ -12106,20 +12287,10 @@ var Store = /*#__PURE__*/function () {
|
|
|
12106
12287
|
return Store;
|
|
12107
12288
|
}();
|
|
12108
12289
|
/* harmony default export */ const store = (Store);
|
|
12109
|
-
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
var commands = new store();
|
|
12113
|
-
if (false) {}
|
|
12114
|
-
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/menus.js
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
var menus = new store();
|
|
12118
|
-
if (false) {}
|
|
12119
|
-
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/formats.js
|
|
12290
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/validators.js
|
|
12120
12291
|
|
|
12121
12292
|
|
|
12122
|
-
var
|
|
12293
|
+
var validators = new store();
|
|
12123
12294
|
if (false) {}
|
|
12124
12295
|
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/setup.js
|
|
12125
12296
|
|
|
@@ -12146,6 +12317,7 @@ function setup(options) {
|
|
|
12146
12317
|
|
|
12147
12318
|
|
|
12148
12319
|
|
|
12320
|
+
|
|
12149
12321
|
var installedPlugins = [];
|
|
12150
12322
|
function use(Plugin, options) {
|
|
12151
12323
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -12229,7 +12401,7 @@ function _t(key, args) {
|
|
|
12229
12401
|
var v = 'v3';
|
|
12230
12402
|
var VXETable = {
|
|
12231
12403
|
v: v,
|
|
12232
|
-
version: "3.7.0-beta.
|
|
12404
|
+
version: "3.7.0-beta.8",
|
|
12233
12405
|
reg: reg,
|
|
12234
12406
|
use: use,
|
|
12235
12407
|
setup: setup,
|
|
@@ -12238,6 +12410,7 @@ var VXETable = {
|
|
|
12238
12410
|
commands: commands,
|
|
12239
12411
|
formats: formats,
|
|
12240
12412
|
menus: menus,
|
|
12413
|
+
validators: validators,
|
|
12241
12414
|
config: config,
|
|
12242
12415
|
t: t,
|
|
12243
12416
|
_t: _t
|
|
@@ -12367,7 +12540,7 @@ var ColumnInfo = /*#__PURE__*/function () {
|
|
|
12367
12540
|
var proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
|
|
12368
12541
|
var formatter = _vm.formatter;
|
|
12369
12542
|
var visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.visible) ? _vm.visible : true;
|
|
12370
|
-
if (false) { var
|
|
12543
|
+
if (false) { var _gFormatOpts, gFormatOpts, types; }
|
|
12371
12544
|
Object.assign(this, {
|
|
12372
12545
|
// 基本属性
|
|
12373
12546
|
type: _vm.type,
|
|
@@ -15276,6 +15449,7 @@ var Cell = {
|
|
|
15276
15449
|
},
|
|
15277
15450
|
on: {
|
|
15278
15451
|
click: function click(evnt) {
|
|
15452
|
+
evnt.stopPropagation();
|
|
15279
15453
|
$table.triggerSortEvent(evnt, column, 'asc');
|
|
15280
15454
|
}
|
|
15281
15455
|
}
|
|
@@ -15288,6 +15462,7 @@ var Cell = {
|
|
|
15288
15462
|
},
|
|
15289
15463
|
on: {
|
|
15290
15464
|
click: function click(evnt) {
|
|
15465
|
+
evnt.stopPropagation();
|
|
15291
15466
|
$table.triggerSortEvent(evnt, column, 'desc');
|
|
15292
15467
|
}
|
|
15293
15468
|
}
|
|
@@ -17764,6 +17939,7 @@ var Methods = {
|
|
|
17764
17939
|
},
|
|
17765
17940
|
updateHeight: function updateHeight() {
|
|
17766
17941
|
this.customHeight = calcHeight(this, 'height');
|
|
17942
|
+
this.customMinHeight = calcHeight(this, 'minHeight');
|
|
17767
17943
|
this.customMaxHeight = calcHeight(this, 'maxHeight');
|
|
17768
17944
|
},
|
|
17769
17945
|
updateStyle: function updateStyle() {
|
|
@@ -17773,6 +17949,7 @@ var Methods = {
|
|
|
17773
17949
|
fullColumnIdData = this.fullColumnIdData,
|
|
17774
17950
|
tableColumn = this.tableColumn,
|
|
17775
17951
|
customHeight = this.customHeight,
|
|
17952
|
+
customMinHeight = this.customMinHeight,
|
|
17776
17953
|
customMaxHeight = this.customMaxHeight,
|
|
17777
17954
|
border = this.border,
|
|
17778
17955
|
headerHeight = this.headerHeight,
|
|
@@ -17881,15 +18058,22 @@ var Methods = {
|
|
|
17881
18058
|
} else if (layout === 'body') {
|
|
17882
18059
|
var emptyBlockElem = elemStore["".concat(name, "-").concat(layout, "-emptyBlock")];
|
|
17883
18060
|
if (methods_isNodeElement(wrapperElem)) {
|
|
18061
|
+
var bodyMinHeight = fixedType ? customMinHeight - headerHeight - footerHeight - (showFooter ? 0 : scrollbarHeight) : customMinHeight - headerHeight - footerHeight;
|
|
18062
|
+
var bodyMaxHeight = 0;
|
|
17884
18063
|
if (customMaxHeight) {
|
|
17885
|
-
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
18064
|
+
bodyMaxHeight = Math.max(bodyMinHeight, fixedType ? customMaxHeight - headerHeight - (showFooter ? 0 : scrollbarHeight) : customMaxHeight - headerHeight - footerHeight);
|
|
18065
|
+
wrapperElem.style.maxHeight = "".concat(bodyMaxHeight, "px");
|
|
18066
|
+
}
|
|
18067
|
+
if (customHeight > 0) {
|
|
18068
|
+
var bodyHeight = fixedType ? (customHeight > 0 ? customHeight - headerHeight - footerHeight : tableHeight) - (showFooter ? 0 : scrollbarHeight) : customHeight - headerHeight - footerHeight;
|
|
18069
|
+
if (bodyMaxHeight) {
|
|
18070
|
+
bodyHeight = Math.min(bodyMaxHeight, bodyHeight);
|
|
17891
18071
|
}
|
|
18072
|
+
wrapperElem.style.height = "".concat(Math.max(bodyMinHeight, bodyHeight), "px");
|
|
18073
|
+
} else {
|
|
18074
|
+
wrapperElem.style.height = '';
|
|
17892
18075
|
}
|
|
18076
|
+
wrapperElem.style.minHeight = "".concat(bodyMinHeight, "px");
|
|
17893
18077
|
}
|
|
17894
18078
|
|
|
17895
18079
|
// 如果是固定列
|
|
@@ -19805,12 +19989,18 @@ var Methods = {
|
|
|
19805
19989
|
});
|
|
19806
19990
|
}
|
|
19807
19991
|
var params = {
|
|
19992
|
+
$table: this,
|
|
19993
|
+
$event: evnt,
|
|
19808
19994
|
column: column,
|
|
19809
19995
|
field: field,
|
|
19810
19996
|
property: field,
|
|
19811
19997
|
order: column.order,
|
|
19812
|
-
sortList: this.getSortColumns()
|
|
19998
|
+
sortList: this.getSortColumns(),
|
|
19999
|
+
sortTime: column.sortTime
|
|
19813
20000
|
};
|
|
20001
|
+
if (this.mouseConfig && this.mouseOpts.area && this.handleSortEvent) {
|
|
20002
|
+
return this.handleSortEvent(evnt, params);
|
|
20003
|
+
}
|
|
19814
20004
|
this.emitEvent('sort-change', params, evnt);
|
|
19815
20005
|
}
|
|
19816
20006
|
},
|
|
@@ -20066,7 +20256,19 @@ var Methods = {
|
|
|
20066
20256
|
* @param {Boolean} expanded 是否展开
|
|
20067
20257
|
*/
|
|
20068
20258
|
setAllRowExpand: function setAllRowExpand(expanded) {
|
|
20069
|
-
|
|
20259
|
+
var treeConfig = this.treeConfig,
|
|
20260
|
+
treeOpts = this.treeOpts,
|
|
20261
|
+
tableFullData = this.tableFullData,
|
|
20262
|
+
tableFullTreeData = this.tableFullTreeData;
|
|
20263
|
+
var expandedRows = [];
|
|
20264
|
+
if (treeConfig) {
|
|
20265
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(tableFullTreeData, function (row) {
|
|
20266
|
+
expandedRows.push(row);
|
|
20267
|
+
}, treeOpts);
|
|
20268
|
+
} else {
|
|
20269
|
+
expandedRows = tableFullData;
|
|
20270
|
+
}
|
|
20271
|
+
return this.setRowExpand(expandedRows, expanded);
|
|
20070
20272
|
},
|
|
20071
20273
|
handleAsyncRowExpand: function handleAsyncRowExpand(row) {
|
|
20072
20274
|
var _this44 = this;
|
|
@@ -20947,16 +21149,16 @@ var Methods = {
|
|
|
20947
21149
|
* 如果组件值 v-model 发生 change 时,调用改函数用于更新某一列编辑状态
|
|
20948
21150
|
* 如果单元格配置了校验规则,则会进行校验
|
|
20949
21151
|
*/
|
|
20950
|
-
updateStatus: function updateStatus(
|
|
21152
|
+
updateStatus: function updateStatus(slotParams, cellValue) {
|
|
20951
21153
|
var _this57 = this;
|
|
20952
21154
|
var customVal = !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(cellValue);
|
|
20953
21155
|
return this.$nextTick().then(function () {
|
|
20954
21156
|
var $refs = _this57.$refs,
|
|
20955
21157
|
editRules = _this57.editRules,
|
|
20956
21158
|
validStore = _this57.validStore;
|
|
20957
|
-
if (
|
|
20958
|
-
var row =
|
|
20959
|
-
column =
|
|
21159
|
+
if (slotParams && $refs.tableBody && editRules) {
|
|
21160
|
+
var row = slotParams.row,
|
|
21161
|
+
column = slotParams.column;
|
|
20960
21162
|
var type = 'change';
|
|
20961
21163
|
if (_this57.hasCellRules(type, row, column)) {
|
|
20962
21164
|
var cell = _this57.getCell(row, column);
|
|
@@ -21147,11 +21349,11 @@ var Methods = {
|
|
|
21147
21349
|
columnIndex: this.getColumnIndex(column)
|
|
21148
21350
|
};
|
|
21149
21351
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
21150
|
-
var
|
|
21151
|
-
cellLabel =
|
|
21352
|
+
var gFormatOpts = formats.get(formatter);
|
|
21353
|
+
cellLabel = gFormatOpts && gFormatOpts.formatMethod ? gFormatOpts.formatMethod(formatParams) : '';
|
|
21152
21354
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
21153
|
-
var
|
|
21154
|
-
cellLabel =
|
|
21355
|
+
var _gFormatOpts = formats.get(formatter[0]);
|
|
21356
|
+
cellLabel = _gFormatOpts && _gFormatOpts.formatMethod ? _gFormatOpts.formatMethod.apply(_gFormatOpts, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
|
|
21155
21357
|
} else {
|
|
21156
21358
|
cellLabel = formatter(formatParams);
|
|
21157
21359
|
}
|
|
@@ -21279,6 +21481,7 @@ var Loading = Object.assign(loading, {
|
|
|
21279
21481
|
|
|
21280
21482
|
|
|
21281
21483
|
|
|
21484
|
+
|
|
21282
21485
|
|
|
21283
21486
|
|
|
21284
21487
|
/**
|
|
@@ -21369,6 +21572,13 @@ function handleUupdateResize(_vm) {
|
|
|
21369
21572
|
data: Array,
|
|
21370
21573
|
// 表格的高度
|
|
21371
21574
|
height: [Number, String],
|
|
21575
|
+
// 表格的最小高度
|
|
21576
|
+
minHeight: {
|
|
21577
|
+
type: [Number, String],
|
|
21578
|
+
"default": function _default() {
|
|
21579
|
+
return conf.table.minHeight;
|
|
21580
|
+
}
|
|
21581
|
+
},
|
|
21372
21582
|
// 表格的最大高度
|
|
21373
21583
|
maxHeight: [Number, String],
|
|
21374
21584
|
// 已废弃,被 column-config.resizable 替换
|
|
@@ -22288,6 +22498,7 @@ function handleUupdateResize(_vm) {
|
|
|
22288
22498
|
this.preventEvent(null, 'destroyed');
|
|
22289
22499
|
},
|
|
22290
22500
|
render: function render(h) {
|
|
22501
|
+
var _ref;
|
|
22291
22502
|
var _e = this._e,
|
|
22292
22503
|
$scopedSlots = this.$scopedSlots,
|
|
22293
22504
|
tId = this.tId,
|
|
@@ -22326,33 +22537,12 @@ function handleUupdateResize(_vm) {
|
|
|
22326
22537
|
hasTip = this.hasTip,
|
|
22327
22538
|
columnOpts = this.columnOpts,
|
|
22328
22539
|
rowOpts = this.rowOpts,
|
|
22329
|
-
loadingOpts = this.loadingOpts
|
|
22540
|
+
loadingOpts = this.loadingOpts,
|
|
22541
|
+
editRules = this.editRules;
|
|
22330
22542
|
var leftList = columnStore.leftList,
|
|
22331
22543
|
rightList = columnStore.rightList;
|
|
22332
22544
|
return h('div', {
|
|
22333
|
-
"class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), {
|
|
22334
|
-
'vxe-editable': !!editConfig,
|
|
22335
|
-
'cell--highlight': highlightCell,
|
|
22336
|
-
'cell--selected': mouseConfig && mouseOpts.selected,
|
|
22337
|
-
'cell--area': mouseConfig && mouseOpts.area,
|
|
22338
|
-
'row--highlight': rowOpts.isHover || highlightHoverRow,
|
|
22339
|
-
'column--highlight': columnOpts.isHover || highlightHoverColumn,
|
|
22340
|
-
'is--header': showHeader,
|
|
22341
|
-
'is--footer': showFooter,
|
|
22342
|
-
'is--group': isGroup,
|
|
22343
|
-
'is--tree-line': treeConfig && treeOpts.line,
|
|
22344
|
-
'is--fixed-left': leftList.length,
|
|
22345
|
-
'is--fixed-right': rightList.length,
|
|
22346
|
-
'is--animat': !!this.animat,
|
|
22347
|
-
'is--round': this.round,
|
|
22348
|
-
'is--stripe': !treeConfig && stripe,
|
|
22349
|
-
'is--loading': loading,
|
|
22350
|
-
'is--empty': !loading && !tableData.length,
|
|
22351
|
-
'is--scroll-y': overflowY,
|
|
22352
|
-
'is--scroll-x': overflowX,
|
|
22353
|
-
'is--virtual-x': scrollXLoad,
|
|
22354
|
-
'is--virtual-y': scrollYLoad
|
|
22355
|
-
}],
|
|
22545
|
+
"class": ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), _defineProperty(_ref, 'vxe-editable', !!editConfig), _defineProperty(_ref, 'cell--highlight', highlightCell), _defineProperty(_ref, 'cell--selected', mouseConfig && mouseOpts.selected), _defineProperty(_ref, 'cell--area', mouseConfig && mouseOpts.area), _defineProperty(_ref, 'row--highlight', rowOpts.isHover || highlightHoverRow), _defineProperty(_ref, 'column--highlight', columnOpts.isHover || highlightHoverColumn), _defineProperty(_ref, 'is--header', showHeader), _defineProperty(_ref, 'is--footer', showFooter), _defineProperty(_ref, 'is--group', isGroup), _defineProperty(_ref, 'is--tree-line', treeConfig && treeOpts.line), _defineProperty(_ref, 'is--fixed-left', leftList.length), _defineProperty(_ref, 'is--fixed-right', rightList.length), _defineProperty(_ref, 'is--animat', !!this.animat), _defineProperty(_ref, 'is--round', this.round), _defineProperty(_ref, 'is--stripe', !treeConfig && stripe), _defineProperty(_ref, 'is--loading', loading), _defineProperty(_ref, 'is--empty', !loading && !tableData.length), _defineProperty(_ref, 'is--scroll-y', overflowY), _defineProperty(_ref, 'is--scroll-x', overflowX), _defineProperty(_ref, 'is--virtual-x', scrollXLoad), _defineProperty(_ref, 'is--virtual-y', scrollYLoad), _ref)],
|
|
22356
22546
|
on: {
|
|
22357
22547
|
keydown: this.keydownEvent
|
|
22358
22548
|
}
|
|
@@ -22971,12 +23161,9 @@ var Table = Object.assign(table, {
|
|
|
22971
23161
|
}
|
|
22972
23162
|
});
|
|
22973
23163
|
var filterList = this.getCheckedFilters();
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
this.checkSelectionStatus();
|
|
22978
|
-
}
|
|
22979
|
-
this.emitEvent('filter-change', {
|
|
23164
|
+
var params = {
|
|
23165
|
+
$table: this,
|
|
23166
|
+
$event: evnt,
|
|
22980
23167
|
column: column,
|
|
22981
23168
|
field: field,
|
|
22982
23169
|
property: field,
|
|
@@ -22984,7 +23171,16 @@ var Table = Object.assign(table, {
|
|
|
22984
23171
|
datas: datas,
|
|
22985
23172
|
filters: filterList,
|
|
22986
23173
|
filterList: filterList
|
|
22987
|
-
}
|
|
23174
|
+
};
|
|
23175
|
+
// 如果是服务端筛选,则跳过本地筛选处理
|
|
23176
|
+
if (!filterOpts.remote) {
|
|
23177
|
+
this.handleTableData(true);
|
|
23178
|
+
this.checkSelectionStatus();
|
|
23179
|
+
}
|
|
23180
|
+
if (this.mouseConfig && this.mouseOpts.area && this.handleFilterEvent) {
|
|
23181
|
+
this.handleFilterEvent(evnt, params);
|
|
23182
|
+
}
|
|
23183
|
+
this.emitEvent('filter-change', params, evnt);
|
|
22988
23184
|
this.closeFilter();
|
|
22989
23185
|
this.updateFooter().then(function () {
|
|
22990
23186
|
var scrollXLoad = _this2.scrollXLoad,
|
|
@@ -23488,15 +23684,15 @@ var Filter = {
|
|
|
23488
23684
|
ctxMenuLinkEvent: function ctxMenuLinkEvent(evnt, menu) {
|
|
23489
23685
|
// 如果一级菜单有配置 code 则允许点击,否则不能点击
|
|
23490
23686
|
if (!menu.disabled && (menu.code || !menu.children || !menu.children.length)) {
|
|
23491
|
-
var
|
|
23687
|
+
var gMenuOpts = v_x_e_table.menus.get(menu.code);
|
|
23492
23688
|
var params = Object.assign({
|
|
23493
23689
|
menu: menu,
|
|
23494
23690
|
$grid: this.$xegrid,
|
|
23495
23691
|
$table: this,
|
|
23496
23692
|
$event: evnt
|
|
23497
23693
|
}, this.ctxMenuStore.args);
|
|
23498
|
-
if (
|
|
23499
|
-
|
|
23694
|
+
if (gMenuOpts && gMenuOpts.menuMethod) {
|
|
23695
|
+
gMenuOpts.menuMethod(params, evnt);
|
|
23500
23696
|
}
|
|
23501
23697
|
// 在 v4 中废弃事件 context-menu-click
|
|
23502
23698
|
if (this.$listeners['context-menu-click']) {
|
|
@@ -26211,7 +26407,12 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
26211
26407
|
},
|
|
26212
26408
|
readonly: Boolean,
|
|
26213
26409
|
disabled: Boolean,
|
|
26214
|
-
placeholder:
|
|
26410
|
+
placeholder: {
|
|
26411
|
+
type: String,
|
|
26412
|
+
"default": function _default() {
|
|
26413
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.input.placeholder) ? conf.i18n('vxe.base.pleaseInput') : conf.input.placeholder;
|
|
26414
|
+
}
|
|
26415
|
+
},
|
|
26215
26416
|
maxlength: [String, Number],
|
|
26216
26417
|
autocomplete: {
|
|
26217
26418
|
type: String,
|
|
@@ -28416,7 +28617,12 @@ function renderOpts(h, _vm) {
|
|
|
28416
28617
|
props: {
|
|
28417
28618
|
value: null,
|
|
28418
28619
|
clearable: Boolean,
|
|
28419
|
-
placeholder:
|
|
28620
|
+
placeholder: {
|
|
28621
|
+
type: String,
|
|
28622
|
+
"default": function _default() {
|
|
28623
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.select.placeholder) ? conf.i18n('vxe.base.pleaseSelect') : conf.select.placeholder;
|
|
28624
|
+
}
|
|
28625
|
+
},
|
|
28420
28626
|
loading: Boolean,
|
|
28421
28627
|
disabled: Boolean,
|
|
28422
28628
|
multiple: Boolean,
|
|
@@ -32177,6 +32383,8 @@ var Keyboard = {
|
|
|
32177
32383
|
|
|
32178
32384
|
|
|
32179
32385
|
|
|
32386
|
+
|
|
32387
|
+
|
|
32180
32388
|
|
|
32181
32389
|
|
|
32182
32390
|
|
|
@@ -32444,10 +32652,11 @@ function validErrorRuleValue(rule, val) {
|
|
|
32444
32652
|
rules.forEach(function (rule) {
|
|
32445
32653
|
var type = rule.type,
|
|
32446
32654
|
trigger = rule.trigger,
|
|
32447
|
-
required = rule.required
|
|
32655
|
+
required = rule.required,
|
|
32656
|
+
validator = rule.validator;
|
|
32448
32657
|
if (validType === 'all' || !trigger || validType === trigger) {
|
|
32449
|
-
if (
|
|
32450
|
-
var
|
|
32658
|
+
if (validator) {
|
|
32659
|
+
var validParams = {
|
|
32451
32660
|
cellValue: cellValue,
|
|
32452
32661
|
rule: rule,
|
|
32453
32662
|
rules: rules,
|
|
@@ -32457,7 +32666,22 @@ function validErrorRuleValue(rule, val) {
|
|
|
32457
32666
|
columnIndex: _this3.getColumnIndex(column),
|
|
32458
32667
|
field: column.property,
|
|
32459
32668
|
$table: _this3
|
|
32460
|
-
}
|
|
32669
|
+
};
|
|
32670
|
+
var customValid;
|
|
32671
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
|
|
32672
|
+
var gvItem = v_x_e_table.validators.get(validator);
|
|
32673
|
+
if (gvItem) {
|
|
32674
|
+
if (gvItem.cellValidatorMethod) {
|
|
32675
|
+
customValid = gvItem.cellValidatorMethod(validParams);
|
|
32676
|
+
} else {
|
|
32677
|
+
if (false) {}
|
|
32678
|
+
}
|
|
32679
|
+
} else {
|
|
32680
|
+
if (false) {}
|
|
32681
|
+
}
|
|
32682
|
+
} else {
|
|
32683
|
+
customValid = validator(validParams);
|
|
32684
|
+
}
|
|
32461
32685
|
if (customValid) {
|
|
32462
32686
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isError(customValid)) {
|
|
32463
32687
|
_this3.validRuleErr = true;
|
|
@@ -34024,14 +34248,16 @@ Object.keys(packages_table.methods).forEach(function (name) {
|
|
|
34024
34248
|
}
|
|
34025
34249
|
default:
|
|
34026
34250
|
{
|
|
34027
|
-
var
|
|
34028
|
-
if (
|
|
34029
|
-
|
|
34251
|
+
var gCommandOpts = v_x_e_table.commands.get(code);
|
|
34252
|
+
if (gCommandOpts.commandMethod) {
|
|
34253
|
+
gCommandOpts.commandMethod.apply(gCommandOpts, [{
|
|
34030
34254
|
code: code,
|
|
34031
34255
|
button: button,
|
|
34032
34256
|
$grid: this,
|
|
34033
34257
|
$table: $xetable
|
|
34034
34258
|
}].concat(args));
|
|
34259
|
+
} else {
|
|
34260
|
+
if (false) {}
|
|
34035
34261
|
}
|
|
34036
34262
|
}
|
|
34037
34263
|
}
|
|
@@ -35065,7 +35291,7 @@ function renderCustoms(h, _vm) {
|
|
|
35065
35291
|
if ($xegrid) {
|
|
35066
35292
|
$xegrid.triggerToolbarBtnEvent(item, evnt);
|
|
35067
35293
|
} else {
|
|
35068
|
-
var
|
|
35294
|
+
var gCommandOpts = v_x_e_table.commands.get(code);
|
|
35069
35295
|
var params = {
|
|
35070
35296
|
code: code,
|
|
35071
35297
|
button: item,
|
|
@@ -35073,8 +35299,12 @@ function renderCustoms(h, _vm) {
|
|
|
35073
35299
|
$grid: $xegrid,
|
|
35074
35300
|
$event: evnt
|
|
35075
35301
|
};
|
|
35076
|
-
if (
|
|
35077
|
-
commandMethod
|
|
35302
|
+
if (gCommandOpts) {
|
|
35303
|
+
if (gCommandOpts.commandMethod) {
|
|
35304
|
+
gCommandOpts.commandMethod(params);
|
|
35305
|
+
} else {
|
|
35306
|
+
if (false) {}
|
|
35307
|
+
}
|
|
35078
35308
|
}
|
|
35079
35309
|
this.$emit('button-click', params);
|
|
35080
35310
|
}
|
|
@@ -35088,7 +35318,7 @@ function renderCustoms(h, _vm) {
|
|
|
35088
35318
|
if ($xegrid) {
|
|
35089
35319
|
$xegrid.triggerToolbarTolEvent(item, evnt);
|
|
35090
35320
|
} else {
|
|
35091
|
-
var
|
|
35321
|
+
var gCommandOpts = v_x_e_table.commands.get(code);
|
|
35092
35322
|
var params = {
|
|
35093
35323
|
code: code,
|
|
35094
35324
|
tool: item,
|
|
@@ -35096,8 +35326,12 @@ function renderCustoms(h, _vm) {
|
|
|
35096
35326
|
$table: $xetable,
|
|
35097
35327
|
$event: evnt
|
|
35098
35328
|
};
|
|
35099
|
-
if (
|
|
35100
|
-
commandMethod
|
|
35329
|
+
if (gCommandOpts) {
|
|
35330
|
+
if (gCommandOpts.commandMethod) {
|
|
35331
|
+
gCommandOpts.commandMethod(params);
|
|
35332
|
+
} else {
|
|
35333
|
+
if (false) {}
|
|
35334
|
+
}
|
|
35101
35335
|
}
|
|
35102
35336
|
this.$emit('tool-click', params);
|
|
35103
35337
|
}
|
|
@@ -35975,7 +36209,12 @@ var autoTxtElem;
|
|
|
35975
36209
|
name: String,
|
|
35976
36210
|
readonly: Boolean,
|
|
35977
36211
|
disabled: Boolean,
|
|
35978
|
-
placeholder:
|
|
36212
|
+
placeholder: {
|
|
36213
|
+
type: String,
|
|
36214
|
+
"default": function _default() {
|
|
36215
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(conf.textarea.placeholder) ? conf.i18n('vxe.base.pleaseInput') : conf.textarea.placeholder;
|
|
36216
|
+
}
|
|
36217
|
+
},
|
|
35979
36218
|
maxlength: [String, Number],
|
|
35980
36219
|
rows: {
|
|
35981
36220
|
type: [String, Number],
|
|
@@ -38067,10 +38306,11 @@ function getResetValue(value, resetValue) {
|
|
|
38067
38306
|
rules.forEach(function (rule) {
|
|
38068
38307
|
var type = rule.type,
|
|
38069
38308
|
trigger = rule.trigger,
|
|
38070
|
-
required = rule.required
|
|
38309
|
+
required = rule.required,
|
|
38310
|
+
validator = rule.validator;
|
|
38071
38311
|
if (validType === 'all' || !trigger || validType === rule.trigger) {
|
|
38072
|
-
if (
|
|
38073
|
-
var
|
|
38312
|
+
if (validator) {
|
|
38313
|
+
var validParams = {
|
|
38074
38314
|
itemValue: itemValue,
|
|
38075
38315
|
rule: rule,
|
|
38076
38316
|
rules: rules,
|
|
@@ -38078,7 +38318,22 @@ function getResetValue(value, resetValue) {
|
|
|
38078
38318
|
field: property,
|
|
38079
38319
|
property: property,
|
|
38080
38320
|
$form: _this9
|
|
38081
|
-
}
|
|
38321
|
+
};
|
|
38322
|
+
var customValid;
|
|
38323
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(validator)) {
|
|
38324
|
+
var gvItem = v_x_e_table.validators.get(validator);
|
|
38325
|
+
if (gvItem) {
|
|
38326
|
+
if (gvItem.itemValidatorMethod) {
|
|
38327
|
+
customValid = gvItem.itemValidatorMethod(validParams);
|
|
38328
|
+
} else {
|
|
38329
|
+
if (false) {}
|
|
38330
|
+
}
|
|
38331
|
+
} else {
|
|
38332
|
+
if (false) {}
|
|
38333
|
+
}
|
|
38334
|
+
} else {
|
|
38335
|
+
customValid = validator(validParams);
|
|
38336
|
+
}
|
|
38082
38337
|
if (customValid) {
|
|
38083
38338
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isError(customValid)) {
|
|
38084
38339
|
errorRules.push(new form_Rule({
|
|
@@ -39413,6 +39668,10 @@ var Pulldown = Object.assign(pulldown, {
|
|
|
39413
39668
|
;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.js
|
|
39414
39669
|
/* harmony default export */ const zh_CN = ({
|
|
39415
39670
|
vxe: {
|
|
39671
|
+
base: {
|
|
39672
|
+
pleaseInput: '请输入',
|
|
39673
|
+
pleaseSelect: '请选择'
|
|
39674
|
+
},
|
|
39416
39675
|
loading: {
|
|
39417
39676
|
text: '加载中...'
|
|
39418
39677
|
},
|
|
@@ -39432,6 +39691,10 @@ var Pulldown = Object.assign(pulldown, {
|
|
|
39432
39691
|
errProp: '不支持的参数 "{0}",可能为 "{1}"',
|
|
39433
39692
|
colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
|
|
39434
39693
|
notFunc: '方法 "{0}" 不存在',
|
|
39694
|
+
errFunc: '参数 "{0}" 不是一个方法',
|
|
39695
|
+
notValidators: '全局校验 "{0}" 不存在',
|
|
39696
|
+
notFormats: '全局格式化 "{0}" 不存在',
|
|
39697
|
+
notCommands: '全局指令 "{0}" 不存在',
|
|
39435
39698
|
notSlot: '插槽 "{0}" 不存在',
|
|
39436
39699
|
noTree: '树结构不支持 "{0}"',
|
|
39437
39700
|
notProp: '不支持的参数 "{0}"',
|