bkui-vue 0.0.1-beta.464 → 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 +15197 -14527
- 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 +76 -106
- 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 +3 -3
- 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
package/lib/input/index.d.ts
CHANGED
@@ -2,111 +2,30 @@ declare const BkInput: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
type
|
7
|
-
prefix
|
8
|
-
behavior
|
9
|
-
disabled
|
10
|
-
|
11
|
-
|
12
|
-
max
|
13
|
-
min
|
14
|
-
maxlength
|
15
|
-
clearable
|
16
|
-
readonly
|
17
|
-
prefixIcon
|
18
|
-
suffixIcon
|
19
|
-
suffix
|
20
|
-
showWordLimit
|
21
|
-
showControl
|
22
|
-
showClearOnlyHover
|
23
|
-
precision
|
24
|
-
rows
|
25
|
-
selectReadonly
|
26
|
-
withValidate
|
27
|
-
|
28
|
-
|
29
|
-
default: string;
|
30
|
-
} & {
|
31
|
-
default: string;
|
32
|
-
};
|
33
|
-
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
|
-
default: boolean;
|
35
|
-
};
|
36
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
37
|
-
default: boolean;
|
38
|
-
};
|
39
|
-
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
40
|
-
default: boolean;
|
41
|
-
};
|
42
|
-
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
43
|
-
default: string;
|
44
|
-
} & {
|
45
|
-
default: string;
|
46
|
-
};
|
47
|
-
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
48
|
-
default: string;
|
49
|
-
};
|
50
|
-
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
51
|
-
default: string;
|
52
|
-
};
|
53
|
-
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
54
|
-
default: string;
|
55
|
-
};
|
56
|
-
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
57
|
-
default: string;
|
58
|
-
};
|
59
|
-
step: import("vue-types").VueTypeDef<number> & {
|
60
|
-
default: number;
|
61
|
-
};
|
62
|
-
max: import("vue-types").VueTypeDef<number> & {
|
63
|
-
default: number;
|
64
|
-
};
|
65
|
-
min: import("vue-types").VueTypeDef<number> & {
|
66
|
-
default: number;
|
67
|
-
};
|
68
|
-
maxlength: import("vue-types").VueTypeDef<number> & {
|
69
|
-
default: number;
|
70
|
-
};
|
71
|
-
behavior: import("vue-types").VueTypeDef<"simplicity" | "normal"> & {
|
72
|
-
default: "simplicity" | "normal";
|
73
|
-
};
|
74
|
-
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
75
|
-
default: boolean;
|
76
|
-
};
|
77
|
-
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
-
default: boolean;
|
79
|
-
} & {
|
80
|
-
default: boolean;
|
81
|
-
};
|
82
|
-
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
-
default: boolean;
|
84
|
-
} & {
|
85
|
-
default: boolean;
|
86
|
-
};
|
87
|
-
precision: import("vue-types").VueTypeValidableDef<number> & {
|
88
|
-
default: number;
|
89
|
-
} & {
|
90
|
-
default: number;
|
91
|
-
} & {
|
92
|
-
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
93
|
-
};
|
94
|
-
modelValue: import("vue-types").VueTypeDef<string | number>;
|
95
|
-
size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
|
96
|
-
rows: import("vue-types").VueTypeValidableDef<number> & {
|
97
|
-
default: number;
|
98
|
-
};
|
99
|
-
selectReadonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
-
default: boolean;
|
101
|
-
} & {
|
102
|
-
default: boolean;
|
103
|
-
};
|
104
|
-
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
105
|
-
default: boolean;
|
106
|
-
} & {
|
107
|
-
default: boolean;
|
108
|
-
};
|
109
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
type?: string;
|
7
|
+
prefix?: string;
|
8
|
+
behavior?: "simplicity" | "normal";
|
9
|
+
disabled?: boolean;
|
10
|
+
placeholder?: string;
|
11
|
+
step?: number;
|
12
|
+
max?: number;
|
13
|
+
min?: number;
|
14
|
+
maxlength?: number;
|
15
|
+
clearable?: boolean;
|
16
|
+
readonly?: boolean;
|
17
|
+
prefixIcon?: string;
|
18
|
+
suffixIcon?: string;
|
19
|
+
suffix?: string;
|
20
|
+
showWordLimit?: boolean;
|
21
|
+
showControl?: boolean;
|
22
|
+
showClearOnlyHover?: boolean;
|
23
|
+
precision?: number;
|
24
|
+
rows?: number;
|
25
|
+
selectReadonly?: boolean;
|
26
|
+
withValidate?: boolean;
|
27
|
+
class?: unknown;
|
28
|
+
style?: unknown;
|
110
29
|
onPaste?: (_value: any, _evt?: KeyboardEvent) => any;
|
111
30
|
onCompositionend?: (evt: CompositionEvent) => any;
|
112
31
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
@@ -118,10 +37,54 @@ declare const BkInput: {
|
|
118
37
|
onKeydown?: (_value: any, _evt?: KeyboardEvent) => any;
|
119
38
|
onKeypress?: (_value: any, _evt?: KeyboardEvent) => any;
|
120
39
|
onKeyup?: (_value: any, _evt?: KeyboardEvent) => any;
|
40
|
+
key?: string | number | symbol;
|
41
|
+
ref?: import("vue").VNodeRef;
|
42
|
+
ref_for?: boolean;
|
43
|
+
ref_key?: string;
|
44
|
+
onVnodeBeforeMount?: ((vnode: 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
|
+
}>) => void)[];
|
49
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
+
[key: string]: any;
|
51
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
52
|
+
[key: string]: any;
|
53
|
+
}>) => void)[];
|
54
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
55
|
+
[key: string]: any;
|
56
|
+
}>, oldVNode: 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
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
61
|
+
[key: string]: any;
|
62
|
+
}>) => void)[];
|
63
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
64
|
+
[key: string]: any;
|
65
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
66
|
+
[key: string]: any;
|
67
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
68
|
+
[key: string]: any;
|
69
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
70
|
+
[key: string]: any;
|
71
|
+
}>) => void)[];
|
72
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
73
|
+
[key: string]: any;
|
74
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
75
|
+
[key: string]: any;
|
76
|
+
}>) => void)[];
|
77
|
+
onVnodeUnmounted?: ((vnode: 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
|
+
}>) => void)[];
|
82
|
+
readonly size?: "default" | "small" | "large";
|
83
|
+
readonly modelValue?: string | number;
|
121
84
|
onClear?: () => any;
|
122
85
|
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
123
86
|
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
124
|
-
}
|
87
|
+
};
|
125
88
|
$attrs: {
|
126
89
|
[x: string]: unknown;
|
127
90
|
};
|
@@ -129,10 +92,10 @@ declare const BkInput: {
|
|
129
92
|
[x: string]: unknown;
|
130
93
|
};
|
131
94
|
$slots: Readonly<{
|
132
|
-
[name: string]: import("vue").Slot
|
95
|
+
[name: string]: import("vue").Slot<any>;
|
133
96
|
}>;
|
134
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
135
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
97
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
98
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
136
99
|
$emit: ((event: import("./input").EVENTS.UPDATE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.FOCUS, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.BLUR, evt: FocusEvent) => void) & ((event: import("./input").EVENTS.CHANGE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.CLEAR) => void) & ((event: import("./input").EVENTS.INPUT, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYPRESS, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYDOWN, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.KEYUP, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.ENTER, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.PASTE, _value: any, _evt?: KeyboardEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONSTART, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONUPDATE, evt: CompositionEvent) => void) & ((event: import("./input").EVENTS.COMPOSITIONEND, evt: CompositionEvent) => void);
|
137
100
|
$el: any;
|
138
101
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -203,7 +166,7 @@ declare const BkInput: {
|
|
203
166
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
204
167
|
};
|
205
168
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
206
|
-
size: import("vue-types").VueTypeDef<"
|
169
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
207
170
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
208
171
|
default: number;
|
209
172
|
};
|
@@ -252,8 +215,8 @@ declare const BkInput: {
|
|
252
215
|
prefix: string;
|
253
216
|
behavior: "simplicity" | "normal";
|
254
217
|
disabled: boolean;
|
255
|
-
step: number;
|
256
218
|
placeholder: string;
|
219
|
+
step: number;
|
257
220
|
max: number;
|
258
221
|
min: number;
|
259
222
|
maxlength: number;
|
@@ -269,7 +232,7 @@ declare const BkInput: {
|
|
269
232
|
rows: number;
|
270
233
|
selectReadonly: boolean;
|
271
234
|
withValidate: boolean;
|
272
|
-
}> & {
|
235
|
+
}, {}, string, {}> & {
|
273
236
|
beforeCreate?: (() => void) | (() => void)[];
|
274
237
|
created?: (() => void) | (() => void)[];
|
275
238
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -284,11 +247,11 @@ declare const BkInput: {
|
|
284
247
|
unmounted?: (() => void) | (() => void)[];
|
285
248
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
286
249
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
287
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
250
|
+
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)[];
|
288
251
|
};
|
289
252
|
$forceUpdate: () => void;
|
290
253
|
$nextTick: typeof import("vue").nextTick;
|
291
|
-
$watch
|
254
|
+
$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;
|
292
255
|
} & Readonly<import("vue").ExtractPropTypes<{
|
293
256
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
294
257
|
default: string;
|
@@ -357,7 +320,7 @@ declare const BkInput: {
|
|
357
320
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
358
321
|
};
|
359
322
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
360
|
-
size: import("vue-types").VueTypeDef<"
|
323
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
361
324
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
362
325
|
default: number;
|
363
326
|
};
|
@@ -386,7 +349,7 @@ declare const BkInput: {
|
|
386
349
|
onClear?: () => any;
|
387
350
|
"onUpdate:modelValue"?: (_value: any, _evt?: KeyboardEvent) => any;
|
388
351
|
onEnter?: (_value: any, _evt?: KeyboardEvent) => any;
|
389
|
-
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} &
|
352
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
390
353
|
__isFragment?: never;
|
391
354
|
__isTeleport?: never;
|
392
355
|
__isSuspense?: never;
|
@@ -458,7 +421,7 @@ declare const BkInput: {
|
|
458
421
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
459
422
|
};
|
460
423
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
461
|
-
size: import("vue-types").VueTypeDef<"
|
424
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
462
425
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
463
426
|
default: number;
|
464
427
|
};
|
@@ -507,8 +470,8 @@ declare const BkInput: {
|
|
507
470
|
prefix: string;
|
508
471
|
behavior: "simplicity" | "normal";
|
509
472
|
disabled: boolean;
|
510
|
-
step: number;
|
511
473
|
placeholder: string;
|
474
|
+
step: number;
|
512
475
|
max: number;
|
513
476
|
min: number;
|
514
477
|
maxlength: number;
|
@@ -524,5 +487,5 @@ declare const BkInput: {
|
|
524
487
|
rows: number;
|
525
488
|
selectReadonly: boolean;
|
526
489
|
withValidate: boolean;
|
527
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
490
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
528
491
|
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):r(e["../shared"],e.vue,e["../config-provider"],e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={2717:e=>{e.exports=t},6870:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},l={};function a(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.r(i),a.d(i,{default:()=>
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../config-provider"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon"],r);else{var t="object"==typeof exports?r(require("../shared"),require("vue"),require("../config-provider"),require("../icon")):r(e["../shared"],e.vue,e["../config-provider"],e["../icon"]);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(self,((e,r,t,o)=>(()=>{"use strict";var n={2717:e=>{e.exports=t},6870:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},l={};function a(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return n[e](t,t.exports,a),t.exports}a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{a.r(i),a.d(i,{default:()=>y});var e=a(4212);function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}function t(e){return 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},t(e)}function o(e,r,o){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}var n=a(748);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var l,u,s=a(2717),c=a(6870),p={type:e.PropTypes.string.def("text"),clearable:e.PropTypes.bool,disabled:e.PropTypes.bool,readonly:e.PropTypes.bool,placeholder:e.PropTypes.string.def(""),prefixIcon:e.PropTypes.string,suffixIcon:e.PropTypes.string,suffix:e.PropTypes.string,prefix:e.PropTypes.string,step:e.PropTypes.integer,max:e.PropTypes.integer,min:e.PropTypes.integer,maxlength:e.PropTypes.integer,behavior:(0,e.InputBehaviorType)(),showWordLimit:e.PropTypes.bool,showControl:e.PropTypes.bool.def(!0),showClearOnlyHover:e.PropTypes.bool.def(!0),precision:e.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]),size:e.PropTypes.size(),rows:e.PropTypes.number,selectReadonly:e.PropTypes.bool.def(!1),withValidate:e.PropTypes.bool.def(!0)};function d(e,r){return!0}function f(e){return e}!function(e){e.UPDATE="update:modelValue",e.FOCUS="focus",e.BLUR="blur",e.CHANGE="change",e.CLEAR="clear",e.INPUT="input",e.KEYPRESS="keypress",e.KEYDOWN="keydown",e.KEYUP="keyup",e.ENTER="enter",e.PASTE="paste",e.COMPOSITIONSTART="compositionstart",e.COMPOSITIONUPDATE="compositionupdate",e.COMPOSITIONEND="compositionend"}(u||(u={}));var v=(o(l={},u.UPDATE,d),o(l,u.FOCUS,(function(e){return e})),o(l,u.BLUR,(function(e){return e})),o(l,u.CHANGE,d),o(l,u.CLEAR,(function(){return!0})),o(l,u.INPUT,d),o(l,u.KEYPRESS,d),o(l,u.KEYDOWN,d),o(l,u.KEYUP,d),o(l,u.ENTER,d),o(l,u.PASTE,d),o(l,u.COMPOSITIONSTART,f),o(l,u.COMPOSITIONUPDATE,f),o(l,u.COMPOSITIONEND,f),l);const m=(0,n.defineComponent)({name:"Input",inheritAttrs:!1,props:p,emits:v,setup:function(t,l){var a=(0,e.useFormItem)(),i=(0,s.useLocale)("input"),p=(0,n.ref)(!1),d=(0,n.ref)(!1),f=(0,n.computed)((function(){return"textarea"===t.type})),v=(0,n.computed)((function(){return f.value?(0,e.resolveClassName)("textarea"):(0,e.resolveClassName)("input")})),m=l.attrs,y=m.class,b=m.style,P=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(m,["class","style"]),T=(0,n.ref)(),g=(0,n.computed)((function(){var r;return(0,e.classes)((o(r={},"".concat(v.value,"--").concat(t.size),!!t.size),o(r,"is-focused",p.value),o(r,"is-readonly",t.readonly&&!t.selectReadonly),o(r,"is-disabled",t.disabled),o(r,"is-simplicity","simplicity"===t.behavior),o(r,"".concat(y),!!y),r),v.value)})),h={search:function(){return(0,n.createVNode)(c.Search,null,null)},password:function(){return(0,n.createVNode)(c.Eye,{onClick:F},null)}},x=G("suffix-icon"),N=(0,n.computed)((function(){var e=h[t.type];return S.value?(0,n.createVNode)(c.Unvisible,{onClick:F,class:x},null):e?(0,n.createVNode)(e,{class:x},null):null})),E=(0,n.computed)((function(){return"number"===t.type})),O=(0,n.computed)((function(){return Math.floor(t.maxlength)})),S=(0,n.ref)(!1),C=(0,n.computed)((function(){return(0,e.classes)(o({"show-clear-only-hover":t.showClearOnlyHover},"".concat(v.value,"--clear-icon"),!0),x)})),V=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue>=t.max})})),w=(0,n.computed)((function(){return(0,e.classes)({"is-disabled":t.disabled||t.modelValue<=t.min})}));function A(){if(!t.disabled){var e=E.value?t.min:"";l.emit(u.UPDATE,e),l.emit(u.CHANGE,e),l.emit(u.CLEAR)}}(0,n.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==a?void 0:a.validate)||void 0===e||e.call(a,"change"))})),l.expose({focus:function(){T.value.focus()},clear:A});var I,U,j=(I=[u.KEYUP,u.KEYDOWN,u.KEYPRESS,u.PASTE,u.CHANGE,u.INPUT].map((function(e){return function(r){if(r.stopPropagation(),e!==u.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(u.ENTER,r.target.value,r),!d.value||![u.INPUT,u.CHANGE].some((function(r){return e===r}))){if(e===u.INPUT)l.emit(u.UPDATE,r.target.value);else if(e===u.CHANGE&&E.value&&""!==r.target.value){var t=Y(r.target.value,0);return l.emit(u.UPDATE,t,r),void l.emit(e,t,r)}l.emit(e,r.target.value,r)}}})),U=6,function(e){if(Array.isArray(e))return e}(I)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,l,a,i=[],u=!0,s=!1;try{if(l=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=l.call(t)).done)&&(i.push(o.value),i.length!==r);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(I,U)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(I,U)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),D=j[0],R=j[1],K=j[2],k=j[3],M=j[4],H=j[5];function Y(e,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(r),l=Number.isInteger(t.precision)?t.precision:0,a=Number(e),i=Number.isInteger(n)?n:1,u=a+(o?i:-1*i);return Number.isInteger(t.max)&&(u=Math.min(u,t.max)),Number.isInteger(t.min)&&(u=Math.max(u,t.min)),+u.toFixed(l)}function L(){if(!t.disabled){var e=Y(t.modelValue,t.step);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function q(){if(!t.disabled){var e=Y(t.modelValue,t.step,!1);l.emit(u.UPDATE,e),l.emit(u.CHANGE,e)}}function G(e){return"".concat(v.value,"--").concat(e)}function F(){S.value=!S.value}var W=(0,n.computed)((function(){var e=void 0===t.modelValue||null===t.modelValue?{}:{value:t.modelValue};return Object.assign(Object.assign({},e),{maxlength:t.maxlength,placeholder:t.placeholder||i.value.placeholder,readonly:t.readonly,disabled:t.disabled})})),B={onInput:H,onFocus:function(e){p.value=!0,l.emit(u.FOCUS,e)},onBlur:function(e){var r;p.value=!1,l.emit(u.BLUR,e),t.withValidate&&(null===(r=null==a?void 0:a.validate)||void 0===r||r.call(a,"blur"))},onPaste:k,onChange:M,onKeypress:K,onKeydown:R,onKeyup:D,onCompositionstart:function(){d.value=!0},onCompositionend:function(e){d.value=!1,H(e)}};return function(){var e,r,o,a,i,u,s;return(0,n.createVNode)("div",{class:g.value,style:b},[null!==(o=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==o?o:t.prefix&&(0,n.createVNode)("div",{class:G("prefix-area")},[(0,n.createVNode)("span",{class:G("prefix-area--text")},[t.prefix])]),f.value?(0,n.createVNode)("textarea",(0,n.mergeProps)({ref:T,spellcheck:!1},P,B,W.value,{rows:t.rows}),null):(0,n.createVNode)("input",(0,n.mergeProps)({spellcheck:!1},P,{ref:T,class:"".concat(v.value,"--text"),type:S.value&&"password"===t.type?"text":t.type,step:t.step,max:t.max,min:t.min},B,W.value),null),!f.value&&t.clearable&&!!t.modelValue&&(0,n.createVNode)("span",{class:C.value,onClick:A},[(0,n.createVNode)(c.Close,null,null)]),N.value,"number"==typeof t.maxlength&&(t.showWordLimit||f.value)&&(0,n.createVNode)("p",{class:G("max-length")},[(null!==(a=t.modelValue)&&void 0!==a?a:"").toString().length,(0,n.createTextVNode)("/"),(0,n.createVNode)("span",null,[O.value])]),E.value&&t.showControl&&(0,n.createVNode)("div",{class:G("number-control")},[(0,n.createVNode)(c.DownSmall,{class:V.value,onClick:L},null),(0,n.createVNode)(c.DownSmall,{class:w.value,onClick:q},null)]),null!==(s=null===(u=null===(i=l.slots)||void 0===i?void 0:i.suffix)||void 0===u?void 0:u.call(i))&&void 0!==s?s:t.suffix&&(0,n.createVNode)("div",{class:G("suffix-area")},[(0,n.createVNode)("span",{class:G("suffix-area--text")},[t.suffix])])])}}}),y=(0,e.withInstall)(m)})(),i})()));
|
package/lib/input/input.d.ts
CHANGED
@@ -67,7 +67,7 @@ export declare const inputType: {
|
|
67
67
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
68
68
|
};
|
69
69
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
70
|
-
size: import("vue-types").VueTypeDef<"
|
70
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
71
71
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
72
72
|
default: number;
|
73
73
|
};
|
@@ -116,7 +116,7 @@ export declare const inputEmitEventsType: {
|
|
116
116
|
compositionupdate: typeof CompositionEventFunction;
|
117
117
|
compositionend: typeof CompositionEventFunction;
|
118
118
|
};
|
119
|
-
export
|
119
|
+
export type InputType = ExtractPropTypes<typeof inputType>;
|
120
120
|
declare const _default: import("vue").DefineComponent<{
|
121
121
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
122
122
|
default: string;
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
185
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
186
186
|
};
|
187
187
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
188
|
-
size: import("vue-types").VueTypeDef<"
|
188
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
189
189
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
190
190
|
default: number;
|
191
191
|
};
|
@@ -282,7 +282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
282
282
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
283
283
|
};
|
284
284
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
285
|
-
size: import("vue-types").VueTypeDef<"
|
285
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
286
286
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
287
287
|
default: number;
|
288
288
|
};
|
@@ -316,8 +316,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
316
316
|
prefix: string;
|
317
317
|
behavior: "simplicity" | "normal";
|
318
318
|
disabled: boolean;
|
319
|
-
step: number;
|
320
319
|
placeholder: string;
|
320
|
+
step: number;
|
321
321
|
max: number;
|
322
322
|
min: number;
|
323
323
|
maxlength: number;
|
@@ -333,5 +333,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
333
333
|
rows: number;
|
334
334
|
selectReadonly: boolean;
|
335
335
|
withValidate: boolean;
|
336
|
-
}>;
|
336
|
+
}, {}>;
|
337
337
|
export default _default;
|
package/lib/link/index.d.ts
CHANGED
@@ -2,39 +2,58 @@ declare const BkLink: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
disabled
|
7
|
-
theme
|
8
|
-
target
|
9
|
-
underline
|
10
|
-
href
|
11
|
-
|
12
|
-
|
13
|
-
default: "default" | "success" | "warning" | "danger" | "primary";
|
14
|
-
};
|
15
|
-
href: import("vue-types").VueTypeValidableDef<string> & {
|
16
|
-
default: string;
|
17
|
-
} & {
|
18
|
-
default: string;
|
19
|
-
};
|
20
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
21
|
-
default: boolean;
|
22
|
-
} & {
|
23
|
-
default: boolean;
|
24
|
-
};
|
25
|
-
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
-
default: boolean;
|
27
|
-
} & {
|
28
|
-
default: boolean;
|
29
|
-
};
|
30
|
-
target: import("vue-types").VueTypeValidableDef<string> & {
|
31
|
-
default: string;
|
32
|
-
} & {
|
33
|
-
default: string;
|
34
|
-
};
|
35
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
disabled?: boolean;
|
7
|
+
theme?: "default" | "success" | "warning" | "danger" | "primary";
|
8
|
+
target?: string;
|
9
|
+
underline?: boolean;
|
10
|
+
href?: string;
|
11
|
+
class?: unknown;
|
12
|
+
style?: unknown;
|
36
13
|
onClick?: (...args: any[]) => any;
|
37
|
-
|
14
|
+
key?: string | number | symbol;
|
15
|
+
ref?: import("vue").VNodeRef;
|
16
|
+
ref_for?: boolean;
|
17
|
+
ref_key?: string;
|
18
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
19
|
+
[key: string]: any;
|
20
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
21
|
+
[key: string]: any;
|
22
|
+
}>) => void)[];
|
23
|
+
onVnodeMounted?: ((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
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
29
|
+
[key: string]: any;
|
30
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
+
[key: string]: any;
|
32
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
33
|
+
[key: string]: any;
|
34
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
35
|
+
[key: string]: any;
|
36
|
+
}>) => void)[];
|
37
|
+
onVnodeUpdated?: ((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) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
42
|
+
[key: string]: any;
|
43
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
44
|
+
[key: string]: any;
|
45
|
+
}>) => void)[];
|
46
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
47
|
+
[key: string]: any;
|
48
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>) => void)[];
|
51
|
+
onVnodeUnmounted?: ((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
|
+
};
|
38
57
|
$attrs: {
|
39
58
|
[x: string]: unknown;
|
40
59
|
};
|
@@ -42,10 +61,10 @@ declare const BkLink: {
|
|
42
61
|
[x: string]: unknown;
|
43
62
|
};
|
44
63
|
$slots: Readonly<{
|
45
|
-
[name: string]: import("vue").Slot
|
64
|
+
[name: string]: import("vue").Slot<any>;
|
46
65
|
}>;
|
47
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
48
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
66
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
67
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
49
68
|
$emit: (event: "click", ...args: any[]) => void;
|
50
69
|
$el: any;
|
51
70
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
@@ -82,7 +101,7 @@ declare const BkLink: {
|
|
82
101
|
target: string;
|
83
102
|
underline: boolean;
|
84
103
|
href: string;
|
85
|
-
}> & {
|
104
|
+
}, {}, string, {}> & {
|
86
105
|
beforeCreate?: (() => void) | (() => void)[];
|
87
106
|
created?: (() => void) | (() => void)[];
|
88
107
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -97,11 +116,11 @@ declare const BkLink: {
|
|
97
116
|
unmounted?: (() => void) | (() => void)[];
|
98
117
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
99
118
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
100
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
119
|
+
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)[];
|
101
120
|
};
|
102
121
|
$forceUpdate: () => void;
|
103
122
|
$nextTick: typeof import("vue").nextTick;
|
104
|
-
$watch
|
123
|
+
$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;
|
105
124
|
} & Readonly<import("vue").ExtractPropTypes<{
|
106
125
|
theme: import("vue-types").VueTypeDef<"default" | "success" | "warning" | "danger" | "primary"> & {
|
107
126
|
default: "default" | "success" | "warning" | "danger" | "primary";
|
@@ -130,7 +149,7 @@ declare const BkLink: {
|
|
130
149
|
onClick?: (...args: any[]) => any;
|
131
150
|
} & import("vue").ShallowUnwrapRef<{
|
132
151
|
handleClick: (event: Event) => boolean;
|
133
|
-
}> & {} &
|
152
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
134
153
|
__isFragment?: never;
|
135
154
|
__isTeleport?: never;
|
136
155
|
__isSuspense?: never;
|
@@ -168,5 +187,5 @@ declare const BkLink: {
|
|
168
187
|
target: string;
|
169
188
|
underline: boolean;
|
170
189
|
href: string;
|
171
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
190
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
172
191
|
export default BkLink;
|
package/lib/link/link.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { App, ComponentPublicInstance, Directive, UnwrapRef } from 'vue';
|
2
2
|
import type { LoadingTypes } from './loading';
|
3
3
|
declare const INSTANCE_KEY: unique symbol;
|
4
|
-
export
|
4
|
+
export type LoadingBinding = UnwrapRef<LoadingTypes>;
|
5
5
|
export interface BkLoading extends HTMLElement {
|
6
6
|
[INSTANCE_KEY]?: {
|
7
7
|
instance: App<Element>;
|
@@ -9,6 +9,6 @@ export interface BkLoading extends HTMLElement {
|
|
9
9
|
vm: ComponentPublicInstance;
|
10
10
|
};
|
11
11
|
}
|
12
|
-
export
|
12
|
+
export type LoadingDirective = Directive<BkLoading, LoadingBinding>;
|
13
13
|
export declare const vBkloading: LoadingDirective;
|
14
14
|
export {};
|