Comments (1)
在不使用工具的情况下,
小程序不支持 node_modules,如果通过 bower 安装,只有 dist
目录会被安装下来,未压缩大概 200K
因为组件只是提供了基础常用的 UI 组件,所以完全可以通过 bower 安装组件库,一次全部引入
当然,如果考虑更好的优化的话
可以只 拷贝
你需要的组件到你的项目目录。
当然,拷贝是一件比较无语的事,用工具解决才是王道~
所以我们这段时间会自己做一个工具,根据小程序语法分析依赖,构建更小的代码包。
from vant-weapp.
Related Issues (20)
- tab 标签页 Tab Slot 插槽功能希望能新增上 HOT 1
- 折叠面板 不能正常使用 HOT 1
- 在微信小程序Skyline渲染模式下,引入外部样式无法覆盖vant-weapp组件的原有样式 HOT 2
- Field: click-input 事件在windows微信上无效 HOT 2
- [Bug Report] van-field 在type='nickName'时,无法监听bindnicknamereview 事件 HOT 2
- [Bug Report] toast HOT 9
- [Bug Report] van-image标签在选择widthFix模式时没法填满父容器 HOT 1
- [Bug Report] checkbox-group下的checkbox的change事件无法触发 HOT 1
- [Bug Report] cascader组件的value属性在重置为""空字符串时,组件显示异常 HOT 1
- [Feature Request] van-switch内切换显示不同的文字 HOT 1
- vant-filed自动填充删除元素的高度 HOT 3
- [Bug Report] 微信小程序中 van-row报错 HOT 2
- [Bug Report] 在基础调试库3.4.1版本下使用一些组件会报错Cannot read property '0' of undefined HOT 2
- datetime-picker在uniapp中使用受控组件后导致页面卡死 HOT 2
- chat ui HOT 1
- Slider 双向滑块 能不能显示滑块的数字?
- 官网挂了 HOT 9
- Toast 失效问题
- [Feature Request] 期望能有个Pagination 分页组件,用于处理一些分页的需求[
- Gitee 文档站下线通知 & 解决方法 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vant-weapp.