bkui-vue 0.0.1-beta.420 → 0.0.1-beta.421
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 +29 -29
- package/dist/index.esm.js +3145 -3066
- package/dist/index.umd.js +28 -28
- 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 +4 -4
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/index.d.ts +7 -7
- package/lib/button/button.d.ts +1 -1
- package/lib/button/index.d.ts +7 -7
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +7 -7
- package/lib/collapse/collapse-panel.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/container/col.d.ts +1 -1
- package/lib/container/index.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -7
- package/lib/date-picker/index.d.ts +20 -20
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +6 -6
- package/lib/date-picker/panel/time.d.ts +7 -7
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +7 -7
- package/lib/dialog/dialog.d.ts +19 -19
- package/lib/dialog/index.d.ts +44 -44
- package/lib/dialog/props.d.ts +6 -6
- package/lib/divider/divider.d.ts +6 -6
- package/lib/divider/index.d.ts +15 -15
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +10 -10
- package/lib/dropdown/index.d.ts +23 -23
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/icon/index.d.ts +79 -79
- package/lib/image/image.d.ts +5 -5
- package/lib/image/index.d.ts +11 -11
- package/lib/image/props.d.ts +2 -2
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +4 -1
- package/lib/input/input.d.ts +1 -1
- package/lib/input/input.less +4 -2
- package/lib/input/input.variable.css +4 -1
- package/lib/link/index.d.ts +15 -15
- package/lib/link/link.d.ts +6 -6
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +24 -1
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +8 -1
- package/lib/loading/loading.d.ts +16 -0
- package/lib/loading/loading.less +7 -1
- package/lib/loading/loading.variable.css +8 -1
- package/lib/message/messageConstructor.d.ts +2 -2
- package/lib/modal/index.d.ts +23 -23
- package/lib/modal/modal.d.ts +8 -8
- package/lib/modal/props.mixin.d.ts +2 -2
- package/lib/navigation/index.d.ts +3 -3
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/pop-confirm/index.d.ts +50 -18
- package/lib/pop-confirm/index.js +1 -1
- package/lib/pop-confirm/pop-confirm.d.ts +23 -7
- package/lib/pop-confirm/props.d.ts +12 -4
- package/lib/popover/index.d.ts +47 -47
- package/lib/popover/popover.d.ts +18 -18
- package/lib/popover/props.d.ts +4 -4
- package/lib/progress/index.d.ts +6 -6
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/radio.css +1 -1
- package/lib/radio/radio.less +1 -1
- package/lib/radio/radio.variable.css +1 -1
- package/lib/resize-layout/index.d.ts +12 -12
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/select/index.d.ts +480 -61
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +238 -26
- package/lib/shared/index.d.ts +14 -11
- package/lib/shared/index.js +1 -1
- package/lib/shared/vue-types.d.ts +8 -8
- package/lib/sideslider/index.d.ts +21 -21
- package/lib/sideslider/sideslider.d.ts +8 -8
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +7 -7
- package/lib/steps/steps.d.ts +2 -2
- package/lib/tab/index.d.ts +13 -13
- package/lib/tab/props.d.ts +6 -6
- package/lib/tab/tab-nav.d.ts +5 -5
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.d.ts +6 -6
- package/lib/table/components/table-column.d.ts +10 -10
- package/lib/table/index.d.ts +42 -42
- package/lib/table/props.d.ts +6 -6
- package/lib/table/table.d.ts +6 -6
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +27 -27
- package/lib/tag-input/index.d.ts +30 -30
- package/lib/tag-input/tag-input.d.ts +14 -14
- package/lib/tag-input/tag-props.d.ts +6 -6
- package/lib/time-picker/index.d.ts +20 -20
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/tree.d.ts +1 -1
- package/lib/upload/index.d.ts +7 -7
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +4 -4
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/dropdown/index.d.ts
CHANGED
@@ -5,11 +5,11 @@ declare const BkDropdown: {
|
|
5
5
|
$: import("vue").ComponentInternalInstance;
|
6
6
|
$data: {};
|
7
7
|
$props: Partial<{
|
8
|
-
placement: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
9
8
|
extCls: string;
|
10
9
|
isShow: boolean;
|
11
10
|
disabled: boolean;
|
12
|
-
|
11
|
+
placement: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
12
|
+
trigger: "click" | "hover" | "manual";
|
13
13
|
popoverOptions: {
|
14
14
|
[key: string]: any;
|
15
15
|
};
|
@@ -19,11 +19,11 @@ declare const BkDropdown: {
|
|
19
19
|
} & {
|
20
20
|
default: boolean;
|
21
21
|
};
|
22
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "
|
23
|
-
default: "auto" | "
|
22
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
23
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
24
24
|
};
|
25
|
-
trigger: import("vue-types").VueTypeValidableDef<"
|
26
|
-
default: "
|
25
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
26
|
+
default: "click" | "hover" | "manual";
|
27
27
|
};
|
28
28
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
29
29
|
default: boolean;
|
@@ -48,7 +48,7 @@ declare const BkDropdown: {
|
|
48
48
|
onShow?: (...args: any[]) => any;
|
49
49
|
onHide?: (...args: any[]) => any;
|
50
50
|
onShowChange?: (...args: any[]) => any;
|
51
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
51
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "extCls" | "isShow" | "disabled" | "placement" | "trigger" | "popoverOptions">;
|
52
52
|
$attrs: {
|
53
53
|
[x: string]: unknown;
|
54
54
|
};
|
@@ -68,11 +68,11 @@ declare const BkDropdown: {
|
|
68
68
|
} & {
|
69
69
|
default: boolean;
|
70
70
|
};
|
71
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "
|
72
|
-
default: "auto" | "
|
71
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
72
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
73
73
|
};
|
74
|
-
trigger: import("vue-types").VueTypeValidableDef<"
|
75
|
-
default: "
|
74
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
75
|
+
default: "click" | "hover" | "manual";
|
76
76
|
};
|
77
77
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
78
|
default: boolean;
|
@@ -102,11 +102,11 @@ declare const BkDropdown: {
|
|
102
102
|
afterHidden: () => void;
|
103
103
|
popoverRef: any;
|
104
104
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "showChange")[], string, {
|
105
|
-
placement: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
106
105
|
extCls: string;
|
107
106
|
isShow: boolean;
|
108
107
|
disabled: boolean;
|
109
|
-
|
108
|
+
placement: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
109
|
+
trigger: "click" | "hover" | "manual";
|
110
110
|
popoverOptions: {
|
111
111
|
[key: string]: any;
|
112
112
|
};
|
@@ -136,11 +136,11 @@ declare const BkDropdown: {
|
|
136
136
|
} & {
|
137
137
|
default: boolean;
|
138
138
|
};
|
139
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "
|
140
|
-
default: "auto" | "
|
139
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
140
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
141
141
|
};
|
142
|
-
trigger: import("vue-types").VueTypeValidableDef<"
|
143
|
-
default: "
|
142
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
143
|
+
default: "click" | "hover" | "manual";
|
144
144
|
};
|
145
145
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
146
|
default: boolean;
|
@@ -179,11 +179,11 @@ declare const BkDropdown: {
|
|
179
179
|
} & {
|
180
180
|
default: boolean;
|
181
181
|
};
|
182
|
-
placement: import("vue-types").VueTypeValidableDef<"auto" | "
|
183
|
-
default: "auto" | "
|
182
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
183
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
184
184
|
};
|
185
|
-
trigger: import("vue-types").VueTypeValidableDef<"
|
186
|
-
default: "
|
185
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
186
|
+
default: "click" | "hover" | "manual";
|
187
187
|
};
|
188
188
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
189
189
|
default: boolean;
|
@@ -213,11 +213,11 @@ declare const BkDropdown: {
|
|
213
213
|
afterHidden: () => void;
|
214
214
|
popoverRef: any;
|
215
215
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "showChange")[], "show" | "hide" | "showChange", {
|
216
|
-
placement: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
217
216
|
extCls: string;
|
218
217
|
isShow: boolean;
|
219
218
|
disabled: boolean;
|
220
|
-
|
219
|
+
placement: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
220
|
+
trigger: "click" | "hover" | "manual";
|
221
221
|
popoverOptions: {
|
222
222
|
[key: string]: any;
|
223
223
|
};
|
package/lib/form/form-item.d.ts
CHANGED
package/lib/form/index.d.ts
CHANGED
package/lib/icon/index.d.ts
CHANGED
@@ -1,79 +1,79 @@
|
|
1
|
-
export { default as AngleDoubleDownLine } from '../
|
2
|
-
export { default as AngleDoubleLeftLine } from '../
|
3
|
-
export { default as AngleDoubleLeft } from '../
|
4
|
-
export { default as AngleDoubleRightLine } from '../
|
5
|
-
export { default as AngleDoubleRight } from '../
|
6
|
-
export { default as AngleDoubleUpLine } from '../
|
7
|
-
export { default as AngleDownFill } from '../
|
8
|
-
export { default as AngleDownLine } from '../
|
9
|
-
export { default as AngleDown } from '../
|
10
|
-
export { default as AngleLeft } from '../
|
11
|
-
export { default as AngleRight } from '../
|
12
|
-
export { default as AngleUpFill } from '../
|
13
|
-
export { default as AngleUp } from '../
|
14
|
-
export { default as ArchiveFill } from '../
|
15
|
-
export { default as ArrowsLeft } from '../
|
16
|
-
export { default as ArrowsRight } from '../
|
17
|
-
export { default as AudioFill } from '../
|
18
|
-
export { default as Bk } from '../
|
19
|
-
export { default as Circle } from '../
|
20
|
-
export { default as CloseLine } from '../
|
21
|
-
export { default as Close } from '../
|
22
|
-
export { default as Code } from '../
|
23
|
-
export { default as CogShape } from '../
|
24
|
-
export { default as CollapseLeft } from '../
|
25
|
-
export { default as Copy } from '../
|
26
|
-
export { default as DataShape } from '../
|
27
|
-
export { default as Del } from '../
|
28
|
-
export { default as DocFill } from '../
|
29
|
-
export { default as Done } from '../
|
30
|
-
export { default as DownShape } from '../
|
31
|
-
export { default as DownSmall } from '../
|
32
|
-
export { default as EditLine } from '../
|
33
|
-
export { default as Ellipsis } from '../
|
34
|
-
export { default as EnlargeLine } from '../
|
35
|
-
export { default as Error } from '../
|
36
|
-
export { default as ExcelFill } from '../
|
37
|
-
export { default as ExclamationCircleShape } from '../
|
38
|
-
export { default as Eye } from '../
|
39
|
-
export { default as FilliscreenLine } from '../
|
40
|
-
export { default as FolderOpen } from '../
|
41
|
-
export { default as FolderShapeOpen } from '../
|
42
|
-
export { default as FolderShape } from '../
|
43
|
-
export { default as Folder } from '../
|
44
|
-
export { default as Funnel } from '../
|
45
|
-
export { default as HelpDocumentFill } from '../
|
46
|
-
export { default as HelpFill } from '../
|
47
|
-
export { default as Help } from '../
|
48
|
-
export { default as ImageFill } from '../
|
49
|
-
export { default as ImgError } from '../
|
50
|
-
export { default as ImgPlacehoulder } from '../
|
51
|
-
export { default as InfoLine } from '../
|
52
|
-
export { default as Info } from '../
|
53
|
-
export { default as LeftShape } from '../
|
54
|
-
export { default as LeftTurnLine } from '../
|
55
|
-
export { default as NarrowLine } from '../
|
56
|
-
export { default as Original } from '../
|
57
|
-
export { default as PdfFill } from '../
|
58
|
-
export { default as PlayShape } from '../
|
59
|
-
export { default as Plus } from '../
|
60
|
-
export { default as PptFill } from '../
|
61
|
-
export { default as Qq } from '../
|
62
|
-
export { default as RightShape } from '../
|
63
|
-
export { default as RightTurnLine } from '../
|
64
|
-
export { default as Search } from '../
|
65
|
-
export { default as Share } from '../
|
66
|
-
export { default as Spinner } from '../
|
67
|
-
export { default as Success } from '../
|
68
|
-
export { default as SwitcherLoading } from '../
|
69
|
-
export { default as TextFile } from '../
|
70
|
-
export { default as TextFill } from '../
|
71
|
-
export { default as Transfer } from '../
|
72
|
-
export { default as TreeApplicationShape } from '../
|
73
|
-
export { default as UnfullScreen } from '../
|
74
|
-
export { default as Unvisible } from '../
|
75
|
-
export { default as UpShape } from '../
|
76
|
-
export { default as Upload } from '../
|
77
|
-
export { default as VideoFill } from '../
|
78
|
-
export { default as Warn } from '../
|
79
|
-
export { default as Weixin } from '../
|
1
|
+
export { default as AngleDoubleDownLine } from '../icon/angle-double-down-line';
|
2
|
+
export { default as AngleDoubleLeftLine } from '../icon/angle-double-left-line';
|
3
|
+
export { default as AngleDoubleLeft } from '../icon/angle-double-left';
|
4
|
+
export { default as AngleDoubleRightLine } from '../icon/angle-double-right-line';
|
5
|
+
export { default as AngleDoubleRight } from '../icon/angle-double-right';
|
6
|
+
export { default as AngleDoubleUpLine } from '../icon/angle-double-up-line';
|
7
|
+
export { default as AngleDownFill } from '../icon/angle-down-fill';
|
8
|
+
export { default as AngleDownLine } from '../icon/angle-down-line';
|
9
|
+
export { default as AngleDown } from '../icon/angle-down';
|
10
|
+
export { default as AngleLeft } from '../icon/angle-left';
|
11
|
+
export { default as AngleRight } from '../icon/angle-right';
|
12
|
+
export { default as AngleUpFill } from '../icon/angle-up-fill';
|
13
|
+
export { default as AngleUp } from '../icon/angle-up';
|
14
|
+
export { default as ArchiveFill } from '../icon/archive-fill';
|
15
|
+
export { default as ArrowsLeft } from '../icon/arrows-left';
|
16
|
+
export { default as ArrowsRight } from '../icon/arrows-right';
|
17
|
+
export { default as AudioFill } from '../icon/audio-fill';
|
18
|
+
export { default as Bk } from '../icon/bk';
|
19
|
+
export { default as Circle } from '../icon/circle';
|
20
|
+
export { default as CloseLine } from '../icon/close-line';
|
21
|
+
export { default as Close } from '../icon/close';
|
22
|
+
export { default as Code } from '../icon/code';
|
23
|
+
export { default as CogShape } from '../icon/cog-shape';
|
24
|
+
export { default as CollapseLeft } from '../icon/collapse-left';
|
25
|
+
export { default as Copy } from '../icon/copy';
|
26
|
+
export { default as DataShape } from '../icon/data-shape';
|
27
|
+
export { default as Del } from '../icon/del';
|
28
|
+
export { default as DocFill } from '../icon/doc-fill';
|
29
|
+
export { default as Done } from '../icon/done';
|
30
|
+
export { default as DownShape } from '../icon/down-shape';
|
31
|
+
export { default as DownSmall } from '../icon/down-small';
|
32
|
+
export { default as EditLine } from '../icon/edit-line';
|
33
|
+
export { default as Ellipsis } from '../icon/ellipsis';
|
34
|
+
export { default as EnlargeLine } from '../icon/enlarge-line';
|
35
|
+
export { default as Error } from '../icon/error';
|
36
|
+
export { default as ExcelFill } from '../icon/excel-fill';
|
37
|
+
export { default as ExclamationCircleShape } from '../icon/exclamation-circle-shape';
|
38
|
+
export { default as Eye } from '../icon/eye';
|
39
|
+
export { default as FilliscreenLine } from '../icon/filliscreen-line';
|
40
|
+
export { default as FolderOpen } from '../icon/folder-open';
|
41
|
+
export { default as FolderShapeOpen } from '../icon/folder-shape-open';
|
42
|
+
export { default as FolderShape } from '../icon/folder-shape';
|
43
|
+
export { default as Folder } from '../icon/folder';
|
44
|
+
export { default as Funnel } from '../icon/funnel';
|
45
|
+
export { default as HelpDocumentFill } from '../icon/help-document-fill';
|
46
|
+
export { default as HelpFill } from '../icon/help-fill';
|
47
|
+
export { default as Help } from '../icon/help';
|
48
|
+
export { default as ImageFill } from '../icon/image-fill';
|
49
|
+
export { default as ImgError } from '../icon/img-error';
|
50
|
+
export { default as ImgPlacehoulder } from '../icon/img-placehoulder';
|
51
|
+
export { default as InfoLine } from '../icon/info-line';
|
52
|
+
export { default as Info } from '../icon/info';
|
53
|
+
export { default as LeftShape } from '../icon/left-shape';
|
54
|
+
export { default as LeftTurnLine } from '../icon/left-turn-line';
|
55
|
+
export { default as NarrowLine } from '../icon/narrow-line';
|
56
|
+
export { default as Original } from '../icon/original';
|
57
|
+
export { default as PdfFill } from '../icon/pdf-fill';
|
58
|
+
export { default as PlayShape } from '../icon/play-shape';
|
59
|
+
export { default as Plus } from '../icon/plus';
|
60
|
+
export { default as PptFill } from '../icon/ppt-fill';
|
61
|
+
export { default as Qq } from '../icon/qq';
|
62
|
+
export { default as RightShape } from '../icon/right-shape';
|
63
|
+
export { default as RightTurnLine } from '../icon/right-turn-line';
|
64
|
+
export { default as Search } from '../icon/search';
|
65
|
+
export { default as Share } from '../icon/share';
|
66
|
+
export { default as Spinner } from '../icon/spinner';
|
67
|
+
export { default as Success } from '../icon/success';
|
68
|
+
export { default as SwitcherLoading } from '../icon/switcher-loading';
|
69
|
+
export { default as TextFile } from '../icon/text-file';
|
70
|
+
export { default as TextFill } from '../icon/text-fill';
|
71
|
+
export { default as Transfer } from '../icon/transfer';
|
72
|
+
export { default as TreeApplicationShape } from '../icon/tree-application-shape';
|
73
|
+
export { default as UnfullScreen } from '../icon/unfull-screen';
|
74
|
+
export { default as Unvisible } from '../icon/unvisible';
|
75
|
+
export { default as UpShape } from '../icon/up-shape';
|
76
|
+
export { default as Upload } from '../icon/upload';
|
77
|
+
export { default as VideoFill } from '../icon/video-fill';
|
78
|
+
export { default as Warn } from '../icon/warn';
|
79
|
+
export { default as Weixin } from '../icon/weixin';
|
package/lib/image/image.d.ts
CHANGED
@@ -11,8 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
default: string;
|
12
12
|
};
|
13
13
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
14
|
-
fit: import("vue-types").VueTypeDef<"
|
15
|
-
default: "
|
14
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
15
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
16
16
|
};
|
17
17
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
18
|
default: boolean;
|
@@ -49,8 +49,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
default: string;
|
50
50
|
};
|
51
51
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
52
|
-
fit: import("vue-types").VueTypeDef<"
|
53
|
-
default: "
|
52
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
53
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
54
54
|
};
|
55
55
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
56
|
default: boolean;
|
@@ -82,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
82
82
|
onLoaded?: (...args: any[]) => any;
|
83
83
|
}, {
|
84
84
|
zIndex: number;
|
85
|
-
fit: "
|
85
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
86
86
|
urlList: unknown[];
|
87
87
|
maskClose: boolean;
|
88
88
|
src: string;
|
package/lib/image/index.d.ts
CHANGED
@@ -7,7 +7,7 @@ declare const BkImage: {
|
|
7
7
|
$data: {};
|
8
8
|
$props: Partial<{
|
9
9
|
zIndex: number;
|
10
|
-
fit: "
|
10
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
11
11
|
urlList: unknown[];
|
12
12
|
maskClose: boolean;
|
13
13
|
src: string;
|
@@ -26,8 +26,8 @@ declare const BkImage: {
|
|
26
26
|
default: string;
|
27
27
|
};
|
28
28
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
29
|
-
fit: import("vue-types").VueTypeDef<"
|
30
|
-
default: "
|
29
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
30
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
31
31
|
};
|
32
32
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
33
|
default: boolean;
|
@@ -83,8 +83,8 @@ declare const BkImage: {
|
|
83
83
|
default: string;
|
84
84
|
};
|
85
85
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
86
|
-
fit: import("vue-types").VueTypeDef<"
|
87
|
-
default: "
|
86
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
87
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
88
88
|
};
|
89
89
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
90
|
default: boolean;
|
@@ -116,7 +116,7 @@ declare const BkImage: {
|
|
116
116
|
onLoaded?: (...args: any[]) => any;
|
117
117
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], string, {
|
118
118
|
zIndex: number;
|
119
|
-
fit: "
|
119
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
120
120
|
urlList: unknown[];
|
121
121
|
maskClose: boolean;
|
122
122
|
src: string;
|
@@ -155,8 +155,8 @@ declare const BkImage: {
|
|
155
155
|
default: string;
|
156
156
|
};
|
157
157
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
158
|
-
fit: import("vue-types").VueTypeDef<"
|
159
|
-
default: "
|
158
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
159
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
160
160
|
};
|
161
161
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
162
162
|
default: boolean;
|
@@ -202,8 +202,8 @@ declare const BkImage: {
|
|
202
202
|
default: string;
|
203
203
|
};
|
204
204
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
205
|
-
fit: import("vue-types").VueTypeDef<"
|
206
|
-
default: "
|
205
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
206
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
207
207
|
};
|
208
208
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
209
209
|
default: boolean;
|
@@ -235,7 +235,7 @@ declare const BkImage: {
|
|
235
235
|
onLoaded?: (...args: any[]) => any;
|
236
236
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "error" | "loaded")[], "change" | "close" | "error" | "loaded", {
|
237
237
|
zIndex: number;
|
238
|
-
fit: "
|
238
|
+
fit: "fill" | "none" | "contain" | "cover" | "scale-down";
|
239
239
|
urlList: unknown[];
|
240
240
|
maskClose: boolean;
|
241
241
|
src: string;
|
package/lib/image/props.d.ts
CHANGED
@@ -11,8 +11,8 @@ export declare const propsImage: {
|
|
11
11
|
default: string;
|
12
12
|
};
|
13
13
|
placeholder: import("vue-types").VueTypeValidableDef<any>;
|
14
|
-
fit: import("vue-types").VueTypeDef<"
|
15
|
-
default: "
|
14
|
+
fit: import("vue-types").VueTypeDef<"fill" | "none" | "contain" | "cover" | "scale-down"> & {
|
15
|
+
default: "fill" | "none" | "contain" | "cover" | "scale-down";
|
16
16
|
};
|
17
17
|
lazy: import("vue-types").VueTypeValidableDef<boolean> & {
|
18
18
|
default: boolean;
|
package/lib/input/index.d.ts
CHANGED
@@ -3,8 +3,8 @@ declare const BkInput: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: Partial<{
|
6
|
-
behavior: "simplicity" | "normal";
|
7
6
|
type: string;
|
7
|
+
behavior: "simplicity" | "normal";
|
8
8
|
disabled: boolean;
|
9
9
|
step: number;
|
10
10
|
placeholder: string;
|
@@ -121,7 +121,7 @@ declare const BkInput: {
|
|
121
121
|
onClear?: () => any;
|
122
122
|
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
123
123
|
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
124
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
124
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "behavior" | "disabled" | "step" | "placeholder" | "prefix" | "max" | "min" | "maxlength" | "clearable" | "readonly" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision" | "rows" | "selectReadonly" | "withValidate">;
|
125
125
|
$attrs: {
|
126
126
|
[x: string]: unknown;
|
127
127
|
};
|
@@ -248,8 +248,8 @@ declare const BkInput: {
|
|
248
248
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
249
249
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
250
250
|
}, string, {
|
251
|
-
behavior: "simplicity" | "normal";
|
252
251
|
type: string;
|
252
|
+
behavior: "simplicity" | "normal";
|
253
253
|
disabled: boolean;
|
254
254
|
step: number;
|
255
255
|
placeholder: string;
|
@@ -503,8 +503,8 @@ declare const BkInput: {
|
|
503
503
|
compositionupdate: (evt: CompositionEvent) => CompositionEvent;
|
504
504
|
compositionend: (evt: CompositionEvent) => CompositionEvent;
|
505
505
|
}, string, {
|
506
|
-
behavior: "simplicity" | "normal";
|
507
506
|
type: string;
|
507
|
+
behavior: "simplicity" | "normal";
|
508
508
|
disabled: boolean;
|
509
509
|
step: number;
|
510
510
|
placeholder: string;
|
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}},a={};function l(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return n[e](t,t.exports,l),t.exports}l.d=(e,r)=>{for(var t in r)l.o(r,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{l.r(i),l.d(i,{default:()=>m});var e=l(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,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=l(748);Object.create,Object.create;var n,a,u=l(2717),s=l(6870),c={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 p(e,r){return!0}function d(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"}(a||(a={}));var f=(t(n={},a.UPDATE,p),t(n,a.FOCUS,(function(e){return e})),t(n,a.BLUR,(function(e){return e})),t(n,a.CHANGE,p),t(n,a.CLEAR,(function(){return!0})),t(n,a.INPUT,p),t(n,a.KEYPRESS,p),t(n,a.KEYDOWN,p),t(n,a.KEYUP,p),t(n,a.ENTER,p),t(n,a.PASTE,p),t(n,a.COMPOSITIONSTART,d),t(n,a.COMPOSITIONUPDATE,d),t(n,a.COMPOSITIONEND,d),n);const v=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:c,emits:f,setup:function(n,l){var i=(0,e.useFormItem)(),c=(0,u.useLocale)("input"),p=(0,o.ref)(!1),d=(0,o.ref)(!1),f=(0,o.computed)((function(){return"textarea"===n.type})),v=(0,o.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"]),g=(0,o.ref)(),T=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(v.value,"--").concat(n.size),!!n.size),t(r,"is-focused",p.value),t(r,"is-readonly",n.readonly&&!n.selectReadonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(y),!!y),r),v.value)})),x={search:function(){return(0,o.createVNode)(s.Search,null,null)},password:function(){return(0,o.createVNode)(s.Eye,{onClick:F},null)}},h=G("suffix-icon"),N=(0,o.computed)((function(){var e=x[n.type];return C.value?(0,o.createVNode)(s.Unvisible,{onClick:F,class:h},null):e?(0,o.createVNode)(e,{class:h},null):null})),E=(0,o.computed)((function(){return"number"===n.type})),O=(0,o.computed)((function(){return Math.floor(n.maxlength)})),C=(0,o.ref)(!1),S=(0,o.computed)((function(){return(0,e.classes)(t({"show-clear-only-hover":n.showClearOnlyHover},"".concat(v.value,"--clear-icon"),!0),h)})),I=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),V=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function A(){if(!n.disabled){var e=E.value?n.min:"";l.emit(a.UPDATE,e),l.emit(a.CHANGE,e),l.emit(a.CLEAR)}}(0,o.watch)((function(){return n.modelValue}),(function(){var e;n.withValidate&&(null===(e=null==i?void 0:i.validate)||void 0===e||e.call(i,"change"))})),l.expose({focus:function(){g.value.focus()},clear:A});var w,U,j=(w=[a.KEYUP,a.KEYDOWN,a.KEYPRESS,a.PASTE,a.CHANGE,a.INPUT].map((function(e){return function(r){r.stopPropagation(),e!==a.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(a.ENTER,r.target.value,r),d.value&&[a.INPUT,a.CHANGE].some((function(r){return e===r}))||(e===a.INPUT&&l.emit(a.UPDATE,
|
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}},a={};function l(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={exports:{}};return n[e](t,t.exports,l),t.exports}l.d=(e,r)=>{for(var t in r)l.o(r,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{l.r(i),l.d(i,{default:()=>m});var e=l(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,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var o=l(748);Object.create,Object.create;var n,a,u=l(2717),s=l(6870),c={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 p(e,r){return!0}function d(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"}(a||(a={}));var f=(t(n={},a.UPDATE,p),t(n,a.FOCUS,(function(e){return e})),t(n,a.BLUR,(function(e){return e})),t(n,a.CHANGE,p),t(n,a.CLEAR,(function(){return!0})),t(n,a.INPUT,p),t(n,a.KEYPRESS,p),t(n,a.KEYDOWN,p),t(n,a.KEYUP,p),t(n,a.ENTER,p),t(n,a.PASTE,p),t(n,a.COMPOSITIONSTART,d),t(n,a.COMPOSITIONUPDATE,d),t(n,a.COMPOSITIONEND,d),n);const v=(0,o.defineComponent)({name:"Input",inheritAttrs:!1,props:c,emits:f,setup:function(n,l){var i=(0,e.useFormItem)(),c=(0,u.useLocale)("input"),p=(0,o.ref)(!1),d=(0,o.ref)(!1),f=(0,o.computed)((function(){return"textarea"===n.type})),v=(0,o.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"]),g=(0,o.ref)(),T=(0,o.computed)((function(){var r;return(0,e.classes)((t(r={},"".concat(v.value,"--").concat(n.size),!!n.size),t(r,"is-focused",p.value),t(r,"is-readonly",n.readonly&&!n.selectReadonly),t(r,"is-disabled",n.disabled),t(r,"is-simplicity","simplicity"===n.behavior),t(r,"".concat(y),!!y),r),v.value)})),x={search:function(){return(0,o.createVNode)(s.Search,null,null)},password:function(){return(0,o.createVNode)(s.Eye,{onClick:F},null)}},h=G("suffix-icon"),N=(0,o.computed)((function(){var e=x[n.type];return C.value?(0,o.createVNode)(s.Unvisible,{onClick:F,class:h},null):e?(0,o.createVNode)(e,{class:h},null):null})),E=(0,o.computed)((function(){return"number"===n.type})),O=(0,o.computed)((function(){return Math.floor(n.maxlength)})),C=(0,o.ref)(!1),S=(0,o.computed)((function(){return(0,e.classes)(t({"show-clear-only-hover":n.showClearOnlyHover},"".concat(v.value,"--clear-icon"),!0),h)})),I=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue>=n.max})})),V=(0,o.computed)((function(){return(0,e.classes)({"is-disabled":n.disabled||n.modelValue<=n.min})}));function A(){if(!n.disabled){var e=E.value?n.min:"";l.emit(a.UPDATE,e),l.emit(a.CHANGE,e),l.emit(a.CLEAR)}}(0,o.watch)((function(){return n.modelValue}),(function(){var e;n.withValidate&&(null===(e=null==i?void 0:i.validate)||void 0===e||e.call(i,"change"))})),l.expose({focus:function(){g.value.focus()},clear:A});var w,U,j=(w=[a.KEYUP,a.KEYDOWN,a.KEYPRESS,a.PASTE,a.CHANGE,a.INPUT].map((function(e){return function(r){r.stopPropagation(),e!==a.KEYDOWN||"Enter"!==r.code&&"Enter"!==r.key&&13!==r.keyCode||l.emit(a.ENTER,r.target.value,r),d.value&&[a.INPUT,a.CHANGE].some((function(r){return e===r}))||(e===a.INPUT&&l.emit(a.UPDATE,r.target.value),l.emit(e,r.target.value,r))}})),U=6,function(e){if(Array.isArray(e))return e}(w)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,n,a=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(o=t.next()).done)&&(a.push(o.value),!r||a.length!==r);l=!0);}catch(e){i=!0,n=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw n}}return a}}(w,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}}(w,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){var r,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(e),10),a=Number.isInteger(n.precision)?n.precision:0,l=parseFloat((null!==(r=n.modelValue)&&void 0!==r?r:0).toString()),i=Number.isInteger(o)?o:1,u=l+(t?i:-1*i);return Number.isInteger(n.max)&&(u=Math.min(u,n.max)),Number.isInteger(n.min)&&(u=Math.max(u,n.min)),+u.toFixed(a)}function L(){if(!n.disabled){var e=Y(n.step);l.emit(a.UPDATE,e),l.emit(a.CHANGE,e)}}function q(){if(!n.disabled){var e=Y(n.step,!1);l.emit(a.UPDATE,e),l.emit(a.CHANGE,e)}}function G(e){return"".concat(v.value,"--").concat(e)}function F(){C.value=!C.value}var W=(0,o.computed)((function(){var e=void 0===n.modelValue||null===n.modelValue?{}:{value:n.modelValue};return Object.assign(Object.assign({},e),{maxlength:n.maxlength,placeholder:n.placeholder||c.value.placeholder,readonly:n.readonly,disabled:n.disabled})})),B={onInput:H,onFocus:function(e){p.value=!0,l.emit(a.FOCUS,e)},onBlur:function(e){var r;if(p.value=!1,l.emit(a.BLUR,e),E.value&&Number.isInteger(parseInt(e.target.value,10))&&(e.target.value>n.max||e.target.value<n.min)){var t=e.target.value>n.max?n.max:n.min;l.emit(a.UPDATE,t),l.emit(a.CHANGE,t)}n.withValidate&&(null===(r=null==i?void 0:i.validate)||void 0===r||r.call(i,"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,t,a,i,u,c;return(0,o.createVNode)("div",{class:T.value,style:b},[null!==(t=null===(r=null===(e=l.slots)||void 0===e?void 0:e.prefix)||void 0===r?void 0:r.call(e))&&void 0!==t?t:n.prefix&&(0,o.createVNode)("div",{class:G("prefix-area")},[(0,o.createVNode)("span",{class:G("prefix-area--text")},[n.prefix])]),f.value?(0,o.createVNode)("textarea",(0,o.mergeProps)({ref:g,spellcheck:!1},P,B,W.value,{rows:n.rows}),null):(0,o.createVNode)("input",(0,o.mergeProps)({spellcheck:!1},P,{ref:g,class:"".concat(v.value,"--text"),type:C.value&&"password"===n.type?"text":n.type,step:n.step,max:n.max,min:n.min},B,W.value),null),!f.value&&n.clearable&&!!n.modelValue&&(0,o.createVNode)("span",{class:S.value,onClick:A},[(0,o.createVNode)(s.Close,null,null)]),N.value,"number"==typeof n.maxlength&&(n.showWordLimit||f.value)&&(0,o.createVNode)("p",{class:G("max-length")},[(null!==(a=n.modelValue)&&void 0!==a?a:"").toString().length,(0,o.createTextVNode)("/"),(0,o.createVNode)("span",null,[O.value])]),E.value&&n.showControl&&(0,o.createVNode)("div",{class:G("number-control")},[(0,o.createVNode)(s.DownSmall,{class:I.value,onClick:L},null),(0,o.createVNode)(s.DownSmall,{class:V.value,onClick:q},null)]),null!==(c=null===(u=null===(i=l.slots)||void 0===i?void 0:i.suffix)||void 0===u?void 0:u.call(i))&&void 0!==c?c:n.suffix&&(0,o.createVNode)("div",{class:G("suffix-area")},[(0,o.createVNode)("span",{class:G("suffix-area--text")},[n.suffix])])])}}}),m=(0,e.withInstall)(v)})(),i})()));
|
package/lib/input/input.css
CHANGED
@@ -74,6 +74,7 @@
|
|
74
74
|
display: inline-flex;
|
75
75
|
width: 100%;
|
76
76
|
min-height: 70px;
|
77
|
+
overflow: hidden;
|
77
78
|
font-size: 12px;
|
78
79
|
line-height: 20px;
|
79
80
|
color: #63656e;
|
@@ -115,13 +116,14 @@
|
|
115
116
|
}
|
116
117
|
.bk-textarea > textarea {
|
117
118
|
width: 100%;
|
118
|
-
flex: 1;
|
119
119
|
padding: 5px 10px;
|
120
120
|
line-height: 1.5;
|
121
121
|
text-align: left;
|
122
122
|
border: 0;
|
123
|
+
border-radius: 2px;
|
123
124
|
outline: none;
|
124
125
|
resize: none;
|
126
|
+
flex: 1;
|
125
127
|
}
|
126
128
|
.bk-textarea--max-length {
|
127
129
|
padding-right: 10px;
|
@@ -286,6 +288,7 @@
|
|
286
288
|
background-color: white;
|
287
289
|
background-image: none;
|
288
290
|
border: none;
|
291
|
+
border-radius: 2px;
|
289
292
|
outline: none;
|
290
293
|
box-sizing: border-box;
|
291
294
|
transition: all 0.3s;
|
package/lib/input/input.d.ts
CHANGED
@@ -312,8 +312,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
312
312
|
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
313
313
|
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
314
314
|
}, {
|
315
|
-
behavior: "simplicity" | "normal";
|
316
315
|
type: string;
|
316
|
+
behavior: "simplicity" | "normal";
|
317
317
|
disabled: boolean;
|
318
318
|
step: number;
|
319
319
|
placeholder: string;
|
package/lib/input/input.less
CHANGED
@@ -47,12 +47,12 @@
|
|
47
47
|
display: inline-flex;
|
48
48
|
width: 100%;
|
49
49
|
min-height: 70px;
|
50
|
+
overflow: hidden;
|
50
51
|
font-size: @font-size-base;
|
51
52
|
line-height: 20px;
|
52
53
|
color: @input-color;
|
53
54
|
background-color: white;
|
54
55
|
border: @border-width-base @border-style-base @input-border-color;
|
55
|
-
border-radius: 2px;
|
56
56
|
border-radius: @border-radius-base;
|
57
57
|
box-sizing: border-box;
|
58
58
|
transition: all .3s;
|
@@ -61,13 +61,14 @@
|
|
61
61
|
|
62
62
|
> textarea {
|
63
63
|
width: 100%;
|
64
|
-
flex: 1;
|
65
64
|
padding: 5px 10px;
|
66
65
|
line-height: 1.5;
|
67
66
|
text-align: left;
|
68
67
|
border: 0;
|
68
|
+
border-radius: @border-radius-base;
|
69
69
|
outline: none;
|
70
70
|
resize: none;
|
71
|
+
flex: 1;
|
71
72
|
}
|
72
73
|
|
73
74
|
&--max-length {
|
@@ -228,6 +229,7 @@
|
|
228
229
|
background-color: @input-bg;
|
229
230
|
background-image: none;
|
230
231
|
border: none;
|
232
|
+
border-radius: @border-radius-base;
|
231
233
|
outline: none;
|
232
234
|
box-sizing: border-box;
|
233
235
|
transition: all .3s;
|