liuzw2579

Results 6 comments of liuzw2579

maybe you can do it use `KeepAlive`. If use router controll it, record route: ```jsx // record tabs const pages = reactive([]); // when route changed, record it router.afterEach((to) =>...

> The scroll bar will only appear when the amount of data exceeds the width of the table. You want to hide scrollbar? no no, let scrollbar can set auto...

> I don't think it's that neccessary. > > If you need it, create a PR and implement it. Maybe call it `always-show` prop. 我注意到 scrollbar组件有了 trigger: none 让滚动条可以一直显示,但是如何在 data-table...

> API format need to be considered. I don't like service or directive api, they lose context of the app. 使用类似 useDialog() 的方式呢? ```js setup() { const spin = useSpin()...

也许局部指令的也行: ```js setup() { const { vSpin } = useSin({ /* ...options */ }) const isLoading = ref(false) return { vSpin, isLoading } } ``` 在模板中: ```html 内容 ```

也许可以试试 vueuse 的虚拟滚动: [https://vueuse.org/core/useInfiniteScroll/](https://vueuse.org/core/useInfiniteScroll/) 其提供 compose 函数和指令用法