Commit ce021df1 authored by yyh's avatar yyh

删除无用代码

parent 5ffcfcf3
......@@ -60,9 +60,7 @@
v-model="currentFolder.folder_name"
/>
</van-dialog>
<transition name="van-slide-up">
<add-folder v-if="showAddFolder" @cancel="showAddFolder = false" @next="addFolder"></add-folder>
</transition>
<add-folder :show.sync="showAddFolder" @cancel="showAddFolder = false" @next="addFolder"></add-folder>
</div>
</template>
......
......@@ -115,7 +115,7 @@ export default class ProofItem extends Vue {
const {
showIncrementList,
incrementList: { length },
proof: { increment_num }
proof: { increment_num },
} = this;
this.showIncrementList = !showIncrementList;
if (this.showIncrementList && length <= 0) {
......
......@@ -2,7 +2,7 @@
<van-dialog
use-slot
title="添加文件夹"
v-model="show"
v-model="showSelf"
show-cancel-button
confirm-button-open-type="getUserInfo"
@close="cancel"
......@@ -14,45 +14,20 @@
placeholder="请输入文件夹名称"
/>
</van-dialog>
<!-- <van-popup
v-model="show"
position="bottom"
:close-on-click-overlay="false"
:style="{height: '80%'}"
class="base-info">
<div style="position:relative;margin-bottom:26px;">
<common-svg
@click.native="cancel"
name="moban-quxiao"
style="position:absolute;left:17px;"></common-svg>
<span>创建文件夹</span>
</div>
<van-field v-model="folderName" placeholder="填写文件夹名称"></van-field>
<div class="btn-group">
<div @click="next" class="slc-btn-common next">确定</div>
</div>
</van-popup> -->
</template>
<script lang="ts">
import { Component, Prop, Vue, Emit } from 'vue-property-decorator';
import { Field, Popup } from 'vant';
import { Component, Prop, Vue, Emit, PropSync } from 'vue-property-decorator';
import { TEMPLATETYPE } from '@/const/enum';
@Component({
components: {
[Field.name]: Field,
[Popup.name]: Popup,
},
})
export default class AddFolder extends Vue {
private show: boolean = true;
@PropSync('show', { type: Boolean, required: true })
private showSelf!: boolean;
private folderName: string = '';
private imgUrl: string = '';
private defaultFolderIndex: number = 0;
private defaultFolderName: string = '未分类文件夹';
@Emit('next')
private next() {
this.show = false;
this.showSelf = false;
const { folderName} = this;
return {
folderName,
......@@ -60,48 +35,9 @@ export default class AddFolder extends Vue {
}
@Emit('cancel')
private cancel() {
this.show = false;
}
private handleFileChange(e: any) {
const input = e.target;
const files = input.files;
if (files && files[0]) {
this.$api.file.upload(files[0]).then((res: any) => {
this.imgUrl = res.url;
});
}
this.showSelf = false;
}
}
</script>
<style scoped lang="scss">
.base-info{
padding: 17px 0 0;
.file-input{
display: grid;
grid-template-columns: 20px auto 10px;
place-items: center;
padding: 7px 17px;
background:#F9F9FB;
color:#444444;
font-size:14px;
span{
place-self: start;
}
}
.btn-group{
color:#B6B5BA;
font-size: 14px;
.classify{
color: #3F79FE;
}
.next{
flex: auto;
padding: 10px 37px;
border-radius: 4px;
background: #3F79FE;
color: #FFFFFF;
font-size: 16px;
}
}
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment