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

@opentiny/vue-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-dropdown - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0

2

lib/index.js

@@ -114,3 +114,3 @@ function _extends() {

});
var version = "3.18.0";
var version = "3.19.0";
Dropdown.install = function(Vue) {

@@ -117,0 +117,0 @@ Vue.component(Dropdown.name, Dropdown);

@@ -18,3 +18,3 @@ function _extends() {

import DropdownMenu from "@opentiny/vue-dropdown-menu";
import { iconDownWard, iconDeltaDown } from "@opentiny/vue-icon";
import { iconDownWard } from "@opentiny/vue-icon";
var _sfc_main = /* @__PURE__ */ defineComponent({

@@ -93,2 +93,3 @@ name: $prefix + "Dropdown",

suffixIcon: Object,
prefixIcon: Object,
lazyShowPopper: {

@@ -111,3 +112,3 @@ type: Boolean,

var _state$designConfig, _state$designConfig$i, _state$designConfig2, _state$designConfig2$;
var splitButton = this.splitButton, type = this.type, disabled = this.disabled, handleMainButtonClick = this.handleMainButtonClick, menuOptions = this.menuOptions, title = this.title, suffixIcon = this.suffixIcon;
var splitButton = this.splitButton, type = this.type, disabled = this.disabled, handleMainButtonClick = this.handleMainButtonClick, menuOptions = this.menuOptions, title = this.title, suffixIcon = this.suffixIcon, prefixIcon = this.prefixIcon;
var slots = this.slots, size = this.size, state = this.state, border = this.border, showIcon = this.showIcon, round = this.round, clickOutside = this.clickOutside;

@@ -120,3 +121,4 @@ var params = {

var visibleClass = state.visible ? "tiny-dropdown--visible tiny-dropdown-visible" : "";
var IconDown = suffixIcon || ((_state$designConfig = state.designConfig) == null ? void 0 : (_state$designConfig$i = _state$designConfig.icons) == null ? void 0 : _state$designConfig$i.dropdownIcon) || iconDeltaDown();
var IconDown = suffixIcon || ((_state$designConfig = state.designConfig) == null ? void 0 : (_state$designConfig$i = _state$designConfig.icons) == null ? void 0 : _state$designConfig$i.dropdownIcon) || iconDownWard();
var IconPre = prefixIcon;
var ButtonIconDown = ((_state$designConfig2 = state.designConfig) == null ? void 0 : (_state$designConfig2$ = _state$designConfig2.icons) == null ? void 0 : _state$designConfig2$.dropdownIcon) || iconDownWard();

@@ -156,2 +158,3 @@ var defaultSlot = slots.default && slots.default(params);

var suffixSlot = slots["suffix-icon"] && slots["suffix-icon"]();
var prefixSlot = slots["prefix-icon"] && slots["prefix-icon"]();
var vnodeData = defaultSlot && ((_defaultSlot$ = defaultSlot[0]) == null ? void 0 : _defaultSlot$.data) || {};

@@ -166,2 +169,5 @@ var _vnodeData$attrs2 = vnodeData.attrs, attrs = _vnodeData$attrs2 === void 0 ? {} : _vnodeData$attrs2;

}, [suffixSlot || createVNode(IconDown, null, null)]) : "";
var prefixInner = prefixIcon || prefixSlot ? createVNode("span", {
"class": "tiny-dropdown__prefix-inner " + visibleClass
}, [prefixSlot || createVNode(IconPre, null, null)]) : "";
var defaultTriggerElm = defaultSlot || title ? createVNode("span", {

@@ -174,7 +180,8 @@ "class": "tiny-dropdown__title"

"disabled": disabled,
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : ""),
"type": type,
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : "") + " " + triggerClass,
"reset-time": 0
}, {
default: function _default2() {
return [defaultTriggerElm, suffixInner];
return [prefixInner, defaultTriggerElm, suffixInner];
}

@@ -184,3 +191,3 @@ }) : createVNode("span", {

"class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass
}, [defaultTriggerElm, suffixInner]);
}, [prefixInner, defaultTriggerElm, suffixInner]);
}

@@ -187,0 +194,0 @@ var defaulMenuElm = createVNode(resolveComponent("tiny-dropdown-menu"), {

{
"name": "@opentiny/vue-dropdown",
"version": "3.18.0",
"version": "3.19.0",
"description": "",

@@ -10,9 +10,9 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.18.0",
"@opentiny/vue-theme": "~3.18.0",
"@opentiny/vue-button": "~3.18.0",
"@opentiny/vue-button-group": "~3.18.0",
"@opentiny/vue-common": "~3.18.0",
"@opentiny/vue-icon": "~3.18.0",
"@opentiny/vue-dropdown-menu": "~3.18.0"
"@opentiny/vue-renderless": "~3.19.0",
"@opentiny/vue-theme": "~3.19.0",
"@opentiny/vue-button": "~3.19.0",
"@opentiny/vue-button-group": "~3.19.0",
"@opentiny/vue-common": "~3.19.0",
"@opentiny/vue-icon": "~3.19.0",
"@opentiny/vue-dropdown-menu": "~3.19.0"
},

@@ -19,0 +19,0 @@ "license": "MIT",

@@ -59,2 +59,3 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{

suffixIcon: ObjectConstructor;
prefixIcon: ObjectConstructor;
lazyShowPopper: {

@@ -136,2 +137,3 @@ type: BooleanConstructor;

suffixIcon: ObjectConstructor;
prefixIcon: ObjectConstructor;
lazyShowPopper: {

@@ -138,0 +140,0 @@ type: BooleanConstructor;

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