bkui-vue 0.0.1-beta.389 → 0.0.1-beta.390
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 +60 -128
- package/lib/alert/index.js +56 -124
- package/lib/animate-number/index.js +42 -106
- package/lib/backtop/index.js +61 -133
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +50 -114
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +5 -5
- package/lib/breadcrumb/index.js +67 -133
- package/lib/button/index.js +68 -147
- package/lib/card/index.js +69 -154
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +168 -242
- package/lib/checkbox/index.js +77 -139
- package/lib/code-diff/index.js +79 -121
- package/lib/collapse/index.js +84 -150
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/color-picker/index.js +193 -245
- package/lib/components.js +434 -671
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +64 -125
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +7 -7
- package/lib/date-picker/index.js +462 -563
- package/lib/date-picker/panel/time-range.d.ts +3 -3
- package/lib/date-picker/panel/time.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +7 -7
- package/lib/dialog/index.js +108 -198
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/index.js +86 -140
- package/lib/dist.index.js +48 -133
- package/lib/divider/index.js +50 -118
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +73 -155
- package/lib/exception/index.js +97 -145
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +4 -4
- package/lib/fixed-navbar/index.js +43 -107
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +107 -193
- package/lib/icon/angle-double-down-line.js +30 -90
- package/lib/icon/angle-double-left-line.js +30 -90
- package/lib/icon/angle-double-left.js +30 -90
- package/lib/icon/angle-double-right-line.js +30 -90
- package/lib/icon/angle-double-right.js +30 -90
- package/lib/icon/angle-double-up-line.js +30 -90
- package/lib/icon/angle-down-fill.js +30 -90
- package/lib/icon/angle-down-line.js +30 -90
- package/lib/icon/angle-down.js +30 -90
- package/lib/icon/angle-left.js +30 -90
- package/lib/icon/angle-right.js +30 -90
- package/lib/icon/angle-up-fill.js +30 -90
- package/lib/icon/angle-up.js +30 -90
- package/lib/icon/archive-fill.js +30 -90
- package/lib/icon/arrows-left.js +30 -90
- package/lib/icon/arrows-right.js +30 -90
- package/lib/icon/audio-fill.js +30 -90
- package/lib/icon/bk.js +30 -90
- package/lib/icon/circle.js +30 -90
- package/lib/icon/close-line.js +30 -90
- package/lib/icon/close.js +30 -90
- package/lib/icon/code.js +30 -90
- package/lib/icon/cog-shape.js +30 -90
- package/lib/icon/collapse-left.js +30 -90
- package/lib/icon/copy.js +30 -90
- package/lib/icon/data-shape.js +30 -90
- package/lib/icon/del.js +30 -90
- package/lib/icon/doc-fill.js +30 -90
- package/lib/icon/done.js +30 -90
- package/lib/icon/down-shape.js +30 -90
- package/lib/icon/down-small.js +30 -90
- package/lib/icon/edit-line.js +30 -90
- package/lib/icon/ellipsis.js +30 -90
- package/lib/icon/enlarge-line.js +30 -90
- package/lib/icon/error.js +30 -90
- package/lib/icon/excel-fill.js +30 -90
- package/lib/icon/exclamation-circle-shape.js +30 -90
- package/lib/icon/eye.js +30 -90
- package/lib/icon/filliscreen-line.js +30 -90
- package/lib/icon/folder-open.js +30 -90
- package/lib/icon/folder-shape-open.js +30 -90
- package/lib/icon/folder-shape.js +30 -90
- package/lib/icon/folder.js +30 -90
- package/lib/icon/funnel.js +30 -90
- package/lib/icon/help-document-fill.js +30 -90
- package/lib/icon/help-fill.js +30 -90
- package/lib/icon/help.js +30 -90
- package/lib/icon/image-fill.js +30 -90
- package/lib/icon/img-placehoulder.js +52 -88
- package/lib/icon/index.js +267 -255
- package/lib/icon/info-line.js +52 -88
- package/lib/icon/info.js +52 -88
- package/lib/icon/left-shape.js +52 -88
- package/lib/icon/left-turn-line.js +52 -88
- package/lib/icon/narrow-line.js +52 -88
- package/lib/icon/original.js +52 -88
- package/lib/icon/pdf-fill.js +52 -88
- package/lib/icon/play-shape.js +52 -88
- package/lib/icon/plus.js +52 -88
- package/lib/icon/ppt-fill.js +52 -88
- package/lib/icon/qq.js +52 -88
- package/lib/icon/right-shape.js +52 -88
- package/lib/icon/right-turn-line.js +52 -88
- package/lib/icon/search.js +52 -88
- package/lib/icon/share.js +52 -88
- package/lib/icon/spinner.js +52 -88
- package/lib/icon/success.js +52 -88
- package/lib/icon/switcher-loading.js +52 -88
- package/lib/icon/text-file.js +52 -88
- package/lib/icon/text-fill.js +52 -88
- package/lib/icon/transfer.js +52 -88
- package/lib/icon/tree-application-shape.js +52 -88
- package/lib/icon/unfull-screen.js +52 -88
- package/lib/icon/unvisible.js +52 -88
- package/lib/icon/up-shape.js +52 -88
- package/lib/icon/upload.js +52 -88
- package/lib/icon/video-fill.js +52 -88
- package/lib/icon/warn.js +52 -88
- package/lib/icon/weixin.js +52 -88
- package/lib/image/index.js +164 -213
- package/lib/index.js +50 -134
- package/lib/info-box/index.js +152 -206
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +99 -167
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +47 -115
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +67 -127
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +92 -156
- package/lib/message/index.js +76 -148
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +85 -151
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +66 -134
- package/lib/notify/index.js +81 -153
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +92 -128
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +131 -220
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +143 -191
- package/lib/plugins/index.js +33 -100
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +148 -194
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +35 -99
- package/lib/preset.js +37 -104
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +92 -134
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +63 -127
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +81 -142
- package/lib/rate/index.js +63 -127
- package/lib/resize-layout/index.js +79 -147
- package/lib/search-select/index.js +168 -220
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +315 -394
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +228 -203
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +88 -137
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +147 -196
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +105 -152
- package/lib/swiper/index.js +62 -126
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +65 -133
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +118 -188
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +457 -572
- package/lib/table-column/index.js +129 -197
- package/lib/tag/index.js +58 -130
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +175 -277
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/time-picker/index.d.ts +10 -10
- package/lib/time-picker/index.js +40 -111
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +50 -114
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +89 -174
- package/lib/tree/index.js +158 -235
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +173 -227
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.js +86 -154
- package/package.json +1 -1
package/lib/form/index.js
CHANGED
@@ -1,138 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__467__, __WEBPACK_EXTERNAL_MODULE__4061__, __WEBPACK_EXTERNAL_MODULE__6870__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 4061:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4061__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 6870:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 4212:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
33
|
-
|
34
|
-
/***/ }),
|
35
|
-
|
36
|
-
/***/ 467:
|
37
|
-
/***/ ((module) => {
|
38
|
-
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__467__;
|
40
|
-
|
41
|
-
/***/ }),
|
42
|
-
|
43
|
-
/***/ 748:
|
44
|
-
/***/ ((module) => {
|
45
|
-
|
46
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
47
|
-
|
48
|
-
/***/ })
|
49
|
-
|
50
|
-
/******/ });
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
6
|
+
/******/ // The require scope
|
7
|
+
/******/ var __webpack_require__ = {};
|
8
|
+
/******/
|
51
9
|
/************************************************************************/
|
52
|
-
/******/
|
53
|
-
/******/
|
54
|
-
/******/
|
55
|
-
/******/
|
56
|
-
/******/
|
57
|
-
/******/
|
58
|
-
/******/
|
59
|
-
/******/ if (cachedModule !== undefined) {
|
60
|
-
/******/ return cachedModule.exports;
|
61
|
-
/******/ }
|
62
|
-
/******/ // Create a new module (and put it into the cache)
|
63
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
64
|
-
/******/ // no module.id needed
|
65
|
-
/******/ // no module.loaded needed
|
66
|
-
/******/ exports: {}
|
67
|
-
/******/ };
|
68
|
-
/******/
|
69
|
-
/******/ // Execute the module function
|
70
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
71
|
-
/******/
|
72
|
-
/******/ // Return the exports of the module
|
73
|
-
/******/ return module.exports;
|
74
|
-
/******/ }
|
75
|
-
/******/
|
76
|
-
/************************************************************************/
|
77
|
-
/******/ /* webpack/runtime/compat get default export */
|
78
|
-
/******/ (() => {
|
79
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
80
|
-
/******/ __webpack_require__.n = (module) => {
|
81
|
-
/******/ var getter = module && module.__esModule ?
|
82
|
-
/******/ () => (module['default']) :
|
83
|
-
/******/ () => (module);
|
84
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
85
|
-
/******/ return getter;
|
86
|
-
/******/ };
|
87
|
-
/******/ })();
|
88
|
-
/******/
|
89
|
-
/******/ /* webpack/runtime/define property getters */
|
90
|
-
/******/ (() => {
|
91
|
-
/******/ // define getter functions for harmony exports
|
92
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
93
|
-
/******/ for(var key in definition) {
|
94
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
95
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
96
|
-
/******/ }
|
97
|
-
/******/ }
|
98
|
-
/******/ };
|
99
|
-
/******/ })();
|
100
|
-
/******/
|
101
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
102
|
-
/******/ (() => {
|
103
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
104
|
-
/******/ })();
|
105
|
-
/******/
|
106
|
-
/******/ /* webpack/runtime/make namespace object */
|
107
|
-
/******/ (() => {
|
108
|
-
/******/ // define __esModule on exports
|
109
|
-
/******/ __webpack_require__.r = (exports) => {
|
110
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
111
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
10
|
+
/******/ /* webpack/runtime/define property getters */
|
11
|
+
/******/ (() => {
|
12
|
+
/******/ // define getter functions for harmony exports
|
13
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
14
|
+
/******/ for(var key in definition) {
|
15
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
16
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
112
17
|
/******/ }
|
113
|
-
/******/
|
114
|
-
/******/
|
115
|
-
/******/
|
116
|
-
/******/
|
18
|
+
/******/ }
|
19
|
+
/******/ };
|
20
|
+
/******/ })();
|
21
|
+
/******/
|
22
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
23
|
+
/******/ (() => {
|
24
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
25
|
+
/******/ })();
|
26
|
+
/******/
|
117
27
|
/************************************************************************/
|
118
28
|
var __webpack_exports__ = {};
|
119
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
120
|
-
(() => {
|
121
|
-
// ESM COMPAT FLAG
|
122
|
-
__webpack_require__.r(__webpack_exports__);
|
123
29
|
|
124
30
|
// EXPORTS
|
125
31
|
__webpack_require__.d(__webpack_exports__, {
|
126
|
-
"
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"
|
32
|
+
"kq": () => (/* reexport */ compose_form_item),
|
33
|
+
"ZD": () => (/* binding */ BkForm),
|
34
|
+
"a_": () => (/* reexport */ form_item),
|
35
|
+
"ZP": () => (/* binding */ src)
|
130
36
|
});
|
131
37
|
|
132
|
-
|
133
|
-
var
|
134
|
-
|
135
|
-
|
38
|
+
;// CONCATENATED MODULE: external "../shared"
|
39
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
|
+
var y = x => () => x
|
41
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["formItemKey"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.formItemKey, ["formKey"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.formKey, ["useForm"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useForm, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
42
|
+
;// CONCATENATED MODULE: external "vue"
|
43
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
44
|
+
var external_vue_y = x => () => x
|
45
|
+
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 });
|
136
46
|
;// CONCATENATED MODULE: ../../packages/form/src/compose-form-item.tsx
|
137
47
|
/*
|
138
48
|
* Tencent is pleased to support the open source community by making
|
@@ -165,7 +75,7 @@ var isCustomComponent = function isCustomComponent(node) {
|
|
165
75
|
return node.__v_isVNode;
|
166
76
|
};
|
167
77
|
|
168
|
-
/* harmony default export */ const compose_form_item = ((0,
|
78
|
+
/* harmony default export */ const compose_form_item = ((0,external_vue_namespaceObject.defineComponent)({
|
169
79
|
name: 'ComposeFormItem',
|
170
80
|
props: {
|
171
81
|
headBackgroundColor: {
|
@@ -246,7 +156,7 @@ var isCustomComponent = function isCustomComponent(node) {
|
|
246
156
|
}
|
247
157
|
}
|
248
158
|
|
249
|
-
return (0,
|
159
|
+
return (0,external_vue_namespaceObject.h)('div', {
|
250
160
|
"class": 'bk-compose-form-item'
|
251
161
|
}, childrenArr);
|
252
162
|
}
|
@@ -272,13 +182,13 @@ function _defineProperty(obj, key, value) {
|
|
272
182
|
|
273
183
|
|
274
184
|
var formProps = {
|
275
|
-
formType:
|
276
|
-
labelWidth:
|
277
|
-
labelPosition:
|
278
|
-
model:
|
279
|
-
rules:
|
185
|
+
formType: external_shared_namespaceObject.PropTypes.oneOf(['default', 'vertical']).def('default'),
|
186
|
+
labelWidth: external_shared_namespaceObject.PropTypes.oneOfType([Number, String]).def(150),
|
187
|
+
labelPosition: external_shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
|
188
|
+
model: external_shared_namespaceObject.PropTypes.object,
|
189
|
+
rules: external_shared_namespaceObject.PropTypes.object
|
280
190
|
};
|
281
|
-
/* harmony default export */ const src_form = ((0,
|
191
|
+
/* harmony default export */ const src_form = ((0,external_vue_namespaceObject.defineComponent)({
|
282
192
|
name: 'Form',
|
283
193
|
props: formProps,
|
284
194
|
emits: ['submit'],
|
@@ -309,7 +219,7 @@ var formProps = {
|
|
309
219
|
}, []);
|
310
220
|
};
|
311
221
|
|
312
|
-
(0,
|
222
|
+
(0,external_vue_namespaceObject.provide)(external_shared_namespaceObject.formKey, {
|
313
223
|
props: props,
|
314
224
|
register: register,
|
315
225
|
unregister: unregister
|
@@ -388,10 +298,10 @@ var formProps = {
|
|
388
298
|
render: function render() {
|
389
299
|
var _a, _b;
|
390
300
|
|
391
|
-
var formClasses = (0,
|
301
|
+
var formClasses = (0,external_shared_namespaceObject.classes)(_defineProperty({
|
392
302
|
'bk-form': true
|
393
303
|
}, "bk-form--".concat(this.formType), true));
|
394
|
-
return (0,
|
304
|
+
return (0,external_vue_namespaceObject.createVNode)("form", {
|
395
305
|
"class": formClasses,
|
396
306
|
"onSubmit": this.handleSubmit
|
397
307
|
}, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
|
@@ -438,13 +348,18 @@ function _nonIterableSpread() {
|
|
438
348
|
function _toConsumableArray(arr) {
|
439
349
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
440
350
|
}
|
441
|
-
|
442
|
-
var
|
443
|
-
var
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
var
|
351
|
+
;// CONCATENATED MODULE: external "lodash"
|
352
|
+
var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
353
|
+
var external_lodash_y = x => () => x
|
354
|
+
const external_lodash_namespaceObject = external_lodash_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__["default"], ["get"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.get, ["isFunction"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.isFunction });
|
355
|
+
;// CONCATENATED MODULE: external "../directives"
|
356
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
357
|
+
var external_directives_y = x => () => x
|
358
|
+
const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips });
|
359
|
+
;// CONCATENATED MODULE: external "../icon"
|
360
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
361
|
+
var external_icon_y = x => () => x
|
362
|
+
const external_icon_namespaceObject = external_icon_x({ ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.ExclamationCircleShape });
|
448
363
|
;// CONCATENATED MODULE: ../../packages/form/src/utils.ts
|
449
364
|
/*
|
450
365
|
* Tencent is pleased to support the open source community by making
|
@@ -507,11 +422,11 @@ var getRuleMessage = function getRuleMessage(rule) {
|
|
507
422
|
|
508
423
|
/* harmony default export */ const src_validator = ({
|
509
424
|
required: function required(value) {
|
510
|
-
if (typeof value === 'number' || typeof value === 'boolean' ||
|
425
|
+
if (typeof value === 'number' || typeof value === 'boolean' || external_lodash_namespaceObject["default"].isDate(value)) {
|
511
426
|
return true;
|
512
427
|
}
|
513
428
|
|
514
|
-
return !
|
429
|
+
return !external_lodash_namespaceObject["default"].isEmpty(value);
|
515
430
|
},
|
516
431
|
min: function min(value, _min) {
|
517
432
|
return value >= _min;
|
@@ -568,19 +483,19 @@ var getRuleMessage = function getRuleMessage(rule) {
|
|
568
483
|
|
569
484
|
;
|
570
485
|
var formItemProps = {
|
571
|
-
label:
|
572
|
-
labelWidth:
|
573
|
-
labelPosition:
|
574
|
-
property:
|
575
|
-
required:
|
576
|
-
email:
|
577
|
-
max:
|
578
|
-
min:
|
579
|
-
maxlength:
|
580
|
-
rules:
|
581
|
-
autoCheck:
|
582
|
-
description:
|
583
|
-
errorDisplayType:
|
486
|
+
label: external_shared_namespaceObject.PropTypes.string,
|
487
|
+
labelWidth: external_shared_namespaceObject.PropTypes.oneOfType([Number, String]),
|
488
|
+
labelPosition: external_shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
|
489
|
+
property: external_shared_namespaceObject.PropTypes.string.def(''),
|
490
|
+
required: external_shared_namespaceObject.PropTypes.bool.def(false),
|
491
|
+
email: external_shared_namespaceObject.PropTypes.bool.def(false),
|
492
|
+
max: external_shared_namespaceObject.PropTypes.number,
|
493
|
+
min: external_shared_namespaceObject.PropTypes.number,
|
494
|
+
maxlength: external_shared_namespaceObject.PropTypes.number,
|
495
|
+
rules: external_shared_namespaceObject.PropTypes.array,
|
496
|
+
autoCheck: external_shared_namespaceObject.PropTypes.bool.def(false),
|
497
|
+
description: external_shared_namespaceObject.PropTypes.string,
|
498
|
+
errorDisplayType: external_shared_namespaceObject.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
|
584
499
|
};
|
585
500
|
|
586
501
|
var hasOwn = function hasOwn(obj, key) {
|
@@ -649,10 +564,10 @@ var mergeRules = function mergeRules(configRules, propRules) {
|
|
649
564
|
var rulevalidator;
|
650
565
|
|
651
566
|
if (rule.required) {
|
652
|
-
rulevalidator = (0,
|
567
|
+
rulevalidator = (0,external_lodash_namespaceObject.isFunction)(rule.validator) ? rule.validator : src_validator.required;
|
653
568
|
customRequired = true;
|
654
569
|
} else if (rule.email) {
|
655
|
-
rulevalidator = (0,
|
570
|
+
rulevalidator = (0,external_lodash_namespaceObject.isFunction)(rule.validator) ? rule.validator : src_validator.email;
|
656
571
|
customEmail = true;
|
657
572
|
} else if (Number(rule.max) > -1) {
|
658
573
|
rulevalidator = function rulevalidator(value) {
|
@@ -670,7 +585,7 @@ var mergeRules = function mergeRules(configRules, propRules) {
|
|
670
585
|
rulevalidator = function rulevalidator(value) {
|
671
586
|
return src_validator.pattern(value, rule.pattern);
|
672
587
|
};
|
673
|
-
} else if ((0,
|
588
|
+
} else if ((0,external_lodash_namespaceObject.isFunction)(rule.validator)) {
|
674
589
|
rulevalidator = rule.validator;
|
675
590
|
} else {
|
676
591
|
// 不支持的配置规则
|
@@ -721,37 +636,37 @@ var isValid = function isValid(value) {
|
|
721
636
|
return value !== undefined;
|
722
637
|
};
|
723
638
|
|
724
|
-
/* harmony default export */ const form_item = ((0,
|
639
|
+
/* harmony default export */ const form_item = ((0,external_vue_namespaceObject.defineComponent)({
|
725
640
|
name: 'FormItem',
|
726
641
|
directives: {
|
727
|
-
bkTooltips:
|
642
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
728
643
|
},
|
729
644
|
props: formItemProps,
|
730
645
|
setup: function setup(props, context) {
|
731
|
-
var form = (0,
|
646
|
+
var form = (0,external_shared_namespaceObject.useForm)();
|
732
647
|
var isForm = Boolean(form);
|
733
|
-
var parentFormItem = (0,
|
648
|
+
var parentFormItem = (0,external_shared_namespaceObject.useFormItem)();
|
734
649
|
var isNested = Boolean(parentFormItem);
|
735
|
-
var currentInstance = (0,
|
736
|
-
var state = (0,
|
650
|
+
var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
651
|
+
var state = (0,external_vue_namespaceObject.reactive)({
|
737
652
|
isError: false,
|
738
653
|
errorMessage: ''
|
739
654
|
});
|
740
|
-
var isFormTypeVertical = (0,
|
655
|
+
var isFormTypeVertical = (0,external_vue_namespaceObject.computed)(function () {
|
741
656
|
if (!isForm) {
|
742
657
|
return false;
|
743
658
|
}
|
744
659
|
|
745
660
|
return form.props.formType === 'vertical';
|
746
661
|
});
|
747
|
-
var isShowLabel = (0,
|
662
|
+
var isShowLabel = (0,external_vue_namespaceObject.computed)(function () {
|
748
663
|
if (props.label || context.slots.label) {
|
749
664
|
return true;
|
750
665
|
}
|
751
666
|
|
752
667
|
return false;
|
753
668
|
});
|
754
|
-
var labelStyles = (0,
|
669
|
+
var labelStyles = (0,external_vue_namespaceObject.computed)(function () {
|
755
670
|
var styles = {
|
756
671
|
width: '',
|
757
672
|
paddingRight: '',
|
@@ -776,7 +691,7 @@ var isValid = function isValid(value) {
|
|
776
691
|
|
777
692
|
return styles;
|
778
693
|
});
|
779
|
-
var contentStyles = (0,
|
694
|
+
var contentStyles = (0,external_vue_namespaceObject.computed)(function () {
|
780
695
|
return _defineProperty({}, 'margin-left', labelStyles.value.width);
|
781
696
|
});
|
782
697
|
/**
|
@@ -808,7 +723,7 @@ var isValid = function isValid(value) {
|
|
808
723
|
state.errorMessage = '';
|
809
724
|
}
|
810
725
|
|
811
|
-
var value = (0,
|
726
|
+
var value = (0,external_lodash_namespaceObject.get)(form.props.model, props.property);
|
812
727
|
|
813
728
|
var doValidate = function () {
|
814
729
|
var stepIndex = -1;
|
@@ -864,21 +779,21 @@ var isValid = function isValid(value) {
|
|
864
779
|
state.errorMessage = '';
|
865
780
|
};
|
866
781
|
|
867
|
-
(0,
|
782
|
+
(0,external_vue_namespaceObject.provide)(external_shared_namespaceObject.formItemKey, Object.assign(Object.assign({}, props), {
|
868
783
|
validate: validate,
|
869
784
|
clearValidate: clearValidate
|
870
785
|
}));
|
871
|
-
(0,
|
786
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
872
787
|
if (isForm) {
|
873
788
|
form.register(currentInstance.proxy);
|
874
789
|
}
|
875
790
|
});
|
876
|
-
(0,
|
791
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
877
792
|
if (isForm) {
|
878
793
|
form.unregister(currentInstance.proxy);
|
879
794
|
}
|
880
795
|
});
|
881
|
-
return Object.assign(Object.assign({}, (0,
|
796
|
+
return Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(state)), {
|
882
797
|
isShowLabel: isShowLabel,
|
883
798
|
labelStyles: labelStyles,
|
884
799
|
contentStyles: contentStyles,
|
@@ -892,7 +807,7 @@ var isValid = function isValid(value) {
|
|
892
807
|
|
893
808
|
var _a, _b, _c, _d;
|
894
809
|
|
895
|
-
var itemClassees = (0,
|
810
|
+
var itemClassees = (0,external_shared_namespaceObject.classes)({
|
896
811
|
'bk-form-item': true,
|
897
812
|
'is-error': this.isError,
|
898
813
|
'is-required': this.required
|
@@ -904,11 +819,11 @@ var isValid = function isValid(value) {
|
|
904
819
|
}
|
905
820
|
|
906
821
|
if (_this.description) {
|
907
|
-
return (0,
|
822
|
+
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
|
908
823
|
"class": {
|
909
824
|
'bk-form-label-description': Boolean(_this.description)
|
910
825
|
}
|
911
|
-
}, [_this.label]), [[(0,
|
826
|
+
}, [_this.label]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.description]]);
|
912
827
|
}
|
913
828
|
|
914
829
|
return _this.label;
|
@@ -920,22 +835,22 @@ var isValid = function isValid(value) {
|
|
920
835
|
}
|
921
836
|
|
922
837
|
if (_this.errorDisplayType === 'tooltips') {
|
923
|
-
return (0,
|
838
|
+
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
924
839
|
"class": "bk-form-error-tips"
|
925
|
-
}, [(0,
|
840
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.ExclamationCircleShape, null, null)]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
|
926
841
|
}
|
927
842
|
|
928
|
-
return (0,
|
843
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
929
844
|
"class": "bk-form-error"
|
930
845
|
}, [_this.$slots.error ? _this.$slots.error(_this.errorMessage) : _this.errorMessage]);
|
931
846
|
};
|
932
847
|
|
933
|
-
return (0,
|
848
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
934
849
|
"class": itemClassees
|
935
|
-
}, [this.isShowLabel && (0,
|
850
|
+
}, [this.isShowLabel && (0,external_vue_namespaceObject.createVNode)("div", {
|
936
851
|
"class": "bk-form-label",
|
937
852
|
"style": this.labelStyles
|
938
|
-
}, [renderLabel(), this.isFormTypeVertical && ((_b = (_a = this.$slots).labelAppend) === null || _b === void 0 ? void 0 : _b.call(_a))]), (0,
|
853
|
+
}, [renderLabel(), this.isFormTypeVertical && ((_b = (_a = this.$slots).labelAppend) === null || _b === void 0 ? void 0 : _b.call(_a))]), (0,external_vue_namespaceObject.createVNode)("div", {
|
939
854
|
"class": "bk-form-content",
|
940
855
|
"style": this.contentStyles
|
941
856
|
}, [(_d = (_c = this.$slots)["default"]) === null || _d === void 0 ? void 0 : _d.call(_c), renderError()])]);
|
@@ -972,15 +887,14 @@ var isValid = function isValid(value) {
|
|
972
887
|
|
973
888
|
|
974
889
|
|
975
|
-
var BkForm = (0,
|
890
|
+
var BkForm = (0,external_shared_namespaceObject.withInstallProps)(src_form, {
|
976
891
|
FormItem: form_item,
|
977
892
|
ComposeFormItem: compose_form_item
|
978
893
|
});
|
979
894
|
/* harmony default export */ const src = (BkForm);
|
980
895
|
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
;
|
986
|
-
});
|
896
|
+
var __webpack_exports__BkComposeFormItem = __webpack_exports__.kq;
|
897
|
+
var __webpack_exports__BkForm = __webpack_exports__.ZD;
|
898
|
+
var __webpack_exports__BkFormItem = __webpack_exports__.a_;
|
899
|
+
var __webpack_exports__default = __webpack_exports__.ZP;
|
900
|
+
export { __webpack_exports__BkComposeFormItem as BkComposeFormItem, __webpack_exports__BkForm as BkForm, __webpack_exports__BkFormItem as BkFormItem, __webpack_exports__default as default };
|
@@ -1,93 +1,37 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
define(["vue"], factory);
|
6
|
-
else {
|
7
|
-
var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["vue"]);
|
8
|
-
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
-
}
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__748__) => {
|
11
|
-
return /******/ (() => { // webpackBootstrap
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 748:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
19
|
-
|
20
|
-
/***/ })
|
21
|
-
|
22
|
-
/******/ });
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
2
|
+
/******/ // The require scope
|
3
|
+
/******/ var __webpack_require__ = {};
|
4
|
+
/******/
|
23
5
|
/************************************************************************/
|
24
|
-
/******/
|
25
|
-
/******/
|
26
|
-
/******/
|
27
|
-
/******/
|
28
|
-
/******/
|
29
|
-
/******/
|
30
|
-
/******/
|
31
|
-
/******/ if (cachedModule !== undefined) {
|
32
|
-
/******/ return cachedModule.exports;
|
33
|
-
/******/ }
|
34
|
-
/******/ // Create a new module (and put it into the cache)
|
35
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
36
|
-
/******/ // no module.id needed
|
37
|
-
/******/ // no module.loaded needed
|
38
|
-
/******/ exports: {}
|
39
|
-
/******/ };
|
40
|
-
/******/
|
41
|
-
/******/ // Execute the module function
|
42
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
43
|
-
/******/
|
44
|
-
/******/ // Return the exports of the module
|
45
|
-
/******/ return module.exports;
|
46
|
-
/******/ }
|
47
|
-
/******/
|
48
|
-
/************************************************************************/
|
49
|
-
/******/ /* webpack/runtime/define property getters */
|
50
|
-
/******/ (() => {
|
51
|
-
/******/ // define getter functions for harmony exports
|
52
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
53
|
-
/******/ for(var key in definition) {
|
54
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
55
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
56
|
-
/******/ }
|
57
|
-
/******/ }
|
58
|
-
/******/ };
|
59
|
-
/******/ })();
|
60
|
-
/******/
|
61
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
62
|
-
/******/ (() => {
|
63
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
64
|
-
/******/ })();
|
65
|
-
/******/
|
66
|
-
/******/ /* webpack/runtime/make namespace object */
|
67
|
-
/******/ (() => {
|
68
|
-
/******/ // define __esModule on exports
|
69
|
-
/******/ __webpack_require__.r = (exports) => {
|
70
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
71
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
6
|
+
/******/ /* webpack/runtime/define property getters */
|
7
|
+
/******/ (() => {
|
8
|
+
/******/ // define getter functions for harmony exports
|
9
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
10
|
+
/******/ for(var key in definition) {
|
11
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
12
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
72
13
|
/******/ }
|
73
|
-
/******/
|
74
|
-
/******/
|
75
|
-
/******/
|
76
|
-
/******/
|
14
|
+
/******/ }
|
15
|
+
/******/ };
|
16
|
+
/******/ })();
|
17
|
+
/******/
|
18
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
19
|
+
/******/ (() => {
|
20
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
21
|
+
/******/ })();
|
22
|
+
/******/
|
77
23
|
/************************************************************************/
|
78
24
|
var __webpack_exports__ = {};
|
79
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
80
|
-
(() => {
|
81
|
-
// ESM COMPAT FLAG
|
82
|
-
__webpack_require__.r(__webpack_exports__);
|
83
25
|
|
84
26
|
// EXPORTS
|
85
27
|
__webpack_require__.d(__webpack_exports__, {
|
86
|
-
"
|
28
|
+
"Z": () => (/* binding */ angle_double_down_line)
|
87
29
|
});
|
88
30
|
|
89
|
-
|
90
|
-
var
|
31
|
+
;// CONCATENATED MODULE: external "vue"
|
32
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
33
|
+
var y = x => () => x
|
34
|
+
const external_vue_namespaceObject = x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
91
35
|
;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js
|
92
36
|
/******************************************************************************
|
93
37
|
Copyright (c) Microsoft Corporation.
|
@@ -370,7 +314,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
370
314
|
|
371
315
|
|
372
316
|
function generate(node, key, rootAttrs) {
|
373
|
-
return (0,
|
317
|
+
return (0,external_vue_namespaceObject.h)(node.name, Object.assign(Object.assign({
|
374
318
|
key: key
|
375
319
|
}, node.attributes), {
|
376
320
|
style: "".concat(node.attributes.style, " ").concat(rootAttrs || '')
|
@@ -394,7 +338,7 @@ var bkIcon = function bkIcon(props, context) {
|
|
394
338
|
'align-items': 'center',
|
395
339
|
'justify-content': 'center'
|
396
340
|
};
|
397
|
-
return (0,
|
341
|
+
return (0,external_vue_namespaceObject.createVNode)("span", (0,external_vue_namespaceObject.mergeProps)({
|
398
342
|
"style": iconBoxStyle
|
399
343
|
}, restProps), [generate(data, name, rootAttrs)]);
|
400
344
|
};
|
@@ -409,7 +353,7 @@ var data = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"htt
|
|
409
353
|
|
410
354
|
var angleDoubleDownLine = function angleDoubleDownLine(props, context) {
|
411
355
|
var p = Object.assign(Object.assign({}, props), context.attrs);
|
412
|
-
return (0,
|
356
|
+
return (0,external_vue_namespaceObject.createVNode)(icon, (0,external_vue_namespaceObject.mergeProps)(p, {
|
413
357
|
"data": data,
|
414
358
|
"name": "angleDoubleDownLine"
|
415
359
|
}), null);
|
@@ -418,9 +362,5 @@ var angleDoubleDownLine = function angleDoubleDownLine(props, context) {
|
|
418
362
|
angleDoubleDownLine.displayName = 'angleDoubleDownLine';
|
419
363
|
angleDoubleDownLine.inheritAttrs = false;
|
420
364
|
/* harmony default export */ const angle_double_down_line = (angleDoubleDownLine);
|
421
|
-
|
422
|
-
|
423
|
-
/******/ return __webpack_exports__;
|
424
|
-
/******/ })()
|
425
|
-
;
|
426
|
-
});
|
365
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
366
|
+
export { __webpack_exports__default as default };
|