摘要: <!-- Vue SFC --> <template> <div> <el-upload class="upload-demo" action="" v-if="show" :on-preview="handlePreview" :on-remove="handleRemove" :before-u 阅读全文
posted @ 2021-04-27 22:10 fanfanlady 阅读(184) 评论(0) 推荐(0)
摘要: <template> <div class="about"> <h1>This is an about page</h1> <Calendar ref="Calendar" :textTop="['S', 'M', 'T', 'W', 'T', 'F', 'S']" 阅读全文
posted @ 2021-02-28 13:03 fanfanlady 阅读(315) 评论(0) 推荐(0)
摘要: 组件封装页面 <template> <!-- 已完成 --> <div> <el-select v-model="value" ref="select" clearable> <el-option :value="value" :label="value" class="options" style 阅读全文
posted @ 2021-02-08 09:50 fanfanlady 阅读(196) 评论(0) 推荐(0)
摘要: 1.实现调用摄像头的功能(其实就是input的上传功能) <input type="file" class="change" accept="image/*" ref="takePhoto" capture="camera" @change="takePhoto" /> <div class="Ti 阅读全文
posted @ 2021-02-08 09:17 fanfanlady 阅读(296) 评论(0) 推荐(0)
摘要: 原因 刷新页面时,vue实例重新加载,从而,store也被重置了。store是用来存储组件状态的,而不是用来做本地数据存储的。所以,对于不希望页面刷新之后被重置的数据,使用本地存储来进行存储。 本地存储 cookie: 不适合存储大量的数据。 localStorage: 是永久存储,浏览器关闭后数据 阅读全文
posted @ 2021-02-05 15:07 fanfanlady 阅读(456) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_39287602/article/details/109047223 阅读全文
posted @ 2021-02-05 15:02 fanfanlady 阅读(57) 评论(0) 推荐(0)
摘要: <template> <div> <el-tree :data="data" show-checkbox default-expand-all node-key="id" ref="tree" highlight-current @check="getCheckedNodes" @check-cha 阅读全文
posted @ 2021-02-05 15:01 fanfanlady 阅读(216) 评论(0) 推荐(0)