zartui 3.1.78 → 3.1.79
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.d.ts +0 -4
- package/es/media-picker/MediaPicker.mjs +2 -4
- package/es/media-picker/index.d.ts +0 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/MediaPicker.d.ts +0 -4
- package/lib/media-picker/MediaPicker.js +2 -4
- package/lib/media-picker/index.d.ts +0 -3
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +3 -5
- package/lib/zartui.es.js +3 -5
- package/lib/zartui.js +3 -5
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
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.79";
|
|
81
81
|
function install(app) {
|
|
82
82
|
const components = [
|
|
83
83
|
ActionSheet,
|
|
@@ -90,7 +90,6 @@ declare const mediaPickerProps: {
|
|
|
90
90
|
default: MediaSizeType;
|
|
91
91
|
};
|
|
92
92
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
93
|
-
autoCheckFileType: BooleanConstructor;
|
|
94
93
|
};
|
|
95
94
|
export type MediaPickerProps = ExtractPropTypes<typeof mediaPickerProps>;
|
|
96
95
|
export type MediaPickerInstance = ComponentPublicInstance<{
|
|
@@ -184,7 +183,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
184
183
|
default: MediaSizeType;
|
|
185
184
|
};
|
|
186
185
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
187
|
-
autoCheckFileType: BooleanConstructor;
|
|
188
186
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "processing" | "update:mediaList")[], "delete" | "processing" | "update:mediaList", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
189
187
|
sortable: {
|
|
190
188
|
type: BooleanConstructor;
|
|
@@ -273,7 +271,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
273
271
|
default: MediaSizeType;
|
|
274
272
|
};
|
|
275
273
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
276
|
-
autoCheckFileType: BooleanConstructor;
|
|
277
274
|
}>> & Readonly<{
|
|
278
275
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
279
276
|
onProcessing?: ((...args: any[]) => any) | undefined;
|
|
@@ -304,6 +301,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
304
301
|
allowPickFile: boolean;
|
|
305
302
|
useWx: boolean;
|
|
306
303
|
imageSizeType: MediaSizeType;
|
|
307
|
-
autoCheckFileType: boolean;
|
|
308
304
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
309
305
|
export default _default;
|
|
@@ -121,9 +121,7 @@ const mediaPickerProps = {
|
|
|
121
121
|
// 是否强制使用微信
|
|
122
122
|
useWx: Boolean,
|
|
123
123
|
imageSizeType: makeStringProp("compressed"),
|
|
124
|
-
mediaPlayerProps: Object
|
|
125
|
-
// 是否自动检查文件类型(校验文件扩展名与实际文件头信息是否匹配)
|
|
126
|
-
autoCheckFileType: Boolean
|
|
124
|
+
mediaPlayerProps: Object
|
|
127
125
|
};
|
|
128
126
|
var stdin_default = defineComponent({
|
|
129
127
|
name,
|
|
@@ -533,7 +531,7 @@ var stdin_default = defineComponent({
|
|
|
533
531
|
if (!checkFileCountAfterAdd(files)) {
|
|
534
532
|
return;
|
|
535
533
|
}
|
|
536
|
-
if (props.
|
|
534
|
+
if (props.keepFileType) {
|
|
537
535
|
try {
|
|
538
536
|
for (const file of files) {
|
|
539
537
|
const buffer = yield file.slice(0, 4100).arrayBuffer();
|
|
@@ -76,7 +76,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
76
76
|
default: import("./type").MediaSizeType;
|
|
77
77
|
};
|
|
78
78
|
mediaPlayerProps: import("vue").PropType<Partial<import("..").MediaPlayerProps>>;
|
|
79
|
-
autoCheckFileType: BooleanConstructor;
|
|
80
79
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "processing" | "update:mediaList")[], "delete" | "processing" | "update:mediaList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
80
|
sortable: {
|
|
82
81
|
type: BooleanConstructor;
|
|
@@ -155,7 +154,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
155
154
|
default: import("./type").MediaSizeType;
|
|
156
155
|
};
|
|
157
156
|
mediaPlayerProps: import("vue").PropType<Partial<import("..").MediaPlayerProps>>;
|
|
158
|
-
autoCheckFileType: BooleanConstructor;
|
|
159
157
|
}>> & Readonly<{
|
|
160
158
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
161
159
|
onProcessing?: ((...args: any[]) => any) | undefined;
|
|
@@ -186,7 +184,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
186
184
|
allowPickFile: boolean;
|
|
187
185
|
useWx: boolean;
|
|
188
186
|
imageSizeType: import("./type").MediaSizeType;
|
|
189
|
-
autoCheckFileType: boolean;
|
|
190
187
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
191
188
|
export default MediaPicker;
|
|
192
189
|
export type { MediaPickerProps, MediaPickerInstance } from './MediaPicker';
|
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.79";
|
|
186
186
|
function install(app) {
|
|
187
187
|
const components = [
|
|
188
188
|
import_action_sheet.ActionSheet,
|
|
@@ -90,7 +90,6 @@ declare const mediaPickerProps: {
|
|
|
90
90
|
default: MediaSizeType;
|
|
91
91
|
};
|
|
92
92
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
93
|
-
autoCheckFileType: BooleanConstructor;
|
|
94
93
|
};
|
|
95
94
|
export type MediaPickerProps = ExtractPropTypes<typeof mediaPickerProps>;
|
|
96
95
|
export type MediaPickerInstance = ComponentPublicInstance<{
|
|
@@ -184,7 +183,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
184
183
|
default: MediaSizeType;
|
|
185
184
|
};
|
|
186
185
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
187
|
-
autoCheckFileType: BooleanConstructor;
|
|
188
186
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "processing" | "update:mediaList")[], "delete" | "processing" | "update:mediaList", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
189
187
|
sortable: {
|
|
190
188
|
type: BooleanConstructor;
|
|
@@ -273,7 +271,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
273
271
|
default: MediaSizeType;
|
|
274
272
|
};
|
|
275
273
|
mediaPlayerProps: PropType<Partial<MediaPlayerProps>>;
|
|
276
|
-
autoCheckFileType: BooleanConstructor;
|
|
277
274
|
}>> & Readonly<{
|
|
278
275
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
279
276
|
onProcessing?: ((...args: any[]) => any) | undefined;
|
|
@@ -304,6 +301,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
304
301
|
allowPickFile: boolean;
|
|
305
302
|
useWx: boolean;
|
|
306
303
|
imageSizeType: MediaSizeType;
|
|
307
|
-
autoCheckFileType: boolean;
|
|
308
304
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
309
305
|
export default _default;
|
|
@@ -153,9 +153,7 @@ const mediaPickerProps = {
|
|
|
153
153
|
// 是否强制使用微信
|
|
154
154
|
useWx: Boolean,
|
|
155
155
|
imageSizeType: (0, import_utils.makeStringProp)("compressed"),
|
|
156
|
-
mediaPlayerProps: Object
|
|
157
|
-
// 是否自动检查文件类型(校验文件扩展名与实际文件头信息是否匹配)
|
|
158
|
-
autoCheckFileType: Boolean
|
|
156
|
+
mediaPlayerProps: Object
|
|
159
157
|
};
|
|
160
158
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
161
159
|
name,
|
|
@@ -565,7 +563,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
565
563
|
if (!checkFileCountAfterAdd(files)) {
|
|
566
564
|
return;
|
|
567
565
|
}
|
|
568
|
-
if (props.
|
|
566
|
+
if (props.keepFileType) {
|
|
569
567
|
try {
|
|
570
568
|
for (const file of files) {
|
|
571
569
|
const buffer = yield file.slice(0, 4100).arrayBuffer();
|
|
@@ -76,7 +76,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
76
76
|
default: import("./type").MediaSizeType;
|
|
77
77
|
};
|
|
78
78
|
mediaPlayerProps: import("vue").PropType<Partial<import("..").MediaPlayerProps>>;
|
|
79
|
-
autoCheckFileType: BooleanConstructor;
|
|
80
79
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "processing" | "update:mediaList")[], "delete" | "processing" | "update:mediaList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
81
80
|
sortable: {
|
|
82
81
|
type: BooleanConstructor;
|
|
@@ -155,7 +154,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
155
154
|
default: import("./type").MediaSizeType;
|
|
156
155
|
};
|
|
157
156
|
mediaPlayerProps: import("vue").PropType<Partial<import("..").MediaPlayerProps>>;
|
|
158
|
-
autoCheckFileType: BooleanConstructor;
|
|
159
157
|
}>> & Readonly<{
|
|
160
158
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
161
159
|
onProcessing?: ((...args: any[]) => any) | undefined;
|
|
@@ -186,7 +184,6 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
186
184
|
allowPickFile: boolean;
|
|
187
185
|
useWx: boolean;
|
|
188
186
|
imageSizeType: import("./type").MediaSizeType;
|
|
189
|
-
autoCheckFileType: boolean;
|
|
190
187
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
191
188
|
export default MediaPicker;
|
|
192
189
|
export type { MediaPickerProps, MediaPickerInstance } from './MediaPicker';
|