@opentiny/vue-dropdown-menu
Advanced tools
Comparing version 3.12.1 to 3.13.0-alpha.0
@@ -20,9 +20,11 @@ function _extends() { | ||
var template = function template2(mode) { | ||
if ("pc" === (process.env.TINY_MODE || mode)) { | ||
var _process$env; | ||
var tinyMode = typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null; | ||
if ("pc" === (tinyMode || mode)) { | ||
return PcTemplate; | ||
} | ||
if ("mobile" === (process.env.TINY_MODE || mode)) { | ||
if ("mobile" === (tinyMode || mode)) { | ||
return MobileTemplate; | ||
} | ||
if ("mobile-first" === (process.env.TINY_MODE || mode)) { | ||
if ("mobile-first" === (tinyMode || mode)) { | ||
return MobileFirstTemplate; | ||
@@ -41,6 +43,3 @@ } | ||
}, | ||
visibleArrow: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
visibleArrow: Boolean, | ||
arrowOffset: { | ||
@@ -50,7 +49,4 @@ type: Number, | ||
}, | ||
placement: { | ||
type: String, | ||
default: "bottom-end" | ||
// aui的默认值为bottom-start | ||
}, | ||
placement: String, | ||
// 默认主题 'bottom-end' | ||
popperClass: String, | ||
@@ -111,3 +107,3 @@ popperAppendToBody: { | ||
}); | ||
var version = "3.12.1"; | ||
var version = "3.13.0-alpha.0"; | ||
DropdownMenu.install = function(Vue) { | ||
@@ -114,0 +110,0 @@ Vue.component(DropdownMenu.name, DropdownMenu); |
@@ -55,4 +55,14 @@ import { renderless, api } from "@opentiny/vue-renderless/dropdown-menu/vue"; | ||
}, | ||
emits: ["mouseenter", "mouseleave", "created"], | ||
props: [].concat(props, ["visibleArrow", "arrowOffset", "placement", "popperClass", "popperAppendToBody", "textField", "options"]), | ||
emits: ["mouseenter", "mouseleave", "click", "update:modelValue", "created"], | ||
props: [].concat(props, [ | ||
"visibleArrow", | ||
"arrowOffset", | ||
"placement", | ||
"popperClass", | ||
"popperAppendToBody", | ||
"checkedStatus", | ||
// tiny 新增 | ||
"textField", | ||
"options" | ||
]), | ||
setup: function setup(props2, context) { | ||
@@ -86,3 +96,5 @@ return _setup({ | ||
}, | ||
[renderSlot(_ctx.$slots, "default", {}, function() { | ||
[renderSlot(_ctx.$slots, "default", { | ||
selectedIndex: _ctx.state.selectedIndex | ||
}, function() { | ||
return [(openBlock(true), createElementBlock( | ||
@@ -89,0 +101,0 @@ Fragment, |
{ | ||
"name": "@opentiny/vue-dropdown-menu", | ||
"version": "3.12.1", | ||
"version": "3.13.0-alpha.0", | ||
"description": "", | ||
@@ -10,5 +10,6 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.12.0", | ||
"@opentiny/vue-common": "~3.12.0", | ||
"@opentiny/vue-icon": "~3.12.0" | ||
"@opentiny/vue-renderless": "~3.13.0-alpha.0", | ||
"@opentiny/vue-common": "~3.13.0-alpha.0", | ||
"@opentiny/vue-icon": "~3.13.0-alpha.0", | ||
"@opentiny/vue-tooltip": "~3.13.0-alpha.0" | ||
}, | ||
@@ -15,0 +16,0 @@ "license": "MIT", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
0
100
2
19587
4
6
510
2
+ Added@opentiny/vue-common@3.13.1(transitive)
+ Added@opentiny/vue-icon@3.13.0(transitive)
+ Added@opentiny/vue-locale@3.13.0(transitive)
+ Added@opentiny/vue-renderless@3.13.2(transitive)
+ Added@opentiny/vue-theme@3.13.3(transitive)
+ Added@opentiny/vue-theme-mobile@3.13.0(transitive)
+ Added@opentiny/vue-tooltip@3.13.0(transitive)
- Removed@opentiny/vue-common@3.12.0(transitive)
- Removed@opentiny/vue-icon@3.12.0(transitive)
- Removed@opentiny/vue-locale@3.12.0(transitive)
- Removed@opentiny/vue-renderless@3.12.1(transitive)
- Removed@opentiny/vue-theme@3.12.1(transitive)
- Removed@opentiny/vue-theme-mobile@3.12.0(transitive)