bkui-vue 0.0.1-beta.463 → 0.0.1-beta.465
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 +63 -67
- package/dist/index.esm.js +15199 -14529
- package/dist/index.umd.js +65 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +58 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +60 -40
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +3 -3
- package/lib/animate-number/index.d.ts +60 -27
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/index.d.ts +61 -43
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +63 -60
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/index.d.ts +61 -39
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.d.ts +3 -3
- package/lib/button/index.d.ts +74 -68
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +63 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +81 -146
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/checkbox/checkbox-group.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +10 -10
- package/lib/checkbox/index.d.ts +76 -64
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.d.ts +6 -6
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +1 -1
- package/lib/collapse/collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +68 -74
- package/lib/collapse-transition/collapse-transition.d.ts +2 -2
- package/lib/color-picker/color-picker.d.ts +2 -2
- package/lib/color-picker/components/color-input.d.ts +2 -2
- package/lib/color-picker/components/hue-slider.d.ts +2 -2
- package/lib/color-picker/components/input-container.d.ts +2 -2
- package/lib/color-picker/components/recommend-colors.d.ts +2 -2
- package/lib/color-picker/components/saturation-panel.d.ts +2 -2
- package/lib/color-picker/index.d.ts +63 -62
- package/lib/color-picker/index.js +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -3
- package/lib/config-provider/index.d.ts +175 -138
- package/lib/container/col.d.ts +2 -2
- package/lib/container/container.d.ts +2 -2
- package/lib/container/index.d.ts +29 -48
- package/lib/container/row.d.ts +2 -2
- package/lib/date-picker/base/confirm.d.ts +5 -5
- package/lib/date-picker/base/date-table.d.ts +3 -3
- package/lib/date-picker/base/month-table.d.ts +4 -4
- package/lib/date-picker/base/picker-dropdown.d.ts +4 -4
- package/lib/date-picker/base/time-spinner.d.ts +2 -2
- package/lib/date-picker/base/year-table.d.ts +4 -4
- package/lib/date-picker/date-picker.d.ts +37 -28
- package/lib/date-picker/index.d.ts +162 -209
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -10
- package/lib/date-picker/panel/date-range.d.ts +18 -15
- package/lib/date-picker/panel/date.d.ts +12 -12
- package/lib/date-picker/panel/time-range.d.ts +8 -2
- package/lib/date-picker/panel/time.d.ts +5 -2
- package/lib/date-picker/props.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +11 -2
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +90 -163
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/divider/divider.d.ts +2 -2
- package/lib/divider/index.d.ts +61 -37
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +66 -54
- package/lib/exception/exception.d.ts +2 -2
- package/lib/exception/index.d.ts +60 -29
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +58 -34
- package/lib/form/compose-form-item.d.ts +2 -2
- package/lib/form/form-item.d.ts +3 -3
- package/lib/form/form.d.ts +3 -3
- package/lib/form/index.d.ts +62 -40
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.d.ts +2 -2
- package/lib/image/image.d.ts +1 -1
- package/lib/image/index.d.ts +63 -57
- package/lib/info-box/index.d.ts +1 -1
- package/lib/info-box/index.js +2 -1
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/input/index.d.ts +82 -119
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +6 -6
- package/lib/link/index.d.ts +59 -40
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/directive.d.ts +2 -2
- package/lib/loading/index.d.ts +67 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +3 -3
- package/lib/locale/lang/en.d.ts +1 -1
- package/lib/menu/index.d.ts +69 -32
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.d.ts +1 -1
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +84 -123
- package/lib/modal/modal.d.ts +3 -3
- package/lib/navigation/index.d.ts +84 -65
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +10 -3
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +2 -2
- package/lib/overflow-title/index.d.ts +62 -37
- package/lib/overflow-title/props.d.ts +2 -2
- package/lib/pagination/index.d.ts +75 -94
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.d.ts +6 -6
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +66 -63
- package/lib/pop-confirm/pop-confirm.d.ts +2 -2
- package/lib/popover/arrow.d.ts +1 -1
- package/lib/popover/content.d.ts +2 -2
- package/lib/popover/index.d.ts +82 -153
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/props.d.ts +2 -2
- package/lib/popover/reference.d.ts +1 -1
- package/lib/popover/root.d.ts +2 -2
- package/lib/popover/use-floating.d.ts +3 -3
- package/lib/popover2/index.d.ts +55 -10
- package/lib/popover2/popover.d.ts +1 -1
- package/lib/process/index.d.ts +60 -46
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/progress/index.d.ts +76 -103
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +6 -6
- package/lib/radio/index.d.ts +63 -41
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +5 -5
- package/lib/radio/radio-group.d.ts +2 -2
- package/lib/radio/radio.d.ts +2 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +61 -34
- package/lib/rate/rate.d.ts +3 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +65 -66
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/search-select/index.d.ts +70 -69
- package/lib/search-select/index.js +2 -1
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +1 -1
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.d.ts +2 -2
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/search-select/utils.d.ts +4 -4
- package/lib/select/index.d.ts +296 -500
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +2 -2
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.d.ts +70 -60
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/select/type.d.ts +3 -3
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +2 -2
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +7 -7
- package/lib/sideslider/index.d.ts +84 -125
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.d.ts +3 -3
- package/lib/slider/index.d.ts +73 -103
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +68 -62
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.d.ts +5 -5
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/switcher/index.d.ts +72 -77
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/tab/index.d.ts +81 -99
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +1 -1
- package/lib/tab/tab-nav.d.ts +2 -2
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +3 -3
- package/lib/table/components/table-cell.d.ts +2 -2
- package/lib/table/components/table-column.d.ts +18 -12
- package/lib/table/components/table-row.d.ts +1 -1
- package/lib/table/index.d.ts +213 -302
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/col-group.d.ts +2 -2
- package/lib/table/plugins/head-filter.d.ts +1 -1
- package/lib/table/plugins/head-sort.d.ts +1 -1
- package/lib/table/plugins/settings.d.ts +1 -1
- package/lib/table/plugins/use-active-columns.d.ts +3 -3
- package/lib/table/plugins/use-fixed-column.d.ts +3 -3
- package/lib/table/props.d.ts +19 -19
- package/lib/table/table.d.ts +6 -6
- package/lib/table/use-column.d.ts +4 -4
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +113 -106
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +68 -50
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -1
- package/lib/tag-input/index.d.ts +99 -311
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -2
- package/lib/tag-input/tag-input.d.ts +3 -3
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +116 -187
- package/lib/timeline/index.d.ts +57 -28
- package/lib/timeline/timeline.d.ts +2 -2
- package/lib/transfer/index.d.ts +67 -82
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +84 -146
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +4 -4
- package/lib/tree/tree.d.ts +3 -3
- package/lib/upload/index.d.ts +93 -150
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +4 -4
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/use-file-handler.d.ts +1 -24
- package/lib/virtual-render/index.d.ts +64 -160
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -1
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/package.json +38 -37
@@ -86,7 +86,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
86
86
|
default: boolean;
|
87
87
|
};
|
88
88
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
89
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
89
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
90
90
|
direction: {
|
91
91
|
type: StringConstructor;
|
92
92
|
default: string;
|
@@ -175,8 +175,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
175
|
};
|
176
176
|
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
177
177
|
}>> & {
|
178
|
-
onHidden?: (...args: any[]) => any;
|
179
178
|
onShown?: (...args: any[]) => any;
|
179
|
+
onHidden?: (...args: any[]) => any;
|
180
180
|
onClosed?: (...args: any[]) => any;
|
181
181
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
182
182
|
"onAnimation-end"?: (...args: any[]) => any;
|
@@ -200,5 +200,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
200
200
|
escClose: boolean;
|
201
201
|
fullscreen: boolean;
|
202
202
|
animateType: string;
|
203
|
-
}>;
|
203
|
+
}, {}>;
|
204
204
|
export default _default;
|
package/lib/slider/index.d.ts
CHANGED
@@ -27,103 +27,73 @@ declare const Slider: {
|
|
27
27
|
new (...args: any[]): {
|
28
28
|
$: import("vue").ComponentInternalInstance;
|
29
29
|
$data: {};
|
30
|
-
$props:
|
31
|
-
height
|
32
|
-
extCls
|
33
|
-
vertical
|
34
|
-
range
|
35
|
-
step
|
36
|
-
showInput
|
37
|
-
customContent
|
38
|
-
disable
|
39
|
-
showTip
|
40
|
-
maxValue
|
41
|
-
minValue
|
42
|
-
showInterval
|
43
|
-
showIntervalLabel
|
44
|
-
showButtonLabel
|
45
|
-
showBetweenLabel
|
46
|
-
formatterLabel
|
47
|
-
formatterButtonLabel
|
48
|
-
formatterTipLabel
|
49
|
-
|
50
|
-
|
51
|
-
extCls: {
|
52
|
-
type: StringConstructor;
|
53
|
-
default: string;
|
54
|
-
};
|
55
|
-
vertical: {
|
56
|
-
type: BooleanConstructor;
|
57
|
-
default: boolean;
|
58
|
-
};
|
59
|
-
height: {
|
60
|
-
type: StringConstructor;
|
61
|
-
default: string;
|
62
|
-
};
|
63
|
-
disable: {
|
64
|
-
type: BooleanConstructor;
|
65
|
-
default: boolean;
|
66
|
-
};
|
67
|
-
showTip: {
|
68
|
-
type: BooleanConstructor;
|
69
|
-
default: boolean;
|
70
|
-
};
|
71
|
-
maxValue: {
|
72
|
-
type: NumberConstructor[];
|
73
|
-
default: number;
|
74
|
-
};
|
75
|
-
minValue: {
|
76
|
-
type: NumberConstructor[];
|
77
|
-
default: number;
|
78
|
-
};
|
79
|
-
step: {
|
80
|
-
type: NumberConstructor[];
|
81
|
-
default: number;
|
82
|
-
};
|
83
|
-
range: {
|
84
|
-
type: BooleanConstructor;
|
85
|
-
default: boolean;
|
86
|
-
};
|
87
|
-
showInterval: {
|
88
|
-
type: BooleanConstructor;
|
89
|
-
default: boolean;
|
90
|
-
};
|
91
|
-
showIntervalLabel: {
|
92
|
-
type: BooleanConstructor;
|
93
|
-
default: boolean;
|
94
|
-
};
|
95
|
-
showButtonLabel: {
|
96
|
-
type: BooleanConstructor;
|
97
|
-
default: boolean;
|
98
|
-
};
|
99
|
-
showBetweenLabel: {
|
100
|
-
type: BooleanConstructor;
|
101
|
-
default: boolean;
|
102
|
-
};
|
103
|
-
showInput: {
|
104
|
-
type: BooleanConstructor;
|
105
|
-
default: boolean;
|
106
|
-
};
|
107
|
-
customContent: {
|
108
|
-
type: ObjectConstructor;
|
109
|
-
default: any;
|
110
|
-
};
|
111
|
-
formatterLabel: {
|
112
|
-
type: FunctionConstructor;
|
113
|
-
default: (value: number) => number;
|
114
|
-
};
|
115
|
-
formatterButtonLabel: {
|
116
|
-
type: FunctionConstructor;
|
117
|
-
default: (value: number) => number;
|
118
|
-
};
|
119
|
-
formatterTipLabel: {
|
120
|
-
type: FunctionConstructor;
|
121
|
-
default: (value: number) => number;
|
122
|
-
};
|
123
|
-
}>> & {
|
30
|
+
$props: {
|
31
|
+
height?: string;
|
32
|
+
extCls?: string;
|
33
|
+
vertical?: boolean;
|
34
|
+
range?: boolean;
|
35
|
+
step?: number;
|
36
|
+
showInput?: boolean;
|
37
|
+
customContent?: Record<string, any>;
|
38
|
+
disable?: boolean;
|
39
|
+
showTip?: boolean;
|
40
|
+
maxValue?: number;
|
41
|
+
minValue?: number;
|
42
|
+
showInterval?: boolean;
|
43
|
+
showIntervalLabel?: boolean;
|
44
|
+
showButtonLabel?: boolean;
|
45
|
+
showBetweenLabel?: boolean;
|
46
|
+
formatterLabel?: Function;
|
47
|
+
formatterButtonLabel?: Function;
|
48
|
+
formatterTipLabel?: Function;
|
49
|
+
class?: unknown;
|
50
|
+
style?: unknown;
|
124
51
|
onChange?: (...args: any[]) => any;
|
52
|
+
key?: string | number | symbol;
|
53
|
+
ref?: import("vue").VNodeRef;
|
54
|
+
ref_for?: boolean;
|
55
|
+
ref_key?: string;
|
56
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
+
[key: string]: any;
|
58
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
+
[key: string]: any;
|
60
|
+
}>) => void)[];
|
61
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
62
|
+
[key: string]: any;
|
63
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
64
|
+
[key: string]: any;
|
65
|
+
}>) => void)[];
|
66
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
67
|
+
[key: string]: any;
|
68
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
69
|
+
[key: string]: any;
|
70
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
71
|
+
[key: string]: any;
|
72
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
73
|
+
[key: string]: any;
|
74
|
+
}>) => void)[];
|
75
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
76
|
+
[key: string]: any;
|
77
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
78
|
+
[key: string]: any;
|
79
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
80
|
+
[key: string]: any;
|
81
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
82
|
+
[key: string]: any;
|
83
|
+
}>) => void)[];
|
84
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
85
|
+
[key: string]: any;
|
86
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
87
|
+
[key: string]: any;
|
88
|
+
}>) => void)[];
|
89
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
90
|
+
[key: string]: any;
|
91
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
92
|
+
[key: string]: any;
|
93
|
+
}>) => void)[];
|
94
|
+
readonly modelValue?: number | unknown[];
|
125
95
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
126
|
-
}
|
96
|
+
};
|
127
97
|
$attrs: {
|
128
98
|
[x: string]: unknown;
|
129
99
|
};
|
@@ -131,10 +101,10 @@ declare const Slider: {
|
|
131
101
|
[x: string]: unknown;
|
132
102
|
};
|
133
103
|
$slots: Readonly<{
|
134
|
-
[name: string]: import("vue").Slot
|
104
|
+
[name: string]: import("vue").Slot<any>;
|
135
105
|
}>;
|
136
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
137
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
106
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
107
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
138
108
|
$emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
|
139
109
|
$el: any;
|
140
110
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -235,7 +205,7 @@ declare const Slider: {
|
|
235
205
|
formatterLabel: Function;
|
236
206
|
formatterButtonLabel: Function;
|
237
207
|
formatterTipLabel: Function;
|
238
|
-
}> & {
|
208
|
+
}, {}, string, {}> & {
|
239
209
|
beforeCreate?: (() => void) | (() => void)[];
|
240
210
|
created?: (() => void) | (() => void)[];
|
241
211
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -250,11 +220,11 @@ declare const Slider: {
|
|
250
220
|
unmounted?: (() => void) | (() => void)[];
|
251
221
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
252
222
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
253
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
223
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
254
224
|
};
|
255
225
|
$forceUpdate: () => void;
|
256
226
|
$nextTick: typeof import("vue").nextTick;
|
257
|
-
$watch
|
227
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
258
228
|
} & Readonly<import("vue").ExtractPropTypes<{
|
259
229
|
modelValue: import("vue-types").VueTypeDef<number | unknown[]>;
|
260
230
|
extCls: {
|
@@ -334,7 +304,7 @@ declare const Slider: {
|
|
334
304
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
335
305
|
} & import("vue").ShallowUnwrapRef<{
|
336
306
|
renderDom: () => JSX.Element;
|
337
|
-
}> & {} &
|
307
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
338
308
|
__isFragment?: never;
|
339
309
|
__isTeleport?: never;
|
340
310
|
__isSuspense?: never;
|
@@ -436,5 +406,5 @@ declare const Slider: {
|
|
436
406
|
formatterLabel: Function;
|
437
407
|
formatterButtonLabel: Function;
|
438
408
|
formatterTipLabel: Function;
|
439
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
409
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
440
410
|
export default Slider;
|
package/lib/slider/index.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../input"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../input","../popover"],t);else{var a="object"==typeof exports?t(require("../shared"),require("vue"),require("../input"),require("../popover")):t(e["../shared"],e.vue,e["../input"],e["../popover"]);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,((e,t,a,r)=>(()=>{var n={7162:(e,t,a)=>{e.exports=a(5047)},5047:e=>{var t=function(e){"use strict";var t,a=Object.prototype,r=a.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,r){var n=t&&t.prototype instanceof h?t:h,o=Object.create(n.prototype),u=new T(r||[]);return o._invoke=function(e,t,a){var r=v;return function(n,o){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===n)throw o;return B()}for(a.method=n,a.arg=o;;){var u=a.delegate;if(u){var l=k(u,a);if(l){if(l===p)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===v)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=d;var i=s(e,t,a);if("normal"===i.type){if(r=a.done?f:m,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(r=f,a.method="throw",a.arg=i.arg)}}}(e,a,u),o}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var v="suspendedStart",m="suspendedYield",d="executing",f="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,o,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(j([])));w&&w!==a&&r.call(w,o)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function L(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function a(n,o,u,l){var i=s(e[n],e,o);if("throw"!==i.type){var c=i.arg,v=c.value;return v&&"object"==typeof v&&r.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,u,l)}),(function(e){a("throw",e,u,l)})):t.resolve(v).then((function(e){c.value=e,u(c)}),(function(e){return a("throw",e,u,l)}))}l(i.arg)}var n;this._invoke=function(e,r){function o(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(o,o):o()}}function k(e,a){var r=e.iterator[a.method];if(r===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=s(r,e.iterator,a.arg);if("throw"===n.type)return a.method="throw",a.arg=n.arg,a.delegate=null,p;var o=n.arg;return o?o.done?(a[e.resultName]=o.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):o:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function j(e){if(e){var a=e[o];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,u=function a(){for(;++n<e.length;)if(r.call(e,n))return a.value=e[n],a.done=!1,a;return a.value=t,a.done=!0,a};return u.next=u}}return{next:B}}function B(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},L(N.prototype),i(N.prototype,u,(function(){return this})),e.AsyncIterator=N,e.async=function(t,a,r,n,o){void 0===o&&(o=Promise);var u=new N(c(t,a,r,n),o);return e.isGeneratorFunction(a)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},L(x),i(x,l,"Generator"),i(x,o,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var r=t.pop();if(r in e)return a.value=r,a.done=!1,a}return a.done=!0,a}},e.values=j,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var a in this)"t"===a.charAt(0)&&r.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function n(r,n){return l.type="throw",l.arg=e,a.next=r,n&&(a.method="next",a.arg=t),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],l=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var i=r.call(u,"catchLoc"),c=r.call(u,"finallyLoc");if(i&&c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(i){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=e,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),C(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;C(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,r){return this.delegate={iterator:j(e),resultName:a,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},8133:e=>{"use strict";e.exports=a},5537:e=>{"use strict";e.exports=r},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return n[e](a,a.exports,u),a.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var a in t)u.o(t,a)&&!u.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";u.r(l),u.d(l,{default:()=>f});var e=u(4212),t=u(748),a=u(7162),r=u.n(a);Object.create,Object.create;var n=u(8133),o=u.n(n),i=u(5537),c=u.n(i);const s=(0,t.defineComponent)({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(a,r){var n=r.emit,o=(0,t.ref)(!1),u=(0,t.ref)(!1),l=(0,t.ref)(0),i=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(null),f=(0,t.ref)(a.modelValue),p=(0,t.ref)(0),h=(0,t.ref)(0),V=(0,t.ref)(!1),y=(0,t.ref)(null),b=(0,t.computed)((function(){var t,r,n="";if(null===(t=a.params.customContent)||void 0===t?void 0:t[a.modelValue]){var o=a.params.customContent[a.modelValue];n=o.tip||o.label||""}var u=a.params.vertical?e.PlacementEnum.RIGHT:e.PlacementEnum.TOP;return(null===(r=a.params)||void 0===r?void 0:r.showTip)?{content:a.params.formatterTipLabel("".concat(n||(null==a?void 0:a.modelValue)||"0")),placement:u}:{content:"",placement:u}})),g=(0,t.computed)((function(){return"".concat((a.modelValue-a.params.minValue)/(a.params.maxValue-a.params.minValue)*100,"%")})),w=(0,t.computed)((function(){return a.params.vertical?{bottom:g.value}:{left:g.value}})),x=(0,t.computed)((function(){return a.params.formatterButtonLabel(a.modelValue)})),L=function(e){a.params.disable||(e.preventDefault(),N(e),v(window,"mousemove",k),v(window,"touchmove",k),v(window,"mouseup",E),v(window,"touchend",E))},N=function(e){o.value=!0,u.value=!0,a.params.vertical?l.value=e.clientY:i.value=e.clientX,s.value=parseFloat(g.value),d.value=s.value},k=function(e){if(o.value){u.value=!1,n("resetSize");var t=0;a.params.vertical?(p.value=e.clientY,t=(l.value-p.value)/a.params.sliderSize*100):(h.value=e.clientX,t=(h.value-i.value)/a.params.sliderSize*100),d.value=s.value+t,C(d.value)}},E=function e(){V.value=!1,o.value&&(setTimeout((function(){o.value=!1,u.value||(C(d.value),n("emitChange"))}),0),m(window,"mousemove",k),m(window,"touchmove",k),m(window,"mouseup",e),m(window,"touchend",e))},C=function(e){if(null!==e&&!isNaN(e)){e<0?d.value=0:e>100&&(d.value=100);var t=100/((a.params.maxValue-a.params.minValue)/a.params.step),r=Math.round(e/t)*t*(a.params.maxValue-a.params.minValue)*.01+a.params.minValue;r=parseFloat(r.toFixed(a.params.precision)),n("update:modelValue",r),o.value||a.modelValue===f.value||(f.value=a.modelValue)}};return{renderDom:function(){return(0,t.createVNode)("div",{class:["bk-slider-button",a.params.vertical?"vertical":"horizontal",{grabbing:o.value}],ref:y,tabindex:"0",style:w.value,onClick:function(e){return e.stopPropagation()},onMousedown:L},[Boolean(b.value.content)?(0,t.createVNode)(c(),{content:b.value.content,theme:"dark",placement:b.value.placement,boundary:document.body},{default:function(){return[(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null)]}}):(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null),a.params.showButtonLabel&&!a.params.showIntervalLabel?(0,t.createVNode)("div",{class:["slider-button-label",a.params.vertical?"vertical":"horizontal"]},[x.value]):void 0])},setPosition:C,tip:b}},render:function(){return this.renderDom()}});var v=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)};const d=(0,t.defineComponent)({name:"Slider",props:{modelValue:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}},formatterTipLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,u=a.slots,l=a.emit,i=(0,t.ref)(1),c=(0,t.ref)(null),m=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(0),p=(0,t.ref)(0),h=(0,t.ref)(null),V=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),g=(0,t.computed)((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),w=(0,t.computed)((function(){return Math.min(c.value,m.value)})),x=(0,t.computed)((function(){return Math.max(c.value,m.value)})),L=(0,t.computed)((function(){return e.range?"".concat(100*(x.value-w.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(c.value-e.minValue)/(e.maxValue-e.minValue),"%")})),N=(0,t.computed)((function(){return e.range?"".concat(100*(w.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),k=(0,t.computed)((function(){return e.vertical?{height:L.value,bottom:N.value}:{width:L.value,left:N.value}})),E=(0,t.computed)((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),r=[],n=1;n<t;n++)r.push(n*a);return e.range?r.filter((function(t){return t<100*(w.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(x.value-e.minValue)/(e.maxValue-e.minValue)})):r.filter((function(t){return t>100*(c.value-e.minValue)/(e.maxValue-e.minValue)}))})),C=(0,t.computed)((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),T=(0,t.computed)((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=100*e.step/(e.maxValue-e.minValue),a=[],r=e.minValue,n=0;r<=e.maxValue;r+=e.step,n++){var o={stepWidth:n*t,stepLabel:e.formatterLabel(r)};a.push(o)}return a})),j=(0,t.computed)((function(){return Array.isArray(e.modelValue)})),B=(0,t.computed)((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,r=e.customContent[t].label;return{tip:a||r||"",label:r||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=(0,t.computed)((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:g.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:i.value,formatterTipLabel:e.formatterTipLabel}}));(0,t.watch)((function(){return e.modelValue}),(function(){_()})),(0,t.watch)((function(){return c.value}),(function(t){e.range?l("update:modelValue",[w.value,x.value]):l("update:modelValue",t),f.value=t})),(0,t.watch)((function(){return m.value}),(function(e){l("update:modelValue",[w.value,x.value]),p.value=e})),(0,t.onMounted)((function(){e.range?(Array.isArray(e.modelValue)?(c.value=Math.max(e.minValue,Number(e.modelValue[0])),m.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(c.value=e.minValue,m.value=e.maxValue),d.value=[c.value,m.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?c.value=e.minValue:c.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=c.value),P(),v(window,"resize",P())}));var P=function(){h.value&&(i.value=h.value["client".concat(e.vertical?"Height":"Width")])},S=function(t){var a,r;if(t.stopPropagation(),!e.disable){if(P(),e.vertical){var n=null===(a=h.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;F((n-t.clientY)/i.value*100)}else{var o=null===(r=h.value)||void 0===r?void 0:r.getBoundingClientRect().left;F((t.clientX-o)/i.value*100)}M()}},I=function(){return e.range?![w.value,x.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},_=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(c.value=Number(t[0]),m.value=Number(t[1]),I()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(c.value=t,I()&&(d.value=t)))}},M=function(){return a=n,o=void 0,u=void 0,i=r().mark((function a(){return r().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,t.nextTick)();case 2:l("change",e.range?[w.value,x.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})),new(u||(u=Promise))((function(e,t){function r(e){try{l(i.next(e))}catch(e){t(e)}}function n(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(r,n)}l((i=i.apply(a,o||[])).next())}));var a,o,u,i},z=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},F=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(w.value-a)<Math.abs(x.value-a)?b.value=c.value<m.value?V.value:y.value:b.value=c.value>m.value?V.value:y.value,b.value.setPosition(t)}else V.value.setPosition(t)},G=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(f.value=e.minValue,c.value=e.minValue):a>e.maxValue?(f.value=e.maxValue,c.value=e.maxValue):c.value=a}},A=function(t){if(""!==t&&"number"!=typeof t){var a=parseFloat(t);a<e.minValue?(p.value=e.minValue,m.value=e.minValue):a>e.maxValue?(p.value=e.maxValue,m.value=e.maxValue):m.value=a}},R=function(t){var a;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[c.value,m.value].includes(a)?"0":"1"};return{renderDom:function(){var a,r;return(0,t.createVNode)("div",{class:["bk-slider",e.extCls]},[null===(a=u.start)||void 0===a?void 0:a.call(u),(0,t.createVNode)("div",{class:"bk-slider-runway",ref:h,style:C.value,onClick:S},[(0,t.createVNode)("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:k.value},null),e.showInterval?E.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:e.vertical}],style:z(a)},null)})):void 0,e.customContent?B.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:e.vertical}],style:z(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?(0,t.createVNode)("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[(0,t.createVNode)("div",{class:"label-start",style:[{opacity:R("start")}]},[e.formatterLabel(e.minValue)]),(0,t.createVNode)("div",{class:"label-end",style:[{opacity:R("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?T.value.map((function(a,r){return(0,t.createVNode)("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:r,style:z(a.stepWidth)},[a.stepLabel])})):e.customContent?B.value.map((function(a,r){return(0,t.createVNode)("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:r,style:z(a.percent)},[a.label])})):void 0]):void 0,(0,t.createVNode)(s,{modelValue:c.value,"onUpdate:modelValue":function(e){return c.value=e},ref:V,params:O.value,onEmitChange:M,onResetSize:P},null),e.range?(0,t.createVNode)(s,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},ref:y,params:O.value,onEmitChange:M,onResetSize:P},null):void 0]),e.showInput&&!e.vertical?(0,t.createVNode)("div",{class:"bk-slider-input"},[(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(o(),{type:"number",modelValue:f.value,max:e.maxValue,min:e.minValue,onChange:G},null)]),j.value&&m.value?[(0,t.createVNode)("div",{class:"input-center"},[(0,t.createTextVNode)("~")]),(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(o(),{type:"number",modelValue:p.value,max:e.maxValue,min:e.minValue,onChange:A},null)])]:void 0]):void 0,null===(r=u.end)||void 0===r?void 0:r.call(u)])}}},render:function(){return this.renderDom()}}),f=(0,e.withInstall)(d)})(),l})()));
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../input"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../input","../popover"],t);else{var a="object"==typeof exports?t(require("../shared"),require("vue"),require("../input"),require("../popover")):t(e["../shared"],e.vue,e["../input"],e["../popover"]);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(self,((e,t,a,r)=>(()=>{var n={8133:e=>{"use strict";e.exports=a},5537:e=>{"use strict";e.exports=r},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,a)=>{var r=a(7425).default;function n(){"use strict";e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},a=Object.prototype,o=a.hasOwnProperty,u=Object.defineProperty||function(e,t,a){e[t]=a.value},l="function"==typeof Symbol?Symbol:{},i=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function v(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(e){v=function(e,t,a){return e[t]=a}}function m(e,t,a,r){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),l=new j(r||[]);return u(o,"_invoke",{value:N(e,a,l)}),o}function d(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var f={};function p(){}function h(){}function y(){}var V={};v(V,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(_([])));x&&x!==a&&o.call(x,i)&&(V=x);var g=y.prototype=p.prototype=Object.create(V);function w(e){["next","throw","return"].forEach((function(t){v(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(n,u,l,i){var c=d(e[n],e,u);if("throw"!==c.type){var s=c.arg,v=s.value;return v&&"object"==r(v)&&o.call(v,"__await")?t.resolve(v.__await).then((function(e){a("next",e,l,i)}),(function(e){a("throw",e,l,i)})):t.resolve(v).then((function(e){s.value=e,l(s)}),(function(e){return a("throw",e,l,i)}))}i(c.arg)}var n;u(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,n){a(e,r,t,n)}))}return n=n?n.then(o,o):o()}})}function N(e,t,a){var r="suspendedStart";return function(n,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw o;return{value:void 0,done:!0}}for(a.method=n,a.arg=o;;){var u=a.delegate;if(u){var l=E(u,a);if(l){if(l===f)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var i=d(e,t,a);if("normal"===i.type){if(r=a.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(r="completed",a.method="throw",a.arg=i.arg)}}}function E(e,t){var a=t.method,r=e.iterator[a];if(void 0===r)return t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function t(){for(;++a<e.length;)if(o.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=y,u(g,"constructor",{value:y,configurable:!0}),u(y,"constructor",{value:h,configurable:!0}),h.displayName=v(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,v(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},w(L.prototype),v(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,a,r,n,o){void 0===o&&(o=Promise);var u=new L(m(e,a,r,n),o);return t.isGeneratorFunction(a)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},w(g),v(g,s,"Generator"),v(g,i,(function(){return this})),v(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),a=[];for(var r in t)a.push(r);return a.reverse(),function e(){for(;a.length;){var r=a.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(a,r){return u.type="throw",u.arg=e,t.next=a,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],u=n.completion;if("root"===n.tryLoc)return a("end");if(n.tryLoc<=this.prev){var l=o.call(n,"catchLoc"),i=o.call(n,"finallyLoc");if(l&&i){if(this.prev<n.catchLoc)return a(n.catchLoc,!0);if(this.prev<n.finallyLoc)return a(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return a(n.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return a(n.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var u=n?n.completion:{};return u.type=e,u.arg=t,n?(this.method="next",this.next=n.finallyLoc,f):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),k(a),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var r=a.completion;if("throw"===r.type){var n=r.arg;k(a)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:_(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(a){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,a)=>{var r=a(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return n[e](a,a.exports,u),a.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var a in t)u.o(t,a)&&!u.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";u.r(l),u.d(l,{default:()=>f});var e=u(4212),t=u(748),a=u(2841),r=u.n(a);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var n=u(8133),o=u.n(n),i=u(5537),c=u.n(i);const s=(0,t.defineComponent)({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(a,r){var n=r.emit,o=(0,t.ref)(!1),u=(0,t.ref)(!1),l=(0,t.ref)(0),i=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(null),f=(0,t.ref)(a.modelValue),p=(0,t.ref)(0),h=(0,t.ref)(0),y=(0,t.ref)(!1),V=(0,t.ref)(null),b=(0,t.computed)((function(){var t,r,n="";if(null===(t=a.params.customContent)||void 0===t?void 0:t[a.modelValue]){var o=a.params.customContent[a.modelValue];n=o.tip||o.label||""}var u=a.params.vertical?e.PlacementEnum.RIGHT:e.PlacementEnum.TOP;return(null===(r=a.params)||void 0===r?void 0:r.showTip)?{content:a.params.formatterTipLabel("".concat(n||(null==a?void 0:a.modelValue)||"0")),placement:u}:{content:"",placement:u}})),x=(0,t.computed)((function(){return"".concat((a.modelValue-a.params.minValue)/(a.params.maxValue-a.params.minValue)*100,"%")})),g=(0,t.computed)((function(){return a.params.vertical?{bottom:x.value}:{left:x.value}})),w=(0,t.computed)((function(){return a.params.formatterButtonLabel(a.modelValue)})),L=function(e){a.params.disable||(e.preventDefault(),N(e),v(window,"mousemove",E),v(window,"touchmove",E),v(window,"mouseup",S),v(window,"touchend",S))},N=function(e){o.value=!0,u.value=!0,a.params.vertical?l.value=e.clientY:i.value=e.clientX,s.value=parseFloat(x.value),d.value=s.value},E=function(e){if(o.value){u.value=!1,n("resetSize");var t=0;a.params.vertical?(p.value=e.clientY,t=(l.value-p.value)/a.params.sliderSize*100):(h.value=e.clientX,t=(h.value-i.value)/a.params.sliderSize*100),d.value=s.value+t,k(d.value)}},S=function e(){y.value=!1,o.value&&(setTimeout((function(){o.value=!1,u.value||(k(d.value),n("emitChange"))}),0),m(window,"mousemove",E),m(window,"touchmove",E),m(window,"mouseup",e),m(window,"touchend",e))},k=function(e){if(null!==e&&!isNaN(e)){e<0?d.value=0:e>100&&(d.value=100);var t=100/((a.params.maxValue-a.params.minValue)/a.params.step),r=Math.round(e/t)*t*(a.params.maxValue-a.params.minValue)*.01+a.params.minValue;r=parseFloat(r.toFixed(a.params.precision)),n("update:modelValue",r),o.value||a.modelValue===f.value||(f.value=a.modelValue)}};return{renderDom:function(){return(0,t.createVNode)("div",{class:["bk-slider-button",a.params.vertical?"vertical":"horizontal",{grabbing:o.value}],ref:V,tabindex:"0",style:g.value,onClick:function(e){return e.stopPropagation()},onMousedown:L},[Boolean(b.value.content)?(0,t.createVNode)(c(),{content:b.value.content,theme:"dark",placement:b.value.placement,boundary:document.body},{default:function(){return[(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null)]}}):(0,t.createVNode)("div",{class:["slider-button",{"slider-button-disable":a.params.disable}]},null),a.params.showButtonLabel&&!a.params.showIntervalLabel?(0,t.createVNode)("div",{class:["slider-button-label",a.params.vertical?"vertical":"horizontal"]},[w.value]):void 0])},setPosition:k,tip:b}},render:function(){return this.renderDom()}});var v=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)};const d=(0,t.defineComponent)({name:"Slider",props:{modelValue:e.PropTypes.oneOfType([e.PropTypes.array,e.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object,default:null},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}},formatterTipLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,u=a.slots,l=a.emit,i=(0,t.ref)(1),c=(0,t.ref)(null),m=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(0),p=(0,t.ref)(0),h=(0,t.ref)(null),y=(0,t.ref)(null),V=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.computed)((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),g=(0,t.computed)((function(){return Math.min(c.value,m.value)})),w=(0,t.computed)((function(){return Math.max(c.value,m.value)})),L=(0,t.computed)((function(){return e.range?"".concat(100*(w.value-g.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(c.value-e.minValue)/(e.maxValue-e.minValue),"%")})),N=(0,t.computed)((function(){return e.range?"".concat(100*(g.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),E=(0,t.computed)((function(){return e.vertical?{height:L.value,bottom:N.value}:{width:L.value,left:N.value}})),S=(0,t.computed)((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),r=[],n=1;n<t;n++)r.push(n*a);return e.range?r.filter((function(t){return t<100*(g.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(w.value-e.minValue)/(e.maxValue-e.minValue)})):r.filter((function(t){return t>100*(c.value-e.minValue)/(e.maxValue-e.minValue)}))})),k=(0,t.computed)((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=(0,t.computed)((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=100*e.step/(e.maxValue-e.minValue),a=[],r=e.minValue,n=0;r<=e.maxValue;r+=e.step,n++){var o={stepWidth:n*t,stepLabel:e.formatterLabel(r)};a.push(o)}return a})),_=(0,t.computed)((function(){return Array.isArray(e.modelValue)})),C=(0,t.computed)((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,r=e.customContent[t].label;return{tip:a||r||"",label:r||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=(0,t.computed)((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:i.value,formatterTipLabel:e.formatterTipLabel}}));(0,t.watch)((function(){return e.modelValue}),(function(){I()})),(0,t.watch)((function(){return c.value}),(function(t){e.range?l("update:modelValue",[g.value,w.value]):l("update:modelValue",t),f.value=t})),(0,t.watch)((function(){return m.value}),(function(e){l("update:modelValue",[g.value,w.value]),p.value=e})),(0,t.onMounted)((function(){e.range?(Array.isArray(e.modelValue)?(c.value=Math.max(e.minValue,Number(e.modelValue[0])),m.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(c.value=e.minValue,m.value=e.maxValue),d.value=[c.value,m.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?c.value=e.minValue:c.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=c.value),T(),v(window,"resize",T())}));var T=function(){h.value&&(i.value=h.value["client".concat(e.vertical?"Height":"Width")])},B=function(t){var a,r;if(t.stopPropagation(),!e.disable){if(T(),e.vertical){var n=null===(a=h.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;F((n-t.clientY)/i.value*100)}else{var o=null===(r=h.value)||void 0===r?void 0:r.getBoundingClientRect().left;F((t.clientX-o)/i.value*100)}M()}},P=function(){return e.range?![g.value,w.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},I=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(c.value=Number(t[0]),m.value=Number(t[1]),P()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(c.value=t,P()&&(d.value=t)))}},M=function(){return a=n,o=void 0,u=void 0,i=r().mark((function a(){return r().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,t.nextTick)();case 2:l("change",e.range?[g.value,w.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})),new(u||(u=Promise))((function(e,t){function r(e){try{l(i.next(e))}catch(e){t(e)}}function n(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(r,n)}l((i=i.apply(a,o||[])).next())}));var a,o,u,i},z=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},F=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(g.value-a)<Math.abs(w.value-a)?b.value=c.value<m.value?y.value:V.value:b.value=c.value>m.value?y.value:V.value,b.value.setPosition(t)}else y.value.setPosition(t)},G=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(f.value=e.minValue,c.value=e.minValue):a>e.maxValue?(f.value=e.maxValue,c.value=e.maxValue):c.value=a}},A=function(t){if(""!==t&&"number"!=typeof t){var a=parseFloat(t);a<e.minValue?(p.value=e.minValue,m.value=e.minValue):a>e.maxValue?(p.value=e.maxValue,m.value=e.maxValue):m.value=a}},R=function(t){var a;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[c.value,m.value].includes(a)?"0":"1"};return{renderDom:function(){var a,r;return(0,t.createVNode)("div",{class:["bk-slider",e.extCls]},[null===(a=u.start)||void 0===a?void 0:a.call(u),(0,t.createVNode)("div",{class:"bk-slider-runway",ref:h,style:k.value,onClick:B},[(0,t.createVNode)("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:E.value},null),e.showInterval?S.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:e.vertical}],style:z(a)},null)})):void 0,e.customContent?C.value.map((function(a,r){return(0,t.createVNode)("div",{key:r,class:["bk-slider-interval",{vertical:e.vertical}],style:z(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?(0,t.createVNode)("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[(0,t.createVNode)("div",{class:"label-start",style:[{opacity:R("start")}]},[e.formatterLabel(e.minValue)]),(0,t.createVNode)("div",{class:"label-end",style:[{opacity:R("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,r){return(0,t.createVNode)("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:r,style:z(a.stepWidth)},[a.stepLabel])})):e.customContent?C.value.map((function(a,r){return(0,t.createVNode)("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:r,style:z(a.percent)},[a.label])})):void 0]):void 0,(0,t.createVNode)(s,{modelValue:c.value,"onUpdate:modelValue":function(e){return c.value=e},ref:y,params:O.value,onEmitChange:M,onResetSize:T},null),e.range?(0,t.createVNode)(s,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},ref:V,params:O.value,onEmitChange:M,onResetSize:T},null):void 0]),e.showInput&&!e.vertical?(0,t.createVNode)("div",{class:"bk-slider-input"},[(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(o(),{type:"number",modelValue:f.value,max:e.maxValue,min:e.minValue,onChange:G},null)]),_.value&&m.value?[(0,t.createVNode)("div",{class:"input-center"},[(0,t.createTextVNode)("~")]),(0,t.createVNode)("div",{class:"input-item"},[(0,t.createVNode)(o(),{type:"number",modelValue:p.value,max:e.maxValue,min:e.minValue,onChange:A},null)])]:void 0]):void 0,null===(r=u.end)||void 0===r?void 0:r.call(u)])}}},render:function(){return this.renderDom()}}),f=(0,e.withInstall)(d)})(),l})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/lib/slider/slider.d.ts
CHANGED
package/lib/steps/index.d.ts
CHANGED
@@ -2,59 +2,65 @@ declare const BkSteps: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
steps
|
7
|
-
text
|
8
|
-
extCls
|
9
|
-
direction
|
10
|
-
lineType
|
11
|
-
theme
|
12
|
-
beforeChange
|
13
|
-
status
|
14
|
-
curStep
|
15
|
-
controllable
|
16
|
-
|
17
|
-
|
18
|
-
default: "success" | "warning" | "danger" | "primary";
|
19
|
-
};
|
20
|
-
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
21
|
-
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
22
|
-
default: number;
|
23
|
-
} & {
|
24
|
-
default: number;
|
25
|
-
};
|
26
|
-
controllable: import("vue-types").VueTypeValidableDef<boolean> & {
|
27
|
-
default: boolean;
|
28
|
-
} & {
|
29
|
-
default: boolean;
|
30
|
-
};
|
31
|
-
direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
|
32
|
-
default: "horizontal" | "vertical";
|
33
|
-
};
|
34
|
-
status: import("vue-types").VueTypeDef<"" | "error" | "loading"> & {
|
35
|
-
default: "" | "error" | "loading";
|
36
|
-
};
|
37
|
-
lineType: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
|
38
|
-
default: "dashed" | "solid";
|
39
|
-
};
|
40
|
-
text: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
|
-
default: boolean;
|
42
|
-
};
|
43
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
44
|
-
default: string;
|
45
|
-
};
|
46
|
-
steps: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
47
|
-
default: () => unknown[];
|
48
|
-
} & {
|
49
|
-
default: () => unknown[];
|
50
|
-
};
|
51
|
-
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
52
|
-
default: (...args: any[]) => any;
|
53
|
-
};
|
54
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
steps?: unknown[];
|
7
|
+
text?: boolean;
|
8
|
+
extCls?: string;
|
9
|
+
direction?: "horizontal" | "vertical";
|
10
|
+
lineType?: "dashed" | "solid";
|
11
|
+
theme?: "success" | "warning" | "danger" | "primary";
|
12
|
+
beforeChange?: (...args: any[]) => any;
|
13
|
+
status?: "" | "error" | "loading";
|
14
|
+
curStep?: number;
|
15
|
+
controllable?: boolean;
|
16
|
+
class?: unknown;
|
17
|
+
style?: unknown;
|
55
18
|
onClick?: (...args: any[]) => any;
|
19
|
+
key?: string | number | symbol;
|
20
|
+
ref?: import("vue").VNodeRef;
|
21
|
+
ref_for?: boolean;
|
22
|
+
ref_key?: string;
|
23
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
24
|
+
[key: string]: any;
|
25
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
26
|
+
[key: string]: any;
|
27
|
+
}>) => void)[];
|
28
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
+
[key: string]: any;
|
30
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
+
[key: string]: any;
|
32
|
+
}>) => void)[];
|
33
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
34
|
+
[key: string]: any;
|
35
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
36
|
+
[key: string]: any;
|
37
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
38
|
+
[key: string]: any;
|
39
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
40
|
+
[key: string]: any;
|
41
|
+
}>) => void)[];
|
42
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
+
[key: string]: any;
|
46
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
47
|
+
[key: string]: any;
|
48
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>) => void)[];
|
51
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
+
[key: string]: any;
|
53
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}>) => void)[];
|
56
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
+
[key: string]: any;
|
58
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
+
[key: string]: any;
|
60
|
+
}>) => void)[];
|
61
|
+
readonly size?: "default" | "small" | "large";
|
56
62
|
"onUpdate:curStep"?: (...args: any[]) => any;
|
57
|
-
}
|
63
|
+
};
|
58
64
|
$attrs: {
|
59
65
|
[x: string]: unknown;
|
60
66
|
};
|
@@ -62,17 +68,17 @@ declare const BkSteps: {
|
|
62
68
|
[x: string]: unknown;
|
63
69
|
};
|
64
70
|
$slots: Readonly<{
|
65
|
-
[name: string]: import("vue").Slot
|
71
|
+
[name: string]: import("vue").Slot<any>;
|
66
72
|
}>;
|
67
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
68
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
73
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
74
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
69
75
|
$emit: (event: "click" | "update:curStep", ...args: any[]) => void;
|
70
76
|
$el: any;
|
71
77
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
72
78
|
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
73
79
|
default: "success" | "warning" | "danger" | "primary";
|
74
80
|
};
|
75
|
-
size: import("vue-types").VueTypeDef<"
|
81
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
76
82
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
77
83
|
default: number;
|
78
84
|
} & {
|
@@ -123,7 +129,7 @@ declare const BkSteps: {
|
|
123
129
|
status: "" | "error" | "loading";
|
124
130
|
curStep: number;
|
125
131
|
controllable: boolean;
|
126
|
-
}> & {
|
132
|
+
}, {}, string, {}> & {
|
127
133
|
beforeCreate?: (() => void) | (() => void)[];
|
128
134
|
created?: (() => void) | (() => void)[];
|
129
135
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -138,16 +144,16 @@ declare const BkSteps: {
|
|
138
144
|
unmounted?: (() => void) | (() => void)[];
|
139
145
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
140
146
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
141
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
147
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
142
148
|
};
|
143
149
|
$forceUpdate: () => void;
|
144
150
|
$nextTick: typeof import("vue").nextTick;
|
145
|
-
$watch
|
151
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
146
152
|
} & Readonly<import("vue").ExtractPropTypes<{
|
147
153
|
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
148
154
|
default: "success" | "warning" | "danger" | "primary";
|
149
155
|
};
|
150
|
-
size: import("vue-types").VueTypeDef<"
|
156
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
151
157
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
152
158
|
default: number;
|
153
159
|
} & {
|
@@ -187,7 +193,7 @@ declare const BkSteps: {
|
|
187
193
|
} & import("vue").ShallowUnwrapRef<{
|
188
194
|
defaultSteps: import("vue").Ref<any[]>;
|
189
195
|
jumpTo: (index: any) => Promise<void>;
|
190
|
-
}> & {} &
|
196
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
191
197
|
__isFragment?: never;
|
192
198
|
__isTeleport?: never;
|
193
199
|
__isSuspense?: never;
|
@@ -195,7 +201,7 @@ declare const BkSteps: {
|
|
195
201
|
theme: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary"> & {
|
196
202
|
default: "success" | "warning" | "danger" | "primary";
|
197
203
|
};
|
198
|
-
size: import("vue-types").VueTypeDef<"
|
204
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
199
205
|
curStep: import("vue-types").VueTypeValidableDef<number> & {
|
200
206
|
default: number;
|
201
207
|
} & {
|
@@ -246,5 +252,5 @@ declare const BkSteps: {
|
|
246
252
|
status: "" | "error" | "loading";
|
247
253
|
curStep: number;
|
248
254
|
controllable: boolean;
|
249
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
255
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
250
256
|
export default BkSteps;
|