@tmagic/form 1.5.12 → 1.5.13
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/dist/tmagic-form.js +24 -20
- package/dist/tmagic-form.umd.cjs +63 -289
- package/package.json +3 -3
- package/src/containers/Table.vue +2 -0
- package/types/index.d.ts +1372 -3037
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
var Symbol$1 = root.Symbol;
|
|
18
18
|
|
|
19
19
|
/** Used for built-in method references. */
|
|
20
|
-
var objectProto$
|
|
20
|
+
var objectProto$e = Object.prototype;
|
|
21
21
|
|
|
22
22
|
/** Used to check objects for own properties. */
|
|
23
|
-
var hasOwnProperty$
|
|
23
|
+
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Used to resolve the
|
|
27
27
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
28
28
|
* of values.
|
|
29
29
|
*/
|
|
30
|
-
var nativeObjectToString$1 = objectProto$
|
|
30
|
+
var nativeObjectToString$1 = objectProto$e.toString;
|
|
31
31
|
|
|
32
32
|
/** Built-in value references. */
|
|
33
33
|
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* @returns {string} Returns the raw `toStringTag`.
|
|
41
41
|
*/
|
|
42
42
|
function getRawTag(value) {
|
|
43
|
-
var isOwn = hasOwnProperty$
|
|
43
|
+
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1),
|
|
44
44
|
tag = value[symToStringTag$1];
|
|
45
45
|
|
|
46
46
|
try {
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/** Used for built-in method references. */
|
|
63
|
-
var objectProto$
|
|
63
|
+
var objectProto$d = Object.prototype;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Used to resolve the
|
|
67
67
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
68
68
|
* of values.
|
|
69
69
|
*/
|
|
70
|
-
var nativeObjectToString = objectProto$
|
|
70
|
+
var nativeObjectToString = objectProto$d.toString;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -393,17 +393,17 @@
|
|
|
393
393
|
|
|
394
394
|
/** Used for built-in method references. */
|
|
395
395
|
var funcProto = Function.prototype,
|
|
396
|
-
objectProto$
|
|
396
|
+
objectProto$c = Object.prototype;
|
|
397
397
|
|
|
398
398
|
/** Used to resolve the decompiled source of functions. */
|
|
399
399
|
var funcToString = funcProto.toString;
|
|
400
400
|
|
|
401
401
|
/** Used to check objects for own properties. */
|
|
402
|
-
var hasOwnProperty$
|
|
402
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
403
403
|
|
|
404
404
|
/** Used to detect if a method is native. */
|
|
405
405
|
var reIsNative = RegExp('^' +
|
|
406
|
-
funcToString.call(hasOwnProperty$
|
|
406
|
+
funcToString.call(hasOwnProperty$a).replace(reRegExpChar, '\\$&')
|
|
407
407
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
408
408
|
);
|
|
409
409
|
|
|
@@ -478,25 +478,6 @@
|
|
|
478
478
|
};
|
|
479
479
|
}());
|
|
480
480
|
|
|
481
|
-
/**
|
|
482
|
-
* Copies the values of `source` to `array`.
|
|
483
|
-
*
|
|
484
|
-
* @private
|
|
485
|
-
* @param {Array} source The array to copy values from.
|
|
486
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
487
|
-
* @returns {Array} Returns `array`.
|
|
488
|
-
*/
|
|
489
|
-
function copyArray(source, array) {
|
|
490
|
-
var index = -1,
|
|
491
|
-
length = source.length;
|
|
492
|
-
|
|
493
|
-
array || (array = Array(length));
|
|
494
|
-
while (++index < length) {
|
|
495
|
-
array[index] = source[index];
|
|
496
|
-
}
|
|
497
|
-
return array;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
481
|
var defineProperty = (function() {
|
|
501
482
|
try {
|
|
502
483
|
var func = getNative(Object, 'defineProperty');
|
|
@@ -609,10 +590,10 @@
|
|
|
609
590
|
}
|
|
610
591
|
|
|
611
592
|
/** Used for built-in method references. */
|
|
612
|
-
var objectProto$
|
|
593
|
+
var objectProto$b = Object.prototype;
|
|
613
594
|
|
|
614
595
|
/** Used to check objects for own properties. */
|
|
615
|
-
var hasOwnProperty$
|
|
596
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
616
597
|
|
|
617
598
|
/**
|
|
618
599
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
@@ -626,46 +607,12 @@
|
|
|
626
607
|
*/
|
|
627
608
|
function assignValue(object, key, value) {
|
|
628
609
|
var objValue = object[key];
|
|
629
|
-
if (!(hasOwnProperty$
|
|
610
|
+
if (!(hasOwnProperty$9.call(object, key) && eq(objValue, value)) ||
|
|
630
611
|
(value === undefined && !(key in object))) {
|
|
631
612
|
baseAssignValue(object, key, value);
|
|
632
613
|
}
|
|
633
614
|
}
|
|
634
615
|
|
|
635
|
-
/**
|
|
636
|
-
* Copies properties of `source` to `object`.
|
|
637
|
-
*
|
|
638
|
-
* @private
|
|
639
|
-
* @param {Object} source The object to copy properties from.
|
|
640
|
-
* @param {Array} props The property identifiers to copy.
|
|
641
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
642
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
643
|
-
* @returns {Object} Returns `object`.
|
|
644
|
-
*/
|
|
645
|
-
function copyObject(source, props, object, customizer) {
|
|
646
|
-
var isNew = !object;
|
|
647
|
-
object || (object = {});
|
|
648
|
-
|
|
649
|
-
var index = -1,
|
|
650
|
-
length = props.length;
|
|
651
|
-
|
|
652
|
-
while (++index < length) {
|
|
653
|
-
var key = props[index];
|
|
654
|
-
|
|
655
|
-
var newValue = undefined;
|
|
656
|
-
|
|
657
|
-
if (newValue === undefined) {
|
|
658
|
-
newValue = source[key];
|
|
659
|
-
}
|
|
660
|
-
if (isNew) {
|
|
661
|
-
baseAssignValue(object, key, newValue);
|
|
662
|
-
} else {
|
|
663
|
-
assignValue(object, key, newValue);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
return object;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
616
|
/** Used as references for various `Number` constants. */
|
|
670
617
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
671
618
|
|
|
@@ -730,7 +677,7 @@
|
|
|
730
677
|
}
|
|
731
678
|
|
|
732
679
|
/** Used for built-in method references. */
|
|
733
|
-
var objectProto$
|
|
680
|
+
var objectProto$a = Object.prototype;
|
|
734
681
|
|
|
735
682
|
/**
|
|
736
683
|
* Checks if `value` is likely a prototype object.
|
|
@@ -741,7 +688,7 @@
|
|
|
741
688
|
*/
|
|
742
689
|
function isPrototype(value) {
|
|
743
690
|
var Ctor = value && value.constructor,
|
|
744
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
691
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$a;
|
|
745
692
|
|
|
746
693
|
return value === proto;
|
|
747
694
|
}
|
|
@@ -780,13 +727,13 @@
|
|
|
780
727
|
}
|
|
781
728
|
|
|
782
729
|
/** Used for built-in method references. */
|
|
783
|
-
var objectProto$
|
|
730
|
+
var objectProto$9 = Object.prototype;
|
|
784
731
|
|
|
785
732
|
/** Used to check objects for own properties. */
|
|
786
|
-
var hasOwnProperty$
|
|
733
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
787
734
|
|
|
788
735
|
/** Built-in value references. */
|
|
789
|
-
var propertyIsEnumerable$1 = objectProto$
|
|
736
|
+
var propertyIsEnumerable$1 = objectProto$9.propertyIsEnumerable;
|
|
790
737
|
|
|
791
738
|
/**
|
|
792
739
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -807,7 +754,7 @@
|
|
|
807
754
|
* // => false
|
|
808
755
|
*/
|
|
809
756
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
810
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
757
|
+
return isObjectLike(value) && hasOwnProperty$8.call(value, 'callee') &&
|
|
811
758
|
!propertyIsEnumerable$1.call(value, 'callee');
|
|
812
759
|
};
|
|
813
760
|
|
|
@@ -980,10 +927,10 @@
|
|
|
980
927
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
981
928
|
|
|
982
929
|
/** Used for built-in method references. */
|
|
983
|
-
var objectProto$
|
|
930
|
+
var objectProto$8 = Object.prototype;
|
|
984
931
|
|
|
985
932
|
/** Used to check objects for own properties. */
|
|
986
|
-
var hasOwnProperty$
|
|
933
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
987
934
|
|
|
988
935
|
/**
|
|
989
936
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -1003,7 +950,7 @@
|
|
|
1003
950
|
length = result.length;
|
|
1004
951
|
|
|
1005
952
|
for (var key in value) {
|
|
1006
|
-
if ((
|
|
953
|
+
if ((hasOwnProperty$7.call(value, key)) &&
|
|
1007
954
|
!(skipIndexes && (
|
|
1008
955
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1009
956
|
key == 'length' ||
|
|
@@ -1038,10 +985,10 @@
|
|
|
1038
985
|
var nativeKeys = overArg(Object.keys, Object);
|
|
1039
986
|
|
|
1040
987
|
/** Used for built-in method references. */
|
|
1041
|
-
var objectProto$
|
|
988
|
+
var objectProto$7 = Object.prototype;
|
|
1042
989
|
|
|
1043
990
|
/** Used to check objects for own properties. */
|
|
1044
|
-
var hasOwnProperty$
|
|
991
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
1045
992
|
|
|
1046
993
|
/**
|
|
1047
994
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -1056,7 +1003,7 @@
|
|
|
1056
1003
|
}
|
|
1057
1004
|
var result = [];
|
|
1058
1005
|
for (var key in Object(object)) {
|
|
1059
|
-
if (hasOwnProperty$
|
|
1006
|
+
if (hasOwnProperty$6.call(object, key) && key != 'constructor') {
|
|
1060
1007
|
result.push(key);
|
|
1061
1008
|
}
|
|
1062
1009
|
}
|
|
@@ -1095,80 +1042,6 @@
|
|
|
1095
1042
|
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1096
1043
|
}
|
|
1097
1044
|
|
|
1098
|
-
/**
|
|
1099
|
-
* This function is like
|
|
1100
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1101
|
-
* except that it includes inherited enumerable properties.
|
|
1102
|
-
*
|
|
1103
|
-
* @private
|
|
1104
|
-
* @param {Object} object The object to query.
|
|
1105
|
-
* @returns {Array} Returns the array of property names.
|
|
1106
|
-
*/
|
|
1107
|
-
function nativeKeysIn(object) {
|
|
1108
|
-
var result = [];
|
|
1109
|
-
if (object != null) {
|
|
1110
|
-
for (var key in Object(object)) {
|
|
1111
|
-
result.push(key);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
return result;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
/** Used for built-in method references. */
|
|
1118
|
-
var objectProto$7 = Object.prototype;
|
|
1119
|
-
|
|
1120
|
-
/** Used to check objects for own properties. */
|
|
1121
|
-
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1125
|
-
*
|
|
1126
|
-
* @private
|
|
1127
|
-
* @param {Object} object The object to query.
|
|
1128
|
-
* @returns {Array} Returns the array of property names.
|
|
1129
|
-
*/
|
|
1130
|
-
function baseKeysIn(object) {
|
|
1131
|
-
if (!isObject(object)) {
|
|
1132
|
-
return nativeKeysIn(object);
|
|
1133
|
-
}
|
|
1134
|
-
var isProto = isPrototype(object),
|
|
1135
|
-
result = [];
|
|
1136
|
-
|
|
1137
|
-
for (var key in object) {
|
|
1138
|
-
if (!(key == 'constructor' && (isProto || !hasOwnProperty$6.call(object, key)))) {
|
|
1139
|
-
result.push(key);
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
return result;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1147
|
-
*
|
|
1148
|
-
* **Note:** Non-object values are coerced to objects.
|
|
1149
|
-
*
|
|
1150
|
-
* @static
|
|
1151
|
-
* @memberOf _
|
|
1152
|
-
* @since 3.0.0
|
|
1153
|
-
* @category Object
|
|
1154
|
-
* @param {Object} object The object to query.
|
|
1155
|
-
* @returns {Array} Returns the array of property names.
|
|
1156
|
-
* @example
|
|
1157
|
-
*
|
|
1158
|
-
* function Foo() {
|
|
1159
|
-
* this.a = 1;
|
|
1160
|
-
* this.b = 2;
|
|
1161
|
-
* }
|
|
1162
|
-
*
|
|
1163
|
-
* Foo.prototype.c = 3;
|
|
1164
|
-
*
|
|
1165
|
-
* _.keysIn(new Foo);
|
|
1166
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1167
|
-
*/
|
|
1168
|
-
function keysIn(object) {
|
|
1169
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
1045
|
/* Built-in method references that are verified to be native. */
|
|
1173
1046
|
var nativeCreate = getNative(Object, 'create');
|
|
1174
1047
|
|
|
@@ -1689,32 +1562,6 @@
|
|
|
1689
1562
|
Stack.prototype.has = stackHas;
|
|
1690
1563
|
Stack.prototype.set = stackSet;
|
|
1691
1564
|
|
|
1692
|
-
/**
|
|
1693
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
1694
|
-
* or `customizer` functions.
|
|
1695
|
-
*
|
|
1696
|
-
* @private
|
|
1697
|
-
* @param {Object} object The destination object.
|
|
1698
|
-
* @param {Object} source The source object.
|
|
1699
|
-
* @returns {Object} Returns `object`.
|
|
1700
|
-
*/
|
|
1701
|
-
function baseAssign(object, source) {
|
|
1702
|
-
return object && copyObject(source, keys(source), object);
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
/**
|
|
1706
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1707
|
-
* or `customizer` functions.
|
|
1708
|
-
*
|
|
1709
|
-
* @private
|
|
1710
|
-
* @param {Object} object The destination object.
|
|
1711
|
-
* @param {Object} source The source object.
|
|
1712
|
-
* @returns {Object} Returns `object`.
|
|
1713
|
-
*/
|
|
1714
|
-
function baseAssignIn(object, source) {
|
|
1715
|
-
return object && copyObject(source, keysIn(source), object);
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
1565
|
/** Detect free variable `exports`. */
|
|
1719
1566
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
1720
1567
|
|
|
@@ -1725,8 +1572,8 @@
|
|
|
1725
1572
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1726
1573
|
|
|
1727
1574
|
/** Built-in value references. */
|
|
1728
|
-
var Buffer = moduleExports ? root.Buffer : undefined
|
|
1729
|
-
|
|
1575
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
1576
|
+
Buffer ? Buffer.allocUnsafe : undefined;
|
|
1730
1577
|
|
|
1731
1578
|
/**
|
|
1732
1579
|
* Creates a clone of `buffer`.
|
|
@@ -1737,14 +1584,9 @@
|
|
|
1737
1584
|
* @returns {Buffer} Returns the cloned buffer.
|
|
1738
1585
|
*/
|
|
1739
1586
|
function cloneBuffer(buffer, isDeep) {
|
|
1740
|
-
|
|
1587
|
+
{
|
|
1741
1588
|
return buffer.slice();
|
|
1742
1589
|
}
|
|
1743
|
-
var length = buffer.length,
|
|
1744
|
-
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1745
|
-
|
|
1746
|
-
buffer.copy(result);
|
|
1747
|
-
return result;
|
|
1748
1590
|
}
|
|
1749
1591
|
|
|
1750
1592
|
/**
|
|
@@ -1800,7 +1642,7 @@
|
|
|
1800
1642
|
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
1801
1643
|
|
|
1802
1644
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1803
|
-
var nativeGetSymbols
|
|
1645
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1804
1646
|
|
|
1805
1647
|
/**
|
|
1806
1648
|
* Creates an array of the own enumerable symbols of `object`.
|
|
@@ -1809,59 +1651,16 @@
|
|
|
1809
1651
|
* @param {Object} object The object to query.
|
|
1810
1652
|
* @returns {Array} Returns the array of symbols.
|
|
1811
1653
|
*/
|
|
1812
|
-
var getSymbols = !nativeGetSymbols
|
|
1654
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1813
1655
|
if (object == null) {
|
|
1814
1656
|
return [];
|
|
1815
1657
|
}
|
|
1816
1658
|
object = Object(object);
|
|
1817
|
-
return arrayFilter(nativeGetSymbols
|
|
1659
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1818
1660
|
return propertyIsEnumerable.call(object, symbol);
|
|
1819
1661
|
});
|
|
1820
1662
|
};
|
|
1821
1663
|
|
|
1822
|
-
/**
|
|
1823
|
-
* Copies own symbols of `source` to `object`.
|
|
1824
|
-
*
|
|
1825
|
-
* @private
|
|
1826
|
-
* @param {Object} source The object to copy symbols from.
|
|
1827
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
1828
|
-
* @returns {Object} Returns `object`.
|
|
1829
|
-
*/
|
|
1830
|
-
function copySymbols(source, object) {
|
|
1831
|
-
return copyObject(source, getSymbols(source), object);
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1835
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1839
|
-
*
|
|
1840
|
-
* @private
|
|
1841
|
-
* @param {Object} object The object to query.
|
|
1842
|
-
* @returns {Array} Returns the array of symbols.
|
|
1843
|
-
*/
|
|
1844
|
-
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
1845
|
-
var result = [];
|
|
1846
|
-
while (object) {
|
|
1847
|
-
arrayPush(result, getSymbols(object));
|
|
1848
|
-
object = getPrototype(object);
|
|
1849
|
-
}
|
|
1850
|
-
return result;
|
|
1851
|
-
};
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* Copies own and inherited symbols of `source` to `object`.
|
|
1855
|
-
*
|
|
1856
|
-
* @private
|
|
1857
|
-
* @param {Object} source The object to copy symbols from.
|
|
1858
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
1859
|
-
* @returns {Object} Returns `object`.
|
|
1860
|
-
*/
|
|
1861
|
-
function copySymbolsIn(source, object) {
|
|
1862
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
1664
|
/**
|
|
1866
1665
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1867
1666
|
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
@@ -1889,18 +1688,6 @@
|
|
|
1889
1688
|
return baseGetAllKeys(object, keys, getSymbols);
|
|
1890
1689
|
}
|
|
1891
1690
|
|
|
1892
|
-
/**
|
|
1893
|
-
* Creates an array of own and inherited enumerable property names and
|
|
1894
|
-
* symbols of `object`.
|
|
1895
|
-
*
|
|
1896
|
-
* @private
|
|
1897
|
-
* @param {Object} object The object to query.
|
|
1898
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1899
|
-
*/
|
|
1900
|
-
function getAllKeysIn(object) {
|
|
1901
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
1691
|
/* Built-in method references that are verified to be native. */
|
|
1905
1692
|
var DataView = getNative(root, 'DataView');
|
|
1906
1693
|
|
|
@@ -2009,7 +1796,7 @@
|
|
|
2009
1796
|
* @returns {Object} Returns the cloned data view.
|
|
2010
1797
|
*/
|
|
2011
1798
|
function cloneDataView(dataView, isDeep) {
|
|
2012
|
-
var buffer =
|
|
1799
|
+
var buffer = cloneArrayBuffer(dataView.buffer) ;
|
|
2013
1800
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
2014
1801
|
}
|
|
2015
1802
|
|
|
@@ -2053,7 +1840,7 @@
|
|
|
2053
1840
|
* @returns {Object} Returns the cloned typed array.
|
|
2054
1841
|
*/
|
|
2055
1842
|
function cloneTypedArray(typedArray, isDeep) {
|
|
2056
|
-
var buffer =
|
|
1843
|
+
var buffer = cloneArrayBuffer(typedArray.buffer) ;
|
|
2057
1844
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2058
1845
|
}
|
|
2059
1846
|
|
|
@@ -2102,12 +1889,12 @@
|
|
|
2102
1889
|
return new Ctor(+object);
|
|
2103
1890
|
|
|
2104
1891
|
case dataViewTag$2:
|
|
2105
|
-
return cloneDataView(object
|
|
1892
|
+
return cloneDataView(object);
|
|
2106
1893
|
|
|
2107
1894
|
case float32Tag$1: case float64Tag$1:
|
|
2108
1895
|
case int8Tag$1: case int16Tag$1: case int32Tag$1:
|
|
2109
1896
|
case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
|
|
2110
|
-
return cloneTypedArray(object
|
|
1897
|
+
return cloneTypedArray(object);
|
|
2111
1898
|
|
|
2112
1899
|
case mapTag$4:
|
|
2113
1900
|
return new Ctor;
|
|
@@ -2212,11 +1999,6 @@
|
|
|
2212
1999
|
*/
|
|
2213
2000
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
2214
2001
|
|
|
2215
|
-
/** Used to compose bitmasks for cloning. */
|
|
2216
|
-
var CLONE_DEEP_FLAG$1 = 1,
|
|
2217
|
-
CLONE_FLAT_FLAG = 2,
|
|
2218
|
-
CLONE_SYMBOLS_FLAG$1 = 4;
|
|
2219
|
-
|
|
2220
2002
|
/** `Object#toString` result references. */
|
|
2221
2003
|
var argsTag$1 = '[object Arguments]',
|
|
2222
2004
|
arrayTag$1 = '[object Array]',
|
|
@@ -2279,10 +2061,7 @@
|
|
|
2279
2061
|
* @returns {*} Returns the cloned value.
|
|
2280
2062
|
*/
|
|
2281
2063
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
2282
|
-
var result
|
|
2283
|
-
isDeep = bitmask & CLONE_DEEP_FLAG$1,
|
|
2284
|
-
isFlat = bitmask & CLONE_FLAT_FLAG,
|
|
2285
|
-
isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
2064
|
+
var result;
|
|
2286
2065
|
if (result !== undefined) {
|
|
2287
2066
|
return result;
|
|
2288
2067
|
}
|
|
@@ -2292,28 +2071,20 @@
|
|
|
2292
2071
|
var isArr = isArray(value);
|
|
2293
2072
|
if (isArr) {
|
|
2294
2073
|
result = initCloneArray(value);
|
|
2295
|
-
if (!isDeep) {
|
|
2296
|
-
return copyArray(value, result);
|
|
2297
|
-
}
|
|
2298
2074
|
} else {
|
|
2299
2075
|
var tag = getTag(value),
|
|
2300
2076
|
isFunc = tag == funcTag || tag == genTag;
|
|
2301
2077
|
|
|
2302
2078
|
if (isBuffer(value)) {
|
|
2303
|
-
return cloneBuffer(value
|
|
2079
|
+
return cloneBuffer(value);
|
|
2304
2080
|
}
|
|
2305
2081
|
if (tag == objectTag$1 || tag == argsTag$1 || (isFunc && !object)) {
|
|
2306
|
-
result = (
|
|
2307
|
-
if (!isDeep) {
|
|
2308
|
-
return isFlat
|
|
2309
|
-
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
2310
|
-
: copySymbols(value, baseAssign(result, value));
|
|
2311
|
-
}
|
|
2082
|
+
result = (isFunc) ? {} : initCloneObject(value);
|
|
2312
2083
|
} else {
|
|
2313
2084
|
if (!cloneableTags[tag]) {
|
|
2314
2085
|
return object ? value : {};
|
|
2315
2086
|
}
|
|
2316
|
-
result = initCloneByTag(value, tag
|
|
2087
|
+
result = initCloneByTag(value, tag);
|
|
2317
2088
|
}
|
|
2318
2089
|
}
|
|
2319
2090
|
// Check for circular references and return its corresponding clone.
|
|
@@ -2334,9 +2105,8 @@
|
|
|
2334
2105
|
});
|
|
2335
2106
|
}
|
|
2336
2107
|
|
|
2337
|
-
var keysFunc =
|
|
2338
|
-
|
|
2339
|
-
: (isFlat ? keysIn : keys);
|
|
2108
|
+
var keysFunc = (getAllKeys)
|
|
2109
|
+
;
|
|
2340
2110
|
|
|
2341
2111
|
var props = isArr ? undefined : keysFunc(value);
|
|
2342
2112
|
arrayEach(props || value, function(subValue, key) {
|
|
@@ -3244,7 +3014,7 @@
|
|
|
3244
3014
|
return defaultValue(mForm);
|
|
3245
3015
|
}
|
|
3246
3016
|
if (defaultValue === "undefined") {
|
|
3247
|
-
return
|
|
3017
|
+
return void 0;
|
|
3248
3018
|
}
|
|
3249
3019
|
if (typeof defaultValue !== "undefined") {
|
|
3250
3020
|
return defaultValue;
|
|
@@ -3903,7 +3673,7 @@
|
|
|
3903
3673
|
if (props.config.items) {
|
|
3904
3674
|
return props.config.labelWidth || props.labelWidth;
|
|
3905
3675
|
}
|
|
3906
|
-
return props.config.labelWidth || props.labelWidth || (props.config.text ?
|
|
3676
|
+
return props.config.labelWidth || props.labelWidth || (props.config.text ? void 0 : "0");
|
|
3907
3677
|
});
|
|
3908
3678
|
const valueChangeHandler = (value) => {
|
|
3909
3679
|
emit("change", value, { modifyKey: "value" });
|
|
@@ -4079,7 +3849,7 @@
|
|
|
4079
3849
|
const changeOrder = (offset = 0) => emit("swap-item", props.index, props.index + offset);
|
|
4080
3850
|
const movable = vue.computed(() => {
|
|
4081
3851
|
const { movable: movable2 } = props.config;
|
|
4082
|
-
if (movable2 ===
|
|
3852
|
+
if (movable2 === void 0) return true;
|
|
4083
3853
|
if (typeof movable2 === "function") {
|
|
4084
3854
|
return movable2(mForm, props.index || 0, props.model, props.groupModel);
|
|
4085
3855
|
}
|
|
@@ -4869,6 +4639,10 @@
|
|
|
4869
4639
|
}
|
|
4870
4640
|
sortable = Sortable.create(tBodyEl, {
|
|
4871
4641
|
draggable: ".tmagic-design-table-row",
|
|
4642
|
+
filter: "input",
|
|
4643
|
+
// 表单组件选字操作和触发拖拽会冲突,优先保证选字操作
|
|
4644
|
+
preventOnFilter: false,
|
|
4645
|
+
// 允许选字
|
|
4872
4646
|
direction: "vertical",
|
|
4873
4647
|
onEnd: ({ newIndex, oldIndex }) => {
|
|
4874
4648
|
if (typeof newIndex === "undefined") return;
|
|
@@ -5033,7 +4807,7 @@
|
|
|
5033
4807
|
}
|
|
5034
4808
|
timer = setTimeout(() => {
|
|
5035
4809
|
swapArray(index, index - 1);
|
|
5036
|
-
timer =
|
|
4810
|
+
timer = void 0;
|
|
5037
4811
|
}, 300);
|
|
5038
4812
|
};
|
|
5039
4813
|
const topHandler = (index) => {
|
|
@@ -5052,7 +4826,7 @@
|
|
|
5052
4826
|
}
|
|
5053
4827
|
timer = setTimeout(() => {
|
|
5054
4828
|
swapArray(index, index + 1);
|
|
5055
|
-
timer =
|
|
4829
|
+
timer = void 0;
|
|
5056
4830
|
}, 300);
|
|
5057
4831
|
};
|
|
5058
4832
|
const bottomHandler = (index) => {
|
|
@@ -5229,7 +5003,7 @@
|
|
|
5229
5003
|
label: "操作",
|
|
5230
5004
|
width: _ctx.config.operateColWidth || 100,
|
|
5231
5005
|
align: "center",
|
|
5232
|
-
fixed: _ctx.config.fixed === false ?
|
|
5006
|
+
fixed: _ctx.config.fixed === false ? void 0 : "left"
|
|
5233
5007
|
}, {
|
|
5234
5008
|
default: vue.withCtx((scope) => [
|
|
5235
5009
|
vue.renderSlot(_ctx.$slots, "operateCol", { scope }),
|
|
@@ -5888,7 +5662,7 @@
|
|
|
5888
5662
|
} else {
|
|
5889
5663
|
return props.config.activeValue;
|
|
5890
5664
|
}
|
|
5891
|
-
return
|
|
5665
|
+
return void 0;
|
|
5892
5666
|
});
|
|
5893
5667
|
const inactiveValue = vue.computed(() => {
|
|
5894
5668
|
if (typeof props.config.inactiveValue === "undefined") {
|
|
@@ -5898,7 +5672,7 @@
|
|
|
5898
5672
|
} else {
|
|
5899
5673
|
return props.config.inactiveValue;
|
|
5900
5674
|
}
|
|
5901
|
-
return
|
|
5675
|
+
return void 0;
|
|
5902
5676
|
});
|
|
5903
5677
|
const changeHandler = (value) => {
|
|
5904
5678
|
emit("change", value);
|
|
@@ -6100,7 +5874,7 @@
|
|
|
6100
5874
|
useAddField(props.prop);
|
|
6101
5875
|
const { names } = props.config;
|
|
6102
5876
|
const value = vue.ref([]);
|
|
6103
|
-
if (props.model !==
|
|
5877
|
+
if (props.model !== void 0) {
|
|
6104
5878
|
if (names?.length) {
|
|
6105
5879
|
vue.watch(
|
|
6106
5880
|
[() => props.model[names[0]], () => props.model[names[1]]],
|
|
@@ -6124,7 +5898,7 @@
|
|
|
6124
5898
|
const format = `${props.config.dateFormat || "YYYY/MM/DD"} ${props.config.timeFormat || "HH:mm:ss"}`;
|
|
6125
5899
|
if (start !== preStart)
|
|
6126
5900
|
value.value = start.map(
|
|
6127
|
-
(item) => item ? datetimeFormatter(item, "", format) :
|
|
5901
|
+
(item) => item ? datetimeFormatter(item, "", format) : void 0
|
|
6128
5902
|
);
|
|
6129
5903
|
},
|
|
6130
5904
|
{
|
|
@@ -6141,7 +5915,7 @@
|
|
|
6141
5915
|
if (Array.isArray(v)) {
|
|
6142
5916
|
props.model[item] = v[index];
|
|
6143
5917
|
} else {
|
|
6144
|
-
props.model[item] =
|
|
5918
|
+
props.model[item] = void 0;
|
|
6145
5919
|
}
|
|
6146
5920
|
});
|
|
6147
5921
|
};
|
|
@@ -6301,9 +6075,9 @@
|
|
|
6301
6075
|
fieldMap.value = {};
|
|
6302
6076
|
fieldLabelMap.value = {};
|
|
6303
6077
|
fields.forEach((v) => {
|
|
6304
|
-
if (typeof v !== "object" || v.name ===
|
|
6078
|
+
if (typeof v !== "object" || v.name === void 0) return;
|
|
6305
6079
|
let oldVal = props.model?.[v.name] || "";
|
|
6306
|
-
if (!oldVal && v.defaultValue !==
|
|
6080
|
+
if (!oldVal && v.defaultValue !== void 0) {
|
|
6307
6081
|
oldVal = v.defaultValue;
|
|
6308
6082
|
emit("change", oldVal, { modifyKey: v.name });
|
|
6309
6083
|
}
|
|
@@ -7681,7 +7455,7 @@
|
|
|
7681
7455
|
return {
|
|
7682
7456
|
text: props.config.append,
|
|
7683
7457
|
type: "button",
|
|
7684
|
-
handler:
|
|
7458
|
+
handler: void 0
|
|
7685
7459
|
};
|
|
7686
7460
|
}
|
|
7687
7461
|
if (props.config.append && typeof props.config.append === "object") {
|
|
@@ -7738,7 +7512,7 @@
|
|
|
7738
7512
|
unit = $2;
|
|
7739
7513
|
});
|
|
7740
7514
|
}
|
|
7741
|
-
if (num ===
|
|
7515
|
+
if (num === void 0) {
|
|
7742
7516
|
return;
|
|
7743
7517
|
}
|
|
7744
7518
|
const ctrl = navigator.platform.match("Mac") ? $event.metaKey : $event.ctrlKey;
|
|
@@ -7790,7 +7564,7 @@
|
|
|
7790
7564
|
const destroyPopover = () => {
|
|
7791
7565
|
if (!instanceRef.value) return;
|
|
7792
7566
|
instanceRef.value.destroy();
|
|
7793
|
-
instanceRef.value =
|
|
7567
|
+
instanceRef.value = void 0;
|
|
7794
7568
|
};
|
|
7795
7569
|
return (_ctx, _cache) => {
|
|
7796
7570
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
@@ -7831,7 +7605,7 @@
|
|
|
7831
7605
|
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
7832
7606
|
]),
|
|
7833
7607
|
key: "0"
|
|
7834
|
-
} :
|
|
7608
|
+
} : void 0
|
|
7835
7609
|
]), 1032, ["modelValue", "size", "placeholder", "disabled"]),
|
|
7836
7610
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
7837
7611
|
popoverVisible.value ? (vue.openBlock(), vue.createElementBlock(
|
|
@@ -8001,7 +7775,7 @@
|
|
|
8001
7775
|
useAddField(props.prop);
|
|
8002
7776
|
const { names } = props.config;
|
|
8003
7777
|
const value = vue.ref([]);
|
|
8004
|
-
if (props.model !==
|
|
7778
|
+
if (props.model !== void 0 && names?.length) {
|
|
8005
7779
|
vue.watch(
|
|
8006
7780
|
[() => props.model[names[0]], () => props.model[names[1]]],
|
|
8007
7781
|
([start, end], [preStart, preEnd]) => {
|
|
@@ -8025,7 +7799,7 @@
|
|
|
8025
7799
|
if (Array.isArray(v)) {
|
|
8026
7800
|
props.model[item] = v[index];
|
|
8027
7801
|
} else {
|
|
8028
|
-
props.model[item] =
|
|
7802
|
+
props.model[item] = void 0;
|
|
8029
7803
|
}
|
|
8030
7804
|
});
|
|
8031
7805
|
};
|