@opentiny/vue-dropdown-item
Advanced tools
Comparing version 2.8.0 to 2.8.2
@@ -20,9 +20,18 @@ function _extends() { | ||
var template = function template2(mode) { | ||
if ("mobile" === (process.env.TINY_MODE || mode)) | ||
if ("pc" === (process.env.TINY_MODE || mode)) { | ||
return PcTemplate; | ||
} | ||
if ("mobile" === (process.env.TINY_MODE || mode)) { | ||
return MobileTemplate; | ||
else if ("mobile-first" === (process.env.TINY_MODE || mode)) | ||
} | ||
if ("mobile-first" === (process.env.TINY_MODE || mode)) { | ||
return MobileFirstTemplate; | ||
else | ||
return PcTemplate; | ||
} | ||
return PcTemplate; | ||
}; | ||
var $constants = { | ||
ICON_MAP: { | ||
leftWardArrow: "icon-delta-left" | ||
} | ||
}; | ||
var DropdownItem = defineComponent({ | ||
@@ -32,2 +41,8 @@ name: $prefix + "DropdownItem", | ||
props: _extends({}, $props, { | ||
_constants: { | ||
type: Object, | ||
default: function _default() { | ||
return $constants; | ||
} | ||
}, | ||
icon: [String, Object], | ||
@@ -41,3 +56,3 @@ disabled: Boolean, | ||
type: Array, | ||
default: function _default() { | ||
default: function _default2() { | ||
return []; | ||
@@ -56,3 +71,3 @@ } | ||
type: Object, | ||
default: function _default2() { | ||
default: function _default3() { | ||
return {}; | ||
@@ -83,3 +98,3 @@ } | ||
type: Number, | ||
default: function _default3() { | ||
default: function _default4() { | ||
return -1; | ||
@@ -86,0 +101,0 @@ } |
@@ -85,3 +85,4 @@ import { defineComponent, $prefix, props, setup as _setup } from "@opentiny/vue-common"; | ||
"is-disabled": _vm.disabled, | ||
"tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided | ||
"tiny-dropdown-item--divided tiny-dropdown-menu__item--divided": _vm.divided, | ||
"has-children": _vm.itemData.children && _vm.itemData.children.length | ||
}, | ||
@@ -102,3 +103,5 @@ attrs: { | ||
staticClass: "tiny-dropdown-item__expand tiny-dropdown-menu__item-expand" | ||
}, [_c("icon-delta-left")], 1) : _vm._e(), _c("div", { | ||
}, [_c(_vm.state.getIcon, { | ||
tag: "component" | ||
})], 1) : _vm._e(), _c("div", { | ||
staticClass: "tiny-dropdown-item__content tiny-dropdown-menu__item-content" | ||
@@ -105,0 +108,0 @@ }, [_vm.icon ? _c(_vm.icon, { |
{ | ||
"name": "@opentiny/vue-dropdown-item", | ||
"version": "2.8.0", | ||
"version": "2.8.2", | ||
"description": "", | ||
@@ -8,7 +8,7 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~2.8.0", | ||
"@opentiny/vue-icon": "~2.8.0", | ||
"@opentiny/vue-renderless": "~3.8.0", | ||
"@opentiny/vue-popup": "~2.8.0", | ||
"@opentiny/vue-button": "~2.8.0" | ||
"@opentiny/vue-common": "~2.8.2", | ||
"@opentiny/vue-icon": "~2.8.2", | ||
"@opentiny/vue-renderless": "~3.8.2", | ||
"@opentiny/vue-popup": "~2.8.2", | ||
"@opentiny/vue-button": "~2.8.2" | ||
}, | ||
@@ -15,0 +15,0 @@ "license": "MIT", |
@@ -1,138 +0,2 @@ | ||
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, { | ||
icon: (StringConstructor | ObjectConstructor)[]; | ||
disabled: BooleanConstructor; | ||
divided: BooleanConstructor; | ||
command: {}; | ||
title: StringConstructor; | ||
titleClass: StringConstructor; | ||
options: { | ||
type: ArrayConstructor; | ||
default: () => never[]; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
label: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
itemData: { | ||
type: ObjectConstructor; | ||
default: () => {}; | ||
}; | ||
appendToBody: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
textField: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
selected: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
selectedField: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
multiStage: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
currentIndex: { | ||
type: NumberConstructor; | ||
default: () => number; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (FunctionConstructor | ObjectConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, { | ||
type: string; | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
label: string; | ||
options: unknown[]; | ||
textField: string; | ||
selected: boolean; | ||
divided: boolean; | ||
itemData: Record<string, any>; | ||
appendToBody: boolean; | ||
selectedField: string; | ||
multiStage: boolean; | ||
currentIndex: number; | ||
} & { | ||
title?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
titleClass?: string | undefined; | ||
icon?: unknown; | ||
command?: unknown; | ||
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ | ||
type: string; | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
label: string; | ||
options: unknown[]; | ||
textField: string; | ||
selected: boolean; | ||
divided: boolean; | ||
itemData: Record<string, any>; | ||
appendToBody: boolean; | ||
selectedField: string; | ||
multiStage: boolean; | ||
currentIndex: number; | ||
} & { | ||
title?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
titleClass?: string | undefined; | ||
icon?: unknown; | ||
command?: unknown; | ||
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, { | ||
type: string; | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
label: string; | ||
options: unknown[]; | ||
textField: string; | ||
selected: boolean; | ||
divided: boolean; | ||
itemData: Record<string, any>; | ||
appendToBody: boolean; | ||
selectedField: string; | ||
multiStage: boolean; | ||
currentIndex: number; | ||
} & { | ||
title?: string | undefined; | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
titleClass?: string | undefined; | ||
icon?: unknown; | ||
command?: unknown; | ||
}, { | ||
type: string; | ||
label: string; | ||
options: unknown[]; | ||
textField: string; | ||
selected: boolean; | ||
itemData: Record<string, any>; | ||
appendToBody: boolean; | ||
selectedField: string; | ||
multiStage: boolean; | ||
currentIndex: number; | ||
}, true>); | ||
declare const _default: any; | ||
export default _default; |
@@ -1,12 +0,2 @@ | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<any> & import("@vue/composition-api").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api").ShallowUnwrapRef<any>, import("@vue/composition-api").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
declare const _sfc_main: any; | ||
export default _sfc_main; |
@@ -1,30 +0,2 @@ | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
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; | ||
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
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; | ||
}>, import("@vue/composition-api").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
declare const _sfc_main: any; | ||
export default _sfc_main; |
@@ -1,30 +0,2 @@ | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
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; | ||
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{ | ||
[x: string]: any; | ||
}>, { | ||
[x: string]: any; | ||
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ | ||
[x: string]: any; | ||
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
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; | ||
}>, import("@vue/composition-api").Data, {}, {}, { | ||
[x: string]: any; | ||
} & {}, { | ||
[x: string]: any; | ||
}, true>); | ||
declare const _sfc_main: any; | ||
export default _sfc_main; |
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
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
21166
613
4
Updated@opentiny/vue-button@~2.8.2
Updated@opentiny/vue-common@~2.8.2
Updated@opentiny/vue-icon@~2.8.2
Updated@opentiny/vue-popup@~2.8.2