Compare commits

..

No commits in common. "cedbc089b400b48722f8a1fcc27ee56e475f3d0a" and "45f7adc701931bc890bcd004e9732834d2307f2c" have entirely different histories.

3 changed files with 2 additions and 4 deletions

View File

@ -123,7 +123,6 @@
position: absolute;
top: 0;
right: 0;
z-index: 1;
padding: var(--van-action-sheet-close-icon-padding);
color: var(--van-action-sheet-close-icon-color);
font-size: var(--van-action-sheet-close-icon-size);

View File

@ -301,7 +301,7 @@ export default defineComponent({
const onClickUpload = (event: MouseEvent) => emit('clickUpload', event);
const renderUpload = () => {
if (props.modelValue.length >= props.maxCount) {
if (props.modelValue.length >= props.maxCount || !props.showUpload) {
return;
}
@ -329,7 +329,6 @@ export default defineComponent({
return (
<div
v-show={props.showUpload}
class={bem('upload', { readonly: props.readonly })}
style={getSizeStyle(props.previewSize)}
onClick={onClickUpload}

View File

@ -582,7 +582,7 @@ test('show-upload prop', async () => {
expect(wrapper.find('.van-uploader__upload').exists()).toBeTruthy();
await wrapper.setProps({ showUpload: false });
expect(wrapper.find('.van-uploader__upload').style.display).toBe('none');
expect(wrapper.find('.van-uploader__upload').exists()).toBeFalsy();
});
test('file message should be reactive', (done) => {