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

@opentiny/vue-switch

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-switch - npm Package Compare versions

Comparing version 3.8.2 to 3.8.3

4

lib/index.js

@@ -53,4 +53,4 @@ function _extends() {

showText: {
type: Boolean,
default: false
type: Boolean || void 0,
default: void 0
},

@@ -57,0 +57,0 @@ falseColor: String,

@@ -116,8 +116,6 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue";

var _hoisted_6 = [_hoisted_5];
var _hoisted_7 = /* @__PURE__ */ createTextVNode("A");
var _hoisted_8 = /* @__PURE__ */ createTextVNode("B");
var _hoisted_9 = {
var _hoisted_7 = {
key: 2
};
var _hoisted_10 = /* @__PURE__ */ createElementVNode(
var _hoisted_8 = /* @__PURE__ */ createElementVNode(
"path",

@@ -140,4 +138,4 @@ {

);
var _hoisted_11 = [_hoisted_10];
var _hoisted_12 = /* @__PURE__ */ createElementVNode(
var _hoisted_9 = [_hoisted_8];
var _hoisted_10 = /* @__PURE__ */ createElementVNode(
"path",

@@ -160,3 +158,3 @@ {

);
var _hoisted_13 = [_hoisted_12];
var _hoisted_11 = [_hoisted_10];
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {

@@ -213,11 +211,11 @@ return openBlock(), createElementBlock("span", {

}, function() {
return [_hoisted_7];
return [createTextVNode("A")];
}) : createCommentVNode("v-if", true), _ctx.state.currentValue === _ctx.falseValue ? renderSlot(_ctx.$slots, "close", {
key: 1
}, function() {
return [_hoisted_8];
return [createTextVNode("B")];
}) : createCommentVNode("v-if", true)],
2
/* CLASS */
)) : createCommentVNode("v-if", true), _ctx.types === "loading" ? (openBlock(), createElementBlock("div", _hoisted_9, [_ctx.state.currentValue === _ctx.trueValue ? renderSlot(_ctx.$slots, "open", {
)) : createCommentVNode("v-if", true), _ctx.types === "loading" ? (openBlock(), createElementBlock("div", _hoisted_7, [_ctx.state.currentValue === _ctx.trueValue ? renderSlot(_ctx.$slots, "open", {
key: 0

@@ -231,3 +229,3 @@ }, function() {

},
_hoisted_11,
_hoisted_9,
2

@@ -245,3 +243,3 @@ /* CLASS */

},
_hoisted_13,
_hoisted_11,
2

@@ -248,0 +246,0 @@ /* CLASS */

import { renderless, api } from "@opentiny/vue-renderless/switch/vue";
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
import "@opentiny/vue-theme/switch/index.css";
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createCommentVNode, createTextVNode } from "vue";
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createTextVNode, createCommentVNode } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {

@@ -66,7 +66,5 @@ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

};
var _hoisted_3 = /* @__PURE__ */ createTextVNode("ON");
var _hoisted_4 = /* @__PURE__ */ createTextVNode("OFF");
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("span", {
class: normalizeClass([_ctx.state.wrapClasses, _ctx.showText ? "tiny-switch__text" : ""]),
class: normalizeClass([_ctx.state.wrapClasses, _ctx.state.showText ? "tiny-switch__text" : ""]),
tabindex: _ctx.tabindex,

@@ -84,10 +82,10 @@ onClick: _cache[0] || (_cache[0] = function() {

},
[!_ctx.mini && _ctx.showText ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.state.currentValue === _ctx.trueValue ? renderSlot(_ctx.$slots, "open", {
[!_ctx.mini && _ctx.state.showText ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.state.currentValue === _ctx.trueValue ? renderSlot(_ctx.$slots, "open", {
key: 0
}, function() {
return [_hoisted_3];
return [createTextVNode("ON")];
}) : createCommentVNode("v-if", true), _ctx.state.currentValue === _ctx.falseValue ? renderSlot(_ctx.$slots, "close", {
key: 1
}, function() {
return [_hoisted_4];
return [createTextVNode("OFF")];
}) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)],

@@ -94,0 +92,0 @@ 2

{
"name": "@opentiny/vue-switch",
"version": "3.8.2",
"version": "3.8.3",
"description": "",
"main": "./lib/index.js",
"module": "./lib/index.js",
"sideEffects": false,
"dependencies": {
"@opentiny/vue-renderless": "~3.8.2",
"@opentiny/vue-common": "~3.8.2"
"@opentiny/vue-renderless": "~3.8.3",
"@opentiny/vue-common": "~3.8.3"
},

@@ -11,0 +12,0 @@ "license": "MIT",

@@ -1,2 +0,119 @@

declare const _default: any;
declare const _default: import("@vue/runtime-core").DefineComponent<{
_constants: {
type: ObjectConstructor;
default: () => {
PC_PREFIXCLS: string;
MOBILE_PREFIXCLS: string;
Mode: string;
prefixcls(mode: any): string;
};
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
showText: {
type: BooleanConstructor;
default: undefined;
};
falseColor: StringConstructor;
falseValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
mini: {
type: BooleanConstructor;
default: boolean;
};
modelValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
size: (NumberConstructor | StringConstructor)[];
tabindex: {
type: StringConstructor;
default: string;
};
trueColor: StringConstructor;
trueValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
beforeChange: FunctionConstructor;
displayOnly: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
_constants: {
type: ObjectConstructor;
default: () => {
PC_PREFIXCLS: string;
MOBILE_PREFIXCLS: string;
Mode: string;
prefixcls(mode: any): string;
};
};
disabled: {
type: BooleanConstructor;
default: boolean;
};
showText: {
type: BooleanConstructor;
default: undefined;
};
falseColor: StringConstructor;
falseValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
mini: {
type: BooleanConstructor;
default: boolean;
};
modelValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
size: (NumberConstructor | StringConstructor)[];
tabindex: {
type: StringConstructor;
default: string;
};
trueColor: StringConstructor;
trueValue: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
beforeChange: FunctionConstructor;
displayOnly: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
modelValue: string | number | boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
tabindex: string;
disabled: boolean;
mini: boolean;
displayOnly: boolean;
showText: boolean;
falseValue: string | number | boolean;
trueValue: string | number | boolean;
}>;
export default _default;

@@ -1,2 +0,11 @@

declare const _sfc_main: any;
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
}>, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
}>>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
[x: string]: any;
}>;
export default _sfc_main;

@@ -1,2 +0,17 @@

declare const _sfc_main: any;
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
}>, {
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
}>>>, {
[x: string]: any;
}>;
export default _sfc_main;

@@ -1,2 +0,20 @@

declare const _sfc_main: any;
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
}>, {
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
}>>> & {
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
[x: string]: any;
}>;
export default _sfc_main;
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