近段时间由于一直修改样式导致总结东西很少,还有一部分是在整理自己的网站,规划内容如何填充。
13周
5.29
flatMap使用,将多个数组合并成一个数组,简称推平;
处理icon: IconColourless[{名:路径}]如[{Slice25: require('@/assets/svgIcon/Slice25.svg').default
}]
export const optionsIconColourless = IconColourless.map((obj) => {
const [label, url] = Object.entries(obj)[0];
return { label, url };
});
14周
5.31
ant-design的Input输入框取消选择后的蓝色背景以及如何取消提示
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
-webkit-text-fill-color: #2a2d33;
transition: background-color 5000s ease-out 0.5s;
}
15周
6.7
刷新当前页面
const pageLocation = window.location.pathname;
refreshTab(pageLocation);
const { refreshTab } = useContext(KeepAliveContext);
import { KeepAliveContext } from '@umijs/max';
16周
6.13
tree的父子节点不联动设置checkable和checkStrictly,后续联动可以通过onCheck进行处理联动
protable的columns的valueType: "treeSelect”,想进行搜索可以在 fieldProps:添加treeSelect的相关属性
Box-shadow:
h-shading v-shading blur spread color inset
X轴偏移量 Y轴偏移量 阴影模糊半径 阴影扩展半径 阴影颜色 投影方式;
h-shading: 水平阴影 允许负值
v-shading: 垂直阴影 允许负值
blur: 模糊距离
spread: 阴影大小
color: 阴影颜色
inset: 内投影
6.14
treeselect选中没有选中效果
我目前因为添加了treeCheckStrictly={true}导致父子节点选中效果不关联
6.15
处理select下拉自定义时不需要fieldNames再次定义;