bkui-vue 2.0.1 → 2.0.2-beta.10
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/index.cjs.js +23 -23
- package/dist/index.esm.js +5684 -5650
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +1669 -181
- package/lib/color-picker/index.js +1613 -170
- package/lib/components.d.ts +1 -2
- package/lib/components.js +1 -2
- package/lib/date-picker/date-picker.css +220 -4
- package/lib/date-picker/date-picker.less +5 -5
- package/lib/date-picker/date-picker.variable.css +237 -21
- package/lib/date-picker/index.js +1882 -470
- package/lib/directives/index.js +228 -111
- package/lib/form/index.js +1570 -162
- package/lib/image/index.js +1468 -164
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- package/lib/input/index.js +1301 -13
- package/lib/pop-confirm/index.d.ts +16 -2
- package/lib/pop-confirm/index.js +13 -5
- package/lib/pop-confirm/pop-confirm.d.ts +5 -1
- package/lib/popover/index.js +1356 -68
- package/lib/search-select/index.js +1329 -108
- package/lib/select/index.js +1237 -16
- package/lib/slider/index.js +2 -1
- package/lib/tab/index.js +1277 -10
- package/lib/table/index.js +1346 -125
- package/lib/tag-input/index.js +1278 -16
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.js +47 -23
- package/lib/tree/props.d.ts +1 -0
- package/lib/tree/tree.css +18 -0
- package/lib/tree/tree.d.ts +2 -0
- package/lib/tree/tree.less +24 -0
- package/lib/tree/tree.variable.css +18 -0
- package/lib/tree/use-node-action.d.ts +1 -1
- package/package.json +1 -1
- package/lib/plugin-popover/index.d.ts +0 -27
- package/lib/plugin-popover/index.js +0 -65
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.js +0 -64
package/lib/directives/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
|
-
import * as
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
|
@@ -610,6 +610,205 @@ normalizeWheel.getEventType = function() /*string*/ {
|
|
610
610
|
module.exports = normalizeWheel;
|
611
611
|
|
612
612
|
|
613
|
+
/***/ }),
|
614
|
+
|
615
|
+
/***/ 563:
|
616
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
617
|
+
|
618
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
619
|
+
var y = x => () => x
|
620
|
+
module.exports = x({ ["$bkPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__.$bkPopover });
|
621
|
+
|
622
|
+
/***/ }),
|
623
|
+
|
624
|
+
/***/ 9253:
|
625
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
626
|
+
|
627
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
628
|
+
var y = x => () => x
|
629
|
+
module.exports = x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
|
630
|
+
|
631
|
+
/***/ }),
|
632
|
+
|
633
|
+
/***/ 6609:
|
634
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
635
|
+
|
636
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
637
|
+
var y = x => () => x
|
638
|
+
module.exports = x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
639
|
+
|
640
|
+
/***/ }),
|
641
|
+
|
642
|
+
/***/ 926:
|
643
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
644
|
+
|
645
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
646
|
+
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
647
|
+
/* harmony export */ });
|
648
|
+
function _arrayLikeToArray(arr, len) {
|
649
|
+
if (len == null || len > arr.length) len = arr.length;
|
650
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
651
|
+
return arr2;
|
652
|
+
}
|
653
|
+
|
654
|
+
/***/ }),
|
655
|
+
|
656
|
+
/***/ 74:
|
657
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
658
|
+
|
659
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
660
|
+
/* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
|
661
|
+
/* harmony export */ });
|
662
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
663
|
+
|
664
|
+
function _arrayWithoutHoles(arr) {
|
665
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
666
|
+
}
|
667
|
+
|
668
|
+
/***/ }),
|
669
|
+
|
670
|
+
/***/ 6666:
|
671
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
672
|
+
|
673
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
674
|
+
/* harmony export */ "default": () => (/* binding */ _defineProperty)
|
675
|
+
/* harmony export */ });
|
676
|
+
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
677
|
+
|
678
|
+
function _defineProperty(obj, key, value) {
|
679
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
680
|
+
if (key in obj) {
|
681
|
+
Object.defineProperty(obj, key, {
|
682
|
+
value: value,
|
683
|
+
enumerable: true,
|
684
|
+
configurable: true,
|
685
|
+
writable: true
|
686
|
+
});
|
687
|
+
} else {
|
688
|
+
obj[key] = value;
|
689
|
+
}
|
690
|
+
return obj;
|
691
|
+
}
|
692
|
+
|
693
|
+
/***/ }),
|
694
|
+
|
695
|
+
/***/ 1079:
|
696
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
697
|
+
|
698
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
699
|
+
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
700
|
+
/* harmony export */ });
|
701
|
+
function _iterableToArray(iter) {
|
702
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
703
|
+
}
|
704
|
+
|
705
|
+
/***/ }),
|
706
|
+
|
707
|
+
/***/ 6098:
|
708
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
709
|
+
|
710
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
711
|
+
/* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
|
712
|
+
/* harmony export */ });
|
713
|
+
function _nonIterableSpread() {
|
714
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
715
|
+
}
|
716
|
+
|
717
|
+
/***/ }),
|
718
|
+
|
719
|
+
/***/ 7930:
|
720
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
721
|
+
|
722
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
723
|
+
/* harmony export */ "default": () => (/* binding */ _toConsumableArray)
|
724
|
+
/* harmony export */ });
|
725
|
+
/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
|
726
|
+
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1079);
|
727
|
+
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9147);
|
728
|
+
/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6098);
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
function _toConsumableArray(arr) {
|
734
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
735
|
+
}
|
736
|
+
|
737
|
+
/***/ }),
|
738
|
+
|
739
|
+
/***/ 9745:
|
740
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
741
|
+
|
742
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
743
|
+
/* harmony export */ "default": () => (/* binding */ toPrimitive)
|
744
|
+
/* harmony export */ });
|
745
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6522);
|
746
|
+
|
747
|
+
function toPrimitive(t, r) {
|
748
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
|
749
|
+
var e = t[Symbol.toPrimitive];
|
750
|
+
if (void 0 !== e) {
|
751
|
+
var i = e.call(t, r || "default");
|
752
|
+
if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
|
753
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
754
|
+
}
|
755
|
+
return ("string" === r ? String : Number)(t);
|
756
|
+
}
|
757
|
+
|
758
|
+
/***/ }),
|
759
|
+
|
760
|
+
/***/ 3795:
|
761
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
762
|
+
|
763
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
764
|
+
/* harmony export */ "default": () => (/* binding */ toPropertyKey)
|
765
|
+
/* harmony export */ });
|
766
|
+
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6522);
|
767
|
+
/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9745);
|
768
|
+
|
769
|
+
|
770
|
+
function toPropertyKey(t) {
|
771
|
+
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
772
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
773
|
+
}
|
774
|
+
|
775
|
+
/***/ }),
|
776
|
+
|
777
|
+
/***/ 6522:
|
778
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
779
|
+
|
780
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
781
|
+
/* harmony export */ "default": () => (/* binding */ _typeof)
|
782
|
+
/* harmony export */ });
|
783
|
+
function _typeof(o) {
|
784
|
+
"@babel/helpers - typeof";
|
785
|
+
|
786
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
787
|
+
return typeof o;
|
788
|
+
} : function (o) {
|
789
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
790
|
+
}, _typeof(o);
|
791
|
+
}
|
792
|
+
|
793
|
+
/***/ }),
|
794
|
+
|
795
|
+
/***/ 9147:
|
796
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
797
|
+
|
798
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
799
|
+
/* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
|
800
|
+
/* harmony export */ });
|
801
|
+
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
802
|
+
|
803
|
+
function _unsupportedIterableToArray(o, minLen) {
|
804
|
+
if (!o) return;
|
805
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
806
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
807
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
808
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
809
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
810
|
+
}
|
811
|
+
|
613
812
|
/***/ })
|
614
813
|
|
615
814
|
/******/ });
|
@@ -810,20 +1009,10 @@ ClickOutside.install = function (app) {
|
|
810
1009
|
app.directive('bkTooltips', ClickOutside);
|
811
1010
|
};
|
812
1011
|
/* harmony default export */ const clickoutside = (ClickOutside);
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
818
|
-
return typeof o;
|
819
|
-
} : function (o) {
|
820
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
821
|
-
}, _typeof(o);
|
822
|
-
}
|
823
|
-
;// CONCATENATED MODULE: external "../plugin-popover"
|
824
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
825
|
-
var y = x => () => x
|
826
|
-
const plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
|
1012
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
1013
|
+
var esm_typeof = __webpack_require__(6522);
|
1014
|
+
// EXTERNAL MODULE: external "../popover"
|
1015
|
+
var popover_ = __webpack_require__(563);
|
827
1016
|
;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
|
828
1017
|
|
829
1018
|
/*
|
@@ -857,7 +1046,7 @@ var resolveOptions = function resolveOptions(el, binding) {
|
|
857
1046
|
content: '',
|
858
1047
|
target: el
|
859
1048
|
};
|
860
|
-
if (
|
1049
|
+
if ((0,esm_typeof["default"])(binding) === 'object') {
|
861
1050
|
Object.assign(options, binding);
|
862
1051
|
if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
|
863
1052
|
Object.assign(options, binding.popoverOption);
|
@@ -901,7 +1090,7 @@ var createInstance = function createInstance(el, binding) {
|
|
901
1090
|
onContentMouseenter: handleContentEnter,
|
902
1091
|
onContentMouseleave: handleContentLeave
|
903
1092
|
});
|
904
|
-
instance = (0,
|
1093
|
+
instance = (0,popover_.$bkPopover)(targetOptions);
|
905
1094
|
}, 300);
|
906
1095
|
};
|
907
1096
|
var handleMouseLeave = function handleMouseLeave() {
|
@@ -979,96 +1168,24 @@ var mousewheel = {
|
|
979
1168
|
}
|
980
1169
|
};
|
981
1170
|
/* harmony default export */ const src_mousewheel = (mousewheel);
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
991
|
-
}
|
992
|
-
return ("string" === r ? String : Number)(t);
|
993
|
-
}
|
994
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
995
|
-
|
996
|
-
|
997
|
-
function toPropertyKey(t) {
|
998
|
-
var i = toPrimitive(t, "string");
|
999
|
-
return "symbol" == _typeof(i) ? i : String(i);
|
1000
|
-
}
|
1001
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1002
|
-
|
1003
|
-
function _defineProperty(obj, key, value) {
|
1004
|
-
key = toPropertyKey(key);
|
1005
|
-
if (key in obj) {
|
1006
|
-
Object.defineProperty(obj, key, {
|
1007
|
-
value: value,
|
1008
|
-
enumerable: true,
|
1009
|
-
configurable: true,
|
1010
|
-
writable: true
|
1011
|
-
});
|
1012
|
-
} else {
|
1013
|
-
obj[key] = value;
|
1014
|
-
}
|
1015
|
-
return obj;
|
1016
|
-
}
|
1017
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
1018
|
-
function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
1019
|
-
if (len == null || len > arr.length) len = arr.length;
|
1020
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1021
|
-
return arr2;
|
1022
|
-
}
|
1023
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
1024
|
-
|
1025
|
-
function _arrayWithoutHoles(arr) {
|
1026
|
-
if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
1027
|
-
}
|
1028
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
1029
|
-
function _iterableToArray(iter) {
|
1030
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1031
|
-
}
|
1032
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
1033
|
-
|
1034
|
-
function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
1035
|
-
if (!o) return;
|
1036
|
-
if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1037
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1038
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1039
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
1040
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
1041
|
-
}
|
1042
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
1043
|
-
function _nonIterableSpread() {
|
1044
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1045
|
-
}
|
1046
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
function _toConsumableArray(arr) {
|
1052
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || _nonIterableSpread();
|
1053
|
-
}
|
1054
|
-
;// CONCATENATED MODULE: external "vue"
|
1055
|
-
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1056
|
-
var external_vue_y = x => () => x
|
1057
|
-
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
1058
|
-
;// CONCATENATED MODULE: external "../shared"
|
1059
|
-
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1060
|
-
var shared_y = x => () => x
|
1061
|
-
const shared_namespaceObject = shared_x({ ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName });
|
1171
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
1172
|
+
var defineProperty = __webpack_require__(6666);
|
1173
|
+
// EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
1174
|
+
var toConsumableArray = __webpack_require__(7930);
|
1175
|
+
// EXTERNAL MODULE: external "vue"
|
1176
|
+
var external_vue_ = __webpack_require__(6609);
|
1177
|
+
// EXTERNAL MODULE: external "../shared"
|
1178
|
+
var shared_ = __webpack_require__(9253);
|
1062
1179
|
;// CONCATENATED MODULE: external "@popperjs/core"
|
1063
|
-
var
|
1064
|
-
var
|
1065
|
-
const core_namespaceObject =
|
1180
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1181
|
+
var y = x => () => x
|
1182
|
+
const core_namespaceObject = x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
|
1066
1183
|
;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
|
1067
1184
|
|
1068
1185
|
|
1069
1186
|
|
1070
1187
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
1071
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
1188
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1072
1189
|
/*
|
1073
1190
|
* Tencent is pleased to support the open source community by making
|
1074
1191
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1106,7 +1223,7 @@ var tooltips = {
|
|
1106
1223
|
var popper = renderContent(opts);
|
1107
1224
|
var delayTimeout = null;
|
1108
1225
|
if (showOnInit) {
|
1109
|
-
(0,
|
1226
|
+
(0,external_vue_.nextTick)(function () {
|
1110
1227
|
show(el);
|
1111
1228
|
});
|
1112
1229
|
}
|
@@ -1193,7 +1310,7 @@ function initOptions() {
|
|
1193
1310
|
*/
|
1194
1311
|
function getOpts(binding) {
|
1195
1312
|
var opts = initOptions();
|
1196
|
-
if (
|
1313
|
+
if ((0,esm_typeof["default"])(binding.value) === 'object') {
|
1197
1314
|
Object.assign(opts, binding.value);
|
1198
1315
|
} else {
|
1199
1316
|
opts.content = binding.value;
|
@@ -1211,8 +1328,8 @@ function renderContext(value, content) {
|
|
1211
1328
|
} else {
|
1212
1329
|
// 如果 content 是 Vue 组件的实例,则挂载它
|
1213
1330
|
var container = document.createElement('div');
|
1214
|
-
var vnode = (0,
|
1215
|
-
(0,
|
1331
|
+
var vnode = (0,external_vue_.h)(value);
|
1332
|
+
(0,external_vue_.render)(vnode, container);
|
1216
1333
|
content.innerHTML = container.innerHTML;
|
1217
1334
|
}
|
1218
1335
|
}
|
@@ -1222,10 +1339,10 @@ function renderContent(opts) {
|
|
1222
1339
|
theme = opts.theme,
|
1223
1340
|
extCls = opts.extCls;
|
1224
1341
|
var isLight = theme === 'light';
|
1225
|
-
var zIndex =
|
1342
|
+
var zIndex = shared_.bkZIndexManager.getPopperIndex();
|
1226
1343
|
var content = document.createElement('div');
|
1227
1344
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1228
|
-
content.className = "".concat((0,
|
1345
|
+
content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
|
1229
1346
|
content.innerText = value;
|
1230
1347
|
content.style.zIndex = String(zIndex);
|
1231
1348
|
renderContext(value, content);
|
@@ -1242,7 +1359,7 @@ function renderContent(opts) {
|
|
1242
1359
|
function renderArrow() {
|
1243
1360
|
var arrow = document.createElement('div');
|
1244
1361
|
var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
|
1245
|
-
arrow.className = (0,
|
1362
|
+
arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
|
1246
1363
|
arrow.setAttribute('data-popper-arrow', '');
|
1247
1364
|
return arrow;
|
1248
1365
|
}
|
@@ -1270,7 +1387,7 @@ function createPopperInstance(el, popper) {
|
|
1270
1387
|
options: {
|
1271
1388
|
padding: 5
|
1272
1389
|
}
|
1273
|
-
}].concat(
|
1390
|
+
}].concat((0,toConsumableArray["default"])(sameWidth ? [{
|
1274
1391
|
name: 'sameWidth',
|
1275
1392
|
enabled: true,
|
1276
1393
|
phase: 'beforeWrite',
|
@@ -1325,7 +1442,7 @@ function show(el) {
|
|
1325
1442
|
// Enable the event listeners
|
1326
1443
|
popperInstance.setOptions(function (options) {
|
1327
1444
|
return _objectSpread(_objectSpread({}, options), {}, {
|
1328
|
-
modifiers: [].concat(
|
1445
|
+
modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
|
1329
1446
|
name: 'eventListeners',
|
1330
1447
|
enabled: true
|
1331
1448
|
}])
|