@nutui/nutui 4.0.0-beta.8 → 4.0.0-beta.9
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/nutui.es.js +8 -4
- package/dist/nutui.umd.cjs +7 -19974
- package/dist/packages/_es/Dialog.js +11 -16
- package/dist/packages/_es/ImagePreview.js +6 -8
- package/dist/packages/_es/Notify.js +4 -5
- package/dist/packages/_es/Toast.js +6 -7
- package/dist/packages/dialog/index.mjs +2 -1
- package/dist/packages/imagepreview/index.mjs +2 -1
- package/dist/packages/notify/index.mjs +2 -1
- package/dist/packages/toast/index.mjs +2 -1
- package/dist/smartips/attributes.json +6 -6
- package/dist/smartips/tags.json +6 -6
- package/dist/smartips/web-types.json +7 -7
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +46 -46
- package/dist/styles/themes/jdb.scss +46 -46
- package/dist/styles/themes/jddkh.scss +46 -46
- package/dist/styles/themes/jdt.scss +46 -46
- package/dist/types/__VUE/dialog/index.d.ts +9 -9
- package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
- package/dist/types/__VUE/notify/index.d.ts +3 -3
- package/dist/types/__VUE/toast/index.d.ts +3 -3
- package/dist/types/index.d.ts +10 -6
- package/package.json +1 -1
|
@@ -14,12 +14,12 @@ export declare class DialogOptions {
|
|
|
14
14
|
teleport?: string | HTMLElement;
|
|
15
15
|
id?: string | number;
|
|
16
16
|
footerDirection?: string;
|
|
17
|
-
onUpdate?:
|
|
18
|
-
onOk?:
|
|
19
|
-
onCancel?:
|
|
20
|
-
onOpened?:
|
|
21
|
-
onClosed?:
|
|
22
|
-
beforeClose?:
|
|
17
|
+
onUpdate?: (value: boolean) => any | void;
|
|
18
|
+
onOk?: () => void;
|
|
19
|
+
onCancel?: () => void;
|
|
20
|
+
onOpened?: () => void;
|
|
21
|
+
onClosed?: () => void;
|
|
22
|
+
beforeClose?: (action: string) => any;
|
|
23
23
|
visible?: boolean;
|
|
24
24
|
noFooter?: boolean;
|
|
25
25
|
noOkBtn?: boolean;
|
|
@@ -33,9 +33,9 @@ declare class DialogFunction {
|
|
|
33
33
|
instance: any;
|
|
34
34
|
constructor(_options: DialogOptions);
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
36
|
+
declare const showDialog: {
|
|
37
37
|
(options: DialogOptions): DialogFunction;
|
|
38
38
|
install(app: any): void;
|
|
39
39
|
};
|
|
40
|
-
export {
|
|
41
|
-
export default
|
|
40
|
+
export { showDialog };
|
|
41
|
+
export default Dialog;
|
|
@@ -2,24 +2,24 @@ import ImagePreview from './index.vue';
|
|
|
2
2
|
import { ImageInterface } from './types';
|
|
3
3
|
import { Interceptor } from '@/packages/utils/util';
|
|
4
4
|
export declare class ImagePreviewOptions {
|
|
5
|
-
show:
|
|
5
|
+
show: boolean;
|
|
6
6
|
images: ImageInterface[];
|
|
7
7
|
videos?: [];
|
|
8
|
-
contentClose?:
|
|
9
|
-
initNo?:
|
|
10
|
-
paginationVisible?:
|
|
11
|
-
paginationColor?:
|
|
12
|
-
autoplay?:
|
|
13
|
-
isWrapTeleport?:
|
|
8
|
+
contentClose?: boolean;
|
|
9
|
+
initNo?: number;
|
|
10
|
+
paginationVisible?: boolean;
|
|
11
|
+
paginationColor?: string;
|
|
12
|
+
autoplay?: number | string;
|
|
13
|
+
isWrapTeleport?: boolean;
|
|
14
14
|
showIndex?: boolean;
|
|
15
15
|
closeable?: boolean;
|
|
16
16
|
closeIcon?: string;
|
|
17
|
-
closeIconPosition?:
|
|
17
|
+
closeIconPosition?: string;
|
|
18
18
|
beforeClose?: Interceptor;
|
|
19
19
|
maxZoom?: number;
|
|
20
20
|
minZoom?: number;
|
|
21
21
|
isLoop?: boolean;
|
|
22
|
-
onClose
|
|
22
|
+
onClose?(): void;
|
|
23
23
|
onChange?(index: number): void;
|
|
24
24
|
teleport?: string | HTMLElement;
|
|
25
25
|
}
|
|
@@ -27,9 +27,9 @@ declare class ImagePreviewFunction {
|
|
|
27
27
|
options: ImagePreviewOptions;
|
|
28
28
|
constructor(_options: ImagePreviewOptions);
|
|
29
29
|
}
|
|
30
|
-
declare const
|
|
30
|
+
declare const showImagePreview: {
|
|
31
31
|
(options: ImagePreviewOptions): ImagePreviewFunction;
|
|
32
32
|
install(app: any): void;
|
|
33
33
|
};
|
|
34
|
-
export {
|
|
35
|
-
export default
|
|
34
|
+
export { showImagePreview };
|
|
35
|
+
export default ImagePreview;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Notify from './index.vue';
|
|
2
|
-
|
|
2
|
+
declare const showNotify: {
|
|
3
3
|
text(msg: string, obj?: {}): {
|
|
4
4
|
[x: string]: unknown;
|
|
5
5
|
} | undefined;
|
|
@@ -18,5 +18,5 @@ export declare const NotifyFunction: {
|
|
|
18
18
|
hide(): void;
|
|
19
19
|
install(app: any): void;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export { showNotify };
|
|
22
|
+
export default Notify;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Toast from './index.vue';
|
|
2
|
-
|
|
2
|
+
declare const showToast: {
|
|
3
3
|
text(msg: string, opts?: {}): any | undefined;
|
|
4
4
|
success(msg: string, opts?: {}): any | undefined;
|
|
5
5
|
fail(msg: string, opts?: {}): any | undefined;
|
|
@@ -8,5 +8,5 @@ export declare const ToastFunction: {
|
|
|
8
8
|
hide(id?: string): void;
|
|
9
9
|
install(app: any): void;
|
|
10
10
|
};
|
|
11
|
-
export {
|
|
12
|
-
export default
|
|
11
|
+
export { showToast };
|
|
12
|
+
export default Toast;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -52,12 +52,15 @@ import Swipe from './__VUE/swipe/index.vue';
|
|
|
52
52
|
import ActionSheet from './__VUE/actionsheet/index.vue';
|
|
53
53
|
import Backtop from './__VUE/backtop/index.vue';
|
|
54
54
|
import Drag from './__VUE/drag/index.vue';
|
|
55
|
-
import Dialog from './__VUE/dialog/index';
|
|
55
|
+
import Dialog from './__VUE/dialog/index.vue';
|
|
56
|
+
import { showDialog } from './__VUE/dialog/index';
|
|
56
57
|
import InfiniteLoading from './__VUE/infiniteloading/index.vue';
|
|
57
58
|
import PullRefresh from './__VUE/pullrefresh/index.vue';
|
|
58
|
-
import Notify from './__VUE/notify/index';
|
|
59
|
+
import Notify from './__VUE/notify/index.vue';
|
|
60
|
+
import { showNotify } from './__VUE/notify/index';
|
|
59
61
|
import Switch from './__VUE/switch/index.vue';
|
|
60
|
-
import Toast from './__VUE/toast/index';
|
|
62
|
+
import Toast from './__VUE/toast/index.vue';
|
|
63
|
+
import { showToast } from './__VUE/toast/index';
|
|
61
64
|
import Audio from './__VUE/audio/index.vue';
|
|
62
65
|
import AudioOperate from './__VUE/audiooperate/index.vue';
|
|
63
66
|
import Avatar from './__VUE/avatar/index.vue';
|
|
@@ -73,7 +76,8 @@ import Step from './__VUE/step/index.vue';
|
|
|
73
76
|
import Swiper from './__VUE/swiper/index.vue';
|
|
74
77
|
import SwiperItem from './__VUE/swiperitem/index.vue';
|
|
75
78
|
import Price from './__VUE/price/index.vue';
|
|
76
|
-
import ImagePreview from './__VUE/imagepreview/index';
|
|
79
|
+
import ImagePreview from './__VUE/imagepreview/index.vue';
|
|
80
|
+
import { showImagePreview } from './__VUE/imagepreview/index';
|
|
77
81
|
import Countup from './__VUE/countup/index.vue';
|
|
78
82
|
import Countdown from './__VUE/countdown/index.vue';
|
|
79
83
|
import Badge from './__VUE/badge/index.vue';
|
|
@@ -103,8 +107,8 @@ import CategoryPane from './__VUE/categorypane/index.vue';
|
|
|
103
107
|
import Comment from './__VUE/comment/index.vue';
|
|
104
108
|
import Invoice from './__VUE/invoice/index.vue';
|
|
105
109
|
declare function install(app: App): void;
|
|
106
|
-
declare const version = "4.0.0-beta.
|
|
107
|
-
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, 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 };
|
|
110
|
+
declare const version = "4.0.0-beta.9";
|
|
111
|
+
export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, 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, showDialog, showNotify, showToast, showImagePreview };
|
|
108
112
|
declare const _default: {
|
|
109
113
|
install: typeof install;
|
|
110
114
|
version: string;
|