| | |
| | | <a-form-model-item label="日志文件" v-show="!form.online"> |
| | | <a-upload ref="blogFileUpload" :customRequest="customRequest" name="file" :showUploadList="true" |
| | | @change="handleChange" :default-file-list="form.blogFileList" :beforeUpload="beforeUpload" |
| | | :data="{'fileType':fileTypeMarkDown}" accept=".md,.html,.htm,.txt"> |
| | | :data="{'fileType':myConstant.fileTypeMarkDown}" accept=".md,.html,.htm,.txt"> |
| | | <a-button> |
| | | <a-icon type="upload" />限 markdown/html |
| | | </a-button> |
| | |
| | | |
| | | <a-form-model-item label="封面"> |
| | | <a-upload :customRequest="customRequest" name="file" :showUploadList="true" list-type="picture" |
| | | :data="{'fileType':fileTypeCover}" @change="handleChangeCoverFile" |
| | | :data="{'fileType':myConstant.fileTypeCover}" @change="handleChangeCoverFile" |
| | | :default-file-list="form.coverFileList" :beforeUpload="beforeUploadCover" |
| | | accept=".jpg,.png,.jpeg"> |
| | | <!-- :disabled="form.coverFileList.length>=1" --> |
| | |
| | | }; |
| | | |
| | | return { |
| | | fileTypeMarkDown: myConstant.fileTypeMarkDown, |
| | | fileTypeCover: myConstant.fileTypeCover, |
| | | myConstant: myConstant, |
| | | blogArticleType: [], |
| | | tags: [], |
| | | inputVisible: false, |