New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mini-ali-ui-rpx

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-ali-ui-rpx - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

61

es/swipe-action/index.js
import fmtUnit from '../_util/fmtUnit';
var isV2 = my.canIUse('movable-view.onTouchStart');
var _windowWidth;
Component({

@@ -67,28 +70,32 @@ data: {

setWindowWidth: function setWindowWidth() {
var _this = this;
if (!_windowWidth) {
var sysInfo = my.getSystemInfoSync();
my.getSystemInfo({
success: function success(res) {
_this.setData({
viewWidth: res.windowWidth
});
_this.setBtnWidth();
_this.getSwipeHeight();
if (sysInfo) {
_windowWidth = sysInfo.windowWidth;
this.realSetWindowWidth(sysInfo.windowWidth);
}
} else {
this.realSetWindowWidth(_windowWidth);
}
},
realSetWindowWidth: function realSetWindowWidth(windowWidth) {
this.setData({
viewWidth: windowWidth
});
this.setBtnWidth();
this.getSwipeHeight();
},
setBtnWidth: function setBtnWidth() {
var _this2 = this;
var _this = this;
my.createSelectorQuery().select(".am-swipe-right-" + this.$id).boundingClientRect().exec(function (ret) {
_this2.btnWidth = ret && ret[0] && ret[0].width || 0;
_this.btnWidth = ret && ret[0] && ret[0].width || 0;
if (isV2 && _this2.props.enableNew) {
_this2.setData({
actionWidth: _this2.btnWidth,
x: _this2.btnWidth,
cellWidth: _this2.btnWidth,
lastWidth: _this2.btnWidth
if (isV2 && _this.props.enableNew) {
_this.setData({
actionWidth: _this.btnWidth,
x: _this.btnWidth,
cellWidth: _this.btnWidth,
lastWidth: _this.btnWidth
});

@@ -99,3 +106,3 @@ }

getSwipeHeight: function getSwipeHeight() {
var _this3 = this;
var _this2 = this;

@@ -109,3 +116,3 @@ var enableNew = this.props.enableNew;

_this3.setData({
_this2.setData({
height: parseInt(ret[0].height, 0)

@@ -229,3 +236,3 @@ });

onChangeEnd: function onChangeEnd(e) {
var _this4 = this;
var _this3 = this;

@@ -238,4 +245,4 @@ var actionWidth = this.data.actionWidth;

}, function () {
_this4.setData({
x: _this4.data.x === -1 ? 0 : actionWidth
_this3.setData({
x: _this3.data.x === -1 ? 0 : actionWidth
});

@@ -245,3 +252,3 @@ });

done: function done() {
var _this5 = this;
var _this4 = this;

@@ -251,3 +258,3 @@ this.setData({

}, function () {
_this5.setData({
_this4.setData({
holdSwipe: false

@@ -258,3 +265,3 @@ });

onItemClick: function onItemClick(e) {
var _this6 = this;
var _this5 = this;

@@ -276,3 +283,3 @@ var onRightItemClick = this.props.onRightItemClick;

setTimeout(function () {
_this6.setData({
_this5.setData({
leftPos: 0,

@@ -279,0 +286,0 @@ swiping: false,

@@ -1,1 +0,1 @@

{"name":"mini-ali-ui-rpx","version":"1.3.7","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"dependencies":{"@babel/runtime":"^7.11.2"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}}
{"name":"mini-ali-ui-rpx","version":"1.3.8","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"dependencies":{"@babel/runtime":"^7.11.2"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc