bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.1
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/README.md +0 -15
- package/dist/index.cjs.js +59 -59
- package/dist/index.esm.js +18048 -18492
- package/dist/index.umd.js +60 -60
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +7 -0
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +15 -0
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -262
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader.css +23 -153
- package/lib/cascader/cascader.variable.css +24 -415
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +0 -32
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +11 -46
- package/lib/checkbox/index.js +4 -9
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -262
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -262
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +19 -0
- package/lib/date-picker/index.js +17 -29
- package/lib/date-picker/panel/time-range.d.ts +9 -0
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.d.ts +5 -16
- package/lib/dialog/dialog.variable.css +9 -400
- package/lib/dialog/index.d.ts +11 -34
- package/lib/dialog/props.d.ts +2 -7
- package/lib/directives/index.js +6 -12
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -262
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -262
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/form/form-item.d.ts +18 -6
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +13 -6
- package/lib/form/index.js +6 -8
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +5 -3
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -262
- package/lib/input/index.js +9 -36
- package/lib/input/input.css +72 -202
- package/lib/input/input.variable.css +73 -464
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -408
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/message/message.css +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- package/lib/modal/index.d.ts +13 -41
- package/lib/modal/index.js +18 -33
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.d.ts +5 -16
- package/lib/modal/modal.variable.css +5 -396
- package/lib/modal/props.mixin.d.ts +2 -7
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +7 -0
- package/lib/overflow-title/index.d.ts +15 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/props.d.ts +3 -0
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +9 -47
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pop-confirm/index.d.ts +32 -0
- package/lib/pop-confirm/index.js +18 -16
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +14 -0
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +7 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.variable.css +1 -262
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -262
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -262
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/scrollbar/index.d.ts +13 -133
- package/lib/scrollbar/index.js +18444 -1343
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +67 -85
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +9 -11
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +4 -32
- package/lib/select/index.js +59 -119
- package/lib/select/option.d.ts +5 -4
- package/lib/select/select.css +43 -175
- package/lib/select/select.d.ts +0 -12
- package/lib/select/select.less +4 -7
- package/lib/select/select.variable.css +44 -437
- package/lib/select/type.d.ts +10 -9
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/index.d.ts +11 -34
- package/lib/sideslider/index.js +0 -1
- package/lib/sideslider/sideslider.css +9 -138
- package/lib/sideslider/sideslider.d.ts +5 -16
- package/lib/sideslider/sideslider.less +8 -7
- package/lib/sideslider/sideslider.variable.css +9 -269
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -262
- package/lib/steps/index.d.ts +18 -3
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +11 -1
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +92 -0
- package/lib/tab/index.js +14 -1
- package/lib/tab/props.d.ts +35 -0
- package/lib/tab/tab-nav.d.ts +45 -2
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +44 -0
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +0 -22
- package/lib/table/components/table-column.d.ts +44 -1
- package/lib/table/const.d.ts +2 -15
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +561 -89
- package/lib/table/index.js +3333 -3812
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -131
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +0 -1
- package/lib/table/plugins/head-filter.variable.css +1 -263
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
- package/lib/table/props.d.ts +30 -92
- package/lib/table/table.css +327 -597
- package/lib/table/table.d.ts +181 -47
- package/lib/table/table.less +101 -228
- package/lib/table/table.variable.css +328 -859
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +18 -45
- package/lib/table-column/index.d.ts +132 -3
- package/lib/table-column/index.js +28 -17367
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.variable.css +1 -262
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +7 -21
- package/lib/tree/index.js +18 -61
- package/lib/tree/props.d.ts +5 -12
- package/lib/tree/tree.css +78 -242
- package/lib/tree/tree.d.ts +3 -9
- package/lib/tree/tree.variable.css +79 -504
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +34 -42
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +4 -27
- package/lib/upload/index.js +7 -30
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +0 -6
- package/lib/upload/upload.variable.css +28 -419
- package/lib/virtual-render/index.d.ts +46 -12
- package/lib/virtual-render/index.js +148 -17469
- package/lib/virtual-render/props.d.ts +9 -2
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +17 -4
- package/lib/virtual-render/v-virtual-render.d.ts +1 -7
- package/lib/virtual-render/virtual-render.css +69 -225
- package/lib/virtual-render/virtual-render.d.ts +22 -6
- package/lib/virtual-render/virtual-render.less +11 -2
- package/lib/virtual-render/virtual-render.variable.css +70 -487
- package/lib/volar.components.d.ts +0 -2
- package/package.json +1 -1
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.variable.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -134
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -1,53 +1,45 @@
|
|
1
|
-
import {
|
1
|
+
import { TreePropTypes } from './props';
|
2
2
|
declare const _default: (flatData: {
|
3
|
-
data:
|
4
|
-
schema: WeakMap<
|
3
|
+
data: any[];
|
4
|
+
schema: WeakMap<Object, any>;
|
5
5
|
}, props?: TreePropTypes) => {
|
6
|
-
getSchemaVal: (node:
|
7
|
-
getNodeAttr: (node:
|
8
|
-
getNodeId: (node:
|
9
|
-
getNodeById: (id:
|
10
|
-
getNodeParentId: (node:
|
11
|
-
getParentNodeData: (node:
|
6
|
+
getSchemaVal: (node: any) => any;
|
7
|
+
getNodeAttr: (node: any, attr: string) => any;
|
8
|
+
getNodeId: (node: any) => any;
|
9
|
+
getNodeById: (id: any) => any;
|
10
|
+
getNodeParentId: (node: any) => any;
|
11
|
+
getParentNodeData: (node: any) => any;
|
12
12
|
getNodePathById: (id: string) => any;
|
13
13
|
getNodeAttrById: (id: string, attr: string) => any;
|
14
14
|
getNodeParentIdById: (id: string) => any;
|
15
|
-
getParentNodeAttr: (node:
|
16
|
-
getParentNode: (node:
|
17
|
-
setNodeAttr: (node:
|
18
|
-
setNodeAttrById: (id:
|
19
|
-
getNodePath: (node:
|
20
|
-
isRootNode: (node:
|
21
|
-
isNodeOpened: (node:
|
22
|
-
hasChildNode: (node:
|
23
|
-
isItemOpen: (item:
|
24
|
-
isNodeChecked: (node:
|
25
|
-
isNodeMatched: (node:
|
26
|
-
isNodeLoading: (node:
|
27
|
-
checkNodeIsOpen: (node:
|
28
|
-
getSourceNodeByPath: (path: string, uid?: string) => any
|
29
|
-
getSourceNodeByUID: (uid: string) =>
|
30
|
-
isMatchedNode: (node:
|
31
|
-
resolveScopedSlotParam: (item:
|
15
|
+
getParentNodeAttr: (node: any, attrName: string) => any;
|
16
|
+
getParentNode: (node: any) => any;
|
17
|
+
setNodeAttr: (node: any, attr: string, val: any, id?: any) => void;
|
18
|
+
setNodeAttrById: (id: any, attr: string, val: any) => void;
|
19
|
+
getNodePath: (node: any) => any;
|
20
|
+
isRootNode: (node: any | string) => any;
|
21
|
+
isNodeOpened: (node: any) => any;
|
22
|
+
hasChildNode: (node: any) => any;
|
23
|
+
isItemOpen: (item: any) => any;
|
24
|
+
isNodeChecked: (node: any) => any;
|
25
|
+
isNodeMatched: (node: any) => any;
|
26
|
+
isNodeLoading: (node: any) => any;
|
27
|
+
checkNodeIsOpen: (node: any) => any;
|
28
|
+
getSourceNodeByPath: (path: string, uid?: string) => any;
|
29
|
+
getSourceNodeByUID: (uid: string) => any;
|
30
|
+
isMatchedNode: (node: any) => any;
|
31
|
+
resolveScopedSlotParam: (item: any) => {
|
32
32
|
[x: string]: any;
|
33
33
|
fullPath: any;
|
34
34
|
uuid: any;
|
35
35
|
parent: any;
|
36
36
|
parentId: any;
|
37
37
|
};
|
38
|
-
setTreeNodeLoading: (node:
|
39
|
-
extendNodeAttr: (item:
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
uuid: any;
|
44
|
-
parent: any;
|
45
|
-
parentId: any;
|
46
|
-
};
|
47
|
-
};
|
48
|
-
getChildNodes: (node: TreeNode) => TreeNode[];
|
49
|
-
extendNodeScopedData: (item: TreeNode) => {
|
50
|
-
data: TreeNode;
|
38
|
+
setTreeNodeLoading: (node: any, value: boolean) => void;
|
39
|
+
extendNodeAttr: (item: any) => any;
|
40
|
+
getChildNodes: (node: any) => any;
|
41
|
+
extendNodeScopedData: (item: any) => {
|
42
|
+
data: any;
|
51
43
|
attributes: {
|
52
44
|
[x: string]: any;
|
53
45
|
fullPath: any;
|
@@ -56,12 +48,12 @@ declare const _default: (flatData: {
|
|
56
48
|
parentId: any;
|
57
49
|
};
|
58
50
|
};
|
59
|
-
getIntersectionResponse: (target: HTMLElement |
|
51
|
+
getIntersectionResponse: (target: HTMLElement | Record<string, any>) => {
|
60
52
|
level: any;
|
61
|
-
target: HTMLElement |
|
53
|
+
target: HTMLElement | Record<string, any>;
|
62
54
|
index: any;
|
63
55
|
parent: any;
|
64
|
-
node: HTMLElement |
|
56
|
+
node: HTMLElement | Record<string, any>;
|
65
57
|
isRoot: any;
|
66
58
|
};
|
67
59
|
};
|
package/lib/tree/use-search.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SearchOption, TreePropTypes } from './props';
|
2
2
|
declare const _default: (props: TreePropTypes) => {
|
3
|
-
searchFn: (itemValue:
|
3
|
+
searchFn: (itemValue: number | string, item: any) => any;
|
4
4
|
refSearch: import("vue").Ref<string | number | boolean | SearchOption>;
|
5
5
|
isSearchActive: import("vue").ComputedRef<boolean>;
|
6
6
|
isSearchDisabled: boolean;
|
@@ -1,16 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { TreePropTypes } from './props';
|
2
2
|
declare const _default: (props: TreePropTypes) => {
|
3
3
|
flatData: {
|
4
|
-
data:
|
5
|
-
|
6
|
-
children?: any[];
|
7
|
-
}[];
|
8
|
-
schema: WeakMap<TreeNode, Record<string, unknown>> & Omit<WeakMap<TreeNode, Record<string, unknown>>, keyof WeakMap<any, any>>;
|
4
|
+
data: any[];
|
5
|
+
schema: WeakMap<Object, any> & Omit<WeakMap<Object, any>, keyof WeakMap<any, any>>;
|
9
6
|
levelLineSchema: {};
|
10
7
|
};
|
11
|
-
asyncNodeClick: (item:
|
8
|
+
asyncNodeClick: (item: any) => Promise<any>;
|
12
9
|
deepAutoOpen: () => void;
|
13
|
-
afterDataUpdate: (callFn: (d: any) =>
|
10
|
+
afterDataUpdate: (callFn: (d: any) => any) => void;
|
14
11
|
registerNextLoop: (key: string, event: any, reset?: boolean) => void;
|
15
12
|
onSelected: (event: (d: any) => void) => void;
|
16
13
|
};
|
package/lib/tree/util.d.ts
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
import {
|
1
|
+
import { TreePropTypes } from './props';
|
2
2
|
export type IFlatData = {
|
3
|
-
data:
|
4
|
-
schema: WeakMap<
|
3
|
+
data: any[];
|
4
|
+
schema: WeakMap<Object, any>;
|
5
5
|
};
|
6
6
|
/**
|
7
7
|
* 获取当前节点显示Label
|
8
8
|
* @param item 当前节点
|
9
9
|
* @param props Props
|
10
10
|
*/
|
11
|
-
export declare const getLabel: (item:
|
11
|
+
export declare const getLabel: (item: any, props: TreePropTypes) => any;
|
12
12
|
/**
|
13
13
|
* 根据Props获取Tree样式设置
|
14
14
|
* @param item
|
15
15
|
* @param props
|
16
16
|
* @returns
|
17
17
|
*/
|
18
|
-
export declare const getTreeStyle: (item:
|
19
|
-
'--level-line':
|
18
|
+
export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
|
19
|
+
'--level-line': any;
|
20
20
|
'--lineHeight': string;
|
21
21
|
'--indent': string;
|
22
22
|
'--offset-left': string;
|
@@ -27,16 +27,16 @@ export declare const getTreeStyle: (item: TreeNode, props: TreePropTypes) => {
|
|
27
27
|
* @param props
|
28
28
|
* @returns
|
29
29
|
*/
|
30
|
-
export declare const getNodeItemStyle:
|
30
|
+
export declare const getNodeItemStyle: any;
|
31
31
|
/**
|
32
32
|
* 获取当前渲染节点Class List
|
33
33
|
* @param item
|
34
34
|
* @returns
|
35
35
|
*/
|
36
|
-
export declare const getNodeItemClass: (item:
|
37
|
-
[x: string]:
|
38
|
-
'is-root':
|
39
|
-
'is-open':
|
36
|
+
export declare const getNodeItemClass: (item: any, schema: WeakMap<Object, any>, props: TreePropTypes, showTree?: boolean) => {
|
37
|
+
[x: string]: any;
|
38
|
+
'is-root': any;
|
39
|
+
'is-open': any;
|
40
40
|
'is-virtual-render': boolean;
|
41
41
|
'level-line': boolean;
|
42
42
|
};
|
@@ -45,12 +45,12 @@ export declare const getNodeItemClass: (item: TreeNode, schema: WeakMap<TreeNode
|
|
45
45
|
* @param item
|
46
46
|
* @returns
|
47
47
|
*/
|
48
|
-
export declare const getNodeRowClass: (item:
|
49
|
-
[x: string]:
|
50
|
-
'is-checked':
|
51
|
-
'is-selected':
|
52
|
-
'node-folder':
|
53
|
-
'node-leaf':
|
48
|
+
export declare const getNodeRowClass: (item: any, schema: WeakMap<Object, any>) => {
|
49
|
+
[x: string]: any;
|
50
|
+
'is-checked': any;
|
51
|
+
'is-selected': any;
|
52
|
+
'node-folder': any;
|
53
|
+
'node-leaf': any;
|
54
54
|
};
|
55
55
|
/**
|
56
56
|
* 根据路径更新指定节点Child-Data
|
@@ -60,7 +60,7 @@ export declare const getNodeRowClass: (item: TreeNode, schema: WeakMap<TreeNode,
|
|
60
60
|
* @param nodekey 节点key
|
61
61
|
* @param nodeValue 节点值
|
62
62
|
*/
|
63
|
-
export declare const updateTreeNode: (path: string, treeData:
|
63
|
+
export declare const updateTreeNode: (path: string, treeData: any[], childKey: string, nodekey: string, nodeValue: any) => void;
|
64
64
|
/**
|
65
65
|
* 根据路径更新指定节点Child-Data
|
66
66
|
* @param path 节点路径
|
@@ -68,7 +68,7 @@ export declare const updateTreeNode: (path: string, treeData: TreeNode[], childK
|
|
68
68
|
* @param childKey Child Key
|
69
69
|
* @param assignVal value
|
70
70
|
*/
|
71
|
-
export declare const assignTreeNode: (path: string, treeData:
|
72
|
-
export declare const resolveNodeItem: (node:
|
71
|
+
export declare const assignTreeNode: (path: string, treeData: any[], childKey: string, assignVal: any) => void;
|
72
|
+
export declare const resolveNodeItem: (node: any) => any;
|
73
73
|
export declare const resolvePropIsMatched: (node: any, prop: any, id: any) => any;
|
74
|
-
export declare const showCheckbox: (props: TreePropTypes, node?:
|
74
|
+
export declare const showCheckbox: (props: TreePropTypes, node?: any) => any;
|
package/lib/upload/index.d.ts
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
declare const Upload: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
type: {
|
4
|
-
type: import("vue").PropType<"formdata" | "binary">;
|
5
|
-
default: "formdata" | "binary";
|
6
|
-
validator: (val: import("./upload.type").ETypes) => boolean;
|
7
|
-
};
|
8
3
|
theme: {
|
9
4
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
10
5
|
default: "button" | "picture" | "draggable";
|
@@ -93,7 +88,7 @@ declare const Upload: {
|
|
93
88
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
94
89
|
};
|
95
90
|
beforeUpload: {
|
96
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile
|
91
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
97
92
|
};
|
98
93
|
beforeRemove: {
|
99
94
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -122,11 +117,6 @@ declare const Upload: {
|
|
122
117
|
onSuccess?: (...args: any[]) => any;
|
123
118
|
onExceed?: (...args: any[]) => any;
|
124
119
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
125
|
-
type: {
|
126
|
-
type: import("vue").PropType<"formdata" | "binary">;
|
127
|
-
default: "formdata" | "binary";
|
128
|
-
validator: (val: import("./upload.type").ETypes) => boolean;
|
129
|
-
};
|
130
120
|
theme: {
|
131
121
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
132
122
|
default: "button" | "picture" | "draggable";
|
@@ -215,7 +205,7 @@ declare const Upload: {
|
|
215
205
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
216
206
|
};
|
217
207
|
beforeUpload: {
|
218
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile
|
208
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
219
209
|
};
|
220
210
|
beforeRemove: {
|
221
211
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -245,7 +235,6 @@ declare const Upload: {
|
|
245
235
|
onExceed?: (...args: any[]) => any;
|
246
236
|
}, {
|
247
237
|
name: string;
|
248
|
-
type: "formdata" | "binary";
|
249
238
|
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
250
239
|
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
251
240
|
extCls: string;
|
@@ -274,11 +263,6 @@ declare const Upload: {
|
|
274
263
|
M: {};
|
275
264
|
Defaults: {};
|
276
265
|
}, Readonly<import("vue").ExtractPropTypes<{
|
277
|
-
type: {
|
278
|
-
type: import("vue").PropType<"formdata" | "binary">;
|
279
|
-
default: "formdata" | "binary";
|
280
|
-
validator: (val: import("./upload.type").ETypes) => boolean;
|
281
|
-
};
|
282
266
|
theme: {
|
283
267
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
284
268
|
default: "button" | "picture" | "draggable";
|
@@ -367,7 +351,7 @@ declare const Upload: {
|
|
367
351
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
368
352
|
};
|
369
353
|
beforeUpload: {
|
370
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile
|
354
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
371
355
|
};
|
372
356
|
beforeRemove: {
|
373
357
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -397,7 +381,6 @@ declare const Upload: {
|
|
397
381
|
onExceed?: (...args: any[]) => any;
|
398
382
|
}, () => JSX.Element, {}, {}, {}, {
|
399
383
|
name: string;
|
400
|
-
type: "formdata" | "binary";
|
401
384
|
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
402
385
|
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
403
386
|
extCls: string;
|
@@ -423,11 +406,6 @@ declare const Upload: {
|
|
423
406
|
__isTeleport?: never;
|
424
407
|
__isSuspense?: never;
|
425
408
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
426
|
-
type: {
|
427
|
-
type: import("vue").PropType<"formdata" | "binary">;
|
428
|
-
default: "formdata" | "binary";
|
429
|
-
validator: (val: import("./upload.type").ETypes) => boolean;
|
430
|
-
};
|
431
409
|
theme: {
|
432
410
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
433
411
|
default: "button" | "picture" | "draggable";
|
@@ -516,7 +494,7 @@ declare const Upload: {
|
|
516
494
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
517
495
|
};
|
518
496
|
beforeUpload: {
|
519
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile
|
497
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
520
498
|
};
|
521
499
|
beforeRemove: {
|
522
500
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -546,7 +524,6 @@ declare const Upload: {
|
|
546
524
|
onExceed?: (...args: any[]) => any;
|
547
525
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "exceed", {
|
548
526
|
name: string;
|
549
|
-
type: "formdata" | "binary";
|
550
527
|
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
551
528
|
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
552
529
|
extCls: string;
|
package/lib/upload/index.js
CHANGED
@@ -1292,11 +1292,6 @@ var EThemes;
|
|
1292
1292
|
EThemes["DRAGGABLE"] = "draggable";
|
1293
1293
|
EThemes["PICTURE"] = "picture";
|
1294
1294
|
})(EThemes || (EThemes = {}));
|
1295
|
-
var ETypes;
|
1296
|
-
(function (ETypes) {
|
1297
|
-
ETypes["BINARY"] = "binary";
|
1298
|
-
ETypes["FORMDATA"] = "formdata";
|
1299
|
-
})(ETypes || (ETypes = {}));
|
1300
1295
|
var EUploadStatus;
|
1301
1296
|
(function (EUploadStatus) {
|
1302
1297
|
EUploadStatus["FAIL"] = "fail";
|
@@ -1332,19 +1327,7 @@ var EUploadStatus;
|
|
1332
1327
|
*/
|
1333
1328
|
|
1334
1329
|
var themes = [EThemes.BUTTON, EThemes.DRAGGABLE, EThemes.PICTURE];
|
1335
|
-
var types = [ETypes.FORMDATA, ETypes.BINARY];
|
1336
1330
|
/* harmony default export */ const props = ({
|
1337
|
-
type: {
|
1338
|
-
type: String,
|
1339
|
-
"default": 'formdata',
|
1340
|
-
validator: function validator(val) {
|
1341
|
-
if (!val || types.includes(val)) {
|
1342
|
-
return true;
|
1343
|
-
}
|
1344
|
-
console.error("invalid type, ".concat(val, ", the type must be one of \u3010").concat(types.join(' | '), "\u3011"));
|
1345
|
-
return false;
|
1346
|
-
}
|
1347
|
-
},
|
1348
1331
|
theme: {
|
1349
1332
|
type: String,
|
1350
1333
|
"default": 'draggable',
|
@@ -2069,9 +2052,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2069
2052
|
throw new Error('XMLHttpRequest is undefined');
|
2070
2053
|
}
|
2071
2054
|
var xhr = new XMLHttpRequest();
|
2072
|
-
var action = option.action
|
2073
|
-
type = option.type;
|
2074
|
-
var isFormdata = type === 'formdata';
|
2055
|
+
var action = option.action;
|
2075
2056
|
if (xhr.upload) {
|
2076
2057
|
xhr.upload.addEventListener('progress', function (event) {
|
2077
2058
|
var progressEvent = event;
|
@@ -2080,7 +2061,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2080
2061
|
});
|
2081
2062
|
}
|
2082
2063
|
var formData = new FormData();
|
2083
|
-
if (
|
2064
|
+
if (option.data) {
|
2084
2065
|
var appendData = option.data;
|
2085
2066
|
if (!Array.isArray(appendData)) {
|
2086
2067
|
appendData = [appendData];
|
@@ -2094,7 +2075,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2094
2075
|
}
|
2095
2076
|
});
|
2096
2077
|
}
|
2097
|
-
if (
|
2078
|
+
if (option.formDataAttributes) {
|
2098
2079
|
var _appendData = option.formDataAttributes;
|
2099
2080
|
if (!Array.isArray(_appendData)) {
|
2100
2081
|
_appendData = [_appendData];
|
@@ -2103,9 +2084,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2103
2084
|
if (Array.isArray(item.value)) formData.append.apply(formData, [item.name].concat(_toConsumableArray(item.value)));else formData.append(item.name, item.value);
|
2104
2085
|
});
|
2105
2086
|
}
|
2106
|
-
|
2107
|
-
formData.append(option.filename, option.file, option.file.name);
|
2108
|
-
}
|
2087
|
+
formData.append(option.filename, option.file, option.file.name);
|
2109
2088
|
xhr.addEventListener('error', function () {
|
2110
2089
|
option.onError(new Error('An error occurred during upload'));
|
2111
2090
|
});
|
@@ -2149,7 +2128,7 @@ var ajaxUpload = function ajaxUpload(option) {
|
|
2149
2128
|
xhr.setRequestHeader(key, String(value));
|
2150
2129
|
}
|
2151
2130
|
}
|
2152
|
-
xhr.send(
|
2131
|
+
xhr.send(formData);
|
2153
2132
|
return xhr;
|
2154
2133
|
};
|
2155
2134
|
// 该方法用于在不同的浏览器使用不同的方式
|
@@ -2727,7 +2706,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2727
2706
|
case 2:
|
2728
2707
|
_context.prev = 2;
|
2729
2708
|
_context.next = 5;
|
2730
|
-
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file
|
2709
|
+
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file);
|
2731
2710
|
case 5:
|
2732
2711
|
beforeResult = _context.sent;
|
2733
2712
|
_context.next = 11;
|
@@ -2754,8 +2733,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2754
2733
|
return _upload.apply(this, arguments);
|
2755
2734
|
}
|
2756
2735
|
function send(file, sendFiles) {
|
2757
|
-
var
|
2758
|
-
headers = props.headers,
|
2736
|
+
var headers = props.headers,
|
2759
2737
|
header = props.header,
|
2760
2738
|
data = props.data,
|
2761
2739
|
formDataAttributes = props.formDataAttributes,
|
@@ -2769,7 +2747,6 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2769
2747
|
customRequest = props.customRequest;
|
2770
2748
|
var uid = file.uid;
|
2771
2749
|
var options = {
|
2772
|
-
type: type,
|
2773
2750
|
headers: headers,
|
2774
2751
|
header: header,
|
2775
2752
|
withCredentials: withCredentials,
|
package/lib/upload/props.d.ts
CHANGED
@@ -1,11 +1,6 @@
|
|
1
|
-
import { APIResponse, EThemes,
|
1
|
+
import { APIResponse, EThemes, ExtraFormData, FormDataAttr, HeaderDataAttr, MaxSize, UploadFile, UploadRawFile, UploadRequestHandler } from './upload.type';
|
2
2
|
import type { PropType } from 'vue';
|
3
3
|
declare const _default: {
|
4
|
-
type: {
|
5
|
-
type: PropType<"formdata" | "binary">;
|
6
|
-
default: "formdata" | "binary";
|
7
|
-
validator: (val: ETypes) => boolean;
|
8
|
-
};
|
9
4
|
theme: {
|
10
5
|
type: PropType<"button" | "picture" | "draggable">;
|
11
6
|
default: "button" | "picture" | "draggable";
|
@@ -94,7 +89,7 @@ declare const _default: {
|
|
94
89
|
type: PropType<(event: Event) => boolean | void>;
|
95
90
|
};
|
96
91
|
beforeUpload: {
|
97
|
-
type: PropType<(file: UploadRawFile
|
92
|
+
type: PropType<(file: UploadRawFile) => Promise<boolean> | boolean>;
|
98
93
|
};
|
99
94
|
beforeRemove: {
|
100
95
|
type: PropType<(file: UploadFile, uploadFiles: UploadFile[]) => Promise<boolean> | boolean>;
|