微信小程序日历
2020-08-08
0 0 0
暂无评分
其他
如何获取积分?
# 小程序日历
### 引入组件
在 `json` 文件中配置组件
```json
{
"usingComponents": {
"calendar": "/component/calendar/index"
}
}
```
在 `wxml` 中引入组件
```xml
<calendar calendarConfig="{{calendarConfig}}"></calendar>
```
### 自定义配置初始化日历
```js
const conf = {
data: {
calendarConfig: {
// 配置内置主题
theme: 'elegant'
}
},
doSomeThing() {
// 调用日历方法
this.calendar.enableArea(['2018-10-7', '2018-10-28']);
}
};
Page(conf);
```
### 引入组件
在 `json` 文件中配置组件
```json
{
"usingComponents": {
"calendar": "/component/calendar/index"
}
}
```
在 `wxml` 中引入组件
```xml
<calendar calendarConfig="{{calendarConfig}}"></calendar>
```
### 自定义配置初始化日历
```js
const conf = {
data: {
calendarConfig: {
// 配置内置主题
theme: 'elegant'
}
},
doSomeThing() {
// 调用日历方法
this.calendar.enableArea(['2018-10-7', '2018-10-28']);
}
};
Page(conf);
```
相关源码推荐
使用Java开发Android AOA Android开放式附件
0
0
暂无评分
Golang AOA Android开放式附件HID控制
0
0
暂无评分
pclite
0
0
暂无评分
GMSK线性接收机
0
0
暂无评分
传世AFT中变打金版版本--以前很火爆的,收藏很久
0
0
暂无评分
暂无评论