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.6.7 to 3.8.0

lib/mobile-first.js

9

lib/index.js

@@ -18,5 +18,8 @@ function _extends() {

import MobileTemplate from "./mobile.js";
import MobileFirstTemplate from "./mobile-first.js";
var template = function template2(mode) {
if ("mobile" === (process.env.TINY_MODE || mode))
return MobileTemplate;
else if ("mobile-first" === (process.env.TINY_MODE || mode))
return MobileFirstTemplate;
else

@@ -73,3 +76,7 @@ return PcTemplate;

},
beforeChange: Function
beforeChange: Function,
displayOnly: {
type: Boolean,
default: false
}
}),

@@ -76,0 +83,0 @@ setup: function setup(props, context) {

2

lib/mobile.js

@@ -50,3 +50,3 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue";

var _sfc_main = /* @__PURE__ */ defineComponent({
var _sfc_main = defineComponent({
props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled"]),

@@ -53,0 +53,0 @@ setup: function setup(props2, context) {

@@ -50,3 +50,3 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue";

var _sfc_main = /* @__PURE__ */ defineComponent({
var _sfc_main = defineComponent({
emits: ["change", "update:modelValue"],

@@ -53,0 +53,0 @@ props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "mini", "tabindex", "showText", "beforeChange"]),

{
"name": "@opentiny/vue-switch",
"version": "3.6.7",
"version": "3.8.0",
"description": "",
"main": "./lib/index.js",
"module": "./lib/index.js",
"dependencies": {
"@opentiny/vue-renderless": "~3.6.6",
"@opentiny/vue-common": "~3.6.7"
"@opentiny/vue-renderless": "~3.8.0",
"@opentiny/vue-common": "~3.8.0"
},

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

@@ -43,2 +43,12 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{

beforeChange: FunctionConstructor;
displayOnly: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {

@@ -88,7 +98,19 @@ [key: string]: any;

beforeChange: FunctionConstructor;
displayOnly: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
modelValue: string | number | boolean;
disabled: boolean;
tabindex: string;
disabled: boolean;
modelValue: string | number | boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
displayOnly: boolean;
mini: boolean;

@@ -95,0 +117,0 @@ showText: boolean;

@@ -10,2 +10,4 @@ declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{

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<{

@@ -12,0 +14,0 @@ [x: string]: any;

@@ -10,7 +10,9 @@ declare const _sfc_main: import("@vue/runtime-core").DefineComponent<Readonly<{

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;
onChange?: ((...args: any[]) => any) | undefined;
}, {

@@ -17,0 +19,0 @@ [x: string]: any;

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