@94ai/nf-popup-lazy-select 5.0.32 → 5.0.37

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.
@@ -2,8 +2,9 @@
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vueDemi = require("vue-demi");
4
4
  const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
5
- const Vue = require("vue");
5
+ const Locale = require("element-ui/lib/mixins/locale");
6
6
  const ResizeObserver = require("resize-observer-polyfill");
7
+ const Vue = require("vue");
7
8
  const commonUtils = require("@94ai/common-utils");
8
9
  function _mergeNamespaces(n, m) {
9
10
  for (var i = 0; i < m.length; i++) {
@@ -703,38 +704,74 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
703
704
  function getDefaultExportFromCjs(x) {
704
705
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
705
706
  }
706
- function getAugmentedNamespace(n) {
707
- if (n.__esModule)
708
- return n;
709
- var f = n.default;
710
- if (typeof f == "function") {
711
- var a = function a2() {
712
- if (this instanceof a2) {
713
- return Reflect.construct(f, arguments, this.constructor);
714
- }
715
- return f.apply(this, arguments);
716
- };
717
- a.prototype = f.prototype;
718
- } else
719
- a = {};
720
- Object.defineProperty(a, "__esModule", {
721
- value: true
722
- });
723
- Object.keys(n).forEach(function(k) {
724
- var d = Object.getOwnPropertyDescriptor(n, k);
725
- Object.defineProperty(a, k, d.get ? d : {
726
- enumerable: true,
727
- get: function() {
728
- return n[k];
729
- }
730
- });
731
- });
732
- return a;
733
- }
734
- var locale = {};
735
- var zhCN = {};
736
- zhCN.__esModule = true;
737
- zhCN.default = {
707
+ var throttle$1 = function(delay, noTrailing, callback, debounceMode) {
708
+ var timeoutID;
709
+ var lastExec = 0;
710
+ if (typeof noTrailing !== "boolean") {
711
+ debounceMode = callback;
712
+ callback = noTrailing;
713
+ noTrailing = void 0;
714
+ }
715
+ function wrapper() {
716
+ var self2 = this;
717
+ var elapsed = Number(/* @__PURE__ */ new Date()) - lastExec;
718
+ var args = arguments;
719
+ function exec() {
720
+ lastExec = Number(/* @__PURE__ */ new Date());
721
+ callback.apply(self2, args);
722
+ }
723
+ function clear() {
724
+ timeoutID = void 0;
725
+ }
726
+ if (debounceMode && !timeoutID) {
727
+ exec();
728
+ }
729
+ if (timeoutID) {
730
+ clearTimeout(timeoutID);
731
+ }
732
+ if (debounceMode === void 0 && elapsed > delay) {
733
+ exec();
734
+ } else if (noTrailing !== true) {
735
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === void 0 ? delay - elapsed : delay);
736
+ }
737
+ }
738
+ return wrapper;
739
+ };
740
+ var throttle = throttle$1;
741
+ var debounce = function(delay, atBegin, callback) {
742
+ return callback === void 0 ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
743
+ };
744
+ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce);
745
+ const isServer = typeof window === "undefined";
746
+ const resizeHandler = function(entries) {
747
+ for (let entry of entries) {
748
+ const listeners = entry.target.__resizeListeners__ || [];
749
+ if (listeners.length) {
750
+ listeners.forEach((fn) => {
751
+ fn();
752
+ });
753
+ }
754
+ }
755
+ };
756
+ const addResizeListener = function(element, fn) {
757
+ if (isServer)
758
+ return;
759
+ if (!element.__resizeListeners__) {
760
+ element.__resizeListeners__ = [];
761
+ element.__ro__ = new ResizeObserver(resizeHandler);
762
+ element.__ro__.observe(element);
763
+ }
764
+ element.__resizeListeners__.push(fn);
765
+ };
766
+ const removeResizeListener = function(element, fn) {
767
+ if (!element || !element.__resizeListeners__)
768
+ return;
769
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
770
+ if (!element.__resizeListeners__.length) {
771
+ element.__ro__.disconnect();
772
+ }
773
+ };
774
+ const defaultLang = {
738
775
  el: {
739
776
  colorpicker: {
740
777
  confirm: "确定",
@@ -930,568 +967,11 @@ deepmerge.all = function deepmergeAll(array, optionsArgument) {
930
967
  });
931
968
  };
932
969
  var deepmerge_1 = deepmerge;
933
- const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
934
- __proto__: null,
935
- default: deepmerge_1
936
- }, Symbol.toStringTag, { value: "Module" }));
937
- const require$$2 = /* @__PURE__ */ getAugmentedNamespace(es);
938
- var format$2 = {};
939
- var util = {};
940
- var types = {};
941
- types.__esModule = true;
942
- types.isString = isString;
943
- types.isObject = isObject;
944
- types.isHtmlElement = isHtmlElement;
945
- function isString(obj) {
946
- return Object.prototype.toString.call(obj) === "[object String]";
947
- }
948
- function isObject(obj) {
949
- return Object.prototype.toString.call(obj) === "[object Object]";
950
- }
951
- function isHtmlElement(node) {
952
- return node && node.nodeType === Node.ELEMENT_NODE;
953
- }
954
- types.isFunction = function isFunction(functionToCheck) {
955
- var getType = {};
956
- return functionToCheck && getType.toString.call(functionToCheck) === "[object Function]";
957
- };
958
- types.isUndefined = function isUndefined(val) {
959
- return val === void 0;
960
- };
961
- types.isDefined = function isDefined(val) {
962
- return val !== void 0 && val !== null;
963
- };
964
- util.__esModule = true;
965
- util.isEmpty = util.isEqual = util.arrayEquals = util.looseEqual = util.capitalize = util.kebabCase = util.autoprefixer = util.isFirefox = util.isEdge = util.isIE = util.coerceTruthyValueToArray = util.arrayFind = util.arrayFindIndex = util.escapeRegexpString = util.valueEquals = util.generateId = util.getValueByPath = void 0;
966
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
967
- return typeof obj;
968
- } : function(obj) {
969
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
970
- };
971
- util.noop = noop;
972
- util.hasOwn = hasOwn$1;
973
- util.toObject = toObject;
974
- util.getPropByPath = getPropByPath;
975
- util.rafThrottle = rafThrottle;
976
- util.objToArray = objToArray;
977
- var _vue$1 = Vue;
978
- var _vue2$1 = _interopRequireDefault$1(_vue$1);
979
- var _types = types;
980
- function _interopRequireDefault$1(obj) {
981
- return obj && obj.__esModule ? obj : {
982
- default: obj
983
- };
984
- }
985
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
986
- function noop() {
987
- }
988
- function hasOwn$1(obj, key) {
989
- return hasOwnProperty$1.call(obj, key);
990
- }
991
- function extend(to, _from) {
992
- for (var key in _from) {
993
- to[key] = _from[key];
994
- }
995
- return to;
996
- }
997
- function toObject(arr) {
998
- var res = {};
999
- for (var i = 0; i < arr.length; i++) {
1000
- if (arr[i]) {
1001
- extend(res, arr[i]);
1002
- }
1003
- }
1004
- return res;
1005
- }
1006
- util.getValueByPath = function getValueByPath(object, prop) {
1007
- prop = prop || "";
1008
- var paths = prop.split(".");
1009
- var current = object;
1010
- var result = null;
1011
- for (var i = 0, j = paths.length; i < j; i++) {
1012
- var path = paths[i];
1013
- if (!current)
1014
- break;
1015
- if (i === j - 1) {
1016
- result = current[path];
1017
- break;
1018
- }
1019
- current = current[path];
1020
- }
1021
- return result;
1022
- };
1023
- function getPropByPath(obj, path, strict) {
1024
- var tempObj = obj;
1025
- path = path.replace(/\[(\w+)\]/g, ".$1");
1026
- path = path.replace(/^\./, "");
1027
- var keyArr = path.split(".");
1028
- var i = 0;
1029
- for (var len = keyArr.length; i < len - 1; ++i) {
1030
- if (!tempObj && !strict)
1031
- break;
1032
- var key = keyArr[i];
1033
- if (key in tempObj) {
1034
- tempObj = tempObj[key];
1035
- } else {
1036
- if (strict) {
1037
- throw new Error("please transfer a valid prop path to form item!");
1038
- }
1039
- break;
1040
- }
1041
- }
1042
- return {
1043
- o: tempObj,
1044
- k: keyArr[i],
1045
- v: tempObj ? tempObj[keyArr[i]] : null
1046
- };
1047
- }
1048
- util.generateId = function generateId() {
1049
- return Math.floor(Math.random() * 1e4);
1050
- };
1051
- util.valueEquals = function valueEquals(a, b) {
1052
- if (a === b)
1053
- return true;
1054
- if (!(a instanceof Array))
1055
- return false;
1056
- if (!(b instanceof Array))
1057
- return false;
1058
- if (a.length !== b.length)
1059
- return false;
1060
- for (var i = 0; i !== a.length; ++i) {
1061
- if (a[i] !== b[i])
1062
- return false;
1063
- }
1064
- return true;
1065
- };
1066
- util.escapeRegexpString = function escapeRegexpString() {
1067
- var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1068
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
1069
- };
1070
- var arrayFindIndex = util.arrayFindIndex = function arrayFindIndex2(arr, pred) {
1071
- for (var i = 0; i !== arr.length; ++i) {
1072
- if (pred(arr[i])) {
1073
- return i;
1074
- }
1075
- }
1076
- return -1;
1077
- };
1078
- util.arrayFind = function arrayFind(arr, pred) {
1079
- var idx = arrayFindIndex(arr, pred);
1080
- return idx !== -1 ? arr[idx] : void 0;
1081
- };
1082
- util.coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
1083
- if (Array.isArray(val)) {
1084
- return val;
1085
- } else if (val) {
1086
- return [val];
1087
- } else {
1088
- return [];
1089
- }
1090
- };
1091
- util.isIE = function isIE() {
1092
- return !_vue2$1.default.prototype.$isServer && !isNaN(Number(document.documentMode));
1093
- };
1094
- util.isEdge = function isEdge() {
1095
- return !_vue2$1.default.prototype.$isServer && navigator.userAgent.indexOf("Edge") > -1;
1096
- };
1097
- util.isFirefox = function isFirefox() {
1098
- return !_vue2$1.default.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
1099
- };
1100
- util.autoprefixer = function autoprefixer(style) {
1101
- if ((typeof style === "undefined" ? "undefined" : _typeof$1(style)) !== "object")
1102
- return style;
1103
- var rules = ["transform", "transition", "animation"];
1104
- var prefixes = ["ms-", "webkit-"];
1105
- rules.forEach(function(rule) {
1106
- var value = style[rule];
1107
- if (rule && value) {
1108
- prefixes.forEach(function(prefix) {
1109
- style[prefix + rule] = value;
1110
- });
1111
- }
1112
- });
1113
- return style;
1114
- };
1115
- util.kebabCase = function kebabCase(str) {
1116
- var hyphenateRE = /([^-])([A-Z])/g;
1117
- return str.replace(hyphenateRE, "$1-$2").replace(hyphenateRE, "$1-$2").toLowerCase();
1118
- };
1119
- util.capitalize = function capitalize(str) {
1120
- if (!(0, _types.isString)(str))
1121
- return str;
1122
- return str.charAt(0).toUpperCase() + str.slice(1);
1123
- };
1124
- var looseEqual = util.looseEqual = function looseEqual2(a, b) {
1125
- var isObjectA = (0, _types.isObject)(a);
1126
- var isObjectB = (0, _types.isObject)(b);
1127
- if (isObjectA && isObjectB) {
1128
- return JSON.stringify(a) === JSON.stringify(b);
1129
- } else if (!isObjectA && !isObjectB) {
1130
- return String(a) === String(b);
1131
- } else {
1132
- return false;
1133
- }
1134
- };
1135
- var arrayEquals = util.arrayEquals = function arrayEquals2(arrayA, arrayB) {
1136
- arrayA = arrayA || [];
1137
- arrayB = arrayB || [];
1138
- if (arrayA.length !== arrayB.length) {
1139
- return false;
1140
- }
1141
- for (var i = 0; i < arrayA.length; i++) {
1142
- if (!looseEqual(arrayA[i], arrayB[i])) {
1143
- return false;
1144
- }
1145
- }
1146
- return true;
1147
- };
1148
- util.isEqual = function isEqual(value1, value2) {
1149
- if (Array.isArray(value1) && Array.isArray(value2)) {
1150
- return arrayEquals(value1, value2);
1151
- }
1152
- return looseEqual(value1, value2);
1153
- };
1154
- var isEmpty = util.isEmpty = function isEmpty2(val) {
1155
- if (val == null)
1156
- return true;
1157
- if (typeof val === "boolean")
1158
- return false;
1159
- if (typeof val === "number")
1160
- return !val;
1161
- if (val instanceof Error)
1162
- return val.message === "";
1163
- switch (Object.prototype.toString.call(val)) {
1164
- case "[object String]":
1165
- case "[object Array]":
1166
- return !val.length;
1167
- case "[object File]":
1168
- case "[object Map]":
1169
- case "[object Set]": {
1170
- return !val.size;
1171
- }
1172
- case "[object Object]": {
1173
- return !Object.keys(val).length;
1174
- }
1175
- }
1176
- return false;
1177
- };
1178
- function rafThrottle(fn) {
1179
- var locked = false;
1180
- return function() {
1181
- var _this = this;
1182
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1183
- args[_key] = arguments[_key];
1184
- }
1185
- if (locked)
1186
- return;
1187
- locked = true;
1188
- window.requestAnimationFrame(function(_) {
1189
- fn.apply(_this, args);
1190
- locked = false;
1191
- });
1192
- };
1193
- }
1194
- function objToArray(obj) {
1195
- if (Array.isArray(obj)) {
1196
- return obj;
1197
- }
1198
- return isEmpty(obj) ? [] : [obj];
1199
- }
1200
- format$2.__esModule = true;
1201
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
1202
- return typeof obj;
1203
- } : function(obj) {
1204
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1205
- };
1206
- format$2.default = function(Vue2) {
1207
- function template(string) {
1208
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1209
- args[_key - 1] = arguments[_key];
1210
- }
1211
- if (args.length === 1 && _typeof(args[0]) === "object") {
1212
- args = args[0];
1213
- }
1214
- if (!args || !args.hasOwnProperty) {
1215
- args = {};
1216
- }
1217
- return string.replace(RE_NARGS$1, function(match, prefix, i, index) {
1218
- var result = void 0;
1219
- if (string[index - 1] === "{" && string[index + match.length] === "}") {
1220
- return i;
1221
- } else {
1222
- result = (0, _util.hasOwn)(args, i) ? args[i] : null;
1223
- if (result === null || result === void 0) {
1224
- return "";
1225
- }
1226
- return result;
1227
- }
1228
- });
1229
- }
1230
- return template;
1231
- };
1232
- var _util = util;
1233
- var RE_NARGS$1 = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1234
- locale.__esModule = true;
1235
- locale.i18n = locale.use = locale.t = void 0;
1236
- var _zhCN = zhCN;
1237
- var _zhCN2 = _interopRequireDefault(_zhCN);
1238
- var _vue = Vue;
1239
- var _vue2 = _interopRequireDefault(_vue);
1240
- var _deepmerge = require$$2;
1241
- var _deepmerge2 = _interopRequireDefault(_deepmerge);
1242
- var _format = format$2;
1243
- var _format2 = _interopRequireDefault(_format);
1244
- function _interopRequireDefault(obj) {
1245
- return obj && obj.__esModule ? obj : {
1246
- default: obj
1247
- };
1248
- }
1249
- var format$1 = (0, _format2.default)(_vue2.default);
1250
- var lang$1 = _zhCN2.default;
1251
- var merged$1 = false;
1252
- var i18nHandler$1 = function i18nHandler() {
1253
- var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;
1254
- if (typeof vuei18n === "function" && !!_vue2.default.locale) {
1255
- if (!merged$1) {
1256
- merged$1 = true;
1257
- _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang$1, _vue2.default.locale(_vue2.default.config.lang) || {}, {
1258
- clone: true
1259
- }));
1260
- }
1261
- return vuei18n.apply(this, arguments);
1262
- }
1263
- };
1264
- var t$1 = locale.t = function t(path, options) {
1265
- var value = i18nHandler$1.apply(this, arguments);
1266
- if (value !== null && value !== void 0)
1267
- return value;
1268
- var array = path.split(".");
1269
- var current = lang$1;
1270
- for (var i = 0, j = array.length; i < j; i++) {
1271
- var property = array[i];
1272
- value = current[property];
1273
- if (i === j - 1)
1274
- return format$1(value, options);
1275
- if (!value)
1276
- return "";
1277
- current = value;
1278
- }
1279
- return "";
1280
- };
1281
- var use = locale.use = function use2(l) {
1282
- lang$1 = l || lang$1;
1283
- };
1284
- var i18n = locale.i18n = function i18n2(fn) {
1285
- i18nHandler$1 = fn || i18nHandler$1;
1286
- };
1287
- locale.default = {
1288
- use,
1289
- t: t$1,
1290
- i18n
1291
- };
1292
- var _locale = locale;
1293
- var _default = {
1294
- methods: {
1295
- t: function t2() {
1296
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1297
- args[_key] = arguments[_key];
1298
- }
1299
- return _locale.t.apply(this, args);
1300
- }
1301
- }
1302
- };
1303
- var throttle$1 = function(delay, noTrailing, callback, debounceMode) {
1304
- var timeoutID;
1305
- var lastExec = 0;
1306
- if (typeof noTrailing !== "boolean") {
1307
- debounceMode = callback;
1308
- callback = noTrailing;
1309
- noTrailing = void 0;
1310
- }
1311
- function wrapper() {
1312
- var self2 = this;
1313
- var elapsed = Number(/* @__PURE__ */ new Date()) - lastExec;
1314
- var args = arguments;
1315
- function exec() {
1316
- lastExec = Number(/* @__PURE__ */ new Date());
1317
- callback.apply(self2, args);
1318
- }
1319
- function clear() {
1320
- timeoutID = void 0;
1321
- }
1322
- if (debounceMode && !timeoutID) {
1323
- exec();
1324
- }
1325
- if (timeoutID) {
1326
- clearTimeout(timeoutID);
1327
- }
1328
- if (debounceMode === void 0 && elapsed > delay) {
1329
- exec();
1330
- } else if (noTrailing !== true) {
1331
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === void 0 ? delay - elapsed : delay);
1332
- }
1333
- }
1334
- return wrapper;
1335
- };
1336
- var throttle = throttle$1;
1337
- var debounce = function(delay, atBegin, callback) {
1338
- return callback === void 0 ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
1339
- };
1340
- const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce);
1341
- const isServer = typeof window === "undefined";
1342
- const resizeHandler = function(entries) {
1343
- for (let entry of entries) {
1344
- const listeners = entry.target.__resizeListeners__ || [];
1345
- if (listeners.length) {
1346
- listeners.forEach((fn) => {
1347
- fn();
1348
- });
1349
- }
1350
- }
1351
- };
1352
- const addResizeListener = function(element, fn) {
1353
- if (isServer)
1354
- return;
1355
- if (!element.__resizeListeners__) {
1356
- element.__resizeListeners__ = [];
1357
- element.__ro__ = new ResizeObserver(resizeHandler);
1358
- element.__ro__.observe(element);
1359
- }
1360
- element.__resizeListeners__.push(fn);
1361
- };
1362
- const removeResizeListener = function(element, fn) {
1363
- if (!element || !element.__resizeListeners__)
1364
- return;
1365
- element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
1366
- if (!element.__resizeListeners__.length) {
1367
- element.__ro__.disconnect();
1368
- }
1369
- };
1370
- const defaultLang = {
1371
- el: {
1372
- colorpicker: {
1373
- confirm: "确定",
1374
- clear: "清空"
1375
- },
1376
- datepicker: {
1377
- now: "此刻",
1378
- today: "今天",
1379
- cancel: "取消",
1380
- clear: "清空",
1381
- confirm: "确定",
1382
- selectDate: "选择日期",
1383
- selectTime: "选择时间",
1384
- startDate: "开始日期",
1385
- startTime: "开始时间",
1386
- endDate: "结束日期",
1387
- endTime: "结束时间",
1388
- prevYear: "前一年",
1389
- nextYear: "后一年",
1390
- prevMonth: "上个月",
1391
- nextMonth: "下个月",
1392
- year: "年",
1393
- month1: "1 月",
1394
- month2: "2 月",
1395
- month3: "3 月",
1396
- month4: "4 月",
1397
- month5: "5 月",
1398
- month6: "6 月",
1399
- month7: "7 月",
1400
- month8: "8 月",
1401
- month9: "9 月",
1402
- month10: "10 月",
1403
- month11: "11 月",
1404
- month12: "12 月",
1405
- // week: '周次',
1406
- weeks: {
1407
- sun: "日",
1408
- mon: "一",
1409
- tue: "二",
1410
- wed: "三",
1411
- thu: "四",
1412
- fri: "五",
1413
- sat: "六"
1414
- },
1415
- months: {
1416
- jan: "一月",
1417
- feb: "二月",
1418
- mar: "三月",
1419
- apr: "四月",
1420
- may: "五月",
1421
- jun: "六月",
1422
- jul: "七月",
1423
- aug: "八月",
1424
- sep: "九月",
1425
- oct: "十月",
1426
- nov: "十一月",
1427
- dec: "十二月"
1428
- }
1429
- },
1430
- select: {
1431
- loading: "加载中",
1432
- noMatch: "无匹配数据",
1433
- noData: "无数据",
1434
- placeholder: "请选择"
1435
- },
1436
- cascader: {
1437
- noMatch: "无匹配数据",
1438
- loading: "加载中",
1439
- placeholder: "请选择",
1440
- noData: "暂无数据"
1441
- },
1442
- pagination: {
1443
- goto: "前往",
1444
- pagesize: "条/页",
1445
- total: "共 {total} 条",
1446
- pageClassifier: "页"
1447
- },
1448
- messagebox: {
1449
- title: "提示",
1450
- confirm: "确定",
1451
- cancel: "取消",
1452
- error: "输入的数据不合法!"
1453
- },
1454
- upload: {
1455
- deleteTip: "按 delete 键可删除",
1456
- delete: "删除",
1457
- preview: "查看图片",
1458
- continue: "继续上传"
1459
- },
1460
- table: {
1461
- emptyText: "暂无数据",
1462
- confirmFilter: "筛选",
1463
- resetFilter: "重置",
1464
- clearFilter: "全部",
1465
- sumText: "合计"
1466
- },
1467
- tree: {
1468
- emptyText: "暂无数据"
1469
- },
1470
- transfer: {
1471
- noMatch: "无匹配数据",
1472
- noData: "无数据",
1473
- titles: ["列表 1", "列表 2"],
1474
- filterPlaceholder: "请输入搜索内容",
1475
- noCheckedFormat: "共 {total} 项",
1476
- hasCheckedFormat: "已选 {checked}/{total} 项"
1477
- },
1478
- image: {
1479
- error: "加载失败"
1480
- },
1481
- pageHeader: {
1482
- title: "返回"
1483
- },
1484
- popconfirm: {
1485
- confirmButtonText: "确定",
1486
- cancelButtonText: "取消"
1487
- }
1488
- }
1489
- };
1490
970
  const hasOwnProperty = Object.prototype.hasOwnProperty;
