Compare commits

..

10 Commits

Author SHA1 Message Date
April
f5ae7aca6f Merge pull request #7 from IceApriler/dependabot/npm_and_yarn/handlebars-4.5.3
Bump handlebars from 4.1.2 to 4.5.3
2020-01-04 10:16:41 +08:00
dependabot[bot]
3c1095ecee Bump handlebars from 4.1.2 to 4.5.3
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-29 16:06:26 +00:00
April
8e3cd2b322 Merge pull request #5 from IceApriler/dependabot/npm_and_yarn/eslint-utils-1.4.2
Bump eslint-utils from 1.4.0 to 1.4.2
2019-08-28 16:51:36 +08:00
dependabot[bot]
547a53b834 Bump eslint-utils from 1.4.0 to 1.4.2
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-27 08:27:54 +00:00
qimengjie
e950bbd2d0 Merge branch 'dev' 2019-07-27 00:07:50 +08:00
qimengjie
2862f5163b Add: badge 2019-07-27 00:05:42 +08:00
April
7e8891df69 Merge pull request #3 from IceApriler/dev
1.0.7
2019-07-26 11:17:44 +08:00
qimengjie
757f4a6a57 Release: 1.0.7 2019-07-26 11:11:29 +08:00
qimengjie
efc8fbd388 fix: #2 2019-07-26 10:29:51 +08:00
qimengjie
27b2e18d67 Add: yarn lock 2019-07-26 01:31:47 +08:00
5 changed files with 7684 additions and 4 deletions

View File

@@ -1,5 +1,11 @@
# miniprogram-picker
![license](https://img.shields.io/github/license/IceApriler/miniprogram-picker)
![npm version](https://img.shields.io/npm/v/miniprogram-picker)
![npm dm](https://img.shields.io/npm/dm/miniprogram-picker)
![last commit](https://img.shields.io/github/last-commit/IceApriler/miniprogram-picker)
![stars](https://img.shields.io/github/stars/IceApriler/miniprogram-picker?style=social)
## 简介
- 微信小程序的Picker组件只是半成品组件在启用多级联动时需要监听`bindcolumnchange`事件,来手动更改`range``value`的值从而完成Picker的联动变化比较麻烦不利于在不同的业务逻辑中的复用。

View File

@@ -9,6 +9,6 @@
"author": "IceApriler",
"license": "ISC",
"dependencies": {
"miniprogram-picker": "^1.0.5"
"miniprogram-picker": "^1.0.7"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "miniprogram-picker",
"version": "1.0.5",
"version": "1.0.7",
"description": "微信小程序自定义组件Picker。本组件对微信小程序原生Picker组件进行了二次封装开发者只需要提供固定数据结构的sourceData再进行一些必要配置本组件就可以自动帮助开发者处理联动逻辑。",
"main": "miniprogram_dist/index.js",
"scripts": {

View File

@@ -120,12 +120,12 @@ Component({
_multiArrayColumn0.push(item[shownFieldName])
}
if (item[shownFieldName] && index === (defaultIndex[columnIndex] || 0)) {
if (isExist(item[shownFieldName]) && index === (defaultIndex[columnIndex] || 0)) {
// 选中的索引和值默认取每列的第0个
multiIndex.push(index)
if (columnIndex < steps - 1) {
if (item[subsetFieldName]) {
if (isExist(item[subsetFieldName])) {
// 开始处理下一维的数据
const _subsetArr = item[subsetFieldName].map(sub => sub[shownFieldName])
multiArray.push(_subsetArr)

7674
yarn.lock Normal file

File diff suppressed because it is too large Load Diff