Comparing version 4.8.10 to 4.8.11
@@ -6,2 +6,3 @@ import type { DropdownItemProps } from './DropdownItem'; | ||
export type DropdownItemOption = { | ||
disabled?: boolean; | ||
text: string; | ||
@@ -8,0 +9,0 @@ icon?: string; |
@@ -25,3 +25,4 @@ import type { ComponentPublicInstance, Ref } from 'vue'; | ||
dropdownMenuOptionActiveColor?: string; | ||
dropdownMenuOptionDisabledColor?: string; | ||
dropdownMenuContentMaxHeight?: string; | ||
}; |
@@ -109,2 +109,2 @@ export * from "./action-bar"; | ||
export function install(app: any): void; | ||
export const version: "4.8.10"; | ||
export const version: "4.8.11"; |
@@ -107,4 +107,10 @@ var __defProp = Object.defineProperty; | ||
} = parent.props; | ||
const { | ||
disabled | ||
} = option; | ||
const active = option.value === props.modelValue; | ||
const onClick = () => { | ||
if (disabled) { | ||
return; | ||
} | ||
state.showPopup = false; | ||
@@ -120,3 +126,3 @@ if (option.value !== props.modelValue) { | ||
"class": bem("icon"), | ||
"color": activeColor, | ||
"color": disabled ? void 0 : activeColor, | ||
"name": "success" | ||
@@ -132,3 +138,4 @@ }, null); | ||
"class": bem("option", { | ||
active | ||
active, | ||
disabled | ||
}), | ||
@@ -139,3 +146,3 @@ "style": { | ||
"tabindex": active ? 0 : -1, | ||
"clickable": true, | ||
"clickable": !disabled, | ||
"onClick": onClick | ||
@@ -142,0 +149,0 @@ }, { |
@@ -6,2 +6,3 @@ import type { DropdownItemProps } from './DropdownItem'; | ||
export type DropdownItemOption = { | ||
disabled?: boolean; | ||
text: string; | ||
@@ -8,0 +9,0 @@ icon?: string; |
@@ -25,3 +25,4 @@ import type { ComponentPublicInstance, Ref } from 'vue'; | ||
dropdownMenuOptionActiveColor?: string; | ||
dropdownMenuOptionDisabledColor?: string; | ||
dropdownMenuContentMaxHeight?: string; | ||
}; |
@@ -109,2 +109,2 @@ export * from "./action-bar"; | ||
export function install(app: any): void; | ||
export const version: "4.8.10"; | ||
export const version: "4.8.11"; |
@@ -229,3 +229,3 @@ var __defProp = Object.defineProperty; | ||
__reExport(stdin_exports, require("./watermark"), module.exports); | ||
const version = "4.8.10"; | ||
const version = "4.8.11"; | ||
function install(app) { | ||
@@ -232,0 +232,0 @@ const components = [ |
{ | ||
"name": "vant", | ||
"version": "4.8.10", | ||
"version": "4.8.11", | ||
"description": "Mobile UI Components built on Vue", | ||
@@ -37,4 +37,4 @@ "main": "lib/vant.cjs.js", | ||
"@vue/shared": "^3.4.21", | ||
"@vant/popperjs": "^1.3.0", | ||
"@vant/use": "^1.6.0" | ||
"@vant/use": "^1.6.0", | ||
"@vant/popperjs": "^1.3.0" | ||
}, | ||
@@ -60,6 +60,6 @@ "peerDependencies": { | ||
"vue-router": "^4.3.0", | ||
"@vant/area-data": "1.5.1", | ||
"@vant/eslint-config": "4.0.0", | ||
"@vant/cli": "6.2.0", | ||
"@vant/icons": "3.0.2" | ||
"@vant/cli": "7.0.1", | ||
"@vant/icons": "3.0.2", | ||
"@vant/area-data": "1.5.1" | ||
}, | ||
@@ -66,0 +66,0 @@ "sideEffects": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
5870475
152924