bkui-vue 1.0.3-beta.25 → 1.0.3-beta.27
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/lib/affix/index.js +13 -15
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/index.js +20 -22
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/index.js +28 -37
- package/lib/card/index.js +35 -43
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/index.js +8 -9
- package/lib/container/index.js +19 -21
- package/lib/date-picker/index.js +65 -73
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/input/index.js +59 -61
- package/lib/link/index.js +13 -15
- package/lib/loading/index.js +17 -19
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/message/index.js +38 -40
- package/lib/modal/index.js +41 -43
- package/lib/navigation/index.js +14 -16
- package/lib/notify/index.js +31 -33
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/popover/index.js +52 -54
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/progress/index.js +26 -28
- package/lib/radio/index.js +32 -34
- package/lib/rate/index.js +22 -24
- package/lib/resize-layout/index.js +25 -27
- package/lib/search-select/index.js +49 -68
- package/lib/select/index.js +129 -168
- package/lib/shared/index.js +0 -1
- package/lib/sideslider/index.js +14 -22
- package/lib/slider/index.js +22 -36
- package/lib/steps/index.js +28 -30
- package/lib/swiper/index.js +14 -16
- package/lib/switcher/index.js +29 -31
- package/lib/tab/index.js +44 -46
- package/lib/table/index.js +148 -207
- package/lib/table-column/index.js +42 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag-input/index.js +65 -80
- package/lib/time-picker/index.js +7 -9
- package/lib/timeline/index.js +12 -13
- package/lib/transfer/index.js +36 -51
- package/lib/tree/index.js +72 -92
- package/lib/upload/index.js +48 -63
- package/lib/virtual-render/index.js +33 -35
- package/package.json +1 -1
package/lib/tag-input/index.js
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
import "../
|
2
|
-
import "./tag-input.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
3
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
6
|
-
import * as
|
7
|
-
import * as
|
8
|
-
import * as
|
9
|
-
import * as
|
10
|
-
import "../
|
11
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../popover";
|
12
|
-
import "../popover/popover.less";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
13
9
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
14
10
|
/******/ var __webpack_modules__ = ({
|
15
11
|
|
@@ -17315,7 +17311,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
17315
17311
|
;// CONCATENATED MODULE: external "../shared"
|
17316
17312
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17317
17313
|
var y = x => () => x
|
17318
|
-
const
|
17314
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.checkOverflow, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
17319
17315
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
17320
17316
|
function _typeof(o) {
|
17321
17317
|
"@babel/helpers - typeof";
|
@@ -17451,33 +17447,25 @@ var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
17451
17447
|
var debounce_y = x => () => x
|
17452
17448
|
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
17453
17449
|
;// CONCATENATED MODULE: external "../config-provider"
|
17454
|
-
var
|
17455
|
-
var
|
17456
|
-
const
|
17450
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17451
|
+
var external_config_provider_y = x => () => x
|
17452
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
17457
17453
|
;// CONCATENATED MODULE: external "../directives"
|
17458
|
-
var
|
17459
|
-
var
|
17460
|
-
const
|
17454
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17455
|
+
var external_directives_y = x => () => x
|
17456
|
+
const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips });
|
17461
17457
|
;// CONCATENATED MODULE: external "../icon"
|
17462
|
-
var
|
17463
|
-
var
|
17464
|
-
const
|
17458
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17459
|
+
var external_icon_y = x => () => x
|
17460
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error });
|
17465
17461
|
;// CONCATENATED MODULE: external "../loading"
|
17466
|
-
var
|
17467
|
-
var
|
17468
|
-
const
|
17469
|
-
;// CONCATENATED MODULE: external "../loading/loading.less"
|
17470
|
-
var loading_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17471
|
-
var loading_less_y = x => () => x
|
17472
|
-
const loading_less_namespaceObject = loading_less_x({ });
|
17462
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17463
|
+
var external_loading_y = x => () => x
|
17464
|
+
const external_loading_namespaceObject = external_loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
|
17473
17465
|
;// CONCATENATED MODULE: external "../popover"
|
17474
|
-
var
|
17475
|
-
var
|
17476
|
-
const
|
17477
|
-
;// CONCATENATED MODULE: external "../popover/popover.less"
|
17478
|
-
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17479
|
-
var popover_less_y = x => () => x
|
17480
|
-
const popover_less_namespaceObject = popover_less_x({ });
|
17466
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17467
|
+
var external_popover_y = x => () => x
|
17468
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
17481
17469
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
17482
17470
|
|
17483
17471
|
|
@@ -17692,18 +17680,18 @@ var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, select
|
|
17692
17680
|
/* harmony default export */ const list_tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
17693
17681
|
name: 'ListTagRender',
|
17694
17682
|
props: {
|
17695
|
-
node:
|
17696
|
-
searchKey:
|
17697
|
-
displayKey:
|
17698
|
-
searchKeyword:
|
17683
|
+
node: external_shared_namespaceObject.PropTypes.object,
|
17684
|
+
searchKey: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string)]),
|
17685
|
+
displayKey: external_shared_namespaceObject.PropTypes.string,
|
17686
|
+
searchKeyword: external_shared_namespaceObject.PropTypes.string,
|
17699
17687
|
tpl: {
|
17700
17688
|
type: Function
|
17701
17689
|
},
|
17702
|
-
disabled:
|
17690
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false)
|
17703
17691
|
},
|
17704
17692
|
render: function render() {
|
17705
17693
|
var _this = this;
|
17706
|
-
var _usePrefix = (0,
|
17694
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
17707
17695
|
resolveClassName = _usePrefix.resolveClassName;
|
17708
17696
|
var highlightKeyword = function highlightKeyword(value) {
|
17709
17697
|
if (_this.searchKeyword && !_this.disabled) {
|
@@ -17763,29 +17751,29 @@ var TagInputTriggerEnum;
|
|
17763
17751
|
})(TagInputTriggerEnum || (TagInputTriggerEnum = {}));
|
17764
17752
|
var tagProps = function tagProps() {
|
17765
17753
|
return {
|
17766
|
-
modelValue:
|
17767
|
-
placeholder:
|
17768
|
-
list:
|
17769
|
-
disabled:
|
17770
|
-
tooltipKey:
|
17771
|
-
saveKey:
|
17772
|
-
displayKey:
|
17773
|
-
hasDeleteIcon:
|
17774
|
-
clearable:
|
17754
|
+
modelValue: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string).def([]),
|
17755
|
+
placeholder: external_shared_namespaceObject.PropTypes.string.def(''),
|
17756
|
+
list: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.object).def([]),
|
17757
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17758
|
+
tooltipKey: external_shared_namespaceObject.PropTypes.string.def(''),
|
17759
|
+
saveKey: external_shared_namespaceObject.PropTypes.string.def('id'),
|
17760
|
+
displayKey: external_shared_namespaceObject.PropTypes.string.def('name'),
|
17761
|
+
hasDeleteIcon: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17762
|
+
clearable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
17775
17763
|
trigger: (0,external_vue_types_namespaceObject.toType)('treeTriggerType', {}).def(TagInputTriggerEnum.SEARCH),
|
17776
|
-
searchKey:
|
17777
|
-
useGroup:
|
17778
|
-
allowCreate:
|
17779
|
-
maxData:
|
17780
|
-
maxResult:
|
17781
|
-
contentMaxHeight:
|
17782
|
-
contentWidth:
|
17783
|
-
separator:
|
17784
|
-
allowNextFocus:
|
17785
|
-
allowAutoMatch:
|
17786
|
-
showClearOnlyHover:
|
17787
|
-
isAsyncList:
|
17788
|
-
leftSpace:
|
17764
|
+
searchKey: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string)]).def('name'),
|
17765
|
+
useGroup: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17766
|
+
allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17767
|
+
maxData: external_shared_namespaceObject.PropTypes.number.def(-1),
|
17768
|
+
maxResult: external_shared_namespaceObject.PropTypes.number.def(10),
|
17769
|
+
contentMaxHeight: external_shared_namespaceObject.PropTypes.number.def(300),
|
17770
|
+
contentWidth: external_shared_namespaceObject.PropTypes.number.def(190),
|
17771
|
+
separator: external_shared_namespaceObject.PropTypes.string.def(''),
|
17772
|
+
allowNextFocus: external_shared_namespaceObject.PropTypes.bool.def(true),
|
17773
|
+
allowAutoMatch: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17774
|
+
showClearOnlyHover: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17775
|
+
isAsyncList: external_shared_namespaceObject.PropTypes.bool.def(false),
|
17776
|
+
leftSpace: external_shared_namespaceObject.PropTypes.number.def(0),
|
17789
17777
|
createTagValidator: {
|
17790
17778
|
type: Function
|
17791
17779
|
},
|
@@ -17864,12 +17852,12 @@ function tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17864
17852
|
/* harmony default export */ const tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
17865
17853
|
name: 'TagRender',
|
17866
17854
|
directives: {
|
17867
|
-
bkTooltips:
|
17855
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
17868
17856
|
},
|
17869
17857
|
props: {
|
17870
|
-
node:
|
17871
|
-
displayKey:
|
17872
|
-
tooltipKey:
|
17858
|
+
node: external_shared_namespaceObject.PropTypes.object,
|
17859
|
+
displayKey: external_shared_namespaceObject.PropTypes.string,
|
17860
|
+
tooltipKey: external_shared_namespaceObject.PropTypes.string,
|
17873
17861
|
tpl: {
|
17874
17862
|
type: Function
|
17875
17863
|
},
|
@@ -17897,7 +17885,7 @@ function tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17897
17885
|
}, props.tagOverflowTips);
|
17898
17886
|
});
|
17899
17887
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
17900
|
-
isOverflow.value = (0,
|
17888
|
+
isOverflow.value = (0,external_shared_namespaceObject.checkOverflow)(tagRef.value);
|
17901
17889
|
});
|
17902
17890
|
return {
|
17903
17891
|
overflowTips: overflowTips,
|
@@ -17961,20 +17949,17 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17961
17949
|
|
17962
17950
|
|
17963
17951
|
|
17964
|
-
|
17965
|
-
|
17966
|
-
|
17967
17952
|
/* harmony default export */ const tag_input = ((0,external_vue_namespaceObject.defineComponent)({
|
17968
17953
|
name: 'TagInput',
|
17969
17954
|
directives: {
|
17970
|
-
bkTooltips:
|
17955
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
17971
17956
|
},
|
17972
17957
|
props: tag_props(),
|
17973
17958
|
emits: ['update:modelValue', 'change', 'select', 'focus', 'blur', 'remove', 'removeAll', 'input'],
|
17974
17959
|
setup: function setup(props, _ref) {
|
17975
17960
|
var emit = _ref.emit;
|
17976
|
-
var formItem = (0,
|
17977
|
-
var t = (0,
|
17961
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
17962
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('tagInput');
|
17978
17963
|
var state = (0,external_vue_namespaceObject.reactive)({
|
17979
17964
|
isEdit: false,
|
17980
17965
|
isHover: false,
|
@@ -17989,7 +17974,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
17989
17974
|
// alignmentAxis: 50,
|
17990
17975
|
}
|
17991
17976
|
}, props.popoverProps));
|
17992
|
-
var _usePrefix = (0,
|
17977
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
17993
17978
|
resolveClassName = _usePrefix.resolveClassName;
|
17994
17979
|
// 分页处理
|
17995
17980
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
@@ -18800,7 +18785,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18800
18785
|
"onMouseleave": function onMouseleave() {
|
18801
18786
|
return _this.isHover = false;
|
18802
18787
|
}
|
18803
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
18788
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
18804
18789
|
"theme": "light ".concat(this.resolveClassName('tag-input-popover-content')),
|
18805
18790
|
"trigger": "manual",
|
18806
18791
|
"placement": "bottom-start",
|
@@ -18830,7 +18815,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18830
18815
|
"displayKey": _this.displayKey,
|
18831
18816
|
"tooltipKey": _this.tooltipKey || _this.displayKey,
|
18832
18817
|
"tagOverflowTips": _this.tagOverflowTips
|
18833
|
-
}, null), _this.showTagClose && (0,external_vue_namespaceObject.createVNode)(
|
18818
|
+
}, null), _this.showTagClose && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
18834
18819
|
"class": "remove-tag",
|
18835
18820
|
"onClick": _this.handleTagRemove.bind(_this, item, index)
|
18836
18821
|
}, null)]);
|
@@ -18859,7 +18844,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18859
18844
|
"class": "text"
|
18860
18845
|
}, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.collapseTooltip.join(', ')]])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
|
18861
18846
|
"class": "placeholder"
|
18862
|
-
}, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_this$$slots$suffix = (_this$$slots = _this.$slots) === null || _this$$slots === void 0 || (_this$$slots$suffix2 = _this$$slots.suffix) === null || _this$$slots$suffix2 === void 0 ? void 0 : _this$$slots$suffix2.call(_this$$slots)) !== null && _this$$slots$suffix !== void 0 ? _this$$slots$suffix : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(
|
18847
|
+
}, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_this$$slots$suffix = (_this$$slots = _this.$slots) === null || _this$$slots === void 0 || (_this$$slots$suffix2 = _this$$slots.suffix) === null || _this$$slots$suffix2 === void 0 ? void 0 : _this$$slots$suffix2.call(_this$$slots)) !== null && _this$$slots$suffix !== void 0 ? _this$$slots$suffix : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
18863
18848
|
"class": "clear-icon",
|
18864
18849
|
"onClick": _this.handleClear
|
18865
18850
|
}, null)]);
|
@@ -18909,9 +18894,9 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18909
18894
|
}, null)]);
|
18910
18895
|
}), _this.isPageLoading ? (0,external_vue_namespaceObject.createVNode)("li", {
|
18911
18896
|
"class": "".concat(_this.resolveClassName('selector-list-item'), " loading")
|
18912
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
18897
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
18913
18898
|
"theme": "primary",
|
18914
|
-
"size":
|
18899
|
+
"size": external_loading_namespaceObject.BkLoadingSize.Small
|
18915
18900
|
}, null)]) : null])]);
|
18916
18901
|
}
|
18917
18902
|
})]);
|
@@ -18945,7 +18930,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
18945
18930
|
*/
|
18946
18931
|
|
18947
18932
|
|
18948
|
-
var TagInput = (0,
|
18933
|
+
var TagInput = (0,external_shared_namespaceObject.withInstall)(tag_input);
|
18949
18934
|
/* harmony default export */ const src = (TagInput);
|
18950
18935
|
})();
|
18951
18936
|
|
package/lib/time-picker/index.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
import "../
|
2
|
-
import "
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__ from "../date-picker";
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__date_picker_5900b182__ from "../date-picker";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
5
3
|
/******/ // The require scope
|
6
4
|
/******/ var __webpack_require__ = {};
|
7
5
|
/******/
|
@@ -34,11 +32,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
32
|
;// CONCATENATED MODULE: external "../date-picker"
|
35
33
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
34
|
var y = x => () => x
|
37
|
-
const
|
35
|
+
const external_date_picker_namespaceObject = x({ ["TimePicker"]: () => __WEBPACK_EXTERNAL_MODULE__date_picker_5900b182__.TimePicker });
|
38
36
|
;// CONCATENATED MODULE: external "../shared"
|
39
|
-
var
|
40
|
-
var
|
41
|
-
const
|
37
|
+
var external_shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
|
+
var external_shared_y = x => () => x
|
39
|
+
const external_shared_namespaceObject = external_shared_x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
42
40
|
;// CONCATENATED MODULE: ../../packages/time-picker/src/index.ts
|
43
41
|
/*
|
44
42
|
* Tencent is pleased to support the open source community by making
|
@@ -67,7 +65,7 @@ const shared_namespaceObject = shared_x({ ["withInstall"]: () => __WEBPACK_EXTER
|
|
67
65
|
*/
|
68
66
|
|
69
67
|
|
70
|
-
var BkTimePicker = (0,
|
68
|
+
var BkTimePicker = (0,external_shared_namespaceObject.withInstall)(external_date_picker_namespaceObject.TimePicker);
|
71
69
|
/* harmony default export */ const src = (BkTimePicker);
|
72
70
|
var __webpack_exports__default = __webpack_exports__["default"];
|
73
71
|
export { __webpack_exports__default as default };
|
package/lib/timeline/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import "../
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
4
|
/******/ // The require scope
|
6
5
|
/******/ var __webpack_require__ = {};
|
7
6
|
/******/
|
@@ -34,7 +33,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
33
|
;// CONCATENATED MODULE: external "../shared"
|
35
34
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
36
35
|
var y = x => () => x
|
37
|
-
const
|
36
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
38
37
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
39
38
|
function _typeof(o) {
|
40
39
|
"@babel/helpers - typeof";
|
@@ -50,9 +49,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
50
49
|
var external_vue_y = x => () => x
|
51
50
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
52
51
|
;// CONCATENATED MODULE: external "../config-provider"
|
53
|
-
var
|
54
|
-
var
|
55
|
-
const
|
52
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
|
+
var external_config_provider_y = x => () => x
|
54
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
56
55
|
;// CONCATENATED MODULE: ../../packages/timeline/src/timeline.tsx
|
57
56
|
|
58
57
|
|
@@ -85,9 +84,9 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
85
84
|
|
86
85
|
|
87
86
|
var timelineProps = {
|
88
|
-
list:
|
89
|
-
titleAble:
|
90
|
-
extCls:
|
87
|
+
list: external_shared_namespaceObject.PropTypes.array.def([]),
|
88
|
+
titleAble: external_shared_namespaceObject.PropTypes.bool.def(false),
|
89
|
+
extCls: external_shared_namespaceObject.PropTypes.string
|
91
90
|
};
|
92
91
|
/* harmony default export */ const timeline = ((0,external_vue_namespaceObject.defineComponent)({
|
93
92
|
name: 'Timeline',
|
@@ -145,7 +144,7 @@ var timelineProps = {
|
|
145
144
|
}, {
|
146
145
|
deep: true
|
147
146
|
});
|
148
|
-
var _usePrefix = (0,
|
147
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
149
148
|
resolveClassName = _usePrefix.resolveClassName;
|
150
149
|
return {
|
151
150
|
defaultTimelines: defaultTimelines,
|
@@ -170,7 +169,7 @@ var timelineProps = {
|
|
170
169
|
var timelineFilledCls = item.filled ? "".concat(timelineClsPrefix, "-filled") : '';
|
171
170
|
var timelinesColorsCls = item.color && dotColors.includes(item.color) ? "".concat(timelineClsPrefix, "-").concat(item.color) : '';
|
172
171
|
var timelineCustomIcon = isIcon(item) ? "".concat(timelineClsPrefix, "-custom") : '';
|
173
|
-
var timelinesCls = (0,
|
172
|
+
var timelinesCls = (0,external_shared_namespaceObject.classes)({}, "".concat(timelineClsPrefix, " ").concat(timelineThemeCls, " ").concat(timelineSizeCls, " ").concat(timelinesColorsCls, " ").concat(timelineFilledCls, " ").concat(timelineCustomIcon));
|
174
173
|
return timelinesCls;
|
175
174
|
};
|
176
175
|
var getContent = function getContent(item) {
|
@@ -236,7 +235,7 @@ var timelineProps = {
|
|
236
235
|
*/
|
237
236
|
|
238
237
|
|
239
|
-
var BkTimeline = (0,
|
238
|
+
var BkTimeline = (0,external_shared_namespaceObject.withInstall)(timeline);
|
240
239
|
/* harmony default export */ const src = (BkTimeline);
|
241
240
|
var __webpack_exports__default = __webpack_exports__["default"];
|
242
241
|
export { __webpack_exports__default as default };
|
package/lib/transfer/index.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
import "../
|
2
|
-
import "./transfer.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import "../
|
7
|
-
import * as
|
8
|
-
import * as
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
10
|
-
import "../input/input.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__ from "../icon/";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__input_752b0149__ from "../input";
|
11
7
|
/******/ // The require scope
|
12
8
|
/******/ var __webpack_require__ = {};
|
13
9
|
/******/
|
@@ -40,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
40
36
|
;// CONCATENATED MODULE: external "../shared"
|
41
37
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
42
38
|
var y = x => () => x
|
43
|
-
const
|
39
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
44
40
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
45
41
|
function _arrayLikeToArray(arr, len) {
|
46
42
|
if (len == null || len > arr.length) len = arr.length;
|
@@ -83,29 +79,21 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
83
79
|
var external_vue_y = x => () => x
|
84
80
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
85
81
|
;// CONCATENATED MODULE: external "../checkbox"
|
86
|
-
var
|
87
|
-
var
|
88
|
-
const
|
89
|
-
;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
|
90
|
-
var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
91
|
-
var checkbox_less_y = x => () => x
|
92
|
-
const checkbox_less_namespaceObject = checkbox_less_x({ });
|
82
|
+
var external_checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
83
|
+
var external_checkbox_y = x => () => x
|
84
|
+
const external_checkbox_namespaceObject = external_checkbox_x({ ["BkCheckboxGroup"]: () => __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__.BkCheckboxGroup, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__["default"] });
|
93
85
|
;// CONCATENATED MODULE: external "../config-provider"
|
94
|
-
var
|
95
|
-
var
|
96
|
-
const
|
86
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
|
+
var external_config_provider_y = x => () => x
|
88
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
97
89
|
;// CONCATENATED MODULE: external "../icon/"
|
98
90
|
var _x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
99
91
|
var _y = x => () => x
|
100
|
-
const _namespaceObject = _x({ ["AngleLeft"]: () =>
|
92
|
+
const _namespaceObject = _x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.AngleLeft, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.AngleRight, ["ArrowsRight"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.ArrowsRight, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.Error, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.Search, ["Transfer"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.Transfer });
|
101
93
|
;// CONCATENATED MODULE: external "../input"
|
102
|
-
var
|
103
|
-
var
|
104
|
-
const
|
105
|
-
;// CONCATENATED MODULE: external "../input/input.less"
|
106
|
-
var input_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
107
|
-
var input_less_y = x => () => x
|
108
|
-
const input_less_namespaceObject = input_less_x({ });
|
94
|
+
var external_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
95
|
+
var external_input_y = x => () => x
|
96
|
+
const external_input_namespaceObject = external_input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__input_752b0149__["default"] });
|
109
97
|
;// CONCATENATED MODULE: ../../packages/transfer/src/const.ts
|
110
98
|
/*
|
111
99
|
* Tencent is pleased to support the open source community by making
|
@@ -168,31 +156,31 @@ var ArrayType;
|
|
168
156
|
|
169
157
|
var transferProps = {
|
170
158
|
// 顶部title(title[0]: 左侧title,title[1]: 右侧title,)
|
171
|
-
title:
|
159
|
+
title: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string).def([]),
|
172
160
|
// 自定义class
|
173
|
-
extCls:
|
161
|
+
extCls: external_shared_namespaceObject.PropTypes.string.def(''),
|
174
162
|
// 搜索框 placeholder
|
175
|
-
searchPlaceholder:
|
163
|
+
searchPlaceholder: external_shared_namespaceObject.PropTypes.string.def(''),
|
176
164
|
// 唯一key值
|
177
|
-
settingKey:
|
165
|
+
settingKey: external_shared_namespaceObject.PropTypes.string.def('id'),
|
178
166
|
// 循环list时,显示字段的key值(当list为普通数组时可不传传了也无效)
|
179
|
-
displayKey:
|
167
|
+
displayKey: external_shared_namespaceObject.PropTypes.string.def('value'),
|
180
168
|
// 排序所依据的key(当list为普通数组时可不传,默认按照index值排序)
|
181
|
-
sortKey:
|
169
|
+
sortKey: external_shared_namespaceObject.PropTypes.string.def('value'),
|
182
170
|
// 内容超出是否显示tooltip
|
183
|
-
showOverflowTips:
|
171
|
+
showOverflowTips: external_shared_namespaceObject.PropTypes.bool.def(false),
|
184
172
|
// 是否开启搜索
|
185
|
-
searchable:
|
173
|
+
searchable: external_shared_namespaceObject.PropTypes.bool.def(false),
|
186
174
|
// 是否开启排序功能
|
187
|
-
sortable:
|
175
|
+
sortable: external_shared_namespaceObject.PropTypes.bool.def(false),
|
188
176
|
// 穿梭框数据源(支持普通数组)
|
189
|
-
sourceList:
|
177
|
+
sourceList: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.any).def([]),
|
190
178
|
// 默认已选择的数据源
|
191
|
-
targetList:
|
179
|
+
targetList: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.any).def([]),
|
192
180
|
// 穿梭框无数据时提示文案
|
193
|
-
emptyContent:
|
181
|
+
emptyContent: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string).def([]),
|
194
182
|
// 支持checkbox多选模式
|
195
|
-
multiple:
|
183
|
+
multiple: external_shared_namespaceObject.PropTypes.bool.def(false)
|
196
184
|
};
|
197
185
|
;// CONCATENATED MODULE: ../../packages/transfer/src/transfer.tsx
|
198
186
|
|
@@ -230,9 +218,6 @@ var transferProps = {
|
|
230
218
|
|
231
219
|
|
232
220
|
|
233
|
-
|
234
|
-
|
235
|
-
|
236
221
|
// 生成数据
|
237
222
|
function _isSlot(s) {
|
238
223
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
@@ -290,7 +275,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
290
275
|
emits: ['change', 'update:targetList'],
|
291
276
|
setup: function setup(props, _ref) {
|
292
277
|
var emit = _ref.emit;
|
293
|
-
var t = (0,
|
278
|
+
var t = (0,external_config_provider_namespaceObject.useLocale)('transfer');
|
294
279
|
var multipleSelectAllValue = (0,external_vue_namespaceObject.ref)({
|
295
280
|
source: false,
|
296
281
|
target: false
|
@@ -471,7 +456,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
471
456
|
multipleSelectList.value[isLeft ? 'source' : 'target'] = [];
|
472
457
|
handleEmitUpdateTargetList();
|
473
458
|
};
|
474
|
-
var _usePrefix = (0,
|
459
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
475
460
|
resolveClassName = _usePrefix.resolveClassName;
|
476
461
|
return {
|
477
462
|
selectSearchQuery: selectSearchQuery,
|
@@ -515,7 +500,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
515
500
|
"class": "slot-header"
|
516
501
|
}, [_this.$slots[dirct]()]) : (0,external_vue_namespaceObject.createVNode)("div", {
|
517
502
|
"class": "header"
|
518
|
-
}, [_this.multiple ? (0,external_vue_namespaceObject.createVNode)(
|
503
|
+
}, [_this.multiple ? (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
|
519
504
|
"class": "header-checkbox",
|
520
505
|
"label": titleText,
|
521
506
|
"modelValue": _this.multipleSelectAllValue[selectField],
|
@@ -576,7 +561,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
576
561
|
var list = isLeft ? leftList : rightList;
|
577
562
|
var slotName = isLeft ? 'source-option' : 'target-option';
|
578
563
|
var emptySlotName = isLeft ? 'left-empty-content' : 'right-empty-content';
|
579
|
-
var contentMode = multiple ? (0,external_vue_namespaceObject.createVNode)(
|
564
|
+
var contentMode = multiple ? (0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject.BkCheckboxGroup, {
|
580
565
|
"class": "content is-flex",
|
581
566
|
"modelValue": _this.multipleSelectList[selectField],
|
582
567
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
@@ -587,7 +572,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
587
572
|
}
|
588
573
|
}, _isSlot(_slot = list.map(function (item) {
|
589
574
|
var _this$$slots$slotName, _this$$slots$slotName2, _this$$slots;
|
590
|
-
return (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)(
|
575
|
+
return (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
|
591
576
|
"class": "checkbox-item",
|
592
577
|
"label": item[_this.settingCode]
|
593
578
|
}, {
|
@@ -617,7 +602,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
617
602
|
"class": ["".concat(this.resolveClassName('transfer')), this.extCls]
|
618
603
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
619
604
|
"class": "source-list"
|
620
|
-
}, [getHeaderHtml('left-header'), this.searchable && (0,external_vue_namespaceObject.createVNode)(
|
605
|
+
}, [getHeaderHtml('left-header'), this.searchable && (0,external_vue_namespaceObject.createVNode)(external_input_namespaceObject["default"], {
|
621
606
|
"modelValue": _this.selectSearchQuery,
|
622
607
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
623
608
|
return _this.selectSearchQuery = $event;
|
@@ -682,7 +667,7 @@ function useSelectListSearch(selectList, displayCode) {
|
|
682
667
|
*/
|
683
668
|
|
684
669
|
|
685
|
-
var Transfer = (0,
|
670
|
+
var Transfer = (0,external_shared_namespaceObject.withInstall)(transfer);
|
686
671
|
/* harmony default export */ const src = (Transfer);
|
687
672
|
var __webpack_exports__default = __webpack_exports__["default"];
|
688
673
|
export { __webpack_exports__default as default };
|