1.0.18 • Published 2 years ago
balance-center v1.0.18
item-tab-content
安装与使用
- 在小程序根目录(project.config.json中
miniprogramRoot
配置的目录)中依次执行
npm init
npm i item-tab-content -S --production
- 微信开发者工具,项目配置开启使用npm模块,并执行“工具-构建npm”
- 在小程序页面json文件中配置
"usingComponents": {
"item-tab-content": "item-tab-content"
}
- 在小程序页面中使用组件
<item-tab-content />
配置参数
完整的配置项及默认值如下:
<item-tab-content
parametersUrl="" // 接口全地址
tabArr="" // 列表数据
seeNum="" // 查看更多
cityIndex="" // 默认选中城市的index
cityArray="" // 城市数据
fixedTop="" // 城市top位置
longitude="" // 经度
latitude="" // 纬度
user_id="" // 用户id
>
</item-tab-content>
...
data: {
parametersUrl: String,
tabArr: Array,
seeNum: {
type: Number,
value: 3
},
cityIndex: {
type: Number,
value: 0
},
cityArray: {
type: Array,
value: ['厦门市']
},
fixedTop: String,
longitude: String,
latitude: String,
user_id: Number
}
...
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.9
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.2
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago