11 2021 档案

摘要:子组件: <template> <div> <!-- S 表格 A --> <el-table stripe :data="tableData" :header-cell-style="{background:'#eef1f6',color:'#606266'}" @selection-change 阅读全文
posted @ 2021-11-30 17:42 峻宇 阅读(610) 评论(0) 推荐(0)
摘要:<script> export default { data() { return { listQuery: { pageNo: 1, pageSize: 10, }, //分页 list: [], //列表 totalPage: 1 //当前页 }; }, onLoad() { this._ord 阅读全文
posted @ 2021-11-21 22:21 峻宇 阅读(1690) 评论(0) 推荐(1)
摘要:利用filter和includes方法 const arr = [ { label: '测试1', value: '测试1value' }, { label: '测试2', value: '测试2value' }, { label: '测试3', value: '测试3value' } ] // ! 阅读全文
posted @ 2021-11-18 11:24 峻宇 阅读(408) 评论(0) 推荐(0)
摘要:解决方案:删除.git的提交规则文件(.git/hooks/pre-commit) 具体步骤: 进入项目的.git文件夹(文件夹默认隐藏,查看 - 隐藏的项目)再进入hooks文件夹删除pre-commit文件重新提交git。 阅读全文
posted @ 2021-11-16 23:17 峻宇 阅读(248) 评论(0) 推荐(0)
摘要:Before: switch (path) { case "/options/store": return "store"; case "/options/tiktok": return "tiktok"; case "/options/kuaishou": return "kuaishou"; c 阅读全文
posted @ 2021-11-16 23:12 峻宇 阅读(135) 评论(0) 推荐(0)
摘要:通过返回函数,判断参数内容。 <view class="item" :style="{'background':cardBg(index)}" </view> computed: { cardBg() { return function(index) { switch (index) { case 阅读全文
posted @ 2021-11-10 21:53 峻宇 阅读(566) 评论(0) 推荐(0)