
vue
AnlanJion
一位正在走向码农世界的少女,嘿嘿,欢迎一起入坑
展开
-
重组数据-针对表达式
let arr = [ { type: 'feature', value: 'aaab', }, { type: 'function', value: 'funca', }, { type: 'function', value: 'funcb', },]str = "#fun_longestCommonSubstr(#fun_getStrValFromList(ta...原创 2021-08-03 17:40:08 · 190 阅读 · 0 评论 -
2021-02-26
private DoubleClick(row: any, column: any, cell: any, event: any) { // 双几行删除 this.$confirm('确定要删除这条信息吗?', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', }).then(() => { ..原创 2021-02-26 17:01:53 · 172 阅读 · 0 评论 -
2021-02-26
callmethodscallmethods方法使用 针对父子传递参数 一一对应的父子才可以使用 组件引入 <GisAuxiliaryDescDetail ref="gisAuxiliarydesc" />方法调用 (this.$refs as any).gisAuxiliarydesc.callmethods(data1);子组件接收 private callmethods(val: any) { this.dataObj = va...原创 2021-02-26 15:15:21 · 177 阅读 · 0 评论 -
2021-02-26
private beforeAvatarUpload(file: any) { // 上传图片校验 const self = this; const isLt2M = file.size / 1024 / 1024 < 10; const testmsg = file.name.substring(file.name.lastIndexOf('.') + 1); const img.原创 2021-02-26 10:35:32 · 157 阅读 · 0 评论