GithubHelp home page GithubHelp logo

Comments (4)

github-actions avatar github-actions commented on May 26, 2024

👋 @yanhao98,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

from tdesign-vue-next.

uyarn avatar uyarn commented on May 26, 2024

如果是 vue3.3是否正常呢 现有的global.d.ts

from tdesign-vue-next.

yanhao98 avatar yanhao98 commented on May 26, 2024

如果是 vue3.3是否正常呢 现有的global.d.ts

不正常,详细过程:
使用 pnpm create vite 新创建的项目。vue3.3 和 vue3.2 版本都试了一下。还是不正常。先试的vue3.3 版本。后试的 vue3.2 版本。在从 3.3 换成 3.2 之前。删除了 node_modules 和 由 unplugin-vue-components 生成的 components.d.ts ,并重新打开了 VSCode 进行 pnpm i 试的。
在 3.3 和 3.2 版本 unplugin-vue-components 插件生成的 components.d.ts 里面的代码都是 declare module 'vue' {

vue3.3

image image

vue3.2

image image

from tdesign-vue-next.

yanhao98 avatar yanhao98 commented on May 26, 2024

https://github.com/unplugin/unplugin-vue-components/blob/main/src/core/declaration.ts#L123

这个是 unplugin-vue-components 生成.d.ts文件的代码。

unplugin/unplugin-vue-components#638

from tdesign-vue-next.

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.