Git Product home page Git Product logo

Comments (7)

YFAnt avatar YFAnt commented on May 22, 2024 2

可以的 :)

from tdesign-vue.

YFAnt avatar YFAnt commented on May 22, 2024

我在src/drawer/drawer.tsx 做了如下修改 应该可以解决上面问题
image其实这个地方应该用正则匹配设置className,这样没有兼容性问题,
但是我没看到公共函数在哪写,由于涉及面太广,还得去另外一个库里面加入类名,请作者自己修复吧

from tdesign-vue.

chaishi avatar chaishi commented on May 22, 2024

理解下来应该防止滚动穿透的功能,Dialog 有这个功能,Drawer 应该是漏了

Drawer 后续新增 API preventScrollThrough: boolean,用于设置是否防止滚动穿透,Drawer 的实现可参考 Loading。

此处建议定义一个公共函数处理

from tdesign-vue.

chaishi avatar chaishi commented on May 22, 2024

image

Loading 组件 和 Dialog 组件已经实现 防止滚动穿透,Drawer 也需要支持,此处考虑独立一个函数,统一处理

from tdesign-vue.

chaishi avatar chaishi commented on May 22, 2024

处理方式参考 Loading 组件

image

from tdesign-vue.

chaishi avatar chaishi commented on May 22, 2024

@caoML 跟进中

from tdesign-vue.

xiaosansiji avatar xiaosansiji commented on May 22, 2024

已在 0.33.0 版本中修复

from tdesign-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.