bkui-vue 0.0.1-beta.390 → 0.0.1-beta.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +22 -22
- package/dist/index.esm.js +0 -1
- package/dist/index.umd.js +23 -23
- package/lib/affix/index.js +128 -60
- package/lib/alert/index.js +124 -56
- package/lib/animate-number/index.js +106 -42
- package/lib/backtop/index.js +133 -61
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +4 -4
- package/lib/badge/index.js +114 -50
- 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 +133 -67
- package/lib/button/index.js +147 -68
- package/lib/card/index.js +154 -69
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +10 -10
- package/lib/cascader/index.js +242 -168
- package/lib/checkbox/index.js +139 -77
- package/lib/code-diff/index.js +121 -79
- package/lib/collapse/index.js +150 -84
- 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 +245 -193
- package/lib/components.js +671 -434
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +4 -4
- package/lib/container/index.js +125 -64
- 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 +563 -462
- 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 +198 -108
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +139 -86
- package/lib/dist.index.js +133 -48
- package/lib/divider/index.js +118 -50
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +155 -73
- package/lib/exception/index.js +145 -97
- 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 +107 -43
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +193 -107
- package/lib/icon/angle-double-down-line.js +90 -30
- package/lib/icon/angle-double-left-line.js +90 -30
- package/lib/icon/angle-double-left.js +90 -30
- package/lib/icon/angle-double-right-line.js +90 -30
- package/lib/icon/angle-double-right.js +90 -30
- package/lib/icon/angle-double-up-line.js +90 -30
- package/lib/icon/angle-down-fill.js +90 -30
- package/lib/icon/angle-down-line.js +90 -30
- package/lib/icon/angle-down.js +90 -30
- package/lib/icon/angle-left.js +90 -30
- package/lib/icon/angle-right.js +90 -30
- package/lib/icon/angle-up-fill.js +90 -30
- package/lib/icon/angle-up.js +90 -30
- package/lib/icon/archive-fill.js +90 -30
- package/lib/icon/arrows-left.js +90 -30
- package/lib/icon/arrows-right.js +90 -30
- package/lib/icon/audio-fill.js +90 -30
- package/lib/icon/bk.js +90 -30
- package/lib/icon/circle.js +90 -30
- package/lib/icon/close-line.js +90 -30
- package/lib/icon/close.js +90 -30
- package/lib/icon/code.js +90 -30
- package/lib/icon/cog-shape.js +90 -30
- package/lib/icon/collapse-left.js +90 -30
- package/lib/icon/copy.js +90 -30
- package/lib/icon/data-shape.js +90 -30
- package/lib/icon/del.js +90 -30
- package/lib/icon/doc-fill.js +90 -30
- package/lib/icon/done.js +90 -30
- package/lib/icon/down-shape.js +90 -30
- package/lib/icon/down-small.js +90 -30
- package/lib/icon/edit-line.js +90 -30
- package/lib/icon/ellipsis.js +90 -30
- package/lib/icon/enlarge-line.js +90 -30
- package/lib/icon/error.js +90 -30
- package/lib/icon/excel-fill.js +90 -30
- package/lib/icon/exclamation-circle-shape.js +90 -30
- package/lib/icon/eye.js +90 -30
- package/lib/icon/filliscreen-line.js +90 -30
- package/lib/icon/folder-open.js +90 -30
- package/lib/icon/folder-shape-open.js +90 -30
- package/lib/icon/folder-shape.js +90 -30
- package/lib/icon/folder.js +90 -30
- package/lib/icon/funnel.js +90 -30
- package/lib/icon/help-document-fill.js +90 -30
- package/lib/icon/help-fill.js +90 -30
- package/lib/icon/help.js +90 -30
- package/lib/icon/image-fill.js +90 -30
- package/lib/icon/img-placehoulder.js +88 -52
- package/lib/icon/index.js +255 -267
- package/lib/icon/info-line.js +88 -52
- package/lib/icon/info.js +88 -52
- package/lib/icon/left-shape.js +88 -52
- package/lib/icon/left-turn-line.js +88 -52
- package/lib/icon/narrow-line.js +88 -52
- package/lib/icon/original.js +88 -52
- package/lib/icon/pdf-fill.js +88 -52
- package/lib/icon/play-shape.js +88 -52
- package/lib/icon/plus.js +88 -52
- package/lib/icon/ppt-fill.js +88 -52
- package/lib/icon/qq.js +88 -52
- package/lib/icon/right-shape.js +88 -52
- package/lib/icon/right-turn-line.js +88 -52
- package/lib/icon/search.js +88 -52
- package/lib/icon/share.js +88 -52
- package/lib/icon/spinner.js +88 -52
- package/lib/icon/success.js +88 -52
- package/lib/icon/switcher-loading.js +88 -52
- package/lib/icon/text-file.js +88 -52
- package/lib/icon/text-fill.js +88 -52
- package/lib/icon/transfer.js +88 -52
- package/lib/icon/tree-application-shape.js +88 -52
- package/lib/icon/unfull-screen.js +88 -52
- package/lib/icon/unvisible.js +88 -52
- package/lib/icon/up-shape.js +88 -52
- package/lib/icon/upload.js +88 -52
- package/lib/icon/video-fill.js +88 -52
- package/lib/icon/warn.js +88 -52
- package/lib/icon/weixin.js +88 -52
- package/lib/image/index.js +213 -164
- package/lib/index.js +134 -50
- package/lib/info-box/index.js +206 -152
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +167 -99
- package/lib/input/input.d.ts +1 -1
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +115 -47
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +127 -67
- package/lib/loading/loading.d.ts +1 -1
- package/lib/menu/index.js +156 -92
- package/lib/message/index.js +148 -76
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/index.js +151 -85
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +134 -66
- package/lib/notify/index.js +153 -81
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.js +128 -92
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/index.js +220 -131
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/plugin-popover/index.js +190 -143
- package/lib/plugins/index.js +100 -33
- package/lib/popover/index.d.ts +10 -10
- package/lib/popover/index.js +193 -148
- package/lib/popover/popover.d.ts +3 -3
- package/lib/popover2/index.js +99 -35
- package/lib/preset.js +104 -37
- package/lib/process/index.d.ts +4 -4
- package/lib/process/index.js +134 -92
- package/lib/process/process.d.ts +1 -1
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +127 -63
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.js +142 -81
- package/lib/rate/index.js +127 -63
- package/lib/resize-layout/index.js +147 -79
- package/lib/search-select/index.js +220 -168
- package/lib/select/index.d.ts +10 -10
- package/lib/select/index.js +394 -315
- package/lib/select/select.d.ts +3 -3
- package/lib/shared/index.js +203 -228
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/index.js +137 -88
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.d.ts +7 -7
- package/lib/slider/index.js +196 -147
- package/lib/slider/slider.d.ts +2 -2
- package/lib/steps/index.js +152 -105
- package/lib/swiper/index.js +126 -62
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/index.js +133 -65
- package/lib/switcher/switcher.d.ts +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +188 -118
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/index.js +572 -457
- package/lib/table-column/index.js +197 -129
- package/lib/tag/index.js +130 -58
- package/lib/tag-input/index.d.ts +7 -7
- package/lib/tag-input/index.js +277 -175
- 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 +111 -40
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +114 -50
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/transfer/index.js +174 -89
- package/lib/tree/index.js +235 -158
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/index.js +227 -173
- 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 +154 -86
- package/package.json +1 -1
@@ -601,11 +601,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
601
601
|
}, {
|
602
602
|
trigger: "focus" | "search";
|
603
603
|
disabled: boolean;
|
604
|
-
|
604
|
+
separator: string;
|
605
605
|
list: {
|
606
606
|
[key: string]: any;
|
607
607
|
}[];
|
608
|
-
|
608
|
+
placeholder: string;
|
609
609
|
clearable: boolean;
|
610
610
|
showClearOnlyHover: boolean;
|
611
611
|
modelValue: string[];
|
@@ -7,13 +7,13 @@ declare const BkTimePicker: {
|
|
7
7
|
options: Record<string, any>;
|
8
8
|
behavior: "simplicity" | "normal";
|
9
9
|
type: import("../../date-picker/src/interface").PickerTypeType;
|
10
|
-
disabled: boolean;
|
11
10
|
width: number;
|
12
|
-
|
11
|
+
disabled: boolean;
|
12
|
+
fontSize: "normal" | "large" | "medium";
|
13
13
|
open: boolean;
|
14
14
|
multiple: boolean;
|
15
|
+
placeholder: string;
|
15
16
|
transfer: boolean;
|
16
|
-
fontSize: "normal" | "large" | "medium";
|
17
17
|
clearable: boolean;
|
18
18
|
readonly: boolean;
|
19
19
|
withValidate: boolean;
|
@@ -184,7 +184,7 @@ declare const BkTimePicker: {
|
|
184
184
|
"onPick-success"?: (...args: any[]) => any;
|
185
185
|
"onOpen-change"?: (...args: any[]) => any;
|
186
186
|
"onShortcut-change"?: (...args: any[]) => any;
|
187
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "options" | "behavior" | "type" | "
|
187
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "placement" | "options" | "behavior" | "type" | "width" | "disabled" | "fontSize" | "open" | "multiple" | "placeholder" | "transfer" | "clearable" | "readonly" | "withValidate" | "extPopoverCls" | "editable" | "timePickerOptions" | "splitPanels" | "appendToBody" | "shortcuts" | "shortcutClose" | "upToNow" | "useShortcutText" | "shortcutSelectedIndex" | "headerSlotCls" | "footerSlotCls" | "allowCrossDay" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "hideDisabledOptions" | "enterMode">;
|
188
188
|
$attrs: {
|
189
189
|
[x: string]: unknown;
|
190
190
|
};
|
@@ -407,13 +407,13 @@ declare const BkTimePicker: {
|
|
407
407
|
options: Record<string, any>;
|
408
408
|
behavior: "simplicity" | "normal";
|
409
409
|
type: import("../../date-picker/src/interface").PickerTypeType;
|
410
|
-
disabled: boolean;
|
411
410
|
width: number;
|
412
|
-
|
411
|
+
disabled: boolean;
|
412
|
+
fontSize: "normal" | "large" | "medium";
|
413
413
|
open: boolean;
|
414
414
|
multiple: boolean;
|
415
|
+
placeholder: string;
|
415
416
|
transfer: boolean;
|
416
|
-
fontSize: "normal" | "large" | "medium";
|
417
417
|
clearable: boolean;
|
418
418
|
readonly: boolean;
|
419
419
|
withValidate: boolean;
|
@@ -872,13 +872,13 @@ declare const BkTimePicker: {
|
|
872
872
|
options: Record<string, any>;
|
873
873
|
behavior: "simplicity" | "normal";
|
874
874
|
type: import("../../date-picker/src/interface").PickerTypeType;
|
875
|
-
disabled: boolean;
|
876
875
|
width: number;
|
877
|
-
|
876
|
+
disabled: boolean;
|
877
|
+
fontSize: "normal" | "large" | "medium";
|
878
878
|
open: boolean;
|
879
879
|
multiple: boolean;
|
880
|
+
placeholder: string;
|
880
881
|
transfer: boolean;
|
881
|
-
fontSize: "normal" | "large" | "medium";
|
882
882
|
clearable: boolean;
|
883
883
|
readonly: boolean;
|
884
884
|
withValidate: boolean;
|
package/lib/time-picker/index.js
CHANGED
@@ -1,43 +1,110 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../date-picker"), require("../shared"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../date-picker", "../shared"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../date-picker"), require("../shared")) : factory(root["../date-picker"], root["../shared"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__3082__, __WEBPACK_EXTERNAL_MODULE__4212__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ 3082:
|
16
|
+
/***/ ((module) => {
|
17
|
+
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3082__;
|
19
|
+
|
20
|
+
/***/ }),
|
21
|
+
|
22
|
+
/***/ 4212:
|
23
|
+
/***/ ((module) => {
|
24
|
+
|
25
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
26
|
+
|
27
|
+
/***/ })
|
28
|
+
|
29
|
+
/******/ });
|
6
30
|
/************************************************************************/
|
7
|
-
/******/
|
8
|
-
/******/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
31
|
+
/******/ // The module cache
|
32
|
+
/******/ var __webpack_module_cache__ = {};
|
33
|
+
/******/
|
34
|
+
/******/ // The require function
|
35
|
+
/******/ function __webpack_require__(moduleId) {
|
36
|
+
/******/ // Check if module is in cache
|
37
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
38
|
+
/******/ if (cachedModule !== undefined) {
|
39
|
+
/******/ return cachedModule.exports;
|
15
40
|
/******/ }
|
16
|
-
/******/
|
17
|
-
/******/
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
41
|
+
/******/ // Create a new module (and put it into the cache)
|
42
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
43
|
+
/******/ // no module.id needed
|
44
|
+
/******/ // no module.loaded needed
|
45
|
+
/******/ exports: {}
|
46
|
+
/******/ };
|
47
|
+
/******/
|
48
|
+
/******/ // Execute the module function
|
49
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
50
|
+
/******/
|
51
|
+
/******/ // Return the exports of the module
|
52
|
+
/******/ return module.exports;
|
53
|
+
/******/ }
|
54
|
+
/******/
|
55
|
+
/************************************************************************/
|
56
|
+
/******/ /* webpack/runtime/compat get default export */
|
57
|
+
/******/ (() => {
|
58
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
59
|
+
/******/ __webpack_require__.n = (module) => {
|
60
|
+
/******/ var getter = module && module.__esModule ?
|
61
|
+
/******/ () => (module['default']) :
|
62
|
+
/******/ () => (module);
|
63
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
64
|
+
/******/ return getter;
|
65
|
+
/******/ };
|
66
|
+
/******/ })();
|
67
|
+
/******/
|
68
|
+
/******/ /* webpack/runtime/define property getters */
|
69
|
+
/******/ (() => {
|
70
|
+
/******/ // define getter functions for harmony exports
|
71
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
72
|
+
/******/ for(var key in definition) {
|
73
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
74
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
75
|
+
/******/ }
|
76
|
+
/******/ }
|
77
|
+
/******/ };
|
78
|
+
/******/ })();
|
79
|
+
/******/
|
80
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
81
|
+
/******/ (() => {
|
82
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
83
|
+
/******/ })();
|
84
|
+
/******/
|
85
|
+
/******/ /* webpack/runtime/make namespace object */
|
86
|
+
/******/ (() => {
|
87
|
+
/******/ // define __esModule on exports
|
88
|
+
/******/ __webpack_require__.r = (exports) => {
|
89
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
90
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
91
|
+
/******/ }
|
92
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
93
|
+
/******/ };
|
94
|
+
/******/ })();
|
95
|
+
/******/
|
24
96
|
/************************************************************************/
|
25
97
|
var __webpack_exports__ = {};
|
26
|
-
|
27
|
-
|
28
|
-
__webpack_require__.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
var
|
35
|
-
|
36
|
-
;// CONCATENATED MODULE: external "../shared"
|
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 });
|
40
|
-
;// CONCATENATED MODULE: ../../packages/time-picker/src/index.ts
|
98
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
99
|
+
(() => {
|
100
|
+
__webpack_require__.r(__webpack_exports__);
|
101
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
102
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
103
|
+
/* harmony export */ });
|
104
|
+
/* harmony import */ var _bkui_vue_date_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3082);
|
105
|
+
/* harmony import */ var _bkui_vue_date_picker__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_bkui_vue_date_picker__WEBPACK_IMPORTED_MODULE_0__);
|
106
|
+
/* harmony import */ var _bkui_vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4212);
|
107
|
+
/* harmony import */ var _bkui_vue_shared__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_bkui_vue_shared__WEBPACK_IMPORTED_MODULE_1__);
|
41
108
|
/*
|
42
109
|
* Tencent is pleased to support the open source community by making
|
43
110
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -65,7 +132,11 @@ const external_shared_namespaceObject = external_shared_x({ ["withInstall"]: ()
|
|
65
132
|
*/
|
66
133
|
|
67
134
|
|
68
|
-
var BkTimePicker = (0,
|
69
|
-
/* harmony default export */ const
|
70
|
-
|
71
|
-
|
135
|
+
var BkTimePicker = (0,_bkui_vue_shared__WEBPACK_IMPORTED_MODULE_1__.withInstall)(_bkui_vue_date_picker__WEBPACK_IMPORTED_MODULE_0__.TimePicker);
|
136
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BkTimePicker);
|
137
|
+
})();
|
138
|
+
|
139
|
+
/******/ return __webpack_exports__;
|
140
|
+
/******/ })()
|
141
|
+
;
|
142
|
+
});
|
package/lib/timeline/index.d.ts
CHANGED
@@ -3,8 +3,8 @@ declare const BkTimeline: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
extCls: string;
|
7
6
|
list: unknown[];
|
7
|
+
extCls: string;
|
8
8
|
titleAble: boolean;
|
9
9
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
10
10
|
list: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
@@ -22,7 +22,7 @@ declare const BkTimeline: {
|
|
22
22
|
};
|
23
23
|
}>> & {
|
24
24
|
onSelect?: (...args: any[]) => any;
|
25
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "list" | "extCls" | "titleAble">;
|
26
26
|
$attrs: {
|
27
27
|
[x: string]: unknown;
|
28
28
|
};
|
@@ -56,8 +56,8 @@ declare const BkTimeline: {
|
|
56
56
|
defaultTimelines: import("vue").Ref<any[]>;
|
57
57
|
titleSelect: (item: any) => void;
|
58
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], string, {
|
59
|
-
extCls: string;
|
60
59
|
list: unknown[];
|
60
|
+
extCls: string;
|
61
61
|
titleAble: boolean;
|
62
62
|
}> & {
|
63
63
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -122,8 +122,8 @@ declare const BkTimeline: {
|
|
122
122
|
defaultTimelines: import("vue").Ref<any[]>;
|
123
123
|
titleSelect: (item: any) => void;
|
124
124
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", {
|
125
|
-
extCls: string;
|
126
125
|
list: unknown[];
|
126
|
+
extCls: string;
|
127
127
|
titleAble: boolean;
|
128
128
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
129
129
|
export default BkTimeline;
|
package/lib/timeline/index.js
CHANGED
@@ -1,38 +1,100 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
+
module.exports = factory(require("../shared"), require("vue"));
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
5
|
+
define(["../shared", "vue"], factory);
|
6
|
+
else {
|
7
|
+
var a = typeof exports === 'object' ? factory(require("../shared"), require("vue")) : factory(root["../shared"], root["vue"]);
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
9
|
+
}
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__) => {
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ var __webpack_modules__ = ({
|
14
|
+
|
15
|
+
/***/ 4212:
|
16
|
+
/***/ ((module) => {
|
17
|
+
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
19
|
+
|
20
|
+
/***/ }),
|
21
|
+
|
22
|
+
/***/ 748:
|
23
|
+
/***/ ((module) => {
|
24
|
+
|
25
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
26
|
+
|
27
|
+
/***/ })
|
28
|
+
|
29
|
+
/******/ });
|
6
30
|
/************************************************************************/
|
7
|
-
/******/
|
8
|
-
/******/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
31
|
+
/******/ // The module cache
|
32
|
+
/******/ var __webpack_module_cache__ = {};
|
33
|
+
/******/
|
34
|
+
/******/ // The require function
|
35
|
+
/******/ function __webpack_require__(moduleId) {
|
36
|
+
/******/ // Check if module is in cache
|
37
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
38
|
+
/******/ if (cachedModule !== undefined) {
|
39
|
+
/******/ return cachedModule.exports;
|
15
40
|
/******/ }
|
16
|
-
/******/
|
17
|
-
/******/
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
41
|
+
/******/ // Create a new module (and put it into the cache)
|
42
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
43
|
+
/******/ // no module.id needed
|
44
|
+
/******/ // no module.loaded needed
|
45
|
+
/******/ exports: {}
|
46
|
+
/******/ };
|
47
|
+
/******/
|
48
|
+
/******/ // Execute the module function
|
49
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
50
|
+
/******/
|
51
|
+
/******/ // Return the exports of the module
|
52
|
+
/******/ return module.exports;
|
53
|
+
/******/ }
|
54
|
+
/******/
|
55
|
+
/************************************************************************/
|
56
|
+
/******/ /* webpack/runtime/define property getters */
|
57
|
+
/******/ (() => {
|
58
|
+
/******/ // define getter functions for harmony exports
|
59
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
60
|
+
/******/ for(var key in definition) {
|
61
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
62
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
63
|
+
/******/ }
|
64
|
+
/******/ }
|
65
|
+
/******/ };
|
66
|
+
/******/ })();
|
67
|
+
/******/
|
68
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
69
|
+
/******/ (() => {
|
70
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
71
|
+
/******/ })();
|
72
|
+
/******/
|
73
|
+
/******/ /* webpack/runtime/make namespace object */
|
74
|
+
/******/ (() => {
|
75
|
+
/******/ // define __esModule on exports
|
76
|
+
/******/ __webpack_require__.r = (exports) => {
|
77
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
78
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
79
|
+
/******/ }
|
80
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
81
|
+
/******/ };
|
82
|
+
/******/ })();
|
83
|
+
/******/
|
24
84
|
/************************************************************************/
|
25
85
|
var __webpack_exports__ = {};
|
86
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
87
|
+
(() => {
|
88
|
+
// ESM COMPAT FLAG
|
89
|
+
__webpack_require__.r(__webpack_exports__);
|
26
90
|
|
27
91
|
// EXPORTS
|
28
92
|
__webpack_require__.d(__webpack_exports__, {
|
29
|
-
"
|
93
|
+
"default": () => (/* binding */ src)
|
30
94
|
});
|
31
95
|
|
32
|
-
|
33
|
-
var
|
34
|
-
var y = x => () => x
|
35
|
-
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 });
|
96
|
+
// EXTERNAL MODULE: external "../shared"
|
97
|
+
var external_shared_ = __webpack_require__(4212);
|
36
98
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
37
99
|
function _typeof(obj) {
|
38
100
|
"@babel/helpers - typeof";
|
@@ -43,10 +105,8 @@ function _typeof(obj) {
|
|
43
105
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
44
106
|
}, _typeof(obj);
|
45
107
|
}
|
46
|
-
|
47
|
-
var
|
48
|
-
var external_vue_y = x => () => x
|
49
|
-
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 });
|
108
|
+
// EXTERNAL MODULE: external "vue"
|
109
|
+
var external_vue_ = __webpack_require__(748);
|
50
110
|
;// CONCATENATED MODULE: ../../packages/timeline/src/timeline.tsx
|
51
111
|
|
52
112
|
|
@@ -79,17 +139,17 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
|
|
79
139
|
|
80
140
|
|
81
141
|
var timelineProps = {
|
82
|
-
list:
|
83
|
-
titleAble:
|
84
|
-
extCls:
|
142
|
+
list: external_shared_.PropTypes.array.def([]),
|
143
|
+
titleAble: external_shared_.PropTypes.bool.def(false),
|
144
|
+
extCls: external_shared_.PropTypes.string
|
85
145
|
};
|
86
|
-
/* harmony default export */ const timeline = ((0,
|
146
|
+
/* harmony default export */ const timeline = ((0,external_vue_.defineComponent)({
|
87
147
|
name: 'Timeline',
|
88
148
|
props: timelineProps,
|
89
149
|
emits: ['select'],
|
90
150
|
setup: function setup(props, _ref) {
|
91
151
|
var emit = _ref.emit;
|
92
|
-
var defaultTimelines = (0,
|
152
|
+
var defaultTimelines = (0,external_vue_.ref)([]);
|
93
153
|
|
94
154
|
var updateTimelines = function updateTimelines(timelines) {
|
95
155
|
var _defaultTimelines$val;
|
@@ -142,8 +202,8 @@ var timelineProps = {
|
|
142
202
|
}
|
143
203
|
};
|
144
204
|
|
145
|
-
(0,
|
146
|
-
(0,
|
205
|
+
(0,external_vue_.onMounted)(init);
|
206
|
+
(0,external_vue_.watch)(function () {
|
147
207
|
return props.list;
|
148
208
|
}, function () {
|
149
209
|
updateTimelines(props.list);
|
@@ -176,42 +236,42 @@ var timelineProps = {
|
|
176
236
|
var timelineFilledCls = item.filled ? "".concat(timelineClsPrefix, "-filled") : '';
|
177
237
|
var timelinesColorsCls = item.color && dotColors.includes(item.color) ? "".concat(timelineClsPrefix, "-").concat(item.color) : '';
|
178
238
|
var timelineCustomIcon = isIcon(item) ? "".concat(timelineClsPrefix, "-custom") : '';
|
179
|
-
var timelinesCls = (0,
|
239
|
+
var timelinesCls = (0,external_shared_.classes)({}, "".concat(timelineClsPrefix, " ").concat(timelineThemeCls, " ").concat(timelineSizeCls, " ").concat(timelinesColorsCls, " ").concat(timelineFilledCls, " ").concat(timelineCustomIcon));
|
180
240
|
return timelinesCls;
|
181
241
|
};
|
182
242
|
|
183
243
|
var getContent = function getContent(item) {
|
184
|
-
return _this.$slots.content ? (0,
|
244
|
+
return _this.$slots.content ? (0,external_vue_.createVNode)("div", {
|
185
245
|
"class": "bk-timeline-content"
|
186
|
-
}, [_this.$slots.content(item)]) : (0,
|
246
|
+
}, [_this.$slots.content(item)]) : (0,external_vue_.createVNode)("div", {
|
187
247
|
"class": "bk-timeline-content",
|
188
248
|
"innerHTML": item.content
|
189
249
|
}, null);
|
190
250
|
};
|
191
251
|
|
192
|
-
return (0,
|
252
|
+
return (0,external_vue_.createVNode)("ul", {
|
193
253
|
"class": ['bk-timeline', this.extCls]
|
194
254
|
}, [this.defaultTimelines.map(function (item) {
|
195
255
|
var _a, _b, _c;
|
196
256
|
|
197
|
-
return (0,
|
257
|
+
return (0,external_vue_.createVNode)("li", {
|
198
258
|
"class": ['bk-timeline-dot', makeClass(item)]
|
199
|
-
}, [isIcon(item) ? (0,
|
259
|
+
}, [isIcon(item) ? (0,external_vue_.createVNode)("div", {
|
200
260
|
"class": "bk-timeline-icon",
|
201
261
|
"style": {
|
202
262
|
border: item.border ? "2px solid ".concat(item.color) : '0px',
|
203
263
|
borderRadius: item.border ? '50%' : '0'
|
204
264
|
}
|
205
|
-
}, [(0,
|
265
|
+
}, [(0,external_vue_.createVNode)("span", {
|
206
266
|
"class": "bk-timeline-icon-inner"
|
207
|
-
}, [typeof item.icon === 'function' ? (0,
|
267
|
+
}, [typeof item.icon === 'function' ? (0,external_vue_.createVNode)(item.icon, null, null) : item.icon])]) : '', (0,external_vue_.createVNode)("div", {
|
208
268
|
"class": "bk-timeline-section"
|
209
|
-
}, [(0,
|
269
|
+
}, [(0,external_vue_.createVNode)("div", {
|
210
270
|
"class": "bk-timeline-title",
|
211
271
|
"onClick": function onClick() {
|
212
272
|
_this.titleSelect(item);
|
213
273
|
}
|
214
|
-
}, [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a, item)) !== null && _c !== void 0 ? _c : (0,
|
274
|
+
}, [(_c = (_b = (_a = _this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a, item)) !== null && _c !== void 0 ? _c : (0,external_vue_.createVNode)("span", {
|
215
275
|
"innerHTML": item.tag
|
216
276
|
}, null)]), item.content ? getContent(item) : ''])]);
|
217
277
|
})]);
|
@@ -245,7 +305,11 @@ var timelineProps = {
|
|
245
305
|
*/
|
246
306
|
|
247
307
|
|
248
|
-
var BkTimeline = (0,
|
308
|
+
var BkTimeline = (0,external_shared_.withInstall)(timeline);
|
249
309
|
/* harmony default export */ const src = (BkTimeline);
|
250
|
-
|
251
|
-
|
310
|
+
})();
|
311
|
+
|
312
|
+
/******/ return __webpack_exports__;
|
313
|
+
/******/ })()
|
314
|
+
;
|
315
|
+
});
|