bkui-vue 2.0.1-beta.57.table.2 → 2.0.1-beta.59
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 +55 -55
- package/dist/index.esm.js +7046 -7018
- package/dist/index.umd.js +53 -53
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/date-picker/index.js +9 -5
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/directives/index.js +8 -4
- package/lib/index.js +1 -1
- package/lib/input/index.js +29 -5
- package/lib/pagination/index.js +17 -1
- package/lib/table/hooks/use-settings.d.ts +2 -0
- package/lib/table/index.js +17 -5
- package/lib/table/plugins/head-filter.css +1 -0
- package/lib/table/plugins/head-filter.less +1 -0
- package/lib/table/plugins/head-filter.variable.css +1 -0
- package/lib/table/props.d.ts +1 -0
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +1 -0
- package/lib/table/utils.d.ts +1 -0
- package/lib/upload/index.d.ts +4 -4
- package/lib/upload/index.js +1 -1
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.d.ts +2 -2
- package/package.json +1 -1
package/lib/date-picker/index.js
CHANGED
@@ -2686,12 +2686,10 @@ var timeProps = {
|
|
2686
2686
|
// const parentProvide = injectStrict(timePickerKey);
|
2687
2687
|
var parentProvide = (0,external_vue_namespaceObject.inject)(timePickerKey);
|
2688
2688
|
var timeSpinnerRef = (0,external_vue_namespaceObject.ref)(null);
|
2689
|
+
var visibleDate = (0,external_vue_namespaceObject.ref)(src_fecha.format(parentProvide.panelDate, props.format));
|
2689
2690
|
var showSeconds = (0,external_vue_namespaceObject.computed)(function () {
|
2690
2691
|
return !(props.format || '').match(/mm$/);
|
2691
2692
|
});
|
2692
|
-
var visibleDate = (0,external_vue_namespaceObject.computed)(function () {
|
2693
|
-
return src_fecha.format(parentProvide.panelDate, props.format);
|
2694
|
-
});
|
2695
2693
|
var timeSlots = (0,external_vue_namespaceObject.computed)(function () {
|
2696
2694
|
if (!props.value[0]) {
|
2697
2695
|
return [];
|
@@ -2745,6 +2743,10 @@ var timeProps = {
|
|
2745
2743
|
var newVal = dates[0] || initTime();
|
2746
2744
|
newVal = new Date(newVal);
|
2747
2745
|
state.date = newVal;
|
2746
|
+
parentProvide.panelDate = newVal;
|
2747
|
+
visibleDate.value = src_fecha.format(parentProvide.panelDate, props.format);
|
2748
|
+
}, {
|
2749
|
+
immediate: true
|
2748
2750
|
});
|
2749
2751
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2750
2752
|
if (parentProvide && parentProvide.parentName === 'DatePanel') {
|
@@ -5382,7 +5384,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5382
5384
|
var handleInputChange = function handleInputChange(e) {
|
5383
5385
|
var _props$disabledDate;
|
5384
5386
|
var isArrayValue = props.type.includes('range') || props.multiple;
|
5385
|
-
|
5387
|
+
// const oldValue = visualValue.value;
|
5386
5388
|
var newValue = e.target.value;
|
5387
5389
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
5388
5390
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
@@ -5390,7 +5392,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5390
5392
|
var isValidDate = newDate.reduce(function (valid, date) {
|
5391
5393
|
return valid && date instanceof Date;
|
5392
5394
|
}, true);
|
5393
|
-
|
5395
|
+
// 这里不需要进行新旧数据对比是因为input输入的时候visualValue的computed依赖始终是最新的
|
5396
|
+
// if (newValue !== oldValue && !isDisabled && isValidDate) {
|
5397
|
+
if (!isDisabled && isValidDate) {
|
5394
5398
|
emitChange(props.type);
|
5395
5399
|
state.internalValue = newDate;
|
5396
5400
|
} else {
|
@@ -186,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
186
|
readonly default: true;
|
187
187
|
};
|
188
188
|
}, {
|
189
|
-
visibleDate: import("vue").
|
189
|
+
visibleDate: import("vue").Ref<any>;
|
190
190
|
showSeconds: import("vue").ComputedRef<boolean>;
|
191
191
|
timeSlots: import("vue").ComputedRef<any[]>;
|
192
192
|
disabledHMS: import("vue").ComputedRef<IDisabledHMS>;
|
package/lib/directives/index.js
CHANGED
@@ -1053,7 +1053,7 @@ function _toConsumableArray(arr) {
|
|
1053
1053
|
;// CONCATENATED MODULE: external "vue"
|
1054
1054
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1055
1055
|
var external_vue_y = x => () => x
|
1056
|
-
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
1056
|
+
const external_vue_namespaceObject = external_vue_x({ ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render });
|
1057
1057
|
;// CONCATENATED MODULE: external "../shared"
|
1058
1058
|
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1059
1059
|
var shared_y = x => () => x
|
@@ -1100,9 +1100,15 @@ var tooltips_nodeList = new WeakMap();
|
|
1100
1100
|
var tooltips = {
|
1101
1101
|
beforeMount: function beforeMount(el, binding) {
|
1102
1102
|
var opts = getOpts(binding);
|
1103
|
-
var trigger = opts.trigger
|
1103
|
+
var trigger = opts.trigger,
|
1104
|
+
showOnInit = opts.showOnInit;
|
1104
1105
|
var popper = renderContent(opts);
|
1105
1106
|
var delayTimeout = null;
|
1107
|
+
if (showOnInit) {
|
1108
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1109
|
+
show(el);
|
1110
|
+
});
|
1111
|
+
}
|
1106
1112
|
if (trigger === 'hover') {
|
1107
1113
|
var hideTimeout = null;
|
1108
1114
|
el.addEventListener('mouseenter', function () {
|
@@ -1250,7 +1256,6 @@ function createPopperInstance(el, popper) {
|
|
1250
1256
|
opts = _nodeList$get.opts;
|
1251
1257
|
var placement = opts.placement,
|
1252
1258
|
distance = opts.distance,
|
1253
|
-
showOnInit = opts.showOnInit,
|
1254
1259
|
sameWidth = opts.sameWidth;
|
1255
1260
|
var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
|
1256
1261
|
placement: placement,
|
@@ -1275,7 +1280,6 @@ function createPopperInstance(el, popper) {
|
|
1275
1280
|
}
|
1276
1281
|
}] : []))
|
1277
1282
|
});
|
1278
|
-
if (showOnInit) show(el);
|
1279
1283
|
return popperInstance;
|
1280
1284
|
}
|
1281
1285
|
/**
|
package/lib/index.js
CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
|
|
4
4
|
export * from './config-provider';
|
5
5
|
export * from './directives';
|
6
6
|
export * as plugins from './plugins';
|
7
|
-
export const version = "2.0.1-beta.
|
7
|
+
export const version = "2.0.1-beta.59";
|
8
8
|
window.__bkui_vue_version__ = version;
|
package/lib/input/index.js
CHANGED
@@ -832,6 +832,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
832
832
|
cls = _ctx$attrs["class"],
|
833
833
|
style = _ctx$attrs.style,
|
834
834
|
inputAttrs = _objectWithoutProperties(_ctx$attrs, _excluded);
|
835
|
+
var parentRef = (0,external_vue_namespaceObject.ref)();
|
835
836
|
var inputRef = (0,external_vue_namespaceObject.ref)();
|
836
837
|
var innerInputValue = (0,external_vue_namespaceObject.ref)(typeof props.modelValue === 'undefined' || props.modelValue === null ? {} : {
|
837
838
|
value: props.modelValue
|
@@ -872,7 +873,27 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
872
873
|
}
|
873
874
|
};
|
874
875
|
};
|
876
|
+
var dragTextareaResize = function dragTextareaResize() {
|
877
|
+
return function () {
|
878
|
+
var _parentRef$value;
|
879
|
+
// 必须是autosize才能实现拖拽,且设置了maxRows还是会覆盖原有默认高度出现滚动条
|
880
|
+
if (!isTextArea.value || !props.autosize) return;
|
881
|
+
var isElHidden = ((_parentRef$value = parentRef.value) === null || _parentRef$value === void 0 ? void 0 : _parentRef$value.offsetParent) === null;
|
882
|
+
if (!isElHidden) {
|
883
|
+
var _inputRef$value2, _parentRef$value2, _parentRef$value3, _parentRef$value4, _parentRef$value5;
|
884
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || (_inputRef$value2 = _inputRef$value2.style) === null || _inputRef$value2 === void 0 || _inputRef$value2.setProperty('height', "".concat((_parentRef$value2 = parentRef.value) === null || _parentRef$value2 === void 0 ? void 0 : _parentRef$value2.offsetHeight, "px"));
|
885
|
+
textareaCalcStyle.value = Object.assign(textareaCalcStyle.value, {
|
886
|
+
height: "".concat((_parentRef$value3 = parentRef.value) === null || _parentRef$value3 === void 0 ? void 0 : _parentRef$value3.offsetHeight, "px")
|
887
|
+
});
|
888
|
+
if (((_parentRef$value4 = parentRef.value) === null || _parentRef$value4 === void 0 ? void 0 : _parentRef$value4.offsetWidth) > ((_parentRef$value5 = parentRef.value) === null || _parentRef$value5 === void 0 || (_parentRef$value5 = _parentRef$value5.parentNode) === null || _parentRef$value5 === void 0 ? void 0 : _parentRef$value5.offsetWidth)) {
|
889
|
+
var _parentRef$value6, _parentRef$value7;
|
890
|
+
(_parentRef$value6 = parentRef.value) === null || _parentRef$value6 === void 0 || (_parentRef$value6 = _parentRef$value6.style) === null || _parentRef$value6 === void 0 || _parentRef$value6.setProperty('width', "".concat((_parentRef$value7 = parentRef.value) === null || _parentRef$value7 === void 0 || (_parentRef$value7 = _parentRef$value7.parentNode) === null || _parentRef$value7 === void 0 ? void 0 : _parentRef$value7.offsetWidth, "px"));
|
891
|
+
}
|
892
|
+
}
|
893
|
+
};
|
894
|
+
};
|
875
895
|
var onceInitSizeTextarea = createOnceInitResize(resizeTextarea);
|
896
|
+
var onDragSizeTextarea = dragTextareaResize();
|
876
897
|
var suffixCls = getCls('suffix-icon');
|
877
898
|
var suffixIconMap = {
|
878
899
|
search: function search() {
|
@@ -965,6 +986,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
965
986
|
});
|
966
987
|
var resizeObserver = new ResizeObserver(function () {
|
967
988
|
onceInitSizeTextarea();
|
989
|
+
onDragSizeTextarea();
|
968
990
|
setOverflow();
|
969
991
|
});
|
970
992
|
(0,external_vue_namespaceObject.watch)(function () {
|
@@ -994,7 +1016,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
994
1016
|
value: val
|
995
1017
|
};
|
996
1018
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
997
|
-
|
1019
|
+
resizeTextarea();
|
1020
|
+
onDragSizeTextarea();
|
998
1021
|
});
|
999
1022
|
setOverflow();
|
1000
1023
|
});
|
@@ -1006,8 +1029,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1006
1029
|
});
|
1007
1030
|
// Hack: 修复autofocus属性失效问题 原生autofocus属性只在页面加载时生效
|
1008
1031
|
if (Object.prototype.hasOwnProperty.call(ctx.attrs, 'autofocus')) {
|
1009
|
-
var _inputRef$
|
1010
|
-
(_inputRef$
|
1032
|
+
var _inputRef$value3, _inputRef$value3$focu;
|
1033
|
+
(_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || (_inputRef$value3$focu = _inputRef$value3.focus) === null || _inputRef$value3$focu === void 0 || _inputRef$value3$focu.call(_inputRef$value3);
|
1011
1034
|
}
|
1012
1035
|
});
|
1013
1036
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
@@ -1024,8 +1047,8 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1024
1047
|
clear: clear
|
1025
1048
|
});
|
1026
1049
|
function detectOverflow() {
|
1027
|
-
var _inputRef$
|
1028
|
-
return ((_inputRef$
|
1050
|
+
var _inputRef$value4, _inputRef$value5;
|
1051
|
+
return ((_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 ? void 0 : _inputRef$value4.scrollWidth) > ((_inputRef$value5 = inputRef.value) === null || _inputRef$value5 === void 0 ? void 0 : _inputRef$value5.clientWidth) + 2;
|
1029
1052
|
}
|
1030
1053
|
function setOverflow() {
|
1031
1054
|
setTimeout(function () {
|
@@ -1163,6 +1186,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1163
1186
|
return function () {
|
1164
1187
|
var _ctx$slots$prefix, _ctx$slots, _ctx$slots$prefix2, _ctx$slots$suffix, _ctx$slots2, _ctx$slots2$suffix;
|
1165
1188
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
1189
|
+
"ref": parentRef,
|
1166
1190
|
"style": style,
|
1167
1191
|
"class": inputCls.value
|
1168
1192
|
}, [(_ctx$slots$prefix = (_ctx$slots = ctx.slots) === null || _ctx$slots === void 0 || (_ctx$slots$prefix2 = _ctx$slots.prefix) === null || _ctx$slots$prefix2 === void 0 ? void 0 : _ctx$slots$prefix2.call(_ctx$slots)) !== null && _ctx$slots$prefix !== void 0 ? _ctx$slots$prefix : props.prefix && (0,external_vue_namespaceObject.createVNode)("div", {
|
package/lib/pagination/index.js
CHANGED
@@ -515,6 +515,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
515
515
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
516
516
|
var isFocused = (0,external_vue_namespaceObject.ref)(false);
|
517
517
|
var localCurrent = (0,external_vue_namespaceObject.ref)(1);
|
518
|
+
var isPopoverShow = (0,external_vue_namespaceObject.ref)(false);
|
518
519
|
var isPagePreDisabled = (0,external_vue_namespaceObject.computed)(function () {
|
519
520
|
return localCurrent.value === 1;
|
520
521
|
});
|
@@ -596,6 +597,7 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
596
597
|
*/
|
597
598
|
var handlePageEditorBlur = function handlePageEditorBlur() {
|
598
599
|
isFocused.value = false;
|
600
|
+
isPopoverShow.value = false;
|
599
601
|
if (inputMemo !== localCurrent.value) {
|
600
602
|
localCurrent.value = inputMemo;
|
601
603
|
}
|
@@ -631,6 +633,13 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
631
633
|
inputMemo = item;
|
632
634
|
handlePageEditorBlur();
|
633
635
|
};
|
636
|
+
/**
|
637
|
+
* @desc 点击关闭popover事件
|
638
|
+
* @param { boolean } isShow
|
639
|
+
*/
|
640
|
+
var handlePopShow = function handlePopShow(isShow) {
|
641
|
+
isPopoverShow.value = isShow;
|
642
|
+
};
|
634
643
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
635
644
|
resolveClassName = _usePrefix.resolveClassName;
|
636
645
|
var render = function render() {
|
@@ -644,9 +653,16 @@ const popover_less_namespaceObject = popover_less_x({ });
|
|
644
653
|
"arrow": false,
|
645
654
|
"boundary": "body",
|
646
655
|
"disabled": proxy.disabled,
|
656
|
+
"isShow": isPopoverShow.value,
|
647
657
|
"placement": "bottom",
|
648
658
|
"theme": "light",
|
649
|
-
"trigger": "click"
|
659
|
+
"trigger": "click",
|
660
|
+
"onAfterHidden": function onAfterHidden() {
|
661
|
+
return handlePopShow(false);
|
662
|
+
},
|
663
|
+
"onAfterShow": function onAfterShow() {
|
664
|
+
return handlePopShow(true);
|
665
|
+
}
|
650
666
|
}, {
|
651
667
|
"default": function _default() {
|
652
668
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -34,6 +34,7 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
|
|
34
34
|
filter?: string | boolean | {
|
35
35
|
list: {
|
36
36
|
label: string;
|
37
|
+
text?: string;
|
37
38
|
value: string;
|
38
39
|
}[];
|
39
40
|
filterFn?: (...args: any[]) => boolean;
|
@@ -86,6 +87,7 @@ declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: U
|
|
86
87
|
filter?: string | boolean | {
|
87
88
|
list: {
|
88
89
|
label: string;
|
90
|
+
text?: string;
|
89
91
|
value: string;
|
90
92
|
}[];
|
91
93
|
filterFn?: (...args: any[]) => boolean;
|
package/lib/table/index.js
CHANGED
@@ -21909,11 +21909,20 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
21909
21909
|
* 当表格中的字段或数据需要做解释说明时,可增加 [下划线] 提示,hover 可查看解释说明的 tooltips
|
21910
21910
|
*/
|
21911
21911
|
if (props.column.explain) {
|
21912
|
-
|
21912
|
+
// showTooltip默认为false,所以disabled默认为true,当设置showTooltip时才需要展示表格内容是否显示溢出效果
|
21913
|
+
var isDisabled = true;
|
21914
|
+
if (typeof showOverflowTooltip === 'boolean') {
|
21915
|
+
isDisabled = !showOverflowTooltip;
|
21916
|
+
}
|
21917
|
+
if (typeof_typeof(showOverflowTooltip) === 'object') {
|
21918
|
+
isDisabled = showOverflowTooltip.disabled;
|
21919
|
+
}
|
21920
|
+
disabled = isDisabled;
|
21913
21921
|
mode = 'static';
|
21914
21922
|
if (typeof_typeof(props.column.explain) === 'object') {
|
21923
|
+
// 这里需要处理content为空,提供defaultContent
|
21915
21924
|
content = function content() {
|
21916
|
-
return resolvePropVal(props.column.explain, 'content', [props.column, props.row]);
|
21925
|
+
return resolvePropVal(props.column.explain, 'content', [props.column, props.row]) || defaultContent;
|
21917
21926
|
};
|
21918
21927
|
}
|
21919
21928
|
}
|
@@ -22485,7 +22494,7 @@ var ROW_HEIGHT = 32;
|
|
22485
22494
|
list = _filter$value$list === void 0 ? [] : _filter$value$list;
|
22486
22495
|
var filterList = list.filter(function (l) {
|
22487
22496
|
var reg = getRegExp(searchValue.value);
|
22488
|
-
return reg.test(l.label) || reg.test(l.value);
|
22497
|
+
return reg.test(l.label) || reg.test(l.text) || reg.test(l.value);
|
22489
22498
|
});
|
22490
22499
|
return filterList;
|
22491
22500
|
});
|
@@ -22495,8 +22504,11 @@ var ROW_HEIGHT = 32;
|
|
22495
22504
|
return (_filter$value$maxHeig = (_filter$value2 = filter.value) === null || _filter$value2 === void 0 ? void 0 : _filter$value2.maxHeight) !== null && _filter$value$maxHeig !== void 0 ? _filter$value$maxHeig : ROW_HEIGHT * maxLength;
|
22496
22505
|
});
|
22497
22506
|
var height = (0,external_vue_namespaceObject.computed)(function () {
|
22498
|
-
var _filter$value3
|
22499
|
-
|
22507
|
+
var _filter$value3 = filter.value,
|
22508
|
+
height = _filter$value3.height,
|
22509
|
+
_filter$value3$list = _filter$value3.list,
|
22510
|
+
list = _filter$value3$list === void 0 ? [] : _filter$value3$list;
|
22511
|
+
return height || list.length * ROW_HEIGHT;
|
22500
22512
|
});
|
22501
22513
|
var minHeight = (0,external_vue_namespaceObject.computed)(function () {
|
22502
22514
|
var defaultMin = ROW_HEIGHT * 2;
|
package/lib/table/props.d.ts
CHANGED
package/lib/table/table.css
CHANGED
@@ -1054,6 +1054,7 @@
|
|
1054
1054
|
white-space: nowrap;
|
1055
1055
|
text-overflow: ellipsis;
|
1056
1056
|
overflow: hidden;
|
1057
|
+
max-width: calc(100% - 22px);
|
1057
1058
|
}
|
1058
1059
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
1059
1060
|
margin-left: 0;
|
@@ -1444,6 +1444,7 @@
|
|
1444
1444
|
white-space: nowrap;
|
1445
1445
|
text-overflow: ellipsis;
|
1446
1446
|
overflow: hidden;
|
1447
|
+
max-width: calc(100% - 22px);
|
1447
1448
|
}
|
1448
1449
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
1449
1450
|
margin-left: 0;
|
package/lib/table/utils.d.ts
CHANGED
package/lib/upload/index.d.ts
CHANGED
@@ -93,7 +93,7 @@ declare const Upload: {
|
|
93
93
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
94
94
|
};
|
95
95
|
beforeUpload: {
|
96
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
96
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
97
97
|
};
|
98
98
|
beforeRemove: {
|
99
99
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -215,7 +215,7 @@ declare const Upload: {
|
|
215
215
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
216
216
|
};
|
217
217
|
beforeUpload: {
|
218
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
218
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
219
219
|
};
|
220
220
|
beforeRemove: {
|
221
221
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -367,7 +367,7 @@ declare const Upload: {
|
|
367
367
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
368
368
|
};
|
369
369
|
beforeUpload: {
|
370
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
370
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
371
371
|
};
|
372
372
|
beforeRemove: {
|
373
373
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -516,7 +516,7 @@ declare const Upload: {
|
|
516
516
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
517
517
|
};
|
518
518
|
beforeUpload: {
|
519
|
-
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
519
|
+
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
520
520
|
};
|
521
521
|
beforeRemove: {
|
522
522
|
type: import("vue").PropType<(file: import("./upload.type").UploadFile, uploadFiles: import("./upload.type").UploadFile[]) => boolean | Promise<boolean>>;
|
package/lib/upload/index.js
CHANGED
@@ -2727,7 +2727,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
2727
2727
|
case 2:
|
2728
2728
|
_context.prev = 2;
|
2729
2729
|
_context.next = 5;
|
2730
|
-
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file);
|
2730
|
+
return (_props$beforeUpload = props.beforeUpload) === null || _props$beforeUpload === void 0 ? void 0 : _props$beforeUpload.call(props, file, sendFiles);
|
2731
2731
|
case 5:
|
2732
2732
|
beforeResult = _context.sent;
|
2733
2733
|
_context.next = 11;
|
package/lib/upload/props.d.ts
CHANGED
@@ -94,7 +94,7 @@ declare const _default: {
|
|
94
94
|
type: PropType<(event: Event) => boolean | void>;
|
95
95
|
};
|
96
96
|
beforeUpload: {
|
97
|
-
type: PropType<(file: UploadRawFile) => Promise<boolean> | boolean>;
|
97
|
+
type: PropType<(file: UploadRawFile, uploadFiles: File[]) => Promise<boolean> | boolean>;
|
98
98
|
};
|
99
99
|
beforeRemove: {
|
100
100
|
type: PropType<(file: UploadFile, uploadFiles: UploadFile[]) => Promise<boolean> | boolean>;
|
package/lib/upload/upload.d.ts
CHANGED
@@ -93,7 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
93
93
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
94
94
|
};
|
95
95
|
beforeUpload: {
|
96
|
-
type: import("vue").PropType<(file: UploadRawFile) => boolean | Promise<boolean>>;
|
96
|
+
type: import("vue").PropType<(file: UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
97
97
|
};
|
98
98
|
beforeRemove: {
|
99
99
|
type: import("vue").PropType<(file: UploadFile, uploadFiles: UploadFile[]) => boolean | Promise<boolean>>;
|
@@ -208,7 +208,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
208
208
|
type: import("vue").PropType<(event: Event) => boolean | void>;
|
209
209
|
};
|
210
210
|
beforeUpload: {
|
211
|
-
type: import("vue").PropType<(file: UploadRawFile) => boolean | Promise<boolean>>;
|
211
|
+
type: import("vue").PropType<(file: UploadRawFile, uploadFiles: File[]) => boolean | Promise<boolean>>;
|
212
212
|
};
|
213
213
|
beforeRemove: {
|
214
214
|
type: import("vue").PropType<(file: UploadFile, uploadFiles: UploadFile[]) => boolean | Promise<boolean>>;
|