@opentiny/vue-dropdown
Advanced tools
Comparing version 2.10.1 to 2.11.0-alpha.0
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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10
23295
696
2
+ Added@opentiny/vue-button@2.11.0(transitive)
+ Added@opentiny/vue-button-group@2.11.0(transitive)
+ Added@opentiny/vue-common@2.11.0(transitive)
+ Added@opentiny/vue-icon@2.11.0(transitive)
+ Added@opentiny/vue-locale@2.11.0(transitive)
+ Added@opentiny/vue-renderless@3.11.8(transitive)
+ Added@opentiny/vue-theme@3.11.6(transitive)
+ Added@opentiny/vue-theme-mobile@3.11.1(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
- Removed@opentiny/vue-button@2.10.0(transitive)
- Removed@opentiny/vue-button-group@2.10.1(transitive)
- Removed@opentiny/vue-common@2.10.0(transitive)
- Removed@opentiny/vue-icon@2.10.1(transitive)
- Removed@opentiny/vue-locale@2.10.0(transitive)
- Removed@opentiny/vue-renderless@3.10.7(transitive)
- Removed@opentiny/vue-theme@3.10.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.10.1(transitive)
Updated@opentiny/vue-button@~2.11.0
Updated@opentiny/vue-common@~2.11.0
Updated@opentiny/vue-icon@~2.11.0
Updated@opentiny/vue-theme@~3.11.0