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

mini-antui

Package Overview
Dependencies
Maintainers
4
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-antui - npm Package Compare versions

Comparing version 0.3.7-alpha.3 to 0.3.7-alpha.4

30

es/input-item/index.js

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

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
Component({

@@ -22,17 +24,35 @@ props: {

},
didMount: function didMount() {
this.dataset = {};
for (var key in this.props) {
if (/data-/gi.test(key)) {
this.dataset[key.replace(/data-/gi, '')] = this.props[key];
}
}
},
methods: {
fmtEvent: function fmtEvent(e) {
return _extends({}, e, {
currentTarget: { dataset: this.dataset },
target: { dataset: this.dataset, targetDataset: this.dataset }
});
},
onBlur: function onBlur(e) {
this.props.onBlur(e);
var event = this.fmtEvent(e);
this.props.onBlur(event);
},
onConfirm: function onConfirm(e) {
this.props.onConfirm(e);
var event = this.fmtEvent(e);
this.props.onConfirm(event);
},
onFocus: function onFocus(e) {
this.props.onFocus(e);
var event = this.fmtEvent(e);
this.props.onFocus(event);
},
onInput: function onInput(e) {
this.props.onInput(e);
var event = this.fmtEvent(e);
this.props.onInput(event);
},
onClear: function onClear() {
console.log(222222);
my.alert({

@@ -39,0 +59,0 @@ content: 'onClear'

2

package.json
{
"name": "mini-antui",
"version": "0.3.7-alpha.3",
"version": "0.3.7-alpha.4",
"description": "小程序版AntUI",

@@ -5,0 +5,0 @@ "repository": {

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