bk-magic-vue 2.5.9-beta.2 → 2.5.9-beta.21
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/bk-magic-vue.css +893 -959
- package/dist/bk-magic-vue.js +860 -625
- package/dist/bk-magic-vue.min.css +1 -1
- package/dist/bk-magic-vue.min.css.gz +0 -0
- package/dist/bk-magic-vue.min.css.map +1 -1
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/card.js +2981 -203
- package/lib/cascade.js +6447 -6411
- package/lib/date-picker.js +1 -1
- package/lib/dialog.js +484 -9
- package/lib/info-box.js +484 -9
- package/lib/input.js +2942 -164
- package/lib/loading.js +7 -4
- package/lib/pagination.js +214 -17
- package/lib/rate.js +14 -3
- package/lib/resize-layout.js +3 -1
- package/lib/select.js +40 -9
- package/lib/sideslider.js +802 -336
- package/lib/slider.js +3270 -3202
- package/lib/star.js +13 -2
- package/lib/table.js +214 -17
- package/lib/tag-input.js +122 -102
- package/lib/time-picker.js +1 -1
- package/lib/timeline.js +26 -17
- package/lib/transfer.js +1886 -1710
- package/lib/ui/badge.css +127 -119
- package/lib/ui/badge.min.css +1 -1
- package/lib/ui/badge.min.css.map +1 -1
- package/lib/ui/bk-magic-vue.css +893 -959
- package/lib/ui/bk-magic-vue.min.css +1 -1
- package/lib/ui/bk-magic-vue.min.css.gz +0 -0
- package/lib/ui/bk-magic-vue.min.css.map +1 -1
- package/lib/ui/button.css +4 -4
- package/lib/ui/button.min.css +1 -1
- package/lib/ui/button.min.css.map +1 -1
- package/lib/ui/card.css +2 -2
- package/lib/ui/card.min.css +1 -1
- package/lib/ui/card.min.css.map +1 -1
- package/lib/ui/cascade.css +19 -1
- package/lib/ui/cascade.min.css +1 -1
- package/lib/ui/cascade.min.css.map +1 -1
- package/lib/ui/checkbox.css +67 -67
- package/lib/ui/checkbox.min.css.map +1 -1
- package/lib/ui/dialog.css +4 -4
- package/lib/ui/dialog.min.css +1 -1
- package/lib/ui/dialog.min.css.map +1 -1
- package/lib/ui/exception.css +1 -0
- package/lib/ui/exception.min.css +1 -1
- package/lib/ui/exception.min.css.map +1 -1
- package/lib/ui/form.css +2 -2
- package/lib/ui/form.min.css +1 -1
- package/lib/ui/form.min.css.map +1 -1
- package/lib/ui/info-box.css +4 -4
- package/lib/ui/info-box.min.css +1 -1
- package/lib/ui/info-box.min.css.map +1 -1
- package/lib/ui/input.css +1 -1
- package/lib/ui/input.min.css +1 -1
- package/lib/ui/input.min.css.map +1 -1
- package/lib/ui/link.css +27 -3
- package/lib/ui/link.min.css +1 -1
- package/lib/ui/link.min.css.map +1 -1
- package/lib/ui/loading.css +43 -280
- package/lib/ui/loading.min.css +1 -1
- package/lib/ui/loading.min.css.map +1 -1
- package/lib/ui/notify.css +5 -5
- package/lib/ui/notify.min.css +1 -1
- package/lib/ui/notify.min.css.map +1 -1
- package/lib/ui/overflow-tips.css +3 -2
- package/lib/ui/overflow-tips.min.css +1 -1
- package/lib/ui/overflow-tips.min.css.map +1 -1
- package/lib/ui/pagination.css +1 -1
- package/lib/ui/pagination.min.css +1 -1
- package/lib/ui/pagination.min.css.map +1 -1
- package/lib/ui/popconfirm.css +2 -2
- package/lib/ui/popconfirm.min.css +1 -1
- package/lib/ui/popconfirm.min.css.map +1 -1
- package/lib/ui/popover.css +3 -2
- package/lib/ui/popover.min.css +1 -1
- package/lib/ui/popover.min.css.map +1 -1
- package/lib/ui/process.css +51 -282
- package/lib/ui/process.min.css +1 -1
- package/lib/ui/process.min.css.map +1 -1
- package/lib/ui/progress.css +2 -2
- package/lib/ui/progress.min.css +1 -1
- package/lib/ui/progress.min.css.map +1 -1
- package/lib/ui/radio.css +64 -64
- package/lib/ui/radio.min.css +1 -1
- package/lib/ui/radio.min.css.map +1 -1
- package/lib/ui/resize-layout.css +13 -5
- package/lib/ui/resize-layout.min.css +1 -1
- package/lib/ui/resize-layout.min.css.map +1 -1
- package/lib/ui/sideslider.css +8 -7
- package/lib/ui/sideslider.min.css +1 -1
- package/lib/ui/sideslider.min.css.map +1 -1
- package/lib/ui/star.css +22 -17
- package/lib/ui/star.min.css +1 -1
- package/lib/ui/star.min.css.map +1 -1
- package/lib/ui/steps.css +372 -274
- package/lib/ui/steps.min.css +1 -1
- package/lib/ui/steps.min.css.map +1 -1
- package/lib/ui/tooltips.css +3 -2
- package/lib/ui/tooltips.min.css +1 -1
- package/lib/ui/tooltips.min.css.map +1 -1
- package/lib/ui/transfer.css +122 -121
- package/lib/ui/transfer.min.css +1 -1
- package/lib/ui/transfer.min.css.map +1 -1
- package/lib/ui/tree.css +45 -282
- package/lib/ui/tree.min.css +1 -1
- package/lib/ui/tree.min.css.map +1 -1
- package/lib/version-detail.js +453 -13
- package/package.json +3 -4
package/lib/info-box.js
CHANGED
|
@@ -1805,6 +1805,480 @@
|
|
|
1805
1805
|
})();
|
|
1806
1806
|
var popManager = window['__bk_pop_manager'];
|
|
1807
1807
|
|
|
1808
|
+
var _iterStep = function (done, value) {
|
|
1809
|
+
return { value: value, done: !!done };
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
|
|
1813
|
+
this._t = _toIobject(iterated);
|
|
1814
|
+
this._i = 0;
|
|
1815
|
+
this._k = kind;
|
|
1816
|
+
}, function () {
|
|
1817
|
+
var O = this._t;
|
|
1818
|
+
var kind = this._k;
|
|
1819
|
+
var index = this._i++;
|
|
1820
|
+
if (!O || index >= O.length) {
|
|
1821
|
+
this._t = undefined;
|
|
1822
|
+
return _iterStep(1);
|
|
1823
|
+
}
|
|
1824
|
+
if (kind == 'keys') return _iterStep(0, index);
|
|
1825
|
+
if (kind == 'values') return _iterStep(0, O[index]);
|
|
1826
|
+
return _iterStep(0, [index, O[index]]);
|
|
1827
|
+
}, 'values');
|
|
1828
|
+
_iterators.Arguments = _iterators.Array;
|
|
1829
|
+
|
|
1830
|
+
var TO_STRING_TAG = _wks('toStringTag');
|
|
1831
|
+
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
|
1832
|
+
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
|
1833
|
+
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
|
1834
|
+
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
|
1835
|
+
'TextTrackList,TouchList').split(',');
|
|
1836
|
+
for (var i = 0; i < DOMIterables.length; i++) {
|
|
1837
|
+
var NAME = DOMIterables[i];
|
|
1838
|
+
var Collection = _global[NAME];
|
|
1839
|
+
var proto = Collection && Collection.prototype;
|
|
1840
|
+
if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
|
|
1841
|
+
_iterators[NAME] = _iterators.Array;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
var SPECIES = _wks('species');
|
|
1845
|
+
var _arraySpeciesConstructor = function (original) {
|
|
1846
|
+
var C;
|
|
1847
|
+
if (_isArray(original)) {
|
|
1848
|
+
C = original.constructor;
|
|
1849
|
+
if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
|
|
1850
|
+
if (_isObject(C)) {
|
|
1851
|
+
C = C[SPECIES];
|
|
1852
|
+
if (C === null) C = undefined;
|
|
1853
|
+
}
|
|
1854
|
+
} return C === undefined ? Array : C;
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
var _arraySpeciesCreate = function (original, length) {
|
|
1858
|
+
return new (_arraySpeciesConstructor(original))(length);
|
|
1859
|
+
};
|
|
1860
|
+
|
|
1861
|
+
var _arrayMethods = function (TYPE, $create) {
|
|
1862
|
+
var IS_MAP = TYPE == 1;
|
|
1863
|
+
var IS_FILTER = TYPE == 2;
|
|
1864
|
+
var IS_SOME = TYPE == 3;
|
|
1865
|
+
var IS_EVERY = TYPE == 4;
|
|
1866
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
1867
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1868
|
+
var create = $create || _arraySpeciesCreate;
|
|
1869
|
+
return function ($this, callbackfn, that) {
|
|
1870
|
+
var O = _toObject($this);
|
|
1871
|
+
var self = _iobject(O);
|
|
1872
|
+
var f = _ctx(callbackfn, that, 3);
|
|
1873
|
+
var length = _toLength(self.length);
|
|
1874
|
+
var index = 0;
|
|
1875
|
+
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
1876
|
+
var val, res;
|
|
1877
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
1878
|
+
val = self[index];
|
|
1879
|
+
res = f(val, index, O);
|
|
1880
|
+
if (TYPE) {
|
|
1881
|
+
if (IS_MAP) result[index] = res;
|
|
1882
|
+
else if (res) switch (TYPE) {
|
|
1883
|
+
case 3: return true;
|
|
1884
|
+
case 5: return val;
|
|
1885
|
+
case 6: return index;
|
|
1886
|
+
case 2: result.push(val);
|
|
1887
|
+
} else if (IS_EVERY) return false;
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
|
|
1894
|
+
var _meta = createCommonjsModule(function (module) {
|
|
1895
|
+
var META = _uid('meta');
|
|
1896
|
+
var setDesc = _objectDp.f;
|
|
1897
|
+
var id = 0;
|
|
1898
|
+
var isExtensible = Object.isExtensible || function () {
|
|
1899
|
+
return true;
|
|
1900
|
+
};
|
|
1901
|
+
var FREEZE = !_fails(function () {
|
|
1902
|
+
return isExtensible(Object.preventExtensions({}));
|
|
1903
|
+
});
|
|
1904
|
+
var setMeta = function (it) {
|
|
1905
|
+
setDesc(it, META, { value: {
|
|
1906
|
+
i: 'O' + ++id,
|
|
1907
|
+
w: {}
|
|
1908
|
+
} });
|
|
1909
|
+
};
|
|
1910
|
+
var fastKey = function (it, create) {
|
|
1911
|
+
if (!_isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
1912
|
+
if (!_has(it, META)) {
|
|
1913
|
+
if (!isExtensible(it)) return 'F';
|
|
1914
|
+
if (!create) return 'E';
|
|
1915
|
+
setMeta(it);
|
|
1916
|
+
} return it[META].i;
|
|
1917
|
+
};
|
|
1918
|
+
var getWeak = function (it, create) {
|
|
1919
|
+
if (!_has(it, META)) {
|
|
1920
|
+
if (!isExtensible(it)) return true;
|
|
1921
|
+
if (!create) return false;
|
|
1922
|
+
setMeta(it);
|
|
1923
|
+
} return it[META].w;
|
|
1924
|
+
};
|
|
1925
|
+
var onFreeze = function (it) {
|
|
1926
|
+
if (FREEZE && meta.NEED && isExtensible(it) && !_has(it, META)) setMeta(it);
|
|
1927
|
+
return it;
|
|
1928
|
+
};
|
|
1929
|
+
var meta = module.exports = {
|
|
1930
|
+
KEY: META,
|
|
1931
|
+
NEED: false,
|
|
1932
|
+
fastKey: fastKey,
|
|
1933
|
+
getWeak: getWeak,
|
|
1934
|
+
onFreeze: onFreeze
|
|
1935
|
+
};
|
|
1936
|
+
});
|
|
1937
|
+
var _meta_1 = _meta.KEY;
|
|
1938
|
+
var _meta_2 = _meta.NEED;
|
|
1939
|
+
var _meta_3 = _meta.fastKey;
|
|
1940
|
+
var _meta_4 = _meta.getWeak;
|
|
1941
|
+
var _meta_5 = _meta.onFreeze;
|
|
1942
|
+
|
|
1943
|
+
var f$1 = Object.getOwnPropertySymbols;
|
|
1944
|
+
var _objectGops = {
|
|
1945
|
+
f: f$1
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
var f$2 = {}.propertyIsEnumerable;
|
|
1949
|
+
var _objectPie = {
|
|
1950
|
+
f: f$2
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
var $assign = Object.assign;
|
|
1954
|
+
var _objectAssign = !$assign || _fails(function () {
|
|
1955
|
+
var A = {};
|
|
1956
|
+
var B = {};
|
|
1957
|
+
var S = Symbol();
|
|
1958
|
+
var K = 'abcdefghijklmnopqrst';
|
|
1959
|
+
A[S] = 7;
|
|
1960
|
+
K.split('').forEach(function (k) { B[k] = k; });
|
|
1961
|
+
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
|
1962
|
+
}) ? function assign(target, source) {
|
|
1963
|
+
var T = _toObject(target);
|
|
1964
|
+
var aLen = arguments.length;
|
|
1965
|
+
var index = 1;
|
|
1966
|
+
var getSymbols = _objectGops.f;
|
|
1967
|
+
var isEnum = _objectPie.f;
|
|
1968
|
+
while (aLen > index) {
|
|
1969
|
+
var S = _iobject(arguments[index++]);
|
|
1970
|
+
var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);
|
|
1971
|
+
var length = keys.length;
|
|
1972
|
+
var j = 0;
|
|
1973
|
+
var key;
|
|
1974
|
+
while (length > j) {
|
|
1975
|
+
key = keys[j++];
|
|
1976
|
+
if (!_descriptors || isEnum.call(S, key)) T[key] = S[key];
|
|
1977
|
+
}
|
|
1978
|
+
} return T;
|
|
1979
|
+
} : $assign;
|
|
1980
|
+
|
|
1981
|
+
var _redefineAll = function (target, src, safe) {
|
|
1982
|
+
for (var key in src) {
|
|
1983
|
+
if (safe && target[key]) target[key] = src[key];
|
|
1984
|
+
else _hide(target, key, src[key]);
|
|
1985
|
+
} return target;
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
1989
|
+
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
1990
|
+
throw TypeError(name + ': incorrect invocation!');
|
|
1991
|
+
} return it;
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
var _forOf = createCommonjsModule(function (module) {
|
|
1995
|
+
var BREAK = {};
|
|
1996
|
+
var RETURN = {};
|
|
1997
|
+
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
1998
|
+
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
|
|
1999
|
+
var f = _ctx(fn, that, entries ? 2 : 1);
|
|
2000
|
+
var index = 0;
|
|
2001
|
+
var length, step, iterator, result;
|
|
2002
|
+
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
2003
|
+
if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
|
|
2004
|
+
result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
2005
|
+
if (result === BREAK || result === RETURN) return result;
|
|
2006
|
+
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
2007
|
+
result = _iterCall(iterator, f, step.value, entries);
|
|
2008
|
+
if (result === BREAK || result === RETURN) return result;
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
exports.BREAK = BREAK;
|
|
2012
|
+
exports.RETURN = RETURN;
|
|
2013
|
+
});
|
|
2014
|
+
|
|
2015
|
+
var _validateCollection = function (it, TYPE) {
|
|
2016
|
+
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
2017
|
+
return it;
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
var getWeak = _meta.getWeak;
|
|
2021
|
+
var arrayFind = _arrayMethods(5);
|
|
2022
|
+
var arrayFindIndex = _arrayMethods(6);
|
|
2023
|
+
var id$1 = 0;
|
|
2024
|
+
var uncaughtFrozenStore = function (that) {
|
|
2025
|
+
return that._l || (that._l = new UncaughtFrozenStore());
|
|
2026
|
+
};
|
|
2027
|
+
var UncaughtFrozenStore = function () {
|
|
2028
|
+
this.a = [];
|
|
2029
|
+
};
|
|
2030
|
+
var findUncaughtFrozen = function (store, key) {
|
|
2031
|
+
return arrayFind(store.a, function (it) {
|
|
2032
|
+
return it[0] === key;
|
|
2033
|
+
});
|
|
2034
|
+
};
|
|
2035
|
+
UncaughtFrozenStore.prototype = {
|
|
2036
|
+
get: function (key) {
|
|
2037
|
+
var entry = findUncaughtFrozen(this, key);
|
|
2038
|
+
if (entry) return entry[1];
|
|
2039
|
+
},
|
|
2040
|
+
has: function (key) {
|
|
2041
|
+
return !!findUncaughtFrozen(this, key);
|
|
2042
|
+
},
|
|
2043
|
+
set: function (key, value) {
|
|
2044
|
+
var entry = findUncaughtFrozen(this, key);
|
|
2045
|
+
if (entry) entry[1] = value;
|
|
2046
|
+
else this.a.push([key, value]);
|
|
2047
|
+
},
|
|
2048
|
+
'delete': function (key) {
|
|
2049
|
+
var index = arrayFindIndex(this.a, function (it) {
|
|
2050
|
+
return it[0] === key;
|
|
2051
|
+
});
|
|
2052
|
+
if (~index) this.a.splice(index, 1);
|
|
2053
|
+
return !!~index;
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
var _collectionWeak = {
|
|
2057
|
+
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
2058
|
+
var C = wrapper(function (that, iterable) {
|
|
2059
|
+
_anInstance(that, C, NAME, '_i');
|
|
2060
|
+
that._t = NAME;
|
|
2061
|
+
that._i = id$1++;
|
|
2062
|
+
that._l = undefined;
|
|
2063
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
|
|
2064
|
+
});
|
|
2065
|
+
_redefineAll(C.prototype, {
|
|
2066
|
+
'delete': function (key) {
|
|
2067
|
+
if (!_isObject(key)) return false;
|
|
2068
|
+
var data = getWeak(key);
|
|
2069
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key);
|
|
2070
|
+
return data && _has(data, this._i) && delete data[this._i];
|
|
2071
|
+
},
|
|
2072
|
+
has: function has(key) {
|
|
2073
|
+
if (!_isObject(key)) return false;
|
|
2074
|
+
var data = getWeak(key);
|
|
2075
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
|
|
2076
|
+
return data && _has(data, this._i);
|
|
2077
|
+
}
|
|
2078
|
+
});
|
|
2079
|
+
return C;
|
|
2080
|
+
},
|
|
2081
|
+
def: function (that, key, value) {
|
|
2082
|
+
var data = getWeak(_anObject(key), true);
|
|
2083
|
+
if (data === true) uncaughtFrozenStore(that).set(key, value);
|
|
2084
|
+
else data[that._i] = value;
|
|
2085
|
+
return that;
|
|
2086
|
+
},
|
|
2087
|
+
ufstore: uncaughtFrozenStore
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
var dP$1 = _objectDp.f;
|
|
2091
|
+
var each = _arrayMethods(0);
|
|
2092
|
+
var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
2093
|
+
var Base = _global[NAME];
|
|
2094
|
+
var C = Base;
|
|
2095
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
2096
|
+
var proto = C && C.prototype;
|
|
2097
|
+
var O = {};
|
|
2098
|
+
if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
|
|
2099
|
+
new C().entries().next();
|
|
2100
|
+
}))) {
|
|
2101
|
+
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
2102
|
+
_redefineAll(C.prototype, methods);
|
|
2103
|
+
_meta.NEED = true;
|
|
2104
|
+
} else {
|
|
2105
|
+
C = wrapper(function (target, iterable) {
|
|
2106
|
+
_anInstance(target, C, NAME, '_c');
|
|
2107
|
+
target._c = new Base();
|
|
2108
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
|
|
2109
|
+
});
|
|
2110
|
+
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
|
|
2111
|
+
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
2112
|
+
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
|
|
2113
|
+
_anInstance(this, C, KEY);
|
|
2114
|
+
if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
|
|
2115
|
+
var result = this._c[KEY](a === 0 ? 0 : a, b);
|
|
2116
|
+
return IS_ADDER ? this : result;
|
|
2117
|
+
});
|
|
2118
|
+
});
|
|
2119
|
+
IS_WEAK || dP$1(C.prototype, 'size', {
|
|
2120
|
+
get: function () {
|
|
2121
|
+
return this._c.size;
|
|
2122
|
+
}
|
|
2123
|
+
});
|
|
2124
|
+
}
|
|
2125
|
+
_setToStringTag(C, NAME);
|
|
2126
|
+
O[NAME] = C;
|
|
2127
|
+
_export(_export.G + _export.W + _export.F, O);
|
|
2128
|
+
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
|
|
2129
|
+
return C;
|
|
2130
|
+
};
|
|
2131
|
+
|
|
2132
|
+
var es6_weakMap = createCommonjsModule(function (module) {
|
|
2133
|
+
var each = _arrayMethods(0);
|
|
2134
|
+
var NATIVE_WEAK_MAP = _validateCollection;
|
|
2135
|
+
var IS_IE11 = !_global.ActiveXObject && 'ActiveXObject' in _global;
|
|
2136
|
+
var WEAK_MAP = 'WeakMap';
|
|
2137
|
+
var getWeak = _meta.getWeak;
|
|
2138
|
+
var isExtensible = Object.isExtensible;
|
|
2139
|
+
var uncaughtFrozenStore = _collectionWeak.ufstore;
|
|
2140
|
+
var InternalMap;
|
|
2141
|
+
var wrapper = function (get) {
|
|
2142
|
+
return function WeakMap() {
|
|
2143
|
+
return get(this, arguments.length > 0 ? arguments[0] : undefined);
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
var methods = {
|
|
2147
|
+
get: function get(key) {
|
|
2148
|
+
if (_isObject(key)) {
|
|
2149
|
+
var data = getWeak(key);
|
|
2150
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key);
|
|
2151
|
+
return data ? data[this._i] : undefined;
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
set: function set(key, value) {
|
|
2155
|
+
return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
|
|
2156
|
+
}
|
|
2157
|
+
};
|
|
2158
|
+
var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
|
|
2159
|
+
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
2160
|
+
InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
|
|
2161
|
+
_objectAssign(InternalMap.prototype, methods);
|
|
2162
|
+
_meta.NEED = true;
|
|
2163
|
+
each(['delete', 'has', 'get', 'set'], function (key) {
|
|
2164
|
+
var proto = $WeakMap.prototype;
|
|
2165
|
+
var method = proto[key];
|
|
2166
|
+
_redefine(proto, key, function (a, b) {
|
|
2167
|
+
if (_isObject(a) && !isExtensible(a)) {
|
|
2168
|
+
if (!this._f) this._f = new InternalMap();
|
|
2169
|
+
var result = this._f[key](a, b);
|
|
2170
|
+
return key == 'set' ? this : result;
|
|
2171
|
+
} return method.call(this, a, b);
|
|
2172
|
+
});
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2175
|
+
});
|
|
2176
|
+
|
|
2177
|
+
var _setCollectionOf = function (COLLECTION) {
|
|
2178
|
+
_export(_export.S, COLLECTION, { of: function of() {
|
|
2179
|
+
var length = arguments.length;
|
|
2180
|
+
var A = new Array(length);
|
|
2181
|
+
while (length--) A[length] = arguments[length];
|
|
2182
|
+
return new this(A);
|
|
2183
|
+
} });
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
_setCollectionOf('WeakMap');
|
|
2187
|
+
|
|
2188
|
+
var _setCollectionFrom = function (COLLECTION) {
|
|
2189
|
+
_export(_export.S, COLLECTION, { from: function from(source ) {
|
|
2190
|
+
var mapFn = arguments[1];
|
|
2191
|
+
var mapping, A, n, cb;
|
|
2192
|
+
_aFunction(this);
|
|
2193
|
+
mapping = mapFn !== undefined;
|
|
2194
|
+
if (mapping) _aFunction(mapFn);
|
|
2195
|
+
if (source == undefined) return new this();
|
|
2196
|
+
A = [];
|
|
2197
|
+
if (mapping) {
|
|
2198
|
+
n = 0;
|
|
2199
|
+
cb = _ctx(mapFn, arguments[2], 2);
|
|
2200
|
+
_forOf(source, false, function (nextItem) {
|
|
2201
|
+
A.push(cb(nextItem, n++));
|
|
2202
|
+
});
|
|
2203
|
+
} else {
|
|
2204
|
+
_forOf(source, false, A.push, A);
|
|
2205
|
+
}
|
|
2206
|
+
return new this(A);
|
|
2207
|
+
} });
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
_setCollectionFrom('WeakMap');
|
|
2211
|
+
|
|
2212
|
+
var weakMap = _core.WeakMap;
|
|
2213
|
+
|
|
2214
|
+
var weakMap$1 = weakMap;
|
|
2215
|
+
|
|
2216
|
+
var instanceStore = new weakMap$1();
|
|
2217
|
+
var activeModal;
|
|
2218
|
+
var appendMaskDiv = function appendMaskDiv(target) {
|
|
2219
|
+
var div = document.createElement('div');
|
|
2220
|
+
div.style.setProperty('position', 'fixed');
|
|
2221
|
+
div.style.setProperty('left', '0');
|
|
2222
|
+
div.style.setProperty('top', '0');
|
|
2223
|
+
div.style.setProperty('width', '100%');
|
|
2224
|
+
div.style.setProperty('height', '100%');
|
|
2225
|
+
if (target.firstChild) {
|
|
2226
|
+
return target.insertBefore(div, target.firstChild);
|
|
2227
|
+
}
|
|
2228
|
+
return null;
|
|
2229
|
+
};
|
|
2230
|
+
var loopSetMaskStyle = function loopSetMaskStyle(modal, show) {
|
|
2231
|
+
if (!modal) {
|
|
2232
|
+
return;
|
|
2233
|
+
}
|
|
2234
|
+
if (instanceStore.has(modal)) {
|
|
2235
|
+
var _instanceStore$get = instanceStore.get(modal),
|
|
2236
|
+
mask = _instanceStore$get.mask,
|
|
2237
|
+
backgroundColor = _instanceStore$get.backgroundColor;
|
|
2238
|
+
if (mask) {
|
|
2239
|
+
mask.style.setProperty('background-color', show ? 'transparent' : backgroundColor);
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
};
|
|
2243
|
+
var showMask = function showMask(options) {
|
|
2244
|
+
if (!options.el || options.showMask === false) {
|
|
2245
|
+
return;
|
|
2246
|
+
}
|
|
2247
|
+
if (!instanceStore.has(options.el)) {
|
|
2248
|
+
var _mask = appendMaskDiv(options.el);
|
|
2249
|
+
_mask.style.setProperty('background-color', options.backgroundColor);
|
|
2250
|
+
instanceStore.set(options.el, _objectSpread({}, options, {
|
|
2251
|
+
mask: _mask,
|
|
2252
|
+
referenceParent: activeModal
|
|
2253
|
+
}));
|
|
2254
|
+
if (typeof options.onClick === 'function') {
|
|
2255
|
+
_mask.addEventListener('click', options.onClick);
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
var mask = instanceStore.get(options.el).mask;
|
|
2259
|
+
if (mask) {
|
|
2260
|
+
mask.style.setProperty('display', 'inherit');
|
|
2261
|
+
}
|
|
2262
|
+
loopSetMaskStyle(activeModal, options.showMask);
|
|
2263
|
+
activeModal = options.el;
|
|
2264
|
+
};
|
|
2265
|
+
var hideMask = function hideMask(options) {
|
|
2266
|
+
if (options.el && instanceStore.has(options.el)) {
|
|
2267
|
+
var _instanceStore$get2 = instanceStore.get(options.el),
|
|
2268
|
+
referenceParent = _instanceStore$get2.referenceParent,
|
|
2269
|
+
mask = _instanceStore$get2.mask;
|
|
2270
|
+
activeModal = referenceParent;
|
|
2271
|
+
loopSetMaskStyle(referenceParent, false);
|
|
2272
|
+
if (mask) {
|
|
2273
|
+
mask.style.setProperty('display', 'none');
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
};
|
|
2277
|
+
var mask = {
|
|
2278
|
+
showMask: showMask,
|
|
2279
|
+
hideMask: hideMask
|
|
2280
|
+
};
|
|
2281
|
+
|
|
1808
2282
|
function getTarget(node) {
|
|
1809
2283
|
if (node === void 0) {
|
|
1810
2284
|
node = document.body;
|
|
@@ -2250,7 +2724,10 @@
|
|
|
2250
2724
|
}
|
|
2251
2725
|
_this.removeScrollEffect();
|
|
2252
2726
|
}, 300);
|
|
2253
|
-
|
|
2727
|
+
mask.hideMask({
|
|
2728
|
+
el: this.$el,
|
|
2729
|
+
showMask: this.showMask
|
|
2730
|
+
});
|
|
2254
2731
|
} else {
|
|
2255
2732
|
this.addScrollEffect();
|
|
2256
2733
|
this.$nextTick(function () {
|
|
@@ -2268,14 +2745,11 @@
|
|
|
2268
2745
|
}, 0);
|
|
2269
2746
|
}
|
|
2270
2747
|
_this.dialogIndex = _this.zIndex !== undefined ? _this.zIndex : _this.getLocalZIndex();
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
};
|
|
2277
|
-
_this.popUid = popManager.show("bk-dialog-".concat(_this.uuid), _this.$el, options);
|
|
2278
|
-
}
|
|
2748
|
+
mask.showMask({
|
|
2749
|
+
el: _this.$el,
|
|
2750
|
+
showMask: _this.showMask,
|
|
2751
|
+
backgroundColor: 'rgba(0, 0, 0, 0.6)'
|
|
2752
|
+
});
|
|
2279
2753
|
});
|
|
2280
2754
|
}
|
|
2281
2755
|
this.$emit('value-change', val);
|
|
@@ -2544,6 +3018,7 @@
|
|
|
2544
3018
|
"top": "-100000px",
|
|
2545
3019
|
"left": "-100000px"
|
|
2546
3020
|
},
|
|
3021
|
+
style: _vm.wrapStyles,
|
|
2547
3022
|
attrs: {
|
|
2548
3023
|
"data-transfer": _vm.transfer
|
|
2549
3024
|
}
|