Comments (1)
object.assign 只是对象的合并,zan里面的一些方法混入到原来的大对象里
你可以在第三个object里面写自己想要的方法
Page(Object.assign({}, Zan.Switch, {
/**
页面的初始数据
*/
data: {},
/**
生命周期函数--监听页面加载
*/
onLoad(options) {}
}))
from vant-weapp.
Related Issues (20)
- van-picker 组件多列显示 className 不生效 HOT 1
- 在skyline下需要启动 "componentFramework": "glass-easel", van-field的type类型失效
- ActionSheet 动作面板 HOT 1
- uploader组件支持企业微信 HOT 2
- 请问一下sticky 是不能在 flex 布局中使用吗 HOT 10
- 真机调试变形不知道为什么 HOT 2
- [Feature Request] 建议新增form表单组件 HOT 1
- 在 IOS 端 使用field组件,设置类型为 textarea, 做回显操作时, 高度没有撑开, 点击 textarea 才显示完整 HOT 16
- [Bug Report] 请在此填写标题 HOT 2
- 微信小程序真机预览 为什么有些组件是错乱的 HOT 3
- van-search搜索框问题 HOT 2
- [Feature Request] cell 组件能支持右侧 可放置 switch 组件么? HOT 2
- <van-calendar type="range" /> 设置默认选择日期没有反应是什么原因呢 HOT 6
- DropdownMenu点击后不会自动收起 HOT 1
- 小程序的treeSelect的插槽文档是不是有点问题 HOT 2
- [Bug Report] Toast.clear过快调用话会将后面的toast一并清理掉 HOT 5
- tabbar item个数大于2的时候,下面的切换不会改变 HOT 1
- [Bug Report] 使用van-dialog 在里边使用input 输入框时 ,弹窗出现 输入框内容错位,几秒后又恢复原状 HOT 1
- 正式打包和测试环境打包 获取输入框和值的方式不一样 HOT 7
- van-sticky内嵌scrollview吸顶超出范围 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.