@opentiny/vue-switch
Advanced tools
Comparing version 3.6.7 to 3.8.0
@@ -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) { |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30116
12
749
3
+ Added@opentiny/vue-common@3.8.3(transitive)
+ Added@opentiny/vue-locale@3.8.3(transitive)
+ Added@opentiny/vue-renderless@3.8.4(transitive)
+ Added@opentiny/vue-theme@3.8.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.8.3(transitive)
+ Addedtailwind-merge@1.14.0(transitive)
- Removed@opentiny/vue-common@3.6.7(transitive)
- Removed@opentiny/vue-locale@3.6.7(transitive)
- Removed@opentiny/vue-renderless@3.6.8(transitive)
- Removed@opentiny/vue-theme@3.6.7(transitive)
- Removed@opentiny/vue-theme-mobile@3.6.6(transitive)
Updated@opentiny/vue-common@~3.8.0