bkui-vue 2.0.2-beta.45 → 2.0.2-beta.47
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 +47 -42
- package/dist/index.esm.js +7204 -7010
- package/dist/index.umd.js +50 -45
- package/lib/affix/index.js +12 -14
- package/lib/alert/index.js +12 -14
- package/lib/animate-number/index.js +11 -12
- package/lib/backtop/index.js +10 -11
- package/lib/badge/index.js +12 -14
- package/lib/breadcrumb/index.js +12 -14
- package/lib/button/index.js +12 -14
- package/lib/card/index.js +12 -14
- package/lib/cascader/index.js +94 -101
- package/lib/checkbox/index.js +37 -35
- package/lib/code-diff/index.js +1171 -675
- package/lib/collapse/index.js +44 -42
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +59 -60
- package/lib/config-provider/index.js +12 -14
- package/lib/container/index.js +21 -25
- package/lib/date-picker/index.js +58 -51
- package/lib/dialog/index.js +53 -474
- package/lib/directives/index.js +37 -34
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +17 -21
- package/lib/exception/index.js +14 -17
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +37 -34
- package/lib/icon/angle-double-down-line.js +29 -36
- package/lib/icon/angle-double-left-line.js +29 -36
- package/lib/icon/angle-double-left.js +29 -36
- package/lib/icon/angle-double-right-line.js +29 -36
- package/lib/icon/angle-double-right.js +29 -36
- package/lib/icon/angle-double-up-line.js +29 -36
- package/lib/icon/angle-down-fill.js +29 -36
- package/lib/icon/angle-down-line.js +29 -36
- package/lib/icon/angle-down.js +29 -36
- package/lib/icon/angle-left.js +29 -36
- package/lib/icon/angle-right.js +29 -36
- package/lib/icon/angle-up-fill.js +29 -36
- package/lib/icon/angle-up.js +29 -36
- package/lib/icon/archive-fill.js +29 -36
- package/lib/icon/arrows-left.js +29 -36
- package/lib/icon/arrows-right.js +29 -36
- package/lib/icon/assistant.js +29 -36
- package/lib/icon/audio-fill.js +29 -36
- package/lib/icon/bk.js +29 -36
- package/lib/icon/circle.js +29 -36
- package/lib/icon/close-line.js +29 -36
- package/lib/icon/close.js +29 -36
- package/lib/icon/code.js +29 -36
- package/lib/icon/cog-shape.js +29 -36
- package/lib/icon/collapse-left.js +29 -36
- package/lib/icon/copy-shape.js +29 -36
- package/lib/icon/copy.js +29 -36
- package/lib/icon/data-shape.js +29 -36
- package/lib/icon/del.js +29 -36
- package/lib/icon/doc-fill.js +29 -36
- package/lib/icon/done.js +29 -36
- package/lib/icon/down-shape.js +29 -36
- package/lib/icon/down-small.js +29 -36
- package/lib/icon/edit-line.js +29 -36
- package/lib/icon/ellipsis.js +29 -36
- package/lib/icon/enlarge-line.js +29 -36
- package/lib/icon/error.js +29 -36
- package/lib/icon/excel-fill.js +29 -36
- package/lib/icon/exclamation-circle-shape.js +29 -36
- package/lib/icon/eye.js +29 -36
- package/lib/icon/filliscreen-line.js +29 -36
- package/lib/icon/fix-line.js +29 -36
- package/lib/icon/fix-shape.js +29 -36
- package/lib/icon/folder-open.js +29 -36
- package/lib/icon/folder-shape-open.js +29 -36
- package/lib/icon/folder-shape.js +29 -36
- package/lib/icon/folder.js +29 -36
- package/lib/icon/funnel.js +29 -36
- package/lib/icon/grag-fill.js +29 -36
- package/lib/icon/help-document-fill.js +29 -36
- package/lib/icon/help-fill.js +29 -36
- package/lib/icon/help.js +29 -36
- package/lib/icon/image-fill.js +29 -36
- package/lib/icon/img-error.js +29 -36
- package/lib/icon/img-placehoulder.js +29 -36
- package/lib/icon/info-line.js +29 -36
- package/lib/icon/info.js +29 -36
- package/lib/icon/left-shape.js +29 -36
- package/lib/icon/left-turn-line.js +29 -36
- package/lib/icon/loading.js +29 -36
- package/lib/icon/narrow-line.js +29 -36
- package/lib/icon/original.js +29 -36
- package/lib/icon/pdf-fill.js +29 -36
- package/lib/icon/play-shape.js +29 -36
- package/lib/icon/plus.js +29 -36
- package/lib/icon/ppt-fill.js +29 -36
- package/lib/icon/qq.js +29 -36
- package/lib/icon/right-shape.js +29 -36
- package/lib/icon/right-turn-line.js +29 -36
- package/lib/icon/search.js +29 -36
- package/lib/icon/share.js +29 -36
- package/lib/icon/spinner.js +29 -36
- package/lib/icon/success.js +29 -36
- package/lib/icon/switcher-loading.js +29 -36
- package/lib/icon/text-all.js +29 -36
- package/lib/icon/text-file.js +29 -36
- package/lib/icon/text-fill.js +29 -36
- package/lib/icon/transfer.js +29 -36
- package/lib/icon/tree-application-shape.js +29 -36
- package/lib/icon/unfull-screen.js +29 -36
- package/lib/icon/unvisible.js +29 -36
- package/lib/icon/up-shape.js +29 -36
- package/lib/icon/upload.js +29 -36
- package/lib/icon/video-fill.js +29 -36
- package/lib/icon/warn.js +29 -36
- package/lib/icon/weixin-pro.js +29 -36
- package/lib/icon/weixin.js +29 -36
- package/lib/image/index.js +49 -47
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +62 -461
- package/lib/input/index.js +62 -60
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +22 -25
- package/lib/menu/index.js +36 -34
- package/lib/message/index.js +34 -31
- package/lib/modal/index.js +12 -14
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +12 -14
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +32 -29
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +209 -136
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +59 -452
- package/lib/progress/index.js +16 -19
- package/lib/radio/index.js +37 -34
- package/lib/rate/index.js +12 -14
- package/lib/resize-layout/index.js +18 -20
- package/lib/scrollbar/index.js +51 -58
- package/lib/search-select/index.js +222 -595
- package/lib/select/index.js +111 -463
- package/lib/shared/index.js +83 -95
- package/lib/sideslider/index.js +43 -441
- package/lib/slider/index.js +49 -446
- package/lib/steps/index.js +60 -458
- package/lib/swiper/index.js +15 -17
- package/lib/switcher/index.js +12 -14
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +53 -45
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/table/index.js +152 -501
- package/lib/tag/index.js +12 -14
- package/lib/tag-input/index.js +47 -41
- package/lib/timeline/index.js +1 -0
- package/lib/transfer/index.js +22 -17
- package/lib/tree/index.js +73 -66
- package/lib/upload/index.js +136 -487
- package/lib/virtual-render/index.js +47 -51
- package/package.json +1 -1
package/lib/switcher/index.js
CHANGED
@@ -47,6 +47,7 @@ function _typeof(o) {
|
|
47
47
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
48
48
|
}, _typeof(o);
|
49
49
|
}
|
50
|
+
|
50
51
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
52
|
|
52
53
|
function toPrimitive(t, r) {
|
@@ -59,29 +60,26 @@ function toPrimitive(t, r) {
|
|
59
60
|
}
|
60
61
|
return ("string" === r ? String : Number)(t);
|
61
62
|
}
|
63
|
+
|
62
64
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
63
65
|
|
64
66
|
|
65
67
|
function toPropertyKey(t) {
|
66
68
|
var i = toPrimitive(t, "string");
|
67
|
-
return "symbol" == _typeof(i) ? i :
|
69
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
68
70
|
}
|
71
|
+
|
69
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
70
73
|
|
71
|
-
function _defineProperty(
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
writable: true
|
79
|
-
});
|
80
|
-
} else {
|
81
|
-
obj[key] = value;
|
82
|
-
}
|
83
|
-
return obj;
|
74
|
+
function _defineProperty(e, r, t) {
|
75
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
76
|
+
value: t,
|
77
|
+
enumerable: !0,
|
78
|
+
configurable: !0,
|
79
|
+
writable: !0
|
80
|
+
}) : e[r] = t, e;
|
84
81
|
}
|
82
|
+
|
85
83
|
;// CONCATENATED MODULE: external "vue"
|
86
84
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
85
|
var external_vue_y = x => () => x
|
package/lib/tab/index.d.ts
CHANGED
@@ -45,6 +45,9 @@ declare const BkTab: {
|
|
45
45
|
} & {
|
46
46
|
default: string;
|
47
47
|
};
|
48
|
+
beforeChange: {
|
49
|
+
type: FunctionConstructor;
|
50
|
+
};
|
48
51
|
}>> & {
|
49
52
|
onDrag?: (...args: any[]) => any;
|
50
53
|
onChange?: (...args: any[]) => any;
|
@@ -107,6 +110,9 @@ declare const BkTab: {
|
|
107
110
|
} & {
|
108
111
|
default: string;
|
109
112
|
};
|
113
|
+
beforeChange: {
|
114
|
+
type: FunctionConstructor;
|
115
|
+
};
|
110
116
|
}>> & {
|
111
117
|
onDrag?: (...args: any[]) => any;
|
112
118
|
onChange?: (...args: any[]) => any;
|
@@ -180,6 +186,9 @@ declare const BkTab: {
|
|
180
186
|
} & {
|
181
187
|
default: string;
|
182
188
|
};
|
189
|
+
beforeChange: {
|
190
|
+
type: FunctionConstructor;
|
191
|
+
};
|
183
192
|
}>> & {
|
184
193
|
onDrag?: (...args: any[]) => any;
|
185
194
|
onChange?: (...args: any[]) => any;
|
@@ -259,6 +268,9 @@ declare const BkTab: {
|
|
259
268
|
} & {
|
260
269
|
default: string;
|
261
270
|
};
|
271
|
+
beforeChange: {
|
272
|
+
type: FunctionConstructor;
|
273
|
+
};
|
262
274
|
}>> & {
|
263
275
|
onDrag?: (...args: any[]) => any;
|
264
276
|
onChange?: (...args: any[]) => any;
|
package/lib/tab/index.js
CHANGED
@@ -700,6 +700,7 @@ function _typeof(o) {
|
|
700
700
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
701
701
|
}, _typeof(o);
|
702
702
|
}
|
703
|
+
|
703
704
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
704
705
|
|
705
706
|
function toPrimitive(t, r) {
|
@@ -712,29 +713,26 @@ function toPrimitive(t, r) {
|
|
712
713
|
}
|
713
714
|
return ("string" === r ? String : Number)(t);
|
714
715
|
}
|
716
|
+
|
715
717
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
716
718
|
|
717
719
|
|
718
720
|
function toPropertyKey(t) {
|
719
721
|
var i = toPrimitive(t, "string");
|
720
|
-
return "symbol" == _typeof(i) ? i :
|
722
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
721
723
|
}
|
724
|
+
|
722
725
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
723
726
|
|
724
|
-
function _defineProperty(
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
writable: true
|
732
|
-
});
|
733
|
-
} else {
|
734
|
-
obj[key] = value;
|
735
|
-
}
|
736
|
-
return obj;
|
727
|
+
function _defineProperty(e, r, t) {
|
728
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
729
|
+
value: t,
|
730
|
+
enumerable: !0,
|
731
|
+
configurable: !0,
|
732
|
+
writable: !0
|
733
|
+
}) : e[r] = t, e;
|
737
734
|
}
|
735
|
+
|
738
736
|
;// CONCATENATED MODULE: external "vue-types"
|
739
737
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
740
738
|
var external_vue_types_y = x => () => x
|
@@ -858,7 +856,10 @@ var tabProps = {
|
|
858
856
|
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
859
857
|
validateActive: shared_namespaceObject.PropTypes.bool.def(true),
|
860
858
|
activeBarSize: shared_namespaceObject.PropTypes.number.def(2),
|
861
|
-
activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff')
|
859
|
+
activeBarColor: shared_namespaceObject.PropTypes.string.def('#3a84ff'),
|
860
|
+
beforeChange: {
|
861
|
+
type: Function
|
862
|
+
}
|
862
863
|
};
|
863
864
|
var tabNavProps = _objectSpread({
|
864
865
|
active: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]).def(''),
|
@@ -880,42 +881,47 @@ var tabNavProps = _objectSpread({
|
|
880
881
|
validateActive: shared_namespaceObject.PropTypes.bool.def(true)
|
881
882
|
}, tabNavEventProps);
|
882
883
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
883
|
-
function _arrayLikeToArray(
|
884
|
-
|
885
|
-
for (var
|
886
|
-
return
|
884
|
+
function _arrayLikeToArray(r, a) {
|
885
|
+
(null == a || a > r.length) && (a = r.length);
|
886
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
887
|
+
return n;
|
887
888
|
}
|
889
|
+
|
888
890
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
889
891
|
|
890
|
-
function _arrayWithoutHoles(
|
891
|
-
if (Array.isArray(
|
892
|
+
function _arrayWithoutHoles(r) {
|
893
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
892
894
|
}
|
895
|
+
|
893
896
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
894
|
-
function _iterableToArray(
|
895
|
-
if (typeof Symbol
|
897
|
+
function _iterableToArray(r) {
|
898
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
896
899
|
}
|
900
|
+
|
897
901
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
898
902
|
|
899
|
-
function _unsupportedIterableToArray(
|
900
|
-
if (
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
903
|
+
function _unsupportedIterableToArray(r, a) {
|
904
|
+
if (r) {
|
905
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
906
|
+
var t = {}.toString.call(r).slice(8, -1);
|
907
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
908
|
+
}
|
906
909
|
}
|
910
|
+
|
907
911
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
908
912
|
function _nonIterableSpread() {
|
909
913
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
910
914
|
}
|
915
|
+
|
911
916
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
912
917
|
|
913
918
|
|
914
919
|
|
915
920
|
|
916
|
-
function _toConsumableArray(
|
917
|
-
return _arrayWithoutHoles(
|
921
|
+
function _toConsumableArray(r) {
|
922
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
918
923
|
}
|
924
|
+
|
919
925
|
;// CONCATENATED MODULE: external "vue"
|
920
926
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
921
927
|
var external_vue_y = x => () => x
|
@@ -925,9 +931,9 @@ var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x
|
|
925
931
|
var config_provider_y = x => () => x
|
926
932
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
927
933
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
928
|
-
function _createForOfIteratorHelper(
|
929
|
-
function clickoutside_unsupportedIterableToArray(
|
930
|
-
function clickoutside_arrayLikeToArray(
|
934
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = clickoutside_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
935
|
+
function clickoutside_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return clickoutside_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? clickoutside_arrayLikeToArray(r, a) : void 0; } }
|
936
|
+
function clickoutside_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
931
937
|
/*
|
932
938
|
* Tencent is pleased to support the open source community by making
|
933
939
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1947,7 +1953,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1947
1953
|
var panels = (0,external_vue_namespaceObject.ref)([]);
|
1948
1954
|
var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
1949
1955
|
// 动态插入tabPanel
|
1950
|
-
var
|
1956
|
+
var _getPaneInstanceFromSlot = function getPaneInstanceFromSlot(vnode) {
|
1951
1957
|
var panelInstanceList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
1952
1958
|
var children = vnode.children;
|
1953
1959
|
(children || []).forEach(function (node) {
|
@@ -1956,7 +1962,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1956
1962
|
if (type === 'TabPanel' && node.component) {
|
1957
1963
|
panelInstanceList.push(node.component);
|
1958
1964
|
} else if (type === external_vue_namespaceObject.Fragment || type === 'template') {
|
1959
|
-
|
1965
|
+
_getPaneInstanceFromSlot(node, panelInstanceList);
|
1960
1966
|
}
|
1961
1967
|
});
|
1962
1968
|
return panelInstanceList;
|
@@ -1966,7 +1972,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1966
1972
|
var children = instance.subTree.children[1].children;
|
1967
1973
|
if (!children) return;
|
1968
1974
|
var content = children[0];
|
1969
|
-
var panelInstanceList =
|
1975
|
+
var panelInstanceList = _getPaneInstanceFromSlot(content);
|
1970
1976
|
var isChanged = panelInstanceList.length !== panels.value.length;
|
1971
1977
|
if (isChanged) {
|
1972
1978
|
panels.value = panelInstanceList;
|
@@ -1996,10 +2002,13 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
1996
2002
|
});
|
1997
2003
|
},
|
1998
2004
|
tabChange: function tabChange(name) {
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2005
|
+
var _props$beforeChange, _props$beforeChange2;
|
2006
|
+
if ((_props$beforeChange = (_props$beforeChange2 = _props.beforeChange) === null || _props$beforeChange2 === void 0 ? void 0 : _props$beforeChange2.call(_props, name)) !== null && _props$beforeChange !== void 0 ? _props$beforeChange : true) {
|
2007
|
+
// emit('xxx') 会调用onXxx函数, 所以不必在主动调用onXxx函数了
|
2008
|
+
emit('change', name);
|
2009
|
+
emit('tab-change', name);
|
2010
|
+
emit('update:active', name);
|
2011
|
+
}
|
2003
2012
|
},
|
2004
2013
|
tabRemove: function tabRemove(index, panel) {
|
2005
2014
|
// emit('xxx') 会调用onXxx函数, 所以不必在主动调用onXxx函数了
|
@@ -2138,8 +2147,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2138
2147
|
*/
|
2139
2148
|
|
2140
2149
|
|
2141
|
-
|
2142
|
-
/* harmony default export */ const tab_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
2150
|
+
/* harmony default export */ const tab_panel = (defineComponent({
|
2143
2151
|
name: 'TabPanel',
|
2144
2152
|
props: tabPanelProps,
|
2145
2153
|
render: function render() {
|
@@ -2151,7 +2159,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2151
2159
|
return null;
|
2152
2160
|
}
|
2153
2161
|
if (typeof _this.panel === 'function') {
|
2154
|
-
return _this.panel(
|
2162
|
+
return _this.panel(h);
|
2155
2163
|
}
|
2156
2164
|
if (typeof _this.$slots["default"] === 'function') {
|
2157
2165
|
return _this.$slots["default"](null);
|
package/lib/tab/props.d.ts
CHANGED
package/lib/tab/tab.d.ts
CHANGED
@@ -39,6 +39,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
} & {
|
40
40
|
default: string;
|
41
41
|
};
|
42
|
+
beforeChange: {
|
43
|
+
type: FunctionConstructor;
|
44
|
+
};
|
42
45
|
}, {
|
43
46
|
isMounted: import("vue").Ref<boolean>;
|
44
47
|
panels: import("vue").Ref<any[]>;
|
@@ -89,6 +92,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
92
|
} & {
|
90
93
|
default: string;
|
91
94
|
};
|
95
|
+
beforeChange: {
|
96
|
+
type: FunctionConstructor;
|
97
|
+
};
|
92
98
|
}>> & {
|
93
99
|
onDrag?: (...args: any[]) => any;
|
94
100
|
onChange?: (...args: any[]) => any;
|