@opentiny/vue-tag
Advanced tools
Comparing version 3.18.0 to 3.19.0
@@ -44,2 +44,4 @@ function _extends() { | ||
selectable: Boolean, | ||
onlyIcon: Boolean, | ||
// 仅图标模式 | ||
customClass: { | ||
@@ -79,3 +81,3 @@ type: String, | ||
}); | ||
var version = "3.18.0"; | ||
var version = "3.19.0"; | ||
Tag.install = function(Vue) { | ||
@@ -82,0 +84,0 @@ Vue.component(Tag.name, Tag); |
@@ -10,3 +10,16 @@ import { createVNode, resolveComponent } from "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(props2, context) { | ||
@@ -22,5 +35,5 @@ return _setup({ | ||
render: function render() { | ||
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, state = this.state, 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, state = this.state, 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) { | ||
@@ -27,0 +40,0 @@ if (Array.isArray(color)) { |
{ | ||
"name": "@opentiny/vue-tag", | ||
"version": "3.18.0", | ||
"version": "3.19.0", | ||
"description": "", | ||
@@ -10,7 +10,7 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-common": "~3.18.0", | ||
"@opentiny/vue-icon": "~3.18.0", | ||
"@opentiny/vue-theme": "~3.18.0", | ||
"@opentiny/vue-theme-mobile": "~3.18.0" | ||
"@opentiny/vue-renderless": "~3.19.0", | ||
"@opentiny/vue-common": "~3.19.0", | ||
"@opentiny/vue-icon": "~3.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: { | ||
@@ -56,2 +57,3 @@ type: StringConstructor; | ||
selectable: BooleanConstructor; | ||
onlyIcon: BooleanConstructor; | ||
customClass: { | ||
@@ -98,2 +100,3 @@ type: StringConstructor; | ||
selectable: BooleanConstructor; | ||
onlyIcon: BooleanConstructor; | ||
customClass: { | ||
@@ -136,3 +139,4 @@ type: StringConstructor; | ||
selectable: boolean; | ||
onlyIcon: boolean; | ||
}, {}>; | ||
export default _default; |
@@ -19,2 +19,3 @@ import type { ITagApi } from '@opentiny/vue-renderless/types/tag.type'; | ||
hit?: any; | ||
onlyIcon?: any; | ||
beforeDelete?: any; | ||
@@ -38,2 +39,3 @@ }>, ITagApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "close")[], "click" | "close", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
hit?: any; | ||
onlyIcon?: any; | ||
beforeDelete?: any; | ||
@@ -60,4 +62,5 @@ }>>> & { | ||
readonly hit?: any; | ||
readonly onlyIcon?: any; | ||
readonly beforeDelete?: any; | ||
}, {}>; | ||
export default _default; |
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
26337
715
+ Added@opentiny/vue-common@3.19.0(transitive)
+ Added@opentiny/vue-icon@3.19.0(transitive)
+ Added@opentiny/vue-locale@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)
- Removed@opentiny/vue-common@3.18.0(transitive)
- Removed@opentiny/vue-icon@3.18.0(transitive)
- Removed@opentiny/vue-locale@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)
Updated@opentiny/vue-common@~3.19.0
Updated@opentiny/vue-icon@~3.19.0
Updated@opentiny/vue-theme@~3.19.0