@opentiny/vue-tag
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -44,2 +44,4 @@ function _extends() { | ||
selectable: Boolean, | ||
onlyIcon: Boolean, | ||
// 仅图标模式 | ||
customClass: { | ||
@@ -79,3 +81,3 @@ type: String, | ||
}); | ||
var version = "2.18.0"; | ||
var version = "2.19.0"; | ||
Tag.install = function(Vue) { | ||
@@ -82,0 +84,0 @@ Vue.component(Tag.name, Tag); |
@@ -64,3 +64,16 @@ import { renderless, api } from '@opentiny/vue-renderless/tag/vue'; | ||
emits: ["click", "close"], | ||
props: [].concat(props, ["text", "closable", "type", "hit", "disabled", "color", "size", "effect", "value", "beforeDelete"]), | ||
props: [].concat(props, [ | ||
"text", | ||
"closable", | ||
"type", | ||
"hit", | ||
// hit 只保留类名供aui使用, tinyvue 这边的border是随着规范走,取决于css var中的border色值 | ||
"disabled", | ||
"color", | ||
"size", | ||
"effect", | ||
"value", | ||
"beforeDelete", | ||
"onlyIcon" | ||
]), | ||
setup: function setup$1(props2, context) { | ||
@@ -77,5 +90,5 @@ return setup({ | ||
var h2 = arguments[0]; | ||
var type = this.type, size = this.size, hit = this.hit, effect = this.effect, slots = this.slots, closable = this.closable, color = this.color, handleClose = this.handleClose, handleClick = this.handleClick, disabled = this.disabled; this.state; var value = this.value; | ||
var type = this.type, size = this.size, hit = this.hit, effect = this.effect, slots = this.slots, closable = this.closable, color = this.color, handleClose = this.handleClose, handleClick = this.handleClick, disabled = this.disabled; this.state; var value = this.value, onlyIcon = this.onlyIcon; | ||
var styles = {}; | ||
var classes = ["tiny-tag", type ? "tiny-tag--" + type : "", size ? "tiny-tag--" + size : "", effect ? "tiny-tag--" + effect : "", hit && "is-hit", disabled ? "is-disabled" : ""]; | ||
var classes = ["tiny-tag", type ? "tiny-tag--" + type : "", size ? "tiny-tag--" + size : "", effect ? "tiny-tag--" + effect : "", hit && "is-hit", disabled ? "is-disabled" : "", onlyIcon ? "tiny-tag--only-icon" : ""]; | ||
if (color) { | ||
@@ -82,0 +95,0 @@ if (Array.isArray(color)) { |
{ | ||
"name": "@opentiny/vue-tag", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"description": "", | ||
@@ -10,7 +10,7 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-common": "~2.18.0", | ||
"@opentiny/vue-icon": "~2.18.0", | ||
"@opentiny/vue-theme": "~3.18.0", | ||
"@opentiny/vue-theme-mobile": "~3.18.0" | ||
"@opentiny/vue-renderless": "~3.19.0", | ||
"@opentiny/vue-common": "~2.19.0", | ||
"@opentiny/vue-icon": "~2.19.0", | ||
"@opentiny/vue-theme": "~3.19.0", | ||
"@opentiny/vue-theme-mobile": "~3.19.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "license": "MIT", |
@@ -15,2 +15,3 @@ export declare const tagProps: { | ||
selectable: BooleanConstructor; | ||
onlyIcon: BooleanConstructor; | ||
customClass: { | ||
@@ -17,0 +18,0 @@ type: StringConstructor; |
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
22655
602
+ Added@opentiny/vue-common@2.19.0(transitive)
+ Added@opentiny/vue-icon@2.19.0(transitive)
+ Added@opentiny/vue-locale@2.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)
- Removed@opentiny/vue-common@2.18.0(transitive)
- Removed@opentiny/vue-icon@2.18.0(transitive)
- Removed@opentiny/vue-locale@2.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)
Updated@opentiny/vue-common@~2.19.0
Updated@opentiny/vue-icon@~2.19.0
Updated@opentiny/vue-theme@~3.19.0