07akioni

Results 249 comments of 07akioni

> 看了了antd vue用了`position: sticky`来实现,限制是祖先元素不能有除了`overflow: visible`以外的`overflow`设置。 > > https://www.zhangxinxu.com/wordpress/2020/03/position-sticky-rules/ > > 一行css就可以搞定,但就是跟`n-scrollbar`不太兼容。 和 zindex 相关?

> > 和 zindex 相关? > > 用设置了`overflow`的组件包裹就会导致`position: sticky`失效…例如`n-scrollbar(设置了`overflow: scroll`)。 > > 用文档作为例子,给``元素加上`position: sticky; top: 0;`之后,要把`n-data-table`里的那层`n-scrollbar`的`overflow`改成`visible`才能粘连到页面的滚动上。 > > ![image](https://user-images.githubusercontent.com/14790315/142619544-6768647e-d4c6-42f1-af66-e5242f9070e6.png) > > > Sticky positioning is similar to relative positioning except...

> JS思路估计大概就是创建一个IntersectionObserver观察表格位置,然后将表头设置成 `position: fixed`; 我周末可以找时间做一下。 先看看别人的实现再开始弄

You can limit it by drop value in `on-update:value`

Why not make filters a `computed`: ``` export default defineComponent({ components: { NLayoutSider, NTree }, setup() { const { t } = useI18n({useScope: 'global'}); const filters: TreeOption[] = computed(() =>...

However I think we can add the API. For your case I think a `computed` is better.

给一个样式挂载位置的钩子?用户自己传?

让用户手动挪确实不太优雅

感觉可能是因为最近要开大会然后 vercel 的一些地址就被墙了,需要梯子

I've met exactly the same issue. Reprod link https://codesandbox.io/s/boring-wescoff-uxd0z?file=/src/App.tsx ![image](https://user-images.githubusercontent.com/18677354/108647995-0551f980-74f5-11eb-8ff4-5332d9ff88c2.png)