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.13.0 to 3.14.0

9

lib/index.js

@@ -33,7 +33,4 @@ function _extends() {

type: String,
trigger: {
type: String,
default: "hover"
// 此处aui默认更改为 click
},
trigger: String,
// 默认主题为 'hover'
size: {

@@ -118,3 +115,3 @@ type: String,

});
var version = "3.13.0";
var version = "3.14.0";
Dropdown.install = function(Vue) {

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

@@ -37,6 +37,3 @@ function _extends() {

type: String,
trigger: {
type: String,
default: "click"
},
trigger: String,
size: {

@@ -88,3 +85,3 @@ type: String,

}),
emits: ["visible-change", "item-click", "button-click", "selectedIndex", "current-item-click"],
emits: ["visible-change", "item-click", "button-click", "selectedIndex", "current-item-click", "is-disabled"],
setup: function setup(props, context) {

@@ -132,3 +129,3 @@ return _setup({

var defaultIcon = createVNode("span", {
"class": "block"
"class": "block text-[0]"
}, [createVNode(resolveComponent("icon-chevron-down"), {

@@ -151,3 +148,3 @@ "class": "sm:block hidden will-change-transform"

"disabled": disabled,
"class": ["rounded inline-flex items-center justify-center", type === "primary" ? "[&_svg]:fill-color-bg-1" : state.visible ? "active:border-color-border-focus text-color-text-primary active:text-color-brand-focus focus:border-color-border-focus focus:text-color-brand-focus" : "[&_svg]:fill-color-icon-placeholder", type === "primary" && "[&_svg]:fill-color-bg-1"],
"class": ["rounded inline-flex items-center justify-center", type === "primary" ? "[&_svg]:fill-color-bg-1" : state.visible ? "active:border-color-border-focus text-color-text-primary active:text-color-brand-focus focus:border-color-border-focus focus:text-color-brand-focus" : "[&_svg]:fill-color-icon-placeholder"],
"reset-time": 0

@@ -154,0 +151,0 @@ }, {

@@ -0,4 +1,18 @@

function _extends() {
_extends = Object.assign ? Object.assign.bind() : 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;
};
return _extends.apply(this, arguments);
}
import { createVNode, resolveComponent, withDirectives, resolveDirective } from "vue";
import { renderless, api } from "@opentiny/vue-renderless/dropdown/vue";
import { defineComponent, $prefix, directive, setup as _setup, h } from "@opentiny/vue-common";
import { defineComponent, $prefix, directive, $props, setup as _setup, h } from "@opentiny/vue-common";
import Button from "@opentiny/vue-button";

@@ -21,8 +35,5 @@ import ButtonGroup from "@opentiny/vue-button-group";

}),
props: {
props: _extends({}, $props, {
type: String,
trigger: {
type: String,
default: "hover"
},
trigger: String,
size: {

@@ -79,2 +90,3 @@ type: String,

default: "下拉菜单"
// TINY-TODO: 国际化
},

@@ -86,4 +98,4 @@ inheritWidth: {

suffixIcon: Object
},
emits: ["visible-change", "item-click", "button-click", "menu-item-click", "handle-click"],
}),
emits: ["visible-change", "item-click", "button-click", "menu-item-click", "handle-click", "is-disabled", "selected-index"],
setup: function setup(props, context) {

@@ -159,3 +171,3 @@ return _setup({

"disabled": disabled,
"class": (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon" : ""),
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : ""),
"reset-time": 0

@@ -162,0 +174,0 @@ }, {

{
"name": "@opentiny/vue-dropdown",
"version": "3.13.0",
"version": "3.14.0",
"description": "",

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

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

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

export declare const dropdownProps: {
modelValue: (StringConstructor | NumberConstructor)[];
type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -81,6 +78,3 @@ type: StringConstructor;

type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -160,6 +154,3 @@ type: StringConstructor;

type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -238,3 +229,2 @@ type: StringConstructor;

tiny_mode_root: boolean;
trigger: string;
size: string;

@@ -241,0 +231,0 @@ splitButton: boolean;

declare const _default: import("@vue/runtime-core").DefineComponent<{
type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -66,8 +63,5 @@ type: StringConstructor;

gcls: (key: any) => any;
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "visible-change" | "current-item-click" | "selectedIndex" | "button-click")[], "item-click" | "visible-change" | "current-item-click" | "selectedIndex" | "button-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "visible-change" | "is-disabled" | "current-item-click" | "selectedIndex" | "button-click")[], "item-click" | "visible-change" | "is-disabled" | "current-item-click" | "selectedIndex" | "button-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -127,2 +121,3 @@ type: StringConstructor;

"onVisible-change"?: ((...args: any[]) => any) | undefined;
"onIs-disabled"?: ((...args: any[]) => any) | undefined;
"onCurrent-item-click"?: ((...args: any[]) => any) | undefined;

@@ -134,3 +129,2 @@ onSelectedIndex?: ((...args: any[]) => any) | undefined;

tiny_mode_root: boolean;
trigger: string;
size: string;

@@ -137,0 +131,0 @@ singleButton: boolean;

declare const _default: import("@vue/runtime-core").DefineComponent<{
type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -62,2 +59,8 @@ type: StringConstructor;

suffixIcon: ObjectConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {

@@ -71,8 +74,5 @@ t: (this: any, path: any, options?: any) => any;

gcls: (key: any) => any;
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "visible-change" | "handle-click" | "menu-item-click" | "button-click")[], "item-click" | "visible-change" | "handle-click" | "menu-item-click" | "button-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("item-click" | "visible-change" | "handle-click" | "is-disabled" | "menu-item-click" | "selected-index" | "button-click")[], "item-click" | "visible-change" | "handle-click" | "is-disabled" | "menu-item-click" | "selected-index" | "button-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
type: StringConstructor;
trigger: {
type: StringConstructor;
default: string;
};
trigger: StringConstructor;
size: {

@@ -133,2 +133,8 @@ type: StringConstructor;

suffixIcon: ObjectConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>> & {

@@ -138,8 +144,10 @@ "onItem-click"?: ((...args: any[]) => any) | undefined;

"onMenu-item-click"?: ((...args: any[]) => any) | undefined;
"onIs-disabled"?: ((...args: any[]) => any) | undefined;
"onButton-click"?: ((...args: any[]) => any) | undefined;
"onHandle-click"?: ((...args: any[]) => any) | undefined;
"onSelected-index"?: ((...args: any[]) => any) | undefined;
}, {
title: string;
disabled: boolean;
trigger: string;
tiny_mode_root: boolean;
size: string;

@@ -146,0 +154,0 @@ splitButton: boolean;

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