zartui 3.1.79 → 3.1.81
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/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/media-picker/MediaPicker.mjs +3 -1
- package/es/media-player/MediaPlayer.d.ts +13 -10
- package/es/media-player/MediaPlayer.mjs +4 -2
- package/es/media-player/index.d.ts +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/MediaPicker.js +3 -1
- package/lib/media-player/MediaPlayer.d.ts +13 -10
- package/lib/media-player/MediaPlayer.js +4 -2
- package/lib/media-player/index.d.ts +2 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +8 -4
- package/lib/zartui.es.js +8 -4
- package/lib/zartui.js +80 -23
- package/lib/zartui.min.js +2 -2
- package/package.json +4 -4
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
|
@@ -77,7 +77,7 @@ import { Timeline } from "./timeline/index.mjs";
|
|
|
77
77
|
import { Toast } from "./toast/index.mjs";
|
|
78
78
|
import { Uploader } from "./uploader/index.mjs";
|
|
79
79
|
import { Video } from "./video/index.mjs";
|
|
80
|
-
const version = "3.1.
|
|
80
|
+
const version = "3.1.81";
|
|
81
81
|
function install(app) {
|
|
82
82
|
const components = [
|
|
83
83
|
ActionSheet,
|
|
@@ -900,13 +900,15 @@ var stdin_default = defineComponent({
|
|
|
900
900
|
"show": mediaPlayerVisible.value,
|
|
901
901
|
"onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
|
|
902
902
|
"mediaType": mediaTypeToPlay.value,
|
|
903
|
-
"mediaUrl": mediaUrlToPlay.value
|
|
903
|
+
"mediaUrl": mediaUrlToPlay.value,
|
|
904
|
+
"teleport": "body"
|
|
904
905
|
}, props.mediaPlayerProps), null), _createVNode(ZtActionSheet, {
|
|
905
906
|
"show": actionVisible.value,
|
|
906
907
|
"onUpdate:show": ($event) => actionVisible.value = $event,
|
|
907
908
|
"actions": actionOptions.value,
|
|
908
909
|
"description": "\u8BF7\u9009\u62E9",
|
|
909
910
|
"cancel-text": "\u53D6\u6D88",
|
|
911
|
+
"teleport": "body",
|
|
910
912
|
"close-on-click-action": true,
|
|
911
913
|
"onSelect": selectAction
|
|
912
914
|
}, null), _withDirectives(_createVNode("div", {
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import type { MediaType } from '../media-picker/type';
|
|
2
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare const mediaPlayerProps: {
|
|
4
4
|
show: BooleanConstructor;
|
|
5
5
|
mediaType: {
|
|
6
|
-
type:
|
|
6
|
+
type: PropType<MediaType>;
|
|
7
7
|
default: MediaType;
|
|
8
8
|
};
|
|
9
9
|
mediaUrl: {
|
|
10
|
-
type:
|
|
10
|
+
type: PropType<string>;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
14
14
|
controlsList: {
|
|
15
|
-
type:
|
|
15
|
+
type: PropType<string[]>;
|
|
16
16
|
default: () => string[];
|
|
17
17
|
};
|
|
18
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
18
19
|
};
|
|
19
20
|
export type MediaPlayerProps = ExtractPropTypes<typeof mediaPlayerProps>;
|
|
20
21
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
22
|
show: BooleanConstructor;
|
|
22
23
|
mediaType: {
|
|
23
|
-
type:
|
|
24
|
+
type: PropType<MediaType>;
|
|
24
25
|
default: MediaType;
|
|
25
26
|
};
|
|
26
27
|
mediaUrl: {
|
|
27
|
-
type:
|
|
28
|
+
type: PropType<string>;
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
31
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
31
32
|
controlsList: {
|
|
32
|
-
type:
|
|
33
|
+
type: PropType<string[]>;
|
|
33
34
|
default: () => string[];
|
|
34
35
|
};
|
|
36
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
35
37
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
36
38
|
show: BooleanConstructor;
|
|
37
39
|
mediaType: {
|
|
38
|
-
type:
|
|
40
|
+
type: PropType<MediaType>;
|
|
39
41
|
default: MediaType;
|
|
40
42
|
};
|
|
41
43
|
mediaUrl: {
|
|
42
|
-
type:
|
|
44
|
+
type: PropType<string>;
|
|
43
45
|
default: string;
|
|
44
46
|
};
|
|
45
47
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
46
48
|
controlsList: {
|
|
47
|
-
type:
|
|
49
|
+
type: PropType<string[]>;
|
|
48
50
|
default: () => string[];
|
|
49
51
|
};
|
|
52
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
50
53
|
}>> & Readonly<{
|
|
51
54
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
52
55
|
}>, {
|
|
@@ -7,7 +7,8 @@ const mediaPlayerProps = {
|
|
|
7
7
|
mediaType: makeStringProp("file"),
|
|
8
8
|
mediaUrl: makeStringProp(""),
|
|
9
9
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
10
|
-
controlsList: makeArrayProp([])
|
|
10
|
+
controlsList: makeArrayProp([]),
|
|
11
|
+
teleport: [String, Object]
|
|
11
12
|
};
|
|
12
13
|
const [name, bem] = createNamespace("media-player");
|
|
13
14
|
var stdin_default = defineComponent({
|
|
@@ -92,7 +93,8 @@ var stdin_default = defineComponent({
|
|
|
92
93
|
"safe-area-inset-bottom": true,
|
|
93
94
|
"close-on-popstate": true,
|
|
94
95
|
"onOpen": onOpen,
|
|
95
|
-
"onClickOverlay": onClose
|
|
96
|
+
"onClickOverlay": onClose,
|
|
97
|
+
"teleport": props.teleport
|
|
96
98
|
}, {
|
|
97
99
|
default: () => [renderTag(), _createVNode("div", {
|
|
98
100
|
"class": bem("cancel")
|
|
@@ -12,6 +12,7 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
|
|
|
12
12
|
type: import("vue").PropType<string[]>;
|
|
13
13
|
default: () => string[];
|
|
14
14
|
};
|
|
15
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
15
16
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
show: BooleanConstructor;
|
|
17
18
|
mediaType: {
|
|
@@ -26,6 +27,7 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
|
|
|
26
27
|
type: import("vue").PropType<string[]>;
|
|
27
28
|
default: () => string[];
|
|
28
29
|
};
|
|
30
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
29
31
|
}>> & Readonly<{
|
|
30
32
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
31
33
|
}>, {
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -182,7 +182,7 @@ __reExport(stdin_exports, require("./timeline"), module.exports);
|
|
|
182
182
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
183
183
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
184
184
|
__reExport(stdin_exports, require("./video"), module.exports);
|
|
185
|
-
const version = "3.1.
|
|
185
|
+
const version = "3.1.81";
|
|
186
186
|
function install(app) {
|
|
187
187
|
const components = [
|
|
188
188
|
import_action_sheet.ActionSheet,
|
|
@@ -932,13 +932,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
932
932
|
"show": mediaPlayerVisible.value,
|
|
933
933
|
"onUpdate:show": ($event) => mediaPlayerVisible.value = $event,
|
|
934
934
|
"mediaType": mediaTypeToPlay.value,
|
|
935
|
-
"mediaUrl": mediaUrlToPlay.value
|
|
935
|
+
"mediaUrl": mediaUrlToPlay.value,
|
|
936
|
+
"teleport": "body"
|
|
936
937
|
}, props.mediaPlayerProps), null), (0, import_vue.createVNode)(import_action_sheet.default, {
|
|
937
938
|
"show": actionVisible.value,
|
|
938
939
|
"onUpdate:show": ($event) => actionVisible.value = $event,
|
|
939
940
|
"actions": actionOptions.value,
|
|
940
941
|
"description": "\u8BF7\u9009\u62E9",
|
|
941
942
|
"cancel-text": "\u53D6\u6D88",
|
|
943
|
+
"teleport": "body",
|
|
942
944
|
"close-on-click-action": true,
|
|
943
945
|
"onSelect": selectAction
|
|
944
946
|
}, null), (0, import_vue.withDirectives)((0, import_vue.createVNode)("div", {
|
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import type { MediaType } from '../media-picker/type';
|
|
2
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
declare const mediaPlayerProps: {
|
|
4
4
|
show: BooleanConstructor;
|
|
5
5
|
mediaType: {
|
|
6
|
-
type:
|
|
6
|
+
type: PropType<MediaType>;
|
|
7
7
|
default: MediaType;
|
|
8
8
|
};
|
|
9
9
|
mediaUrl: {
|
|
10
|
-
type:
|
|
10
|
+
type: PropType<string>;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
14
14
|
controlsList: {
|
|
15
|
-
type:
|
|
15
|
+
type: PropType<string[]>;
|
|
16
16
|
default: () => string[];
|
|
17
17
|
};
|
|
18
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
18
19
|
};
|
|
19
20
|
export type MediaPlayerProps = ExtractPropTypes<typeof mediaPlayerProps>;
|
|
20
21
|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
22
|
show: BooleanConstructor;
|
|
22
23
|
mediaType: {
|
|
23
|
-
type:
|
|
24
|
+
type: PropType<MediaType>;
|
|
24
25
|
default: MediaType;
|
|
25
26
|
};
|
|
26
27
|
mediaUrl: {
|
|
27
|
-
type:
|
|
28
|
+
type: PropType<string>;
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
31
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
31
32
|
controlsList: {
|
|
32
|
-
type:
|
|
33
|
+
type: PropType<string[]>;
|
|
33
34
|
default: () => string[];
|
|
34
35
|
};
|
|
36
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
35
37
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
36
38
|
show: BooleanConstructor;
|
|
37
39
|
mediaType: {
|
|
38
|
-
type:
|
|
40
|
+
type: PropType<MediaType>;
|
|
39
41
|
default: MediaType;
|
|
40
42
|
};
|
|
41
43
|
mediaUrl: {
|
|
42
|
-
type:
|
|
44
|
+
type: PropType<string>;
|
|
43
45
|
default: string;
|
|
44
46
|
};
|
|
45
47
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
46
48
|
controlsList: {
|
|
47
|
-
type:
|
|
49
|
+
type: PropType<string[]>;
|
|
48
50
|
default: () => string[];
|
|
49
51
|
};
|
|
52
|
+
teleport: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
50
53
|
}>> & Readonly<{
|
|
51
54
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
52
55
|
}>, {
|
|
@@ -39,7 +39,8 @@ const mediaPlayerProps = {
|
|
|
39
39
|
mediaType: (0, import_utils.makeStringProp)("file"),
|
|
40
40
|
mediaUrl: (0, import_utils.makeStringProp)(""),
|
|
41
41
|
/** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
|
|
42
|
-
controlsList: (0, import_utils.makeArrayProp)([])
|
|
42
|
+
controlsList: (0, import_utils.makeArrayProp)([]),
|
|
43
|
+
teleport: [String, Object]
|
|
43
44
|
};
|
|
44
45
|
const [name, bem] = (0, import_utils.createNamespace)("media-player");
|
|
45
46
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
@@ -124,7 +125,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
124
125
|
"safe-area-inset-bottom": true,
|
|
125
126
|
"close-on-popstate": true,
|
|
126
127
|
"onOpen": onOpen,
|
|
127
|
-
"onClickOverlay": onClose
|
|
128
|
+
"onClickOverlay": onClose,
|
|
129
|
+
"teleport": props.teleport
|
|
128
130
|
}, {
|
|
129
131
|
default: () => [renderTag(), (0, import_vue.createVNode)("div", {
|
|
130
132
|
"class": bem("cancel")
|
|
@@ -12,6 +12,7 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
|
|
|
12
12
|
type: import("vue").PropType<string[]>;
|
|
13
13
|
default: () => string[];
|
|
14
14
|
};
|
|
15
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
15
16
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
show: BooleanConstructor;
|
|
17
18
|
mediaType: {
|
|
@@ -26,6 +27,7 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
|
|
|
26
27
|
type: import("vue").PropType<string[]>;
|
|
27
28
|
default: () => string[];
|
|
28
29
|
};
|
|
30
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
29
31
|
}>> & Readonly<{
|
|
30
32
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
31
33
|
}>, {
|