Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(uploader): 修复uploader组件的is-deletable在列表模式下不生效 #2062

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/packages/__VUE/uploader/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<nut-icon name="link" />&nbsp;{{ item.name }}
</view>
<nut-icon
v-if="isDeletable"
class="nut-uploader__preview-img__file__del"
@click="onDelete(item, index)"
color="#808080"
Expand Down Expand Up @@ -70,14 +71,14 @@
</template>

<script lang="ts">
import { computed, onMounted, PropType, reactive } from 'vue';
rocwong-cn marked this conversation as resolved.
Show resolved Hide resolved
import { computed, PropType, reactive } from 'vue';
import { createComponent } from '@/packages/utils/create';
import { UploaderTaro, UploadOptions } from './uploader';
import { FileItem } from './type';
import { funInterceptor, Interceptor } from '@/packages/utils/util';
const { componentName, create, translate } = createComponent('uploader');
import Taro from '@tarojs/taro';
import { isPromise } from '@/packages/utils/util';
rocwong-cn marked this conversation as resolved.
Show resolved Hide resolved

export default create({
props: {
name: { type: String, default: 'file' },
Expand Down
1 change: 1 addition & 0 deletions src/packages/__VUE/uploader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<nut-icon name="link" />&nbsp;{{ item.name }}
</view>
<nut-icon
v-if="isDeletable"
class="nut-uploader__preview-img__file__del"
@click="onDelete(item, index)"
color="#808080"
Expand Down