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/dist/bk-magic-vue.js
CHANGED
|
@@ -7640,7 +7640,7 @@
|
|
|
7640
7640
|
if (this.shortcutSelectedIndex !== -1) {
|
|
7641
7641
|
shortcut = this.shortcuts[this.shortcutSelectedIndex] || null;
|
|
7642
7642
|
if (shortcut) {
|
|
7643
|
-
initialValue = shortcut.value();
|
|
7643
|
+
initialValue = [shortcut.value()];
|
|
7644
7644
|
}
|
|
7645
7645
|
}
|
|
7646
7646
|
var focusedTime = initialValue.map(extractTime);
|
|
@@ -12549,6 +12549,421 @@
|
|
|
12549
12549
|
})();
|
|
12550
12550
|
var popManager = window['__bk_pop_manager'];
|
|
12551
12551
|
|
|
12552
|
+
var _iterStep = function (done, value) {
|
|
12553
|
+
return { value: value, done: !!done };
|
|
12554
|
+
};
|
|
12555
|
+
|
|
12556
|
+
var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
|
|
12557
|
+
this._t = _toIobject(iterated);
|
|
12558
|
+
this._i = 0;
|
|
12559
|
+
this._k = kind;
|
|
12560
|
+
}, function () {
|
|
12561
|
+
var O = this._t;
|
|
12562
|
+
var kind = this._k;
|
|
12563
|
+
var index = this._i++;
|
|
12564
|
+
if (!O || index >= O.length) {
|
|
12565
|
+
this._t = undefined;
|
|
12566
|
+
return _iterStep(1);
|
|
12567
|
+
}
|
|
12568
|
+
if (kind == 'keys') return _iterStep(0, index);
|
|
12569
|
+
if (kind == 'values') return _iterStep(0, O[index]);
|
|
12570
|
+
return _iterStep(0, [index, O[index]]);
|
|
12571
|
+
}, 'values');
|
|
12572
|
+
_iterators.Arguments = _iterators.Array;
|
|
12573
|
+
|
|
12574
|
+
var TO_STRING_TAG = _wks('toStringTag');
|
|
12575
|
+
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
|
12576
|
+
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
|
12577
|
+
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
|
12578
|
+
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
|
12579
|
+
'TextTrackList,TouchList').split(',');
|
|
12580
|
+
for (var i$1 = 0; i$1 < DOMIterables.length; i$1++) {
|
|
12581
|
+
var NAME = DOMIterables[i$1];
|
|
12582
|
+
var Collection = _global[NAME];
|
|
12583
|
+
var proto = Collection && Collection.prototype;
|
|
12584
|
+
if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
|
|
12585
|
+
_iterators[NAME] = _iterators.Array;
|
|
12586
|
+
}
|
|
12587
|
+
|
|
12588
|
+
var SPECIES = _wks('species');
|
|
12589
|
+
var _arraySpeciesConstructor = function (original) {
|
|
12590
|
+
var C;
|
|
12591
|
+
if (_isArray(original)) {
|
|
12592
|
+
C = original.constructor;
|
|
12593
|
+
if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
|
|
12594
|
+
if (_isObject(C)) {
|
|
12595
|
+
C = C[SPECIES];
|
|
12596
|
+
if (C === null) C = undefined;
|
|
12597
|
+
}
|
|
12598
|
+
} return C === undefined ? Array : C;
|
|
12599
|
+
};
|
|
12600
|
+
|
|
12601
|
+
var _arraySpeciesCreate = function (original, length) {
|
|
12602
|
+
return new (_arraySpeciesConstructor(original))(length);
|
|
12603
|
+
};
|
|
12604
|
+
|
|
12605
|
+
var _arrayMethods = function (TYPE, $create) {
|
|
12606
|
+
var IS_MAP = TYPE == 1;
|
|
12607
|
+
var IS_FILTER = TYPE == 2;
|
|
12608
|
+
var IS_SOME = TYPE == 3;
|
|
12609
|
+
var IS_EVERY = TYPE == 4;
|
|
12610
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
12611
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
12612
|
+
var create = $create || _arraySpeciesCreate;
|
|
12613
|
+
return function ($this, callbackfn, that) {
|
|
12614
|
+
var O = _toObject($this);
|
|
12615
|
+
var self = _iobject(O);
|
|
12616
|
+
var f = _ctx(callbackfn, that, 3);
|
|
12617
|
+
var length = _toLength(self.length);
|
|
12618
|
+
var index = 0;
|
|
12619
|
+
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
12620
|
+
var val, res;
|
|
12621
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
12622
|
+
val = self[index];
|
|
12623
|
+
res = f(val, index, O);
|
|
12624
|
+
if (TYPE) {
|
|
12625
|
+
if (IS_MAP) result[index] = res;
|
|
12626
|
+
else if (res) switch (TYPE) {
|
|
12627
|
+
case 3: return true;
|
|
12628
|
+
case 5: return val;
|
|
12629
|
+
case 6: return index;
|
|
12630
|
+
case 2: result.push(val);
|
|
12631
|
+
} else if (IS_EVERY) return false;
|
|
12632
|
+
}
|
|
12633
|
+
}
|
|
12634
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
|
12635
|
+
};
|
|
12636
|
+
};
|
|
12637
|
+
|
|
12638
|
+
var $assign = Object.assign;
|
|
12639
|
+
var _objectAssign = !$assign || _fails(function () {
|
|
12640
|
+
var A = {};
|
|
12641
|
+
var B = {};
|
|
12642
|
+
var S = Symbol();
|
|
12643
|
+
var K = 'abcdefghijklmnopqrst';
|
|
12644
|
+
A[S] = 7;
|
|
12645
|
+
K.split('').forEach(function (k) { B[k] = k; });
|
|
12646
|
+
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
|
12647
|
+
}) ? function assign(target, source) {
|
|
12648
|
+
var T = _toObject(target);
|
|
12649
|
+
var aLen = arguments.length;
|
|
12650
|
+
var index = 1;
|
|
12651
|
+
var getSymbols = _objectGops.f;
|
|
12652
|
+
var isEnum = _objectPie.f;
|
|
12653
|
+
while (aLen > index) {
|
|
12654
|
+
var S = _iobject(arguments[index++]);
|
|
12655
|
+
var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);
|
|
12656
|
+
var length = keys.length;
|
|
12657
|
+
var j = 0;
|
|
12658
|
+
var key;
|
|
12659
|
+
while (length > j) {
|
|
12660
|
+
key = keys[j++];
|
|
12661
|
+
if (!_descriptors || isEnum.call(S, key)) T[key] = S[key];
|
|
12662
|
+
}
|
|
12663
|
+
} return T;
|
|
12664
|
+
} : $assign;
|
|
12665
|
+
|
|
12666
|
+
var _redefineAll = function (target, src, safe) {
|
|
12667
|
+
for (var key in src) {
|
|
12668
|
+
if (safe && target[key]) target[key] = src[key];
|
|
12669
|
+
else _hide(target, key, src[key]);
|
|
12670
|
+
} return target;
|
|
12671
|
+
};
|
|
12672
|
+
|
|
12673
|
+
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
12674
|
+
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
12675
|
+
throw TypeError(name + ': incorrect invocation!');
|
|
12676
|
+
} return it;
|
|
12677
|
+
};
|
|
12678
|
+
|
|
12679
|
+
var _forOf = createCommonjsModule(function (module) {
|
|
12680
|
+
var BREAK = {};
|
|
12681
|
+
var RETURN = {};
|
|
12682
|
+
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
12683
|
+
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
|
|
12684
|
+
var f = _ctx(fn, that, entries ? 2 : 1);
|
|
12685
|
+
var index = 0;
|
|
12686
|
+
var length, step, iterator, result;
|
|
12687
|
+
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
12688
|
+
if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
|
|
12689
|
+
result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
12690
|
+
if (result === BREAK || result === RETURN) return result;
|
|
12691
|
+
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
12692
|
+
result = _iterCall(iterator, f, step.value, entries);
|
|
12693
|
+
if (result === BREAK || result === RETURN) return result;
|
|
12694
|
+
}
|
|
12695
|
+
};
|
|
12696
|
+
exports.BREAK = BREAK;
|
|
12697
|
+
exports.RETURN = RETURN;
|
|
12698
|
+
});
|
|
12699
|
+
|
|
12700
|
+
var _validateCollection = function (it, TYPE) {
|
|
12701
|
+
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
12702
|
+
return it;
|
|
12703
|
+
};
|
|
12704
|
+
|
|
12705
|
+
var getWeak = _meta.getWeak;
|
|
12706
|
+
var arrayFind = _arrayMethods(5);
|
|
12707
|
+
var arrayFindIndex = _arrayMethods(6);
|
|
12708
|
+
var id$1 = 0;
|
|
12709
|
+
var uncaughtFrozenStore = function (that) {
|
|
12710
|
+
return that._l || (that._l = new UncaughtFrozenStore());
|
|
12711
|
+
};
|
|
12712
|
+
var UncaughtFrozenStore = function () {
|
|
12713
|
+
this.a = [];
|
|
12714
|
+
};
|
|
12715
|
+
var findUncaughtFrozen = function (store, key) {
|
|
12716
|
+
return arrayFind(store.a, function (it) {
|
|
12717
|
+
return it[0] === key;
|
|
12718
|
+
});
|
|
12719
|
+
};
|
|
12720
|
+
UncaughtFrozenStore.prototype = {
|
|
12721
|
+
get: function (key) {
|
|
12722
|
+
var entry = findUncaughtFrozen(this, key);
|
|
12723
|
+
if (entry) return entry[1];
|
|
12724
|
+
},
|
|
12725
|
+
has: function (key) {
|
|
12726
|
+
return !!findUncaughtFrozen(this, key);
|
|
12727
|
+
},
|
|
12728
|
+
set: function (key, value) {
|
|
12729
|
+
var entry = findUncaughtFrozen(this, key);
|
|
12730
|
+
if (entry) entry[1] = value;
|
|
12731
|
+
else this.a.push([key, value]);
|
|
12732
|
+
},
|
|
12733
|
+
'delete': function (key) {
|
|
12734
|
+
var index = arrayFindIndex(this.a, function (it) {
|
|
12735
|
+
return it[0] === key;
|
|
12736
|
+
});
|
|
12737
|
+
if (~index) this.a.splice(index, 1);
|
|
12738
|
+
return !!~index;
|
|
12739
|
+
}
|
|
12740
|
+
};
|
|
12741
|
+
var _collectionWeak = {
|
|
12742
|
+
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
12743
|
+
var C = wrapper(function (that, iterable) {
|
|
12744
|
+
_anInstance(that, C, NAME, '_i');
|
|
12745
|
+
that._t = NAME;
|
|
12746
|
+
that._i = id$1++;
|
|
12747
|
+
that._l = undefined;
|
|
12748
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
|
|
12749
|
+
});
|
|
12750
|
+
_redefineAll(C.prototype, {
|
|
12751
|
+
'delete': function (key) {
|
|
12752
|
+
if (!_isObject(key)) return false;
|
|
12753
|
+
var data = getWeak(key);
|
|
12754
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key);
|
|
12755
|
+
return data && _has(data, this._i) && delete data[this._i];
|
|
12756
|
+
},
|
|
12757
|
+
has: function has(key) {
|
|
12758
|
+
if (!_isObject(key)) return false;
|
|
12759
|
+
var data = getWeak(key);
|
|
12760
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
|
|
12761
|
+
return data && _has(data, this._i);
|
|
12762
|
+
}
|
|
12763
|
+
});
|
|
12764
|
+
return C;
|
|
12765
|
+
},
|
|
12766
|
+
def: function (that, key, value) {
|
|
12767
|
+
var data = getWeak(_anObject(key), true);
|
|
12768
|
+
if (data === true) uncaughtFrozenStore(that).set(key, value);
|
|
12769
|
+
else data[that._i] = value;
|
|
12770
|
+
return that;
|
|
12771
|
+
},
|
|
12772
|
+
ufstore: uncaughtFrozenStore
|
|
12773
|
+
};
|
|
12774
|
+
|
|
12775
|
+
var dP$2 = _objectDp.f;
|
|
12776
|
+
var each = _arrayMethods(0);
|
|
12777
|
+
var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
12778
|
+
var Base = _global[NAME];
|
|
12779
|
+
var C = Base;
|
|
12780
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
12781
|
+
var proto = C && C.prototype;
|
|
12782
|
+
var O = {};
|
|
12783
|
+
if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
|
|
12784
|
+
new C().entries().next();
|
|
12785
|
+
}))) {
|
|
12786
|
+
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
12787
|
+
_redefineAll(C.prototype, methods);
|
|
12788
|
+
_meta.NEED = true;
|
|
12789
|
+
} else {
|
|
12790
|
+
C = wrapper(function (target, iterable) {
|
|
12791
|
+
_anInstance(target, C, NAME, '_c');
|
|
12792
|
+
target._c = new Base();
|
|
12793
|
+
if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
|
|
12794
|
+
});
|
|
12795
|
+
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
|
|
12796
|
+
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
12797
|
+
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
|
|
12798
|
+
_anInstance(this, C, KEY);
|
|
12799
|
+
if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
|
|
12800
|
+
var result = this._c[KEY](a === 0 ? 0 : a, b);
|
|
12801
|
+
return IS_ADDER ? this : result;
|
|
12802
|
+
});
|
|
12803
|
+
});
|
|
12804
|
+
IS_WEAK || dP$2(C.prototype, 'size', {
|
|
12805
|
+
get: function () {
|
|
12806
|
+
return this._c.size;
|
|
12807
|
+
}
|
|
12808
|
+
});
|
|
12809
|
+
}
|
|
12810
|
+
_setToStringTag(C, NAME);
|
|
12811
|
+
O[NAME] = C;
|
|
12812
|
+
_export(_export.G + _export.W + _export.F, O);
|
|
12813
|
+
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
|
|
12814
|
+
return C;
|
|
12815
|
+
};
|
|
12816
|
+
|
|
12817
|
+
var es6_weakMap = createCommonjsModule(function (module) {
|
|
12818
|
+
var each = _arrayMethods(0);
|
|
12819
|
+
var NATIVE_WEAK_MAP = _validateCollection;
|
|
12820
|
+
var IS_IE11 = !_global.ActiveXObject && 'ActiveXObject' in _global;
|
|
12821
|
+
var WEAK_MAP = 'WeakMap';
|
|
12822
|
+
var getWeak = _meta.getWeak;
|
|
12823
|
+
var isExtensible = Object.isExtensible;
|
|
12824
|
+
var uncaughtFrozenStore = _collectionWeak.ufstore;
|
|
12825
|
+
var InternalMap;
|
|
12826
|
+
var wrapper = function (get) {
|
|
12827
|
+
return function WeakMap() {
|
|
12828
|
+
return get(this, arguments.length > 0 ? arguments[0] : undefined);
|
|
12829
|
+
};
|
|
12830
|
+
};
|
|
12831
|
+
var methods = {
|
|
12832
|
+
get: function get(key) {
|
|
12833
|
+
if (_isObject(key)) {
|
|
12834
|
+
var data = getWeak(key);
|
|
12835
|
+
if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key);
|
|
12836
|
+
return data ? data[this._i] : undefined;
|
|
12837
|
+
}
|
|
12838
|
+
},
|
|
12839
|
+
set: function set(key, value) {
|
|
12840
|
+
return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
|
|
12841
|
+
}
|
|
12842
|
+
};
|
|
12843
|
+
var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
|
|
12844
|
+
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
12845
|
+
InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
|
|
12846
|
+
_objectAssign(InternalMap.prototype, methods);
|
|
12847
|
+
_meta.NEED = true;
|
|
12848
|
+
each(['delete', 'has', 'get', 'set'], function (key) {
|
|
12849
|
+
var proto = $WeakMap.prototype;
|
|
12850
|
+
var method = proto[key];
|
|
12851
|
+
_redefine(proto, key, function (a, b) {
|
|
12852
|
+
if (_isObject(a) && !isExtensible(a)) {
|
|
12853
|
+
if (!this._f) this._f = new InternalMap();
|
|
12854
|
+
var result = this._f[key](a, b);
|
|
12855
|
+
return key == 'set' ? this : result;
|
|
12856
|
+
} return method.call(this, a, b);
|
|
12857
|
+
});
|
|
12858
|
+
});
|
|
12859
|
+
}
|
|
12860
|
+
});
|
|
12861
|
+
|
|
12862
|
+
var _setCollectionOf = function (COLLECTION) {
|
|
12863
|
+
_export(_export.S, COLLECTION, { of: function of() {
|
|
12864
|
+
var length = arguments.length;
|
|
12865
|
+
var A = new Array(length);
|
|
12866
|
+
while (length--) A[length] = arguments[length];
|
|
12867
|
+
return new this(A);
|
|
12868
|
+
} });
|
|
12869
|
+
};
|
|
12870
|
+
|
|
12871
|
+
_setCollectionOf('WeakMap');
|
|
12872
|
+
|
|
12873
|
+
var _setCollectionFrom = function (COLLECTION) {
|
|
12874
|
+
_export(_export.S, COLLECTION, { from: function from(source ) {
|
|
12875
|
+
var mapFn = arguments[1];
|
|
12876
|
+
var mapping, A, n, cb;
|
|
12877
|
+
_aFunction(this);
|
|
12878
|
+
mapping = mapFn !== undefined;
|
|
12879
|
+
if (mapping) _aFunction(mapFn);
|
|
12880
|
+
if (source == undefined) return new this();
|
|
12881
|
+
A = [];
|
|
12882
|
+
if (mapping) {
|
|
12883
|
+
n = 0;
|
|
12884
|
+
cb = _ctx(mapFn, arguments[2], 2);
|
|
12885
|
+
_forOf(source, false, function (nextItem) {
|
|
12886
|
+
A.push(cb(nextItem, n++));
|
|
12887
|
+
});
|
|
12888
|
+
} else {
|
|
12889
|
+
_forOf(source, false, A.push, A);
|
|
12890
|
+
}
|
|
12891
|
+
return new this(A);
|
|
12892
|
+
} });
|
|
12893
|
+
};
|
|
12894
|
+
|
|
12895
|
+
_setCollectionFrom('WeakMap');
|
|
12896
|
+
|
|
12897
|
+
var weakMap = _core.WeakMap;
|
|
12898
|
+
|
|
12899
|
+
var weakMap$1 = weakMap;
|
|
12900
|
+
|
|
12901
|
+
var instanceStore = new weakMap$1();
|
|
12902
|
+
var activeModal;
|
|
12903
|
+
var appendMaskDiv = function appendMaskDiv(target) {
|
|
12904
|
+
var div = document.createElement('div');
|
|
12905
|
+
div.style.setProperty('position', 'fixed');
|
|
12906
|
+
div.style.setProperty('left', '0');
|
|
12907
|
+
div.style.setProperty('top', '0');
|
|
12908
|
+
div.style.setProperty('width', '100%');
|
|
12909
|
+
div.style.setProperty('height', '100%');
|
|
12910
|
+
if (target.firstChild) {
|
|
12911
|
+
return target.insertBefore(div, target.firstChild);
|
|
12912
|
+
}
|
|
12913
|
+
return null;
|
|
12914
|
+
};
|
|
12915
|
+
var loopSetMaskStyle = function loopSetMaskStyle(modal, show) {
|
|
12916
|
+
if (!modal) {
|
|
12917
|
+
return;
|
|
12918
|
+
}
|
|
12919
|
+
if (instanceStore.has(modal)) {
|
|
12920
|
+
var _instanceStore$get = instanceStore.get(modal),
|
|
12921
|
+
mask = _instanceStore$get.mask,
|
|
12922
|
+
backgroundColor = _instanceStore$get.backgroundColor;
|
|
12923
|
+
if (mask) {
|
|
12924
|
+
mask.style.setProperty('background-color', show ? 'transparent' : backgroundColor);
|
|
12925
|
+
}
|
|
12926
|
+
}
|
|
12927
|
+
};
|
|
12928
|
+
var showMask = function showMask(options) {
|
|
12929
|
+
if (!options.el || options.showMask === false) {
|
|
12930
|
+
return;
|
|
12931
|
+
}
|
|
12932
|
+
if (!instanceStore.has(options.el)) {
|
|
12933
|
+
var _mask = appendMaskDiv(options.el);
|
|
12934
|
+
_mask.style.setProperty('background-color', options.backgroundColor);
|
|
12935
|
+
instanceStore.set(options.el, _objectSpread({}, options, {
|
|
12936
|
+
mask: _mask,
|
|
12937
|
+
referenceParent: activeModal
|
|
12938
|
+
}));
|
|
12939
|
+
if (typeof options.onClick === 'function') {
|
|
12940
|
+
_mask.addEventListener('click', options.onClick);
|
|
12941
|
+
}
|
|
12942
|
+
}
|
|
12943
|
+
var mask = instanceStore.get(options.el).mask;
|
|
12944
|
+
if (mask) {
|
|
12945
|
+
mask.style.setProperty('display', 'inherit');
|
|
12946
|
+
}
|
|
12947
|
+
loopSetMaskStyle(activeModal, options.showMask);
|
|
12948
|
+
activeModal = options.el;
|
|
12949
|
+
};
|
|
12950
|
+
var hideMask = function hideMask(options) {
|
|
12951
|
+
if (options.el && instanceStore.has(options.el)) {
|
|
12952
|
+
var _instanceStore$get2 = instanceStore.get(options.el),
|
|
12953
|
+
referenceParent = _instanceStore$get2.referenceParent,
|
|
12954
|
+
mask = _instanceStore$get2.mask;
|
|
12955
|
+
activeModal = referenceParent;
|
|
12956
|
+
loopSetMaskStyle(referenceParent, false);
|
|
12957
|
+
if (mask) {
|
|
12958
|
+
mask.style.setProperty('display', 'none');
|
|
12959
|
+
}
|
|
12960
|
+
}
|
|
12961
|
+
};
|
|
12962
|
+
var mask = {
|
|
12963
|
+
showMask: showMask,
|
|
12964
|
+
hideMask: hideMask
|
|
12965
|
+
};
|
|
12966
|
+
|
|
12552
12967
|
var zIndex$1 = {
|
|
12553
12968
|
props: {
|
|
12554
12969
|
zIndex: {
|
|
@@ -12873,7 +13288,10 @@
|
|
|
12873
13288
|
}
|
|
12874
13289
|
_this.removeScrollEffect();
|
|
12875
13290
|
}, 300);
|
|
12876
|
-
|
|
13291
|
+
mask.hideMask({
|
|
13292
|
+
el: this.$el,
|
|
13293
|
+
showMask: this.showMask
|
|
13294
|
+
});
|
|
12877
13295
|
} else {
|
|
12878
13296
|
this.addScrollEffect();
|
|
12879
13297
|
this.$nextTick(function () {
|
|
@@ -12891,14 +13309,11 @@
|
|
|
12891
13309
|
}, 0);
|
|
12892
13310
|
}
|
|
12893
13311
|
_this.dialogIndex = _this.zIndex !== undefined ? _this.zIndex : _this.getLocalZIndex();
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
};
|
|
12900
|
-
_this.popUid = popManager.show("bk-dialog-".concat(_this.uuid), _this.$el, options);
|
|
12901
|
-
}
|
|
13312
|
+
mask.showMask({
|
|
13313
|
+
el: _this.$el,
|
|
13314
|
+
showMask: _this.showMask,
|
|
13315
|
+
backgroundColor: 'rgba(0, 0, 0, 0.6)'
|
|
13316
|
+
});
|
|
12902
13317
|
});
|
|
12903
13318
|
}
|
|
12904
13319
|
this.$emit('value-change', val);
|
|
@@ -13167,6 +13582,7 @@
|
|
|
13167
13582
|
"top": "-100000px",
|
|
13168
13583
|
"left": "-100000px"
|
|
13169
13584
|
},
|
|
13585
|
+
style: _vm.wrapStyles,
|
|
13170
13586
|
attrs: {
|
|
13171
13587
|
"data-transfer": _vm.transfer
|
|
13172
13588
|
}
|
|
@@ -25273,74 +25689,11 @@
|
|
|
25273
25689
|
|
|
25274
25690
|
setInstaller(__vue_component__$y);
|
|
25275
25691
|
|
|
25276
|
-
var
|
|
25277
|
-
return { value: value, done: !!done };
|
|
25278
|
-
};
|
|
25279
|
-
|
|
25280
|
-
var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
|
|
25281
|
-
this._t = _toIobject(iterated);
|
|
25282
|
-
this._i = 0;
|
|
25283
|
-
this._k = kind;
|
|
25284
|
-
}, function () {
|
|
25285
|
-
var O = this._t;
|
|
25286
|
-
var kind = this._k;
|
|
25287
|
-
var index = this._i++;
|
|
25288
|
-
if (!O || index >= O.length) {
|
|
25289
|
-
this._t = undefined;
|
|
25290
|
-
return _iterStep(1);
|
|
25291
|
-
}
|
|
25292
|
-
if (kind == 'keys') return _iterStep(0, index);
|
|
25293
|
-
if (kind == 'values') return _iterStep(0, O[index]);
|
|
25294
|
-
return _iterStep(0, [index, O[index]]);
|
|
25295
|
-
}, 'values');
|
|
25296
|
-
_iterators.Arguments = _iterators.Array;
|
|
25297
|
-
|
|
25298
|
-
var TO_STRING_TAG = _wks('toStringTag');
|
|
25299
|
-
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
|
25300
|
-
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
|
25301
|
-
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
|
25302
|
-
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
|
25303
|
-
'TextTrackList,TouchList').split(',');
|
|
25304
|
-
for (var i$1 = 0; i$1 < DOMIterables.length; i$1++) {
|
|
25305
|
-
var NAME = DOMIterables[i$1];
|
|
25306
|
-
var Collection = _global[NAME];
|
|
25307
|
-
var proto = Collection && Collection.prototype;
|
|
25308
|
-
if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
|
|
25309
|
-
_iterators[NAME] = _iterators.Array;
|
|
25310
|
-
}
|
|
25311
|
-
|
|
25312
|
-
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
25313
|
-
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
25314
|
-
throw TypeError(name + ': incorrect invocation!');
|
|
25315
|
-
} return it;
|
|
25316
|
-
};
|
|
25317
|
-
|
|
25318
|
-
var _forOf = createCommonjsModule(function (module) {
|
|
25319
|
-
var BREAK = {};
|
|
25320
|
-
var RETURN = {};
|
|
25321
|
-
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
25322
|
-
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
|
|
25323
|
-
var f = _ctx(fn, that, entries ? 2 : 1);
|
|
25324
|
-
var index = 0;
|
|
25325
|
-
var length, step, iterator, result;
|
|
25326
|
-
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
25327
|
-
if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
|
|
25328
|
-
result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
25329
|
-
if (result === BREAK || result === RETURN) return result;
|
|
25330
|
-
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
25331
|
-
result = _iterCall(iterator, f, step.value, entries);
|
|
25332
|
-
if (result === BREAK || result === RETURN) return result;
|
|
25333
|
-
}
|
|
25334
|
-
};
|
|
25335
|
-
exports.BREAK = BREAK;
|
|
25336
|
-
exports.RETURN = RETURN;
|
|
25337
|
-
});
|
|
25338
|
-
|
|
25339
|
-
var SPECIES = _wks('species');
|
|
25692
|
+
var SPECIES$1 = _wks('species');
|
|
25340
25693
|
var _speciesConstructor = function (O, D) {
|
|
25341
25694
|
var C = _anObject(O).constructor;
|
|
25342
25695
|
var S;
|
|
25343
|
-
return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S);
|
|
25696
|
+
return C === undefined || (S = _anObject(C)[SPECIES$1]) == undefined ? D : _aFunction(S);
|
|
25344
25697
|
};
|
|
25345
25698
|
|
|
25346
25699
|
var _invoke = function (fn, args, that) {
|
|
@@ -25520,17 +25873,10 @@
|
|
|
25520
25873
|
return promiseCapability.promise;
|
|
25521
25874
|
};
|
|
25522
25875
|
|
|
25523
|
-
var
|
|
25524
|
-
for (var key in src) {
|
|
25525
|
-
if (safe && target[key]) target[key] = src[key];
|
|
25526
|
-
else _hide(target, key, src[key]);
|
|
25527
|
-
} return target;
|
|
25528
|
-
};
|
|
25529
|
-
|
|
25530
|
-
var SPECIES$1 = _wks('species');
|
|
25876
|
+
var SPECIES$2 = _wks('species');
|
|
25531
25877
|
var _setSpecies = function (KEY) {
|
|
25532
25878
|
var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
|
|
25533
|
-
if (_descriptors && C && !C[SPECIES$
|
|
25879
|
+
if (_descriptors && C && !C[SPECIES$2]) _objectDp.f(C, SPECIES$2, {
|
|
25534
25880
|
configurable: true,
|
|
25535
25881
|
get: function () { return this; }
|
|
25536
25882
|
});
|
|
@@ -26018,34 +26364,6 @@
|
|
|
26018
26364
|
|
|
26019
26365
|
setInstaller(__vue_component__$z);
|
|
26020
26366
|
|
|
26021
|
-
var $assign = Object.assign;
|
|
26022
|
-
var _objectAssign = !$assign || _fails(function () {
|
|
26023
|
-
var A = {};
|
|
26024
|
-
var B = {};
|
|
26025
|
-
var S = Symbol();
|
|
26026
|
-
var K = 'abcdefghijklmnopqrst';
|
|
26027
|
-
A[S] = 7;
|
|
26028
|
-
K.split('').forEach(function (k) { B[k] = k; });
|
|
26029
|
-
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
|
26030
|
-
}) ? function assign(target, source) {
|
|
26031
|
-
var T = _toObject(target);
|
|
26032
|
-
var aLen = arguments.length;
|
|
26033
|
-
var index = 1;
|
|
26034
|
-
var getSymbols = _objectGops.f;
|
|
26035
|
-
var isEnum = _objectPie.f;
|
|
26036
|
-
while (aLen > index) {
|
|
26037
|
-
var S = _iobject(arguments[index++]);
|
|
26038
|
-
var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);
|
|
26039
|
-
var length = keys.length;
|
|
26040
|
-
var j = 0;
|
|
26041
|
-
var key;
|
|
26042
|
-
while (length > j) {
|
|
26043
|
-
key = keys[j++];
|
|
26044
|
-
if (!_descriptors || isEnum.call(S, key)) T[key] = S[key];
|
|
26045
|
-
}
|
|
26046
|
-
} return T;
|
|
26047
|
-
} : $assign;
|
|
26048
|
-
|
|
26049
26367
|
_export(_export.S + _export.F, 'Object', { assign: _objectAssign });
|
|
26050
26368
|
|
|
26051
26369
|
var assign = _core.Object.assign;
|
|
@@ -29235,6 +29553,9 @@
|
|
|
29235
29553
|
|
|
29236
29554
|
var script$B = {
|
|
29237
29555
|
name: 'bk-input',
|
|
29556
|
+
directives: {
|
|
29557
|
+
bkTooltips: bkTooltips
|
|
29558
|
+
},
|
|
29238
29559
|
mixins: [emitter, locale.mixin],
|
|
29239
29560
|
props: {
|
|
29240
29561
|
type: {
|
|
@@ -29344,7 +29665,12 @@
|
|
|
29344
29665
|
allowNumberPaste: {
|
|
29345
29666
|
type: Boolean,
|
|
29346
29667
|
default: false
|
|
29347
|
-
}
|
|
29668
|
+
},
|
|
29669
|
+
showOverflowTooltips: {
|
|
29670
|
+
type: Boolean,
|
|
29671
|
+
default: false
|
|
29672
|
+
},
|
|
29673
|
+
initialControlValue: Number
|
|
29348
29674
|
},
|
|
29349
29675
|
data: function data() {
|
|
29350
29676
|
return {
|
|
@@ -29365,6 +29691,9 @@
|
|
|
29365
29691
|
inputPasswordIcon: this.passwordIcon,
|
|
29366
29692
|
inputRightPadding: '10px',
|
|
29367
29693
|
iconAreaSizeObserver: null,
|
|
29694
|
+
inputResizeObserver: null,
|
|
29695
|
+
isInputOverflow: false,
|
|
29696
|
+
inputClientWidth: null,
|
|
29368
29697
|
validKeyCodeList: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
|
|
29369
29698
|
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
|
|
29370
29699
|
8,
|
|
@@ -29436,6 +29765,13 @@
|
|
|
29436
29765
|
return "bk-input-".concat(this.inputSize);
|
|
29437
29766
|
}
|
|
29438
29767
|
return '';
|
|
29768
|
+
},
|
|
29769
|
+
inputTooltips: function inputTooltips() {
|
|
29770
|
+
return {
|
|
29771
|
+
content: this.curValue,
|
|
29772
|
+
disabled: !this.showOverflowTooltips || this.type === 'password' || !this.isInputOverflow,
|
|
29773
|
+
width: this.inputClientWidth && this.inputClientWidth
|
|
29774
|
+
};
|
|
29439
29775
|
}
|
|
29440
29776
|
},
|
|
29441
29777
|
watch: {
|
|
@@ -29443,6 +29779,7 @@
|
|
|
29443
29779
|
handler: function handler(val, old) {
|
|
29444
29780
|
this.setCurValue(val);
|
|
29445
29781
|
old === undefined && this.updateNumberValue(val);
|
|
29782
|
+
this.setOverflow();
|
|
29446
29783
|
},
|
|
29447
29784
|
immediate: true
|
|
29448
29785
|
},
|
|
@@ -29477,10 +29814,13 @@
|
|
|
29477
29814
|
};
|
|
29478
29815
|
}
|
|
29479
29816
|
this.observerIconSize();
|
|
29817
|
+
this.observerInputSize();
|
|
29480
29818
|
},
|
|
29481
29819
|
beforeDestroy: function beforeDestroy() {
|
|
29482
29820
|
this.iconAreaSizeObserver && typeof this.iconAreaSizeObserver.disconnect === 'function' && this.iconAreaSizeObserver.disconnect();
|
|
29483
29821
|
this.iconAreaSizeObserver = null;
|
|
29822
|
+
this.inputResizeObserver && this.inputResizeObserver.disconnect();
|
|
29823
|
+
this.inputResizeObserver = null;
|
|
29484
29824
|
},
|
|
29485
29825
|
methods: {
|
|
29486
29826
|
observerIconSize: function observerIconSize() {
|
|
@@ -29507,6 +29847,41 @@
|
|
|
29507
29847
|
this.iconAreaSizeObserver.observe(element);
|
|
29508
29848
|
}
|
|
29509
29849
|
},
|
|
29850
|
+
observerInputSize: function observerInputSize() {
|
|
29851
|
+
var _this3 = this;
|
|
29852
|
+
var element = this.$refs.input;
|
|
29853
|
+
if (!element) return;
|
|
29854
|
+
this.inputResizeObserver = new ResizeObserver(function (entries) {
|
|
29855
|
+
var _iterator2 = _createForOfIteratorHelper(entries),
|
|
29856
|
+
_step2;
|
|
29857
|
+
try {
|
|
29858
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
29859
|
+
var entry = _step2.value;
|
|
29860
|
+
if (entry.target === element) {
|
|
29861
|
+
_this3.setOverflow();
|
|
29862
|
+
}
|
|
29863
|
+
}
|
|
29864
|
+
} catch (err) {
|
|
29865
|
+
_iterator2.e(err);
|
|
29866
|
+
} finally {
|
|
29867
|
+
_iterator2.f();
|
|
29868
|
+
}
|
|
29869
|
+
});
|
|
29870
|
+
this.inputResizeObserver.observe(element);
|
|
29871
|
+
},
|
|
29872
|
+
setOverflow: function setOverflow() {
|
|
29873
|
+
var _this4 = this;
|
|
29874
|
+
setTimeout(function () {
|
|
29875
|
+
var inputEl = _this4.$refs.input;
|
|
29876
|
+
if (inputEl) {
|
|
29877
|
+
_this4.isInputOverflow = inputEl.scrollWidth > inputEl.clientWidth + 2;
|
|
29878
|
+
if (inputEl.clientWidth !== _this4.inputClientWidth) {
|
|
29879
|
+
_this4.$refs.inputWrapper._tippy && _this4.$refs.inputWrapper._tippy.destroy();
|
|
29880
|
+
}
|
|
29881
|
+
_this4.inputClientWidth = inputEl.clientWidth;
|
|
29882
|
+
}
|
|
29883
|
+
});
|
|
29884
|
+
},
|
|
29510
29885
|
getAttributeByType: function getAttributeByType() {
|
|
29511
29886
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
29512
29887
|
var defaultAttr = {
|
|
@@ -29592,7 +29967,9 @@
|
|
|
29592
29967
|
}
|
|
29593
29968
|
},
|
|
29594
29969
|
handleNumberDelete: function handleNumberDelete(event) {
|
|
29595
|
-
this.curValue === ''
|
|
29970
|
+
if (this.curValue === '') {
|
|
29971
|
+
this.curValue = this.initialControlValue === undefined ? this.max : Math.min(this.initialControlValue, this.max);
|
|
29972
|
+
}
|
|
29596
29973
|
var curNumberValue = Number(this.curValue);
|
|
29597
29974
|
if (curNumberValue - 1 >= this.min) {
|
|
29598
29975
|
var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
|
|
@@ -29607,7 +29984,9 @@
|
|
|
29607
29984
|
}
|
|
29608
29985
|
},
|
|
29609
29986
|
handleNumberAdd: function handleNumberAdd(event) {
|
|
29610
|
-
this.curValue === ''
|
|
29987
|
+
if (this.curValue === '') {
|
|
29988
|
+
this.curValue = this.initialControlValue === undefined ? this.min : Math.max(this.initialControlValue, this.min);
|
|
29989
|
+
}
|
|
29611
29990
|
var curNumberValue = Number(this.curValue);
|
|
29612
29991
|
if (curNumberValue <= this.max - 1) {
|
|
29613
29992
|
var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
|
|
@@ -29761,16 +30140,16 @@
|
|
|
29761
30140
|
}
|
|
29762
30141
|
},
|
|
29763
30142
|
handlerInput: function handlerInput(event) {
|
|
29764
|
-
var
|
|
30143
|
+
var _this5 = this;
|
|
29765
30144
|
if (this.inputType === 'number' && this.isOnComposition) {
|
|
29766
30145
|
return;
|
|
29767
30146
|
}
|
|
29768
30147
|
this.$nextTick(function () {
|
|
29769
30148
|
var value = event.target.value;
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
30149
|
+
_this5.setCurValue(value);
|
|
30150
|
+
_this5.$emit('input', value, event);
|
|
30151
|
+
_this5.$emit('change', value, event);
|
|
30152
|
+
_this5.dispatch('bk-form-item', 'form-change');
|
|
29774
30153
|
});
|
|
29775
30154
|
},
|
|
29776
30155
|
handlerClear: function handlerClear(event) {
|
|
@@ -29875,6 +30254,13 @@
|
|
|
29875
30254
|
}, [_c('span', {
|
|
29876
30255
|
staticClass: "strong"
|
|
29877
30256
|
}, [_vm._v(_vm._s(_vm.curValue && _vm.curValue.length || 0))]), _vm._v("/"), _c('span', [_vm._v(_vm._s(_vm.maxlength))])])] : _vm._e()], 2)] : [_c('div', {
|
|
30257
|
+
directives: [{
|
|
30258
|
+
name: "bk-tooltips",
|
|
30259
|
+
rawName: "v-bk-tooltips",
|
|
30260
|
+
value: _vm.inputTooltips,
|
|
30261
|
+
expression: "inputTooltips"
|
|
30262
|
+
}],
|
|
30263
|
+
ref: "inputWrapper",
|
|
29878
30264
|
class: ["bk-input-" + _vm.type]
|
|
29879
30265
|
}, [_c('input', _vm._b({
|
|
29880
30266
|
ref: "input",
|
|
@@ -30186,11 +30572,11 @@
|
|
|
30186
30572
|
staticClass: "point point3"
|
|
30187
30573
|
}), _c('div', {
|
|
30188
30574
|
staticClass: "point point4"
|
|
30189
|
-
})]], 2), _c('div', {
|
|
30575
|
+
})]], 2), _vm.title ? _c('div', {
|
|
30190
30576
|
staticClass: "bk-loading-title"
|
|
30191
30577
|
}, [_vm._t("title", function () {
|
|
30192
30578
|
return [_vm._v(_vm._s(_vm.title))];
|
|
30193
|
-
})], 2)])])], 1) : _c('transition', {
|
|
30579
|
+
})], 2) : _vm._e()])])], 1) : _c('transition', {
|
|
30194
30580
|
attrs: {
|
|
30195
30581
|
"name": "fade",
|
|
30196
30582
|
"duration": {
|
|
@@ -30242,11 +30628,11 @@
|
|
|
30242
30628
|
staticClass: "point point3"
|
|
30243
30629
|
}), _c('div', {
|
|
30244
30630
|
staticClass: "point point4"
|
|
30245
|
-
})]], 2), _c('div', {
|
|
30631
|
+
})]], 2), _vm.title ? _c('div', {
|
|
30246
30632
|
staticClass: "bk-loading-title"
|
|
30247
30633
|
}, [_vm._t("title", function () {
|
|
30248
30634
|
return [_vm._v(_vm._s(_vm.title))];
|
|
30249
|
-
})], 2)])])]);
|
|
30635
|
+
})], 2) : _vm._e()])])]);
|
|
30250
30636
|
};
|
|
30251
30637
|
var __vue_staticRenderFns__$C = [];
|
|
30252
30638
|
|
|
@@ -30337,6 +30723,9 @@
|
|
|
30337
30723
|
if (options.title) {
|
|
30338
30724
|
el.$vm.title = options.title;
|
|
30339
30725
|
}
|
|
30726
|
+
if (options.size) {
|
|
30727
|
+
el.$vm.size = options.size;
|
|
30728
|
+
}
|
|
30340
30729
|
}
|
|
30341
30730
|
var bkLoading = {
|
|
30342
30731
|
inserted: function inserted(el, binding) {
|
|
@@ -30417,257 +30806,6 @@
|
|
|
30417
30806
|
|
|
30418
30807
|
var apply$1 = apply;
|
|
30419
30808
|
|
|
30420
|
-
var SPECIES$2 = _wks('species');
|
|
30421
|
-
var _arraySpeciesConstructor = function (original) {
|
|
30422
|
-
var C;
|
|
30423
|
-
if (_isArray(original)) {
|
|
30424
|
-
C = original.constructor;
|
|
30425
|
-
if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
|
|
30426
|
-
if (_isObject(C)) {
|
|
30427
|
-
C = C[SPECIES$2];
|
|
30428
|
-
if (C === null) C = undefined;
|
|
30429
|
-
}
|
|
30430
|
-
} return C === undefined ? Array : C;
|
|
30431
|
-
};
|
|
30432
|
-
|
|
30433
|
-
var _arraySpeciesCreate = function (original, length) {
|
|
30434
|
-
return new (_arraySpeciesConstructor(original))(length);
|
|
30435
|
-
};
|
|
30436
|
-
|
|
30437
|
-
var _arrayMethods = function (TYPE, $create) {
|
|
30438
|
-
var IS_MAP = TYPE == 1;
|
|
30439
|
-
var IS_FILTER = TYPE == 2;
|
|
30440
|
-
var IS_SOME = TYPE == 3;
|
|
30441
|
-
var IS_EVERY = TYPE == 4;
|
|
30442
|
-
var IS_FIND_INDEX = TYPE == 6;
|
|
30443
|
-
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
30444
|
-
var create = $create || _arraySpeciesCreate;
|
|
30445
|
-
return function ($this, callbackfn, that) {
|
|
30446
|
-
var O = _toObject($this);
|
|
30447
|
-
var self = _iobject(O);
|
|
30448
|
-
var f = _ctx(callbackfn, that, 3);
|
|
30449
|
-
var length = _toLength(self.length);
|
|
30450
|
-
var index = 0;
|
|
30451
|
-
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
30452
|
-
var val, res;
|
|
30453
|
-
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
30454
|
-
val = self[index];
|
|
30455
|
-
res = f(val, index, O);
|
|
30456
|
-
if (TYPE) {
|
|
30457
|
-
if (IS_MAP) result[index] = res;
|
|
30458
|
-
else if (res) switch (TYPE) {
|
|
30459
|
-
case 3: return true;
|
|
30460
|
-
case 5: return val;
|
|
30461
|
-
case 6: return index;
|
|
30462
|
-
case 2: result.push(val);
|
|
30463
|
-
} else if (IS_EVERY) return false;
|
|
30464
|
-
}
|
|
30465
|
-
}
|
|
30466
|
-
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
|
30467
|
-
};
|
|
30468
|
-
};
|
|
30469
|
-
|
|
30470
|
-
var _validateCollection = function (it, TYPE) {
|
|
30471
|
-
if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
|
|
30472
|
-
return it;
|
|
30473
|
-
};
|
|
30474
|
-
|
|
30475
|
-
var getWeak = _meta.getWeak;
|
|
30476
|
-
var arrayFind = _arrayMethods(5);
|
|
30477
|
-
var arrayFindIndex = _arrayMethods(6);
|
|
30478
|
-
var id$1 = 0;
|
|
30479
|
-
var uncaughtFrozenStore = function (that) {
|
|
30480
|
-
return that._l || (that._l = new UncaughtFrozenStore());
|
|
30481
|
-
};
|
|
30482
|
-
var UncaughtFrozenStore = function () {
|
|
30483
|
-
this.a = [];
|
|
30484
|
-
};
|
|
30485
|
-
var findUncaughtFrozen = function (store, key) {
|
|
30486
|
-
return arrayFind(store.a, function (it) {
|
|
30487
|
-
return it[0] === key;
|
|
30488
|
-
});
|
|
30489
|
-
};
|
|
30490
|
-
UncaughtFrozenStore.prototype = {
|
|
30491
|
-
get: function (key) {
|
|
30492
|
-
var entry = findUncaughtFrozen(this, key);
|
|
30493
|
-
if (entry) return entry[1];
|
|
30494
|
-
},
|
|
30495
|
-
has: function (key) {
|
|
30496
|
-
return !!findUncaughtFrozen(this, key);
|
|
30497
|
-
},
|
|
30498
|
-
set: function (key, value) {
|
|
30499
|
-
var entry = findUncaughtFrozen(this, key);
|
|
30500
|
-
if (entry) entry[1] = value;
|
|
30501
|
-
else this.a.push([key, value]);
|
|
30502
|
-
},
|
|
30503
|
-
'delete': function (key) {
|
|
30504
|
-
var index = arrayFindIndex(this.a, function (it) {
|
|
30505
|
-
return it[0] === key;
|
|
30506
|
-
});
|
|
30507
|
-
if (~index) this.a.splice(index, 1);
|
|
30508
|
-
return !!~index;
|
|
30509
|
-
}
|
|
30510
|
-
};
|
|
30511
|
-
var _collectionWeak = {
|
|
30512
|
-
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
30513
|
-
var C = wrapper(function (that, iterable) {
|
|
30514
|
-
_anInstance(that, C, NAME, '_i');
|
|
30515
|
-
that._t = NAME;
|
|
30516
|
-
that._i = id$1++;
|
|
30517
|
-
that._l = undefined;
|
|
30518
|
-
if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
|
|
30519
|
-
});
|
|
30520
|
-
_redefineAll(C.prototype, {
|
|
30521
|
-
'delete': function (key) {
|
|
30522
|
-
if (!_isObject(key)) return false;
|
|
30523
|
-
var data = getWeak(key);
|
|
30524
|
-
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key);
|
|
30525
|
-
return data && _has(data, this._i) && delete data[this._i];
|
|
30526
|
-
},
|
|
30527
|
-
has: function has(key) {
|
|
30528
|
-
if (!_isObject(key)) return false;
|
|
30529
|
-
var data = getWeak(key);
|
|
30530
|
-
if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
|
|
30531
|
-
return data && _has(data, this._i);
|
|
30532
|
-
}
|
|
30533
|
-
});
|
|
30534
|
-
return C;
|
|
30535
|
-
},
|
|
30536
|
-
def: function (that, key, value) {
|
|
30537
|
-
var data = getWeak(_anObject(key), true);
|
|
30538
|
-
if (data === true) uncaughtFrozenStore(that).set(key, value);
|
|
30539
|
-
else data[that._i] = value;
|
|
30540
|
-
return that;
|
|
30541
|
-
},
|
|
30542
|
-
ufstore: uncaughtFrozenStore
|
|
30543
|
-
};
|
|
30544
|
-
|
|
30545
|
-
var dP$2 = _objectDp.f;
|
|
30546
|
-
var each = _arrayMethods(0);
|
|
30547
|
-
var _collection = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
30548
|
-
var Base = _global[NAME];
|
|
30549
|
-
var C = Base;
|
|
30550
|
-
var ADDER = IS_MAP ? 'set' : 'add';
|
|
30551
|
-
var proto = C && C.prototype;
|
|
30552
|
-
var O = {};
|
|
30553
|
-
if (!_descriptors || typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
|
|
30554
|
-
new C().entries().next();
|
|
30555
|
-
}))) {
|
|
30556
|
-
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
30557
|
-
_redefineAll(C.prototype, methods);
|
|
30558
|
-
_meta.NEED = true;
|
|
30559
|
-
} else {
|
|
30560
|
-
C = wrapper(function (target, iterable) {
|
|
30561
|
-
_anInstance(target, C, NAME, '_c');
|
|
30562
|
-
target._c = new Base();
|
|
30563
|
-
if (iterable != undefined) _forOf(iterable, IS_MAP, target[ADDER], target);
|
|
30564
|
-
});
|
|
30565
|
-
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
|
|
30566
|
-
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
30567
|
-
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) _hide(C.prototype, KEY, function (a, b) {
|
|
30568
|
-
_anInstance(this, C, KEY);
|
|
30569
|
-
if (!IS_ADDER && IS_WEAK && !_isObject(a)) return KEY == 'get' ? undefined : false;
|
|
30570
|
-
var result = this._c[KEY](a === 0 ? 0 : a, b);
|
|
30571
|
-
return IS_ADDER ? this : result;
|
|
30572
|
-
});
|
|
30573
|
-
});
|
|
30574
|
-
IS_WEAK || dP$2(C.prototype, 'size', {
|
|
30575
|
-
get: function () {
|
|
30576
|
-
return this._c.size;
|
|
30577
|
-
}
|
|
30578
|
-
});
|
|
30579
|
-
}
|
|
30580
|
-
_setToStringTag(C, NAME);
|
|
30581
|
-
O[NAME] = C;
|
|
30582
|
-
_export(_export.G + _export.W + _export.F, O);
|
|
30583
|
-
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
|
|
30584
|
-
return C;
|
|
30585
|
-
};
|
|
30586
|
-
|
|
30587
|
-
var es6_weakMap = createCommonjsModule(function (module) {
|
|
30588
|
-
var each = _arrayMethods(0);
|
|
30589
|
-
var NATIVE_WEAK_MAP = _validateCollection;
|
|
30590
|
-
var IS_IE11 = !_global.ActiveXObject && 'ActiveXObject' in _global;
|
|
30591
|
-
var WEAK_MAP = 'WeakMap';
|
|
30592
|
-
var getWeak = _meta.getWeak;
|
|
30593
|
-
var isExtensible = Object.isExtensible;
|
|
30594
|
-
var uncaughtFrozenStore = _collectionWeak.ufstore;
|
|
30595
|
-
var InternalMap;
|
|
30596
|
-
var wrapper = function (get) {
|
|
30597
|
-
return function WeakMap() {
|
|
30598
|
-
return get(this, arguments.length > 0 ? arguments[0] : undefined);
|
|
30599
|
-
};
|
|
30600
|
-
};
|
|
30601
|
-
var methods = {
|
|
30602
|
-
get: function get(key) {
|
|
30603
|
-
if (_isObject(key)) {
|
|
30604
|
-
var data = getWeak(key);
|
|
30605
|
-
if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key);
|
|
30606
|
-
return data ? data[this._i] : undefined;
|
|
30607
|
-
}
|
|
30608
|
-
},
|
|
30609
|
-
set: function set(key, value) {
|
|
30610
|
-
return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
|
|
30611
|
-
}
|
|
30612
|
-
};
|
|
30613
|
-
var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
|
|
30614
|
-
if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
30615
|
-
InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
|
|
30616
|
-
_objectAssign(InternalMap.prototype, methods);
|
|
30617
|
-
_meta.NEED = true;
|
|
30618
|
-
each(['delete', 'has', 'get', 'set'], function (key) {
|
|
30619
|
-
var proto = $WeakMap.prototype;
|
|
30620
|
-
var method = proto[key];
|
|
30621
|
-
_redefine(proto, key, function (a, b) {
|
|
30622
|
-
if (_isObject(a) && !isExtensible(a)) {
|
|
30623
|
-
if (!this._f) this._f = new InternalMap();
|
|
30624
|
-
var result = this._f[key](a, b);
|
|
30625
|
-
return key == 'set' ? this : result;
|
|
30626
|
-
} return method.call(this, a, b);
|
|
30627
|
-
});
|
|
30628
|
-
});
|
|
30629
|
-
}
|
|
30630
|
-
});
|
|
30631
|
-
|
|
30632
|
-
var _setCollectionOf = function (COLLECTION) {
|
|
30633
|
-
_export(_export.S, COLLECTION, { of: function of() {
|
|
30634
|
-
var length = arguments.length;
|
|
30635
|
-
var A = new Array(length);
|
|
30636
|
-
while (length--) A[length] = arguments[length];
|
|
30637
|
-
return new this(A);
|
|
30638
|
-
} });
|
|
30639
|
-
};
|
|
30640
|
-
|
|
30641
|
-
_setCollectionOf('WeakMap');
|
|
30642
|
-
|
|
30643
|
-
var _setCollectionFrom = function (COLLECTION) {
|
|
30644
|
-
_export(_export.S, COLLECTION, { from: function from(source ) {
|
|
30645
|
-
var mapFn = arguments[1];
|
|
30646
|
-
var mapping, A, n, cb;
|
|
30647
|
-
_aFunction(this);
|
|
30648
|
-
mapping = mapFn !== undefined;
|
|
30649
|
-
if (mapping) _aFunction(mapFn);
|
|
30650
|
-
if (source == undefined) return new this();
|
|
30651
|
-
A = [];
|
|
30652
|
-
if (mapping) {
|
|
30653
|
-
n = 0;
|
|
30654
|
-
cb = _ctx(mapFn, arguments[2], 2);
|
|
30655
|
-
_forOf(source, false, function (nextItem) {
|
|
30656
|
-
A.push(cb(nextItem, n++));
|
|
30657
|
-
});
|
|
30658
|
-
} else {
|
|
30659
|
-
_forOf(source, false, A.push, A);
|
|
30660
|
-
}
|
|
30661
|
-
return new this(A);
|
|
30662
|
-
} });
|
|
30663
|
-
};
|
|
30664
|
-
|
|
30665
|
-
_setCollectionFrom('WeakMap');
|
|
30666
|
-
|
|
30667
|
-
var weakMap = _core.WeakMap;
|
|
30668
|
-
|
|
30669
|
-
var weakMap$1 = weakMap;
|
|
30670
|
-
|
|
30671
30809
|
var jsonFormatter_umd = createCommonjsModule(function (module, exports) {
|
|
30672
30810
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){function t(t){return null===t?"null":typeof t}function e(t){return !!t&&"object"==typeof t}function r(t){if(void 0===t)return "";if(null===t)return "Object";if("object"==typeof t&&!t.constructor)return "Object";var e=/function ([^(]*)/.exec(t.constructor.toString());return e&&e.length>1?e[1]:""}function n(t,e,r){return "null"===t||"undefined"===t?t:("string"!==t&&"stringifiable"!==t||(r='"'+r.replace(/"/g,'\\"')+'"'),"function"===t?e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}":r)}function o(o){var i="";return e(o)?(i=r(o),Array.isArray(o)&&(i+="["+o.length+"]")):i=n(t(o),o,o),i}function i(t){return "json-formatter-"+t}function s(t,e,r){var n=document.createElement(t);return e&&n.classList.add(i(e)),void 0!==r&&(r instanceof Node?n.appendChild(r):n.appendChild(document.createTextNode(String(r)))),n}!function(t){if(t&&"undefined"!=typeof window){var e=document.createElement("style");e.setAttribute("media","screen"),e.innerHTML=t,document.head.appendChild(e);}}('.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-row,\n.json-formatter-row a,\n.json-formatter-row a:hover {\n color: black;\n text-decoration: none;\n}\n.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-row .json-formatter-string,\n.json-formatter-row .json-formatter-stringifiable {\n color: green;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-row .json-formatter-number {\n color: blue;\n}\n.json-formatter-row .json-formatter-boolean {\n color: red;\n}\n.json-formatter-row .json-formatter-null {\n color: #855A00;\n}\n.json-formatter-row .json-formatter-undefined {\n color: #ca0b69;\n}\n.json-formatter-row .json-formatter-function {\n color: #FF20ED;\n}\n.json-formatter-row .json-formatter-date {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: blue;\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-bracket {\n color: blue;\n}\n.json-formatter-row .json-formatter-key {\n color: #00008B;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n.json-formatter-dark.json-formatter-row {\n font-family: monospace;\n}\n.json-formatter-dark.json-formatter-row,\n.json-formatter-dark.json-formatter-row a,\n.json-formatter-dark.json-formatter-row a:hover {\n color: white;\n text-decoration: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-row {\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty {\n opacity: 0.5;\n margin-left: 1rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty:after {\n display: none;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-object:after {\n content: "No properties";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-children.json-formatter-empty.json-formatter-array:after {\n content: "[]";\n}\n.json-formatter-dark.json-formatter-row .json-formatter-string,\n.json-formatter-dark.json-formatter-row .json-formatter-stringifiable {\n color: #31F031;\n white-space: pre;\n word-wrap: break-word;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-number {\n color: #66C2FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-boolean {\n color: #EC4242;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-null {\n color: #EEC97D;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-undefined {\n color: #ef8fbe;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-function {\n color: #FD48CB;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-date {\n background-color: rgba(255, 255, 255, 0.05);\n}\n.json-formatter-dark.json-formatter-row .json-formatter-url {\n text-decoration: underline;\n color: #027BFF;\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-bracket {\n color: #9494FF;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-key {\n color: #23A0DB;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler-link {\n cursor: pointer;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler {\n line-height: 1.2rem;\n font-size: 0.7rem;\n vertical-align: middle;\n opacity: 0.6;\n cursor: pointer;\n padding-right: 0.2rem;\n}\n.json-formatter-dark.json-formatter-row .json-formatter-toggler:after {\n display: inline-block;\n transition: transform 100ms ease-in;\n content: "►";\n}\n.json-formatter-dark.json-formatter-row > a > .json-formatter-preview-text {\n opacity: 0;\n transition: opacity 0.15s ease-in;\n font-style: italic;\n}\n.json-formatter-dark.json-formatter-row:hover > a > .json-formatter-preview-text {\n opacity: 0.6;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-toggler-link .json-formatter-toggler:after {\n transform: rotate(90deg);\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > .json-formatter-children:after {\n display: inline-block;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open > a > .json-formatter-preview-text {\n display: none;\n}\n.json-formatter-dark.json-formatter-row.json-formatter-open.json-formatter-empty:after {\n display: block;\n}\n');var a=/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/,f=/\d{2}:\d{2}:\d{2} GMT-\d{4}/,m=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,l=window.requestAnimationFrame||function(t){return t(),0},d={hoverPreviewEnabled:!1,hoverPreviewArrayCount:100,hoverPreviewFieldCount:5,animateOpen:!0,animateClose:!0,theme:null,useToJSON:!0,sortPropertiesBy:null};return function(){function c(t,e,r,n){void 0===e&&(e=1),void 0===r&&(r=d),this.json=t,this.open=e,this.config=r,this.key=n,this._isOpen=null,void 0===this.config.hoverPreviewEnabled&&(this.config.hoverPreviewEnabled=d.hoverPreviewEnabled),void 0===this.config.hoverPreviewArrayCount&&(this.config.hoverPreviewArrayCount=d.hoverPreviewArrayCount),void 0===this.config.hoverPreviewFieldCount&&(this.config.hoverPreviewFieldCount=d.hoverPreviewFieldCount),void 0===this.config.useToJSON&&(this.config.useToJSON=d.useToJSON),""===this.key&&(this.key='""');}return Object.defineProperty(c.prototype,"isOpen",{get:function(){return null!==this._isOpen?this._isOpen:this.open>0},set:function(t){this._isOpen=t;},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isDate",{get:function(){return this.json instanceof Date||"string"===this.type&&(a.test(this.json)||m.test(this.json)||f.test(this.json))},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isUrl",{get:function(){return "string"===this.type&&0===this.json.indexOf("http")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isArray",{get:function(){return Array.isArray(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isObject",{get:function(){return e(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEmptyObject",{get:function(){return !this.keys.length&&!this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isEmpty",{get:function(){return this.isEmptyObject||this.keys&&!this.keys.length&&this.isArray},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"useToJSON",{get:function(){return this.config.useToJSON&&"stringifiable"===this.type},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasKey",{get:function(){return void 0!==this.key},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"constructorName",{get:function(){return r(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"type",{get:function(){return this.config.useToJSON&&this.json&&this.json.toJSON?"stringifiable":t(this.json)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"keys",{get:function(){if(this.isObject){var t=Object.keys(this.json);return !this.isArray&&this.config.sortPropertiesBy?t.sort(this.config.sortPropertiesBy):t}return []},enumerable:!0,configurable:!0}),c.prototype.toggleOpen=function(){this.isOpen=!this.isOpen,this.element&&(this.isOpen?this.appendChildren(this.config.animateOpen):this.removeChildren(this.config.animateClose),this.element.classList.toggle(i("open")));},c.prototype.openAtDepth=function(t){void 0===t&&(t=1),t<0||(this.open=t,this.isOpen=0!==t,this.element&&(this.removeChildren(!1),0===t?this.element.classList.remove(i("open")):(this.appendChildren(this.config.animateOpen),this.element.classList.add(i("open")))));},c.prototype.getInlinepreview=function(){var t=this;if(this.isArray)return this.json.length>this.config.hoverPreviewArrayCount?"Array["+this.json.length+"]":"["+this.json.map(o).join(", ")+"]";var e=this.keys,r=e.slice(0,this.config.hoverPreviewFieldCount).map((function(e){return e+":"+o(t.json[e])})),n=e.length>=this.config.hoverPreviewFieldCount?"…":"";return "{"+r.join(", ")+n+"}"},c.prototype.render=function(){this.element=s("div","row");var t=this.isObject?s("a","toggler-link"):s("span");if(this.isObject&&!this.useToJSON&&t.appendChild(s("span","toggler")),this.hasKey&&t.appendChild(s("span","key",this.key+":")),this.isObject&&!this.useToJSON){var e=s("span","value"),r=s("span"),o=s("span","constructor-name",this.constructorName);if(r.appendChild(o),this.isArray){var a=s("span");a.appendChild(s("span","bracket","[")),a.appendChild(s("span","number",this.json.length)),a.appendChild(s("span","bracket","]")),r.appendChild(a);}e.appendChild(r),t.appendChild(e);}else{(e=this.isUrl?s("a"):s("span")).classList.add(i(this.type)),this.isDate&&e.classList.add(i("date")),this.isUrl&&(e.classList.add(i("url")),e.setAttribute("href",this.json));var f=n(this.type,this.json,this.useToJSON?this.json.toJSON():this.json);e.appendChild(document.createTextNode(f)),t.appendChild(e);}if(this.isObject&&this.config.hoverPreviewEnabled){var m=s("span","preview-text");m.appendChild(document.createTextNode(this.getInlinepreview())),t.appendChild(m);}var l=s("div","children");return this.isObject&&l.classList.add(i("object")),this.isArray&&l.classList.add(i("array")),this.isEmpty&&l.classList.add(i("empty")),this.config&&this.config.theme&&this.element.classList.add(i(this.config.theme)),this.isOpen&&this.element.classList.add(i("open")),this.element.appendChild(t),this.element.appendChild(l),this.isObject&&this.isOpen&&this.appendChildren(),this.isObject&&!this.useToJSON&&t.addEventListener("click",this.toggleOpen.bind(this)),this.element},c.prototype.appendChildren=function(t){var e=this;void 0===t&&(t=!1);var r=this.element.querySelector("div."+i("children"));if(r&&!this.isEmpty)if(t){var n=0,o=function(){var t=e.keys[n],i=new c(e.json[t],e.open-1,e.config,t);r.appendChild(i.render()),(n+=1)<e.keys.length&&(n>10?o():l(o));};l(o);}else this.keys.forEach((function(t){var n=new c(e.json[t],e.open-1,e.config,t);r.appendChild(n.render());}));},c.prototype.removeChildren=function(t){void 0===t&&(t=!1);var e=this.element.querySelector("div."+i("children"));if(t){var r=0,n=function(){e&&e.children.length&&(e.removeChild(e.children[0]),(r+=1)>10?n():l(n));};l(n);}else e&&(e.innerHTML="");},c}()}));
|
|
30673
30811
|
});
|
|
@@ -32772,9 +32910,7 @@
|
|
|
32772
32910
|
return !this.enabledOptions.length;
|
|
32773
32911
|
},
|
|
32774
32912
|
isAllSelected: function isAllSelected() {
|
|
32775
|
-
return
|
|
32776
|
-
return !option.isSelected;
|
|
32777
|
-
});
|
|
32913
|
+
return this.select.selected.length === this.enabledOptions.length;
|
|
32778
32914
|
}
|
|
32779
32915
|
},
|
|
32780
32916
|
watch: {
|
|
@@ -32923,6 +33059,7 @@
|
|
|
32923
33059
|
data: function data() {
|
|
32924
33060
|
return {
|
|
32925
33061
|
overflowTagNode: null,
|
|
33062
|
+
overflowTagTips: null,
|
|
32926
33063
|
overflowTagIndex: null,
|
|
32927
33064
|
newOptionName: ''
|
|
32928
33065
|
};
|
|
@@ -33009,6 +33146,25 @@
|
|
|
33009
33146
|
},
|
|
33010
33147
|
setOverflowTagContent: function setOverflowTagContent() {
|
|
33011
33148
|
this.overflowTagNode.textContent = "+".concat(this.select.selected.length - this.overflowTagIndex);
|
|
33149
|
+
this.destroyTippy();
|
|
33150
|
+
this.overflowTagTips = tippy(this.overflowTagNode, {
|
|
33151
|
+
duration: 0,
|
|
33152
|
+
arrow: true,
|
|
33153
|
+
size: 'small',
|
|
33154
|
+
trigger: 'mouseenter focus',
|
|
33155
|
+
theme: 'dark',
|
|
33156
|
+
interactive: true,
|
|
33157
|
+
boundary: 'window',
|
|
33158
|
+
content: this.getOverflowTagTips(),
|
|
33159
|
+
allowHTML: true,
|
|
33160
|
+
extCls: ''
|
|
33161
|
+
});
|
|
33162
|
+
},
|
|
33163
|
+
getOverflowTagTips: function getOverflowTagTips() {
|
|
33164
|
+
var data = this.select.selectedOptions.slice(this.overflowTagIndex, this.select.selectedOptions.length) || [];
|
|
33165
|
+
return data.map(function (option) {
|
|
33166
|
+
return option.name;
|
|
33167
|
+
}).join(',');
|
|
33012
33168
|
},
|
|
33013
33169
|
getOverflowTagNode: function getOverflowTagNode() {
|
|
33014
33170
|
if (this.overflowTagNode) {
|
|
@@ -33023,6 +33179,12 @@
|
|
|
33023
33179
|
if (this.overflowTagNode && this.overflowTagNode.parentNode === this.$el) {
|
|
33024
33180
|
this.$el.removeChild(this.overflowTagNode);
|
|
33025
33181
|
}
|
|
33182
|
+
this.destroyTippy();
|
|
33183
|
+
},
|
|
33184
|
+
destroyTippy: function destroyTippy() {
|
|
33185
|
+
if (!this.overflowTagTips) return;
|
|
33186
|
+
this.overflowTagTips.destroy();
|
|
33187
|
+
this.overflowTagTips = null;
|
|
33026
33188
|
},
|
|
33027
33189
|
handleCreateTag: function handleCreateTag(e) {
|
|
33028
33190
|
this.$emit('create-tag', e.target.value);
|
|
@@ -34002,6 +34164,10 @@
|
|
|
34002
34164
|
};
|
|
34003
34165
|
},
|
|
34004
34166
|
computed: {
|
|
34167
|
+
virtualScrollHeight: function virtualScrollHeight() {
|
|
34168
|
+
var selectAllOptionHeight = 39;
|
|
34169
|
+
return this.showSelectAll ? this.scrollHeight - selectAllOptionHeight : this.scrollHeight;
|
|
34170
|
+
},
|
|
34005
34171
|
selectedName: function selectedName() {
|
|
34006
34172
|
if (this.selectedOptions) {
|
|
34007
34173
|
if (this.multiple) {
|
|
@@ -34573,7 +34739,7 @@
|
|
|
34573
34739
|
"placement": "bottom-start",
|
|
34574
34740
|
"theme": "light bk-select-dropdown",
|
|
34575
34741
|
"animation": "slide-toggle",
|
|
34576
|
-
"offset":
|
|
34742
|
+
"offset": 0,
|
|
34577
34743
|
"distance": _vm.popoverDistance,
|
|
34578
34744
|
"z-index": _vm.zIndex,
|
|
34579
34745
|
"on-show": _vm.handleDropdownShow,
|
|
@@ -34710,7 +34876,7 @@
|
|
|
34710
34876
|
ref: "virtualScroll",
|
|
34711
34877
|
staticClass: "bk-virtual-select",
|
|
34712
34878
|
style: {
|
|
34713
|
-
height: _vm.
|
|
34879
|
+
height: _vm.virtualScrollHeight + 'px',
|
|
34714
34880
|
width: '100%'
|
|
34715
34881
|
},
|
|
34716
34882
|
attrs: {
|
|
@@ -36974,8 +37140,7 @@
|
|
|
36974
37140
|
default: ''
|
|
36975
37141
|
},
|
|
36976
37142
|
zIndex: {
|
|
36977
|
-
type: [Number, String]
|
|
36978
|
-
default: 'default'
|
|
37143
|
+
type: [Number, String]
|
|
36979
37144
|
},
|
|
36980
37145
|
multiInstance: {
|
|
36981
37146
|
type: Boolean,
|
|
@@ -36984,10 +37149,6 @@
|
|
|
36984
37149
|
transfer: {
|
|
36985
37150
|
type: Boolean,
|
|
36986
37151
|
default: false
|
|
36987
|
-
},
|
|
36988
|
-
appendToBody: {
|
|
36989
|
-
type: Boolean,
|
|
36990
|
-
default: false
|
|
36991
37152
|
}
|
|
36992
37153
|
},
|
|
36993
37154
|
data: function data() {
|
|
@@ -37006,6 +37167,9 @@
|
|
|
37006
37167
|
},
|
|
37007
37168
|
calcDirection: function calcDirection() {
|
|
37008
37169
|
return this.direction === 'left' ? 'right' : 'left';
|
|
37170
|
+
},
|
|
37171
|
+
titleContent: function titleContent() {
|
|
37172
|
+
return this.title || this.t('bk.sideslider.title');
|
|
37009
37173
|
}
|
|
37010
37174
|
},
|
|
37011
37175
|
watch: {
|
|
@@ -37018,10 +37182,13 @@
|
|
|
37018
37182
|
if (this.isScrollY()) {
|
|
37019
37183
|
addClass$1(root, 'has-sideslider-padding');
|
|
37020
37184
|
}
|
|
37021
|
-
if (this.showMask) {
|
|
37022
|
-
this.generatePopUid();
|
|
37023
|
-
}
|
|
37024
37185
|
this.$nextTick(function () {
|
|
37186
|
+
mask.showMask({
|
|
37187
|
+
el: _this.$el,
|
|
37188
|
+
showMask: _this.showMask,
|
|
37189
|
+
backgroundColor: 'rgba(0, 0, 0, 0.6)',
|
|
37190
|
+
onClick: _this.handleQuickClose
|
|
37191
|
+
});
|
|
37025
37192
|
if (_this.$refs.content) {
|
|
37026
37193
|
addResizeListener(_this.$refs.content, _this.handleContentResize, false);
|
|
37027
37194
|
}
|
|
@@ -37031,10 +37198,10 @@
|
|
|
37031
37198
|
}, 200);
|
|
37032
37199
|
} else {
|
|
37033
37200
|
removeClass$1(root, 'bk-sideslider-show has-sideslider-padding');
|
|
37034
|
-
|
|
37035
|
-
|
|
37036
|
-
this.
|
|
37037
|
-
}
|
|
37201
|
+
mask.hideMask({
|
|
37202
|
+
el: this.$el,
|
|
37203
|
+
showMask: this.showMask
|
|
37204
|
+
});
|
|
37038
37205
|
setTimeout(function () {
|
|
37039
37206
|
_this.$emit('hidden');
|
|
37040
37207
|
}, 200);
|
|
@@ -37050,17 +37217,7 @@
|
|
|
37050
37217
|
this.$el.parentNode.removeChild(this.$el);
|
|
37051
37218
|
}
|
|
37052
37219
|
},
|
|
37053
|
-
beforeDestroy: function beforeDestroy() {
|
|
37054
|
-
this.isShow && this.popUid && popManager.hide(this.popUid);
|
|
37055
|
-
},
|
|
37056
37220
|
methods: {
|
|
37057
|
-
generatePopUid: function generatePopUid() {
|
|
37058
|
-
this.popUid = popManager.show('bk-sideslider', this.$el, {
|
|
37059
|
-
zIndex: this.localZIndex - 1,
|
|
37060
|
-
tplAction: this.multiInstance && 'keepAll' || 'onlyone',
|
|
37061
|
-
appendToBody: this.transfer
|
|
37062
|
-
});
|
|
37063
|
-
},
|
|
37064
37221
|
isScrollY: function isScrollY() {
|
|
37065
37222
|
return document.documentElement.offsetHeight > document.documentElement.clientHeight;
|
|
37066
37223
|
},
|
|
@@ -37173,17 +37330,20 @@
|
|
|
37173
37330
|
})]), _c('div', {
|
|
37174
37331
|
staticClass: "bk-sideslider-title",
|
|
37175
37332
|
style: {
|
|
37176
|
-
padding: _vm.calcDirection === 'left' ? '0
|
|
37333
|
+
padding: _vm.calcDirection === 'left' ? '0 16px 0 46px' : '0 0 0 24px'
|
|
37177
37334
|
}
|
|
37178
37335
|
}, [_vm._t("header", function () {
|
|
37179
37336
|
return [_c('div', {
|
|
37180
|
-
staticClass: "title-content"
|
|
37181
|
-
|
|
37337
|
+
staticClass: "title-content",
|
|
37338
|
+
attrs: {
|
|
37339
|
+
"title": _vm.titleContent
|
|
37340
|
+
}
|
|
37341
|
+
}, [_vm._v(_vm._s(_vm.titleContent))])];
|
|
37182
37342
|
})], 2)]), _c('div', {
|
|
37183
37343
|
ref: "content",
|
|
37184
37344
|
staticClass: "bk-sideslider-content",
|
|
37185
37345
|
style: {
|
|
37186
|
-
maxHeight: _vm.$slots.footer ? 'calc(100vh -
|
|
37346
|
+
maxHeight: _vm.$slots.footer ? 'calc(100vh - 100px)' : 'calc(100vh - 52px)'
|
|
37187
37347
|
}
|
|
37188
37348
|
}, [_vm._t("content")], 2), _vm.$slots.footer ? _c('div', {
|
|
37189
37349
|
staticClass: "bk-sideslider-footer",
|
|
@@ -44794,24 +44954,33 @@
|
|
|
44794
44954
|
enableCollapseTags: function enableCollapseTags() {
|
|
44795
44955
|
var isPopoverShown = this.popoverInstance && this.popoverInstance.instance && this.popoverInstance.instance.state.isShown;
|
|
44796
44956
|
return !this.isEdit && this.collapseTags && this.overflowTagIndex && !isPopoverShown;
|
|
44957
|
+
},
|
|
44958
|
+
collapseTooltip: function collapseTooltip() {
|
|
44959
|
+
var _this = this;
|
|
44960
|
+
return this.localTagList.reduce(function (acc, cur, curIndex) {
|
|
44961
|
+
if (_this.overflowTagIndex !== null && curIndex >= _this.overflowTagIndex) {
|
|
44962
|
+
acc.push(cur[_this.displayKey]);
|
|
44963
|
+
}
|
|
44964
|
+
return acc;
|
|
44965
|
+
}, []);
|
|
44797
44966
|
}
|
|
44798
44967
|
},
|
|
44799
44968
|
watch: {
|
|
44800
44969
|
curInputValue: function curInputValue(newVal, oldVal) {
|
|
44801
|
-
var
|
|
44970
|
+
var _this2 = this;
|
|
44802
44971
|
if (newVal !== '' && this.renderList.length) {
|
|
44803
44972
|
this.showList = true;
|
|
44804
44973
|
} else if (this.trigger !== 'focus') {
|
|
44805
44974
|
setTimeout(function () {
|
|
44806
|
-
|
|
44975
|
+
_this2.showList = false;
|
|
44807
44976
|
}, 100);
|
|
44808
44977
|
}
|
|
44809
44978
|
},
|
|
44810
44979
|
showList: function showList(val) {
|
|
44811
|
-
var
|
|
44980
|
+
var _this3 = this;
|
|
44812
44981
|
if (val) {
|
|
44813
44982
|
this.$nextTick(function () {
|
|
44814
|
-
|
|
44983
|
+
_this3.showPopover();
|
|
44815
44984
|
});
|
|
44816
44985
|
}
|
|
44817
44986
|
},
|
|
@@ -44838,7 +45007,7 @@
|
|
|
44838
45007
|
}
|
|
44839
45008
|
},
|
|
44840
45009
|
created: function created() {
|
|
44841
|
-
var
|
|
45010
|
+
var _this4 = this;
|
|
44842
45011
|
this.isSingleSelect = this.maxData === 1;
|
|
44843
45012
|
this.pageSize = this.maxResult;
|
|
44844
45013
|
this.getData();
|
|
@@ -44846,11 +45015,11 @@
|
|
|
44846
45015
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
44847
45016
|
while (1) switch (_context.prev = _context.next) {
|
|
44848
45017
|
case 0:
|
|
44849
|
-
|
|
45018
|
+
_this4.resizing = true;
|
|
44850
45019
|
_context.next = 3;
|
|
44851
|
-
return
|
|
45020
|
+
return _this4.$nextTick(_this4.calcOverflowTagIndex);
|
|
44852
45021
|
case 3:
|
|
44853
|
-
|
|
45022
|
+
_this4.resizing = false;
|
|
44854
45023
|
case 4:
|
|
44855
45024
|
case "end":
|
|
44856
45025
|
return _context.stop();
|
|
@@ -44859,7 +45028,7 @@
|
|
|
44859
45028
|
}));
|
|
44860
45029
|
},
|
|
44861
45030
|
mounted: function mounted() {
|
|
44862
|
-
var
|
|
45031
|
+
var _this5 = this;
|
|
44863
45032
|
this.bkTagSelector = this.$refs.bkTagSelector;
|
|
44864
45033
|
this.popoverInstance = this.$refs['tagInputDropdown'];
|
|
44865
45034
|
this.containerResizeObserver = new ResizeObserver(function (entries) {
|
|
@@ -44868,8 +45037,8 @@
|
|
|
44868
45037
|
try {
|
|
44869
45038
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
44870
45039
|
var entry = _step.value;
|
|
44871
|
-
if (entry.target ===
|
|
44872
|
-
|
|
45040
|
+
if (entry.target === _this5.bkTagSelector) {
|
|
45041
|
+
_this5.execResizeHandler();
|
|
44873
45042
|
}
|
|
44874
45043
|
}
|
|
44875
45044
|
} catch (err) {
|
|
@@ -44924,7 +45093,7 @@
|
|
|
44924
45093
|
return bitLen;
|
|
44925
45094
|
},
|
|
44926
45095
|
filterData: function filterData() {
|
|
44927
|
-
var
|
|
45096
|
+
var _this6 = this;
|
|
44928
45097
|
var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
44929
45098
|
val = val.toLowerCase();
|
|
44930
45099
|
var filterData;
|
|
@@ -44933,14 +45102,14 @@
|
|
|
44933
45102
|
} else {
|
|
44934
45103
|
if (isArray$1(this.searchKey)) {
|
|
44935
45104
|
var filterDataList = this.searchKey.map(function (searchKey) {
|
|
44936
|
-
return
|
|
45105
|
+
return _this6.initData.filter(function (item) {
|
|
44937
45106
|
return item[searchKey].toLowerCase().indexOf(val) !== -1;
|
|
44938
45107
|
});
|
|
44939
45108
|
});
|
|
44940
45109
|
filterData = from_1$1(new set$1(filterDataList.flat()));
|
|
44941
45110
|
} else {
|
|
44942
45111
|
filterData = this.initData.filter(function (item) {
|
|
44943
|
-
return item[
|
|
45112
|
+
return item[_this6.searchKey].toLowerCase().indexOf(val) !== -1;
|
|
44944
45113
|
});
|
|
44945
45114
|
}
|
|
44946
45115
|
}
|
|
@@ -44967,7 +45136,7 @@
|
|
|
44967
45136
|
this.showScrollLoading = false;
|
|
44968
45137
|
},
|
|
44969
45138
|
scrollHandler: function scrollHandler(e) {
|
|
44970
|
-
var
|
|
45139
|
+
var _this7 = this;
|
|
44971
45140
|
if (this.showScrollLoading || this.isBeforeDestroy) {
|
|
44972
45141
|
return;
|
|
44973
45142
|
}
|
|
@@ -44984,7 +45153,7 @@
|
|
|
44984
45153
|
while (1) switch (_context2.prev = _context2.next) {
|
|
44985
45154
|
case 0:
|
|
44986
45155
|
_context2.next = 2;
|
|
44987
|
-
return
|
|
45156
|
+
return _this7.pageChange(curPage);
|
|
44988
45157
|
case 2:
|
|
44989
45158
|
case "end":
|
|
44990
45159
|
return _context2.stop();
|
|
@@ -45045,15 +45214,15 @@
|
|
|
45045
45214
|
return index;
|
|
45046
45215
|
},
|
|
45047
45216
|
formatGroupList: function formatGroupList() {
|
|
45048
|
-
var
|
|
45217
|
+
var _this8 = this;
|
|
45049
45218
|
var allList = [];
|
|
45050
45219
|
this.list.forEach(function (item) {
|
|
45051
45220
|
if (item.children) {
|
|
45052
45221
|
item.children.forEach(function (child) {
|
|
45053
45222
|
var params = _objectSpread({}, child);
|
|
45054
45223
|
params.group = {
|
|
45055
|
-
groupId: item[
|
|
45056
|
-
groupName: item[
|
|
45224
|
+
groupId: item[_this8.saveKey],
|
|
45225
|
+
groupName: item[_this8.displayKey]
|
|
45057
45226
|
};
|
|
45058
45227
|
allList.push(params);
|
|
45059
45228
|
});
|
|
@@ -45062,38 +45231,38 @@
|
|
|
45062
45231
|
return allList;
|
|
45063
45232
|
},
|
|
45064
45233
|
getData: function getData() {
|
|
45065
|
-
var
|
|
45234
|
+
var _this9 = this;
|
|
45066
45235
|
this.tagList = [];
|
|
45067
45236
|
this.localTagList = [];
|
|
45068
45237
|
this.initData = [];
|
|
45069
45238
|
if (this.useGroup) {
|
|
45070
45239
|
this.allList = this.formatGroupList();
|
|
45071
45240
|
this.allList.forEach(function (item) {
|
|
45072
|
-
|
|
45241
|
+
_this9.initData.push(item);
|
|
45073
45242
|
});
|
|
45074
45243
|
} else {
|
|
45075
45244
|
this.list.forEach(function (item) {
|
|
45076
|
-
|
|
45245
|
+
_this9.initData.push(item);
|
|
45077
45246
|
});
|
|
45078
45247
|
}
|
|
45079
45248
|
if (this.value.length) {
|
|
45080
45249
|
this.value.forEach(function (tag) {
|
|
45081
|
-
var val =
|
|
45082
|
-
return tag === val[
|
|
45250
|
+
var val = _this9.initData.find(function (val) {
|
|
45251
|
+
return tag === val[_this9.saveKey];
|
|
45083
45252
|
});
|
|
45084
45253
|
if (val !== undefined) {
|
|
45085
|
-
|
|
45086
|
-
|
|
45087
|
-
} else if (
|
|
45254
|
+
_this9.localTagList.push(val);
|
|
45255
|
+
_this9.tagList.push(val[_this9.saveKey]);
|
|
45256
|
+
} else if (_this9.allowCreate && !_this9.tagList.includes(tag)) {
|
|
45088
45257
|
var _temp;
|
|
45089
|
-
var temp = (_temp = {}, _defineProperty(_temp,
|
|
45090
|
-
|
|
45091
|
-
|
|
45258
|
+
var temp = (_temp = {}, _defineProperty(_temp, _this9.saveKey, tag), _defineProperty(_temp, _this9.displayKey, tag), _temp);
|
|
45259
|
+
_this9.localTagList.splice(_this9.localTagList.length, 0, temp);
|
|
45260
|
+
_this9.tagList.splice(_this9.tagList.length, 0, tag);
|
|
45092
45261
|
}
|
|
45093
45262
|
});
|
|
45094
45263
|
if (!this.isSingleSelect) {
|
|
45095
45264
|
this.initData = this.initData.filter(function (val) {
|
|
45096
|
-
return !
|
|
45265
|
+
return !_this9.value.includes(val[_this9.saveKey]);
|
|
45097
45266
|
});
|
|
45098
45267
|
}
|
|
45099
45268
|
}
|
|
@@ -45109,30 +45278,30 @@
|
|
|
45109
45278
|
this.$refs.input.style.width = this.INPUT_MIN_WIDTH + 'px';
|
|
45110
45279
|
},
|
|
45111
45280
|
handleInput: function handleInput(event) {
|
|
45112
|
-
var
|
|
45281
|
+
var _this10 = this;
|
|
45113
45282
|
var value = event.target.value;
|
|
45114
45283
|
this.$emit('inputchange', value);
|
|
45115
45284
|
this.$nextTick(function () {
|
|
45116
|
-
if (
|
|
45117
|
-
var charLen =
|
|
45118
|
-
|
|
45285
|
+
if (_this10.maxData === -1 || _this10.maxData > _this10.tagList.length) {
|
|
45286
|
+
var charLen = _this10.getCharLength(value);
|
|
45287
|
+
_this10.cacheVal = value;
|
|
45119
45288
|
if (charLen) {
|
|
45120
|
-
|
|
45121
|
-
|
|
45122
|
-
|
|
45289
|
+
_this10.isCanRemoveTag = false;
|
|
45290
|
+
_this10.filterData(value);
|
|
45291
|
+
_this10.$refs.input.style.width = charLen * _this10.INPUT_MIN_WIDTH + 'px';
|
|
45123
45292
|
} else {
|
|
45124
|
-
|
|
45125
|
-
if (
|
|
45126
|
-
|
|
45293
|
+
_this10.isCanRemoveTag = true;
|
|
45294
|
+
if (_this10.trigger === 'focus') {
|
|
45295
|
+
_this10.filterData();
|
|
45127
45296
|
}
|
|
45128
45297
|
}
|
|
45129
45298
|
} else {
|
|
45130
|
-
|
|
45131
|
-
|
|
45132
|
-
|
|
45299
|
+
_this10.handleBlur();
|
|
45300
|
+
_this10.curInputValue = '';
|
|
45301
|
+
_this10.showList = false;
|
|
45133
45302
|
}
|
|
45134
|
-
|
|
45135
|
-
|
|
45303
|
+
_this10.isEdit = true;
|
|
45304
|
+
_this10.focusItemIndex = _this10.allowCreate ? -1 : 0;
|
|
45136
45305
|
});
|
|
45137
45306
|
},
|
|
45138
45307
|
handleFocus: function handleFocus(event) {
|
|
@@ -45143,7 +45312,7 @@
|
|
|
45143
45312
|
this.$emit('focus', this.tagList);
|
|
45144
45313
|
},
|
|
45145
45314
|
handlePaste: function handlePaste(event) {
|
|
45146
|
-
var
|
|
45315
|
+
var _this11 = this;
|
|
45147
45316
|
if (this.isSingleSelect) {
|
|
45148
45317
|
return false;
|
|
45149
45318
|
}
|
|
@@ -45158,7 +45327,7 @@
|
|
|
45158
45327
|
var valArr = this.pasteFn ? this.pasteFn(value) : this.defaultPasteFn(value);
|
|
45159
45328
|
var tags = [];
|
|
45160
45329
|
valArr.map(function (val) {
|
|
45161
|
-
return tags.push(val[
|
|
45330
|
+
return tags.push(val[_this11.saveKey]);
|
|
45162
45331
|
});
|
|
45163
45332
|
if (tags.length) {
|
|
45164
45333
|
var nodes = this.$refs.tagList.childNodes;
|
|
@@ -45166,10 +45335,10 @@
|
|
|
45166
45335
|
var localTags = [];
|
|
45167
45336
|
var localInitDara = [];
|
|
45168
45337
|
this.initData.map(function (data) {
|
|
45169
|
-
localInitDara.push(data[
|
|
45338
|
+
localInitDara.push(data[_this11.saveKey]);
|
|
45170
45339
|
});
|
|
45171
45340
|
tags = tags.filter(function (tag) {
|
|
45172
|
-
return tag && tag.trim() && !
|
|
45341
|
+
return tag && tag.trim() && !_this11.tagList.includes(tag) && localInitDara.includes(tag);
|
|
45173
45342
|
});
|
|
45174
45343
|
if (this.maxData !== -1) {
|
|
45175
45344
|
if (this.tagList.length < this.maxData) {
|
|
@@ -45183,8 +45352,8 @@
|
|
|
45183
45352
|
}
|
|
45184
45353
|
tags.map(function (tag) {
|
|
45185
45354
|
var temp = {};
|
|
45186
|
-
temp[
|
|
45187
|
-
temp[
|
|
45355
|
+
temp[_this11.saveKey] = tag;
|
|
45356
|
+
temp[_this11.displayKey] = tag;
|
|
45188
45357
|
localTags.push(temp);
|
|
45189
45358
|
});
|
|
45190
45359
|
if (tags.length) {
|
|
@@ -45196,36 +45365,36 @@
|
|
|
45196
45365
|
this.focusInputer();
|
|
45197
45366
|
this.$refs.input.style.width = this.INPUT_MIN_WIDTH + 'px';
|
|
45198
45367
|
this.initData = this.initData.filter(function (val) {
|
|
45199
|
-
return !tags.includes(val[
|
|
45368
|
+
return !tags.includes(val[_this11.saveKey]);
|
|
45200
45369
|
});
|
|
45201
45370
|
this.handlerChange('select');
|
|
45202
45371
|
}
|
|
45203
45372
|
}
|
|
45204
45373
|
},
|
|
45205
45374
|
defaultPasteFn: function defaultPasteFn(val) {
|
|
45206
|
-
var
|
|
45375
|
+
var _this12 = this;
|
|
45207
45376
|
var target = [];
|
|
45208
45377
|
var textArr = val.split(';');
|
|
45209
45378
|
textArr.map(function (item) {
|
|
45210
45379
|
if (item.match(/^[a-zA-Z][a-zA-Z_]+/g)) {
|
|
45211
45380
|
var finalItem = item.match(/^[a-zA-Z][a-zA-Z_]+/g).join('');
|
|
45212
45381
|
var temp = {};
|
|
45213
|
-
temp[
|
|
45214
|
-
temp[
|
|
45382
|
+
temp[_this12.saveKey] = finalItem;
|
|
45383
|
+
temp[_this12.displayKey] = finalItem;
|
|
45215
45384
|
target.push(temp);
|
|
45216
45385
|
}
|
|
45217
45386
|
});
|
|
45218
45387
|
return target;
|
|
45219
45388
|
},
|
|
45220
45389
|
updateScrollTop: function updateScrollTop() {
|
|
45221
|
-
var
|
|
45390
|
+
var _this13 = this;
|
|
45222
45391
|
var panelObj = this.$refs.selectorList;
|
|
45223
45392
|
var panelInfo = {
|
|
45224
45393
|
height: panelObj.clientHeight,
|
|
45225
45394
|
yAxis: panelObj.getBoundingClientRect().y
|
|
45226
45395
|
};
|
|
45227
45396
|
this.$nextTick(function () {
|
|
45228
|
-
var activeObj =
|
|
45397
|
+
var activeObj = _this13.$refs.selectorList.querySelector('.bk-selector-actived');
|
|
45229
45398
|
if (!activeObj) {
|
|
45230
45399
|
return;
|
|
45231
45400
|
}
|
|
@@ -45337,7 +45506,7 @@
|
|
|
45337
45506
|
this.showList = false;
|
|
45338
45507
|
},
|
|
45339
45508
|
backspaceHandler: function backspaceHandler(index, target) {
|
|
45340
|
-
var
|
|
45509
|
+
var _this14 = this;
|
|
45341
45510
|
if (!this.curInputValue) {
|
|
45342
45511
|
if (this.isCanRemoveTag) {
|
|
45343
45512
|
this.tagList.splice(index - 1, 1);
|
|
@@ -45350,7 +45519,7 @@
|
|
|
45350
45519
|
this.focusInputer();
|
|
45351
45520
|
var localList = this.useGroup ? this.allList : this.list;
|
|
45352
45521
|
var isExistInit = localList.some(function (item) {
|
|
45353
|
-
return item === target[
|
|
45522
|
+
return item === target[_this14.saveKey];
|
|
45354
45523
|
});
|
|
45355
45524
|
if ((this.allowCreate && isExistInit || !this.allowCreate) && !this.isSingleSelect) {
|
|
45356
45525
|
this.initData.push(target);
|
|
@@ -45368,19 +45537,19 @@
|
|
|
45368
45537
|
this.handlerChange('remove');
|
|
45369
45538
|
},
|
|
45370
45539
|
removeTag: function removeTag(data, index) {
|
|
45371
|
-
var
|
|
45540
|
+
var _this15 = this;
|
|
45372
45541
|
this.tagList.splice(index, 1);
|
|
45373
45542
|
this.localTagList.splice(index, 1);
|
|
45374
45543
|
var localList = this.useGroup ? this.allList : this.list;
|
|
45375
45544
|
var isExistInit = localList.some(function (item) {
|
|
45376
|
-
return item === data[
|
|
45545
|
+
return item === data[_this15.saveKey];
|
|
45377
45546
|
});
|
|
45378
45547
|
if ((this.allowCreate && isExistInit || !this.allowCreate) && !this.isSingleSelect) {
|
|
45379
45548
|
this.initData.push(data);
|
|
45380
45549
|
}
|
|
45381
45550
|
},
|
|
45382
45551
|
addTag: function addTag(item, type) {
|
|
45383
|
-
var
|
|
45552
|
+
var _this16 = this;
|
|
45384
45553
|
var nodes = this.$refs.tagList.childNodes;
|
|
45385
45554
|
var result = this.getSiteInfo();
|
|
45386
45555
|
var isSelected = false;
|
|
@@ -45391,13 +45560,13 @@
|
|
|
45391
45560
|
var localTags = [];
|
|
45392
45561
|
tags = item.split(this.separator);
|
|
45393
45562
|
tags = tags.filter(function (tag) {
|
|
45394
|
-
var validate = typeof
|
|
45395
|
-
return tag && tag.trim() && !
|
|
45563
|
+
var validate = typeof _this16.createTagValidator === 'function' ? _this16.createTagValidator(tag) : true;
|
|
45564
|
+
return tag && tag.trim() && !_this16.tagList.includes(tag) && validate;
|
|
45396
45565
|
});
|
|
45397
45566
|
tags.forEach(function (tag) {
|
|
45398
45567
|
var temp = {};
|
|
45399
|
-
temp[
|
|
45400
|
-
temp[
|
|
45568
|
+
temp[_this16.saveKey] = tag;
|
|
45569
|
+
temp[_this16.displayKey] = tag;
|
|
45401
45570
|
localTags.push(temp);
|
|
45402
45571
|
});
|
|
45403
45572
|
if (tags.length) {
|
|
@@ -45442,14 +45611,14 @@
|
|
|
45442
45611
|
if (isSelected) {
|
|
45443
45612
|
this.$nextTick(function () {
|
|
45444
45613
|
var site = nodes[_parseInt$2(result.index, 10) + 1];
|
|
45445
|
-
|
|
45446
|
-
|
|
45447
|
-
if (!
|
|
45448
|
-
|
|
45449
|
-
}
|
|
45450
|
-
if (!
|
|
45451
|
-
|
|
45452
|
-
return !
|
|
45614
|
+
_this16.insertAfter(_this16.$refs.staffInput, site);
|
|
45615
|
+
_this16.$refs.input.style.width = _this16.INPUT_MIN_WIDTH + 'px';
|
|
45616
|
+
if (!_this16.isSingleSelect && _this16.allowNextFocus) {
|
|
45617
|
+
_this16.focusInputer();
|
|
45618
|
+
}
|
|
45619
|
+
if (!_this16.isSingleSelect) {
|
|
45620
|
+
_this16.initData = _this16.initData.filter(function (val) {
|
|
45621
|
+
return !_this16.tagList.includes(val[_this16.saveKey]);
|
|
45453
45622
|
});
|
|
45454
45623
|
}
|
|
45455
45624
|
});
|
|
@@ -45467,35 +45636,35 @@
|
|
|
45467
45636
|
this.cacheVal = '';
|
|
45468
45637
|
},
|
|
45469
45638
|
handleBlur: function handleBlur(inputValue) {
|
|
45470
|
-
var
|
|
45639
|
+
var _this17 = this;
|
|
45471
45640
|
this.timer = setTimeout(function () {
|
|
45472
|
-
var inputValue =
|
|
45473
|
-
|
|
45474
|
-
|
|
45475
|
-
|
|
45476
|
-
if (
|
|
45477
|
-
var
|
|
45478
|
-
oldVal =
|
|
45479
|
-
if (inputValue && inputValue === oldVal &&
|
|
45480
|
-
|
|
45641
|
+
var inputValue = _this17.curInputValue;
|
|
45642
|
+
_this17.clearInput();
|
|
45643
|
+
_this17.dispatch('bk-form-item', 'form-blur');
|
|
45644
|
+
_this17.isEdit = false;
|
|
45645
|
+
if (_this17.isSingleSelect) {
|
|
45646
|
+
var _this17$tagListCache = _slicedToArray(_this17.tagListCache, 1),
|
|
45647
|
+
oldVal = _this17$tagListCache[0];
|
|
45648
|
+
if (inputValue && inputValue === oldVal && _this17.localTagListCache.length) {
|
|
45649
|
+
_this17.addTag(_this17.localTagListCache[0], 'select');
|
|
45481
45650
|
} else {
|
|
45482
|
-
|
|
45651
|
+
_this17.handlerChange('remove');
|
|
45483
45652
|
}
|
|
45484
|
-
} else if (
|
|
45485
|
-
var matchItem =
|
|
45486
|
-
return item[
|
|
45653
|
+
} else if (_this17.allowAutoMatch && inputValue) {
|
|
45654
|
+
var matchItem = _this17.renderList.find(function (item) {
|
|
45655
|
+
return item[_this17.searchKey] === inputValue;
|
|
45487
45656
|
});
|
|
45488
45657
|
if (matchItem) {
|
|
45489
|
-
|
|
45490
|
-
} else if (
|
|
45491
|
-
|
|
45658
|
+
_this17.handlerResultSelect(matchItem, 'select');
|
|
45659
|
+
} else if (_this17.allowCreate) {
|
|
45660
|
+
_this17.handlerResultSelect(inputValue, 'custom');
|
|
45492
45661
|
}
|
|
45493
45662
|
}
|
|
45494
|
-
|
|
45663
|
+
_this17.$emit('blur', inputValue, _this17.tagList);
|
|
45495
45664
|
}, 200);
|
|
45496
45665
|
},
|
|
45497
45666
|
focusInputer: function focusInputer(event) {
|
|
45498
|
-
var
|
|
45667
|
+
var _this18 = this;
|
|
45499
45668
|
if (this.disabled) {
|
|
45500
45669
|
return;
|
|
45501
45670
|
}
|
|
@@ -45520,11 +45689,11 @@
|
|
|
45520
45689
|
}
|
|
45521
45690
|
this.isEdit = true;
|
|
45522
45691
|
this.$nextTick(function () {
|
|
45523
|
-
|
|
45524
|
-
if (
|
|
45525
|
-
|
|
45526
|
-
|
|
45527
|
-
|
|
45692
|
+
_this18.$refs.input.focus();
|
|
45693
|
+
if (_this18.trigger === 'focus') {
|
|
45694
|
+
_this18.showList = true;
|
|
45695
|
+
_this18.filterData();
|
|
45696
|
+
_this18.showPopover();
|
|
45528
45697
|
}
|
|
45529
45698
|
});
|
|
45530
45699
|
},
|
|
@@ -45642,6 +45811,14 @@
|
|
|
45642
45811
|
}
|
|
45643
45812
|
}) : _vm._e()], 1);
|
|
45644
45813
|
}), _vm.enableCollapseTags && _vm.localTagList.length > _vm.overflowTagIndex ? _c('li', {
|
|
45814
|
+
directives: [{
|
|
45815
|
+
name: "bk-tooltips",
|
|
45816
|
+
rawName: "v-bk-tooltips",
|
|
45817
|
+
value: {
|
|
45818
|
+
content: _vm.collapseTooltip.join(', ')
|
|
45819
|
+
},
|
|
45820
|
+
expression: "{ content: collapseTooltip.join(', ') }"
|
|
45821
|
+
}],
|
|
45645
45822
|
staticClass: "key-node"
|
|
45646
45823
|
}, [_c('div', {
|
|
45647
45824
|
staticClass: "tag"
|
|
@@ -45911,8 +46088,16 @@
|
|
|
45911
46088
|
components: {
|
|
45912
46089
|
vnodeIcon: {
|
|
45913
46090
|
functional: true,
|
|
45914
|
-
render: function render(
|
|
45915
|
-
|
|
46091
|
+
render: function render(_, _ref) {
|
|
46092
|
+
var props = _ref.props;
|
|
46093
|
+
return props.icon;
|
|
46094
|
+
}
|
|
46095
|
+
},
|
|
46096
|
+
ContentVnode: {
|
|
46097
|
+
functional: true,
|
|
46098
|
+
render: function render(_, _ref2) {
|
|
46099
|
+
var props = _ref2.props;
|
|
46100
|
+
return props.content;
|
|
45916
46101
|
}
|
|
45917
46102
|
}
|
|
45918
46103
|
},
|
|
@@ -45940,9 +46125,9 @@
|
|
|
45940
46125
|
this.$emit('select', item);
|
|
45941
46126
|
},
|
|
45942
46127
|
makeClass: function makeClass(item) {
|
|
45943
|
-
var
|
|
46128
|
+
var _ref3;
|
|
45944
46129
|
var classPrefix = 'bk-timeline-item-';
|
|
45945
|
-
var classNames = [(
|
|
46130
|
+
var classNames = [(_ref3 = {}, _defineProperty(_ref3, "".concat(classPrefix, "filled"), item.filled), _defineProperty(_ref3, "".concat(classPrefix, "custom-icon"), this.isCustomIcon(item.icon)), _ref3)];
|
|
45946
46131
|
var dotColors = ['blue', 'red', 'green', 'yellow', 'gray'];
|
|
45947
46132
|
if (item.size) {
|
|
45948
46133
|
classNames.push("".concat(classPrefix).concat(item.size));
|
|
@@ -45962,9 +46147,6 @@
|
|
|
45962
46147
|
return false;
|
|
45963
46148
|
}
|
|
45964
46149
|
},
|
|
45965
|
-
nodeContent: function nodeContent(data, index) {
|
|
45966
|
-
this.$slots["nodeContent".concat(index)] = [data.content];
|
|
45967
|
-
},
|
|
45968
46150
|
isBuiltinIcon: function isBuiltinIcon(icon) {
|
|
45969
46151
|
return typeof icon === 'string';
|
|
45970
46152
|
},
|
|
@@ -46023,16 +46205,20 @@
|
|
|
46023
46205
|
}) : _vm._e()];
|
|
46024
46206
|
}, null, item), item.content ? _c('div', {
|
|
46025
46207
|
staticClass: "bk-timeline-content"
|
|
46026
|
-
}, [_vm.
|
|
46027
|
-
return [_vm.
|
|
46028
|
-
|
|
46029
|
-
|
|
46030
|
-
|
|
46031
|
-
},
|
|
46032
|
-
|
|
46033
|
-
|
|
46034
|
-
|
|
46035
|
-
|
|
46208
|
+
}, [_vm._t("nodeContent" + index, function () {
|
|
46209
|
+
return [_vm.isNode(item) ? [_c('content-vnode', {
|
|
46210
|
+
attrs: {
|
|
46211
|
+
"content": item.content
|
|
46212
|
+
}
|
|
46213
|
+
})] : [_c('div', {
|
|
46214
|
+
attrs: {
|
|
46215
|
+
"title": _vm.computedTitle(item.content)
|
|
46216
|
+
},
|
|
46217
|
+
domProps: {
|
|
46218
|
+
"innerHTML": _vm._s(item.content)
|
|
46219
|
+
}
|
|
46220
|
+
})]];
|
|
46221
|
+
}, null, item)], 2) : _vm._e()], 2)]);
|
|
46036
46222
|
}), 0);
|
|
46037
46223
|
};
|
|
46038
46224
|
var __vue_staticRenderFns__$17 = [];
|
|
@@ -49175,10 +49361,18 @@
|
|
|
49175
49361
|
var rate = index + 1;
|
|
49176
49362
|
this.$emit('chooseRate', rate);
|
|
49177
49363
|
},
|
|
49178
|
-
changeHover: function changeHover(index) {
|
|
49364
|
+
changeHover: function changeHover(e, index) {
|
|
49179
49365
|
if (!this.edit) return;
|
|
49180
49366
|
var rate = index + 1;
|
|
49181
49367
|
this.$emit('changeHover', rate);
|
|
49368
|
+
this.$nextTick(function () {
|
|
49369
|
+
e.target.classList.add('bk-rate-star-is-hover');
|
|
49370
|
+
});
|
|
49371
|
+
},
|
|
49372
|
+
handleMouseLeave: function handleMouseLeave(e, index) {
|
|
49373
|
+
this.$nextTick(function () {
|
|
49374
|
+
e.target.classList.remove('bk-rate-star-is-hover');
|
|
49375
|
+
});
|
|
49182
49376
|
}
|
|
49183
49377
|
}
|
|
49184
49378
|
};
|
|
@@ -49224,7 +49418,10 @@
|
|
|
49224
49418
|
return _vm.chooseRate(index);
|
|
49225
49419
|
},
|
|
49226
49420
|
"mouseenter": function mouseenter($event) {
|
|
49227
|
-
return _vm.changeHover(index);
|
|
49421
|
+
return _vm.changeHover($event, index);
|
|
49422
|
+
},
|
|
49423
|
+
"mouseleave": function mouseleave($event) {
|
|
49424
|
+
return _vm.handleMouseLeave($event, index);
|
|
49228
49425
|
}
|
|
49229
49426
|
}
|
|
49230
49427
|
}, [_c('g', {
|
|
@@ -49284,7 +49481,7 @@
|
|
|
49284
49481
|
},
|
|
49285
49482
|
width: {
|
|
49286
49483
|
type: Number,
|
|
49287
|
-
default:
|
|
49484
|
+
default: 16
|
|
49288
49485
|
},
|
|
49289
49486
|
height: {
|
|
49290
49487
|
type: Number,
|
|
@@ -56759,6 +56956,10 @@
|
|
|
56759
56956
|
},
|
|
56760
56957
|
remoteMethod: {
|
|
56761
56958
|
type: Function
|
|
56959
|
+
},
|
|
56960
|
+
allowDisabledExpand: {
|
|
56961
|
+
type: Boolean,
|
|
56962
|
+
default: false
|
|
56762
56963
|
}
|
|
56763
56964
|
},
|
|
56764
56965
|
data: function data() {
|
|
@@ -56817,14 +57018,23 @@
|
|
|
56817
57018
|
this.dispatch('bkCascade', 'on-cascade-click');
|
|
56818
57019
|
},
|
|
56819
57020
|
cascadeHover: function cascadeHover(item) {
|
|
56820
|
-
if (this.trigger
|
|
57021
|
+
if (this.trigger !== 'hover') {
|
|
57022
|
+
return;
|
|
57023
|
+
}
|
|
57024
|
+
if (item.children && item.children.length) {
|
|
56821
57025
|
this.handleItem(item, false);
|
|
57026
|
+
} else {
|
|
57027
|
+
this.childrenList = item.children || [];
|
|
57028
|
+
this.emitUpdate([item]);
|
|
57029
|
+
this.dispatch('bkCascade', 'on-popover-width', {
|
|
57030
|
+
item: item
|
|
57031
|
+
});
|
|
56822
57032
|
}
|
|
56823
57033
|
},
|
|
56824
57034
|
handleItem: function handleItem(item) {
|
|
56825
57035
|
var _this2 = this;
|
|
56826
57036
|
var fromInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
56827
|
-
if (item.disabled) return;
|
|
57037
|
+
if (item.disabled && (!this.allowDisabledExpand || !item.children)) return;
|
|
56828
57038
|
if (this.isRemote) {
|
|
56829
57039
|
new promise$1(function (resolve, reject) {
|
|
56830
57040
|
_this2.remoteMethod(item, resolve);
|
|
@@ -56870,7 +57080,7 @@
|
|
|
56870
57080
|
this.dispatch('bkCascade', 'on-id-change', {
|
|
56871
57081
|
item: item,
|
|
56872
57082
|
isLast: !(item.children && item.children.length),
|
|
56873
|
-
checkAnyLevel: this.checkAnyLevel,
|
|
57083
|
+
checkAnyLevel: this.checkAnyLevel && (!this.allowDisabledExpand || this.allowDisabledExpand && !item.disabled),
|
|
56874
57084
|
fromInit: fromInit
|
|
56875
57085
|
});
|
|
56876
57086
|
}
|
|
@@ -56990,6 +57200,7 @@
|
|
|
56990
57200
|
"multiple": _vm.multiple,
|
|
56991
57201
|
"check-any-level": _vm.checkAnyLevel,
|
|
56992
57202
|
"is-remote": _vm.isRemote,
|
|
57203
|
+
"allow-disabled-expand": _vm.allowDisabledExpand,
|
|
56993
57204
|
"remote-method": _vm.remoteMethod
|
|
56994
57205
|
},
|
|
56995
57206
|
on: {
|
|
@@ -57135,6 +57346,10 @@
|
|
|
57135
57346
|
maxWidth: {
|
|
57136
57347
|
type: [String, Number],
|
|
57137
57348
|
default: '100%'
|
|
57349
|
+
},
|
|
57350
|
+
allowDisabledExpand: {
|
|
57351
|
+
type: Boolean,
|
|
57352
|
+
default: false
|
|
57138
57353
|
}
|
|
57139
57354
|
},
|
|
57140
57355
|
data: function data() {
|
|
@@ -57301,7 +57516,7 @@
|
|
|
57301
57516
|
var isLast = params.isLast,
|
|
57302
57517
|
checkAnyLevel = params.checkAnyLevel,
|
|
57303
57518
|
fromInit = params.fromInit;
|
|
57304
|
-
if (isLast || checkAnyLevel) {
|
|
57519
|
+
if (isLast || checkAnyLevel || fromInit) {
|
|
57305
57520
|
var oldIdList = JSON.parse(stringify$1(_this2.currentList));
|
|
57306
57521
|
_this2.selectedList = _this2.tmpSelected;
|
|
57307
57522
|
var newIdList = _this2.selectedList.map(function (item) {
|
|
@@ -57557,17 +57772,23 @@
|
|
|
57557
57772
|
},
|
|
57558
57773
|
recursiveList: function recursiveList(arr, valueList, type) {
|
|
57559
57774
|
var _this7 = this;
|
|
57775
|
+
var path = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
57560
57776
|
arr.forEach(function (arrItem) {
|
|
57561
57777
|
if (type === 'init') {
|
|
57562
57778
|
_this7.$set(arrItem, 'isSelected', false);
|
|
57563
57779
|
_this7.$set(arrItem, 'isIndeterminate', false);
|
|
57564
57780
|
}
|
|
57781
|
+
var newPath = path.concat(arrItem.id);
|
|
57565
57782
|
valueList.forEach(function (item) {
|
|
57566
57783
|
if (isArray$1(item)) {
|
|
57567
|
-
if (item
|
|
57784
|
+
if (item.length === newPath.length && item.every(function (child, index) {
|
|
57785
|
+
return child === newPath[index];
|
|
57786
|
+
})) {
|
|
57568
57787
|
arrItem.isSelected = true;
|
|
57569
57788
|
}
|
|
57570
|
-
if (!_this7.checkAnyLevel) {
|
|
57789
|
+
if (!_this7.checkAnyLevel && item.length > newPath.length && item.slice(0, newPath.length).every(function (child, index) {
|
|
57790
|
+
return child === newPath[index];
|
|
57791
|
+
})) {
|
|
57571
57792
|
item.forEach(function (child) {
|
|
57572
57793
|
if (child === arrItem.id) {
|
|
57573
57794
|
arrItem.isIndeterminate = true;
|
|
@@ -57577,7 +57798,7 @@
|
|
|
57577
57798
|
}
|
|
57578
57799
|
});
|
|
57579
57800
|
if (arrItem.children && arrItem.children.length) {
|
|
57580
|
-
_this7.recursiveList(arrItem.children, valueList, type);
|
|
57801
|
+
_this7.recursiveList(arrItem.children, valueList, type, newPath);
|
|
57581
57802
|
}
|
|
57582
57803
|
});
|
|
57583
57804
|
},
|
|
@@ -57703,7 +57924,6 @@
|
|
|
57703
57924
|
}
|
|
57704
57925
|
};
|
|
57705
57926
|
|
|
57706
|
-
/* script */
|
|
57707
57927
|
var __vue_script__$1r = script$1r;
|
|
57708
57928
|
/* template */
|
|
57709
57929
|
var __vue_render__$1r = function __vue_render__() {
|
|
@@ -57716,7 +57936,8 @@
|
|
|
57716
57936
|
'is-focus': _vm.showCascade,
|
|
57717
57937
|
'is-disabled': _vm.disabled,
|
|
57718
57938
|
'is-unselected': _vm.isUnselected,
|
|
57719
|
-
'is-default-trigger': !_vm.$scopedSlots.trigger
|
|
57939
|
+
'is-default-trigger': !_vm.$scopedSlots.trigger,
|
|
57940
|
+
'is-custom-trigger': _vm.$scopedSlots.trigger
|
|
57720
57941
|
},
|
|
57721
57942
|
attrs: {
|
|
57722
57943
|
"tabindex": "0",
|
|
@@ -57743,9 +57964,9 @@
|
|
|
57743
57964
|
return _vm.handleDropdownHide.apply(null, arguments);
|
|
57744
57965
|
}]
|
|
57745
57966
|
}
|
|
57746
|
-
}, [_c('i', {
|
|
57967
|
+
}, [!_vm.$scopedSlots.trigger ? _c('i', {
|
|
57747
57968
|
staticClass: "bk-cascade-angle bk-icon icon-angle-down"
|
|
57748
|
-
}), _vm.clearable && !_vm.disabled && _vm.selectedName ? _c('i', {
|
|
57969
|
+
}) : _vm._e(), _vm.clearable && !_vm.disabled && _vm.selectedName && !_vm.$scopedSlots.trigger ? _c('i', {
|
|
57749
57970
|
staticClass: "bk-cascade-clear bk-icon icon-close",
|
|
57750
57971
|
on: {
|
|
57751
57972
|
"click": function click($event) {
|
|
@@ -57768,98 +57989,105 @@
|
|
|
57768
57989
|
"distance": 12,
|
|
57769
57990
|
"on-show": _vm.handleDropdownShow,
|
|
57770
57991
|
"on-hide": _vm.handleDropdownHide,
|
|
57771
|
-
"tippy-options":
|
|
57992
|
+
"tippy-options": _extends({}, {
|
|
57993
|
+
offset: '0 3'
|
|
57994
|
+
}, _vm.popoverOptions)
|
|
57772
57995
|
}
|
|
57773
|
-
}, [_vm.
|
|
57774
|
-
|
|
57775
|
-
|
|
57776
|
-
|
|
57777
|
-
|
|
57778
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.selectedName))])]) : _c('section', [_vm.multipleSelectedList.length || !_vm.filterable ? _c('div', {
|
|
57779
|
-
staticClass: "bk-cascade-tag-list"
|
|
57780
|
-
}, _vm._l(_vm.multipleSelectedList, function (item, index) {
|
|
57781
|
-
return _c('span', {
|
|
57782
|
-
key: index,
|
|
57783
|
-
staticClass: "bk-cascade-tag-item",
|
|
57784
|
-
staticStyle: {
|
|
57785
|
-
"padding-right": "18px"
|
|
57996
|
+
}, [_vm._t("trigger", function () {
|
|
57997
|
+
return [_vm.multiple ? [_vm.limitOneLine ? _c('div', {
|
|
57998
|
+
staticClass: "bk-cascade-name",
|
|
57999
|
+
attrs: {
|
|
58000
|
+
"title": _vm.selectedName
|
|
57786
58001
|
}
|
|
57787
|
-
}, [_c('span', {
|
|
57788
|
-
staticClass: "bk-cascade-
|
|
58002
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.selectedName))])]) : _c('section', [_vm.multipleSelectedList.length || !_vm.filterable ? _c('div', {
|
|
58003
|
+
staticClass: "bk-cascade-tag-list"
|
|
58004
|
+
}, _vm._l(_vm.multipleSelectedList, function (item, index) {
|
|
58005
|
+
return _c('span', {
|
|
58006
|
+
key: index,
|
|
58007
|
+
staticClass: "bk-cascade-tag-item",
|
|
58008
|
+
staticStyle: {
|
|
58009
|
+
"padding-right": "18px"
|
|
58010
|
+
}
|
|
58011
|
+
}, [_c('span', {
|
|
58012
|
+
staticClass: "bk-cascade-item-name",
|
|
58013
|
+
attrs: {
|
|
58014
|
+
"title": item.name
|
|
58015
|
+
}
|
|
58016
|
+
}, [_vm._v(_vm._s(item.name))]), _c('a', {
|
|
58017
|
+
staticClass: "remove-key",
|
|
58018
|
+
attrs: {
|
|
58019
|
+
"href": "javascript:void(0)",
|
|
58020
|
+
"tabindex": "-1"
|
|
58021
|
+
},
|
|
58022
|
+
on: {
|
|
58023
|
+
"click": function click($event) {
|
|
58024
|
+
$event.stopPropagation();
|
|
58025
|
+
return _vm.removeTag(item, index);
|
|
58026
|
+
}
|
|
58027
|
+
}
|
|
58028
|
+
}, [_c('i', {
|
|
58029
|
+
staticClass: "bk-icon icon-close"
|
|
58030
|
+
})])]);
|
|
58031
|
+
}), 0) : _vm._e()]), _vm.filterable ? _c('div', {
|
|
58032
|
+
staticClass: "bk-cascade-name"
|
|
58033
|
+
}, [_c('input', {
|
|
58034
|
+
directives: [{
|
|
58035
|
+
name: "model",
|
|
58036
|
+
rawName: "v-model",
|
|
58037
|
+
value: _vm.searchContent,
|
|
58038
|
+
expression: "searchContent"
|
|
58039
|
+
}],
|
|
58040
|
+
ref: "searchInput",
|
|
58041
|
+
staticClass: "bk-cascade-search-input",
|
|
57789
58042
|
attrs: {
|
|
57790
|
-
"
|
|
58043
|
+
"type": "text",
|
|
58044
|
+
"placeholder": _vm.t('bk.select.searchPlaceholder')
|
|
58045
|
+
},
|
|
58046
|
+
domProps: {
|
|
58047
|
+
"value": _vm.searchContent
|
|
58048
|
+
},
|
|
58049
|
+
on: {
|
|
58050
|
+
"input": [function ($event) {
|
|
58051
|
+
if ($event.target.composing) {
|
|
58052
|
+
return;
|
|
58053
|
+
}
|
|
58054
|
+
_vm.searchContent = $event.target.value;
|
|
58055
|
+
}, _vm.handleSearchInput]
|
|
57791
58056
|
}
|
|
57792
|
-
}
|
|
57793
|
-
staticClass: "
|
|
58057
|
+
})]) : _vm._e()] : _c('div', {
|
|
58058
|
+
staticClass: "bk-cascade-name",
|
|
57794
58059
|
attrs: {
|
|
57795
|
-
"
|
|
57796
|
-
|
|
58060
|
+
"title": _vm.selectedName
|
|
58061
|
+
}
|
|
58062
|
+
}, [_vm.filterable ? _c('input', {
|
|
58063
|
+
directives: [{
|
|
58064
|
+
name: "model",
|
|
58065
|
+
rawName: "v-model",
|
|
58066
|
+
value: _vm.searchContent,
|
|
58067
|
+
expression: "searchContent"
|
|
58068
|
+
}],
|
|
58069
|
+
ref: "searchInput",
|
|
58070
|
+
staticClass: "bk-cascade-search-input",
|
|
58071
|
+
attrs: {
|
|
58072
|
+
"type": "text",
|
|
58073
|
+
"placeholder": _vm.t('bk.select.searchPlaceholder')
|
|
58074
|
+
},
|
|
58075
|
+
domProps: {
|
|
58076
|
+
"value": _vm.searchContent
|
|
57797
58077
|
},
|
|
57798
58078
|
on: {
|
|
57799
|
-
"
|
|
57800
|
-
$event.
|
|
57801
|
-
|
|
57802
|
-
|
|
58079
|
+
"input": [function ($event) {
|
|
58080
|
+
if ($event.target.composing) {
|
|
58081
|
+
return;
|
|
58082
|
+
}
|
|
58083
|
+
_vm.searchContent = $event.target.value;
|
|
58084
|
+
}, _vm.handleSearchInput]
|
|
57803
58085
|
}
|
|
57804
|
-
}
|
|
57805
|
-
|
|
57806
|
-
|
|
57807
|
-
|
|
57808
|
-
|
|
57809
|
-
}, [_c('input', {
|
|
57810
|
-
directives: [{
|
|
57811
|
-
name: "model",
|
|
57812
|
-
rawName: "v-model",
|
|
57813
|
-
value: _vm.searchContent,
|
|
57814
|
-
expression: "searchContent"
|
|
57815
|
-
}],
|
|
57816
|
-
ref: "searchInput",
|
|
57817
|
-
staticClass: "bk-cascade-search-input",
|
|
57818
|
-
attrs: {
|
|
57819
|
-
"type": "text",
|
|
57820
|
-
"placeholder": _vm.t('bk.select.searchPlaceholder')
|
|
57821
|
-
},
|
|
57822
|
-
domProps: {
|
|
57823
|
-
"value": _vm.searchContent
|
|
57824
|
-
},
|
|
57825
|
-
on: {
|
|
57826
|
-
"input": [function ($event) {
|
|
57827
|
-
if ($event.target.composing) {
|
|
57828
|
-
return;
|
|
57829
|
-
}
|
|
57830
|
-
_vm.searchContent = $event.target.value;
|
|
57831
|
-
}, _vm.handleSearchInput]
|
|
57832
|
-
}
|
|
57833
|
-
})]) : _vm._e()] : _c('div', {
|
|
57834
|
-
staticClass: "bk-cascade-name",
|
|
57835
|
-
attrs: {
|
|
57836
|
-
"title": _vm.selectedName
|
|
57837
|
-
}
|
|
57838
|
-
}, [_vm.filterable ? _c('input', {
|
|
57839
|
-
directives: [{
|
|
57840
|
-
name: "model",
|
|
57841
|
-
rawName: "v-model",
|
|
57842
|
-
value: _vm.searchContent,
|
|
57843
|
-
expression: "searchContent"
|
|
57844
|
-
}],
|
|
57845
|
-
ref: "searchInput",
|
|
57846
|
-
staticClass: "bk-cascade-search-input",
|
|
57847
|
-
attrs: {
|
|
57848
|
-
"type": "text",
|
|
57849
|
-
"placeholder": _vm.t('bk.select.searchPlaceholder')
|
|
57850
|
-
},
|
|
57851
|
-
domProps: {
|
|
57852
|
-
"value": _vm.searchContent
|
|
57853
|
-
},
|
|
57854
|
-
on: {
|
|
57855
|
-
"input": [function ($event) {
|
|
57856
|
-
if ($event.target.composing) {
|
|
57857
|
-
return;
|
|
57858
|
-
}
|
|
57859
|
-
_vm.searchContent = $event.target.value;
|
|
57860
|
-
}, _vm.handleSearchInput]
|
|
57861
|
-
}
|
|
57862
|
-
}) : _c('span', [_vm._v(_vm._s(_vm.selectedName))])]), _c('div', {
|
|
58086
|
+
}) : _c('span', [_vm._v(_vm._s(_vm.selectedName))])])];
|
|
58087
|
+
}, {
|
|
58088
|
+
"selected": _vm.selectedList,
|
|
58089
|
+
"isShow": _vm.showCascade
|
|
58090
|
+
}), _c('div', {
|
|
57863
58091
|
directives: [{
|
|
57864
58092
|
name: "show",
|
|
57865
58093
|
rawName: "v-show",
|
|
@@ -57873,6 +58101,8 @@
|
|
|
57873
58101
|
"slot": "content"
|
|
57874
58102
|
},
|
|
57875
58103
|
slot: "content"
|
|
58104
|
+
}, [_c('div', {
|
|
58105
|
+
staticClass: "bk-cascade-options-wrapper"
|
|
57876
58106
|
}, [_c('div', {
|
|
57877
58107
|
staticClass: "bk-cascade-options",
|
|
57878
58108
|
style: _vm.dropdownOptionsStyle
|
|
@@ -57912,7 +58142,7 @@
|
|
|
57912
58142
|
})], 2)]);
|
|
57913
58143
|
}), !_vm.searchList.length ? _c('li', {
|
|
57914
58144
|
staticClass: "bk-option-none"
|
|
57915
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.emptyText || _vm.t(
|
|
58145
|
+
}, [_c('span', [_vm._v(_vm._s(_vm.emptyText || _vm.t("bk.select.searchEmpty")))])]) : _vm._e()], 2)]) : _vm._e(), _c('bk-caspanel', {
|
|
57916
58146
|
directives: [{
|
|
57917
58147
|
name: "show",
|
|
57918
58148
|
rawName: "v-show",
|
|
@@ -57929,7 +58159,8 @@
|
|
|
57929
58159
|
"filterable": _vm.filterable,
|
|
57930
58160
|
"multiple": _vm.multiple,
|
|
57931
58161
|
"is-remote": _vm.isRemote,
|
|
57932
|
-
"remote-method": _vm.remoteMethod
|
|
58162
|
+
"remote-method": _vm.remoteMethod,
|
|
58163
|
+
"allow-disabled-expand": _vm.allowDisabledExpand
|
|
57933
58164
|
},
|
|
57934
58165
|
on: {
|
|
57935
58166
|
"updateSelectedList": _vm.updateSelectedList
|
|
@@ -57953,7 +58184,9 @@
|
|
|
57953
58184
|
})];
|
|
57954
58185
|
}
|
|
57955
58186
|
}], null, true)
|
|
57956
|
-
})], 1)])
|
|
58187
|
+
})], 1)]), _vm.$slots.extension ? _c('div', {
|
|
58188
|
+
staticClass: "bk-cascade-extension"
|
|
58189
|
+
}, [_vm._t("extension")], 2) : _vm._e()])], 2)], 1);
|
|
57957
58190
|
};
|
|
57958
58191
|
var __vue_staticRenderFns__$1r = [];
|
|
57959
58192
|
|
|
@@ -59529,6 +59762,7 @@
|
|
|
59529
59762
|
return false;
|
|
59530
59763
|
}
|
|
59531
59764
|
aside.style[_this.computedStyleKey] = resizeProxy.style[placement];
|
|
59765
|
+
console.error('mouseup', aside.style[_this.computedStyleKey]);
|
|
59532
59766
|
};
|
|
59533
59767
|
document.addEventListener('mousemove', handleMouseMove);
|
|
59534
59768
|
document.addEventListener('mouseup', handleMouseUp);
|
|
@@ -59561,7 +59795,7 @@
|
|
|
59561
59795
|
this.setupAsideListener(!this.collapsed);
|
|
59562
59796
|
if (this.collapsed) {
|
|
59563
59797
|
aside.setAttribute("data-".concat(this.computedStyleKey), asideRect[this.computedStyleKey] + 'px');
|
|
59564
|
-
aside.style[this.computedStyleKey] = '5px';
|
|
59798
|
+
aside.style[this.computedStyleKey] = this.collapsible ? '0' : '5px';
|
|
59565
59799
|
} else {
|
|
59566
59800
|
this.asideContentVisible = true;
|
|
59567
59801
|
aside.style[this.computedStyleKey] = aside.getAttribute("data-".concat(this.computedStyleKey));
|
|
@@ -59590,6 +59824,7 @@
|
|
|
59590
59824
|
var _c = _vm._self._c || _h;
|
|
59591
59825
|
return _c('div', {
|
|
59592
59826
|
class: [_vm.extCls, 'bk-resize-layout', "bk-resize-layout-" + _vm.placement, {
|
|
59827
|
+
'bk-resize-layout-collapsible': _vm.collapsible,
|
|
59593
59828
|
'bk-resize-layout-collapsed': _vm.collapsed,
|
|
59594
59829
|
'bk-resize-layout-border': _vm.border
|
|
59595
59830
|
}]
|