Coder Social home page Coder Social logo

Comments (2)

chengpeiquan avatar chengpeiquan commented on June 4, 2024 1

饿了么plus没有用过…不过如果在 main 里做全局引入组件的话,应该用全局的 API 语法去调用吧,3.0用全局的方式会有点蛋疼。

这个报错是正常的,在组件里没有导入或者定义(不像template部分那样既可以 <el-form /> 也可以 <ElForm />),3.0 在用这些框架的时候,建议是在组件里按需导入,TS 定义类型也方便。

现在的饿了么我不太了解,但 Antd 和 Vant 都支持通过配置 babel-plugin-import 在打包的时候移除用不到的组件,减少构建出来的项目体积,可以看看官网的说明看看支不支持

from learning-vue3.

CHEN-Jing194 avatar CHEN-Jing194 commented on June 4, 2024

确实 需要定义类型还是得在组件里再次导入,谢谢大佬解惑。

from learning-vue3.

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.