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

@opentiny/vue-tag

Package Overview
Dependencies
Maintainers
0
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.18.0 to 3.19.0

4

lib/index.js

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