Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hsy-vue-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hsy-vue-dropdown - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

20

lib/index.js

@@ -101,3 +101,3 @@ module.exports =

// module
exports.push([module.i, ".hsy-dropdown{font:10px Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;display:inline-block;position:relative}.hsy-dropdown>.selected{height:28px;line-height:28px;border-radius:3px;border:1px solid #b3c1d8;font-size:1.2em;padding:0 20px 0 10px;color:#4c5565;cursor:pointer;background:url(" + __webpack_require__(3) + ") no-repeat 100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hsy-dropdown>.list{position:absolute;top:35px;left:0;font-size:1.2em;box-shadow:0 0 5px rgba(0,0,0,.2);background:#fff;border-radius:3px;z-index:100}.hsy-dropdown>.list>.inner{padding:5px}.hsy-dropdown>.list .item{height:30px;line-height:30px;padding:0 10px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-position:5px}.hsy-dropdown.multiple>.list .item:hover,.hsy-dropdown>.list .item:hover{background-color:#eee;border-radius:3px}.hsy-dropdown>.list .item.selected{background:#7d8699 url(" + __webpack_require__(6) + ") no-repeat 10px;border-radius:3px;color:#fff;padding-left:35px}.hsy-dropdown .animated{animation-duration:.35s;animation-fill-mode:both}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.hsy-dropdown .fadeIn{animation-name:fadeIn}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.hsy-dropdown .fadeOut{animation-name:fadeOut}.hsy-dropdown.multiple .item{color:#7d8699;padding:0 5px}.hsy-dropdown.multiple .item.selected{background:none;padding:0 5px;color:#7d8699}.hsy-dropdown.multiple .item input{display:none}.hsy-dropdown.multiple .item input+label{display:block;padding-left:23px;background:url(" + __webpack_require__(4) + ") no-repeat 0;vertical-align:middle;margin:0;cursor:pointer}.hsy-dropdown.multiple .item input:checked+label{background:url(" + __webpack_require__(5) + ") no-repeat 0}.hsy-dropdown.multiple .item input:disabled+label{color:#ccc;cursor:not-allowed}.hsy-dropdown .group{font-size:10px}.hsy-dropdown .group h3{font-size:1.2em;font-weight:400;padding-left:5px;cursor:default}.hsy-dropdown .group label{font-size:1.2em}", ""]);
exports.push([module.i, ".hsy-dropdown{font:10px Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;display:inline-block;position:relative}.hsy-dropdown>.selected{height:28px;line-height:28px;border-radius:3px;border:1px solid #b3c1d8;font-size:1.2em;padding:0 20px 0 10px;color:#4c5565;cursor:pointer;background:url(" + __webpack_require__(3) + ") no-repeat 100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hsy-dropdown>.list{position:absolute;top:35px;left:0;font-size:1.2em;box-shadow:0 0 5px rgba(0,0,0,.2);background:#fff;border-radius:3px;z-index:100}.hsy-dropdown>.list>.inner{padding:5px}.hsy-dropdown>.list .item{height:30px;line-height:30px;padding:0 10px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-position:5px}.hsy-dropdown.multiple>.list .item:hover,.hsy-dropdown>.list .item:hover{background-color:#eee;border-radius:3px}.hsy-dropdown>.list .item.selected{background:#7d8699 url(" + __webpack_require__(6) + ") no-repeat 10px;border-radius:3px;color:#fff;padding-left:35px}.hsy-dropdown .animated{animation-duration:.35s;animation-fill-mode:both}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.hsy-dropdown .fadeIn{animation-name:fadeIn}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.hsy-dropdown .fadeOut{animation-name:fadeOut}.hsy-dropdown.multiple .item{color:#7d8699;padding:0 5px}.hsy-dropdown.multiple .item.selected{background:none;padding:0 5px;color:#7d8699}.hsy-dropdown.multiple .item input{display:none}.hsy-dropdown.multiple .item input+label{display:block;padding-left:23px;background:url(" + __webpack_require__(4) + ") no-repeat 0;vertical-align:middle;margin:0;cursor:pointer}.hsy-dropdown.multiple .item input:checked+label{background:url(" + __webpack_require__(5) + ") no-repeat 0}.hsy-dropdown.multiple .item input:disabled+label{color:#ccc;cursor:not-allowed}.hsy-dropdown .group{font-size:10px}.hsy-dropdown .group h3{font-size:1.2em;font-weight:500;padding-left:5px;cursor:default}.hsy-dropdown .group .item{font-size:1.2em}", ""]);

@@ -185,3 +185,3 @@ // exports

module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMTQgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDQyICgzNjc4MSkgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+74CMPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+PC9kZWZzPgogICAgPGcgaWQ9IlBhZ2UtMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZm9udC1zaXplPSIxNCIgZm9udC1mYW1pbHk9IkZvbnRBd2Vzb21lIiBmb250LXdlaWdodD0ibm9ybWFsIj4KICAgICAgICA8ZyBpZD0i55uu5qCH5Lq6576kLee8lui+keebruagh+S6uue+pDEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC00OTEuMDAwMDAwLCAtMzI2Lj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AgICAgICAgICAgIDxnIGlkPSJHcm91cC0zIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNTEuMDAwMDAwLCAxMTIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0iR3JvdXAtMTEiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyNi4wMDAwMDAsIDIwMC42NDAwMTUpIj4KICAgICAgICAgICAgICAgICAgICA8dGV4dCBpZD0i74CMIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHRzcGFuIHg9IjE0IiB5PSIyMyI+74CMPC90c3Bhbj4KICAgICAgICAgICAgICAgICAgICA8L3RleHQ+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="

@@ -815,3 +815,3 @@ /***/ }),

findSelected: function findSelected() {
if (this.multiple) {
if (!this.grouped) {
return this.data.filter(function (d) {

@@ -821,11 +821,9 @@ return d.selected === true;

}
var ret = null;
this.data.every(function (d) {
if (d.selected) {
ret = d;
return false;
}
return true;
var items = [];
return this.data.reduce(function (pre, e) {
pre = pre.concat(e.children);
return pre;
}, items).filter(function (d) {
return d.selected === true;
});
return ret === null ? [] : [ret];
},

@@ -832,0 +830,0 @@ itemClicked: function itemClicked(item) {

{
"name": "hsy-vue-dropdown",
"version": "0.0.4",
"version": "0.0.5",
"description": "vue dropdown component.",

@@ -5,0 +5,0 @@ "author": "hsiaosiyuan0 <hsiaosiyuan0@outlook.com>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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