Socket
Socket
Sign inDemoInstall

mobile-select

Package Overview
Dependencies
0
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

6

mobile-select.js

@@ -349,6 +349,6 @@ /*!

_this.fixRowStyle();
_this.setCurDistance(_this.resetPostion(index, posIndexArr));
_this.setCurDistance(_this.resetPosition(index, posIndexArr));
},
resetPostion: function(index, posIndexArr){
resetPosition: function(index, posIndexArr){
var _this = this;

@@ -518,3 +518,3 @@ var tempPosArr = posIndexArr;

locatePostion: function(index, posIndex){
locatePosition: function(index, posIndex){
this.curDistance[index] = this.calcDistance(posIndex);

@@ -521,0 +521,0 @@ this.movePosition(this.slider[index],this.curDistance[index]);

{
"name": "mobile-select",
"version": "1.0.4",
"version": "1.0.5",
"description": "A multi-function mobile phone scrolling selector, support single to multi-select, support multi-level cascade, provide custom callback function, provide update function redraw, relocation function, compatible pc drag and so on.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -373,3 +373,3 @@ <p align="center"><img width="130" src="https://github.com/onlyhom/img-folder/blob/master/png/m_logo_orange.png?raw=true"></p>

|setTitle()| string |Set the title of the component|
|locatePostion()|sliderIndex, posIndex|Pass the position array parameter, relocate the position of the wheel|
|locatePosition()|sliderIndex, posIndex|Pass the position array parameter, relocate the position of the wheel|
|updateWheel()| sliderIndex, data | Re-render the specified wheel |

@@ -407,3 +407,3 @@ |updateWheels()| data | Re-render the all wheel(Only used in cascading data forma) |

mySelect.locatePostion(1,0);
mySelect.locatePosition(1,0);
// Reposition the position of the first wheel and change the 0th data of the first wheel to the current selection.

@@ -418,3 +418,3 @@ // (The first wheel is the right wheel, the left side of the wheel is the first 0)

## Project demo:
Use the transitionEnd (), callback (), updateWheel (), locatePostion () functions to do the following:
Use the transitionEnd (), callback (), updateWheel (), locatePosition () functions to do the following:

@@ -472,4 +472,4 @@ - choose the date of the day, not more than today has been too.

### 2017-09-07[更新]  
Add keyMap function
update README
Add keyMap function
update README

@@ -476,0 +476,0 @@ ## License

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc