10 2019 档案
摘要:<a-menu theme="dark" mode="horizontal" class="menu__a" @select="changeMenu" :defaultSelectedKeys="[$route.name]" :selectedKeys="[$route.name]"> <a-men
阅读全文
摘要:1、为table添加分页: :pagination="pagination" pagination: { defaultPageSize: 10, showTotal: (total) => `共${total} 条数据`, total: 0, showSizeChanger: true, pageSizeOptions: ['10', '20', '50'], onShowSizeChange:
阅读全文
摘要:例如: 想要回显id为1的温度, 结果直接在select框中显示了1,而不是选中了温度, 此时因为select中的value是string类型, 而我们设置的id是number类型, 对应不上, 所以想要选中value为1的option, 就需要把id.toString()
阅读全文
摘要:// 设置可选最大日期 disabledEndDate (endValue) { const startValue = new Date() if (!endValue || !startValue) { return false } return startValue.valueOf() <= endValue.val...
阅读全文
摘要:文件位置:文件(File)-首选项(Preference)-设置(setting) 打开setting.json文件输入一下内容即可 上面的字段将为 VS Code 设置搜索时排除的目录,和在文件列表中隐藏的文件类型。由于 build, temp, library 都是编辑器运行时自动生成的路径,而
阅读全文
摘要:错误重现: 在使用ant design for vue 的选择器插件的时候, 设置默认为为id(为数字) 报错: 解决办法: id为数字, 而defaultValue 的key 值必须为字符串, 将id转化为字符串即可
阅读全文
摘要:1、使用customRequest customRequest 通过覆盖默认的上传行为,可以自定义自己的上传实现 Function 定义customRequest,之前定义action行为会被覆盖,可以注释掉
阅读全文
摘要:一般有三种方法: 方法一: 通过a标签下载 优点:简单方便。缺点:这种下载方式只支持Firefox和Chrome不支持IE和Safari,兼容性不够好。 方法二:通过window.location 优点:简单方便。缺点:只能进行get请求,当有token校验的时候不方便。 方法三:通过请求后台接口
阅读全文

浙公网安备 33010602011771号