bkui-vue 0.0.2-beta.138 → 0.0.2-beta.139
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 +14 -13
- package/lib/alert/index.js +23 -22
- package/lib/animate-number/index.js +6 -5
- package/lib/backtop/index.js +21 -20
- package/lib/badge/index.js +20 -19
- package/lib/breadcrumb/index.js +25 -24
- package/lib/button/index.js +36 -28
- package/lib/card/index.js +42 -35
- package/lib/cascader/index.js +99 -80
- package/lib/checkbox/index.js +33 -32
- package/lib/code-diff/index.js +13 -12
- package/lib/collapse/index.js +40 -39
- package/lib/collapse-transition/index.js +8 -8
- package/lib/color-picker/index.js +49 -48
- package/lib/config-provider/index.js +8 -8
- package/lib/container/index.js +20 -19
- package/lib/date-picker/index.js +68 -61
- package/lib/dialog/index.js +62 -49
- package/lib/directives/index.js +12 -12
- package/lib/dist.index.js +3 -3
- package/lib/divider/index.js +14 -13
- package/lib/dropdown/index.js +31 -24
- package/lib/exception/index.js +12 -11
- package/lib/fixed-navbar/index.js +14 -13
- package/lib/form/index.js +49 -48
- package/lib/image/index.js +37 -37
- package/lib/index.js +6 -6
- package/lib/info-box/index.js +63 -50
- package/lib/input/index.js +60 -59
- package/lib/link/index.js +14 -13
- package/lib/loading/index.js +18 -17
- package/lib/menu/index.js +14 -13
- package/lib/message/index.js +39 -38
- package/lib/modal/index.js +32 -31
- package/lib/navigation/index.js +15 -14
- package/lib/notify/index.js +32 -31
- package/lib/overflow-title/index.js +21 -14
- package/lib/pagination/index.js +64 -50
- package/lib/plugin-popover/index.js +53 -53
- package/lib/pop-confirm/index.js +41 -28
- package/lib/popover/index.js +53 -52
- package/lib/popover2/index.js +3 -3
- package/lib/preset.js +4 -4
- package/lib/process/index.js +26 -26
- package/lib/progress/index.js +27 -26
- package/lib/radio/index.js +33 -32
- package/lib/rate/index.js +23 -22
- package/lib/resize-layout/index.js +26 -25
- package/lib/search-select/index.js +67 -49
- package/lib/select/index.js +164 -126
- package/lib/sideslider/index.js +21 -14
- package/lib/slider/index.js +35 -22
- package/lib/steps/index.js +29 -28
- package/lib/swiper/index.js +15 -14
- package/lib/switcher/index.js +30 -29
- package/lib/tab/index.js +45 -44
- package/lib/table/index.js +189 -137
- package/lib/table-column/index.js +40 -40
- package/lib/tag/index.js +21 -20
- package/lib/tag-input/index.js +78 -64
- package/lib/time-picker/index.js +8 -7
- package/lib/timeline/index.js +12 -12
- package/lib/transfer/index.js +50 -36
- package/lib/tree/index.js +91 -72
- package/lib/upload/index.js +62 -48
- package/lib/virtual-render/index.js +34 -33
- package/package.json +1 -1
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./fixed-navbar.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
/******/ // The require scope
|
5
6
|
/******/ var __webpack_require__ = {};
|
6
7
|
/******/
|
@@ -33,15 +34,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
33
34
|
;// CONCATENATED MODULE: external "../shared"
|
34
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
36
|
var y = x => () => x
|
36
|
-
const
|
37
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
38
|
;// CONCATENATED MODULE: external "vue"
|
38
39
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
40
|
var external_vue_y = x => () => x
|
40
41
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent });
|
41
42
|
;// CONCATENATED MODULE: external "../config-provider"
|
42
|
-
var
|
43
|
-
var
|
44
|
-
const
|
43
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
44
|
+
var config_provider_y = x => () => x
|
45
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
45
46
|
;// CONCATENATED MODULE: ../../packages/fixed-navbar/src/fixed-navbar.tsx
|
46
47
|
|
47
48
|
/*
|
@@ -75,10 +76,10 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
75
76
|
/* harmony default export */ const fixed_navbar = ((0,external_vue_namespaceObject.defineComponent)({
|
76
77
|
name: 'FixedNavbar',
|
77
78
|
props: {
|
78
|
-
navItems:
|
79
|
-
extCls:
|
80
|
-
position:
|
81
|
-
modelValue:
|
79
|
+
navItems: shared_namespaceObject.PropTypes.array.def([]),
|
80
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
81
|
+
position: shared_namespaceObject.PropTypes.oneOf(['middle', 'top', 'bottom']).def('middle'),
|
82
|
+
modelValue: shared_namespaceObject.PropTypes.bool.def(true)
|
82
83
|
},
|
83
84
|
emits: ['update:modelValue', 'click'],
|
84
85
|
setup: function setup(props, _ref) {
|
@@ -94,12 +95,12 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
94
95
|
text: ''
|
95
96
|
}, item);
|
96
97
|
});
|
97
|
-
var zIndex =
|
98
|
+
var zIndex = shared_namespaceObject.bkZIndexManager.getModalNextIndex();
|
98
99
|
var handleClick = function handleClick(item) {
|
99
100
|
emit('click', item);
|
100
101
|
item.action();
|
101
102
|
};
|
102
|
-
var _usePrefix = (0,
|
103
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
103
104
|
resolveClassName = _usePrefix.resolveClassName;
|
104
105
|
return function () {
|
105
106
|
return props.modelValue && (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -148,7 +149,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
148
149
|
*/
|
149
150
|
|
150
151
|
|
151
|
-
var BkFixedNavbar = (0,
|
152
|
+
var BkFixedNavbar = (0,shared_namespaceObject.withInstall)(fixed_navbar);
|
152
153
|
/* harmony default export */ const src = (BkFixedNavbar);
|
153
154
|
var __webpack_exports__default = __webpack_exports__.Z;
|
154
155
|
export { __webpack_exports__default as default };
|
package/lib/form/index.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
import
|
1
|
+
import "./form.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isBoolean_dcb66997__ from "lodash/isBoolean";
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isString_e6fa8a5b__ from "lodash/isString";
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
|
8
|
-
import * as
|
9
|
-
import * as
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
10
11
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isDate_b457317b__ from "lodash/isDate";
|
11
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__ from "lodash/isEmpty";
|
12
13
|
/******/ // The require scope
|
@@ -39,23 +40,23 @@ __webpack_require__.d(__webpack_exports__, {
|
|
39
40
|
ZD: () => (/* binding */ BkForm),
|
40
41
|
a_: () => (/* reexport */ form_item),
|
41
42
|
ZP: () => (/* binding */ src),
|
42
|
-
xE: () => (/* reexport */
|
43
|
-
vh: () => (/* reexport */
|
44
|
-
A9: () => (/* reexport */
|
43
|
+
xE: () => (/* reexport */ shared_namespaceObject.formItemKey),
|
44
|
+
vh: () => (/* reexport */ shared_namespaceObject.formKey),
|
45
|
+
A9: () => (/* reexport */ shared_namespaceObject.useFormItem)
|
45
46
|
});
|
46
47
|
|
47
48
|
;// CONCATENATED MODULE: external "../shared"
|
48
49
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
49
50
|
var y = x => () => x
|
50
|
-
const
|
51
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["formItemKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formItemKey, ["formKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formKey, ["useForm"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useForm, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
|
51
52
|
;// CONCATENATED MODULE: external "vue"
|
52
53
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
54
|
var external_vue_y = x => () => x
|
54
55
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
55
56
|
;// CONCATENATED MODULE: external "../config-provider"
|
56
|
-
var
|
57
|
-
var
|
58
|
-
const
|
57
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
58
|
+
var config_provider_y = x => () => x
|
59
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
59
60
|
;// CONCATENATED MODULE: ../../packages/form/src/compose-form-item.tsx
|
60
61
|
/*
|
61
62
|
* Tencent is pleased to support the open source community by making
|
@@ -97,7 +98,7 @@ var isCustomComponent = function isCustomComponent(node) {
|
|
97
98
|
tailBackgroundColor: String
|
98
99
|
},
|
99
100
|
setup: function setup() {
|
100
|
-
var _usePrefix = (0,
|
101
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
101
102
|
resolveClassName = _usePrefix.resolveClassName;
|
102
103
|
return {
|
103
104
|
resolveClassName: resolveClassName
|
@@ -251,11 +252,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
251
252
|
|
252
253
|
|
253
254
|
var formProps = {
|
254
|
-
formType:
|
255
|
-
labelWidth:
|
256
|
-
labelPosition:
|
257
|
-
model:
|
258
|
-
rules:
|
255
|
+
formType: shared_namespaceObject.PropTypes.oneOf(['default', 'vertical']).def('default'),
|
256
|
+
labelWidth: shared_namespaceObject.PropTypes.oneOfType([Number, String]).def(150),
|
257
|
+
labelPosition: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
|
258
|
+
model: shared_namespaceObject.PropTypes.object,
|
259
|
+
rules: shared_namespaceObject.PropTypes.object
|
259
260
|
};
|
260
261
|
var formEvents = {
|
261
262
|
submit: null,
|
@@ -290,7 +291,7 @@ var formEvents = {
|
|
290
291
|
return result;
|
291
292
|
}, []);
|
292
293
|
};
|
293
|
-
(0,external_vue_namespaceObject.provide)(
|
294
|
+
(0,external_vue_namespaceObject.provide)(shared_namespaceObject.formKey, {
|
294
295
|
props: props,
|
295
296
|
emit: context.emit,
|
296
297
|
register: register,
|
@@ -362,7 +363,7 @@ var formEvents = {
|
|
362
363
|
return fieldMap[formItem.property] && formItem.clearValidate();
|
363
364
|
});
|
364
365
|
};
|
365
|
-
var _usePrefix = (0,
|
366
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
366
367
|
resolveClassName = _usePrefix.resolveClassName;
|
367
368
|
return {
|
368
369
|
handleSubmit: handleSubmit,
|
@@ -374,7 +375,7 @@ var formEvents = {
|
|
374
375
|
},
|
375
376
|
render: function render() {
|
376
377
|
var _classes, _this$$slots$default, _this$$slots;
|
377
|
-
var formClasses = (0,
|
378
|
+
var formClasses = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('form')), true), _defineProperty(_classes, "".concat(this.resolveClassName("form--".concat(this.formType))), true), _classes));
|
378
379
|
return (0,external_vue_namespaceObject.createVNode)("form", {
|
379
380
|
"class": formClasses,
|
380
381
|
"onSubmit": this.handleSubmit
|
@@ -427,13 +428,13 @@ var isFunction_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
427
428
|
var isFunction_y = x => () => x
|
428
429
|
const isFunction_namespaceObject = isFunction_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__["default"] });
|
429
430
|
;// CONCATENATED MODULE: external "../directives"
|
430
|
-
var
|
431
|
-
var
|
432
|
-
const
|
431
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
432
|
+
var directives_y = x => () => x
|
433
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
433
434
|
;// CONCATENATED MODULE: external "../icon"
|
434
|
-
var
|
435
|
-
var
|
436
|
-
const
|
435
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
436
|
+
var icon_y = x => () => x
|
437
|
+
const icon_namespaceObject = icon_x({ ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape });
|
437
438
|
;// CONCATENATED MODULE: ../../packages/form/src/utils.ts
|
438
439
|
/*
|
439
440
|
* Tencent is pleased to support the open source community by making
|
@@ -566,19 +567,19 @@ function form_item_objectSpread(target) { for (var i = 1; i < arguments.length;
|
|
566
567
|
|
567
568
|
|
568
569
|
var formItemProps = {
|
569
|
-
label:
|
570
|
-
labelWidth:
|
571
|
-
labelPosition:
|
572
|
-
property:
|
573
|
-
required:
|
574
|
-
email:
|
575
|
-
max:
|
576
|
-
min:
|
577
|
-
maxlength:
|
578
|
-
rules:
|
579
|
-
autoCheck:
|
580
|
-
description:
|
581
|
-
errorDisplayType:
|
570
|
+
label: shared_namespaceObject.PropTypes.string,
|
571
|
+
labelWidth: shared_namespaceObject.PropTypes.oneOfType([Number, String]),
|
572
|
+
labelPosition: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
|
573
|
+
property: shared_namespaceObject.PropTypes.string.def(''),
|
574
|
+
required: shared_namespaceObject.PropTypes.bool.def(false),
|
575
|
+
email: shared_namespaceObject.PropTypes.bool.def(false),
|
576
|
+
max: shared_namespaceObject.PropTypes.number,
|
577
|
+
min: shared_namespaceObject.PropTypes.number,
|
578
|
+
maxlength: shared_namespaceObject.PropTypes.number,
|
579
|
+
rules: shared_namespaceObject.PropTypes.array,
|
580
|
+
autoCheck: shared_namespaceObject.PropTypes.bool.def(false),
|
581
|
+
description: shared_namespaceObject.PropTypes.string,
|
582
|
+
errorDisplayType: shared_namespaceObject.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
|
582
583
|
};
|
583
584
|
var hasOwn = function hasOwn(obj, key) {
|
584
585
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
@@ -703,14 +704,14 @@ var isValid = function isValid(value) {
|
|
703
704
|
/* harmony default export */ const form_item = ((0,external_vue_namespaceObject.defineComponent)({
|
704
705
|
name: 'FormItem',
|
705
706
|
directives: {
|
706
|
-
bkTooltips:
|
707
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
707
708
|
},
|
708
709
|
props: formItemProps,
|
709
710
|
setup: function setup(props, context) {
|
710
|
-
var t = (0,
|
711
|
-
var form = (0,
|
711
|
+
var t = (0,config_provider_namespaceObject.useLocale)('form');
|
712
|
+
var form = (0,shared_namespaceObject.useForm)();
|
712
713
|
var isForm = Boolean(form);
|
713
|
-
var parentFormItem = (0,
|
714
|
+
var parentFormItem = (0,shared_namespaceObject.useFormItem)();
|
714
715
|
var isNested = Boolean(parentFormItem);
|
715
716
|
var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
716
717
|
var state = (0,external_vue_namespaceObject.reactive)({
|
@@ -836,7 +837,7 @@ var isValid = function isValid(value) {
|
|
836
837
|
state.isError = false;
|
837
838
|
state.errorMessage = '';
|
838
839
|
};
|
839
|
-
(0,external_vue_namespaceObject.provide)(
|
840
|
+
(0,external_vue_namespaceObject.provide)(shared_namespaceObject.formItemKey, form_item_objectSpread(form_item_objectSpread({}, props), {}, {
|
840
841
|
validate: validate,
|
841
842
|
clearValidate: clearValidate
|
842
843
|
}));
|
@@ -850,7 +851,7 @@ var isValid = function isValid(value) {
|
|
850
851
|
form.unregister(currentInstance.proxy);
|
851
852
|
}
|
852
853
|
});
|
853
|
-
var _usePrefix = (0,
|
854
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
854
855
|
resolveClassName = _usePrefix.resolveClassName;
|
855
856
|
return form_item_objectSpread(form_item_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(state)), {}, {
|
856
857
|
isShowLabel: isShowLabel,
|
@@ -869,7 +870,7 @@ var isValid = function isValid(value) {
|
|
869
870
|
_this$$slots,
|
870
871
|
_this$$slots$default,
|
871
872
|
_this$$slots2;
|
872
|
-
var itemClassees = (0,
|
873
|
+
var itemClassees = (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(this.resolveClassName('form-item')), true), _defineProperty(_classes, 'is-error', this.isError), _defineProperty(_classes, 'is-required', this.required), _classes));
|
873
874
|
var renderLabel = function renderLabel() {
|
874
875
|
if (_this.$slots.label) {
|
875
876
|
return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.$slots.label()]);
|
@@ -888,7 +889,7 @@ var isValid = function isValid(value) {
|
|
888
889
|
if (_this.errorDisplayType === 'tooltips') {
|
889
890
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
890
891
|
"class": "".concat(_this.resolveClassName('form-error-tips'))
|
891
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
892
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, null, null)]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
|
892
893
|
}
|
893
894
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
894
895
|
"class": "".concat(_this.resolveClassName('form-error'))
|
@@ -936,7 +937,7 @@ var isValid = function isValid(value) {
|
|
936
937
|
|
937
938
|
|
938
939
|
|
939
|
-
var BkForm = (0,
|
940
|
+
var BkForm = (0,shared_namespaceObject.withInstallProps)(src_form, {
|
940
941
|
FormItem: form_item,
|
941
942
|
ComposeFormItem: compose_form_item
|
942
943
|
});
|
package/lib/image/index.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import * as
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
|
7
|
-
import * as
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
8
8
|
/******/ // The require scope
|
9
9
|
/******/ var __webpack_require__ = {};
|
10
10
|
/******/
|
@@ -39,19 +39,19 @@ __webpack_require__.d(__webpack_exports__, {
|
|
39
39
|
;// CONCATENATED MODULE: external "../shared"
|
40
40
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
41
41
|
var y = x => () => x
|
42
|
-
const
|
42
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
43
43
|
;// CONCATENATED MODULE: external "vue"
|
44
44
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
45
|
var external_vue_y = x => () => x
|
46
46
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["effectScope"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.effectScope, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
47
47
|
;// CONCATENATED MODULE: external "../config-provider"
|
48
|
-
var
|
49
|
-
var
|
50
|
-
const
|
48
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
49
|
+
var config_provider_y = x => () => x
|
50
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
51
51
|
;// CONCATENATED MODULE: external "../icon"
|
52
|
-
var
|
53
|
-
var
|
54
|
-
const
|
52
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
53
|
+
var icon_y = x => () => x
|
54
|
+
const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleLeft, ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner });
|
55
55
|
;// CONCATENATED MODULE: external "vue-types"
|
56
56
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
57
57
|
var external_vue_types_y = x => () => x
|
@@ -68,15 +68,15 @@ var FitEnum;
|
|
68
68
|
FitEnum["SCALE_DOWN"] = "scale-down";
|
69
69
|
})(FitEnum || (FitEnum = {}));
|
70
70
|
var propsImage = {
|
71
|
-
src:
|
72
|
-
fallback:
|
73
|
-
placeholder:
|
71
|
+
src: shared_namespaceObject.PropTypes.string.def(''),
|
72
|
+
fallback: shared_namespaceObject.PropTypes.string.def(''),
|
73
|
+
placeholder: shared_namespaceObject.PropTypes.any,
|
74
74
|
fit: (0,external_vue_types_namespaceObject.toType)('fit', {}).def(FitEnum.FILL),
|
75
|
-
lazy:
|
76
|
-
urlList:
|
77
|
-
isShowPreviewTitle:
|
78
|
-
maskClose:
|
79
|
-
zIndex:
|
75
|
+
lazy: shared_namespaceObject.PropTypes.bool,
|
76
|
+
urlList: shared_namespaceObject.PropTypes.array.def([]),
|
77
|
+
isShowPreviewTitle: shared_namespaceObject.PropTypes.bool.def(true),
|
78
|
+
maskClose: shared_namespaceObject.PropTypes.bool.def(true),
|
79
|
+
zIndex: shared_namespaceObject.PropTypes.number.def(2000)
|
80
80
|
};
|
81
81
|
var propsImageViever = {
|
82
82
|
urlList: {
|
@@ -85,11 +85,11 @@ var propsImageViever = {
|
|
85
85
|
return [];
|
86
86
|
}
|
87
87
|
},
|
88
|
-
zIndex:
|
89
|
-
initialIndex:
|
90
|
-
isShowTitle:
|
91
|
-
loops:
|
92
|
-
maskClose:
|
88
|
+
zIndex: shared_namespaceObject.PropTypes.number.def(2000),
|
89
|
+
initialIndex: shared_namespaceObject.PropTypes.number.def(0),
|
90
|
+
isShowTitle: shared_namespaceObject.PropTypes.bool.def(true),
|
91
|
+
loops: shared_namespaceObject.PropTypes.bool.def(true),
|
92
|
+
maskClose: shared_namespaceObject.PropTypes.bool.def(true)
|
93
93
|
};
|
94
94
|
;// CONCATENATED MODULE: ../../packages/image/src/image.tsx
|
95
95
|
|
@@ -159,14 +159,14 @@ var propsImageViever = {
|
|
159
159
|
hasError.value = false;
|
160
160
|
imageSrc.value = props.src;
|
161
161
|
}
|
162
|
-
var _usePrefix = (0,
|
162
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
163
163
|
resolveClassName = _usePrefix.resolveClassName;
|
164
164
|
return function () {
|
165
165
|
function getContent() {
|
166
166
|
if (loading.value) {
|
167
167
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
168
168
|
"class": "".concat(resolveClassName('image-placeholder'))
|
169
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
169
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Spinner, null, null)]);
|
170
170
|
}
|
171
171
|
if (hasError.value) {
|
172
172
|
if (slots.error) {
|
@@ -252,9 +252,9 @@ var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
252
252
|
var throttle_y = x => () => x
|
253
253
|
const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
|
254
254
|
;// CONCATENATED MODULE: external "../directives"
|
255
|
-
var
|
256
|
-
var
|
257
|
-
const
|
255
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
256
|
+
var directives_y = x => () => x
|
257
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
|
258
258
|
;// CONCATENATED MODULE: ../../packages/image/src/image-viewer.tsx
|
259
259
|
|
260
260
|
|
@@ -295,7 +295,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
295
295
|
/* harmony default export */ const image_viewer = ((0,external_vue_namespaceObject.defineComponent)({
|
296
296
|
name: 'ImageViewer',
|
297
297
|
directives: {
|
298
|
-
bkTooltips:
|
298
|
+
bkTooltips: directives_namespaceObject.bkTooltips
|
299
299
|
},
|
300
300
|
props: propsImageViever,
|
301
301
|
emits: ['close', 'change'],
|
@@ -377,7 +377,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
377
377
|
if (props.zIndex) {
|
378
378
|
zIndex = props.zIndex;
|
379
379
|
} else {
|
380
|
-
zIndex +=
|
380
|
+
zIndex += shared_namespaceObject.bkZIndexManager.getModalNextIndex() || 1;
|
381
381
|
}
|
382
382
|
return {
|
383
383
|
zIndex: zIndex
|
@@ -521,7 +521,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
521
521
|
document.addEventListener('mouseup', mouseup);
|
522
522
|
e.preventDefault();
|
523
523
|
}
|
524
|
-
var _usePrefix = (0,
|
524
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
525
525
|
resolveClassName = _usePrefix.resolveClassName;
|
526
526
|
return function () {
|
527
527
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
@@ -551,15 +551,15 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
551
551
|
}, [(0,external_vue_namespaceObject.createTextVNode)("ESC \u53EF\u4EE5\u9000\u51FA\u5168\u5C4F")]), (0,external_vue_namespaceObject.createVNode)("div", {
|
552
552
|
"class": "".concat(resolveClassName('image-viewer-close')),
|
553
553
|
"onClick": hide
|
554
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
554
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, null, null)])])]) : '', !isSingle.value ? (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
|
555
555
|
"onClick": prev,
|
556
556
|
"class": "".concat(resolveClassName('image-viewer-btn'), " ").concat(resolveClassName('image-viewer-prev'), " ").concat(!props.loops && isFirst ? 'is-disabled' : '')
|
557
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
557
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
558
558
|
"onClick": next,
|
559
559
|
"class": "".concat(resolveClassName('image-viewer-btn'), " ").concat(resolveClassName('image-viewer-prev'), " ").concat(!props.loops && isLast ? 'is-disabled' : '')
|
560
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
560
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, null, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
561
561
|
"class": "".concat(resolveClassName('image-viewer-actions-inner'))
|
562
|
-
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(
|
562
|
+
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleLeft, {
|
563
563
|
"onClick": function onClick() {
|
564
564
|
return handleActions('zoomOut');
|
565
565
|
}
|
@@ -633,7 +633,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
633
633
|
|
634
634
|
|
635
635
|
|
636
|
-
var BkImage = (0,
|
636
|
+
var BkImage = (0,shared_namespaceObject.withInstall)(src_image);
|
637
637
|
/* harmony default export */ const src = (BkImage);
|
638
638
|
var __webpack_exports__Image = __webpack_exports__.Ee;
|
639
639
|
var __webpack_exports__ImageViewer = __webpack_exports__.OO;
|
package/lib/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__preset_b854ea38__ from "./preset";
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE__directives_37095733__ from "./directives";
|
4
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugins_2b35d7e4__ from "../plugins";
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__hooks_627f7bfe__ from "./hooks";
|
7
7
|
/******/ // The require scope
|
@@ -31,7 +31,7 @@ var __webpack_exports__ = {};
|
|
31
31
|
// EXPORTS
|
32
32
|
__webpack_require__.d(__webpack_exports__, {
|
33
33
|
"default": () => (/* reexport */ external_preset_namespaceObject["default"]),
|
34
|
-
plugins: () => (/* reexport */
|
34
|
+
plugins: () => (/* reexport */ plugins_namespaceObject)
|
35
35
|
});
|
36
36
|
|
37
37
|
;// CONCATENATED MODULE: external "./preset"
|
@@ -46,10 +46,10 @@ const external_components_namespaceObject = external_components_x({ });
|
|
46
46
|
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
47
|
var external_directives_y = x => () => x
|
48
48
|
const external_directives_namespaceObject = external_directives_x({ });
|
49
|
-
;// CONCATENATED MODULE: external "
|
50
|
-
var
|
51
|
-
var
|
52
|
-
const
|
49
|
+
;// CONCATENATED MODULE: external "../plugins"
|
50
|
+
var plugins_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
51
|
+
var plugins_y = x => () => x
|
52
|
+
const plugins_namespaceObject = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugins_2b35d7e4__;
|
53
53
|
;// CONCATENATED MODULE: external "./config-provider"
|
54
54
|
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
55
|
var external_config_provider_y = x => () => x
|