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 2.10.0 to 2.11.0-alpha.0

96

lib/index.js

@@ -15,3 +15,3 @@ function _extends() {

}
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
import PcTemplate from "./pc.js";

@@ -40,48 +40,52 @@ import MobileTemplate from "./mobile.js";

};
var switchProps = _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
disabled: {
type: Boolean,
default: false
},
showText: {
type: Boolean || void 0,
default: void 0
},
types: {
type: String
},
falseColor: String,
falseValue: {
type: [String, Number, Boolean],
default: false
},
mini: {
type: Boolean,
default: false
},
modelValue: {
type: [String, Number, Boolean],
default: false
},
size: [Number, String],
tabindex: {
type: String,
default: "1"
},
trueColor: String,
trueValue: {
type: [String, Number, Boolean],
default: true
},
beforeChange: Function,
displayOnly: {
type: Boolean,
default: false
}
});
var Switch = defineComponent({
name: $prefix + "Switch",
props: _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
disabled: {
type: Boolean,
default: false
},
showText: {
type: Boolean || void 0,
default: void 0
},
falseColor: String,
falseValue: {
type: [String, Number, Boolean],
default: false
},
mini: {
type: Boolean,
default: false
},
modelValue: {
type: [String, Number, Boolean],
default: false
},
size: [Number, String],
tabindex: {
type: String,
default: "1"
},
trueColor: String,
trueValue: {
type: [String, Number, Boolean],
default: true
},
beforeChange: Function,
displayOnly: {
type: Boolean,
default: false
}
}),
props: switchProps,
setup: function setup(props, context) {

@@ -95,3 +99,3 @@ return $setup({

});
var version = "2.10.0";
var version = "2.11.0-alpha.0";
Switch.model = {

@@ -98,0 +102,0 @@ prop: "modelValue",

{
"name": "@opentiny/vue-switch",
"version": "2.10.0",
"version": "2.11.0-alpha.0",
"description": "",

@@ -10,4 +10,4 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.10.0",
"@opentiny/vue-common": "~2.10.0"
"@opentiny/vue-renderless": "~3.11.0",
"@opentiny/vue-common": "~2.11.0"
},

@@ -14,0 +14,0 @@ "license": "MIT",

@@ -1,2 +0,8 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
export declare const $constants: {
PC_PREFIXCLS: string;
MOBILE_PREFIXCLS: string;
Mode: string;
prefixcls(mode: any): string;
};
export declare const switchProps: {
_constants: {

@@ -19,2 +25,5 @@ type: ObjectConstructor;

};
types: {
type: StringConstructor;
};
falseColor: StringConstructor;

@@ -54,76 +63,4 @@ falseValue: {

tiny_chart_theme: ObjectConstructor;
}, {
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
modelValue: string | number | boolean;
tabindex: string;
mini: boolean;
displayOnly: boolean;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
showText: boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
size?: string | number | undefined;
beforeChange?: Function | undefined;
falseColor?: string | undefined;
trueColor?: string | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
modelValue: string | number | boolean;
tabindex: string;
mini: boolean;
displayOnly: boolean;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
showText: boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
size?: string | number | undefined;
beforeChange?: Function | undefined;
falseColor?: string | undefined;
trueColor?: string | undefined;
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
modelValue: string | number | boolean;
tabindex: string;
mini: boolean;
displayOnly: boolean;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
showText: boolean;
} & {
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
size?: string | number | undefined;
beforeChange?: Function | undefined;
falseColor?: string | undefined;
trueColor?: string | undefined;
}, {
disabled: boolean;
_constants: Record<string, any>;
modelValue: string | number | boolean;
tabindex: string;
mini: boolean;
displayOnly: boolean;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
showText: boolean;
}, true>);
};
declare const _default: any;
export default _default;

@@ -1,12 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: any;
export default _default;

@@ -1,30 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
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;
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
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;
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: any;
export default _default;

@@ -1,30 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
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;
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
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;
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: 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