1491
971
  function hasOwn(obj, key) {
1492
972
  return hasOwnProperty.call(obj, key);
1493
973
  }
1494
- const getValueByPath2 = function(object, prop) {
974
+ const getValueByPath = function(object, prop) {
1495
975
  prop = prop || "";
1496
976
  const paths = prop.split(".");
1497
977
  let current = object;
@@ -1508,7 +988,7 @@ const getValueByPath2 = function(object, prop) {
1508
988
  }
1509
989
  return result;
1510
990
  };
1511
- const valueEquals2 = (a, b) => {
991
+ const valueEquals = (a, b) => {
1512
992
  if (a === b)
1513
993
  return true;
1514
994
  if (!(a instanceof Array))
@@ -1523,10 +1003,10 @@ const valueEquals2 = (a, b) => {
1523
1003
  }
1524
1004
  return true;
1525
1005
  };
1526
- const isIE2 = function() {
1006
+ const isIE = function() {
1527
1007
  return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));
1528
1008
  };
1529
- const isEdge2 = function() {
1009
+ const isEdge = function() {
1530
1010
  return !Vue.prototype.$isServer && navigator.userAgent.indexOf("Edge") > -1;
1531
1011
  };
1532
1012
  const RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
@@ -1556,7 +1036,7 @@ function Format(Vue2) {
1556
1036
  const format = Format();
1557
1037
  let lang = defaultLang;
1558
1038
  let merged = false;
1559
- let i18nHandler2 = function() {
1039
+ let i18nHandler = function() {
1560
1040
  const vuei18n = Object.getPrototypeOf(this || Vue).$t;
1561
1041
  if (typeof vuei18n === "function" && !!Vue.locale) {
1562
1042
  if (!merged) {
@@ -1568,8 +1048,8 @@ let i18nHandler2 = function() {
1568
1048
  return vuei18n.apply(this, arguments);
1569
1049
  }
1570
1050
  };
1571
- const t3 = function(path, options) {
1572
- let value = i18nHandler2.apply(this, arguments);
1051
+ const t = function(path, options) {
1052
+ let value = i18nHandler.apply(this, arguments);
1573
1053
  if (value !== null && value !== void 0)
1574
1054
  return value;
1575
1055
  const array = path.split(".");
@@ -2170,7 +1650,7 @@ var popper$1 = { exports: {} };
2170
1650
  modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
2171
1651
  }
2172
1652
  modifiersToRun.forEach((function(modifier) {
2173
- if (isFunction2(modifier)) {
1653
+ if (isFunction(modifier)) {
2174
1654
  data = modifier.call(this, data);
2175
1655
  }
2176
1656
  }).bind(this));
@@ -2482,7 +1962,7 @@ var popper$1 = { exports: {} };
2482
1962
  element.style[prop] = styles[prop] + unit;
2483
1963
  });
2484
1964
  }
2485
- function isFunction2(functionToCheck) {
1965
+ function isFunction(functionToCheck) {
2486
1966
  var getType = {};
2487
1967
  return functionToCheck && getType.toString.call(functionToCheck) === "[object Function]";
2488
1968
  }
@@ -2499,8 +1979,8 @@ var popper$1 = { exports: {} };
2499
1979
  }
2500
1980
  function getBoundingClientRect(element) {
2501
1981
  var rect = element.getBoundingClientRect();
2502
- var isIE3 = navigator.userAgent.indexOf("MSIE") != -1;
2503
- var rectTop = isIE3 && element.tagName === "HTML" ? -element.scrollTop : rect.top;
1982
+ var isIE2 = navigator.userAgent.indexOf("MSIE") != -1;
1983
+ var rectTop = isIE2 && element.tagName === "HTML" ? -element.scrollTop : rect.top;
2504
1984
  return {
2505
1985
  left: rect.left,
2506
1986
  top: rectTop,
@@ -2813,7 +2293,7 @@ var _sfc_staticRenderFns$1 = [];
2813
2293
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
2814
2294
  const SelectMenu = __component__$1.exports;
2815
2295
  const _sfc_main = {
2816
- mixins: [Emitter, _default, Focus("reference"), NavigationMixin],
2296
+ mixins: [Emitter, Locale, Focus("reference"), NavigationMixin],
2817
2297
  name: "ElSelect",
2818
2298
  componentName: "ElSelect",
2819
2299
  inject: {
@@ -2834,7 +2314,7 @@ const _sfc_main = {
2834
2314
  return (this.elFormItem || {}).elFormItemSize;
2835
2315
  },
2836
2316
  readonly() {
2837
- return !this.filterable || this.multiple || !isIE2() && !isEdge2() && !this.visible;
2317
+ return !this.filterable || this.multiple || !isIE() && !isEdge() && !this.visible;
2838
2318
  },
2839
2319
  showClose() {
2840
2320
  let hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== void 0 && this.value !== null && this.value !== "";
@@ -2924,7 +2404,7 @@ const _sfc_main = {
2924
2404
  placeholder: {
2925
2405
  type: String,
2926
2406
  default() {
2927
- return t3("el.select.placeholder");
2407
+ return t("el.select.placeholder");
2928
2408
  }
2929
2409
  },
2930
2410
  defaultFirstOption: Boolean,
@@ -2990,7 +2470,7 @@ const _sfc_main = {
2990
2470
  if (this.filterable && !this.multiple) {
2991
2471
  this.inputLength = 20;
2992
2472
  }
2993
- if (!valueEquals2(val, oldVal)) {
2473
+ if (!valueEquals(val, oldVal)) {
2994
2474
  this.dispatch("ElFormItem", "el.form.change", val);
2995
2475
  }
2996
2476
  },
@@ -3128,26 +2608,26 @@ const _sfc_main = {
3128
2608
  this.$nextTick(() => this.scrollToOption(this.selected));
3129
2609
  },
3130
2610
  emitChange(val) {
3131
- if (!valueEquals2(this.value, val)) {
2611
+ if (!valueEquals(this.value, val)) {
3132
2612
  this.$emit("change", val);
3133
2613
  }
3134
2614
  },
3135
2615
  getOption(value) {
3136
2616
  let option;
3137
- const isObject2 = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
2617
+ const isObject = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
3138
2618
  const isNull = Object.prototype.toString.call(value).toLowerCase() === "[object null]";
3139
- const isUndefined2 = Object.prototype.toString.call(value).toLowerCase() === "[object undefined]";
2619
+ const isUndefined = Object.prototype.toString.call(value).toLowerCase() === "[object undefined]";
3140
2620
  for (let i = this.cachedOptions.length - 1; i >= 0; i--) {
3141
2621
  const cachedOption = this.cachedOptions[i];
3142
- const isEqual2 = isObject2 ? getValueByPath2(cachedOption.value, this.valueKey) === getValueByPath2(value, this.valueKey) : cachedOption.value === value;
3143
- if (isEqual2) {
2622
+ const isEqual = isObject ? getValueByPath(cachedOption.value, this.valueKey) === getValueByPath(value, this.valueKey) : cachedOption.value === value;
2623
+ if (isEqual) {
3144
2624
  option = cachedOption;
3145
2625
  break;
3146
2626
  }
3147
2627
  }
3148
2628
  if (option)
3149
2629
  return option;
3150
- const label = !isObject2 && !isNull && !isUndefined2 ? value : "";
2630
+ const label = !isObject && !isNull && !isUndefined ? value : "";
3151
2631
  let newOption = {
3152
2632
  value,
3153
2633
  currentLabel: label
@@ -3323,14 +2803,14 @@ const _sfc_main = {
3323
2803
  }
3324
2804
  },
3325
2805
  getValueIndex(arr = [], value) {
3326
- const isObject2 = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
3327
- if (!isObject2) {
2806
+ const isObject = Object.prototype.toString.call(value).toLowerCase() === "[object object]";
2807
+ if (!isObject) {
3328
2808
  return arr.indexOf(value);
3329
2809
  } else {
3330
2810
  const valueKey = this.valueKey;
3331
2811
  let index = -1;
3332
2812
  arr.some((item, i) => {
3333
- if (getValueByPath2(item, valueKey) === getValueByPath2(value, valueKey)) {
2813
+ if (getValueByPath(item, valueKey) === getValueByPath(value, valueKey)) {
3334
2814
  index = i;
3335
2815
  return true;
3336
2816
  }
@@ -3423,7 +2903,7 @@ const _sfc_main = {
3423
2903
  if (Object.prototype.toString.call(item.value).toLowerCase() !== "[object object]") {
3424
2904
  return item.value;
3425
2905
  } else {
3426
- return getValueByPath2(item.value, this.valueKey);
2906
+ return getValueByPath(item.value, this.valueKey);
3427
2907
  }
3428
2908
  }
3429
2909
  },