bkui-vue 2.0.1-beta.80 → 2.0.1-beta.82
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 +31 -31
- package/dist/index.esm.js +4810 -4781
- package/dist/index.umd.js +33 -33
- package/lib/index.js +1 -1
- package/lib/search-select/index.js +2 -1
- package/lib/upload/index.d.ts +25 -2
- package/lib/upload/index.js +48 -13
- package/lib/upload/props.d.ts +4 -0
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.d.ts +11 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
@@ -2967,6 +2967,7 @@ var SearchSelectProps = {
|
|
2967
2967
|
// life hooks
|
2968
2968
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2969
2969
|
addListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
2970
|
+
debounceResize();
|
2970
2971
|
});
|
2971
2972
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
2972
2973
|
removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
@@ -3108,7 +3109,7 @@ var SearchSelectProps = {
|
|
3108
3109
|
var _this = this,
|
3109
3110
|
_this$$slots$prepend,
|
3110
3111
|
_this$$slots2;
|
3111
|
-
var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT,
|
3112
|
+
var maxHeight = "".concat(this.isFocus ? this.maxHeight : INPUT_MIN_HEIGHT).replace('px', '');
|
3112
3113
|
var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
|
3113
3114
|
var menuSlots = Object.assign({}, this.$slots.menu ? {
|
3114
3115
|
menu: function menu(data) {
|
package/lib/upload/index.d.ts
CHANGED
@@ -114,14 +114,19 @@ declare const Upload: {
|
|
114
114
|
type: NumberConstructor;
|
115
115
|
default: number;
|
116
116
|
};
|
117
|
+
isShowPreview: {
|
118
|
+
type: BooleanConstructor;
|
119
|
+
default: boolean;
|
120
|
+
};
|
117
121
|
}>> & {
|
118
122
|
onError?: (...args: any[]) => any;
|
119
123
|
onProgress?: (...args: any[]) => any;
|
120
124
|
onDelete?: (...args: any[]) => any;
|
125
|
+
onPreview?: (...args: any[]) => any;
|
121
126
|
onDone?: (...args: any[]) => any;
|
122
127
|
onSuccess?: (...args: any[]) => any;
|
123
128
|
onExceed?: (...args: any[]) => any;
|
124
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
129
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "preview" | "exceed")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
125
130
|
type: {
|
126
131
|
type: import("vue").PropType<"formdata" | "binary">;
|
127
132
|
default: "formdata" | "binary";
|
@@ -236,10 +241,15 @@ declare const Upload: {
|
|
236
241
|
type: NumberConstructor;
|
237
242
|
default: number;
|
238
243
|
};
|
244
|
+
isShowPreview: {
|
245
|
+
type: BooleanConstructor;
|
246
|
+
default: boolean;
|
247
|
+
};
|
239
248
|
}>> & {
|
240
249
|
onError?: (...args: any[]) => any;
|
241
250
|
onProgress?: (...args: any[]) => any;
|
242
251
|
onDelete?: (...args: any[]) => any;
|
252
|
+
onPreview?: (...args: any[]) => any;
|
243
253
|
onDone?: (...args: any[]) => any;
|
244
254
|
onSuccess?: (...args: any[]) => any;
|
245
255
|
onExceed?: (...args: any[]) => any;
|
@@ -266,6 +276,7 @@ declare const Upload: {
|
|
266
276
|
sliceUrl: string;
|
267
277
|
mergeUrl: string;
|
268
278
|
chunkSize: number;
|
279
|
+
isShowPreview: boolean;
|
269
280
|
}, true, {}, {}, {
|
270
281
|
P: {};
|
271
282
|
B: {};
|
@@ -388,10 +399,15 @@ declare const Upload: {
|
|
388
399
|
type: NumberConstructor;
|
389
400
|
default: number;
|
390
401
|
};
|
402
|
+
isShowPreview: {
|
403
|
+
type: BooleanConstructor;
|
404
|
+
default: boolean;
|
405
|
+
};
|
391
406
|
}>> & {
|
392
407
|
onError?: (...args: any[]) => any;
|
393
408
|
onProgress?: (...args: any[]) => any;
|
394
409
|
onDelete?: (...args: any[]) => any;
|
410
|
+
onPreview?: (...args: any[]) => any;
|
395
411
|
onDone?: (...args: any[]) => any;
|
396
412
|
onSuccess?: (...args: any[]) => any;
|
397
413
|
onExceed?: (...args: any[]) => any;
|
@@ -418,6 +434,7 @@ declare const Upload: {
|
|
418
434
|
sliceUrl: string;
|
419
435
|
mergeUrl: string;
|
420
436
|
chunkSize: number;
|
437
|
+
isShowPreview: boolean;
|
421
438
|
}>;
|
422
439
|
__isFragment?: never;
|
423
440
|
__isTeleport?: never;
|
@@ -537,14 +554,19 @@ declare const Upload: {
|
|
537
554
|
type: NumberConstructor;
|
538
555
|
default: number;
|
539
556
|
};
|
557
|
+
isShowPreview: {
|
558
|
+
type: BooleanConstructor;
|
559
|
+
default: boolean;
|
560
|
+
};
|
540
561
|
}>> & {
|
541
562
|
onError?: (...args: any[]) => any;
|
542
563
|
onProgress?: (...args: any[]) => any;
|
543
564
|
onDelete?: (...args: any[]) => any;
|
565
|
+
onPreview?: (...args: any[]) => any;
|
544
566
|
onDone?: (...args: any[]) => any;
|
545
567
|
onSuccess?: (...args: any[]) => any;
|
546
568
|
onExceed?: (...args: any[]) => any;
|
547
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "exceed", {
|
569
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "preview" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "preview" | "exceed", {
|
548
570
|
name: string;
|
549
571
|
type: "formdata" | "binary";
|
550
572
|
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
@@ -567,5 +589,6 @@ declare const Upload: {
|
|
567
589
|
sliceUrl: string;
|
568
590
|
mergeUrl: string;
|
569
591
|
chunkSize: number;
|
592
|
+
isShowPreview: boolean;
|
570
593
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
571
594
|
export default Upload;
|
package/lib/upload/index.js
CHANGED
@@ -1476,6 +1476,11 @@ var types = [ETypes.FORMDATA, ETypes.BINARY];
|
|
1476
1476
|
chunkSize: {
|
1477
1477
|
type: Number,
|
1478
1478
|
"default": 10
|
1479
|
+
},
|
1480
|
+
// 是否显示预览按钮
|
1481
|
+
isShowPreview: {
|
1482
|
+
type: Boolean,
|
1483
|
+
"default": true
|
1479
1484
|
}
|
1480
1485
|
});
|
1481
1486
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
@@ -1541,7 +1546,7 @@ function _slicedToArray(arr, i) {
|
|
1541
1546
|
;// CONCATENATED MODULE: external "../icon"
|
1542
1547
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1543
1548
|
var icon_y = x => () => x
|
1544
|
-
const icon_namespaceObject = icon_x({ ["ArchiveFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ArchiveFill, ["AudioFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AudioFill, ["Del"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Del, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["ImageFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ImageFill, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus, ["RightTurnLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightTurnLine, ["TextFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextFill, ["Upload"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Upload, ["VideoFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.VideoFill });
|
1549
|
+
const icon_namespaceObject = icon_x({ ["ArchiveFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ArchiveFill, ["AudioFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AudioFill, ["Del"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Del, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Eye"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Eye, ["ImageFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ImageFill, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Plus, ["RightTurnLine"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightTurnLine, ["TextFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextFill, ["Upload"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Upload, ["VideoFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.VideoFill });
|
1545
1550
|
;// CONCATENATED MODULE: external "../progress"
|
1546
1551
|
var progress_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1547
1552
|
var progress_y = x => () => x
|
@@ -1596,9 +1601,10 @@ function _isSlot(s) {
|
|
1596
1601
|
theme: props.theme,
|
1597
1602
|
disabled: props.disabled,
|
1598
1603
|
files: props.files,
|
1599
|
-
multiple: props.multiple
|
1604
|
+
multiple: props.multiple,
|
1605
|
+
isShowPreview: props.isShowPreview
|
1600
1606
|
},
|
1601
|
-
emits: ['remove', 'retry'],
|
1607
|
+
emits: ['remove', 'preview', 'retry'],
|
1602
1608
|
setup: function setup(props, _ref) {
|
1603
1609
|
var slots = _ref.slots,
|
1604
1610
|
emit = _ref.emit;
|
@@ -1608,7 +1614,8 @@ function _isSlot(s) {
|
|
1608
1614
|
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
1609
1615
|
theme = _toRefs.theme,
|
1610
1616
|
disabled = _toRefs.disabled,
|
1611
|
-
multiple = _toRefs.multiple
|
1617
|
+
multiple = _toRefs.multiple,
|
1618
|
+
isShowPreview = _toRefs.isShowPreview;
|
1612
1619
|
var classBlock = "".concat(resolveClassName(CLASS_PREFIX), "-list");
|
1613
1620
|
var isPhotowall = (0,external_vue_namespaceObject.computed)(function () {
|
1614
1621
|
return theme.value === EThemes.PICTURE;
|
@@ -1625,6 +1632,9 @@ function _isSlot(s) {
|
|
1625
1632
|
var size = value / Math.pow(1024, index);
|
1626
1633
|
return "".concat(size.toFixed(2)).concat(uints[index]);
|
1627
1634
|
}
|
1635
|
+
function handleReview(file, e) {
|
1636
|
+
emit('preview', file, e);
|
1637
|
+
}
|
1628
1638
|
function handleRemove(file, e) {
|
1629
1639
|
emit('remove', file, e);
|
1630
1640
|
}
|
@@ -1666,7 +1676,12 @@ function _isSlot(s) {
|
|
1666
1676
|
"type": "circle"
|
1667
1677
|
}, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!disabled.value && (0,external_vue_namespaceObject.createVNode)("div", {
|
1668
1678
|
"class": "".concat(classBlock, "__picture-item-actions")
|
1669
|
-
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.
|
1679
|
+
}, [isShowPreview.value && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
|
1680
|
+
"class": "action-icon",
|
1681
|
+
"onClick": function onClick(e) {
|
1682
|
+
return handleReview(file, e);
|
1683
|
+
}
|
1684
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
|
1670
1685
|
"class": "action-icon",
|
1671
1686
|
"onClick": function onClick(e) {
|
1672
1687
|
return handleRemove(file, e);
|
@@ -1756,10 +1771,10 @@ function _isSlot(s) {
|
|
1756
1771
|
}, null)])])];
|
1757
1772
|
};
|
1758
1773
|
return function () {
|
1759
|
-
var _props$files;
|
1760
|
-
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [isSinglePhoto.value ?
|
1774
|
+
var _slots$innerTrigger, _props$files, _slots$innerTrigger2;
|
1775
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [isSinglePhoto.value ? slots === null || slots === void 0 || (_slots$innerTrigger = slots.innerTrigger) === null || _slots$innerTrigger === void 0 ? void 0 : _slots$innerTrigger.call(slots, (_props$files = props.files) === null || _props$files === void 0 ? void 0 : _props$files[0]) : (0,external_vue_namespaceObject.createVNode)("ul", {
|
1761
1776
|
"class": classNames.value
|
1762
|
-
}, [isPhotowall.value ? Photowall() : Normal(),
|
1777
|
+
}, [isPhotowall.value ? Photowall() : Normal(), slots === null || slots === void 0 || (_slots$innerTrigger2 = slots.innerTrigger) === null || _slots$innerTrigger2 === void 0 ? void 0 : _slots$innerTrigger2.call(slots)])]);
|
1763
1778
|
};
|
1764
1779
|
}
|
1765
1780
|
}));
|
@@ -1819,9 +1834,10 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1819
1834
|
file: {
|
1820
1835
|
type: Object
|
1821
1836
|
},
|
1822
|
-
selectChange: props.selectChange
|
1837
|
+
selectChange: props.selectChange,
|
1838
|
+
isShowPreview: props.isShowPreview
|
1823
1839
|
},
|
1824
|
-
emits: ['change', 'remove'],
|
1840
|
+
emits: ['change', 'remove', 'preview'],
|
1825
1841
|
setup: function setup(props, _ref) {
|
1826
1842
|
var slots = _ref.slots,
|
1827
1843
|
emit = _ref.emit;
|
@@ -1833,7 +1849,8 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1833
1849
|
disabled = _toRefs.disabled,
|
1834
1850
|
file = _toRefs.file,
|
1835
1851
|
multiple = _toRefs.multiple,
|
1836
|
-
accept = _toRefs.accept
|
1852
|
+
accept = _toRefs.accept,
|
1853
|
+
isShowPreview = _toRefs.isShowPreview;
|
1837
1854
|
var classBlock = "".concat(resolveClassName(CLASS_PREFIX), "-trigger");
|
1838
1855
|
var isButton = (0,external_vue_namespaceObject.computed)(function () {
|
1839
1856
|
return theme.value === EThemes.BUTTON;
|
@@ -1887,6 +1904,11 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1887
1904
|
e.stopPropagation();
|
1888
1905
|
e.preventDefault();
|
1889
1906
|
}
|
1907
|
+
function handleReview(file, e) {
|
1908
|
+
emit('preview', file, e);
|
1909
|
+
e.stopPropagation();
|
1910
|
+
e.preventDefault();
|
1911
|
+
}
|
1890
1912
|
var dragover = (0,external_vue_namespaceObject.ref)(false);
|
1891
1913
|
var Dragger = function Dragger() {
|
1892
1914
|
var handleDrop = function handleDrop(e) {
|
@@ -1952,7 +1974,12 @@ const button_less_namespaceObject = button_less_x({ });
|
|
1952
1974
|
"type": "circle"
|
1953
1975
|
}, null)]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [!props.disabled && (0,external_vue_namespaceObject.createVNode)("div", {
|
1954
1976
|
"class": "".concat(classBlock, "__picture-actions")
|
1955
|
-
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.
|
1977
|
+
}, [isShowPreview.value && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Eye, {
|
1978
|
+
"class": "action-icon",
|
1979
|
+
"onClick": function onClick(e) {
|
1980
|
+
return handleReview(file, e);
|
1981
|
+
}
|
1982
|
+
}, null), (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Del, {
|
1956
1983
|
"class": "action-icon",
|
1957
1984
|
"onClick": function onClick(e) {
|
1958
1985
|
return handleRemove(file, e);
|
@@ -2651,7 +2678,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2651
2678
|
/* harmony default export */ const upload = ((0,external_vue_namespaceObject.defineComponent)({
|
2652
2679
|
name: 'Upload',
|
2653
2680
|
props: props,
|
2654
|
-
emits: ['exceed', 'progress', 'success', 'error', 'delete', 'done'],
|
2681
|
+
emits: ['exceed', 'progress', 'success', 'error', 'delete', 'done', 'preview'],
|
2655
2682
|
setup: function setup(props, _ref) {
|
2656
2683
|
var slots = _ref.slots,
|
2657
2684
|
emit = _ref.emit,
|
@@ -2675,6 +2702,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2675
2702
|
multiple: props.multiple,
|
2676
2703
|
disabled: props.disabled,
|
2677
2704
|
accept: props.accept,
|
2705
|
+
isShowPreview: props.isShowPreview,
|
2678
2706
|
selectChange: props.selectChange
|
2679
2707
|
};
|
2680
2708
|
});
|
@@ -2729,6 +2757,9 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2729
2757
|
_iterator.f();
|
2730
2758
|
}
|
2731
2759
|
}
|
2760
|
+
function handlePreview(file) {
|
2761
|
+
emit('preview', file);
|
2762
|
+
}
|
2732
2763
|
function handleRetry(file) {
|
2733
2764
|
send(file.raw);
|
2734
2765
|
}
|
@@ -2862,6 +2893,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2862
2893
|
});
|
2863
2894
|
});
|
2864
2895
|
expose({
|
2896
|
+
handlePreview: handlePreview,
|
2865
2897
|
handleRemove: handleRemove,
|
2866
2898
|
handleRetry: handleRetry
|
2867
2899
|
});
|
@@ -2875,8 +2907,10 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2875
2907
|
}, [props.tip]), (0,external_vue_namespaceObject.createVNode)(upload_list, {
|
2876
2908
|
"disabled": props.disabled,
|
2877
2909
|
"files": fileList.value,
|
2910
|
+
"isShowPreview": props.isShowPreview,
|
2878
2911
|
"multiple": props.multiple,
|
2879
2912
|
"theme": props.theme,
|
2913
|
+
"onPreview": handlePreview,
|
2880
2914
|
"onRemove": handleRemove,
|
2881
2915
|
"onRetry": handleRetry
|
2882
2916
|
}, {
|
@@ -2884,6 +2918,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2884
2918
|
return isPhotowall.value && (0,external_vue_namespaceObject.createVNode)(upload_trigger, (0,external_vue_namespaceObject.mergeProps)(triggerProps.value, {
|
2885
2919
|
"file": file,
|
2886
2920
|
"onChange": handleFiles,
|
2921
|
+
"onPreview": handlePreview,
|
2887
2922
|
"onRemove": handleRemove
|
2888
2923
|
}), slots);
|
2889
2924
|
},
|
package/lib/upload/props.d.ts
CHANGED
@@ -17,7 +17,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
type: BooleanConstructor;
|
18
18
|
default: boolean;
|
19
19
|
};
|
20
|
-
|
20
|
+
isShowPreview: {
|
21
|
+
type: BooleanConstructor;
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "preview" | "retry")[], "remove" | "preview" | "retry", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
25
|
theme: {
|
22
26
|
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
23
27
|
default: "button" | "picture" | "draggable";
|
@@ -35,13 +39,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
39
|
type: BooleanConstructor;
|
36
40
|
default: boolean;
|
37
41
|
};
|
42
|
+
isShowPreview: {
|
43
|
+
type: BooleanConstructor;
|
44
|
+
default: boolean;
|
45
|
+
};
|
38
46
|
}>> & {
|
39
47
|
onRemove?: (...args: any[]) => any;
|
48
|
+
onPreview?: (...args: any[]) => any;
|
40
49
|
onRetry?: (...args: any[]) => any;
|
41
50
|
}, {
|
42
51
|
disabled: boolean;
|
43
52
|
theme: "button" | "picture" | "draggable";
|
44
53
|
multiple: boolean;
|
45
54
|
files: UploadFile[];
|
55
|
+
isShowPreview: boolean;
|
46
56
|
}, {}>;
|
47
57
|
export default _default;
|
@@ -23,7 +23,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
selectChange: {
|
24
24
|
type: PropType<(event: Event) => boolean | void>;
|
25
25
|
};
|
26
|
-
|
26
|
+
isShowPreview: {
|
27
|
+
type: BooleanConstructor;
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "remove" | "preview")[], "change" | "remove" | "preview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
31
|
theme: {
|
28
32
|
type: PropType<"button" | "picture" | "draggable">;
|
29
33
|
default: "button" | "picture" | "draggable";
|
@@ -46,12 +50,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
50
|
selectChange: {
|
47
51
|
type: PropType<(event: Event) => boolean | void>;
|
48
52
|
};
|
53
|
+
isShowPreview: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: boolean;
|
56
|
+
};
|
49
57
|
}>> & {
|
50
58
|
onChange?: (...args: any[]) => any;
|
51
59
|
onRemove?: (...args: any[]) => any;
|
60
|
+
onPreview?: (...args: any[]) => any;
|
52
61
|
}, {
|
53
62
|
disabled: boolean;
|
54
63
|
theme: "button" | "picture" | "draggable";
|
55
64
|
multiple: boolean;
|
65
|
+
isShowPreview: boolean;
|
56
66
|
}, {}>;
|
57
67
|
export default _default;
|
package/lib/upload/upload.d.ts
CHANGED
@@ -114,7 +114,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
114
114
|
type: NumberConstructor;
|
115
115
|
default: number;
|
116
116
|
};
|
117
|
-
|
117
|
+
isShowPreview: {
|
118
|
+
type: BooleanConstructor;
|
119
|
+
default: boolean;
|
120
|
+
};
|
121
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("done" | "error" | "progress" | "delete" | "success" | "preview" | "exceed")[], "done" | "error" | "progress" | "delete" | "success" | "preview" | "exceed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
118
122
|
type: {
|
119
123
|
type: import("vue").PropType<"formdata" | "binary">;
|
120
124
|
default: "formdata" | "binary";
|
@@ -229,10 +233,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
229
233
|
type: NumberConstructor;
|
230
234
|
default: number;
|
231
235
|
};
|
236
|
+
isShowPreview: {
|
237
|
+
type: BooleanConstructor;
|
238
|
+
default: boolean;
|
239
|
+
};
|
232
240
|
}>> & {
|
233
241
|
onError?: (...args: any[]) => any;
|
234
242
|
onProgress?: (...args: any[]) => any;
|
235
243
|
onDelete?: (...args: any[]) => any;
|
244
|
+
onPreview?: (...args: any[]) => any;
|
236
245
|
onDone?: (...args: any[]) => any;
|
237
246
|
onSuccess?: (...args: any[]) => any;
|
238
247
|
onExceed?: (...args: any[]) => any;
|
@@ -259,5 +268,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
259
268
|
sliceUrl: string;
|
260
269
|
mergeUrl: string;
|
261
270
|
chunkSize: number;
|
271
|
+
isShowPreview: boolean;
|
262
272
|
}, {}>;
|
263
273
|
export default _default;
|