@nutui/nutui 4.3.6 → 4.3.8
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/CHANGELOG.md +37 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4588 -4837
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +1 -1
- package/dist/packages/address/Address.js +1 -1
- package/dist/packages/badge/Badge.js +60 -72
- package/dist/packages/calendar/Calendar.js +1 -1
- package/dist/packages/cascader/Cascader.js +1 -1
- package/dist/packages/countdown/Countdown.js +2 -2
- package/dist/packages/dialog/Dialog.js +3 -3
- package/dist/packages/fixednav/FixedNav.js +2 -2
- package/dist/packages/image/Image.js +79 -111
- package/dist/packages/imagepreview/ImagePreview.js +3 -3
- package/dist/packages/{index-uHBD4dfS.js → index-wLaOjIn1.js} +2 -2
- package/dist/packages/input/Input.js +111 -181
- package/dist/packages/invoice/Invoice.js +4 -4
- package/dist/packages/menuitem/MenuItem.js +2 -2
- package/dist/packages/notify/Notify.js +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +7 -3
- package/dist/packages/overlay/Overlay.js +40 -54
- package/dist/packages/popover/Popover.js +1 -1
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/shortpassword/ShortPassword.js +1 -1
- package/dist/packages/sku/Sku.js +1 -1
- package/dist/packages/tabbaritem/TabbarItem.js +3 -3
- package/dist/packages/tabpane/TabPane.js +1 -1
- package/dist/packages/timeselect/TimeSelect.js +1 -1
- package/dist/packages/watermark/Watermark.js +69 -159
- package/dist/smartips/web-types.json +3 -3
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +5 -5
- package/dist/types/__VUE/badge/badge.vue.d.ts +93 -0
- package/dist/types/__VUE/badge/index.d.ts +5 -0
- package/dist/types/__VUE/calendar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +4 -4
- package/dist/types/__VUE/divider/divider.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/image.vue.d.ts +111 -0
- package/dist/types/__VUE/image/index.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.d.ts +6 -0
- package/dist/types/__VUE/input/input.vue.d.ts +171 -0
- package/dist/types/__VUE/input/{type.d.ts → types.d.ts} +2 -2
- package/dist/types/__VUE/input/util.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -2
- package/dist/types/__VUE/overlay/index.d.ts +5 -0
- package/dist/types/__VUE/overlay/overlay.vue.d.ts +87 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/row/row.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/__VUE/watermark/index.d.ts +6 -0
- package/dist/types/__VUE/watermark/watermark.vue.d.ts +127 -0
- package/dist/types/index.d.ts +11 -6
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +0 -102
- package/dist/types/__VUE/image/index.vue.d.ts +0 -126
- package/dist/types/__VUE/input/index.vue.d.ts +0 -221
- package/dist/types/__VUE/overlay/index.vue.d.ts +0 -85
- package/dist/types/__VUE/watermark/index.vue.d.ts +0 -201
- /package/dist/types/__VUE/image/{type.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Watermark from './watermark.vue';
|
|
2
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export type { WatermarkProps } from './watermark.vue';
|
|
4
|
+
export type {} from './types';
|
|
5
|
+
export type WatermarkInstance = ComponentPublicInstance & InstanceType<typeof Watermark>;
|
|
6
|
+
export { Watermark, Watermark as default };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { WithInstall } from '../../utils';
|
|
2
|
+
export type WatermarkProps = Partial<{
|
|
3
|
+
gapX: number;
|
|
4
|
+
gapY: number;
|
|
5
|
+
zIndex: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
rotate: number;
|
|
9
|
+
image: string;
|
|
10
|
+
imageWidth: number;
|
|
11
|
+
imageHeight: number;
|
|
12
|
+
content: string | string[];
|
|
13
|
+
fontColor: string;
|
|
14
|
+
fontStyle: string;
|
|
15
|
+
fontFamily: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
fontSize: string | number;
|
|
18
|
+
fullPage: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
21
|
+
gapX: number;
|
|
22
|
+
gapY: number;
|
|
23
|
+
zIndex: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
rotate: number;
|
|
27
|
+
image: string;
|
|
28
|
+
imageWidth: number;
|
|
29
|
+
imageHeight: number;
|
|
30
|
+
content: string | string[];
|
|
31
|
+
fontColor: string;
|
|
32
|
+
fontStyle: string;
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
fontSize: string | number;
|
|
36
|
+
fullPage: boolean;
|
|
37
|
+
}>>, {
|
|
38
|
+
gapX: number;
|
|
39
|
+
gapY: number;
|
|
40
|
+
zIndex: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
rotate: number;
|
|
44
|
+
imageWidth: number;
|
|
45
|
+
imageHeight: number;
|
|
46
|
+
content: string;
|
|
47
|
+
fontColor: string;
|
|
48
|
+
fontStyle: string;
|
|
49
|
+
fontFamily: string;
|
|
50
|
+
fontWeight: string;
|
|
51
|
+
fontSize: number;
|
|
52
|
+
fullPage: boolean;
|
|
53
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
|
|
54
|
+
gapX: number;
|
|
55
|
+
gapY: number;
|
|
56
|
+
zIndex: number;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
rotate: number;
|
|
60
|
+
image: string;
|
|
61
|
+
imageWidth: number;
|
|
62
|
+
imageHeight: number;
|
|
63
|
+
content: string | string[];
|
|
64
|
+
fontColor: string;
|
|
65
|
+
fontStyle: string;
|
|
66
|
+
fontFamily: string;
|
|
67
|
+
fontWeight: string;
|
|
68
|
+
fontSize: string | number;
|
|
69
|
+
fullPage: boolean;
|
|
70
|
+
}>>, {
|
|
71
|
+
gapX: number;
|
|
72
|
+
gapY: number;
|
|
73
|
+
zIndex: number;
|
|
74
|
+
width: number;
|
|
75
|
+
height: number;
|
|
76
|
+
rotate: number;
|
|
77
|
+
imageWidth: number;
|
|
78
|
+
imageHeight: number;
|
|
79
|
+
content: string;
|
|
80
|
+
fontColor: string;
|
|
81
|
+
fontStyle: string;
|
|
82
|
+
fontFamily: string;
|
|
83
|
+
fontWeight: string;
|
|
84
|
+
fontSize: number;
|
|
85
|
+
fullPage: boolean;
|
|
86
|
+
}>>>, {
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
zIndex: number;
|
|
90
|
+
content: string | string[];
|
|
91
|
+
fontFamily: string;
|
|
92
|
+
fontSize: string | number;
|
|
93
|
+
fontStyle: string;
|
|
94
|
+
fontWeight: string;
|
|
95
|
+
rotate: number;
|
|
96
|
+
gapX: number;
|
|
97
|
+
gapY: number;
|
|
98
|
+
imageWidth: number;
|
|
99
|
+
imageHeight: number;
|
|
100
|
+
fontColor: string;
|
|
101
|
+
fullPage: boolean;
|
|
102
|
+
}, {}>;
|
|
103
|
+
declare const _nut_default: WithInstall<typeof _default>;
|
|
104
|
+
export default _nut_default;
|
|
105
|
+
|
|
106
|
+
declare module 'vue' {
|
|
107
|
+
interface GlobalComponents {
|
|
108
|
+
NutWatermark: typeof _default;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
112
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
113
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
114
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
115
|
+
} : {
|
|
116
|
+
type: import('vue').PropType<T[K]>;
|
|
117
|
+
required: true;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
type __VLS_WithDefaults<P, D> = {
|
|
121
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
122
|
+
default: D[K];
|
|
123
|
+
}> : P[K];
|
|
124
|
+
};
|
|
125
|
+
type __VLS_Prettify<T> = {
|
|
126
|
+
[K in keyof T]: T[K];
|
|
127
|
+
} & {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ import Cell from './__VUE/cell/index';
|
|
|
6
6
|
export * from './__VUE/cell/index';
|
|
7
7
|
import CellGroup from './__VUE/cellgroup/index';
|
|
8
8
|
export * from './__VUE/cellgroup/index';
|
|
9
|
-
import Overlay from './__VUE/overlay/index
|
|
9
|
+
import Overlay from './__VUE/overlay/index';
|
|
10
|
+
export * from './__VUE/overlay/index';
|
|
10
11
|
import Popup from './__VUE/popup/index.vue';
|
|
11
12
|
import ConfigProvider from './__VUE/configprovider/index.vue';
|
|
12
|
-
import Image from './__VUE/image/index
|
|
13
|
+
import Image from './__VUE/image/index';
|
|
14
|
+
export * from './__VUE/image/index';
|
|
13
15
|
import Layout from './__VUE/layout/index';
|
|
14
16
|
export * from './__VUE/layout/index';
|
|
15
17
|
import Col from './__VUE/col/index';
|
|
@@ -53,7 +55,8 @@ import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
|
|
|
53
55
|
import DatePicker from './__VUE/datepicker/index.vue';
|
|
54
56
|
import InputNumber from './__VUE/inputnumber/index';
|
|
55
57
|
export * from './__VUE/inputnumber/index';
|
|
56
|
-
import Input from './__VUE/input/index
|
|
58
|
+
import Input from './__VUE/input/index';
|
|
59
|
+
export * from './__VUE/input/index';
|
|
57
60
|
import Radio from './__VUE/radio/index';
|
|
58
61
|
export * from './__VUE/radio/index';
|
|
59
62
|
import RadioGroup from './__VUE/radiogroup/index';
|
|
@@ -114,7 +117,8 @@ import { showImagePreview } from './__VUE/imagepreview/index';
|
|
|
114
117
|
import Countup from './__VUE/countup/index.vue';
|
|
115
118
|
import Countdown from './__VUE/countdown/index';
|
|
116
119
|
export * from './__VUE/countdown/index';
|
|
117
|
-
import Badge from './__VUE/badge/index
|
|
120
|
+
import Badge from './__VUE/badge/index';
|
|
121
|
+
export * from './__VUE/badge/index';
|
|
118
122
|
import Tag from './__VUE/tag/index';
|
|
119
123
|
export * from './__VUE/tag/index';
|
|
120
124
|
import Popover from './__VUE/popover/index.vue';
|
|
@@ -128,7 +132,8 @@ import Table from './__VUE/table/index.vue';
|
|
|
128
132
|
import Animate from './__VUE/animate/index';
|
|
129
133
|
export * from './__VUE/animate/index';
|
|
130
134
|
import Ellipsis from './__VUE/ellipsis/index.vue';
|
|
131
|
-
import Watermark from './__VUE/watermark/index
|
|
135
|
+
import Watermark from './__VUE/watermark/index';
|
|
136
|
+
export * from './__VUE/watermark/index';
|
|
132
137
|
import TrendArrow from './__VUE/trendarrow/index';
|
|
133
138
|
export * from './__VUE/trendarrow/index';
|
|
134
139
|
import Tour from './__VUE/tour/index.vue';
|
|
@@ -149,7 +154,7 @@ import Invoice from './__VUE/invoice/index';
|
|
|
149
154
|
export * from './__VUE/invoice/index';
|
|
150
155
|
import AvatarCropper from './__VUE/avatarcropper/index.vue';
|
|
151
156
|
declare function install(app: App): void;
|
|
152
|
-
declare const version = "4.3.
|
|
157
|
+
declare const version = "4.3.8";
|
|
153
158
|
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
|
|
154
159
|
declare const _default: {
|
|
155
160
|
install: typeof install;
|
package/package.json
CHANGED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Install<T> = T & {
|
|
3
|
-
install(app: import('vue').App): void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
6
|
-
value: {
|
|
7
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
-
};
|
|
9
|
-
max: {
|
|
10
|
-
type: NumberConstructor;
|
|
11
|
-
default: number;
|
|
12
|
-
};
|
|
13
|
-
dot: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
bubble: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
hidden: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
top: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
right: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
|
-
zIndex: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
default: number;
|
|
36
|
-
};
|
|
37
|
-
color: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
state: {};
|
|
43
|
-
stl: import("vue").ComputedRef<{
|
|
44
|
-
top: string;
|
|
45
|
-
right: string;
|
|
46
|
-
zIndex: number;
|
|
47
|
-
background: string;
|
|
48
|
-
}>;
|
|
49
|
-
content: import("vue").ComputedRef<string | number | undefined>;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
-
value: {
|
|
52
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
53
|
-
};
|
|
54
|
-
max: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
dot: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
bubble: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
hidden: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
top: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
right: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
zIndex: {
|
|
79
|
-
type: NumberConstructor;
|
|
80
|
-
default: number;
|
|
81
|
-
};
|
|
82
|
-
color: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
}>>, {
|
|
87
|
-
color: string;
|
|
88
|
-
right: string;
|
|
89
|
-
top: string;
|
|
90
|
-
zIndex: number;
|
|
91
|
-
hidden: boolean;
|
|
92
|
-
dot: boolean;
|
|
93
|
-
max: number;
|
|
94
|
-
bubble: boolean;
|
|
95
|
-
}, {}>>;
|
|
96
|
-
export default _default;
|
|
97
|
-
|
|
98
|
-
declare module 'vue' {
|
|
99
|
-
interface GlobalComponents {
|
|
100
|
-
NutBadge: typeof _default;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { PropType, CSSProperties } from 'vue';
|
|
2
|
-
import { ImageFit } from './type';
|
|
3
|
-
|
|
4
|
-
declare type Install<T> = T & {
|
|
5
|
-
install(app: import('vue').App): void;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
8
|
-
src: StringConstructor;
|
|
9
|
-
fit: {
|
|
10
|
-
type: PropType<ImageFit>;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
position: {
|
|
14
|
-
type: PropType<string>;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
alt: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
height: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
round: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
radius: (NumberConstructor | StringConstructor)[];
|
|
34
|
-
showError: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
|
-
showLoading: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
lazyLoad: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
imageClick: (event: Event) => void;
|
|
48
|
-
classes: import("vue").ComputedRef<{
|
|
49
|
-
[x: string]: boolean;
|
|
50
|
-
}>;
|
|
51
|
-
styles: import("vue").ComputedRef<CSSProperties>;
|
|
52
|
-
stylebox: import("vue").ComputedRef<{
|
|
53
|
-
height?: string | undefined;
|
|
54
|
-
width?: string | undefined;
|
|
55
|
-
overflow?: string | undefined;
|
|
56
|
-
borderRadius?: any;
|
|
57
|
-
}>;
|
|
58
|
-
error: () => void;
|
|
59
|
-
load: () => void;
|
|
60
|
-
show: import("vue").Ref<boolean>;
|
|
61
|
-
imgRef: import("vue").Ref<null>;
|
|
62
|
-
loading: import("vue").Ref<boolean>;
|
|
63
|
-
isError: import("vue").Ref<boolean>;
|
|
64
|
-
slotLoding: import("vue").Ref<import("vue").Slot<any> | undefined>;
|
|
65
|
-
slotError: import("vue").Ref<import("vue").Slot<any> | undefined>;
|
|
66
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "error" | "load")[], "click" | "error" | "load", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
-
src: StringConstructor;
|
|
68
|
-
fit: {
|
|
69
|
-
type: PropType<ImageFit>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
position: {
|
|
73
|
-
type: PropType<string>;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
alt: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
width: {
|
|
81
|
-
type: StringConstructor;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
height: {
|
|
85
|
-
type: StringConstructor;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
round: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
radius: (NumberConstructor | StringConstructor)[];
|
|
93
|
-
showError: {
|
|
94
|
-
type: BooleanConstructor;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
|
-
showLoading: {
|
|
98
|
-
type: BooleanConstructor;
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
|
-
lazyLoad: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: boolean;
|
|
104
|
-
};
|
|
105
|
-
}>> & {
|
|
106
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
107
|
-
onLoad?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
round: boolean;
|
|
111
|
-
width: string;
|
|
112
|
-
height: string;
|
|
113
|
-
position: string;
|
|
114
|
-
fit: ImageFit;
|
|
115
|
-
alt: string;
|
|
116
|
-
showError: boolean;
|
|
117
|
-
showLoading: boolean;
|
|
118
|
-
lazyLoad: boolean;
|
|
119
|
-
}, {}>>;
|
|
120
|
-
export default _default;
|
|
121
|
-
|
|
122
|
-
declare module 'vue' {
|
|
123
|
-
interface GlobalComponents {
|
|
124
|
-
NutImage: typeof _default;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import { PropType, ComputedRef } from 'vue';
|
|
2
|
-
import type { InputType, InputAlignType, InputFormatTrigger, ConfirmTextType } from './type';
|
|
3
|
-
|
|
4
|
-
declare type Install<T> = T & {
|
|
5
|
-
install(app: import('vue').App): void;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: Install< import("vue").DefineComponent<{
|
|
8
|
-
type: {
|
|
9
|
-
type: PropType<InputType>;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
modelValue: {
|
|
13
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
placeholder: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
|
-
inputAlign: {
|
|
21
|
-
type: PropType<InputAlignType>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
required: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
disabled: {
|
|
29
|
-
type: BooleanConstructor;
|
|
30
|
-
default: boolean;
|
|
31
|
-
};
|
|
32
|
-
readonly: {
|
|
33
|
-
type: BooleanConstructor;
|
|
34
|
-
default: boolean;
|
|
35
|
-
};
|
|
36
|
-
maxLength: {
|
|
37
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
clearable: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
clearSize: {
|
|
45
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
|
-
border: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
formatTrigger: {
|
|
53
|
-
type: PropType<InputFormatTrigger>;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
formatter: {
|
|
57
|
-
type: PropType<(value: string) => string>;
|
|
58
|
-
default: null;
|
|
59
|
-
};
|
|
60
|
-
showWordLimit: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
autofocus: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
confirmType: {
|
|
69
|
-
type: PropType<ConfirmTextType>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
error: {
|
|
73
|
-
type: BooleanConstructor;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
showClearIcon: {
|
|
77
|
-
type: BooleanConstructor;
|
|
78
|
-
default: boolean;
|
|
79
|
-
};
|
|
80
|
-
class: {
|
|
81
|
-
type: StringConstructor;
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
}, {
|
|
85
|
-
renderInput: (type: InputType) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
}>;
|
|
88
|
-
inputRef: import("vue").Ref<any>;
|
|
89
|
-
active: import("vue").Ref<boolean>;
|
|
90
|
-
classes: ComputedRef<{
|
|
91
|
-
[x: string]: boolean;
|
|
92
|
-
}>;
|
|
93
|
-
styles: ComputedRef<any>;
|
|
94
|
-
disabled: ComputedRef<boolean>;
|
|
95
|
-
onInput: (event: Event) => void;
|
|
96
|
-
onFocus: (event: Event) => void;
|
|
97
|
-
onBlur: (event: Event) => void;
|
|
98
|
-
clear: (event: Event) => void;
|
|
99
|
-
startComposing: ({ target }: Event) => void;
|
|
100
|
-
endComposing: ({ target }: Event) => void;
|
|
101
|
-
onClick: (event: MouseEvent) => void;
|
|
102
|
-
onClickInput: (event: MouseEvent) => void;
|
|
103
|
-
focus: () => void;
|
|
104
|
-
blur: () => void;
|
|
105
|
-
select: () => void;
|
|
106
|
-
onKeyup: (e: KeyboardEvent) => void;
|
|
107
|
-
getModelValue: () => string;
|
|
108
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "clear" | "blur" | "focus" | "keypress" | "update:modelValue" | "clickInput" | "confirm")[], "click" | "clear" | "blur" | "focus" | "keypress" | "update:modelValue" | "clickInput" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
-
type: {
|
|
110
|
-
type: PropType<InputType>;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
modelValue: {
|
|
114
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
placeholder: {
|
|
118
|
-
type: StringConstructor;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
inputAlign: {
|
|
122
|
-
type: PropType<InputAlignType>;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
required: {
|
|
126
|
-
type: BooleanConstructor;
|
|
127
|
-
default: boolean;
|
|
128
|
-
};
|
|
129
|
-
disabled: {
|
|
130
|
-
type: BooleanConstructor;
|
|
131
|
-
default: boolean;
|
|
132
|
-
};
|
|
133
|
-
readonly: {
|
|
134
|
-
type: BooleanConstructor;
|
|
135
|
-
default: boolean;
|
|
136
|
-
};
|
|
137
|
-
maxLength: {
|
|
138
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
139
|
-
default: string;
|
|
140
|
-
};
|
|
141
|
-
clearable: {
|
|
142
|
-
type: BooleanConstructor;
|
|
143
|
-
default: boolean;
|
|
144
|
-
};
|
|
145
|
-
clearSize: {
|
|
146
|
-
type: (NumberConstructor | StringConstructor)[];
|
|
147
|
-
default: string;
|
|
148
|
-
};
|
|
149
|
-
border: {
|
|
150
|
-
type: BooleanConstructor;
|
|
151
|
-
default: boolean;
|
|
152
|
-
};
|
|
153
|
-
formatTrigger: {
|
|
154
|
-
type: PropType<InputFormatTrigger>;
|
|
155
|
-
default: string;
|
|
156
|
-
};
|
|
157
|
-
formatter: {
|
|
158
|
-
type: PropType<(value: string) => string>;
|
|
159
|
-
default: null;
|
|
160
|
-
};
|
|
161
|
-
showWordLimit: {
|
|
162
|
-
type: BooleanConstructor;
|
|
163
|
-
default: boolean;
|
|
164
|
-
};
|
|
165
|
-
autofocus: {
|
|
166
|
-
type: BooleanConstructor;
|
|
167
|
-
default: boolean;
|
|
168
|
-
};
|
|
169
|
-
confirmType: {
|
|
170
|
-
type: PropType<ConfirmTextType>;
|
|
171
|
-
default: string;
|
|
172
|
-
};
|
|
173
|
-
error: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
showClearIcon: {
|
|
178
|
-
type: BooleanConstructor;
|
|
179
|
-
default: boolean;
|
|
180
|
-
};
|
|
181
|
-
class: {
|
|
182
|
-
type: StringConstructor;
|
|
183
|
-
default: string;
|
|
184
|
-
};
|
|
185
|
-
}>> & {
|
|
186
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
187
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
188
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
189
|
-
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
190
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
191
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
192
|
-
onClickInput?: ((...args: any[]) => any) | undefined;
|
|
193
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
194
|
-
}, {
|
|
195
|
-
disabled: boolean;
|
|
196
|
-
type: InputType;
|
|
197
|
-
class: string;
|
|
198
|
-
error: boolean;
|
|
199
|
-
border: boolean;
|
|
200
|
-
placeholder: string;
|
|
201
|
-
modelValue: string | number;
|
|
202
|
-
maxLength: string | number;
|
|
203
|
-
clearable: boolean;
|
|
204
|
-
autofocus: boolean;
|
|
205
|
-
readonly: boolean;
|
|
206
|
-
inputAlign: InputAlignType;
|
|
207
|
-
formatter: (value: string) => string;
|
|
208
|
-
required: boolean;
|
|
209
|
-
clearSize: string | number;
|
|
210
|
-
formatTrigger: InputFormatTrigger;
|
|
211
|
-
showWordLimit: boolean;
|
|
212
|
-
confirmType: ConfirmTextType;
|
|
213
|
-
showClearIcon: boolean;
|
|
214
|
-
}, {}>>;
|
|
215
|
-
export default _default;
|
|
216
|
-
|
|
217
|
-
declare module 'vue' {
|
|
218
|
-
interface GlobalComponents {
|
|
219
|
-
NutInput: typeof _default;
|
|
220
|
-
}
|
|
221
|
-
}
|