摘要: 父组件: import React, {useRef} from 'react' import UserName from 'src/components/UserName' interface userRef { submit: Function } const UserInfo = () => 阅读全文
posted @ 2021-11-11 16:11 chelse 阅读(296) 评论(0) 推荐(0)
摘要: Ant Design Mobile中的表单校验 将validator放在 rules 对象中 <Form.Item name='uName' label='姓名' required rules={[ {required: true, message: '请输入姓名'}, {validator: (r 阅读全文
posted @ 2021-11-11 14:58 chelse 阅读(449) 评论(0) 推荐(0)
摘要: <template> <div> <v-breadcrumb /> <div class="combat"> <el-tabs v-model="tabName" type="card" class="tab-section" @tab-click="changeTab()"> <el-tab-pa 阅读全文
posted @ 2019-10-07 13:26 chelse 阅读(6742) 评论(0) 推荐(0)
摘要: 代码埋点可采用命令试埋点和声明式埋点: 命令式埋点: click() { //.... 这边写一些业务逻辑 sendRequest(params); // } 可以发现,命令式埋点将埋点代码侵入业务代码,使得整体业务代码变得繁琐,且后续代码愈加膨胀,难以维护;所以,我们需要将业务代码和埋点代码解耦, 阅读全文
posted @ 2019-09-24 10:36 chelse 阅读(4882) 评论(1) 推荐(3)
摘要: html部分: <div class="lantern-text" ref="lanternTextBox"> <p class="text text-front" ref="lanternTextFornt"></p> <p class="text text-behind" ref="lanter 阅读全文
posted @ 2019-08-29 17:33 chelse 阅读(587) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>hi</title> </head> <body> <div> <div class="hi"> a small test test small a hai hi</div> </div> </body> <script> f 阅读全文
posted @ 2019-08-29 17:14 chelse 阅读(1316) 评论(0) 推荐(0)