摘要: 在 columns 中定义表头样式 因为设置 样式 display 为 none 会导致页面元素塌陷 所以想了下面的方法 把 title 去掉 width 宽度置为 0 达到所要的效果 { title: policyNoTypeToTable == '0'? '支付方式' : '', // 根据特定 阅读全文
posted @ 2021-09-26 17:14 贺可英 阅读(3977) 评论(0) 推荐(0)
摘要: {/* <ProFormDependency name={[['applicant','persIdentType'], ['applicant','policyholdernameType']]}> {({applicant})=> { console.log(applicant) const s 阅读全文
posted @ 2021-09-06 14:05 贺可英 阅读(929) 评论(0) 推荐(0)
摘要: // Object 跟我们在JS中想象的对象是有一定差别的 // Object类型 可以是 对象 函数 正则 let a: Object a = {name: 'hky'} a = () => {} a = new RegExp('') let b:{[key:string]: unknown} b 阅读全文
posted @ 2021-06-29 11:36 贺可英 阅读(2009) 评论(0) 推荐(0)
摘要: // 首先配置路由并隐藏菜单栏 const routes = [ { name: '投保综合查询保单详情页', icon: 'smile', path: '/insureOfQuery/components/details', component: './InsureOfQuery/componen 阅读全文
posted @ 2021-06-23 11:35 贺可英 阅读(895) 评论(0) 推荐(0)
摘要: null 和 undefined 在TypeScript中既是一个值,也是一个类型 let u: null = null let u: undefined = undefined unknow 表示这个值可以是任何值 注意!!! unknow 不可以赋给任何的值 也不能从unknow身上读取任何的方 阅读全文
posted @ 2021-06-16 14:28 贺可英 阅读(3006) 评论(0) 推荐(0)
摘要: 执行 npm i --save-dev @type/qs 命令下载 qs 再 ts 中的声明文件 下载完毕后会发现 在node_modules 里的 @type 文件中 有 qs 的 index.d.ts 声明文件 如下图所示 此时qs报错消失 如图所示 输入错误 此时有ts问题检测 阅读全文
posted @ 2021-06-16 10:16 贺可英 阅读(3482) 评论(0) 推荐(0)
摘要: REST API 一句话总结: URL 代表 资源/对象, method代表行为 PUT 替换 PATCH 修改 public 下的robots.txt Disallow: 后加指定路由 不允许搜索引擎访问 配置json-server npm i json-server-g 启动 json-serv 阅读全文
posted @ 2021-06-05 17:03 贺可英 阅读(339) 评论(0) 推荐(0)
摘要: .backgroundImg { display: inline-block; width: 25px; height: 25px; background-size: cover; // 覆盖整个元素的背景 background-position: center center; background 阅读全文
posted @ 2021-05-31 11:44 贺可英 阅读(908) 评论(0) 推荐(0)
摘要: // 给表格添加ref属性 // 例如ref="multipleTable1" 给表格插入选项 this.safeCodeList.map((item) => { if (item.insurerCode == code) { if (this.safeListData.length !== 0)  阅读全文
posted @ 2021-05-14 22:25 贺可英 阅读(119) 评论(0) 推荐(0)
摘要: <el-input-number v-model="num2" :min="1" :max="10" label="请输入数量"></el-input-number> min 代表最小值 max 代表最大值 默认样式左右增减 // controls-position="right" 把按钮样式放在右 阅读全文
posted @ 2021-05-14 22:18 贺可英 阅读(234) 评论(0) 推荐(0)