@opentiny/vue-tag
Advanced tools
Comparing version 3.6.6 to 3.6.7
@@ -16,42 +16,4 @@ function _extends() { | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import { createVNode, resolveComponent } from "vue"; | ||
import { renderless, api } from "@opentiny/vue-renderless/tag/vue"; | ||
import { defineComponent, props, setup as _setup, h } from "@opentiny/vue-common"; | ||
import { iconClose } from "@opentiny/vue-icon"; | ||
var _sfc_main = /* @__PURE__ */ defineComponent({ | ||
components: { | ||
IconClose: iconClose() | ||
}, | ||
emits: ["click", "close"], | ||
props: [].concat(props, ["text", "closable", "type", "hit", "disabled", "color", "size", "effect", "beforeDelete"]), | ||
setup: function setup(props2, context) { | ||
return _setup({ | ||
props: props2, | ||
context, | ||
renderless, | ||
api, | ||
h | ||
}); | ||
}, | ||
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; | ||
var classes = ["tiny-tag", type ? "tiny-tag--" + type : "", size ? "tiny-tag--" + size : "", effect ? "tiny-tag--" + effect : "", hit && "is-hit"]; | ||
var tagElement = createVNode("span", { | ||
"class": classes, | ||
"style": { | ||
backgroundColor: color | ||
}, | ||
"onClick": handleClick | ||
}, [slots.default(), closable && createVNode(resolveComponent("icon-close"), { | ||
"class": "tiny-svg-size tiny-tag__close ", | ||
"onClick": handleClose | ||
}, null)]); | ||
return tagElement; | ||
} | ||
}); | ||
import PcTemplate from "./pc.js"; | ||
import "@opentiny/vue-theme/tag/index.css"; | ||
import "vue"; | ||
import "@opentiny/vue-renderless/tag/vue"; | ||
import "@opentiny/vue-icon"; | ||
var template = function template2(mode) { | ||
@@ -61,3 +23,3 @@ if ("mobile" === (process.env.TINY_MODE || mode)) | ||
else | ||
return _sfc_main; | ||
return PcTemplate; | ||
}; | ||
@@ -64,0 +26,0 @@ var Tag = defineComponent({ |
@@ -36,9 +36,4 @@ import { createVNode, resolveComponent } from "vue"; | ||
}); | ||
import "vue"; | ||
import "@opentiny/vue-renderless/tag/vue"; | ||
import "@opentiny/vue-common"; | ||
import "@opentiny/vue-icon"; | ||
export { | ||
_sfc_main as default | ||
}; |
{ | ||
"name": "@opentiny/vue-tag", | ||
"version": "3.6.6", | ||
"version": "3.6.7", | ||
"description": "", | ||
@@ -8,4 +8,4 @@ "main": "./lib/index.js", | ||
"@opentiny/vue-renderless": "~3.6.6", | ||
"@opentiny/vue-common": "~3.6.6", | ||
"@opentiny/vue-icon": "~3.6.6" | ||
"@opentiny/vue-common": "~3.6.7", | ||
"@opentiny/vue-icon": "~3.6.7" | ||
}, | ||
@@ -12,0 +12,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
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
6961
161
Updated@opentiny/vue-common@~3.6.7
Updated@opentiny/vue-icon@~3.6.7