Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-tag

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-tag - npm Package Compare versions

Comparing version 3.6.6 to 3.6.7

42

lib/index.js

@@ -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
};

6

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc