摘要:
1.监听第code为13的按键<input @:keyup.13="submit"> 2.监听会车按键<input @:keyup.enter="submit"> 3.常用按键: .enter .tab .delete (捕获 “删除” 和 “退格” 键) .esc .space .up .down 阅读全文
posted @ 2021-07-22 11:52
丶有情调。
阅读(848)
评论(0)
推荐(0)
摘要:
1.项目根目录执行下载echarts,命令:npm install echarts --save 2.在main.js中全局引入echarts 代码 : import * as echarts from "echarts" Vue.prototype.$echarts = echarts 3.在对应 阅读全文
posted @ 2021-07-22 11:51
丶有情调。
阅读(202)
评论(0)
推荐(0)
摘要:
1.ElementUI npm i element-ui -S main.js中引入 import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(ElementUI) 2.vue-r 阅读全文
posted @ 2021-07-22 11:51
丶有情调。
阅读(107)
评论(0)
推荐(0)
摘要:
1.prop传值延迟问题 解决办法: a.给prop默认值 b.直接在父级给子组件赋值:this.$refs.statisticsInfo.selectedData = this.selected[0]; 有时调用失败是因为子组件没有渲染完成 this.$nextTick(() => {this.$ 阅读全文
posted @ 2021-07-22 11:50
丶有情调。
阅读(199)
评论(0)
推荐(0)
摘要:
1.下载组件:npm i v-charts echarts@4.9.0 -S 2.main.js中引入: import VCharts from 'v-charts' Vue.use(VCharts) 3.使用 准备数据: return { statisticsVisible: false, cha 阅读全文
posted @ 2021-07-22 11:45
丶有情调。
阅读(442)
评论(0)
推荐(0)

浙公网安备 33010602011771号