随笔分类 -  Vue

摘要:import Vue from 'vue' import VueClipboard from 'vue-clipboard2' Vue.use(VueClipboard) 法一: <template id="t"> <div class="container"> <input type="text" 阅读全文
posted @ 2018-10-18 10:06 凌珊 阅读(1875) 评论(0) 推荐(0)
摘要:获取DOM元素 阅读全文
posted @ 2018-08-08 17:46 凌珊 阅读(152) 评论(0) 推荐(0)
摘要:<div class="type"> <input @click="selectTypeShow =!selectTypeShow" :placeholder="请选择类型" :value="selectedType.type"> <i></i> <ul class="wrap" v-if="sel 阅读全文
posted @ 2018-08-08 14:26 凌珊 阅读(167) 评论(0) 推荐(0)
摘要:父组件 <div class="uploadFile"> <uploadFile v-model="uploadImg" uploadImg="uploadFileImg" @change="loadImg"/> </div> loadImg(file){ if(file){ this.upload 阅读全文
posted @ 2018-08-02 19:14 凌珊 阅读(80) 评论(0) 推荐(0)
摘要:HTML <div class="code"> <input @click="selectShow =!selectShow" readonly="readonly" :placeholder="$lang.inputCoin" :value="selected.goods"> <i></i> <u 阅读全文
posted @ 2018-07-27 18:01 凌珊 阅读(108) 评论(0) 推荐(0)
摘要:<input @change="fileImage" type="file" accept="image/jpeg,image/x-png,image/gif" id="" value="" /> fileImage:function(e){ var that=this; var file = e. 阅读全文
posted @ 2018-07-24 15:53 凌珊 阅读(100) 评论(0) 推荐(0)
摘要:id是自己本地模拟的数据字段,tdid是后台给的数据字段 getMarketAccountOrderList(market, state, pageNumber, pageSize, filterKey, filterSort) { const mapping = { id: "tdid", mar 阅读全文
posted @ 2018-07-19 15:42 凌珊 阅读(129) 评论(0) 推荐(0)
摘要:1、安装vue、vuex在main.js中引入 import Vue from 'vue' import store from './vuex' import store from './vuex' import server from './server' 2、server中文件adapter.j 阅读全文
posted @ 2018-07-09 14:07 凌珊 阅读(5062) 评论(0) 推荐(0)