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 2.10.1 to 2.11.0-alpha.0

LICENSE

151

lib/index.js

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

}
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
import PcTemplate from "./pc.js";

@@ -29,78 +29,79 @@ import MobileFirstTemplate from "./mobile-first.js";

};
var dropdownProps = _extends({}, $props, {
modelValue: [String, Number],
type: String,
trigger: {
type: String,
default: "hover"
// 此处aui默认更改为 click
},
size: {
type: String,
default: ""
},
disabled: {
type: Boolean,
default: false
},
splitButton: Boolean,
singleButton: {
type: Boolean,
default: false
},
showTimeout: {
type: Number,
default: 250
},
hideTimeout: {
type: Number,
default: 150
},
hideOnClick: {
type: Boolean,
default: true
},
tabindex: {
type: Number,
default: 0
},
border: {
type: Boolean,
default: false
},
round: {
type: Boolean,
default: false
},
showIcon: {
type: Boolean,
default: true
},
showSelfIcon: {
type: Boolean,
default: false
},
menuOptions: {
type: Object,
default: function _default() {
return {
options: [],
textField: "label",
popperClass: "",
placement: "bottom-end"
};
}
},
title: {
type: String,
default: "下拉菜单"
},
inheritWidth: {
type: Boolean,
default: false
}
});
var Dropdown = defineComponent({
name: $prefix + "Dropdown",
componentName: "TinyDropdown",
props: _extends({}, $props, {
modelValue: [String, Number],
type: String,
trigger: {
type: String,
default: "hover"
// 此处aui默认更改为 click
},
size: {
type: String,
default: ""
},
disabled: {
type: Boolean,
default: false
},
splitButton: Boolean,
singleButton: {
type: Boolean,
default: false
},
showTimeout: {
type: Number,
default: 250
},
hideTimeout: {
type: Number,
default: 150
},
hideOnClick: {
type: Boolean,
default: true
},
tabindex: {
type: Number,
default: 0
},
border: {
type: Boolean,
default: false
},
round: {
type: Boolean,
default: false
},
showIcon: {
type: Boolean,
default: true
},
showSelfIcon: {
type: Boolean,
default: false
},
menuOptions: {
type: Object,
default: function _default() {
return {
options: [],
textField: "label",
popperClass: "",
placement: "bottom-end"
};
}
},
title: {
type: String,
default: "下拉菜单"
},
inheritWidth: {
type: Boolean,
default: false
}
}),
props: dropdownProps,
setup: function setup(props, context) {

@@ -114,3 +115,3 @@ return $setup({

});
var version = "2.10.1";
var version = "2.11.0-alpha.0";
Dropdown.install = function(Vue) {

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

@@ -144,3 +144,2 @@ import { renderless, api } from "@opentiny/vue-renderless/dropdown/vue";

api,
mono: true,
h

@@ -147,0 +146,0 @@ });

{
"name": "@opentiny/vue-dropdown",
"version": "2.10.1",
"version": "2.11.0-alpha.0",
"description": "",

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

"type": "module",
"dependencies": {
"@opentiny/vue-renderless": "~3.11.0",
"@opentiny/vue-theme": "~3.11.0",
"@opentiny/vue-button": "~2.11.0",
"@opentiny/vue-button-group": "~2.11.0",
"@opentiny/vue-common": "~2.11.0",
"@opentiny/vue-icon": "~2.11.0"
},
"license": "MIT",
"types": "index.d.ts",
"scripts": {
"build": "pnpm -w build:ui $npm_package_name",
"//postversion": "pnpm build"
},
"dependencies": {
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue-theme": "~3.10.0",
"@opentiny/vue-button": "~2.10.0",
"@opentiny/vue-button-group": "~2.10.0",
"@opentiny/vue-common": "~2.10.0",
"@opentiny/vue-icon": "~2.10.0"
},
"license": "MIT",
"types": "index.d.ts"
}
}

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

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
export declare const dropdownProps: {
modelValue: (StringConstructor | NumberConstructor)[];

@@ -76,97 +76,4 @@ type: StringConstructor;

tiny_chart_theme: ObjectConstructor;
}, {
title: string;
disabled: boolean;
tiny_mode_root: boolean;
tabindex: number;
size: string;
round: boolean;
showIcon: boolean;
border: boolean;
trigger: string;
splitButton: boolean;
singleButton: boolean;
showTimeout: number;
hideTimeout: number;
hideOnClick: boolean;
showSelfIcon: boolean;
menuOptions: Record<string, any>;
inheritWidth: boolean;
} & {
type?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: string | number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
title: string;
disabled: boolean;
tiny_mode_root: boolean;
tabindex: number;
size: string;
round: boolean;
showIcon: boolean;
border: boolean;
trigger: string;
splitButton: boolean;
singleButton: boolean;
showTimeout: number;
hideTimeout: number;
hideOnClick: boolean;
showSelfIcon: boolean;
menuOptions: Record<string, any>;
inheritWidth: boolean;
} & {
type?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: string | number | undefined;
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
title: string;
disabled: boolean;
tiny_mode_root: boolean;
tabindex: number;
size: string;
round: boolean;
showIcon: boolean;
border: boolean;
trigger: string;
splitButton: boolean;
singleButton: boolean;
showTimeout: number;
hideTimeout: number;
hideOnClick: boolean;
showSelfIcon: boolean;
menuOptions: Record<string, any>;
inheritWidth: boolean;
} & {
type?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: string | number | undefined;
}, {
title: string;
disabled: boolean;
tabindex: number;
size: string;
round: boolean;
showIcon: boolean;
border: boolean;
trigger: string;
singleButton: boolean;
showTimeout: number;
hideTimeout: number;
hideOnClick: boolean;
showSelfIcon: boolean;
menuOptions: Record<string, any>;
inheritWidth: boolean;
}, true>);
};
declare const _default: any;
export default _default;

@@ -1,8 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<unknown> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, unknown, {
[x: string]: any;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<unknown>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
}, {}, true>);
declare const _default: any;
export default _default;

@@ -1,8 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<unknown> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, unknown, {
[x: string]: any;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<unknown>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
}, {}, true>);
declare const _default: any;
export default _default;
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