@opentiny/vue-dropdown-menu
Advanced tools
Comparing version 3.10.0 to 3.11.0-alpha.0
133
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"; | ||
@@ -32,69 +32,70 @@ import MobileTemplate from "./mobile.js"; | ||
}; | ||
var dropdownMenuProps = _extends({}, $props, { | ||
multiStage: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
checkedStatus: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
visibleArrow: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
arrowOffset: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
placement: { | ||
type: String, | ||
default: "bottom-end" | ||
// aui的默认值为bottom-start | ||
}, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
activeColor: String, | ||
closeOnClickOutside: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
closeOnClickOverlay: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
direction: { | ||
type: String, | ||
default: "down" | ||
}, | ||
duration: { | ||
type: [Number, String], | ||
default: 0.2 | ||
}, | ||
overlay: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
zIndex: [Number, String], | ||
maxHeight: { | ||
type: [Number, String], | ||
default: "400" | ||
}, | ||
options: { | ||
type: Array, | ||
default: function _default() { | ||
return []; | ||
} | ||
}, | ||
textField: { | ||
type: String, | ||
default: "label" | ||
} | ||
}); | ||
var DropdownMenu = defineComponent({ | ||
name: $prefix + "DropdownMenu", | ||
componentName: $prefix + "DropdownMenu", | ||
props: _extends({}, $props, { | ||
multiStage: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
checkedStatus: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
visibleArrow: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
arrowOffset: { | ||
type: Number, | ||
default: 0 | ||
}, | ||
placement: { | ||
type: String, | ||
default: "bottom-end" | ||
// aui的默认值为bottom-start | ||
}, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
activeColor: String, | ||
closeOnClickOutside: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
closeOnClickOverlay: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
direction: { | ||
type: String, | ||
default: "down" | ||
}, | ||
duration: { | ||
type: [Number, String], | ||
default: 0.2 | ||
}, | ||
overlay: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
zIndex: [Number, String], | ||
maxHeight: { | ||
type: [Number, String], | ||
default: "400" | ||
}, | ||
options: { | ||
type: Array, | ||
default: function _default() { | ||
return []; | ||
} | ||
}, | ||
textField: { | ||
type: String, | ||
default: "label" | ||
} | ||
}), | ||
props: dropdownMenuProps, | ||
setup: function setup(props, context) { | ||
@@ -108,3 +109,3 @@ return $setup({ | ||
}); | ||
var version = "3.10.0"; | ||
var version = "3.11.0-alpha.0"; | ||
DropdownMenu.install = function(Vue) { | ||
@@ -111,0 +112,0 @@ Vue.component(DropdownMenu.name, DropdownMenu); |
@@ -5,3 +5,3 @@ import { renderless, api } from "@opentiny/vue-renderless/dropdown-menu/vue"; | ||
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createVNode, renderSlot, vShow } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
@@ -44,3 +44,3 @@ if (it) | ||
var target = sfc.__vccOpts || sfc; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
@@ -47,0 +47,0 @@ target[key] = val; |
import { renderless, api } from "@opentiny/vue-renderless/dropdown-menu/vue"; | ||
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common"; | ||
import { defineComponent, props, directive, setup as _setup } from "@opentiny/vue-common"; | ||
import { iconUp, iconDown, iconUnfilter, iconSort, iconDeltaDown, iconDeltaUp } from "@opentiny/vue-icon"; | ||
@@ -7,3 +7,3 @@ import Clickoutside from "@opentiny/vue-renderless/common/deps/clickoutside"; | ||
import { resolveComponent, resolveDirective, openBlock, createElementBlock, createElementVNode, Fragment, renderList, withDirectives, normalizeClass, normalizeStyle, toDisplayString, createVNode, createBlock, resolveDynamicComponent, renderSlot } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
@@ -46,3 +46,3 @@ if (it) | ||
var target = sfc.__vccOpts || sfc; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
@@ -64,5 +64,5 @@ target[key] = val; | ||
}, | ||
directives: { | ||
directives: directive({ | ||
Clickoutside | ||
}, | ||
}), | ||
emits: ["open"], | ||
@@ -69,0 +69,0 @@ setup: function setup(props2, context) { |
@@ -6,3 +6,3 @@ import { renderless, api } from "@opentiny/vue-renderless/dropdown-menu/vue"; | ||
import { resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, renderSlot, createElementBlock, Fragment, renderList, vShow } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
@@ -45,3 +45,3 @@ if (it) | ||
var target = sfc.__vccOpts || sfc; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
@@ -48,0 +48,0 @@ target[key] = val; |
{ | ||
"name": "@opentiny/vue-dropdown-menu", | ||
"version": "3.10.0", | ||
"version": "3.11.0-alpha.0", | ||
"description": "", | ||
@@ -10,5 +10,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.10.0", | ||
"@opentiny/vue-common": "~3.10.0", | ||
"@opentiny/vue-icon": "~3.10.0" | ||
"@opentiny/vue-renderless": "~3.11.0-alpha.0", | ||
"@opentiny/vue-common": "~3.11.0-alpha.0", | ||
"@opentiny/vue-icon": "~3.11.0-alpha.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "license": "MIT", |
@@ -12,2 +12,69 @@ /** | ||
*/ | ||
export declare const dropdownMenuProps: { | ||
multiStage: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
checkedStatus: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
visibleArrow: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
arrowOffset: { | ||
type: NumberConstructor; | ||
default: number; | ||
}; | ||
placement: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
popperClass: StringConstructor; | ||
popperAppendToBody: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
activeColor: StringConstructor; | ||
closeOnClickOutside: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
closeOnClickOverlay: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
direction: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
duration: { | ||
type: (StringConstructor | NumberConstructor)[]; | ||
default: number; | ||
}; | ||
overlay: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
zIndex: (StringConstructor | NumberConstructor)[]; | ||
maxHeight: { | ||
type: (StringConstructor | NumberConstructor)[]; | ||
default: string; | ||
}; | ||
options: { | ||
type: ArrayConstructor; | ||
default: () => never[]; | ||
}; | ||
textField: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
@@ -149,17 +216,17 @@ multiStage: { | ||
tiny_mode_root: boolean; | ||
duration: string | number; | ||
multiStage: boolean; | ||
checkedStatus: boolean; | ||
visibleArrow: boolean; | ||
arrowOffset: number; | ||
placement: string; | ||
options: unknown[]; | ||
popperAppendToBody: boolean; | ||
closeOnClickOutside: boolean; | ||
closeOnClickOverlay: boolean; | ||
direction: string; | ||
duration: string | number; | ||
overlay: boolean; | ||
maxHeight: string | number; | ||
popperAppendToBody: boolean; | ||
options: unknown[]; | ||
textField: string; | ||
arrowOffset: number; | ||
visibleArrow: boolean; | ||
closeOnClickOverlay: boolean; | ||
overlay: boolean; | ||
multiStage: boolean; | ||
checkedStatus: boolean; | ||
closeOnClickOutside: boolean; | ||
}, {}>; | ||
export default _default; |
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
multiStage?: any; | ||
checkedStatus?: any; | ||
visibleArrow?: any; | ||
arrowOffset?: any; | ||
placement?: any; | ||
popperClass?: any; | ||
popperAppendToBody?: any; | ||
maxHeight?: any; | ||
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("created" | "menu-item-click")[], "created" | "menu-item-click", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
multiStage?: any; | ||
checkedStatus?: any; | ||
visibleArrow?: any; | ||
arrowOffset?: any; | ||
placement?: any; | ||
popperClass?: any; | ||
popperAppendToBody?: any; | ||
maxHeight?: any; | ||
}>>> & { | ||
@@ -9,4 +37,18 @@ onCreated?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
[x: string]: any; | ||
readonly tiny_mode?: any; | ||
readonly tiny_mode_root?: any; | ||
readonly tiny_template?: any; | ||
readonly tiny_renderless?: any; | ||
readonly _constants?: any; | ||
readonly tiny_theme?: any; | ||
readonly tiny_chart_theme?: any; | ||
readonly multiStage?: any; | ||
readonly checkedStatus?: any; | ||
readonly visibleArrow?: any; | ||
readonly arrowOffset?: any; | ||
readonly placement?: any; | ||
readonly popperClass?: any; | ||
readonly popperAppendToBody?: any; | ||
readonly maxHeight?: any; | ||
}, {}>; | ||
export default _default; |
@@ -1,2 +0,58 @@ | ||
declare const _default: (props: Record<string, any> & {}) => any; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
activeColor?: any; | ||
closeOnClickOutside?: any; | ||
closeOnClickOverlay?: any; | ||
direction?: any; | ||
duration?: any; | ||
overlay?: any; | ||
zIndex?: any; | ||
}>, { | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, "open"[], "open", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
activeColor?: any; | ||
closeOnClickOutside?: any; | ||
closeOnClickOverlay?: any; | ||
direction?: any; | ||
duration?: any; | ||
overlay?: any; | ||
zIndex?: any; | ||
}>>> & { | ||
onOpen?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
readonly tiny_mode?: any; | ||
readonly tiny_mode_root?: any; | ||
readonly tiny_template?: any; | ||
readonly tiny_renderless?: any; | ||
readonly _constants?: any; | ||
readonly tiny_theme?: any; | ||
readonly tiny_chart_theme?: any; | ||
readonly activeColor?: any; | ||
readonly closeOnClickOutside?: any; | ||
readonly closeOnClickOverlay?: any; | ||
readonly direction?: any; | ||
readonly duration?: any; | ||
readonly overlay?: any; | ||
readonly zIndex?: any; | ||
}, {}>; | ||
export default _default; |
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
[x: string]: any; | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
visibleArrow?: any; | ||
arrowOffset?: any; | ||
placement?: any; | ||
popperClass?: any; | ||
popperAppendToBody?: any; | ||
options?: any; | ||
textField?: any; | ||
}>, { | ||
@@ -13,3 +26,16 @@ t: (this: any, path: any, options?: any) => any; | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("mouseenter" | "mouseleave")[], "mouseenter" | "mouseleave", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
tiny_mode?: any; | ||
tiny_mode_root?: any; | ||
tiny_template?: any; | ||
tiny_renderless?: any; | ||
_constants?: any; | ||
tiny_theme?: any; | ||
tiny_chart_theme?: any; | ||
visibleArrow?: any; | ||
arrowOffset?: any; | ||
placement?: any; | ||
popperClass?: any; | ||
popperAppendToBody?: any; | ||
options?: any; | ||
textField?: any; | ||
}>>> & { | ||
@@ -19,4 +45,17 @@ onMouseenter?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
[x: string]: any; | ||
readonly tiny_mode?: any; | ||
readonly tiny_mode_root?: any; | ||
readonly tiny_template?: any; | ||
readonly tiny_renderless?: any; | ||
readonly _constants?: any; | ||
readonly tiny_theme?: any; | ||
readonly tiny_chart_theme?: any; | ||
readonly visibleArrow?: any; | ||
readonly arrowOffset?: any; | ||
readonly placement?: any; | ||
readonly popperClass?: any; | ||
readonly popperAppendToBody?: any; | ||
readonly options?: any; | ||
readonly textField?: 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
31984
916
2
+ Added@opentiny/vue-common@3.11.0(transitive)
+ Added@opentiny/vue-icon@3.11.0(transitive)
+ Added@opentiny/vue-locale@3.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-common@3.10.0(transitive)
- Removed@opentiny/vue-icon@3.10.1(transitive)
- Removed@opentiny/vue-locale@3.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)