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