@opentiny/vue-dropdown
Advanced tools
Comparing version 3.18.0 to 3.19.0
@@ -114,3 +114,3 @@ function _extends() { | ||
}); | ||
var version = "3.18.0"; | ||
var version = "3.19.0"; | ||
Dropdown.install = function(Vue) { | ||
@@ -117,0 +117,0 @@ Vue.component(Dropdown.name, Dropdown); |
@@ -18,3 +18,3 @@ function _extends() { | ||
import DropdownMenu from "@opentiny/vue-dropdown-menu"; | ||
import { iconDownWard, iconDeltaDown } from "@opentiny/vue-icon"; | ||
import { iconDownWard } from "@opentiny/vue-icon"; | ||
var _sfc_main = /* @__PURE__ */ defineComponent({ | ||
@@ -93,2 +93,3 @@ name: $prefix + "Dropdown", | ||
suffixIcon: Object, | ||
prefixIcon: Object, | ||
lazyShowPopper: { | ||
@@ -111,3 +112,3 @@ type: Boolean, | ||
var _state$designConfig, _state$designConfig$i, _state$designConfig2, _state$designConfig2$; | ||
var splitButton = this.splitButton, type = this.type, disabled = this.disabled, handleMainButtonClick = this.handleMainButtonClick, menuOptions = this.menuOptions, title = this.title, suffixIcon = this.suffixIcon; | ||
var splitButton = this.splitButton, type = this.type, disabled = this.disabled, handleMainButtonClick = this.handleMainButtonClick, menuOptions = this.menuOptions, title = this.title, suffixIcon = this.suffixIcon, prefixIcon = this.prefixIcon; | ||
var slots = this.slots, size = this.size, state = this.state, border = this.border, showIcon = this.showIcon, round = this.round, clickOutside = this.clickOutside; | ||
@@ -120,3 +121,4 @@ var params = { | ||
var visibleClass = state.visible ? "tiny-dropdown--visible tiny-dropdown-visible" : ""; | ||
var IconDown = suffixIcon || ((_state$designConfig = state.designConfig) == null ? void 0 : (_state$designConfig$i = _state$designConfig.icons) == null ? void 0 : _state$designConfig$i.dropdownIcon) || iconDeltaDown(); | ||
var IconDown = suffixIcon || ((_state$designConfig = state.designConfig) == null ? void 0 : (_state$designConfig$i = _state$designConfig.icons) == null ? void 0 : _state$designConfig$i.dropdownIcon) || iconDownWard(); | ||
var IconPre = prefixIcon; | ||
var ButtonIconDown = ((_state$designConfig2 = state.designConfig) == null ? void 0 : (_state$designConfig2$ = _state$designConfig2.icons) == null ? void 0 : _state$designConfig2$.dropdownIcon) || iconDownWard(); | ||
@@ -156,2 +158,3 @@ var defaultSlot = slots.default && slots.default(params); | ||
var suffixSlot = slots["suffix-icon"] && slots["suffix-icon"](); | ||
var prefixSlot = slots["prefix-icon"] && slots["prefix-icon"](); | ||
var vnodeData = defaultSlot && ((_defaultSlot$ = defaultSlot[0]) == null ? void 0 : _defaultSlot$.data) || {}; | ||
@@ -166,2 +169,5 @@ var _vnodeData$attrs2 = vnodeData.attrs, attrs = _vnodeData$attrs2 === void 0 ? {} : _vnodeData$attrs2; | ||
}, [suffixSlot || createVNode(IconDown, null, null)]) : ""; | ||
var prefixInner = prefixIcon || prefixSlot ? createVNode("span", { | ||
"class": "tiny-dropdown__prefix-inner " + visibleClass | ||
}, [prefixSlot || createVNode(IconPre, null, null)]) : ""; | ||
var defaultTriggerElm = defaultSlot || title ? createVNode("span", { | ||
@@ -174,7 +180,8 @@ "class": "tiny-dropdown__title" | ||
"disabled": disabled, | ||
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : ""), | ||
"type": type, | ||
"class": "tiny-dropdown__border " + (state.visible ? "is-expand" : "") + (showIcon ? " is-show-icon " : "") + " " + triggerClass, | ||
"reset-time": 0 | ||
}, { | ||
default: function _default2() { | ||
return [defaultTriggerElm, suffixInner]; | ||
return [prefixInner, defaultTriggerElm, suffixInner]; | ||
} | ||
@@ -184,3 +191,3 @@ }) : createVNode("span", { | ||
"class": "is-text" + (state.visible ? " is-expand" : " is-hide") + (disabled ? " is-disabled" : "") + " " + triggerClass | ||
}, [defaultTriggerElm, suffixInner]); | ||
}, [prefixInner, defaultTriggerElm, suffixInner]); | ||
} | ||
@@ -187,0 +194,0 @@ var defaulMenuElm = createVNode(resolveComponent("tiny-dropdown-menu"), { |
{ | ||
"name": "@opentiny/vue-dropdown", | ||
"version": "3.18.0", | ||
"version": "3.19.0", | ||
"description": "", | ||
@@ -10,9 +10,9 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-theme": "~3.18.0", | ||
"@opentiny/vue-button": "~3.18.0", | ||
"@opentiny/vue-button-group": "~3.18.0", | ||
"@opentiny/vue-common": "~3.18.0", | ||
"@opentiny/vue-icon": "~3.18.0", | ||
"@opentiny/vue-dropdown-menu": "~3.18.0" | ||
"@opentiny/vue-renderless": "~3.19.0", | ||
"@opentiny/vue-theme": "~3.19.0", | ||
"@opentiny/vue-button": "~3.19.0", | ||
"@opentiny/vue-button-group": "~3.19.0", | ||
"@opentiny/vue-common": "~3.19.0", | ||
"@opentiny/vue-icon": "~3.19.0", | ||
"@opentiny/vue-dropdown-menu": "~3.19.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "license": "MIT", |
@@ -59,2 +59,3 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
suffixIcon: ObjectConstructor; | ||
prefixIcon: ObjectConstructor; | ||
lazyShowPopper: { | ||
@@ -136,2 +137,3 @@ type: BooleanConstructor; | ||
suffixIcon: ObjectConstructor; | ||
prefixIcon: ObjectConstructor; | ||
lazyShowPopper: { | ||
@@ -138,0 +140,0 @@ type: BooleanConstructor; |
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
34961
1083
+ Added@opentiny/vue-button@3.19.0(transitive)
+ Added@opentiny/vue-button-group@3.19.0(transitive)
+ Added@opentiny/vue-common@3.19.0(transitive)
+ Added@opentiny/vue-directive@3.19.0(transitive)
+ Added@opentiny/vue-dropdown-item@3.19.0(transitive)
+ Added@opentiny/vue-dropdown-menu@3.19.0(transitive)
+ Added@opentiny/vue-icon@3.19.0(transitive)
+ Added@opentiny/vue-locale@3.19.0(transitive)
+ Added@opentiny/vue-popover@3.19.0(transitive)
+ Added@opentiny/vue-popup@3.19.0(transitive)
+ Added@opentiny/vue-renderless@3.19.5(transitive)
+ Added@opentiny/vue-theme@3.19.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.19.0(transitive)
+ Added@opentiny/vue-tooltip@3.19.0(transitive)
- Removed@opentiny/vue-button@3.18.0(transitive)
- Removed@opentiny/vue-button-group@3.18.0(transitive)
- Removed@opentiny/vue-common@3.18.0(transitive)
- Removed@opentiny/vue-directive@3.18.0(transitive)
- Removed@opentiny/vue-dropdown-item@3.18.1(transitive)
- Removed@opentiny/vue-dropdown-menu@3.18.0(transitive)
- Removed@opentiny/vue-icon@3.18.0(transitive)
- Removed@opentiny/vue-locale@3.18.0(transitive)
- Removed@opentiny/vue-popover@3.18.0(transitive)
- Removed@opentiny/vue-popup@3.18.0(transitive)
- Removed@opentiny/vue-renderless@3.18.7(transitive)
- Removed@opentiny/vue-theme@3.18.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.18.0(transitive)
- Removed@opentiny/vue-tooltip@3.18.0(transitive)
Updated@opentiny/vue-button@~3.19.0
Updated@opentiny/vue-common@~3.19.0
Updated@opentiny/vue-icon@~3.19.0
Updated@opentiny/vue-theme@~3.19.0