Fork me on GitHub
摘要: <template> <card-layout :title="L('Users')" :actions="actions" @click="handleClick"> <el-table :data="tableData4.slice((currentPage-1)*pagesize,curren 阅读全文
posted @ 2018-11-07 21:38 欢欢11 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1.npm install --global @vue/cli 2.npm install -g @vue/cli-init 3.vue init webpack my-project 阅读全文
posted @ 2018-11-07 12:26 欢欢11 阅读(146) 评论(0) 推荐(0) 编辑
摘要: npm install chromedriver -g 阅读全文
posted @ 2018-11-07 10:13 欢欢11 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1.npm install vue-i18n 2.在 main.js 中引入 vue-i18n import VueI18n from 'vue-i18n' Vue.use(VueI18n) 3.在main.js中准备翻译 const messages = { zh: { message: { name:'李四' } }... 阅读全文
posted @ 2018-11-07 09:18 欢欢11 阅读(202) 评论(0) 推荐(0) 编辑
摘要: if (!this.surname) { this.$createDialog({ type: "alert", icon: "cubeic-close", showClose: true, content: this.$t("message.errInputSurname"), ... 阅读全文
posted @ 2018-11-07 09:07 欢欢11 阅读(2696) 评论(0) 推荐(0) 编辑
摘要: getage() { var birthdays = new Date(this.birthday.replace(/-/g, "/")); var d = new Date(); var age = d.getFullYear() - birthdays.getFullYear() - (d.getMo... 阅读全文
posted @ 2018-11-07 09:05 欢欢11 阅读(4810) 评论(0) 推荐(0) 编辑